Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 

126888 рядки
5.1 MiB

  1. // Because of vitejs/vite#12340, there's no way to reliably detect whether we're
  2. // running as a (possibly bundled/polyfilled) ESM module or as a CommonJS
  3. // module. In order to work everywhere, we have to provide the load function via
  4. // a side channel on the global object. We write it as a stack so that multiple
  5. // cli_pkg packages can depend on one another without clobbering their exports.
  6. if (!globalThis._cliPkgExports) {
  7. globalThis._cliPkgExports = [];
  8. }
  9. let _cliPkgExports = {};
  10. globalThis._cliPkgExports.push(_cliPkgExports);
  11. _cliPkgExports.load = function(_cliPkgRequires, _cliPkgExportParam) {
  12. var dartNodeIsActuallyNode = typeof process !== "undefined" && (process.versions || {}).hasOwnProperty('node');
  13. // make sure to keep this as 'var'
  14. // we don't want block scoping
  15. var self = dartNodeIsActuallyNode ? Object.create(globalThis) : globalThis;
  16. self.scheduleImmediate = typeof setImmediate !== "undefined"
  17. ? function (cb) {
  18. setImmediate(cb);
  19. }
  20. : function(cb) {
  21. setTimeout(cb, 0);
  22. };
  23. // CommonJS globals.
  24. if (typeof require !== "undefined") {
  25. self.require = require;
  26. }
  27. self.exports = _cliPkgExportParam || _cliPkgExports;
  28. // Node.js specific exports, check to see if they exist & or polyfilled
  29. if (typeof process !== "undefined") {
  30. self.process = process;
  31. }
  32. if (typeof __dirname !== "undefined") {
  33. self.__dirname = __dirname;
  34. }
  35. if (typeof __filename !== "undefined") {
  36. self.__filename = __filename;
  37. }
  38. if (typeof Buffer !== "undefined") {
  39. self.Buffer = Buffer;
  40. }
  41. // if we're running in a browser, Dart supports most of this out of box
  42. // make sure we only run these in Node.js environment
  43. if (dartNodeIsActuallyNode) {
  44. // This line is to:
  45. // 1) Prevent Webpack from bundling.
  46. // 2) In Webpack on Node.js, make sure we're using the native Node.js require, which is available via __non_webpack_require__
  47. // https://github.com/mbullington/node_preamble.dart/issues/18#issuecomment-527305561
  48. var url = ("undefined" !== typeof __webpack_require__ ? __non_webpack_require__ : require)("url");
  49. // Setting `self.location=` in Electron throws a `TypeError`, so we define it
  50. // as a property instead to be safe.
  51. Object.defineProperty(self, "location", {
  52. value: {
  53. get href() {
  54. if (url.pathToFileURL) {
  55. return url.pathToFileURL(process.cwd()).href + "/";
  56. } else {
  57. // This isn't really a correct transformation, but it's the best we have
  58. // for versions of Node <10.12.0 which introduced `url.pathToFileURL()`.
  59. // For example, it will fail for paths that contain characters that need
  60. // to be escaped in URLs.
  61. return "file://" + (function() {
  62. var cwd = process.cwd();
  63. if (process.platform != "win32") return cwd;
  64. return "/" + cwd.replace(/\\/g, "/");
  65. })() + "/"
  66. }
  67. }
  68. }
  69. });
  70. (function() {
  71. function computeCurrentScript() {
  72. try {
  73. throw new Error();
  74. } catch(e) {
  75. var stack = e.stack;
  76. var re = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg");
  77. var lastMatch = null;
  78. do {
  79. var match = re.exec(stack);
  80. if (match != null) lastMatch = match;
  81. } while (match != null);
  82. return lastMatch[1];
  83. }
  84. }
  85. // Setting `self.document=` isn't known to throw an error anywhere like
  86. // `self.location=` does on Electron, but it's better to be future-proof
  87. // just in case..
  88. var cachedCurrentScript = null;
  89. Object.defineProperty(self, "document", {
  90. value: {
  91. get currentScript() {
  92. if (cachedCurrentScript == null) {
  93. cachedCurrentScript = {src: computeCurrentScript()};
  94. }
  95. return cachedCurrentScript;
  96. }
  97. }
  98. });
  99. })();
  100. self.dartDeferredLibraryLoader = function(uri, successCallback, errorCallback) {
  101. try {
  102. load(uri);
  103. successCallback();
  104. } catch (error) {
  105. errorCallback(error);
  106. }
  107. };
  108. }
  109. self.parcel_watcher = _cliPkgRequires.parcel_watcher;
  110. self.immutable = _cliPkgRequires.immutable;
  111. self.chokidar = _cliPkgRequires.chokidar;
  112. self.readline = _cliPkgRequires.readline;
  113. self.fs = _cliPkgRequires.fs;
  114. self.nodeModule = _cliPkgRequires.nodeModule;
  115. self.stream = _cliPkgRequires.stream;
  116. self.util = _cliPkgRequires.util;
  117. // Generated by dart2js (NullSafetyMode.sound, trust primitives, omit checks, lax runtime type, csp, intern-composite-values), the Dart to JavaScript compiler version: 3.5.4.
  118. // The code supports the following hooks:
  119. // dartPrint(message):
  120. // if this function is defined it is called instead of the Dart [print]
  121. // method.
  122. //
  123. // dartMainRunner(main, args):
  124. // if this function is defined, the Dart [main] method will not be invoked
  125. // directly. Instead, a closure that will invoke [main], and its arguments
  126. // [args] is passed to [dartMainRunner].
  127. //
  128. // dartDeferredLibraryLoader(uri, successCallback, errorCallback, loadId, loadPriority):
  129. // if this function is defined, it will be called when a deferred library
  130. // is loaded. It should load and eval the javascript of `uri`, and call
  131. // successCallback. If it fails to do so, it should call errorCallback with
  132. // an error. The loadId argument is the deferred import that resulted in
  133. // this uri being loaded. The loadPriority argument is the priority the
  134. // library should be loaded with as specified in the code via the
  135. // load-priority annotation (0: normal, 1: high).
  136. // dartDeferredLibraryMultiLoader(uris, successCallback, errorCallback, loadId, loadPriority):
  137. // if this function is defined, it will be called when a deferred library
  138. // is loaded. It should load and eval the javascript of every URI in `uris`,
  139. // and call successCallback. If it fails to do so, it should call
  140. // errorCallback with an error. The loadId argument is the deferred import
  141. // that resulted in this uri being loaded. The loadPriority argument is the
  142. // priority the library should be loaded with as specified in the code via
  143. // the load-priority annotation (0: normal, 1: high).
  144. //
  145. // dartCallInstrumentation(id, qualifiedName):
  146. // if this function is defined, it will be called at each entry of a
  147. // method or constructor. Used only when compiling programs with
  148. // --experiment-call-instrumentation.
  149. (function dartProgram() {
  150. function copyProperties(from, to) {
  151. var keys = Object.keys(from);
  152. for (var i = 0; i < keys.length; i++) {
  153. var key = keys[i];
  154. to[key] = from[key];
  155. }
  156. }
  157. function mixinPropertiesHard(from, to) {
  158. var keys = Object.keys(from);
  159. for (var i = 0; i < keys.length; i++) {
  160. var key = keys[i];
  161. if (!to.hasOwnProperty(key)) {
  162. to[key] = from[key];
  163. }
  164. }
  165. }
  166. function mixinPropertiesEasy(from, to) {
  167. Object.assign(to, from);
  168. }
  169. var supportsDirectProtoAccess = function() {
  170. var cls = function() {
  171. };
  172. cls.prototype = {p: {}};
  173. var object = new cls();
  174. if (!(Object.getPrototypeOf(object) && Object.getPrototypeOf(object).p === cls.prototype.p))
  175. return false;
  176. try {
  177. if (typeof navigator != "undefined" && typeof navigator.userAgent == "string" && navigator.userAgent.indexOf("Chrome/") >= 0)
  178. return true;
  179. if (typeof version == "function" && version.length == 0) {
  180. var v = version();
  181. if (/^\d+\.\d+\.\d+\.\d+$/.test(v))
  182. return true;
  183. }
  184. } catch (_) {
  185. }
  186. return false;
  187. }();
  188. function inherit(cls, sup) {
  189. cls.prototype.constructor = cls;
  190. cls.prototype["$is" + cls.name] = cls;
  191. if (sup != null) {
  192. if (supportsDirectProtoAccess) {
  193. Object.setPrototypeOf(cls.prototype, sup.prototype);
  194. return;
  195. }
  196. var clsPrototype = Object.create(sup.prototype);
  197. copyProperties(cls.prototype, clsPrototype);
  198. cls.prototype = clsPrototype;
  199. }
  200. }
  201. function inheritMany(sup, classes) {
  202. for (var i = 0; i < classes.length; i++) {
  203. inherit(classes[i], sup);
  204. }
  205. }
  206. function mixinEasy(cls, mixin) {
  207. mixinPropertiesEasy(mixin.prototype, cls.prototype);
  208. cls.prototype.constructor = cls;
  209. }
  210. function mixinHard(cls, mixin) {
  211. mixinPropertiesHard(mixin.prototype, cls.prototype);
  212. cls.prototype.constructor = cls;
  213. }
  214. function lazy(holder, name, getterName, initializer) {
  215. var uninitializedSentinel = holder;
  216. holder[name] = uninitializedSentinel;
  217. holder[getterName] = function() {
  218. if (holder[name] === uninitializedSentinel) {
  219. holder[name] = initializer();
  220. }
  221. holder[getterName] = function() {
  222. return this[name];
  223. };
  224. return holder[name];
  225. };
  226. }
  227. function lazyFinal(holder, name, getterName, initializer) {
  228. var uninitializedSentinel = holder;
  229. holder[name] = uninitializedSentinel;
  230. holder[getterName] = function() {
  231. if (holder[name] === uninitializedSentinel) {
  232. var value = initializer();
  233. if (holder[name] !== uninitializedSentinel) {
  234. A.throwLateFieldADI(name);
  235. }
  236. holder[name] = value;
  237. }
  238. var finalValue = holder[name];
  239. holder[getterName] = function() {
  240. return finalValue;
  241. };
  242. return finalValue;
  243. };
  244. }
  245. function makeConstList(list) {
  246. list.immutable$list = Array;
  247. list.fixed$length = Array;
  248. return list;
  249. }
  250. function convertToFastObject(properties) {
  251. function t() {
  252. }
  253. t.prototype = properties;
  254. new t();
  255. return properties;
  256. }
  257. function convertAllToFastObject(arrayOfObjects) {
  258. for (var i = 0; i < arrayOfObjects.length; ++i) {
  259. convertToFastObject(arrayOfObjects[i]);
  260. }
  261. }
  262. var functionCounter = 0;
  263. function instanceTearOffGetter(isIntercepted, parameters) {
  264. var cache = null;
  265. return isIntercepted ? function(receiver) {
  266. if (cache === null)
  267. cache = A.closureFromTearOff(parameters);
  268. return new cache(receiver, this);
  269. } : function() {
  270. if (cache === null)
  271. cache = A.closureFromTearOff(parameters);
  272. return new cache(this, null);
  273. };
  274. }
  275. function staticTearOffGetter(parameters) {
  276. var cache = null;
  277. return function() {
  278. if (cache === null)
  279. cache = A.closureFromTearOff(parameters).prototype;
  280. return cache;
  281. };
  282. }
  283. var typesOffset = 0;
  284. function tearOffParameters(container, isStatic, isIntercepted, requiredParameterCount, optionalParameterDefaultValues, callNames, funsOrNames, funType, applyIndex, needsDirectAccess) {
  285. if (typeof funType == "number") {
  286. funType += typesOffset;
  287. }
  288. return {co: container, iS: isStatic, iI: isIntercepted, rC: requiredParameterCount, dV: optionalParameterDefaultValues, cs: callNames, fs: funsOrNames, fT: funType, aI: applyIndex || 0, nDA: needsDirectAccess};
  289. }
  290. function installStaticTearOff(holder, getterName, requiredParameterCount, optionalParameterDefaultValues, callNames, funsOrNames, funType, applyIndex) {
  291. var parameters = tearOffParameters(holder, true, false, requiredParameterCount, optionalParameterDefaultValues, callNames, funsOrNames, funType, applyIndex, false);
  292. var getterFunction = staticTearOffGetter(parameters);
  293. holder[getterName] = getterFunction;
  294. }
  295. function installInstanceTearOff(prototype, getterName, isIntercepted, requiredParameterCount, optionalParameterDefaultValues, callNames, funsOrNames, funType, applyIndex, needsDirectAccess) {
  296. isIntercepted = !!isIntercepted;
  297. var parameters = tearOffParameters(prototype, false, isIntercepted, requiredParameterCount, optionalParameterDefaultValues, callNames, funsOrNames, funType, applyIndex, !!needsDirectAccess);
  298. var getterFunction = instanceTearOffGetter(isIntercepted, parameters);
  299. prototype[getterName] = getterFunction;
  300. }
  301. function setOrUpdateInterceptorsByTag(newTags) {
  302. var tags = init.interceptorsByTag;
  303. if (!tags) {
  304. init.interceptorsByTag = newTags;
  305. return;
  306. }
  307. copyProperties(newTags, tags);
  308. }
  309. function setOrUpdateLeafTags(newTags) {
  310. var tags = init.leafTags;
  311. if (!tags) {
  312. init.leafTags = newTags;
  313. return;
  314. }
  315. copyProperties(newTags, tags);
  316. }
  317. function updateTypes(newTypes) {
  318. var types = init.types;
  319. var length = types.length;
  320. types.push.apply(types, newTypes);
  321. return length;
  322. }
  323. function updateHolder(holder, newHolder) {
  324. copyProperties(newHolder, holder);
  325. return holder;
  326. }
  327. var hunkHelpers = function() {
  328. var mkInstance = function(isIntercepted, requiredParameterCount, optionalParameterDefaultValues, callNames, applyIndex) {
  329. return function(container, getterName, name, funType) {
  330. return installInstanceTearOff(container, getterName, isIntercepted, requiredParameterCount, optionalParameterDefaultValues, callNames, [name], funType, applyIndex, false);
  331. };
  332. },
  333. mkStatic = function(requiredParameterCount, optionalParameterDefaultValues, callNames, applyIndex) {
  334. return function(container, getterName, name, funType) {
  335. return installStaticTearOff(container, getterName, requiredParameterCount, optionalParameterDefaultValues, callNames, [name], funType, applyIndex);
  336. };
  337. };
  338. return {inherit: inherit, inheritMany: inheritMany, mixin: mixinEasy, mixinHard: mixinHard, installStaticTearOff: installStaticTearOff, installInstanceTearOff: installInstanceTearOff, _instance_0u: mkInstance(0, 0, null, ["call$0"], 0), _instance_1u: mkInstance(0, 1, null, ["call$1"], 0), _instance_2u: mkInstance(0, 2, null, ["call$2"], 0), _instance_0i: mkInstance(1, 0, null, ["call$0"], 0), _instance_1i: mkInstance(1, 1, null, ["call$1"], 0), _instance_2i: mkInstance(1, 2, null, ["call$2"], 0), _static_0: mkStatic(0, null, ["call$0"], 0), _static_1: mkStatic(1, null, ["call$1"], 0), _static_2: mkStatic(2, null, ["call$2"], 0), makeConstList: makeConstList, lazy: lazy, lazyFinal: lazyFinal, updateHolder: updateHolder, convertToFastObject: convertToFastObject, updateTypes: updateTypes, setOrUpdateInterceptorsByTag: setOrUpdateInterceptorsByTag, setOrUpdateLeafTags: setOrUpdateLeafTags};
  339. }();
  340. function initializeDeferredHunk(hunk) {
  341. typesOffset = init.types.length;
  342. hunk(hunkHelpers, init, holders, $);
  343. }
  344. var J = {
  345. makeDispatchRecord(interceptor, proto, extension, indexability) {
  346. return {i: interceptor, p: proto, e: extension, x: indexability};
  347. },
  348. getNativeInterceptor(object) {
  349. var proto, objectProto, $constructor, interceptor, t1,
  350. record = object[init.dispatchPropertyName];
  351. if (record == null)
  352. if ($.initNativeDispatchFlag == null) {
  353. A.initNativeDispatch();
  354. record = object[init.dispatchPropertyName];
  355. }
  356. if (record != null) {
  357. proto = record.p;
  358. if (false === proto)
  359. return record.i;
  360. if (true === proto)
  361. return object;
  362. objectProto = Object.getPrototypeOf(object);
  363. if (proto === objectProto)
  364. return record.i;
  365. if (record.e === objectProto)
  366. throw A.wrapException(A.UnimplementedError$("Return interceptor for " + A.S(proto(object, record))));
  367. }
  368. $constructor = object.constructor;
  369. if ($constructor == null)
  370. interceptor = null;
  371. else {
  372. t1 = $._JS_INTEROP_INTERCEPTOR_TAG;
  373. if (t1 == null)
  374. t1 = $._JS_INTEROP_INTERCEPTOR_TAG = init.getIsolateTag("_$dart_js");
  375. interceptor = $constructor[t1];
  376. }
  377. if (interceptor != null)
  378. return interceptor;
  379. interceptor = A.lookupAndCacheInterceptor(object);
  380. if (interceptor != null)
  381. return interceptor;
  382. if (typeof object == "function")
  383. return B.JavaScriptFunction_methods;
  384. proto = Object.getPrototypeOf(object);
  385. if (proto == null)
  386. return B.PlainJavaScriptObject_methods;
  387. if (proto === Object.prototype)
  388. return B.PlainJavaScriptObject_methods;
  389. if (typeof $constructor == "function") {
  390. t1 = $._JS_INTEROP_INTERCEPTOR_TAG;
  391. if (t1 == null)
  392. t1 = $._JS_INTEROP_INTERCEPTOR_TAG = init.getIsolateTag("_$dart_js");
  393. Object.defineProperty($constructor, t1, {value: B.UnknownJavaScriptObject_methods, enumerable: false, writable: true, configurable: true});
  394. return B.UnknownJavaScriptObject_methods;
  395. }
  396. return B.UnknownJavaScriptObject_methods;
  397. },
  398. JSArray_JSArray$fixed($length, $E) {
  399. if ($length < 0 || $length > 4294967295)
  400. throw A.wrapException(A.RangeError$range($length, 0, 4294967295, "length", null));
  401. return J.JSArray_JSArray$markFixed(new Array($length), $E);
  402. },
  403. JSArray_JSArray$allocateFixed($length, $E) {
  404. if ($length > 4294967295)
  405. throw A.wrapException(A.RangeError$range($length, 0, 4294967295, "length", null));
  406. return J.JSArray_JSArray$markFixed(new Array($length), $E);
  407. },
  408. JSArray_JSArray$growable($length, $E) {
  409. if ($length < 0)
  410. throw A.wrapException(A.ArgumentError$("Length must be a non-negative integer: " + $length, null));
  411. return A._setArrayType(new Array($length), $E._eval$1("JSArray<0>"));
  412. },
  413. JSArray_JSArray$allocateGrowable($length, $E) {
  414. if ($length < 0)
  415. throw A.wrapException(A.ArgumentError$("Length must be a non-negative integer: " + $length, null));
  416. return A._setArrayType(new Array($length), $E._eval$1("JSArray<0>"));
  417. },
  418. JSArray_JSArray$markFixed(allocation, $E) {
  419. return J.JSArray_markFixedList(A._setArrayType(allocation, $E._eval$1("JSArray<0>")));
  420. },
  421. JSArray_markFixedList(list) {
  422. list.fixed$length = Array;
  423. return list;
  424. },
  425. JSArray_markUnmodifiableList(list) {
  426. list.fixed$length = Array;
  427. list.immutable$list = Array;
  428. return list;
  429. },
  430. JSArray__compareAny(a, b) {
  431. return J.compareTo$1$ns(a, b);
  432. },
  433. JSString__isWhitespace(codeUnit) {
  434. if (codeUnit < 256)
  435. switch (codeUnit) {
  436. case 9:
  437. case 10:
  438. case 11:
  439. case 12:
  440. case 13:
  441. case 32:
  442. case 133:
  443. case 160:
  444. return true;
  445. default:
  446. return false;
  447. }
  448. switch (codeUnit) {
  449. case 5760:
  450. case 8192:
  451. case 8193:
  452. case 8194:
  453. case 8195:
  454. case 8196:
  455. case 8197:
  456. case 8198:
  457. case 8199:
  458. case 8200:
  459. case 8201:
  460. case 8202:
  461. case 8232:
  462. case 8233:
  463. case 8239:
  464. case 8287:
  465. case 12288:
  466. case 65279:
  467. return true;
  468. default:
  469. return false;
  470. }
  471. },
  472. JSString__skipLeadingWhitespace(string, index) {
  473. var t1, codeUnit;
  474. for (t1 = string.length; index < t1;) {
  475. codeUnit = string.charCodeAt(index);
  476. if (codeUnit !== 32 && codeUnit !== 13 && !J.JSString__isWhitespace(codeUnit))
  477. break;
  478. ++index;
  479. }
  480. return index;
  481. },
  482. JSString__skipTrailingWhitespace(string, index) {
  483. var index0, codeUnit;
  484. for (; index > 0; index = index0) {
  485. index0 = index - 1;
  486. codeUnit = string.charCodeAt(index0);
  487. if (codeUnit !== 32 && codeUnit !== 13 && !J.JSString__isWhitespace(codeUnit))
  488. break;
  489. }
  490. return index;
  491. },
  492. getInterceptor$(receiver) {
  493. if (typeof receiver == "number") {
  494. if (Math.floor(receiver) == receiver)
  495. return J.JSInt.prototype;
  496. return J.JSNumNotInt.prototype;
  497. }
  498. if (typeof receiver == "string")
  499. return J.JSString.prototype;
  500. if (receiver == null)
  501. return J.JSNull.prototype;
  502. if (typeof receiver == "boolean")
  503. return J.JSBool.prototype;
  504. if (Array.isArray(receiver))
  505. return J.JSArray.prototype;
  506. if (typeof receiver != "object") {
  507. if (typeof receiver == "function")
  508. return J.JavaScriptFunction.prototype;
  509. if (typeof receiver == "symbol")
  510. return J.JavaScriptSymbol.prototype;
  511. if (typeof receiver == "bigint")
  512. return J.JavaScriptBigInt.prototype;
  513. return receiver;
  514. }
  515. if (receiver instanceof A.Object)
  516. return receiver;
  517. return J.getNativeInterceptor(receiver);
  518. },
  519. getInterceptor$ansx(receiver) {
  520. if (typeof receiver == "number")
  521. return J.JSNumber.prototype;
  522. if (typeof receiver == "string")
  523. return J.JSString.prototype;
  524. if (receiver == null)
  525. return receiver;
  526. if (Array.isArray(receiver))
  527. return J.JSArray.prototype;
  528. if (typeof receiver != "object") {
  529. if (typeof receiver == "function")
  530. return J.JavaScriptFunction.prototype;
  531. if (typeof receiver == "symbol")
  532. return J.JavaScriptSymbol.prototype;
  533. if (typeof receiver == "bigint")
  534. return J.JavaScriptBigInt.prototype;
  535. return receiver;
  536. }
  537. if (receiver instanceof A.Object)
  538. return receiver;
  539. return J.getNativeInterceptor(receiver);
  540. },
  541. getInterceptor$asx(receiver) {
  542. if (typeof receiver == "string")
  543. return J.JSString.prototype;
  544. if (receiver == null)
  545. return receiver;
  546. if (Array.isArray(receiver))
  547. return J.JSArray.prototype;
  548. if (typeof receiver != "object") {
  549. if (typeof receiver == "function")
  550. return J.JavaScriptFunction.prototype;
  551. if (typeof receiver == "symbol")
  552. return J.JavaScriptSymbol.prototype;
  553. if (typeof receiver == "bigint")
  554. return J.JavaScriptBigInt.prototype;
  555. return receiver;
  556. }
  557. if (receiver instanceof A.Object)
  558. return receiver;
  559. return J.getNativeInterceptor(receiver);
  560. },
  561. getInterceptor$ax(receiver) {
  562. if (receiver == null)
  563. return receiver;
  564. if (Array.isArray(receiver))
  565. return J.JSArray.prototype;
  566. if (typeof receiver != "object") {
  567. if (typeof receiver == "function")
  568. return J.JavaScriptFunction.prototype;
  569. if (typeof receiver == "symbol")
  570. return J.JavaScriptSymbol.prototype;
  571. if (typeof receiver == "bigint")
  572. return J.JavaScriptBigInt.prototype;
  573. return receiver;
  574. }
  575. if (receiver instanceof A.Object)
  576. return receiver;
  577. return J.getNativeInterceptor(receiver);
  578. },
  579. getInterceptor$in(receiver) {
  580. if (typeof receiver == "number") {
  581. if (Math.floor(receiver) == receiver)
  582. return J.JSInt.prototype;
  583. return J.JSNumNotInt.prototype;
  584. }
  585. if (receiver == null)
  586. return receiver;
  587. if (!(receiver instanceof A.Object))
  588. return J.UnknownJavaScriptObject.prototype;
  589. return receiver;
  590. },
  591. getInterceptor$n(receiver) {
  592. if (typeof receiver == "number")
  593. return J.JSNumber.prototype;
  594. if (receiver == null)
  595. return receiver;
  596. if (!(receiver instanceof A.Object))
  597. return J.UnknownJavaScriptObject.prototype;
  598. return receiver;
  599. },
  600. getInterceptor$ns(receiver) {
  601. if (typeof receiver == "number")
  602. return J.JSNumber.prototype;
  603. if (typeof receiver == "string")
  604. return J.JSString.prototype;
  605. if (receiver == null)
  606. return receiver;
  607. if (!(receiver instanceof A.Object))
  608. return J.UnknownJavaScriptObject.prototype;
  609. return receiver;
  610. },
  611. getInterceptor$s(receiver) {
  612. if (typeof receiver == "string")
  613. return J.JSString.prototype;
  614. if (receiver == null)
  615. return receiver;
  616. if (!(receiver instanceof A.Object))
  617. return J.UnknownJavaScriptObject.prototype;
  618. return receiver;
  619. },
  620. getInterceptor$x(receiver) {
  621. if (receiver == null)
  622. return receiver;
  623. if (typeof receiver != "object") {
  624. if (typeof receiver == "function")
  625. return J.JavaScriptFunction.prototype;
  626. if (typeof receiver == "symbol")
  627. return J.JavaScriptSymbol.prototype;
  628. if (typeof receiver == "bigint")
  629. return J.JavaScriptBigInt.prototype;
  630. return receiver;
  631. }
  632. if (receiver instanceof A.Object)
  633. return receiver;
  634. return J.getNativeInterceptor(receiver);
  635. },
  636. getInterceptor$z(receiver) {
  637. if (receiver == null)
  638. return receiver;
  639. if (!(receiver instanceof A.Object))
  640. return J.UnknownJavaScriptObject.prototype;
  641. return receiver;
  642. },
  643. set$AsyncCompiler$x(receiver, value) {
  644. return J.getInterceptor$x(receiver).set$AsyncCompiler(receiver, value);
  645. },
  646. set$CalculationInterpolation$x(receiver, value) {
  647. return J.getInterceptor$x(receiver).set$CalculationInterpolation(receiver, value);
  648. },
  649. set$CalculationOperation$x(receiver, value) {
  650. return J.getInterceptor$x(receiver).set$CalculationOperation(receiver, value);
  651. },
  652. set$Compiler$x(receiver, value) {
  653. return J.getInterceptor$x(receiver).set$Compiler(receiver, value);
  654. },
  655. set$Exception$x(receiver, value) {
  656. return J.getInterceptor$x(receiver).set$Exception(receiver, value);
  657. },
  658. set$FALSE$x(receiver, value) {
  659. return J.getInterceptor$x(receiver).set$FALSE(receiver, value);
  660. },
  661. set$Logger$x(receiver, value) {
  662. return J.getInterceptor$x(receiver).set$Logger(receiver, value);
  663. },
  664. set$NULL$x(receiver, value) {
  665. return J.getInterceptor$x(receiver).set$NULL(receiver, value);
  666. },
  667. set$NodePackageImporter$x(receiver, value) {
  668. return J.getInterceptor$x(receiver).set$NodePackageImporter(receiver, value);
  669. },
  670. set$SassArgumentList$x(receiver, value) {
  671. return J.getInterceptor$x(receiver).set$SassArgumentList(receiver, value);
  672. },
  673. set$SassBoolean$x(receiver, value) {
  674. return J.getInterceptor$x(receiver).set$SassBoolean(receiver, value);
  675. },
  676. set$SassCalculation$x(receiver, value) {
  677. return J.getInterceptor$x(receiver).set$SassCalculation(receiver, value);
  678. },
  679. set$SassColor$x(receiver, value) {
  680. return J.getInterceptor$x(receiver).set$SassColor(receiver, value);
  681. },
  682. set$SassFunction$x(receiver, value) {
  683. return J.getInterceptor$x(receiver).set$SassFunction(receiver, value);
  684. },
  685. set$SassList$x(receiver, value) {
  686. return J.getInterceptor$x(receiver).set$SassList(receiver, value);
  687. },
  688. set$SassMap$x(receiver, value) {
  689. return J.getInterceptor$x(receiver).set$SassMap(receiver, value);
  690. },
  691. set$SassMixin$x(receiver, value) {
  692. return J.getInterceptor$x(receiver).set$SassMixin(receiver, value);
  693. },
  694. set$SassNumber$x(receiver, value) {
  695. return J.getInterceptor$x(receiver).set$SassNumber(receiver, value);
  696. },
  697. set$SassString$x(receiver, value) {
  698. return J.getInterceptor$x(receiver).set$SassString(receiver, value);
  699. },
  700. set$TRUE$x(receiver, value) {
  701. return J.getInterceptor$x(receiver).set$TRUE(receiver, value);
  702. },
  703. set$Value$x(receiver, value) {
  704. return J.getInterceptor$x(receiver).set$Value(receiver, value);
  705. },
  706. set$Version$x(receiver, value) {
  707. return J.getInterceptor$x(receiver).set$Version(receiver, value);
  708. },
  709. set$cli_pkg_main_0_$x(receiver, value) {
  710. return J.getInterceptor$x(receiver).set$cli_pkg_main_0_(receiver, value);
  711. },
  712. set$compile$x(receiver, value) {
  713. return J.getInterceptor$x(receiver).set$compile(receiver, value);
  714. },
  715. set$compileAsync$x(receiver, value) {
  716. return J.getInterceptor$x(receiver).set$compileAsync(receiver, value);
  717. },
  718. set$compileString$x(receiver, value) {
  719. return J.getInterceptor$x(receiver).set$compileString(receiver, value);
  720. },
  721. set$compileStringAsync$x(receiver, value) {
  722. return J.getInterceptor$x(receiver).set$compileStringAsync(receiver, value);
  723. },
  724. set$context$x(receiver, value) {
  725. return J.getInterceptor$x(receiver).set$context(receiver, value);
  726. },
  727. set$dartValue$x(receiver, value) {
  728. return J.getInterceptor$x(receiver).set$dartValue(receiver, value);
  729. },
  730. set$deprecations$x(receiver, value) {
  731. return J.getInterceptor$x(receiver).set$deprecations(receiver, value);
  732. },
  733. set$exitCode$x(receiver, value) {
  734. return J.getInterceptor$x(receiver).set$exitCode(receiver, value);
  735. },
  736. set$info$x(receiver, value) {
  737. return J.getInterceptor$x(receiver).set$info(receiver, value);
  738. },
  739. set$initAsyncCompiler$x(receiver, value) {
  740. return J.getInterceptor$x(receiver).set$initAsyncCompiler(receiver, value);
  741. },
  742. set$initCompiler$x(receiver, value) {
  743. return J.getInterceptor$x(receiver).set$initCompiler(receiver, value);
  744. },
  745. set$length$asx(receiver, value) {
  746. return J.getInterceptor$asx(receiver).set$length(receiver, value);
  747. },
  748. set$loadParserExports_$x(receiver, value) {
  749. return J.getInterceptor$x(receiver).set$loadParserExports_(receiver, value);
  750. },
  751. set$render$x(receiver, value) {
  752. return J.getInterceptor$x(receiver).set$render(receiver, value);
  753. },
  754. set$renderSync$x(receiver, value) {
  755. return J.getInterceptor$x(receiver).set$renderSync(receiver, value);
  756. },
  757. set$sassFalse$x(receiver, value) {
  758. return J.getInterceptor$x(receiver).set$sassFalse(receiver, value);
  759. },
  760. set$sassNull$x(receiver, value) {
  761. return J.getInterceptor$x(receiver).set$sassNull(receiver, value);
  762. },
  763. set$sassTrue$x(receiver, value) {
  764. return J.getInterceptor$x(receiver).set$sassTrue(receiver, value);
  765. },
  766. set$types$x(receiver, value) {
  767. return J.getInterceptor$x(receiver).set$types(receiver, value);
  768. },
  769. get$$prototype$x(receiver) {
  770. return J.getInterceptor$x(receiver).get$$prototype(receiver);
  771. },
  772. get$_dartException$x(receiver) {
  773. return J.getInterceptor$x(receiver).get$_dartException(receiver);
  774. },
  775. get$alertAscii$x(receiver) {
  776. return J.getInterceptor$x(receiver).get$alertAscii(receiver);
  777. },
  778. get$alertColor$x(receiver) {
  779. return J.getInterceptor$x(receiver).get$alertColor(receiver);
  780. },
  781. get$argv$x(receiver) {
  782. return J.getInterceptor$x(receiver).get$argv(receiver);
  783. },
  784. get$brackets$x(receiver) {
  785. return J.getInterceptor$x(receiver).get$brackets(receiver);
  786. },
  787. get$charset$x(receiver) {
  788. return J.getInterceptor$x(receiver).get$charset(receiver);
  789. },
  790. get$code$x(receiver) {
  791. return J.getInterceptor$x(receiver).get$code(receiver);
  792. },
  793. get$current$x(receiver) {
  794. return J.getInterceptor$x(receiver).get$current(receiver);
  795. },
  796. get$dartValue$x(receiver) {
  797. return J.getInterceptor$x(receiver).get$dartValue(receiver);
  798. },
  799. get$debug$x(receiver) {
  800. return J.getInterceptor$x(receiver).get$debug(receiver);
  801. },
  802. get$denominatorUnits$x(receiver) {
  803. return J.getInterceptor$x(receiver).get$denominatorUnits(receiver);
  804. },
  805. get$end$z(receiver) {
  806. return J.getInterceptor$z(receiver).get$end(receiver);
  807. },
  808. get$env$x(receiver) {
  809. return J.getInterceptor$x(receiver).get$env(receiver);
  810. },
  811. get$exitCode$x(receiver) {
  812. return J.getInterceptor$x(receiver).get$exitCode(receiver);
  813. },
  814. get$fatalDeprecations$x(receiver) {
  815. return J.getInterceptor$x(receiver).get$fatalDeprecations(receiver);
  816. },
  817. get$fiber$x(receiver) {
  818. return J.getInterceptor$x(receiver).get$fiber(receiver);
  819. },
  820. get$file$x(receiver) {
  821. return J.getInterceptor$x(receiver).get$file(receiver);
  822. },
  823. get$filename$x(receiver) {
  824. return J.getInterceptor$x(receiver).get$filename(receiver);
  825. },
  826. get$first$ax(receiver) {
  827. return J.getInterceptor$ax(receiver).get$first(receiver);
  828. },
  829. get$functions$x(receiver) {
  830. return J.getInterceptor$x(receiver).get$functions(receiver);
  831. },
  832. get$futureDeprecations$x(receiver) {
  833. return J.getInterceptor$x(receiver).get$futureDeprecations(receiver);
  834. },
  835. get$hashCode$(receiver) {
  836. return J.getInterceptor$(receiver).get$hashCode(receiver);
  837. },
  838. get$id$x(receiver) {
  839. return J.getInterceptor$x(receiver).get$id(receiver);
  840. },
  841. get$importer$x(receiver) {
  842. return J.getInterceptor$x(receiver).get$importer(receiver);
  843. },
  844. get$importers$x(receiver) {
  845. return J.getInterceptor$x(receiver).get$importers(receiver);
  846. },
  847. get$isEmpty$asx(receiver) {
  848. return J.getInterceptor$asx(receiver).get$isEmpty(receiver);
  849. },
  850. get$isNotEmpty$asx(receiver) {
  851. return J.getInterceptor$asx(receiver).get$isNotEmpty(receiver);
  852. },
  853. get$isTTY$x(receiver) {
  854. return J.getInterceptor$x(receiver).get$isTTY(receiver);
  855. },
  856. get$iterator$ax(receiver) {
  857. return J.getInterceptor$ax(receiver).get$iterator(receiver);
  858. },
  859. get$keys$z(receiver) {
  860. return J.getInterceptor$z(receiver).get$keys(receiver);
  861. },
  862. get$last$ax(receiver) {
  863. return J.getInterceptor$ax(receiver).get$last(receiver);
  864. },
  865. get$length$asx(receiver) {
  866. return J.getInterceptor$asx(receiver).get$length(receiver);
  867. },
  868. get$loadPaths$x(receiver) {
  869. return J.getInterceptor$x(receiver).get$loadPaths(receiver);
  870. },
  871. get$logger$x(receiver) {
  872. return J.getInterceptor$x(receiver).get$logger(receiver);
  873. },
  874. get$message$x(receiver) {
  875. return J.getInterceptor$x(receiver).get$message(receiver);
  876. },
  877. get$method$x(receiver) {
  878. return J.getInterceptor$x(receiver).get$method(receiver);
  879. },
  880. get$mtime$x(receiver) {
  881. return J.getInterceptor$x(receiver).get$mtime(receiver);
  882. },
  883. get$name$x(receiver) {
  884. return J.getInterceptor$x(receiver).get$name(receiver);
  885. },
  886. get$numeratorUnits$x(receiver) {
  887. return J.getInterceptor$x(receiver).get$numeratorUnits(receiver);
  888. },
  889. get$options$x(receiver) {
  890. return J.getInterceptor$x(receiver).get$options(receiver);
  891. },
  892. get$parent$z(receiver) {
  893. return J.getInterceptor$z(receiver).get$parent(receiver);
  894. },
  895. get$path$x(receiver) {
  896. return J.getInterceptor$x(receiver).get$path(receiver);
  897. },
  898. get$platform$x(receiver) {
  899. return J.getInterceptor$x(receiver).get$platform(receiver);
  900. },
  901. get$quietDeps$x(receiver) {
  902. return J.getInterceptor$x(receiver).get$quietDeps(receiver);
  903. },
  904. get$quotes$x(receiver) {
  905. return J.getInterceptor$x(receiver).get$quotes(receiver);
  906. },
  907. get$release$x(receiver) {
  908. return J.getInterceptor$x(receiver).get$release(receiver);
  909. },
  910. get$reversed$ax(receiver) {
  911. return J.getInterceptor$ax(receiver).get$reversed(receiver);
  912. },
  913. get$runtimeType$(receiver) {
  914. return J.getInterceptor$(receiver).get$runtimeType(receiver);
  915. },
  916. get$separator$x(receiver) {
  917. return J.getInterceptor$x(receiver).get$separator(receiver);
  918. },
  919. get$sign$in(receiver) {
  920. if (typeof receiver === "number")
  921. return receiver > 0 ? 1 : receiver < 0 ? -1 : receiver;
  922. return J.getInterceptor$in(receiver).get$sign(receiver);
  923. },
  924. get$silenceDeprecations$x(receiver) {
  925. return J.getInterceptor$x(receiver).get$silenceDeprecations(receiver);
  926. },
  927. get$single$ax(receiver) {
  928. return J.getInterceptor$ax(receiver).get$single(receiver);
  929. },
  930. get$sourceMap$x(receiver) {
  931. return J.getInterceptor$x(receiver).get$sourceMap(receiver);
  932. },
  933. get$sourceMapIncludeSources$x(receiver) {
  934. return J.getInterceptor$x(receiver).get$sourceMapIncludeSources(receiver);
  935. },
  936. get$space$x(receiver) {
  937. return J.getInterceptor$x(receiver).get$space(receiver);
  938. },
  939. get$span$z(receiver) {
  940. return J.getInterceptor$z(receiver).get$span(receiver);
  941. },
  942. get$start$z(receiver) {
  943. return J.getInterceptor$z(receiver).get$start(receiver);
  944. },
  945. get$stderr$x(receiver) {
  946. return J.getInterceptor$x(receiver).get$stderr(receiver);
  947. },
  948. get$stdout$x(receiver) {
  949. return J.getInterceptor$x(receiver).get$stdout(receiver);
  950. },
  951. get$style$x(receiver) {
  952. return J.getInterceptor$x(receiver).get$style(receiver);
  953. },
  954. get$syntax$x(receiver) {
  955. return J.getInterceptor$x(receiver).get$syntax(receiver);
  956. },
  957. get$trace$z(receiver) {
  958. return J.getInterceptor$z(receiver).get$trace(receiver);
  959. },
  960. get$url$x(receiver) {
  961. return J.getInterceptor$x(receiver).get$url(receiver);
  962. },
  963. get$verbose$x(receiver) {
  964. return J.getInterceptor$x(receiver).get$verbose(receiver);
  965. },
  966. get$warn$x(receiver) {
  967. return J.getInterceptor$x(receiver).get$warn(receiver);
  968. },
  969. get$weight$x(receiver) {
  970. return J.getInterceptor$x(receiver).get$weight(receiver);
  971. },
  972. $add$ansx(receiver, a0) {
  973. if (typeof receiver == "number" && typeof a0 == "number")
  974. return receiver + a0;
  975. return J.getInterceptor$ansx(receiver).$add(receiver, a0);
  976. },
  977. $eq$(receiver, a0) {
  978. if (receiver == null)
  979. return a0 == null;
  980. if (typeof receiver != "object")
  981. return a0 != null && receiver === a0;
  982. return J.getInterceptor$(receiver).$eq(receiver, a0);
  983. },
  984. $index$asx(receiver, a0) {
  985. if (typeof a0 === "number")
  986. if (Array.isArray(receiver) || typeof receiver == "string" || A.isJsIndexable(receiver, receiver[init.dispatchPropertyName]))
  987. if (a0 >>> 0 === a0 && a0 < receiver.length)
  988. return receiver[a0];
  989. return J.getInterceptor$asx(receiver).$index(receiver, a0);
  990. },
  991. $indexSet$ax(receiver, a0, a1) {
  992. if (typeof a0 === "number")
  993. if ((Array.isArray(receiver) || A.isJsIndexable(receiver, receiver[init.dispatchPropertyName])) && !receiver.immutable$list && a0 >>> 0 === a0 && a0 < receiver.length)
  994. return receiver[a0] = a1;
  995. return J.getInterceptor$ax(receiver).$indexSet(receiver, a0, a1);
  996. },
  997. $set$2$x(receiver, a0, a1) {
  998. return J.getInterceptor$x(receiver).$set$2(receiver, a0, a1);
  999. },
  1000. add$1$ax(receiver, a0) {
  1001. return J.getInterceptor$ax(receiver).add$1(receiver, a0);
  1002. },
  1003. addAll$1$ax(receiver, a0) {
  1004. return J.getInterceptor$ax(receiver).addAll$1(receiver, a0);
  1005. },
  1006. allMatches$1$s(receiver, a0) {
  1007. return J.getInterceptor$s(receiver).allMatches$1(receiver, a0);
  1008. },
  1009. allMatches$2$s(receiver, a0, a1) {
  1010. return J.getInterceptor$s(receiver).allMatches$2(receiver, a0, a1);
  1011. },
  1012. any$1$ax(receiver, a0) {
  1013. return J.getInterceptor$ax(receiver).any$1(receiver, a0);
  1014. },
  1015. apply$2$x(receiver, a0, a1) {
  1016. return J.getInterceptor$x(receiver).apply$2(receiver, a0, a1);
  1017. },
  1018. asImmutable$0$x(receiver) {
  1019. return J.getInterceptor$x(receiver).asImmutable$0(receiver);
  1020. },
  1021. asMutable$0$x(receiver) {
  1022. return J.getInterceptor$x(receiver).asMutable$0(receiver);
  1023. },
  1024. canonicalize$4$baseImporter$baseUrl$forImport$x(receiver, a0, a1, a2, a3) {
  1025. return J.getInterceptor$x(receiver).canonicalize$4$baseImporter$baseUrl$forImport(receiver, a0, a1, a2, a3);
  1026. },
  1027. cast$1$0$ax(receiver, $T1) {
  1028. return J.getInterceptor$ax(receiver).cast$1$0(receiver, $T1);
  1029. },
  1030. close$0$x(receiver) {
  1031. return J.getInterceptor$x(receiver).close$0(receiver);
  1032. },
  1033. codeUnitAt$1$s(receiver, a0) {
  1034. return J.getInterceptor$s(receiver).codeUnitAt$1(receiver, a0);
  1035. },
  1036. compareTo$1$ns(receiver, a0) {
  1037. return J.getInterceptor$ns(receiver).compareTo$1(receiver, a0);
  1038. },
  1039. contains$1$asx(receiver, a0) {
  1040. return J.getInterceptor$asx(receiver).contains$1(receiver, a0);
  1041. },
  1042. createInterface$1$x(receiver, a0) {
  1043. return J.getInterceptor$x(receiver).createInterface$1(receiver, a0);
  1044. },
  1045. createRequire$1$x(receiver, a0) {
  1046. return J.getInterceptor$x(receiver).createRequire$1(receiver, a0);
  1047. },
  1048. elementAt$1$ax(receiver, a0) {
  1049. return J.getInterceptor$ax(receiver).elementAt$1(receiver, a0);
  1050. },
  1051. endsWith$1$s(receiver, a0) {
  1052. return J.getInterceptor$s(receiver).endsWith$1(receiver, a0);
  1053. },
  1054. error$1$x(receiver, a0) {
  1055. return J.getInterceptor$x(receiver).error$1(receiver, a0);
  1056. },
  1057. every$1$ax(receiver, a0) {
  1058. return J.getInterceptor$ax(receiver).every$1(receiver, a0);
  1059. },
  1060. existsSync$1$x(receiver, a0) {
  1061. return J.getInterceptor$x(receiver).existsSync$1(receiver, a0);
  1062. },
  1063. expand$1$1$ax(receiver, a0, $T1) {
  1064. return J.getInterceptor$ax(receiver).expand$1$1(receiver, a0, $T1);
  1065. },
  1066. fillRange$3$ax(receiver, a0, a1, a2) {
  1067. return J.getInterceptor$ax(receiver).fillRange$3(receiver, a0, a1, a2);
  1068. },
  1069. fold$2$ax(receiver, a0, a1) {
  1070. return J.getInterceptor$ax(receiver).fold$2(receiver, a0, a1);
  1071. },
  1072. forEach$1$ax(receiver, a0) {
  1073. return J.getInterceptor$ax(receiver).forEach$1(receiver, a0);
  1074. },
  1075. getRange$2$ax(receiver, a0, a1) {
  1076. return J.getInterceptor$ax(receiver).getRange$2(receiver, a0, a1);
  1077. },
  1078. getTime$0$x(receiver) {
  1079. return J.getInterceptor$x(receiver).getTime$0(receiver);
  1080. },
  1081. isDirectory$0$x(receiver) {
  1082. return J.getInterceptor$x(receiver).isDirectory$0(receiver);
  1083. },
  1084. isFile$0$x(receiver) {
  1085. return J.getInterceptor$x(receiver).isFile$0(receiver);
  1086. },
  1087. join$1$ax(receiver, a0) {
  1088. return J.getInterceptor$ax(receiver).join$1(receiver, a0);
  1089. },
  1090. listen$1$z(receiver, a0) {
  1091. return J.getInterceptor$z(receiver).listen$1(receiver, a0);
  1092. },
  1093. log$1$x(receiver, a0) {
  1094. return J.getInterceptor$x(receiver).log$1(receiver, a0);
  1095. },
  1096. map$1$1$ax(receiver, a0, $T1) {
  1097. return J.getInterceptor$ax(receiver).map$1$1(receiver, a0, $T1);
  1098. },
  1099. matchAsPrefix$2$s(receiver, a0, a1) {
  1100. return J.getInterceptor$s(receiver).matchAsPrefix$2(receiver, a0, a1);
  1101. },
  1102. mkdirSync$1$x(receiver, a0) {
  1103. return J.getInterceptor$x(receiver).mkdirSync$1(receiver, a0);
  1104. },
  1105. noSuchMethod$1$(receiver, a0) {
  1106. return J.getInterceptor$(receiver).noSuchMethod$1(receiver, a0);
  1107. },
  1108. on$2$x(receiver, a0, a1) {
  1109. return J.getInterceptor$x(receiver).on$2(receiver, a0, a1);
  1110. },
  1111. parse$0$z(receiver) {
  1112. return J.getInterceptor$z(receiver).parse$0(receiver);
  1113. },
  1114. readFileSync$2$x(receiver, a0, a1) {
  1115. return J.getInterceptor$x(receiver).readFileSync$2(receiver, a0, a1);
  1116. },
  1117. readdirSync$1$x(receiver, a0) {
  1118. return J.getInterceptor$x(receiver).readdirSync$1(receiver, a0);
  1119. },
  1120. remove$1$z(receiver, a0) {
  1121. return J.getInterceptor$z(receiver).remove$1(receiver, a0);
  1122. },
  1123. removeRange$2$ax(receiver, a0, a1) {
  1124. return J.getInterceptor$ax(receiver).removeRange$2(receiver, a0, a1);
  1125. },
  1126. replaceFirst$2$s(receiver, a0, a1) {
  1127. return J.getInterceptor$s(receiver).replaceFirst$2(receiver, a0, a1);
  1128. },
  1129. resolve$1$x(receiver, a0) {
  1130. return J.getInterceptor$x(receiver).resolve$1(receiver, a0);
  1131. },
  1132. run$0$x(receiver) {
  1133. return J.getInterceptor$x(receiver).run$0(receiver);
  1134. },
  1135. run$1$x(receiver, a0) {
  1136. return J.getInterceptor$x(receiver).run$1(receiver, a0);
  1137. },
  1138. setRange$4$ax(receiver, a0, a1, a2, a3) {
  1139. return J.getInterceptor$ax(receiver).setRange$4(receiver, a0, a1, a2, a3);
  1140. },
  1141. skip$1$ax(receiver, a0) {
  1142. return J.getInterceptor$ax(receiver).skip$1(receiver, a0);
  1143. },
  1144. sort$1$ax(receiver, a0) {
  1145. return J.getInterceptor$ax(receiver).sort$1(receiver, a0);
  1146. },
  1147. startsWith$1$s(receiver, a0) {
  1148. return J.getInterceptor$s(receiver).startsWith$1(receiver, a0);
  1149. },
  1150. statSync$1$x(receiver, a0) {
  1151. return J.getInterceptor$x(receiver).statSync$1(receiver, a0);
  1152. },
  1153. sublist$1$ax(receiver, a0) {
  1154. return J.getInterceptor$ax(receiver).sublist$1(receiver, a0);
  1155. },
  1156. substring$1$s(receiver, a0) {
  1157. return J.getInterceptor$s(receiver).substring$1(receiver, a0);
  1158. },
  1159. substring$2$s(receiver, a0, a1) {
  1160. return J.getInterceptor$s(receiver).substring$2(receiver, a0, a1);
  1161. },
  1162. take$1$ax(receiver, a0) {
  1163. return J.getInterceptor$ax(receiver).take$1(receiver, a0);
  1164. },
  1165. then$1$1$x(receiver, a0, $T1) {
  1166. return J.getInterceptor$x(receiver).then$1$1(receiver, a0, $T1);
  1167. },
  1168. then$1$2$onError$x(receiver, a0, a1, $T1) {
  1169. return J.getInterceptor$x(receiver).then$1$2$onError(receiver, a0, a1, $T1);
  1170. },
  1171. then$2$x(receiver, a0, a1) {
  1172. return J.getInterceptor$x(receiver).then$2(receiver, a0, a1);
  1173. },
  1174. toArray$0$x(receiver) {
  1175. return J.getInterceptor$x(receiver).toArray$0(receiver);
  1176. },
  1177. toList$0$ax(receiver) {
  1178. return J.getInterceptor$ax(receiver).toList$0(receiver);
  1179. },
  1180. toList$1$growable$ax(receiver, a0) {
  1181. return J.getInterceptor$ax(receiver).toList$1$growable(receiver, a0);
  1182. },
  1183. toRadixString$1$n(receiver, a0) {
  1184. return J.getInterceptor$n(receiver).toRadixString$1(receiver, a0);
  1185. },
  1186. toSet$0$ax(receiver) {
  1187. return J.getInterceptor$ax(receiver).toSet$0(receiver);
  1188. },
  1189. toString$0$(receiver) {
  1190. return J.getInterceptor$(receiver).toString$0(receiver);
  1191. },
  1192. toString$1$color$(receiver, a0) {
  1193. return J.getInterceptor$(receiver).toString$1$color(receiver, a0);
  1194. },
  1195. trim$0$s(receiver) {
  1196. return J.getInterceptor$s(receiver).trim$0(receiver);
  1197. },
  1198. unlinkSync$1$x(receiver, a0) {
  1199. return J.getInterceptor$x(receiver).unlinkSync$1(receiver, a0);
  1200. },
  1201. unsubscribe$0$x(receiver) {
  1202. return J.getInterceptor$x(receiver).unsubscribe$0(receiver);
  1203. },
  1204. visitAtRootRule$1$x(receiver, a0) {
  1205. return J.getInterceptor$x(receiver).visitAtRootRule$1(receiver, a0);
  1206. },
  1207. visitAtRule$1$x(receiver, a0) {
  1208. return J.getInterceptor$x(receiver).visitAtRule$1(receiver, a0);
  1209. },
  1210. visitBinaryOperationExpression$1$x(receiver, a0) {
  1211. return J.getInterceptor$x(receiver).visitBinaryOperationExpression$1(receiver, a0);
  1212. },
  1213. visitBooleanExpression$1$x(receiver, a0) {
  1214. return J.getInterceptor$x(receiver).visitBooleanExpression$1(receiver, a0);
  1215. },
  1216. visitColorExpression$1$x(receiver, a0) {
  1217. return J.getInterceptor$x(receiver).visitColorExpression$1(receiver, a0);
  1218. },
  1219. visitContentBlock$1$x(receiver, a0) {
  1220. return J.getInterceptor$x(receiver).visitContentBlock$1(receiver, a0);
  1221. },
  1222. visitContentRule$1$x(receiver, a0) {
  1223. return J.getInterceptor$x(receiver).visitContentRule$1(receiver, a0);
  1224. },
  1225. visitDebugRule$1$x(receiver, a0) {
  1226. return J.getInterceptor$x(receiver).visitDebugRule$1(receiver, a0);
  1227. },
  1228. visitDeclaration$1$x(receiver, a0) {
  1229. return J.getInterceptor$x(receiver).visitDeclaration$1(receiver, a0);
  1230. },
  1231. visitEachRule$1$x(receiver, a0) {
  1232. return J.getInterceptor$x(receiver).visitEachRule$1(receiver, a0);
  1233. },
  1234. visitErrorRule$1$x(receiver, a0) {
  1235. return J.getInterceptor$x(receiver).visitErrorRule$1(receiver, a0);
  1236. },
  1237. visitExtendRule$1$x(receiver, a0) {
  1238. return J.getInterceptor$x(receiver).visitExtendRule$1(receiver, a0);
  1239. },
  1240. visitForRule$1$x(receiver, a0) {
  1241. return J.getInterceptor$x(receiver).visitForRule$1(receiver, a0);
  1242. },
  1243. visitForwardRule$1$x(receiver, a0) {
  1244. return J.getInterceptor$x(receiver).visitForwardRule$1(receiver, a0);
  1245. },
  1246. visitFunctionExpression$1$x(receiver, a0) {
  1247. return J.getInterceptor$x(receiver).visitFunctionExpression$1(receiver, a0);
  1248. },
  1249. visitFunctionRule$1$x(receiver, a0) {
  1250. return J.getInterceptor$x(receiver).visitFunctionRule$1(receiver, a0);
  1251. },
  1252. visitIfExpression$1$x(receiver, a0) {
  1253. return J.getInterceptor$x(receiver).visitIfExpression$1(receiver, a0);
  1254. },
  1255. visitIfRule$1$x(receiver, a0) {
  1256. return J.getInterceptor$x(receiver).visitIfRule$1(receiver, a0);
  1257. },
  1258. visitImportRule$1$x(receiver, a0) {
  1259. return J.getInterceptor$x(receiver).visitImportRule$1(receiver, a0);
  1260. },
  1261. visitIncludeRule$1$x(receiver, a0) {
  1262. return J.getInterceptor$x(receiver).visitIncludeRule$1(receiver, a0);
  1263. },
  1264. visitInterpolatedFunctionExpression$1$x(receiver, a0) {
  1265. return J.getInterceptor$x(receiver).visitInterpolatedFunctionExpression$1(receiver, a0);
  1266. },
  1267. visitListExpression$1$x(receiver, a0) {
  1268. return J.getInterceptor$x(receiver).visitListExpression$1(receiver, a0);
  1269. },
  1270. visitLoudComment$1$x(receiver, a0) {
  1271. return J.getInterceptor$x(receiver).visitLoudComment$1(receiver, a0);
  1272. },
  1273. visitMapExpression$1$x(receiver, a0) {
  1274. return J.getInterceptor$x(receiver).visitMapExpression$1(receiver, a0);
  1275. },
  1276. visitMediaRule$1$x(receiver, a0) {
  1277. return J.getInterceptor$x(receiver).visitMediaRule$1(receiver, a0);
  1278. },
  1279. visitMixinRule$1$x(receiver, a0) {
  1280. return J.getInterceptor$x(receiver).visitMixinRule$1(receiver, a0);
  1281. },
  1282. visitNullExpression$1$x(receiver, a0) {
  1283. return J.getInterceptor$x(receiver).visitNullExpression$1(receiver, a0);
  1284. },
  1285. visitNumberExpression$1$x(receiver, a0) {
  1286. return J.getInterceptor$x(receiver).visitNumberExpression$1(receiver, a0);
  1287. },
  1288. visitParenthesizedExpression$1$x(receiver, a0) {
  1289. return J.getInterceptor$x(receiver).visitParenthesizedExpression$1(receiver, a0);
  1290. },
  1291. visitReturnRule$1$x(receiver, a0) {
  1292. return J.getInterceptor$x(receiver).visitReturnRule$1(receiver, a0);
  1293. },
  1294. visitSelectorExpression$1$x(receiver, a0) {
  1295. return J.getInterceptor$x(receiver).visitSelectorExpression$1(receiver, a0);
  1296. },
  1297. visitSilentComment$1$x(receiver, a0) {
  1298. return J.getInterceptor$x(receiver).visitSilentComment$1(receiver, a0);
  1299. },
  1300. visitStringExpression$1$x(receiver, a0) {
  1301. return J.getInterceptor$x(receiver).visitStringExpression$1(receiver, a0);
  1302. },
  1303. visitStyleRule$1$x(receiver, a0) {
  1304. return J.getInterceptor$x(receiver).visitStyleRule$1(receiver, a0);
  1305. },
  1306. visitStylesheet$1$x(receiver, a0) {
  1307. return J.getInterceptor$x(receiver).visitStylesheet$1(receiver, a0);
  1308. },
  1309. visitSupportsExpression$1$x(receiver, a0) {
  1310. return J.getInterceptor$x(receiver).visitSupportsExpression$1(receiver, a0);
  1311. },
  1312. visitSupportsRule$1$x(receiver, a0) {
  1313. return J.getInterceptor$x(receiver).visitSupportsRule$1(receiver, a0);
  1314. },
  1315. visitUnaryOperationExpression$1$x(receiver, a0) {
  1316. return J.getInterceptor$x(receiver).visitUnaryOperationExpression$1(receiver, a0);
  1317. },
  1318. visitUseRule$1$x(receiver, a0) {
  1319. return J.getInterceptor$x(receiver).visitUseRule$1(receiver, a0);
  1320. },
  1321. visitValueExpression$1$x(receiver, a0) {
  1322. return J.getInterceptor$x(receiver).visitValueExpression$1(receiver, a0);
  1323. },
  1324. visitVariableDeclaration$1$x(receiver, a0) {
  1325. return J.getInterceptor$x(receiver).visitVariableDeclaration$1(receiver, a0);
  1326. },
  1327. visitVariableExpression$1$x(receiver, a0) {
  1328. return J.getInterceptor$x(receiver).visitVariableExpression$1(receiver, a0);
  1329. },
  1330. visitWarnRule$1$x(receiver, a0) {
  1331. return J.getInterceptor$x(receiver).visitWarnRule$1(receiver, a0);
  1332. },
  1333. visitWhileRule$1$x(receiver, a0) {
  1334. return J.getInterceptor$x(receiver).visitWhileRule$1(receiver, a0);
  1335. },
  1336. watch$2$x(receiver, a0, a1) {
  1337. return J.getInterceptor$x(receiver).watch$2(receiver, a0, a1);
  1338. },
  1339. where$1$ax(receiver, a0) {
  1340. return J.getInterceptor$ax(receiver).where$1(receiver, a0);
  1341. },
  1342. write$1$x(receiver, a0) {
  1343. return J.getInterceptor$x(receiver).write$1(receiver, a0);
  1344. },
  1345. writeFileSync$2$x(receiver, a0, a1) {
  1346. return J.getInterceptor$x(receiver).writeFileSync$2(receiver, a0, a1);
  1347. },
  1348. yield$0$x(receiver) {
  1349. return J.getInterceptor$x(receiver).yield$0(receiver);
  1350. },
  1351. Interceptor: function Interceptor() {
  1352. },
  1353. JSBool: function JSBool() {
  1354. },
  1355. JSNull: function JSNull() {
  1356. },
  1357. JavaScriptObject: function JavaScriptObject() {
  1358. },
  1359. LegacyJavaScriptObject: function LegacyJavaScriptObject() {
  1360. },
  1361. PlainJavaScriptObject: function PlainJavaScriptObject() {
  1362. },
  1363. UnknownJavaScriptObject: function UnknownJavaScriptObject() {
  1364. },
  1365. JavaScriptFunction: function JavaScriptFunction() {
  1366. },
  1367. JavaScriptBigInt: function JavaScriptBigInt() {
  1368. },
  1369. JavaScriptSymbol: function JavaScriptSymbol() {
  1370. },
  1371. JSArray: function JSArray(t0) {
  1372. this.$ti = t0;
  1373. },
  1374. JSUnmodifiableArray: function JSUnmodifiableArray(t0) {
  1375. this.$ti = t0;
  1376. },
  1377. ArrayIterator: function ArrayIterator(t0, t1, t2) {
  1378. var _ = this;
  1379. _._iterable = t0;
  1380. _._length = t1;
  1381. _._index = 0;
  1382. _._current = null;
  1383. _.$ti = t2;
  1384. },
  1385. JSNumber: function JSNumber() {
  1386. },
  1387. JSInt: function JSInt() {
  1388. },
  1389. JSNumNotInt: function JSNumNotInt() {
  1390. },
  1391. JSString: function JSString() {
  1392. }
  1393. },
  1394. A = {JS_CONST: function JS_CONST() {
  1395. },
  1396. CastIterable_CastIterable(source, $S, $T) {
  1397. if ($S._eval$1("EfficientLengthIterable<0>")._is(source))
  1398. return new A._EfficientLengthCastIterable(source, $S._eval$1("@<0>")._bind$1($T)._eval$1("_EfficientLengthCastIterable<1,2>"));
  1399. return new A.CastIterable(source, $S._eval$1("@<0>")._bind$1($T)._eval$1("CastIterable<1,2>"));
  1400. },
  1401. LateError$localNI(localName) {
  1402. return new A.LateError("Local '" + localName + "' has not been initialized.");
  1403. },
  1404. ReachabilityError$(_message) {
  1405. return new A.ReachabilityError(_message);
  1406. },
  1407. hexDigitValue(char) {
  1408. var letter,
  1409. digit = char ^ 48;
  1410. if (digit <= 9)
  1411. return digit;
  1412. letter = char | 32;
  1413. if (97 <= letter && letter <= 102)
  1414. return letter - 87;
  1415. return -1;
  1416. },
  1417. SystemHash_combine(hash, value) {
  1418. hash = hash + value & 536870911;
  1419. hash = hash + ((hash & 524287) << 10) & 536870911;
  1420. return hash ^ hash >>> 6;
  1421. },
  1422. SystemHash_finish(hash) {
  1423. hash = hash + ((hash & 67108863) << 3) & 536870911;
  1424. hash ^= hash >>> 11;
  1425. return hash + ((hash & 16383) << 15) & 536870911;
  1426. },
  1427. checkNotNullable(value, $name, $T) {
  1428. return value;
  1429. },
  1430. isToStringVisiting(object) {
  1431. var t1, i;
  1432. for (t1 = $.toStringVisiting.length, i = 0; i < t1; ++i)
  1433. if (object === $.toStringVisiting[i])
  1434. return true;
  1435. return false;
  1436. },
  1437. SubListIterable$(_iterable, _start, _endOrLength, $E) {
  1438. A.RangeError_checkNotNegative(_start, "start");
  1439. if (_endOrLength != null) {
  1440. A.RangeError_checkNotNegative(_endOrLength, "end");
  1441. if (_start > _endOrLength)
  1442. A.throwExpression(A.RangeError$range(_start, 0, _endOrLength, "start", null));
  1443. }
  1444. return new A.SubListIterable(_iterable, _start, _endOrLength, $E._eval$1("SubListIterable<0>"));
  1445. },
  1446. MappedIterable_MappedIterable(iterable, $function, $S, $T) {
  1447. if (type$.EfficientLengthIterable_dynamic._is(iterable))
  1448. return new A.EfficientLengthMappedIterable(iterable, $function, $S._eval$1("@<0>")._bind$1($T)._eval$1("EfficientLengthMappedIterable<1,2>"));
  1449. return new A.MappedIterable(iterable, $function, $S._eval$1("@<0>")._bind$1($T)._eval$1("MappedIterable<1,2>"));
  1450. },
  1451. TakeIterable_TakeIterable(iterable, takeCount, $E) {
  1452. var _s9_ = "takeCount";
  1453. A.ArgumentError_checkNotNull(takeCount, _s9_);
  1454. A.RangeError_checkNotNegative(takeCount, _s9_);
  1455. if (type$.EfficientLengthIterable_dynamic._is(iterable))
  1456. return new A.EfficientLengthTakeIterable(iterable, takeCount, $E._eval$1("EfficientLengthTakeIterable<0>"));
  1457. return new A.TakeIterable(iterable, takeCount, $E._eval$1("TakeIterable<0>"));
  1458. },
  1459. SkipIterable_SkipIterable(iterable, count, $E) {
  1460. var _s5_ = "count";
  1461. if (type$.EfficientLengthIterable_dynamic._is(iterable)) {
  1462. A.ArgumentError_checkNotNull(count, _s5_);
  1463. A.RangeError_checkNotNegative(count, _s5_);
  1464. return new A.EfficientLengthSkipIterable(iterable, count, $E._eval$1("EfficientLengthSkipIterable<0>"));
  1465. }
  1466. A.ArgumentError_checkNotNull(count, _s5_);
  1467. A.RangeError_checkNotNegative(count, _s5_);
  1468. return new A.SkipIterable(iterable, count, $E._eval$1("SkipIterable<0>"));
  1469. },
  1470. FollowedByIterable_FollowedByIterable$firstEfficient(first, second, $E) {
  1471. if ($E._eval$1("EfficientLengthIterable<0>")._is(second))
  1472. return new A.EfficientLengthFollowedByIterable(first, second, $E._eval$1("EfficientLengthFollowedByIterable<0>"));
  1473. return new A.FollowedByIterable(first, second, $E._eval$1("FollowedByIterable<0>"));
  1474. },
  1475. IterableElementError_noElement() {
  1476. return new A.StateError("No element");
  1477. },
  1478. IterableElementError_tooMany() {
  1479. return new A.StateError("Too many elements");
  1480. },
  1481. IterableElementError_tooFew() {
  1482. return new A.StateError("Too few elements");
  1483. },
  1484. Sort__doSort(a, left, right, compare) {
  1485. if (right - left <= 32)
  1486. A.Sort__insertionSort(a, left, right, compare);
  1487. else
  1488. A.Sort__dualPivotQuicksort(a, left, right, compare);
  1489. },
  1490. Sort__insertionSort(a, left, right, compare) {
  1491. var i, t1, el, j, j0;
  1492. for (i = left + 1, t1 = J.getInterceptor$asx(a); i <= right; ++i) {
  1493. el = t1.$index(a, i);
  1494. j = i;
  1495. while (true) {
  1496. if (!(j > left && compare.call$2(t1.$index(a, j - 1), el) > 0))
  1497. break;
  1498. j0 = j - 1;
  1499. t1.$indexSet(a, j, t1.$index(a, j0));
  1500. j = j0;
  1501. }
  1502. t1.$indexSet(a, j, el);
  1503. }
  1504. },
  1505. Sort__dualPivotQuicksort(a, left, right, compare) {
  1506. var t0, less, great, pivots_are_equal, k, ak, comp, great0, less0, t2,
  1507. sixth = B.JSInt_methods._tdivFast$1(right - left + 1, 6),
  1508. index1 = left + sixth,
  1509. index5 = right - sixth,
  1510. index3 = B.JSInt_methods._tdivFast$1(left + right, 2),
  1511. index2 = index3 - sixth,
  1512. index4 = index3 + sixth,
  1513. t1 = J.getInterceptor$asx(a),
  1514. el1 = t1.$index(a, index1),
  1515. el2 = t1.$index(a, index2),
  1516. el3 = t1.$index(a, index3),
  1517. el4 = t1.$index(a, index4),
  1518. el5 = t1.$index(a, index5);
  1519. if (compare.call$2(el1, el2) > 0) {
  1520. t0 = el2;
  1521. el2 = el1;
  1522. el1 = t0;
  1523. }
  1524. if (compare.call$2(el4, el5) > 0) {
  1525. t0 = el5;
  1526. el5 = el4;
  1527. el4 = t0;
  1528. }
  1529. if (compare.call$2(el1, el3) > 0) {
  1530. t0 = el3;
  1531. el3 = el1;
  1532. el1 = t0;
  1533. }
  1534. if (compare.call$2(el2, el3) > 0) {
  1535. t0 = el3;
  1536. el3 = el2;
  1537. el2 = t0;
  1538. }
  1539. if (compare.call$2(el1, el4) > 0) {
  1540. t0 = el4;
  1541. el4 = el1;
  1542. el1 = t0;
  1543. }
  1544. if (compare.call$2(el3, el4) > 0) {
  1545. t0 = el4;
  1546. el4 = el3;
  1547. el3 = t0;
  1548. }
  1549. if (compare.call$2(el2, el5) > 0) {
  1550. t0 = el5;
  1551. el5 = el2;
  1552. el2 = t0;
  1553. }
  1554. if (compare.call$2(el2, el3) > 0) {
  1555. t0 = el3;
  1556. el3 = el2;
  1557. el2 = t0;
  1558. }
  1559. if (compare.call$2(el4, el5) > 0) {
  1560. t0 = el5;
  1561. el5 = el4;
  1562. el4 = t0;
  1563. }
  1564. t1.$indexSet(a, index1, el1);
  1565. t1.$indexSet(a, index3, el3);
  1566. t1.$indexSet(a, index5, el5);
  1567. t1.$indexSet(a, index2, t1.$index(a, left));
  1568. t1.$indexSet(a, index4, t1.$index(a, right));
  1569. less = left + 1;
  1570. great = right - 1;
  1571. pivots_are_equal = J.$eq$(compare.call$2(el2, el4), 0);
  1572. if (pivots_are_equal)
  1573. for (k = less; k <= great; ++k) {
  1574. ak = t1.$index(a, k);
  1575. comp = compare.call$2(ak, el2);
  1576. if (comp === 0)
  1577. continue;
  1578. if (comp < 0) {
  1579. if (k !== less) {
  1580. t1.$indexSet(a, k, t1.$index(a, less));
  1581. t1.$indexSet(a, less, ak);
  1582. }
  1583. ++less;
  1584. } else
  1585. for (; true;) {
  1586. comp = compare.call$2(t1.$index(a, great), el2);
  1587. if (comp > 0) {
  1588. --great;
  1589. continue;
  1590. } else {
  1591. great0 = great - 1;
  1592. if (comp < 0) {
  1593. t1.$indexSet(a, k, t1.$index(a, less));
  1594. less0 = less + 1;
  1595. t1.$indexSet(a, less, t1.$index(a, great));
  1596. t1.$indexSet(a, great, ak);
  1597. great = great0;
  1598. less = less0;
  1599. break;
  1600. } else {
  1601. t1.$indexSet(a, k, t1.$index(a, great));
  1602. t1.$indexSet(a, great, ak);
  1603. great = great0;
  1604. break;
  1605. }
  1606. }
  1607. }
  1608. }
  1609. else
  1610. for (k = less; k <= great; ++k) {
  1611. ak = t1.$index(a, k);
  1612. if (compare.call$2(ak, el2) < 0) {
  1613. if (k !== less) {
  1614. t1.$indexSet(a, k, t1.$index(a, less));
  1615. t1.$indexSet(a, less, ak);
  1616. }
  1617. ++less;
  1618. } else if (compare.call$2(ak, el4) > 0)
  1619. for (; true;)
  1620. if (compare.call$2(t1.$index(a, great), el4) > 0) {
  1621. --great;
  1622. if (great < k)
  1623. break;
  1624. continue;
  1625. } else {
  1626. great0 = great - 1;
  1627. if (compare.call$2(t1.$index(a, great), el2) < 0) {
  1628. t1.$indexSet(a, k, t1.$index(a, less));
  1629. less0 = less + 1;
  1630. t1.$indexSet(a, less, t1.$index(a, great));
  1631. t1.$indexSet(a, great, ak);
  1632. less = less0;
  1633. } else {
  1634. t1.$indexSet(a, k, t1.$index(a, great));
  1635. t1.$indexSet(a, great, ak);
  1636. }
  1637. great = great0;
  1638. break;
  1639. }
  1640. }
  1641. t2 = less - 1;
  1642. t1.$indexSet(a, left, t1.$index(a, t2));
  1643. t1.$indexSet(a, t2, el2);
  1644. t2 = great + 1;
  1645. t1.$indexSet(a, right, t1.$index(a, t2));
  1646. t1.$indexSet(a, t2, el4);
  1647. A.Sort__doSort(a, left, less - 2, compare);
  1648. A.Sort__doSort(a, great + 2, right, compare);
  1649. if (pivots_are_equal)
  1650. return;
  1651. if (less < index1 && great > index5) {
  1652. for (; J.$eq$(compare.call$2(t1.$index(a, less), el2), 0);)
  1653. ++less;
  1654. for (; J.$eq$(compare.call$2(t1.$index(a, great), el4), 0);)
  1655. --great;
  1656. for (k = less; k <= great; ++k) {
  1657. ak = t1.$index(a, k);
  1658. if (compare.call$2(ak, el2) === 0) {
  1659. if (k !== less) {
  1660. t1.$indexSet(a, k, t1.$index(a, less));
  1661. t1.$indexSet(a, less, ak);
  1662. }
  1663. ++less;
  1664. } else if (compare.call$2(ak, el4) === 0)
  1665. for (; true;)
  1666. if (compare.call$2(t1.$index(a, great), el4) === 0) {
  1667. --great;
  1668. if (great < k)
  1669. break;
  1670. continue;
  1671. } else {
  1672. great0 = great - 1;
  1673. if (compare.call$2(t1.$index(a, great), el2) < 0) {
  1674. t1.$indexSet(a, k, t1.$index(a, less));
  1675. less0 = less + 1;
  1676. t1.$indexSet(a, less, t1.$index(a, great));
  1677. t1.$indexSet(a, great, ak);
  1678. less = less0;
  1679. } else {
  1680. t1.$indexSet(a, k, t1.$index(a, great));
  1681. t1.$indexSet(a, great, ak);
  1682. }
  1683. great = great0;
  1684. break;
  1685. }
  1686. }
  1687. A.Sort__doSort(a, less, great, compare);
  1688. } else
  1689. A.Sort__doSort(a, less, great, compare);
  1690. },
  1691. _CastIterableBase: function _CastIterableBase() {
  1692. },
  1693. CastIterator: function CastIterator(t0, t1) {
  1694. this._source = t0;
  1695. this.$ti = t1;
  1696. },
  1697. CastIterable: function CastIterable(t0, t1) {
  1698. this._source = t0;
  1699. this.$ti = t1;
  1700. },
  1701. _EfficientLengthCastIterable: function _EfficientLengthCastIterable(t0, t1) {
  1702. this._source = t0;
  1703. this.$ti = t1;
  1704. },
  1705. _CastListBase: function _CastListBase() {
  1706. },
  1707. _CastListBase_sort_closure: function _CastListBase_sort_closure(t0, t1) {
  1708. this.$this = t0;
  1709. this.compare = t1;
  1710. },
  1711. CastList: function CastList(t0, t1) {
  1712. this._source = t0;
  1713. this.$ti = t1;
  1714. },
  1715. CastSet: function CastSet(t0, t1, t2) {
  1716. this._source = t0;
  1717. this._emptySet = t1;
  1718. this.$ti = t2;
  1719. },
  1720. CastMap: function CastMap(t0, t1) {
  1721. this._source = t0;
  1722. this.$ti = t1;
  1723. },
  1724. CastMap_forEach_closure: function CastMap_forEach_closure(t0, t1) {
  1725. this.$this = t0;
  1726. this.f = t1;
  1727. },
  1728. CastMap_entries_closure: function CastMap_entries_closure(t0) {
  1729. this.$this = t0;
  1730. },
  1731. LateError: function LateError(t0) {
  1732. this._message = t0;
  1733. },
  1734. ReachabilityError: function ReachabilityError(t0) {
  1735. this._message = t0;
  1736. },
  1737. CodeUnits: function CodeUnits(t0) {
  1738. this._string = t0;
  1739. },
  1740. nullFuture_closure: function nullFuture_closure() {
  1741. },
  1742. SentinelValue: function SentinelValue() {
  1743. },
  1744. EfficientLengthIterable: function EfficientLengthIterable() {
  1745. },
  1746. ListIterable: function ListIterable() {
  1747. },
  1748. SubListIterable: function SubListIterable(t0, t1, t2, t3) {
  1749. var _ = this;
  1750. _.__internal$_iterable = t0;
  1751. _._start = t1;
  1752. _._endOrLength = t2;
  1753. _.$ti = t3;
  1754. },
  1755. ListIterator: function ListIterator(t0, t1, t2) {
  1756. var _ = this;
  1757. _.__internal$_iterable = t0;
  1758. _.__internal$_length = t1;
  1759. _.__internal$_index = 0;
  1760. _.__internal$_current = null;
  1761. _.$ti = t2;
  1762. },
  1763. MappedIterable: function MappedIterable(t0, t1, t2) {
  1764. this.__internal$_iterable = t0;
  1765. this._f = t1;
  1766. this.$ti = t2;
  1767. },
  1768. EfficientLengthMappedIterable: function EfficientLengthMappedIterable(t0, t1, t2) {
  1769. this.__internal$_iterable = t0;
  1770. this._f = t1;
  1771. this.$ti = t2;
  1772. },
  1773. MappedIterator: function MappedIterator(t0, t1, t2) {
  1774. var _ = this;
  1775. _.__internal$_current = null;
  1776. _._iterator = t0;
  1777. _._f = t1;
  1778. _.$ti = t2;
  1779. },
  1780. MappedListIterable: function MappedListIterable(t0, t1, t2) {
  1781. this._source = t0;
  1782. this._f = t1;
  1783. this.$ti = t2;
  1784. },
  1785. WhereIterable: function WhereIterable(t0, t1, t2) {
  1786. this.__internal$_iterable = t0;
  1787. this._f = t1;
  1788. this.$ti = t2;
  1789. },
  1790. WhereIterator: function WhereIterator(t0, t1) {
  1791. this._iterator = t0;
  1792. this._f = t1;
  1793. },
  1794. ExpandIterable: function ExpandIterable(t0, t1, t2) {
  1795. this.__internal$_iterable = t0;
  1796. this._f = t1;
  1797. this.$ti = t2;
  1798. },
  1799. ExpandIterator: function ExpandIterator(t0, t1, t2, t3) {
  1800. var _ = this;
  1801. _._iterator = t0;
  1802. _._f = t1;
  1803. _._currentExpansion = t2;
  1804. _.__internal$_current = null;
  1805. _.$ti = t3;
  1806. },
  1807. TakeIterable: function TakeIterable(t0, t1, t2) {
  1808. this.__internal$_iterable = t0;
  1809. this._takeCount = t1;
  1810. this.$ti = t2;
  1811. },
  1812. EfficientLengthTakeIterable: function EfficientLengthTakeIterable(t0, t1, t2) {
  1813. this.__internal$_iterable = t0;
  1814. this._takeCount = t1;
  1815. this.$ti = t2;
  1816. },
  1817. TakeIterator: function TakeIterator(t0, t1, t2) {
  1818. this._iterator = t0;
  1819. this._remaining = t1;
  1820. this.$ti = t2;
  1821. },
  1822. SkipIterable: function SkipIterable(t0, t1, t2) {
  1823. this.__internal$_iterable = t0;
  1824. this._skipCount = t1;
  1825. this.$ti = t2;
  1826. },
  1827. EfficientLengthSkipIterable: function EfficientLengthSkipIterable(t0, t1, t2) {
  1828. this.__internal$_iterable = t0;
  1829. this._skipCount = t1;
  1830. this.$ti = t2;
  1831. },
  1832. SkipIterator: function SkipIterator(t0, t1) {
  1833. this._iterator = t0;
  1834. this._skipCount = t1;
  1835. },
  1836. SkipWhileIterable: function SkipWhileIterable(t0, t1, t2) {
  1837. this.__internal$_iterable = t0;
  1838. this._f = t1;
  1839. this.$ti = t2;
  1840. },
  1841. SkipWhileIterator: function SkipWhileIterator(t0, t1) {
  1842. this._iterator = t0;
  1843. this._f = t1;
  1844. this._hasSkipped = false;
  1845. },
  1846. EmptyIterable: function EmptyIterable(t0) {
  1847. this.$ti = t0;
  1848. },
  1849. EmptyIterator: function EmptyIterator() {
  1850. },
  1851. FollowedByIterable: function FollowedByIterable(t0, t1, t2) {
  1852. this.__internal$_first = t0;
  1853. this._second = t1;
  1854. this.$ti = t2;
  1855. },
  1856. EfficientLengthFollowedByIterable: function EfficientLengthFollowedByIterable(t0, t1, t2) {
  1857. this.__internal$_first = t0;
  1858. this._second = t1;
  1859. this.$ti = t2;
  1860. },
  1861. FollowedByIterator: function FollowedByIterator(t0, t1) {
  1862. this._currentIterator = t0;
  1863. this._nextIterable = t1;
  1864. },
  1865. WhereTypeIterable: function WhereTypeIterable(t0, t1) {
  1866. this._source = t0;
  1867. this.$ti = t1;
  1868. },
  1869. WhereTypeIterator: function WhereTypeIterator(t0, t1) {
  1870. this._source = t0;
  1871. this.$ti = t1;
  1872. },
  1873. NonNullsIterable: function NonNullsIterable(t0, t1) {
  1874. this._source = t0;
  1875. this.$ti = t1;
  1876. },
  1877. NonNullsIterator: function NonNullsIterator(t0) {
  1878. this._source = t0;
  1879. this.__internal$_current = null;
  1880. },
  1881. FixedLengthListMixin: function FixedLengthListMixin() {
  1882. },
  1883. UnmodifiableListMixin: function UnmodifiableListMixin() {
  1884. },
  1885. UnmodifiableListBase: function UnmodifiableListBase() {
  1886. },
  1887. ReversedListIterable: function ReversedListIterable(t0, t1) {
  1888. this._source = t0;
  1889. this.$ti = t1;
  1890. },
  1891. Symbol: function Symbol(t0) {
  1892. this.__internal$_name = t0;
  1893. },
  1894. __CastListBase__CastIterableBase_ListMixin: function __CastListBase__CastIterableBase_ListMixin() {
  1895. },
  1896. ConstantMap_ConstantMap$from(other, $K, $V) {
  1897. var allStrings, k, object, index, index0, map,
  1898. keys = A.List_List$from(other.get$keys(other), true, $K),
  1899. t1 = keys.length,
  1900. _i = 0;
  1901. while (true) {
  1902. if (!(_i < t1)) {
  1903. allStrings = true;
  1904. break;
  1905. }
  1906. k = keys[_i];
  1907. if (typeof k != "string" || "__proto__" === k) {
  1908. allStrings = false;
  1909. break;
  1910. }
  1911. ++_i;
  1912. }
  1913. if (allStrings) {
  1914. object = {};
  1915. for (index = 0, _i = 0; _i < keys.length; keys.length === t1 || (0, A.throwConcurrentModificationError)(keys), ++_i, index = index0) {
  1916. k = keys[_i];
  1917. other.$index(0, k);
  1918. index0 = index + 1;
  1919. object[k] = index;
  1920. }
  1921. map = new A.ConstantStringMap(object, A.List_List$from(other.get$values(other), true, $V), $K._eval$1("@<0>")._bind$1($V)._eval$1("ConstantStringMap<1,2>"));
  1922. map.$keys = keys;
  1923. return map;
  1924. }
  1925. return new A.ConstantMapView(A.LinkedHashMap_LinkedHashMap$from(other, $K, $V), $K._eval$1("@<0>")._bind$1($V)._eval$1("ConstantMapView<1,2>"));
  1926. },
  1927. ConstantMap__throwUnmodifiable() {
  1928. throw A.wrapException(A.UnsupportedError$("Cannot modify unmodifiable Map"));
  1929. },
  1930. ConstantSet__throwUnmodifiable() {
  1931. throw A.wrapException(A.UnsupportedError$("Cannot modify constant Set"));
  1932. },
  1933. instantiate1(f, T1) {
  1934. var t1 = new A.Instantiation1(f, T1._eval$1("Instantiation1<0>"));
  1935. t1.Instantiation$1(f);
  1936. return t1;
  1937. },
  1938. unminifyOrTag(rawClassName) {
  1939. var preserved = init.mangledGlobalNames[rawClassName];
  1940. if (preserved != null)
  1941. return preserved;
  1942. return rawClassName;
  1943. },
  1944. isJsIndexable(object, record) {
  1945. var result;
  1946. if (record != null) {
  1947. result = record.x;
  1948. if (result != null)
  1949. return result;
  1950. }
  1951. return type$.JavaScriptIndexingBehavior_dynamic._is(object);
  1952. },
  1953. S(value) {
  1954. var result;
  1955. if (typeof value == "string")
  1956. return value;
  1957. if (typeof value == "number") {
  1958. if (value !== 0)
  1959. return "" + value;
  1960. } else if (true === value)
  1961. return "true";
  1962. else if (false === value)
  1963. return "false";
  1964. else if (value == null)
  1965. return "null";
  1966. result = J.toString$0$(value);
  1967. return result;
  1968. },
  1969. JSInvocationMirror$(_memberName, _internalName, _kind, _arguments, _namedArgumentNames, _typeArgumentCount) {
  1970. return new A.JSInvocationMirror(_memberName, _kind, _arguments, _namedArgumentNames, _typeArgumentCount);
  1971. },
  1972. Primitives_objectHashCode(object) {
  1973. var hash,
  1974. property = $.Primitives__identityHashCodeProperty;
  1975. if (property == null)
  1976. property = $.Primitives__identityHashCodeProperty = Symbol("identityHashCode");
  1977. hash = object[property];
  1978. if (hash == null) {
  1979. hash = Math.random() * 0x3fffffff | 0;
  1980. object[property] = hash;
  1981. }
  1982. return hash;
  1983. },
  1984. Primitives_parseInt(source, radix) {
  1985. var decimalMatch, maxCharCode, digitsPart, t1, i, _null = null,
  1986. match = /^\s*[+-]?((0x[a-f0-9]+)|(\d+)|([a-z0-9]+))\s*$/i.exec(source);
  1987. if (match == null)
  1988. return _null;
  1989. decimalMatch = match[3];
  1990. if (radix == null) {
  1991. if (decimalMatch != null)
  1992. return parseInt(source, 10);
  1993. if (match[2] != null)
  1994. return parseInt(source, 16);
  1995. return _null;
  1996. }
  1997. if (radix < 2 || radix > 36)
  1998. throw A.wrapException(A.RangeError$range(radix, 2, 36, "radix", _null));
  1999. if (radix === 10 && decimalMatch != null)
  2000. return parseInt(source, 10);
  2001. if (radix < 10 || decimalMatch == null) {
  2002. maxCharCode = radix <= 10 ? 47 + radix : 86 + radix;
  2003. digitsPart = match[1];
  2004. for (t1 = digitsPart.length, i = 0; i < t1; ++i)
  2005. if ((digitsPart.charCodeAt(i) | 32) > maxCharCode)
  2006. return _null;
  2007. }
  2008. return parseInt(source, radix);
  2009. },
  2010. Primitives_parseDouble(source) {
  2011. var result, trimmed;
  2012. if (!/^\s*[+-]?(?:Infinity|NaN|(?:\.\d+|\d+(?:\.\d*)?)(?:[eE][+-]?\d+)?)\s*$/.test(source))
  2013. return null;
  2014. result = parseFloat(source);
  2015. if (isNaN(result)) {
  2016. trimmed = B.JSString_methods.trim$0(source);
  2017. if (trimmed === "NaN" || trimmed === "+NaN" || trimmed === "-NaN")
  2018. return result;
  2019. return null;
  2020. }
  2021. return result;
  2022. },
  2023. Primitives_objectTypeName(object) {
  2024. return A.Primitives__objectTypeNameNewRti(object);
  2025. },
  2026. Primitives__objectTypeNameNewRti(object) {
  2027. var interceptor, dispatchName, $constructor, constructorName;
  2028. if (object instanceof A.Object)
  2029. return A._rtiToString(A.instanceType(object), null);
  2030. interceptor = J.getInterceptor$(object);
  2031. if (interceptor === B.Interceptor_methods || interceptor === B.JavaScriptObject_methods || type$.UnknownJavaScriptObject._is(object)) {
  2032. dispatchName = B.C_JS_CONST(object);
  2033. if (dispatchName !== "Object" && dispatchName !== "")
  2034. return dispatchName;
  2035. $constructor = object.constructor;
  2036. if (typeof $constructor == "function") {
  2037. constructorName = $constructor.name;
  2038. if (typeof constructorName == "string" && constructorName !== "Object" && constructorName !== "")
  2039. return constructorName;
  2040. }
  2041. }
  2042. return A._rtiToString(A.instanceType(object), null);
  2043. },
  2044. Primitives_safeToString(object) {
  2045. if (object == null || typeof object == "number" || A._isBool(object))
  2046. return J.toString$0$(object);
  2047. if (typeof object == "string")
  2048. return JSON.stringify(object);
  2049. if (object instanceof A.Closure)
  2050. return object.toString$0(0);
  2051. if (object instanceof A._Record)
  2052. return object._toString$1(true);
  2053. return "Instance of '" + A.Primitives_objectTypeName(object) + "'";
  2054. },
  2055. Primitives_currentUri() {
  2056. if (!!self.location)
  2057. return self.location.href;
  2058. return null;
  2059. },
  2060. Primitives__fromCharCodeApply(array) {
  2061. var result, i, i0, chunkEnd,
  2062. end = array.length;
  2063. if (end <= 500)
  2064. return String.fromCharCode.apply(null, array);
  2065. for (result = "", i = 0; i < end; i = i0) {
  2066. i0 = i + 500;
  2067. chunkEnd = i0 < end ? i0 : end;
  2068. result += String.fromCharCode.apply(null, array.slice(i, chunkEnd));
  2069. }
  2070. return result;
  2071. },
  2072. Primitives_stringFromCodePoints(codePoints) {
  2073. var t1, _i, i,
  2074. a = A._setArrayType([], type$.JSArray_int);
  2075. for (t1 = codePoints.length, _i = 0; _i < codePoints.length; codePoints.length === t1 || (0, A.throwConcurrentModificationError)(codePoints), ++_i) {
  2076. i = codePoints[_i];
  2077. if (!A._isInt(i))
  2078. throw A.wrapException(A.argumentErrorValue(i));
  2079. if (i <= 65535)
  2080. a.push(i);
  2081. else if (i <= 1114111) {
  2082. a.push(55296 + (B.JSInt_methods._shrOtherPositive$1(i - 65536, 10) & 1023));
  2083. a.push(56320 + (i & 1023));
  2084. } else
  2085. throw A.wrapException(A.argumentErrorValue(i));
  2086. }
  2087. return A.Primitives__fromCharCodeApply(a);
  2088. },
  2089. Primitives_stringFromCharCodes(charCodes) {
  2090. var t1, _i, i;
  2091. for (t1 = charCodes.length, _i = 0; _i < t1; ++_i) {
  2092. i = charCodes[_i];
  2093. if (!A._isInt(i))
  2094. throw A.wrapException(A.argumentErrorValue(i));
  2095. if (i < 0)
  2096. throw A.wrapException(A.argumentErrorValue(i));
  2097. if (i > 65535)
  2098. return A.Primitives_stringFromCodePoints(charCodes);
  2099. }
  2100. return A.Primitives__fromCharCodeApply(charCodes);
  2101. },
  2102. Primitives_stringFromNativeUint8List(charCodes, start, end) {
  2103. var i, result, i0, chunkEnd;
  2104. if (end <= 500 && start === 0 && end === charCodes.length)
  2105. return String.fromCharCode.apply(null, charCodes);
  2106. for (i = start, result = ""; i < end; i = i0) {
  2107. i0 = i + 500;
  2108. chunkEnd = i0 < end ? i0 : end;
  2109. result += String.fromCharCode.apply(null, charCodes.subarray(i, chunkEnd));
  2110. }
  2111. return result;
  2112. },
  2113. Primitives_stringFromCharCode(charCode) {
  2114. var bits;
  2115. if (0 <= charCode) {
  2116. if (charCode <= 65535)
  2117. return String.fromCharCode(charCode);
  2118. if (charCode <= 1114111) {
  2119. bits = charCode - 65536;
  2120. return String.fromCharCode((B.JSInt_methods._shrOtherPositive$1(bits, 10) | 55296) >>> 0, bits & 1023 | 56320);
  2121. }
  2122. }
  2123. throw A.wrapException(A.RangeError$range(charCode, 0, 1114111, null, null));
  2124. },
  2125. Primitives_lazyAsJsDate(receiver) {
  2126. if (receiver.date === void 0)
  2127. receiver.date = new Date(receiver._value);
  2128. return receiver.date;
  2129. },
  2130. Primitives_getYear(receiver) {
  2131. var t1 = A.Primitives_lazyAsJsDate(receiver).getFullYear() + 0;
  2132. return t1;
  2133. },
  2134. Primitives_getMonth(receiver) {
  2135. var t1 = A.Primitives_lazyAsJsDate(receiver).getMonth() + 1;
  2136. return t1;
  2137. },
  2138. Primitives_getDay(receiver) {
  2139. var t1 = A.Primitives_lazyAsJsDate(receiver).getDate() + 0;
  2140. return t1;
  2141. },
  2142. Primitives_getHours(receiver) {
  2143. var t1 = A.Primitives_lazyAsJsDate(receiver).getHours() + 0;
  2144. return t1;
  2145. },
  2146. Primitives_getMinutes(receiver) {
  2147. var t1 = A.Primitives_lazyAsJsDate(receiver).getMinutes() + 0;
  2148. return t1;
  2149. },
  2150. Primitives_getSeconds(receiver) {
  2151. var t1 = A.Primitives_lazyAsJsDate(receiver).getSeconds() + 0;
  2152. return t1;
  2153. },
  2154. Primitives_getMilliseconds(receiver) {
  2155. var t1 = A.Primitives_lazyAsJsDate(receiver).getMilliseconds() + 0;
  2156. return t1;
  2157. },
  2158. Primitives_functionNoSuchMethod($function, positionalArguments, namedArguments) {
  2159. var $arguments, namedArgumentList, t1 = {};
  2160. t1.argumentCount = 0;
  2161. $arguments = [];
  2162. namedArgumentList = [];
  2163. t1.argumentCount = positionalArguments.length;
  2164. B.JSArray_methods.addAll$1($arguments, positionalArguments);
  2165. t1.names = "";
  2166. if (namedArguments != null && namedArguments.__js_helper$_length !== 0)
  2167. namedArguments.forEach$1(0, new A.Primitives_functionNoSuchMethod_closure(t1, namedArgumentList, $arguments));
  2168. return J.noSuchMethod$1$($function, new A.JSInvocationMirror(B.Symbol_call, 0, $arguments, namedArgumentList, 0));
  2169. },
  2170. Primitives_applyFunction($function, positionalArguments, namedArguments) {
  2171. var t1, argumentCount, jsStub;
  2172. if (Array.isArray(positionalArguments))
  2173. t1 = namedArguments == null || namedArguments.__js_helper$_length === 0;
  2174. else
  2175. t1 = false;
  2176. if (t1) {
  2177. argumentCount = positionalArguments.length;
  2178. if (argumentCount === 0) {
  2179. if (!!$function.call$0)
  2180. return $function.call$0();
  2181. } else if (argumentCount === 1) {
  2182. if (!!$function.call$1)
  2183. return $function.call$1(positionalArguments[0]);
  2184. } else if (argumentCount === 2) {
  2185. if (!!$function.call$2)
  2186. return $function.call$2(positionalArguments[0], positionalArguments[1]);
  2187. } else if (argumentCount === 3) {
  2188. if (!!$function.call$3)
  2189. return $function.call$3(positionalArguments[0], positionalArguments[1], positionalArguments[2]);
  2190. } else if (argumentCount === 4) {
  2191. if (!!$function.call$4)
  2192. return $function.call$4(positionalArguments[0], positionalArguments[1], positionalArguments[2], positionalArguments[3]);
  2193. } else if (argumentCount === 5)
  2194. if (!!$function.call$5)
  2195. return $function.call$5(positionalArguments[0], positionalArguments[1], positionalArguments[2], positionalArguments[3], positionalArguments[4]);
  2196. jsStub = $function["call" + "$" + argumentCount];
  2197. if (jsStub != null)
  2198. return jsStub.apply($function, positionalArguments);
  2199. }
  2200. return A.Primitives__generalApplyFunction($function, positionalArguments, namedArguments);
  2201. },
  2202. Primitives__generalApplyFunction($function, positionalArguments, namedArguments) {
  2203. var defaultValuesClosure, t1, defaultValues, interceptor, jsFunction, maxArguments, missingDefaults, keys, _i, defaultValue, used, t2,
  2204. $arguments = Array.isArray(positionalArguments) ? positionalArguments : A.List_List$of(positionalArguments, true, type$.dynamic),
  2205. argumentCount = $arguments.length,
  2206. requiredParameterCount = $function.$requiredArgCount;
  2207. if (argumentCount < requiredParameterCount)
  2208. return A.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
  2209. defaultValuesClosure = $function.$defaultValues;
  2210. t1 = defaultValuesClosure == null;
  2211. defaultValues = !t1 ? defaultValuesClosure() : null;
  2212. interceptor = J.getInterceptor$($function);
  2213. jsFunction = interceptor["call*"];
  2214. if (typeof jsFunction == "string")
  2215. jsFunction = interceptor[jsFunction];
  2216. if (t1) {
  2217. if (namedArguments != null && namedArguments.__js_helper$_length !== 0)
  2218. return A.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
  2219. if (argumentCount === requiredParameterCount)
  2220. return jsFunction.apply($function, $arguments);
  2221. return A.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
  2222. }
  2223. if (Array.isArray(defaultValues)) {
  2224. if (namedArguments != null && namedArguments.__js_helper$_length !== 0)
  2225. return A.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
  2226. maxArguments = requiredParameterCount + defaultValues.length;
  2227. if (argumentCount > maxArguments)
  2228. return A.Primitives_functionNoSuchMethod($function, $arguments, null);
  2229. if (argumentCount < maxArguments) {
  2230. missingDefaults = defaultValues.slice(argumentCount - requiredParameterCount);
  2231. if ($arguments === positionalArguments)
  2232. $arguments = A.List_List$of($arguments, true, type$.dynamic);
  2233. B.JSArray_methods.addAll$1($arguments, missingDefaults);
  2234. }
  2235. return jsFunction.apply($function, $arguments);
  2236. } else {
  2237. if (argumentCount > requiredParameterCount)
  2238. return A.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
  2239. if ($arguments === positionalArguments)
  2240. $arguments = A.List_List$of($arguments, true, type$.dynamic);
  2241. keys = Object.keys(defaultValues);
  2242. if (namedArguments == null)
  2243. for (t1 = keys.length, _i = 0; _i < keys.length; keys.length === t1 || (0, A.throwConcurrentModificationError)(keys), ++_i) {
  2244. defaultValue = defaultValues[keys[_i]];
  2245. if (B.C__Required === defaultValue)
  2246. return A.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
  2247. B.JSArray_methods.add$1($arguments, defaultValue);
  2248. }
  2249. else {
  2250. for (t1 = keys.length, used = 0, _i = 0; _i < keys.length; keys.length === t1 || (0, A.throwConcurrentModificationError)(keys), ++_i) {
  2251. t2 = keys[_i];
  2252. if (namedArguments.containsKey$1(t2)) {
  2253. ++used;
  2254. B.JSArray_methods.add$1($arguments, namedArguments.$index(0, t2));
  2255. } else {
  2256. defaultValue = defaultValues[t2];
  2257. if (B.C__Required === defaultValue)
  2258. return A.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
  2259. B.JSArray_methods.add$1($arguments, defaultValue);
  2260. }
  2261. }
  2262. if (used !== namedArguments.__js_helper$_length)
  2263. return A.Primitives_functionNoSuchMethod($function, $arguments, namedArguments);
  2264. }
  2265. return jsFunction.apply($function, $arguments);
  2266. }
  2267. },
  2268. Primitives_extractStackTrace(error) {
  2269. var jsError = error.$thrownJsError;
  2270. if (jsError == null)
  2271. return null;
  2272. return A.getTraceFromException(jsError);
  2273. },
  2274. diagnoseIndexError(indexable, index) {
  2275. var $length, _s5_ = "index";
  2276. if (!A._isInt(index))
  2277. return new A.ArgumentError(true, index, _s5_, null);
  2278. $length = J.get$length$asx(indexable);
  2279. if (index < 0 || index >= $length)
  2280. return A.IndexError$withLength(index, $length, indexable, null, _s5_);
  2281. return A.RangeError$value(index, _s5_, null);
  2282. },
  2283. diagnoseRangeError(start, end, $length) {
  2284. if (start < 0 || start > $length)
  2285. return A.RangeError$range(start, 0, $length, "start", null);
  2286. if (end != null)
  2287. if (end < start || end > $length)
  2288. return A.RangeError$range(end, start, $length, "end", null);
  2289. return new A.ArgumentError(true, end, "end", null);
  2290. },
  2291. argumentErrorValue(object) {
  2292. return new A.ArgumentError(true, object, null, null);
  2293. },
  2294. checkNum(value) {
  2295. return value;
  2296. },
  2297. wrapException(ex) {
  2298. return A.initializeExceptionWrapper(new Error(), ex);
  2299. },
  2300. initializeExceptionWrapper(wrapper, ex) {
  2301. var t1;
  2302. if (ex == null)
  2303. ex = new A.TypeError();
  2304. wrapper.dartException = ex;
  2305. t1 = A.toStringWrapper;
  2306. if ("defineProperty" in Object) {
  2307. Object.defineProperty(wrapper, "message", {get: t1});
  2308. wrapper.name = "";
  2309. } else
  2310. wrapper.toString = t1;
  2311. return wrapper;
  2312. },
  2313. toStringWrapper() {
  2314. return J.toString$0$(this.dartException);
  2315. },
  2316. throwExpression(ex) {
  2317. throw A.wrapException(ex);
  2318. },
  2319. throwExpressionWithWrapper(ex, wrapper) {
  2320. throw A.initializeExceptionWrapper(wrapper, ex);
  2321. },
  2322. throwConcurrentModificationError(collection) {
  2323. throw A.wrapException(A.ConcurrentModificationError$(collection));
  2324. },
  2325. TypeErrorDecoder_extractPattern(message) {
  2326. var match, $arguments, argumentsExpr, expr, method, receiver;
  2327. message = A.quoteStringForRegExp(message.replace(String({}), "$receiver$"));
  2328. match = message.match(/\\\$[a-zA-Z]+\\\$/g);
  2329. if (match == null)
  2330. match = A._setArrayType([], type$.JSArray_String);
  2331. $arguments = match.indexOf("\\$arguments\\$");
  2332. argumentsExpr = match.indexOf("\\$argumentsExpr\\$");
  2333. expr = match.indexOf("\\$expr\\$");
  2334. method = match.indexOf("\\$method\\$");
  2335. receiver = match.indexOf("\\$receiver\\$");
  2336. return new A.TypeErrorDecoder(message.replace(new RegExp("\\\\\\$arguments\\\\\\$", "g"), "((?:x|[^x])*)").replace(new RegExp("\\\\\\$argumentsExpr\\\\\\$", "g"), "((?:x|[^x])*)").replace(new RegExp("\\\\\\$expr\\\\\\$", "g"), "((?:x|[^x])*)").replace(new RegExp("\\\\\\$method\\\\\\$", "g"), "((?:x|[^x])*)").replace(new RegExp("\\\\\\$receiver\\\\\\$", "g"), "((?:x|[^x])*)"), $arguments, argumentsExpr, expr, method, receiver);
  2337. },
  2338. TypeErrorDecoder_provokeCallErrorOn(expression) {
  2339. return function($expr$) {
  2340. var $argumentsExpr$ = "$arguments$";
  2341. try {
  2342. $expr$.$method$($argumentsExpr$);
  2343. } catch (e) {
  2344. return e.message;
  2345. }
  2346. }(expression);
  2347. },
  2348. TypeErrorDecoder_provokePropertyErrorOn(expression) {
  2349. return function($expr$) {
  2350. try {
  2351. $expr$.$method$;
  2352. } catch (e) {
  2353. return e.message;
  2354. }
  2355. }(expression);
  2356. },
  2357. JsNoSuchMethodError$(_message, match) {
  2358. var t1 = match == null,
  2359. t2 = t1 ? null : match.method;
  2360. return new A.JsNoSuchMethodError(_message, t2, t1 ? null : match.receiver);
  2361. },
  2362. unwrapException(ex) {
  2363. if (ex == null)
  2364. return new A.NullThrownFromJavaScriptException(ex);
  2365. if (ex instanceof A.ExceptionAndStackTrace)
  2366. return A.saveStackTrace(ex, ex.dartException);
  2367. if (typeof ex !== "object")
  2368. return ex;
  2369. if ("dartException" in ex)
  2370. return A.saveStackTrace(ex, ex.dartException);
  2371. return A._unwrapNonDartException(ex);
  2372. },
  2373. saveStackTrace(ex, error) {
  2374. if (type$.Error._is(error))
  2375. if (error.$thrownJsError == null)
  2376. error.$thrownJsError = ex;
  2377. return error;
  2378. },
  2379. _unwrapNonDartException(ex) {
  2380. var message, number, ieErrorCode, nsme, notClosure, nullCall, nullLiteralCall, undefCall, undefLiteralCall, nullProperty, undefProperty, undefLiteralProperty, match;
  2381. if (!("message" in ex))
  2382. return ex;
  2383. message = ex.message;
  2384. if ("number" in ex && typeof ex.number == "number") {
  2385. number = ex.number;
  2386. ieErrorCode = number & 65535;
  2387. if ((B.JSInt_methods._shrOtherPositive$1(number, 16) & 8191) === 10)
  2388. switch (ieErrorCode) {
  2389. case 438:
  2390. return A.saveStackTrace(ex, A.JsNoSuchMethodError$(A.S(message) + " (Error " + ieErrorCode + ")", null));
  2391. case 445:
  2392. case 5007:
  2393. A.S(message);
  2394. return A.saveStackTrace(ex, new A.NullError());
  2395. }
  2396. }
  2397. if (ex instanceof TypeError) {
  2398. nsme = $.$get$TypeErrorDecoder_noSuchMethodPattern();
  2399. notClosure = $.$get$TypeErrorDecoder_notClosurePattern();
  2400. nullCall = $.$get$TypeErrorDecoder_nullCallPattern();
  2401. nullLiteralCall = $.$get$TypeErrorDecoder_nullLiteralCallPattern();
  2402. undefCall = $.$get$TypeErrorDecoder_undefinedCallPattern();
  2403. undefLiteralCall = $.$get$TypeErrorDecoder_undefinedLiteralCallPattern();
  2404. nullProperty = $.$get$TypeErrorDecoder_nullPropertyPattern();
  2405. $.$get$TypeErrorDecoder_nullLiteralPropertyPattern();
  2406. undefProperty = $.$get$TypeErrorDecoder_undefinedPropertyPattern();
  2407. undefLiteralProperty = $.$get$TypeErrorDecoder_undefinedLiteralPropertyPattern();
  2408. match = nsme.matchTypeError$1(message);
  2409. if (match != null)
  2410. return A.saveStackTrace(ex, A.JsNoSuchMethodError$(message, match));
  2411. else {
  2412. match = notClosure.matchTypeError$1(message);
  2413. if (match != null) {
  2414. match.method = "call";
  2415. return A.saveStackTrace(ex, A.JsNoSuchMethodError$(message, match));
  2416. } else if (nullCall.matchTypeError$1(message) != null || nullLiteralCall.matchTypeError$1(message) != null || undefCall.matchTypeError$1(message) != null || undefLiteralCall.matchTypeError$1(message) != null || nullProperty.matchTypeError$1(message) != null || nullLiteralCall.matchTypeError$1(message) != null || undefProperty.matchTypeError$1(message) != null || undefLiteralProperty.matchTypeError$1(message) != null)
  2417. return A.saveStackTrace(ex, new A.NullError());
  2418. }
  2419. return A.saveStackTrace(ex, new A.UnknownJsTypeError(typeof message == "string" ? message : ""));
  2420. }
  2421. if (ex instanceof RangeError) {
  2422. if (typeof message == "string" && message.indexOf("call stack") !== -1)
  2423. return new A.StackOverflowError();
  2424. message = function(ex) {
  2425. try {
  2426. return String(ex);
  2427. } catch (e) {
  2428. }
  2429. return null;
  2430. }(ex);
  2431. return A.saveStackTrace(ex, new A.ArgumentError(false, null, null, typeof message == "string" ? message.replace(/^RangeError:\s*/, "") : message));
  2432. }
  2433. if (typeof InternalError == "function" && ex instanceof InternalError)
  2434. if (typeof message == "string" && message === "too much recursion")
  2435. return new A.StackOverflowError();
  2436. return ex;
  2437. },
  2438. getTraceFromException(exception) {
  2439. var trace;
  2440. if (exception instanceof A.ExceptionAndStackTrace)
  2441. return exception.stackTrace;
  2442. if (exception == null)
  2443. return new A._StackTrace(exception);
  2444. trace = exception.$cachedTrace;
  2445. if (trace != null)
  2446. return trace;
  2447. trace = new A._StackTrace(exception);
  2448. if (typeof exception === "object")
  2449. exception.$cachedTrace = trace;
  2450. return trace;
  2451. },
  2452. objectHashCode(object) {
  2453. if (object == null)
  2454. return J.get$hashCode$(object);
  2455. if (typeof object == "object")
  2456. return A.Primitives_objectHashCode(object);
  2457. return J.get$hashCode$(object);
  2458. },
  2459. constantHashCode(key) {
  2460. if (typeof key == "number")
  2461. return B.JSNumber_methods.get$hashCode(key);
  2462. if (key instanceof A._Type)
  2463. return A.Primitives_objectHashCode(key);
  2464. if (key instanceof A._Record)
  2465. return key.get$hashCode(key);
  2466. if (key instanceof A.Symbol)
  2467. return key.get$hashCode(0);
  2468. return A.objectHashCode(key);
  2469. },
  2470. fillLiteralMap(keyValuePairs, result) {
  2471. var index, index0, index1,
  2472. $length = keyValuePairs.length;
  2473. for (index = 0; index < $length; index = index1) {
  2474. index0 = index + 1;
  2475. index1 = index0 + 1;
  2476. result.$indexSet(0, keyValuePairs[index], keyValuePairs[index0]);
  2477. }
  2478. return result;
  2479. },
  2480. fillLiteralSet(values, result) {
  2481. var index,
  2482. $length = values.length;
  2483. for (index = 0; index < $length; ++index)
  2484. result.add$1(0, values[index]);
  2485. return result;
  2486. },
  2487. _invokeClosure(closure, numberOfArguments, arg1, arg2, arg3, arg4) {
  2488. switch (numberOfArguments) {
  2489. case 0:
  2490. return closure.call$0();
  2491. case 1:
  2492. return closure.call$1(arg1);
  2493. case 2:
  2494. return closure.call$2(arg1, arg2);
  2495. case 3:
  2496. return closure.call$3(arg1, arg2, arg3);
  2497. case 4:
  2498. return closure.call$4(arg1, arg2, arg3, arg4);
  2499. }
  2500. throw A.wrapException(new A._Exception("Unsupported number of arguments for wrapped closure"));
  2501. },
  2502. convertDartClosureToJS(closure, arity) {
  2503. var $function;
  2504. if (closure == null)
  2505. return null;
  2506. $function = closure.$identity;
  2507. if (!!$function)
  2508. return $function;
  2509. $function = A.convertDartClosureToJSUncached(closure, arity);
  2510. closure.$identity = $function;
  2511. return $function;
  2512. },
  2513. convertDartClosureToJSUncached(closure, arity) {
  2514. var entry;
  2515. switch (arity) {
  2516. case 0:
  2517. entry = closure.call$0;
  2518. break;
  2519. case 1:
  2520. entry = closure.call$1;
  2521. break;
  2522. case 2:
  2523. entry = closure.call$2;
  2524. break;
  2525. case 3:
  2526. entry = closure.call$3;
  2527. break;
  2528. case 4:
  2529. entry = closure.call$4;
  2530. break;
  2531. default:
  2532. entry = null;
  2533. }
  2534. if (entry != null)
  2535. return entry.bind(closure);
  2536. return function(closure, arity, invoke) {
  2537. return function(a1, a2, a3, a4) {
  2538. return invoke(closure, arity, a1, a2, a3, a4);
  2539. };
  2540. }(closure, arity, A._invokeClosure);
  2541. },
  2542. Closure_fromTearOff(parameters) {
  2543. var $prototype, $constructor, t2, trampoline, applyTrampoline, i, stub, stub0, stubName, stubCallName,
  2544. container = parameters.co,
  2545. isStatic = parameters.iS,
  2546. isIntercepted = parameters.iI,
  2547. needsDirectAccess = parameters.nDA,
  2548. applyTrampolineIndex = parameters.aI,
  2549. funsOrNames = parameters.fs,
  2550. callNames = parameters.cs,
  2551. $name = funsOrNames[0],
  2552. callName = callNames[0],
  2553. $function = container[$name],
  2554. t1 = parameters.fT;
  2555. t1.toString;
  2556. $prototype = isStatic ? Object.create(new A.StaticClosure().constructor.prototype) : Object.create(new A.BoundClosure(null, null).constructor.prototype);
  2557. $prototype.$initialize = $prototype.constructor;
  2558. $constructor = isStatic ? function static_tear_off() {
  2559. this.$initialize();
  2560. } : function tear_off(a, b) {
  2561. this.$initialize(a, b);
  2562. };
  2563. $prototype.constructor = $constructor;
  2564. $constructor.prototype = $prototype;
  2565. $prototype.$_name = $name;
  2566. $prototype.$_target = $function;
  2567. t2 = !isStatic;
  2568. if (t2)
  2569. trampoline = A.Closure_forwardCallTo($name, $function, isIntercepted, needsDirectAccess);
  2570. else {
  2571. $prototype.$static_name = $name;
  2572. trampoline = $function;
  2573. }
  2574. $prototype.$signature = A.Closure__computeSignatureFunctionNewRti(t1, isStatic, isIntercepted);
  2575. $prototype[callName] = trampoline;
  2576. for (applyTrampoline = trampoline, i = 1; i < funsOrNames.length; ++i) {
  2577. stub = funsOrNames[i];
  2578. if (typeof stub == "string") {
  2579. stub0 = container[stub];
  2580. stubName = stub;
  2581. stub = stub0;
  2582. } else
  2583. stubName = "";
  2584. stubCallName = callNames[i];
  2585. if (stubCallName != null) {
  2586. if (t2)
  2587. stub = A.Closure_forwardCallTo(stubName, stub, isIntercepted, needsDirectAccess);
  2588. $prototype[stubCallName] = stub;
  2589. }
  2590. if (i === applyTrampolineIndex)
  2591. applyTrampoline = stub;
  2592. }
  2593. $prototype["call*"] = applyTrampoline;
  2594. $prototype.$requiredArgCount = parameters.rC;
  2595. $prototype.$defaultValues = parameters.dV;
  2596. return $constructor;
  2597. },
  2598. Closure__computeSignatureFunctionNewRti(functionType, isStatic, isIntercepted) {
  2599. if (typeof functionType == "number")
  2600. return functionType;
  2601. if (typeof functionType == "string") {
  2602. if (isStatic)
  2603. throw A.wrapException("Cannot compute signature for static tearoff.");
  2604. return function(recipe, evalOnReceiver) {
  2605. return function() {
  2606. return evalOnReceiver(this, recipe);
  2607. };
  2608. }(functionType, A.BoundClosure_evalRecipe);
  2609. }
  2610. throw A.wrapException("Error in functionType of tearoff");
  2611. },
  2612. Closure_cspForwardCall(arity, needsDirectAccess, stubName, $function) {
  2613. var getReceiver = A.BoundClosure_receiverOf;
  2614. switch (needsDirectAccess ? -1 : arity) {
  2615. case 0:
  2616. return function(entry, receiverOf) {
  2617. return function() {
  2618. return receiverOf(this)[entry]();
  2619. };
  2620. }(stubName, getReceiver);
  2621. case 1:
  2622. return function(entry, receiverOf) {
  2623. return function(a) {
  2624. return receiverOf(this)[entry](a);
  2625. };
  2626. }(stubName, getReceiver);
  2627. case 2:
  2628. return function(entry, receiverOf) {
  2629. return function(a, b) {
  2630. return receiverOf(this)[entry](a, b);
  2631. };
  2632. }(stubName, getReceiver);
  2633. case 3:
  2634. return function(entry, receiverOf) {
  2635. return function(a, b, c) {
  2636. return receiverOf(this)[entry](a, b, c);
  2637. };
  2638. }(stubName, getReceiver);
  2639. case 4:
  2640. return function(entry, receiverOf) {
  2641. return function(a, b, c, d) {
  2642. return receiverOf(this)[entry](a, b, c, d);
  2643. };
  2644. }(stubName, getReceiver);
  2645. case 5:
  2646. return function(entry, receiverOf) {
  2647. return function(a, b, c, d, e) {
  2648. return receiverOf(this)[entry](a, b, c, d, e);
  2649. };
  2650. }(stubName, getReceiver);
  2651. default:
  2652. return function(f, receiverOf) {
  2653. return function() {
  2654. return f.apply(receiverOf(this), arguments);
  2655. };
  2656. }($function, getReceiver);
  2657. }
  2658. },
  2659. Closure_forwardCallTo(stubName, $function, isIntercepted, needsDirectAccess) {
  2660. if (isIntercepted)
  2661. return A.Closure_forwardInterceptedCallTo(stubName, $function, needsDirectAccess);
  2662. return A.Closure_cspForwardCall($function.length, needsDirectAccess, stubName, $function);
  2663. },
  2664. Closure_cspForwardInterceptedCall(arity, needsDirectAccess, stubName, $function) {
  2665. var getReceiver = A.BoundClosure_receiverOf,
  2666. getInterceptor = A.BoundClosure_interceptorOf;
  2667. switch (needsDirectAccess ? -1 : arity) {
  2668. case 0:
  2669. throw A.wrapException(new A.RuntimeError("Intercepted function with no arguments."));
  2670. case 1:
  2671. return function(entry, interceptorOf, receiverOf) {
  2672. return function() {
  2673. return interceptorOf(this)[entry](receiverOf(this));
  2674. };
  2675. }(stubName, getInterceptor, getReceiver);
  2676. case 2:
  2677. return function(entry, interceptorOf, receiverOf) {
  2678. return function(a) {
  2679. return interceptorOf(this)[entry](receiverOf(this), a);
  2680. };
  2681. }(stubName, getInterceptor, getReceiver);
  2682. case 3:
  2683. return function(entry, interceptorOf, receiverOf) {
  2684. return function(a, b) {
  2685. return interceptorOf(this)[entry](receiverOf(this), a, b);
  2686. };
  2687. }(stubName, getInterceptor, getReceiver);
  2688. case 4:
  2689. return function(entry, interceptorOf, receiverOf) {
  2690. return function(a, b, c) {
  2691. return interceptorOf(this)[entry](receiverOf(this), a, b, c);
  2692. };
  2693. }(stubName, getInterceptor, getReceiver);
  2694. case 5:
  2695. return function(entry, interceptorOf, receiverOf) {
  2696. return function(a, b, c, d) {
  2697. return interceptorOf(this)[entry](receiverOf(this), a, b, c, d);
  2698. };
  2699. }(stubName, getInterceptor, getReceiver);
  2700. case 6:
  2701. return function(entry, interceptorOf, receiverOf) {
  2702. return function(a, b, c, d, e) {
  2703. return interceptorOf(this)[entry](receiverOf(this), a, b, c, d, e);
  2704. };
  2705. }(stubName, getInterceptor, getReceiver);
  2706. default:
  2707. return function(f, interceptorOf, receiverOf) {
  2708. return function() {
  2709. var a = [receiverOf(this)];
  2710. Array.prototype.push.apply(a, arguments);
  2711. return f.apply(interceptorOf(this), a);
  2712. };
  2713. }($function, getInterceptor, getReceiver);
  2714. }
  2715. },
  2716. Closure_forwardInterceptedCallTo(stubName, $function, needsDirectAccess) {
  2717. var arity, t1;
  2718. if ($.BoundClosure__interceptorFieldNameCache == null)
  2719. $.BoundClosure__interceptorFieldNameCache = A.BoundClosure__computeFieldNamed("interceptor");
  2720. if ($.BoundClosure__receiverFieldNameCache == null)
  2721. $.BoundClosure__receiverFieldNameCache = A.BoundClosure__computeFieldNamed("receiver");
  2722. arity = $function.length;
  2723. t1 = A.Closure_cspForwardInterceptedCall(arity, needsDirectAccess, stubName, $function);
  2724. return t1;
  2725. },
  2726. closureFromTearOff(parameters) {
  2727. return A.Closure_fromTearOff(parameters);
  2728. },
  2729. BoundClosure_evalRecipe(closure, recipe) {
  2730. return A._Universe_evalInEnvironment(init.typeUniverse, A.instanceType(closure._receiver), recipe);
  2731. },
  2732. BoundClosure_receiverOf(closure) {
  2733. return closure._receiver;
  2734. },
  2735. BoundClosure_interceptorOf(closure) {
  2736. return closure._interceptor;
  2737. },
  2738. BoundClosure__computeFieldNamed(fieldName) {
  2739. var t1, i, $name,
  2740. template = new A.BoundClosure("receiver", "interceptor"),
  2741. names = J.JSArray_markFixedList(Object.getOwnPropertyNames(template));
  2742. for (t1 = names.length, i = 0; i < t1; ++i) {
  2743. $name = names[i];
  2744. if (template[$name] === fieldName)
  2745. return $name;
  2746. }
  2747. throw A.wrapException(A.ArgumentError$("Field name " + fieldName + " not found.", null));
  2748. },
  2749. throwCyclicInit(staticName) {
  2750. throw A.wrapException(new A._CyclicInitializationError(staticName));
  2751. },
  2752. getIsolateAffinityTag($name) {
  2753. return init.getIsolateTag($name);
  2754. },
  2755. LinkedHashMapKeyIterator$(_map, _modifications) {
  2756. var t1 = new A.LinkedHashMapKeyIterator(_map, _modifications);
  2757. t1.__js_helper$_cell = _map.__js_helper$_first;
  2758. return t1;
  2759. },
  2760. defineProperty(obj, property, value) {
  2761. Object.defineProperty(obj, property, {value: value, enumerable: false, writable: true, configurable: true});
  2762. },
  2763. lookupAndCacheInterceptor(obj) {
  2764. var interceptor, interceptorClass, altTag, mark, t1,
  2765. tag = $.getTagFunction.call$1(obj),
  2766. record = $.dispatchRecordsForInstanceTags[tag];
  2767. if (record != null) {
  2768. Object.defineProperty(obj, init.dispatchPropertyName, {value: record, enumerable: false, writable: true, configurable: true});
  2769. return record.i;
  2770. }
  2771. interceptor = $.interceptorsForUncacheableTags[tag];
  2772. if (interceptor != null)
  2773. return interceptor;
  2774. interceptorClass = init.interceptorsByTag[tag];
  2775. if (interceptorClass == null) {
  2776. altTag = $.alternateTagFunction.call$2(obj, tag);
  2777. if (altTag != null) {
  2778. record = $.dispatchRecordsForInstanceTags[altTag];
  2779. if (record != null) {
  2780. Object.defineProperty(obj, init.dispatchPropertyName, {value: record, enumerable: false, writable: true, configurable: true});
  2781. return record.i;
  2782. }
  2783. interceptor = $.interceptorsForUncacheableTags[altTag];
  2784. if (interceptor != null)
  2785. return interceptor;
  2786. interceptorClass = init.interceptorsByTag[altTag];
  2787. tag = altTag;
  2788. }
  2789. }
  2790. if (interceptorClass == null)
  2791. return null;
  2792. interceptor = interceptorClass.prototype;
  2793. mark = tag[0];
  2794. if (mark === "!") {
  2795. record = A.makeLeafDispatchRecord(interceptor);
  2796. $.dispatchRecordsForInstanceTags[tag] = record;
  2797. Object.defineProperty(obj, init.dispatchPropertyName, {value: record, enumerable: false, writable: true, configurable: true});
  2798. return record.i;
  2799. }
  2800. if (mark === "~") {
  2801. $.interceptorsForUncacheableTags[tag] = interceptor;
  2802. return interceptor;
  2803. }
  2804. if (mark === "-") {
  2805. t1 = A.makeLeafDispatchRecord(interceptor);
  2806. Object.defineProperty(Object.getPrototypeOf(obj), init.dispatchPropertyName, {value: t1, enumerable: false, writable: true, configurable: true});
  2807. return t1.i;
  2808. }
  2809. if (mark === "+")
  2810. return A.patchInteriorProto(obj, interceptor);
  2811. if (mark === "*")
  2812. throw A.wrapException(A.UnimplementedError$(tag));
  2813. if (init.leafTags[tag] === true) {
  2814. t1 = A.makeLeafDispatchRecord(interceptor);
  2815. Object.defineProperty(Object.getPrototypeOf(obj), init.dispatchPropertyName, {value: t1, enumerable: false, writable: true, configurable: true});
  2816. return t1.i;
  2817. } else
  2818. return A.patchInteriorProto(obj, interceptor);
  2819. },
  2820. patchInteriorProto(obj, interceptor) {
  2821. var proto = Object.getPrototypeOf(obj);
  2822. Object.defineProperty(proto, init.dispatchPropertyName, {value: J.makeDispatchRecord(interceptor, proto, null, null), enumerable: false, writable: true, configurable: true});
  2823. return interceptor;
  2824. },
  2825. makeLeafDispatchRecord(interceptor) {
  2826. return J.makeDispatchRecord(interceptor, false, null, !!interceptor.$isJavaScriptIndexingBehavior);
  2827. },
  2828. makeDefaultDispatchRecord(tag, interceptorClass, proto) {
  2829. var interceptor = interceptorClass.prototype;
  2830. if (init.leafTags[tag] === true)
  2831. return A.makeLeafDispatchRecord(interceptor);
  2832. else
  2833. return J.makeDispatchRecord(interceptor, proto, null, null);
  2834. },
  2835. initNativeDispatch() {
  2836. if (true === $.initNativeDispatchFlag)
  2837. return;
  2838. $.initNativeDispatchFlag = true;
  2839. A.initNativeDispatchContinue();
  2840. },
  2841. initNativeDispatchContinue() {
  2842. var map, tags, fun, i, tag, proto, record, interceptorClass;
  2843. $.dispatchRecordsForInstanceTags = Object.create(null);
  2844. $.interceptorsForUncacheableTags = Object.create(null);
  2845. A.initHooks();
  2846. map = init.interceptorsByTag;
  2847. tags = Object.getOwnPropertyNames(map);
  2848. if (typeof window != "undefined") {
  2849. window;
  2850. fun = function() {
  2851. };
  2852. for (i = 0; i < tags.length; ++i) {
  2853. tag = tags[i];
  2854. proto = $.prototypeForTagFunction.call$1(tag);
  2855. if (proto != null) {
  2856. record = A.makeDefaultDispatchRecord(tag, map[tag], proto);
  2857. if (record != null) {
  2858. Object.defineProperty(proto, init.dispatchPropertyName, {value: record, enumerable: false, writable: true, configurable: true});
  2859. fun.prototype = proto;
  2860. }
  2861. }
  2862. }
  2863. }
  2864. for (i = 0; i < tags.length; ++i) {
  2865. tag = tags[i];
  2866. if (/^[A-Za-z_]/.test(tag)) {
  2867. interceptorClass = map[tag];
  2868. map["!" + tag] = interceptorClass;
  2869. map["~" + tag] = interceptorClass;
  2870. map["-" + tag] = interceptorClass;
  2871. map["+" + tag] = interceptorClass;
  2872. map["*" + tag] = interceptorClass;
  2873. }
  2874. }
  2875. },
  2876. initHooks() {
  2877. var transformers, i, transformer, getTag, getUnknownTag, prototypeForTag,
  2878. hooks = B.C_JS_CONST0();
  2879. hooks = A.applyHooksTransformer(B.C_JS_CONST1, A.applyHooksTransformer(B.C_JS_CONST2, A.applyHooksTransformer(B.C_JS_CONST3, A.applyHooksTransformer(B.C_JS_CONST3, A.applyHooksTransformer(B.C_JS_CONST4, A.applyHooksTransformer(B.C_JS_CONST5, A.applyHooksTransformer(B.C_JS_CONST6(B.C_JS_CONST), hooks)))))));
  2880. if (typeof dartNativeDispatchHooksTransformer != "undefined") {
  2881. transformers = dartNativeDispatchHooksTransformer;
  2882. if (typeof transformers == "function")
  2883. transformers = [transformers];
  2884. if (Array.isArray(transformers))
  2885. for (i = 0; i < transformers.length; ++i) {
  2886. transformer = transformers[i];
  2887. if (typeof transformer == "function")
  2888. hooks = transformer(hooks) || hooks;
  2889. }
  2890. }
  2891. getTag = hooks.getTag;
  2892. getUnknownTag = hooks.getUnknownTag;
  2893. prototypeForTag = hooks.prototypeForTag;
  2894. $.getTagFunction = new A.initHooks_closure(getTag);
  2895. $.alternateTagFunction = new A.initHooks_closure0(getUnknownTag);
  2896. $.prototypeForTagFunction = new A.initHooks_closure1(prototypeForTag);
  2897. },
  2898. applyHooksTransformer(transformer, hooks) {
  2899. return transformer(hooks) || hooks;
  2900. },
  2901. _RecordN__equalValues(a, b) {
  2902. var i;
  2903. for (i = 0; i < a.length; ++i)
  2904. if (!J.$eq$(a[i], b[i]))
  2905. return false;
  2906. return true;
  2907. },
  2908. createRecordTypePredicate(shape, fieldRtis) {
  2909. var $length = fieldRtis.length,
  2910. $function = init.rttc["" + $length + ";" + shape];
  2911. if ($function == null)
  2912. return null;
  2913. if ($length === 0)
  2914. return $function;
  2915. if ($length === $function.length)
  2916. return $function.apply(null, fieldRtis);
  2917. return $function(fieldRtis);
  2918. },
  2919. JSSyntaxRegExp_makeNative(source, multiLine, caseSensitive, unicode, dotAll, global) {
  2920. var m = multiLine ? "m" : "",
  2921. i = caseSensitive ? "" : "i",
  2922. u = unicode ? "u" : "",
  2923. s = dotAll ? "s" : "",
  2924. g = global ? "g" : "",
  2925. regexp = function(source, modifiers) {
  2926. try {
  2927. return new RegExp(source, modifiers);
  2928. } catch (e) {
  2929. return e;
  2930. }
  2931. }(source, m + i + u + s + g);
  2932. if (regexp instanceof RegExp)
  2933. return regexp;
  2934. throw A.wrapException(A.FormatException$("Illegal RegExp pattern (" + String(regexp) + ")", source, null));
  2935. },
  2936. stringContainsUnchecked(receiver, other, startIndex) {
  2937. var t1;
  2938. if (typeof other == "string")
  2939. return receiver.indexOf(other, startIndex) >= 0;
  2940. else if (other instanceof A.JSSyntaxRegExp) {
  2941. t1 = B.JSString_methods.substring$1(receiver, startIndex);
  2942. return other._nativeRegExp.test(t1);
  2943. } else
  2944. return !J.allMatches$1$s(other, B.JSString_methods.substring$1(receiver, startIndex)).get$isEmpty(0);
  2945. },
  2946. escapeReplacement(replacement) {
  2947. if (replacement.indexOf("$", 0) >= 0)
  2948. return replacement.replace(/\$/g, "$$$$");
  2949. return replacement;
  2950. },
  2951. stringReplaceFirstRE(receiver, regexp, replacement, startIndex) {
  2952. var match = regexp._execGlobal$2(receiver, startIndex);
  2953. if (match == null)
  2954. return receiver;
  2955. return A.stringReplaceRangeUnchecked(receiver, match._match.index, match.get$end(0), replacement);
  2956. },
  2957. quoteStringForRegExp(string) {
  2958. if (/[[\]{}()*+?.\\^$|]/.test(string))
  2959. return string.replace(/[[\]{}()*+?.\\^$|]/g, "\\$&");
  2960. return string;
  2961. },
  2962. stringReplaceAllUnchecked(receiver, pattern, replacement) {
  2963. var nativeRegexp;
  2964. if (typeof pattern == "string")
  2965. return A.stringReplaceAllUncheckedString(receiver, pattern, replacement);
  2966. if (pattern instanceof A.JSSyntaxRegExp) {
  2967. nativeRegexp = pattern.get$_nativeGlobalVersion();
  2968. nativeRegexp.lastIndex = 0;
  2969. return receiver.replace(nativeRegexp, A.escapeReplacement(replacement));
  2970. }
  2971. return A.stringReplaceAllGeneral(receiver, pattern, replacement);
  2972. },
  2973. stringReplaceAllGeneral(receiver, pattern, replacement) {
  2974. var t1, startIndex, t2, match;
  2975. for (t1 = J.allMatches$1$s(pattern, receiver), t1 = t1.get$iterator(t1), startIndex = 0, t2 = ""; t1.moveNext$0();) {
  2976. match = t1.get$current(t1);
  2977. t2 = t2 + receiver.substring(startIndex, match.get$start(match)) + replacement;
  2978. startIndex = match.get$end(match);
  2979. }
  2980. t1 = t2 + receiver.substring(startIndex);
  2981. return t1.charCodeAt(0) == 0 ? t1 : t1;
  2982. },
  2983. stringReplaceAllUncheckedString(receiver, pattern, replacement) {
  2984. var $length, t1, i;
  2985. if (pattern === "") {
  2986. if (receiver === "")
  2987. return replacement;
  2988. $length = receiver.length;
  2989. t1 = "" + replacement;
  2990. for (i = 0; i < $length; ++i)
  2991. t1 = t1 + receiver[i] + replacement;
  2992. return t1.charCodeAt(0) == 0 ? t1 : t1;
  2993. }
  2994. if (receiver.indexOf(pattern, 0) < 0)
  2995. return receiver;
  2996. if (receiver.length < 500 || replacement.indexOf("$", 0) >= 0)
  2997. return receiver.split(pattern).join(replacement);
  2998. return receiver.replace(new RegExp(A.quoteStringForRegExp(pattern), "g"), A.escapeReplacement(replacement));
  2999. },
  3000. stringReplaceFirstUnchecked(receiver, pattern, replacement, startIndex) {
  3001. var index, t1, matches, match;
  3002. if (typeof pattern == "string") {
  3003. index = receiver.indexOf(pattern, startIndex);
  3004. if (index < 0)
  3005. return receiver;
  3006. return A.stringReplaceRangeUnchecked(receiver, index, index + pattern.length, replacement);
  3007. }
  3008. if (pattern instanceof A.JSSyntaxRegExp)
  3009. return startIndex === 0 ? receiver.replace(pattern._nativeRegExp, A.escapeReplacement(replacement)) : A.stringReplaceFirstRE(receiver, pattern, replacement, startIndex);
  3010. t1 = J.allMatches$2$s(pattern, receiver, startIndex);
  3011. matches = t1.get$iterator(t1);
  3012. if (!matches.moveNext$0())
  3013. return receiver;
  3014. match = matches.get$current(matches);
  3015. return B.JSString_methods.replaceRange$3(receiver, match.get$start(match), match.get$end(match), replacement);
  3016. },
  3017. stringReplaceRangeUnchecked(receiver, start, end, replacement) {
  3018. return receiver.substring(0, start) + replacement + receiver.substring(end);
  3019. },
  3020. _Record_1: function _Record_1(t0) {
  3021. this._0 = t0;
  3022. },
  3023. _Record_2: function _Record_2(t0, t1) {
  3024. this._0 = t0;
  3025. this._1 = t1;
  3026. },
  3027. _Record_2_forImport: function _Record_2_forImport(t0, t1) {
  3028. this._0 = t0;
  3029. this._1 = t1;
  3030. },
  3031. _Record_2_imports_modules: function _Record_2_imports_modules(t0, t1) {
  3032. this._0 = t0;
  3033. this._1 = t1;
  3034. },
  3035. _Record_2_loadedUrls_stylesheet: function _Record_2_loadedUrls_stylesheet(t0, t1) {
  3036. this._0 = t0;
  3037. this._1 = t1;
  3038. },
  3039. _Record_2_sourceMap: function _Record_2_sourceMap(t0, t1) {
  3040. this._0 = t0;
  3041. this._1 = t1;
  3042. },
  3043. _Record_3: function _Record_3(t0, t1, t2) {
  3044. this._0 = t0;
  3045. this._1 = t1;
  3046. this._2 = t2;
  3047. },
  3048. _Record_3_deprecation_message_span: function _Record_3_deprecation_message_span(t0, t1, t2) {
  3049. this._0 = t0;
  3050. this._1 = t1;
  3051. this._2 = t2;
  3052. },
  3053. _Record_3_forImport: function _Record_3_forImport(t0, t1, t2) {
  3054. this._0 = t0;
  3055. this._1 = t1;
  3056. this._2 = t2;
  3057. },
  3058. _Record_3_importer_isDependency: function _Record_3_importer_isDependency(t0, t1, t2) {
  3059. this._0 = t0;
  3060. this._1 = t1;
  3061. this._2 = t2;
  3062. },
  3063. _Record_3_originalUrl: function _Record_3_originalUrl(t0, t1, t2) {
  3064. this._0 = t0;
  3065. this._1 = t1;
  3066. this._2 = t2;
  3067. },
  3068. _Record_5_named_namedNodes_positional_positionalNodes_separator: function _Record_5_named_namedNodes_positional_positionalNodes_separator(t0) {
  3069. this._values = t0;
  3070. },
  3071. ConstantMapView: function ConstantMapView(t0, t1) {
  3072. this._map = t0;
  3073. this.$ti = t1;
  3074. },
  3075. ConstantMap: function ConstantMap() {
  3076. },
  3077. ConstantStringMap: function ConstantStringMap(t0, t1, t2) {
  3078. this._jsIndex = t0;
  3079. this._values = t1;
  3080. this.$ti = t2;
  3081. },
  3082. _KeysOrValues: function _KeysOrValues(t0, t1) {
  3083. this._elements = t0;
  3084. this.$ti = t1;
  3085. },
  3086. _KeysOrValuesOrElementsIterator: function _KeysOrValuesOrElementsIterator(t0, t1, t2) {
  3087. var _ = this;
  3088. _._elements = t0;
  3089. _.__js_helper$_length = t1;
  3090. _.__js_helper$_index = 0;
  3091. _.__js_helper$_current = null;
  3092. _.$ti = t2;
  3093. },
  3094. ConstantSet: function ConstantSet() {
  3095. },
  3096. ConstantStringSet: function ConstantStringSet(t0, t1, t2) {
  3097. this._jsIndex = t0;
  3098. this.__js_helper$_length = t1;
  3099. this.$ti = t2;
  3100. },
  3101. GeneralConstantSet: function GeneralConstantSet(t0, t1) {
  3102. this._elements = t0;
  3103. this.$ti = t1;
  3104. },
  3105. Instantiation: function Instantiation() {
  3106. },
  3107. Instantiation1: function Instantiation1(t0, t1) {
  3108. this._genericClosure = t0;
  3109. this.$ti = t1;
  3110. },
  3111. JSInvocationMirror: function JSInvocationMirror(t0, t1, t2, t3, t4) {
  3112. var _ = this;
  3113. _.__js_helper$_memberName = t0;
  3114. _.__js_helper$_kind = t1;
  3115. _._arguments = t2;
  3116. _._namedArgumentNames = t3;
  3117. _._typeArgumentCount = t4;
  3118. },
  3119. Primitives_functionNoSuchMethod_closure: function Primitives_functionNoSuchMethod_closure(t0, t1, t2) {
  3120. this._box_0 = t0;
  3121. this.namedArgumentList = t1;
  3122. this.$arguments = t2;
  3123. },
  3124. TypeErrorDecoder: function TypeErrorDecoder(t0, t1, t2, t3, t4, t5) {
  3125. var _ = this;
  3126. _._pattern = t0;
  3127. _._arguments = t1;
  3128. _._argumentsExpr = t2;
  3129. _._expr = t3;
  3130. _._method = t4;
  3131. _._receiver = t5;
  3132. },
  3133. NullError: function NullError() {
  3134. },
  3135. JsNoSuchMethodError: function JsNoSuchMethodError(t0, t1, t2) {
  3136. this.__js_helper$_message = t0;
  3137. this._method = t1;
  3138. this._receiver = t2;
  3139. },
  3140. UnknownJsTypeError: function UnknownJsTypeError(t0) {
  3141. this.__js_helper$_message = t0;
  3142. },
  3143. NullThrownFromJavaScriptException: function NullThrownFromJavaScriptException(t0) {
  3144. this._irritant = t0;
  3145. },
  3146. ExceptionAndStackTrace: function ExceptionAndStackTrace(t0, t1) {
  3147. this.dartException = t0;
  3148. this.stackTrace = t1;
  3149. },
  3150. _StackTrace: function _StackTrace(t0) {
  3151. this._exception = t0;
  3152. this._trace = null;
  3153. },
  3154. Closure: function Closure() {
  3155. },
  3156. Closure0Args: function Closure0Args() {
  3157. },
  3158. Closure2Args: function Closure2Args() {
  3159. },
  3160. TearOffClosure: function TearOffClosure() {
  3161. },
  3162. StaticClosure: function StaticClosure() {
  3163. },
  3164. BoundClosure: function BoundClosure(t0, t1) {
  3165. this._receiver = t0;
  3166. this._interceptor = t1;
  3167. },
  3168. _CyclicInitializationError: function _CyclicInitializationError(t0) {
  3169. this.variableName = t0;
  3170. },
  3171. RuntimeError: function RuntimeError(t0) {
  3172. this.message = t0;
  3173. },
  3174. _Required: function _Required() {
  3175. },
  3176. JsLinkedHashMap: function JsLinkedHashMap(t0) {
  3177. var _ = this;
  3178. _.__js_helper$_length = 0;
  3179. _.__js_helper$_last = _.__js_helper$_first = _.__js_helper$_rest = _.__js_helper$_nums = _.__js_helper$_strings = null;
  3180. _.__js_helper$_modifications = 0;
  3181. _.$ti = t0;
  3182. },
  3183. JsLinkedHashMap_values_closure: function JsLinkedHashMap_values_closure(t0) {
  3184. this.$this = t0;
  3185. },
  3186. JsLinkedHashMap_addAll_closure: function JsLinkedHashMap_addAll_closure(t0) {
  3187. this.$this = t0;
  3188. },
  3189. LinkedHashMapCell: function LinkedHashMapCell(t0, t1) {
  3190. var _ = this;
  3191. _.hashMapCellKey = t0;
  3192. _.hashMapCellValue = t1;
  3193. _.__js_helper$_previous = _.__js_helper$_next = null;
  3194. },
  3195. LinkedHashMapKeyIterable: function LinkedHashMapKeyIterable(t0, t1) {
  3196. this.__js_helper$_map = t0;
  3197. this.$ti = t1;
  3198. },
  3199. LinkedHashMapKeyIterator: function LinkedHashMapKeyIterator(t0, t1) {
  3200. var _ = this;
  3201. _.__js_helper$_map = t0;
  3202. _.__js_helper$_modifications = t1;
  3203. _.__js_helper$_current = _.__js_helper$_cell = null;
  3204. },
  3205. JsIdentityLinkedHashMap: function JsIdentityLinkedHashMap(t0) {
  3206. var _ = this;
  3207. _.__js_helper$_length = 0;
  3208. _.__js_helper$_last = _.__js_helper$_first = _.__js_helper$_rest = _.__js_helper$_nums = _.__js_helper$_strings = null;
  3209. _.__js_helper$_modifications = 0;
  3210. _.$ti = t0;
  3211. },
  3212. JsConstantLinkedHashMap: function JsConstantLinkedHashMap(t0) {
  3213. var _ = this;
  3214. _.__js_helper$_length = 0;
  3215. _.__js_helper$_last = _.__js_helper$_first = _.__js_helper$_rest = _.__js_helper$_nums = _.__js_helper$_strings = null;
  3216. _.__js_helper$_modifications = 0;
  3217. _.$ti = t0;
  3218. },
  3219. initHooks_closure: function initHooks_closure(t0) {
  3220. this.getTag = t0;
  3221. },
  3222. initHooks_closure0: function initHooks_closure0(t0) {
  3223. this.getUnknownTag = t0;
  3224. },
  3225. initHooks_closure1: function initHooks_closure1(t0) {
  3226. this.prototypeForTag = t0;
  3227. },
  3228. _Record: function _Record() {
  3229. },
  3230. _Record2: function _Record2() {
  3231. },
  3232. _Record1: function _Record1() {
  3233. },
  3234. _Record3: function _Record3() {
  3235. },
  3236. _RecordN: function _RecordN() {
  3237. },
  3238. JSSyntaxRegExp: function JSSyntaxRegExp(t0, t1) {
  3239. var _ = this;
  3240. _.pattern = t0;
  3241. _._nativeRegExp = t1;
  3242. _._nativeAnchoredRegExp = _._nativeGlobalRegExp = null;
  3243. },
  3244. _MatchImplementation: function _MatchImplementation(t0) {
  3245. this._match = t0;
  3246. },
  3247. _AllMatchesIterable: function _AllMatchesIterable(t0, t1, t2) {
  3248. this._re = t0;
  3249. this.__js_helper$_string = t1;
  3250. this.__js_helper$_start = t2;
  3251. },
  3252. _AllMatchesIterator: function _AllMatchesIterator(t0, t1, t2) {
  3253. var _ = this;
  3254. _._regExp = t0;
  3255. _.__js_helper$_string = t1;
  3256. _._nextIndex = t2;
  3257. _.__js_helper$_current = null;
  3258. },
  3259. StringMatch: function StringMatch(t0, t1) {
  3260. this.start = t0;
  3261. this.pattern = t1;
  3262. },
  3263. _StringAllMatchesIterable: function _StringAllMatchesIterable(t0, t1, t2) {
  3264. this._input = t0;
  3265. this._pattern = t1;
  3266. this.__js_helper$_index = t2;
  3267. },
  3268. _StringAllMatchesIterator: function _StringAllMatchesIterator(t0, t1, t2) {
  3269. var _ = this;
  3270. _._input = t0;
  3271. _._pattern = t1;
  3272. _.__js_helper$_index = t2;
  3273. _.__js_helper$_current = null;
  3274. },
  3275. throwLateFieldADI(fieldName) {
  3276. A.throwExpressionWithWrapper(new A.LateError("Field '" + fieldName + "' has been assigned during initialization."), new Error());
  3277. },
  3278. throwUnnamedLateFieldNI() {
  3279. A.throwExpressionWithWrapper(new A.LateError("Field '' has not been initialized."), new Error());
  3280. },
  3281. throwUnnamedLateFieldAI() {
  3282. A.throwExpressionWithWrapper(new A.LateError("Field '' has already been initialized."), new Error());
  3283. },
  3284. throwUnnamedLateFieldADI() {
  3285. A.throwExpressionWithWrapper(new A.LateError("Field '' has been assigned during initialization."), new Error());
  3286. },
  3287. _Cell$() {
  3288. var t1 = new A._Cell();
  3289. return t1.__late_helper$_value = t1;
  3290. },
  3291. _Cell: function _Cell() {
  3292. this.__late_helper$_value = null;
  3293. },
  3294. _ensureNativeList(list) {
  3295. return list;
  3296. },
  3297. NativeFloat64List_NativeFloat64List$fromList(elements) {
  3298. return new Float64Array(A._ensureNativeList(elements));
  3299. },
  3300. NativeInt8List__create1(arg) {
  3301. return new Int8Array(arg);
  3302. },
  3303. NativeUint8List_NativeUint8List($length) {
  3304. return new Uint8Array($length);
  3305. },
  3306. _checkValidIndex(index, list, $length) {
  3307. if (index >>> 0 !== index || index >= $length)
  3308. throw A.wrapException(A.diagnoseIndexError(list, index));
  3309. },
  3310. _checkValidRange(start, end, $length) {
  3311. var t1;
  3312. if (!(start >>> 0 !== start))
  3313. if (end == null)
  3314. t1 = start > $length;
  3315. else
  3316. t1 = end >>> 0 !== end || start > end || end > $length;
  3317. else
  3318. t1 = true;
  3319. if (t1)
  3320. throw A.wrapException(A.diagnoseRangeError(start, end, $length));
  3321. if (end == null)
  3322. return $length;
  3323. return end;
  3324. },
  3325. NativeByteBuffer: function NativeByteBuffer() {
  3326. },
  3327. NativeTypedData: function NativeTypedData() {
  3328. },
  3329. NativeByteData: function NativeByteData() {
  3330. },
  3331. NativeTypedArray: function NativeTypedArray() {
  3332. },
  3333. NativeTypedArrayOfDouble: function NativeTypedArrayOfDouble() {
  3334. },
  3335. NativeTypedArrayOfInt: function NativeTypedArrayOfInt() {
  3336. },
  3337. NativeFloat32List: function NativeFloat32List() {
  3338. },
  3339. NativeFloat64List: function NativeFloat64List() {
  3340. },
  3341. NativeInt16List: function NativeInt16List() {
  3342. },
  3343. NativeInt32List: function NativeInt32List() {
  3344. },
  3345. NativeInt8List: function NativeInt8List() {
  3346. },
  3347. NativeUint16List: function NativeUint16List() {
  3348. },
  3349. NativeUint32List: function NativeUint32List() {
  3350. },
  3351. NativeUint8ClampedList: function NativeUint8ClampedList() {
  3352. },
  3353. NativeUint8List: function NativeUint8List() {
  3354. },
  3355. _NativeTypedArrayOfDouble_NativeTypedArray_ListMixin: function _NativeTypedArrayOfDouble_NativeTypedArray_ListMixin() {
  3356. },
  3357. _NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin: function _NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin() {
  3358. },
  3359. _NativeTypedArrayOfInt_NativeTypedArray_ListMixin: function _NativeTypedArrayOfInt_NativeTypedArray_ListMixin() {
  3360. },
  3361. _NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin: function _NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin() {
  3362. },
  3363. Rti__getQuestionFromStar(universe, rti) {
  3364. var question = rti._precomputed1;
  3365. return question == null ? rti._precomputed1 = A._Universe__lookupQuestionRti(universe, rti._primary, true) : question;
  3366. },
  3367. Rti__getFutureFromFutureOr(universe, rti) {
  3368. var future = rti._precomputed1;
  3369. return future == null ? rti._precomputed1 = A._Universe__lookupInterfaceRti(universe, "Future", [rti._primary]) : future;
  3370. },
  3371. Rti__isUnionOfFunctionType(rti) {
  3372. var kind = rti._kind;
  3373. if (kind === 6 || kind === 7 || kind === 8)
  3374. return A.Rti__isUnionOfFunctionType(rti._primary);
  3375. return kind === 12 || kind === 13;
  3376. },
  3377. Rti__getCanonicalRecipe(rti) {
  3378. return rti._canonicalRecipe;
  3379. },
  3380. pairwiseIsTest(fieldRtis, values) {
  3381. var i,
  3382. $length = values.length;
  3383. for (i = 0; i < $length; ++i)
  3384. if (!fieldRtis[i]._is(values[i]))
  3385. return false;
  3386. return true;
  3387. },
  3388. findType(recipe) {
  3389. return A._Universe_eval(init.typeUniverse, recipe, false);
  3390. },
  3391. instantiatedGenericFunctionType(genericFunctionRti, instantiationRti) {
  3392. var t1, cache, key, probe, rti;
  3393. if (genericFunctionRti == null)
  3394. return null;
  3395. t1 = instantiationRti._rest;
  3396. cache = genericFunctionRti._bindCache;
  3397. if (cache == null)
  3398. cache = genericFunctionRti._bindCache = new Map();
  3399. key = instantiationRti._canonicalRecipe;
  3400. probe = cache.get(key);
  3401. if (probe != null)
  3402. return probe;
  3403. rti = A._substitute(init.typeUniverse, genericFunctionRti._primary, t1, 0);
  3404. cache.set(key, rti);
  3405. return rti;
  3406. },
  3407. _substitute(universe, rti, typeArguments, depth) {
  3408. var baseType, substitutedBaseType, interfaceTypeArguments, substitutedInterfaceTypeArguments, base, substitutedBase, $arguments, substitutedArguments, t1, fields, substitutedFields, returnType, substitutedReturnType, functionParameters, substitutedFunctionParameters, bounds, substitutedBounds, index, argument,
  3409. kind = rti._kind;
  3410. switch (kind) {
  3411. case 5:
  3412. case 1:
  3413. case 2:
  3414. case 3:
  3415. case 4:
  3416. return rti;
  3417. case 6:
  3418. baseType = rti._primary;
  3419. substitutedBaseType = A._substitute(universe, baseType, typeArguments, depth);
  3420. if (substitutedBaseType === baseType)
  3421. return rti;
  3422. return A._Universe__lookupStarRti(universe, substitutedBaseType, true);
  3423. case 7:
  3424. baseType = rti._primary;
  3425. substitutedBaseType = A._substitute(universe, baseType, typeArguments, depth);
  3426. if (substitutedBaseType === baseType)
  3427. return rti;
  3428. return A._Universe__lookupQuestionRti(universe, substitutedBaseType, true);
  3429. case 8:
  3430. baseType = rti._primary;
  3431. substitutedBaseType = A._substitute(universe, baseType, typeArguments, depth);
  3432. if (substitutedBaseType === baseType)
  3433. return rti;
  3434. return A._Universe__lookupFutureOrRti(universe, substitutedBaseType, true);
  3435. case 9:
  3436. interfaceTypeArguments = rti._rest;
  3437. substitutedInterfaceTypeArguments = A._substituteArray(universe, interfaceTypeArguments, typeArguments, depth);
  3438. if (substitutedInterfaceTypeArguments === interfaceTypeArguments)
  3439. return rti;
  3440. return A._Universe__lookupInterfaceRti(universe, rti._primary, substitutedInterfaceTypeArguments);
  3441. case 10:
  3442. base = rti._primary;
  3443. substitutedBase = A._substitute(universe, base, typeArguments, depth);
  3444. $arguments = rti._rest;
  3445. substitutedArguments = A._substituteArray(universe, $arguments, typeArguments, depth);
  3446. if (substitutedBase === base && substitutedArguments === $arguments)
  3447. return rti;
  3448. return A._Universe__lookupBindingRti(universe, substitutedBase, substitutedArguments);
  3449. case 11:
  3450. t1 = rti._primary;
  3451. fields = rti._rest;
  3452. substitutedFields = A._substituteArray(universe, fields, typeArguments, depth);
  3453. if (substitutedFields === fields)
  3454. return rti;
  3455. return A._Universe__lookupRecordRti(universe, t1, substitutedFields);
  3456. case 12:
  3457. returnType = rti._primary;
  3458. substitutedReturnType = A._substitute(universe, returnType, typeArguments, depth);
  3459. functionParameters = rti._rest;
  3460. substitutedFunctionParameters = A._substituteFunctionParameters(universe, functionParameters, typeArguments, depth);
  3461. if (substitutedReturnType === returnType && substitutedFunctionParameters === functionParameters)
  3462. return rti;
  3463. return A._Universe__lookupFunctionRti(universe, substitutedReturnType, substitutedFunctionParameters);
  3464. case 13:
  3465. bounds = rti._rest;
  3466. depth += bounds.length;
  3467. substitutedBounds = A._substituteArray(universe, bounds, typeArguments, depth);
  3468. base = rti._primary;
  3469. substitutedBase = A._substitute(universe, base, typeArguments, depth);
  3470. if (substitutedBounds === bounds && substitutedBase === base)
  3471. return rti;
  3472. return A._Universe__lookupGenericFunctionRti(universe, substitutedBase, substitutedBounds, true);
  3473. case 14:
  3474. index = rti._primary;
  3475. if (index < depth)
  3476. return rti;
  3477. argument = typeArguments[index - depth];
  3478. if (argument == null)
  3479. return rti;
  3480. return argument;
  3481. default:
  3482. throw A.wrapException(A.AssertionError$("Attempted to substitute unexpected RTI kind " + kind));
  3483. }
  3484. },
  3485. _substituteArray(universe, rtiArray, typeArguments, depth) {
  3486. var changed, i, rti, substitutedRti,
  3487. $length = rtiArray.length,
  3488. result = A._Utils_newArrayOrEmpty($length);
  3489. for (changed = false, i = 0; i < $length; ++i) {
  3490. rti = rtiArray[i];
  3491. substitutedRti = A._substitute(universe, rti, typeArguments, depth);
  3492. if (substitutedRti !== rti)
  3493. changed = true;
  3494. result[i] = substitutedRti;
  3495. }
  3496. return changed ? result : rtiArray;
  3497. },
  3498. _substituteNamed(universe, namedArray, typeArguments, depth) {
  3499. var changed, i, t1, t2, rti, substitutedRti,
  3500. $length = namedArray.length,
  3501. result = A._Utils_newArrayOrEmpty($length);
  3502. for (changed = false, i = 0; i < $length; i += 3) {
  3503. t1 = namedArray[i];
  3504. t2 = namedArray[i + 1];
  3505. rti = namedArray[i + 2];
  3506. substitutedRti = A._substitute(universe, rti, typeArguments, depth);
  3507. if (substitutedRti !== rti)
  3508. changed = true;
  3509. result.splice(i, 3, t1, t2, substitutedRti);
  3510. }
  3511. return changed ? result : namedArray;
  3512. },
  3513. _substituteFunctionParameters(universe, functionParameters, typeArguments, depth) {
  3514. var result,
  3515. requiredPositional = functionParameters._requiredPositional,
  3516. substitutedRequiredPositional = A._substituteArray(universe, requiredPositional, typeArguments, depth),
  3517. optionalPositional = functionParameters._optionalPositional,
  3518. substitutedOptionalPositional = A._substituteArray(universe, optionalPositional, typeArguments, depth),
  3519. named = functionParameters._named,
  3520. substitutedNamed = A._substituteNamed(universe, named, typeArguments, depth);
  3521. if (substitutedRequiredPositional === requiredPositional && substitutedOptionalPositional === optionalPositional && substitutedNamed === named)
  3522. return functionParameters;
  3523. result = new A._FunctionParameters();
  3524. result._requiredPositional = substitutedRequiredPositional;
  3525. result._optionalPositional = substitutedOptionalPositional;
  3526. result._named = substitutedNamed;
  3527. return result;
  3528. },
  3529. _setArrayType(target, rti) {
  3530. target[init.arrayRti] = rti;
  3531. return target;
  3532. },
  3533. closureFunctionType(closure) {
  3534. var signature = closure.$signature;
  3535. if (signature != null) {
  3536. if (typeof signature == "number")
  3537. return A.getTypeFromTypesTable(signature);
  3538. return closure.$signature();
  3539. }
  3540. return null;
  3541. },
  3542. instanceOrFunctionType(object, testRti) {
  3543. var rti;
  3544. if (A.Rti__isUnionOfFunctionType(testRti))
  3545. if (object instanceof A.Closure) {
  3546. rti = A.closureFunctionType(object);
  3547. if (rti != null)
  3548. return rti;
  3549. }
  3550. return A.instanceType(object);
  3551. },
  3552. instanceType(object) {
  3553. if (object instanceof A.Object)
  3554. return A._instanceType(object);
  3555. if (Array.isArray(object))
  3556. return A._arrayInstanceType(object);
  3557. return A._instanceTypeFromConstructor(J.getInterceptor$(object));
  3558. },
  3559. _arrayInstanceType(object) {
  3560. var rti = object[init.arrayRti],
  3561. defaultRti = type$.JSArray_dynamic;
  3562. if (rti == null)
  3563. return defaultRti;
  3564. if (rti.constructor !== defaultRti.constructor)
  3565. return defaultRti;
  3566. return rti;
  3567. },
  3568. _instanceType(object) {
  3569. var rti = object.$ti;
  3570. return rti != null ? rti : A._instanceTypeFromConstructor(object);
  3571. },
  3572. _instanceTypeFromConstructor(instance) {
  3573. var $constructor = instance.constructor,
  3574. probe = $constructor.$ccache;
  3575. if (probe != null)
  3576. return probe;
  3577. return A._instanceTypeFromConstructorMiss(instance, $constructor);
  3578. },
  3579. _instanceTypeFromConstructorMiss(instance, $constructor) {
  3580. var effectiveConstructor = instance instanceof A.Closure ? Object.getPrototypeOf(Object.getPrototypeOf(instance)).constructor : $constructor,
  3581. rti = A._Universe_findErasedType(init.typeUniverse, effectiveConstructor.name);
  3582. $constructor.$ccache = rti;
  3583. return rti;
  3584. },
  3585. getTypeFromTypesTable(index) {
  3586. var rti,
  3587. table = init.types,
  3588. type = table[index];
  3589. if (typeof type == "string") {
  3590. rti = A._Universe_eval(init.typeUniverse, type, false);
  3591. table[index] = rti;
  3592. return rti;
  3593. }
  3594. return type;
  3595. },
  3596. getRuntimeTypeOfDartObject(object) {
  3597. return A.createRuntimeType(A._instanceType(object));
  3598. },
  3599. getRuntimeTypeOfClosure(closure) {
  3600. var rti = A.closureFunctionType(closure);
  3601. return A.createRuntimeType(rti == null ? A.instanceType(closure) : rti);
  3602. },
  3603. _structuralTypeOf(object) {
  3604. var functionRti;
  3605. if (object instanceof A._Record)
  3606. return A.evaluateRtiForRecord(object.$recipe, object._getFieldValues$0());
  3607. functionRti = object instanceof A.Closure ? A.closureFunctionType(object) : null;
  3608. if (functionRti != null)
  3609. return functionRti;
  3610. if (type$.TrustedGetRuntimeType._is(object))
  3611. return J.get$runtimeType$(object)._rti;
  3612. if (Array.isArray(object))
  3613. return A._arrayInstanceType(object);
  3614. return A.instanceType(object);
  3615. },
  3616. createRuntimeType(rti) {
  3617. var t1 = rti._cachedRuntimeType;
  3618. return t1 == null ? rti._cachedRuntimeType = A._createRuntimeType(rti) : t1;
  3619. },
  3620. _createRuntimeType(rti) {
  3621. var starErasedRti, t1,
  3622. s = rti._canonicalRecipe,
  3623. starErasedRecipe = s.replace(/\*/g, "");
  3624. if (starErasedRecipe === s)
  3625. return rti._cachedRuntimeType = new A._Type(rti);
  3626. starErasedRti = A._Universe_eval(init.typeUniverse, starErasedRecipe, true);
  3627. t1 = starErasedRti._cachedRuntimeType;
  3628. return t1 == null ? starErasedRti._cachedRuntimeType = A._createRuntimeType(starErasedRti) : t1;
  3629. },
  3630. evaluateRtiForRecord(recordRecipe, valuesList) {
  3631. var bindings, i,
  3632. values = valuesList,
  3633. $length = values.length;
  3634. if ($length === 0)
  3635. return type$.Record_0;
  3636. bindings = A._Universe_evalInEnvironment(init.typeUniverse, A._structuralTypeOf(values[0]), "@<0>");
  3637. for (i = 1; i < $length; ++i)
  3638. bindings = A._Universe_bind(init.typeUniverse, bindings, A._structuralTypeOf(values[i]));
  3639. return A._Universe_evalInEnvironment(init.typeUniverse, bindings, recordRecipe);
  3640. },
  3641. typeLiteral(recipe) {
  3642. return A.createRuntimeType(A._Universe_eval(init.typeUniverse, recipe, false));
  3643. },
  3644. _installSpecializedIsTest(object) {
  3645. var t1, unstarred, unstarredKind, isFn, $name, predicate, testRti = this;
  3646. if (testRti === type$.Object)
  3647. return A._finishIsFn(testRti, object, A._isObject);
  3648. if (!A.isSoundTopType(testRti))
  3649. t1 = testRti === type$.legacy_Object;
  3650. else
  3651. t1 = true;
  3652. if (t1)
  3653. return A._finishIsFn(testRti, object, A._isTop);
  3654. t1 = testRti._kind;
  3655. if (t1 === 7)
  3656. return A._finishIsFn(testRti, object, A._generalNullableIsTestImplementation);
  3657. if (t1 === 1)
  3658. return A._finishIsFn(testRti, object, A._isNever);
  3659. unstarred = t1 === 6 ? testRti._primary : testRti;
  3660. unstarredKind = unstarred._kind;
  3661. if (unstarredKind === 8)
  3662. return A._finishIsFn(testRti, object, A._isFutureOr);
  3663. if (unstarred === type$.int)
  3664. isFn = A._isInt;
  3665. else if (unstarred === type$.double || unstarred === type$.num)
  3666. isFn = A._isNum;
  3667. else if (unstarred === type$.String)
  3668. isFn = A._isString;
  3669. else
  3670. isFn = unstarred === type$.bool ? A._isBool : null;
  3671. if (isFn != null)
  3672. return A._finishIsFn(testRti, object, isFn);
  3673. if (unstarredKind === 9) {
  3674. $name = unstarred._primary;
  3675. if (unstarred._rest.every(A.isDefinitelyTopType)) {
  3676. testRti._specializedTestResource = "$is" + $name;
  3677. if ($name === "List")
  3678. return A._finishIsFn(testRti, object, A._isListTestViaProperty);
  3679. return A._finishIsFn(testRti, object, A._isTestViaProperty);
  3680. }
  3681. } else if (unstarredKind === 11) {
  3682. predicate = A.createRecordTypePredicate(unstarred._primary, unstarred._rest);
  3683. return A._finishIsFn(testRti, object, predicate == null ? A._isNever : predicate);
  3684. }
  3685. return A._finishIsFn(testRti, object, A._generalIsTestImplementation);
  3686. },
  3687. _finishIsFn(testRti, object, isFn) {
  3688. testRti._is = isFn;
  3689. return testRti._is(object);
  3690. },
  3691. _installSpecializedAsCheck(object) {
  3692. var t1, testRti = this,
  3693. asFn = A._generalAsCheckImplementation;
  3694. if (!A.isSoundTopType(testRti))
  3695. t1 = testRti === type$.legacy_Object;
  3696. else
  3697. t1 = true;
  3698. if (t1)
  3699. asFn = A._asTop;
  3700. else if (testRti === type$.Object)
  3701. asFn = A._asObject;
  3702. else {
  3703. t1 = A.isNullable(testRti);
  3704. if (t1)
  3705. asFn = A._generalNullableAsCheckImplementation;
  3706. }
  3707. testRti._as = asFn;
  3708. return testRti._as(object);
  3709. },
  3710. _nullIs(testRti) {
  3711. var kind = testRti._kind,
  3712. t1 = true;
  3713. if (!A.isSoundTopType(testRti))
  3714. if (!(testRti === type$.legacy_Object))
  3715. if (!(testRti === type$.legacy_Never))
  3716. if (kind !== 7)
  3717. if (!(kind === 6 && A._nullIs(testRti._primary)))
  3718. t1 = kind === 8 && A._nullIs(testRti._primary) || testRti === type$.Null || testRti === type$.JSNull;
  3719. return t1;
  3720. },
  3721. _generalIsTestImplementation(object) {
  3722. var testRti = this;
  3723. if (object == null)
  3724. return A._nullIs(testRti);
  3725. return A.isSubtype(init.typeUniverse, A.instanceOrFunctionType(object, testRti), testRti);
  3726. },
  3727. _generalNullableIsTestImplementation(object) {
  3728. if (object == null)
  3729. return true;
  3730. return this._primary._is(object);
  3731. },
  3732. _isTestViaProperty(object) {
  3733. var tag, testRti = this;
  3734. if (object == null)
  3735. return A._nullIs(testRti);
  3736. tag = testRti._specializedTestResource;
  3737. if (object instanceof A.Object)
  3738. return !!object[tag];
  3739. return !!J.getInterceptor$(object)[tag];
  3740. },
  3741. _isListTestViaProperty(object) {
  3742. var tag, testRti = this;
  3743. if (object == null)
  3744. return A._nullIs(testRti);
  3745. if (typeof object != "object")
  3746. return false;
  3747. if (Array.isArray(object))
  3748. return true;
  3749. tag = testRti._specializedTestResource;
  3750. if (object instanceof A.Object)
  3751. return !!object[tag];
  3752. return !!J.getInterceptor$(object)[tag];
  3753. },
  3754. _generalAsCheckImplementation(object) {
  3755. var testRti = this;
  3756. if (object == null) {
  3757. if (A.isNullable(testRti))
  3758. return object;
  3759. } else if (testRti._is(object))
  3760. return object;
  3761. A._failedAsCheck(object, testRti);
  3762. },
  3763. _generalNullableAsCheckImplementation(object) {
  3764. var testRti = this;
  3765. if (object == null)
  3766. return object;
  3767. else if (testRti._is(object))
  3768. return object;
  3769. A._failedAsCheck(object, testRti);
  3770. },
  3771. _failedAsCheck(object, testRti) {
  3772. throw A.wrapException(A._TypeError$fromMessage(A._Error_compose(object, A._rtiToString(testRti, null))));
  3773. },
  3774. _Error_compose(object, checkedTypeDescription) {
  3775. return A.Error_safeToString(object) + ": type '" + A._rtiToString(A._structuralTypeOf(object), null) + "' is not a subtype of type '" + checkedTypeDescription + "'";
  3776. },
  3777. _TypeError$fromMessage(message) {
  3778. return new A._TypeError("TypeError: " + message);
  3779. },
  3780. _TypeError__TypeError$forType(object, type) {
  3781. return new A._TypeError("TypeError: " + A._Error_compose(object, type));
  3782. },
  3783. _isFutureOr(object) {
  3784. var testRti = this,
  3785. unstarred = testRti._kind === 6 ? testRti._primary : testRti;
  3786. return unstarred._primary._is(object) || A.Rti__getFutureFromFutureOr(init.typeUniverse, unstarred)._is(object);
  3787. },
  3788. _isObject(object) {
  3789. return object != null;
  3790. },
  3791. _asObject(object) {
  3792. if (object != null)
  3793. return object;
  3794. throw A.wrapException(A._TypeError__TypeError$forType(object, "Object"));
  3795. },
  3796. _isTop(object) {
  3797. return true;
  3798. },
  3799. _asTop(object) {
  3800. return object;
  3801. },
  3802. _isNever(object) {
  3803. return false;
  3804. },
  3805. _isBool(object) {
  3806. return true === object || false === object;
  3807. },
  3808. _asBool(object) {
  3809. if (true === object)
  3810. return true;
  3811. if (false === object)
  3812. return false;
  3813. throw A.wrapException(A._TypeError__TypeError$forType(object, "bool"));
  3814. },
  3815. _asBoolS(object) {
  3816. if (true === object)
  3817. return true;
  3818. if (false === object)
  3819. return false;
  3820. if (object == null)
  3821. return object;
  3822. throw A.wrapException(A._TypeError__TypeError$forType(object, "bool"));
  3823. },
  3824. _asBoolQ(object) {
  3825. if (true === object)
  3826. return true;
  3827. if (false === object)
  3828. return false;
  3829. if (object == null)
  3830. return object;
  3831. throw A.wrapException(A._TypeError__TypeError$forType(object, "bool?"));
  3832. },
  3833. _asDouble(object) {
  3834. if (typeof object == "number")
  3835. return object;
  3836. throw A.wrapException(A._TypeError__TypeError$forType(object, "double"));
  3837. },
  3838. _asDoubleS(object) {
  3839. if (typeof object == "number")
  3840. return object;
  3841. if (object == null)
  3842. return object;
  3843. throw A.wrapException(A._TypeError__TypeError$forType(object, "double"));
  3844. },
  3845. _asDoubleQ(object) {
  3846. if (typeof object == "number")
  3847. return object;
  3848. if (object == null)
  3849. return object;
  3850. throw A.wrapException(A._TypeError__TypeError$forType(object, "double?"));
  3851. },
  3852. _isInt(object) {
  3853. return typeof object == "number" && Math.floor(object) === object;
  3854. },
  3855. _asInt(object) {
  3856. if (typeof object == "number" && Math.floor(object) === object)
  3857. return object;
  3858. throw A.wrapException(A._TypeError__TypeError$forType(object, "int"));
  3859. },
  3860. _asIntS(object) {
  3861. if (typeof object == "number" && Math.floor(object) === object)
  3862. return object;
  3863. if (object == null)
  3864. return object;
  3865. throw A.wrapException(A._TypeError__TypeError$forType(object, "int"));
  3866. },
  3867. _asIntQ(object) {
  3868. if (typeof object == "number" && Math.floor(object) === object)
  3869. return object;
  3870. if (object == null)
  3871. return object;
  3872. throw A.wrapException(A._TypeError__TypeError$forType(object, "int?"));
  3873. },
  3874. _isNum(object) {
  3875. return typeof object == "number";
  3876. },
  3877. _asNum(object) {
  3878. if (typeof object == "number")
  3879. return object;
  3880. throw A.wrapException(A._TypeError__TypeError$forType(object, "num"));
  3881. },
  3882. _asNumS(object) {
  3883. if (typeof object == "number")
  3884. return object;
  3885. if (object == null)
  3886. return object;
  3887. throw A.wrapException(A._TypeError__TypeError$forType(object, "num"));
  3888. },
  3889. _asNumQ(object) {
  3890. if (typeof object == "number")
  3891. return object;
  3892. if (object == null)
  3893. return object;
  3894. throw A.wrapException(A._TypeError__TypeError$forType(object, "num?"));
  3895. },
  3896. _isString(object) {
  3897. return typeof object == "string";
  3898. },
  3899. _asString(object) {
  3900. if (typeof object == "string")
  3901. return object;
  3902. throw A.wrapException(A._TypeError__TypeError$forType(object, "String"));
  3903. },
  3904. _asStringS(object) {
  3905. if (typeof object == "string")
  3906. return object;
  3907. if (object == null)
  3908. return object;
  3909. throw A.wrapException(A._TypeError__TypeError$forType(object, "String"));
  3910. },
  3911. _asStringQ(object) {
  3912. if (typeof object == "string")
  3913. return object;
  3914. if (object == null)
  3915. return object;
  3916. throw A.wrapException(A._TypeError__TypeError$forType(object, "String?"));
  3917. },
  3918. _rtiArrayToString(array, genericContext) {
  3919. var s, sep, i;
  3920. for (s = "", sep = "", i = 0; i < array.length; ++i, sep = ", ")
  3921. s += sep + A._rtiToString(array[i], genericContext);
  3922. return s;
  3923. },
  3924. _recordRtiToString(recordType, genericContext) {
  3925. var fieldCount, names, namesIndex, s, comma, i,
  3926. partialShape = recordType._primary,
  3927. fields = recordType._rest;
  3928. if ("" === partialShape)
  3929. return "(" + A._rtiArrayToString(fields, genericContext) + ")";
  3930. fieldCount = fields.length;
  3931. names = partialShape.split(",");
  3932. namesIndex = names.length - fieldCount;
  3933. for (s = "(", comma = "", i = 0; i < fieldCount; ++i, comma = ", ") {
  3934. s += comma;
  3935. if (namesIndex === 0)
  3936. s += "{";
  3937. s += A._rtiToString(fields[i], genericContext);
  3938. if (namesIndex >= 0)
  3939. s += " " + names[namesIndex];
  3940. ++namesIndex;
  3941. }
  3942. return s + "})";
  3943. },
  3944. _functionRtiToString(functionType, genericContext, bounds) {
  3945. var boundsLength, offset, i, t1, t2, typeParametersText, typeSep, boundRti, kind, t3, parameters, requiredPositional, requiredPositionalLength, optionalPositional, optionalPositionalLength, named, namedLength, returnTypeText, argumentsText, sep, _s2_ = ", ", outerContextLength = null;
  3946. if (bounds != null) {
  3947. boundsLength = bounds.length;
  3948. if (genericContext == null)
  3949. genericContext = A._setArrayType([], type$.JSArray_String);
  3950. else
  3951. outerContextLength = genericContext.length;
  3952. offset = genericContext.length;
  3953. for (i = boundsLength; i > 0; --i)
  3954. genericContext.push("T" + (offset + i));
  3955. for (t1 = type$.nullable_Object, t2 = type$.legacy_Object, typeParametersText = "<", typeSep = "", i = 0; i < boundsLength; ++i, typeSep = _s2_) {
  3956. typeParametersText = B.JSString_methods.$add(typeParametersText + typeSep, genericContext[genericContext.length - 1 - i]);
  3957. boundRti = bounds[i];
  3958. kind = boundRti._kind;
  3959. if (!(kind === 2 || kind === 3 || kind === 4 || kind === 5 || boundRti === t1))
  3960. t3 = boundRti === t2;
  3961. else
  3962. t3 = true;
  3963. if (!t3)
  3964. typeParametersText += " extends " + A._rtiToString(boundRti, genericContext);
  3965. }
  3966. typeParametersText += ">";
  3967. } else
  3968. typeParametersText = "";
  3969. t1 = functionType._primary;
  3970. parameters = functionType._rest;
  3971. requiredPositional = parameters._requiredPositional;
  3972. requiredPositionalLength = requiredPositional.length;
  3973. optionalPositional = parameters._optionalPositional;
  3974. optionalPositionalLength = optionalPositional.length;
  3975. named = parameters._named;
  3976. namedLength = named.length;
  3977. returnTypeText = A._rtiToString(t1, genericContext);
  3978. for (argumentsText = "", sep = "", i = 0; i < requiredPositionalLength; ++i, sep = _s2_)
  3979. argumentsText += sep + A._rtiToString(requiredPositional[i], genericContext);
  3980. if (optionalPositionalLength > 0) {
  3981. argumentsText += sep + "[";
  3982. for (sep = "", i = 0; i < optionalPositionalLength; ++i, sep = _s2_)
  3983. argumentsText += sep + A._rtiToString(optionalPositional[i], genericContext);
  3984. argumentsText += "]";
  3985. }
  3986. if (namedLength > 0) {
  3987. argumentsText += sep + "{";
  3988. for (sep = "", i = 0; i < namedLength; i += 3, sep = _s2_) {
  3989. argumentsText += sep;
  3990. if (named[i + 1])
  3991. argumentsText += "required ";
  3992. argumentsText += A._rtiToString(named[i + 2], genericContext) + " " + named[i];
  3993. }
  3994. argumentsText += "}";
  3995. }
  3996. if (outerContextLength != null) {
  3997. genericContext.toString;
  3998. genericContext.length = outerContextLength;
  3999. }
  4000. return typeParametersText + "(" + argumentsText + ") => " + returnTypeText;
  4001. },
  4002. _rtiToString(rti, genericContext) {
  4003. var questionArgument, s, argumentKind, $name, $arguments, t1,
  4004. kind = rti._kind;
  4005. if (kind === 5)
  4006. return "erased";
  4007. if (kind === 2)
  4008. return "dynamic";
  4009. if (kind === 3)
  4010. return "void";
  4011. if (kind === 1)
  4012. return "Never";
  4013. if (kind === 4)
  4014. return "any";
  4015. if (kind === 6)
  4016. return A._rtiToString(rti._primary, genericContext);
  4017. if (kind === 7) {
  4018. questionArgument = rti._primary;
  4019. s = A._rtiToString(questionArgument, genericContext);
  4020. argumentKind = questionArgument._kind;
  4021. return (argumentKind === 12 || argumentKind === 13 ? "(" + s + ")" : s) + "?";
  4022. }
  4023. if (kind === 8)
  4024. return "FutureOr<" + A._rtiToString(rti._primary, genericContext) + ">";
  4025. if (kind === 9) {
  4026. $name = A._unminifyOrTag(rti._primary);
  4027. $arguments = rti._rest;
  4028. return $arguments.length > 0 ? $name + ("<" + A._rtiArrayToString($arguments, genericContext) + ">") : $name;
  4029. }
  4030. if (kind === 11)
  4031. return A._recordRtiToString(rti, genericContext);
  4032. if (kind === 12)
  4033. return A._functionRtiToString(rti, genericContext, null);
  4034. if (kind === 13)
  4035. return A._functionRtiToString(rti._primary, genericContext, rti._rest);
  4036. if (kind === 14) {
  4037. t1 = rti._primary;
  4038. return genericContext[genericContext.length - 1 - t1];
  4039. }
  4040. return "?";
  4041. },
  4042. _unminifyOrTag(rawClassName) {
  4043. var preserved = init.mangledGlobalNames[rawClassName];
  4044. if (preserved != null)
  4045. return preserved;
  4046. return rawClassName;
  4047. },
  4048. _Universe_findRule(universe, targetType) {
  4049. var rule = universe.tR[targetType];
  4050. for (; typeof rule == "string";)
  4051. rule = universe.tR[rule];
  4052. return rule;
  4053. },
  4054. _Universe_findErasedType(universe, cls) {
  4055. var $length, erased, $arguments, i, $interface,
  4056. t1 = universe.eT,
  4057. probe = t1[cls];
  4058. if (probe == null)
  4059. return A._Universe_eval(universe, cls, false);
  4060. else if (typeof probe == "number") {
  4061. $length = probe;
  4062. erased = A._Universe__lookupTerminalRti(universe, 5, "#");
  4063. $arguments = A._Utils_newArrayOrEmpty($length);
  4064. for (i = 0; i < $length; ++i)
  4065. $arguments[i] = erased;
  4066. $interface = A._Universe__lookupInterfaceRti(universe, cls, $arguments);
  4067. t1[cls] = $interface;
  4068. return $interface;
  4069. } else
  4070. return probe;
  4071. },
  4072. _Universe_addRules(universe, rules) {
  4073. return A._Utils_objectAssign(universe.tR, rules);
  4074. },
  4075. _Universe_addErasedTypes(universe, types) {
  4076. return A._Utils_objectAssign(universe.eT, types);
  4077. },
  4078. _Universe_eval(universe, recipe, normalize) {
  4079. var rti,
  4080. t1 = universe.eC,
  4081. probe = t1.get(recipe);
  4082. if (probe != null)
  4083. return probe;
  4084. rti = A._Parser_parse(A._Parser_create(universe, null, recipe, normalize));
  4085. t1.set(recipe, rti);
  4086. return rti;
  4087. },
  4088. _Universe_evalInEnvironment(universe, environment, recipe) {
  4089. var probe, rti,
  4090. cache = environment._evalCache;
  4091. if (cache == null)
  4092. cache = environment._evalCache = new Map();
  4093. probe = cache.get(recipe);
  4094. if (probe != null)
  4095. return probe;
  4096. rti = A._Parser_parse(A._Parser_create(universe, environment, recipe, true));
  4097. cache.set(recipe, rti);
  4098. return rti;
  4099. },
  4100. _Universe_bind(universe, environment, argumentsRti) {
  4101. var argumentsRecipe, probe, rti,
  4102. cache = environment._bindCache;
  4103. if (cache == null)
  4104. cache = environment._bindCache = new Map();
  4105. argumentsRecipe = argumentsRti._canonicalRecipe;
  4106. probe = cache.get(argumentsRecipe);
  4107. if (probe != null)
  4108. return probe;
  4109. rti = A._Universe__lookupBindingRti(universe, environment, argumentsRti._kind === 10 ? argumentsRti._rest : [argumentsRti]);
  4110. cache.set(argumentsRecipe, rti);
  4111. return rti;
  4112. },
  4113. _Universe__installTypeTests(universe, rti) {
  4114. rti._as = A._installSpecializedAsCheck;
  4115. rti._is = A._installSpecializedIsTest;
  4116. return rti;
  4117. },
  4118. _Universe__lookupTerminalRti(universe, kind, key) {
  4119. var rti, t1,
  4120. probe = universe.eC.get(key);
  4121. if (probe != null)
  4122. return probe;
  4123. rti = new A.Rti(null, null);
  4124. rti._kind = kind;
  4125. rti._canonicalRecipe = key;
  4126. t1 = A._Universe__installTypeTests(universe, rti);
  4127. universe.eC.set(key, t1);
  4128. return t1;
  4129. },
  4130. _Universe__lookupStarRti(universe, baseType, normalize) {
  4131. var t1,
  4132. key = baseType._canonicalRecipe + "*",
  4133. probe = universe.eC.get(key);
  4134. if (probe != null)
  4135. return probe;
  4136. t1 = A._Universe__createStarRti(universe, baseType, key, normalize);
  4137. universe.eC.set(key, t1);
  4138. return t1;
  4139. },
  4140. _Universe__createStarRti(universe, baseType, key, normalize) {
  4141. var baseKind, t1, rti;
  4142. if (normalize) {
  4143. baseKind = baseType._kind;
  4144. if (!A.isSoundTopType(baseType))
  4145. t1 = baseType === type$.Null || baseType === type$.JSNull || baseKind === 7 || baseKind === 6;
  4146. else
  4147. t1 = true;
  4148. if (t1)
  4149. return baseType;
  4150. }
  4151. rti = new A.Rti(null, null);
  4152. rti._kind = 6;
  4153. rti._primary = baseType;
  4154. rti._canonicalRecipe = key;
  4155. return A._Universe__installTypeTests(universe, rti);
  4156. },
  4157. _Universe__lookupQuestionRti(universe, baseType, normalize) {
  4158. var t1,
  4159. key = baseType._canonicalRecipe + "?",
  4160. probe = universe.eC.get(key);
  4161. if (probe != null)
  4162. return probe;
  4163. t1 = A._Universe__createQuestionRti(universe, baseType, key, normalize);
  4164. universe.eC.set(key, t1);
  4165. return t1;
  4166. },
  4167. _Universe__createQuestionRti(universe, baseType, key, normalize) {
  4168. var baseKind, t1, starArgument, rti;
  4169. if (normalize) {
  4170. baseKind = baseType._kind;
  4171. t1 = true;
  4172. if (!A.isSoundTopType(baseType))
  4173. if (!(baseType === type$.Null || baseType === type$.JSNull))
  4174. if (baseKind !== 7)
  4175. t1 = baseKind === 8 && A.isNullable(baseType._primary);
  4176. if (t1)
  4177. return baseType;
  4178. else if (baseKind === 1 || baseType === type$.legacy_Never)
  4179. return type$.Null;
  4180. else if (baseKind === 6) {
  4181. starArgument = baseType._primary;
  4182. if (starArgument._kind === 8 && A.isNullable(starArgument._primary))
  4183. return starArgument;
  4184. else
  4185. return A.Rti__getQuestionFromStar(universe, baseType);
  4186. }
  4187. }
  4188. rti = new A.Rti(null, null);
  4189. rti._kind = 7;
  4190. rti._primary = baseType;
  4191. rti._canonicalRecipe = key;
  4192. return A._Universe__installTypeTests(universe, rti);
  4193. },
  4194. _Universe__lookupFutureOrRti(universe, baseType, normalize) {
  4195. var t1,
  4196. key = baseType._canonicalRecipe + "/",
  4197. probe = universe.eC.get(key);
  4198. if (probe != null)
  4199. return probe;
  4200. t1 = A._Universe__createFutureOrRti(universe, baseType, key, normalize);
  4201. universe.eC.set(key, t1);
  4202. return t1;
  4203. },
  4204. _Universe__createFutureOrRti(universe, baseType, key, normalize) {
  4205. var t1, rti;
  4206. if (normalize) {
  4207. t1 = baseType._kind;
  4208. if (A.isSoundTopType(baseType) || baseType === type$.Object || baseType === type$.legacy_Object)
  4209. return baseType;
  4210. else if (t1 === 1)
  4211. return A._Universe__lookupInterfaceRti(universe, "Future", [baseType]);
  4212. else if (baseType === type$.Null || baseType === type$.JSNull)
  4213. return type$.nullable_Future_Null;
  4214. }
  4215. rti = new A.Rti(null, null);
  4216. rti._kind = 8;
  4217. rti._primary = baseType;
  4218. rti._canonicalRecipe = key;
  4219. return A._Universe__installTypeTests(universe, rti);
  4220. },
  4221. _Universe__lookupGenericFunctionParameterRti(universe, index) {
  4222. var rti, t1,
  4223. key = "" + index + "^",
  4224. probe = universe.eC.get(key);
  4225. if (probe != null)
  4226. return probe;
  4227. rti = new A.Rti(null, null);
  4228. rti._kind = 14;
  4229. rti._primary = index;
  4230. rti._canonicalRecipe = key;
  4231. t1 = A._Universe__installTypeTests(universe, rti);
  4232. universe.eC.set(key, t1);
  4233. return t1;
  4234. },
  4235. _Universe__canonicalRecipeJoin($arguments) {
  4236. var s, sep, i,
  4237. $length = $arguments.length;
  4238. for (s = "", sep = "", i = 0; i < $length; ++i, sep = ",")
  4239. s += sep + $arguments[i]._canonicalRecipe;
  4240. return s;
  4241. },
  4242. _Universe__canonicalRecipeJoinNamed($arguments) {
  4243. var s, sep, i, t1, nameSep,
  4244. $length = $arguments.length;
  4245. for (s = "", sep = "", i = 0; i < $length; i += 3, sep = ",") {
  4246. t1 = $arguments[i];
  4247. nameSep = $arguments[i + 1] ? "!" : ":";
  4248. s += sep + t1 + nameSep + $arguments[i + 2]._canonicalRecipe;
  4249. }
  4250. return s;
  4251. },
  4252. _Universe__lookupInterfaceRti(universe, $name, $arguments) {
  4253. var probe, rti, t1,
  4254. s = $name;
  4255. if ($arguments.length > 0)
  4256. s += "<" + A._Universe__canonicalRecipeJoin($arguments) + ">";
  4257. probe = universe.eC.get(s);
  4258. if (probe != null)
  4259. return probe;
  4260. rti = new A.Rti(null, null);
  4261. rti._kind = 9;
  4262. rti._primary = $name;
  4263. rti._rest = $arguments;
  4264. if ($arguments.length > 0)
  4265. rti._precomputed1 = $arguments[0];
  4266. rti._canonicalRecipe = s;
  4267. t1 = A._Universe__installTypeTests(universe, rti);
  4268. universe.eC.set(s, t1);
  4269. return t1;
  4270. },
  4271. _Universe__lookupBindingRti(universe, base, $arguments) {
  4272. var newBase, newArguments, key, probe, rti, t1;
  4273. if (base._kind === 10) {
  4274. newBase = base._primary;
  4275. newArguments = base._rest.concat($arguments);
  4276. } else {
  4277. newArguments = $arguments;
  4278. newBase = base;
  4279. }
  4280. key = newBase._canonicalRecipe + (";<" + A._Universe__canonicalRecipeJoin(newArguments) + ">");
  4281. probe = universe.eC.get(key);
  4282. if (probe != null)
  4283. return probe;
  4284. rti = new A.Rti(null, null);
  4285. rti._kind = 10;
  4286. rti._primary = newBase;
  4287. rti._rest = newArguments;
  4288. rti._canonicalRecipe = key;
  4289. t1 = A._Universe__installTypeTests(universe, rti);
  4290. universe.eC.set(key, t1);
  4291. return t1;
  4292. },
  4293. _Universe__lookupRecordRti(universe, partialShapeTag, fields) {
  4294. var rti, t1,
  4295. key = "+" + (partialShapeTag + "(" + A._Universe__canonicalRecipeJoin(fields) + ")"),
  4296. probe = universe.eC.get(key);
  4297. if (probe != null)
  4298. return probe;
  4299. rti = new A.Rti(null, null);
  4300. rti._kind = 11;
  4301. rti._primary = partialShapeTag;
  4302. rti._rest = fields;
  4303. rti._canonicalRecipe = key;
  4304. t1 = A._Universe__installTypeTests(universe, rti);
  4305. universe.eC.set(key, t1);
  4306. return t1;
  4307. },
  4308. _Universe__lookupFunctionRti(universe, returnType, parameters) {
  4309. var sep, key, probe, rti, t1,
  4310. s = returnType._canonicalRecipe,
  4311. requiredPositional = parameters._requiredPositional,
  4312. requiredPositionalLength = requiredPositional.length,
  4313. optionalPositional = parameters._optionalPositional,
  4314. optionalPositionalLength = optionalPositional.length,
  4315. named = parameters._named,
  4316. namedLength = named.length,
  4317. recipe = "(" + A._Universe__canonicalRecipeJoin(requiredPositional);
  4318. if (optionalPositionalLength > 0) {
  4319. sep = requiredPositionalLength > 0 ? "," : "";
  4320. recipe += sep + "[" + A._Universe__canonicalRecipeJoin(optionalPositional) + "]";
  4321. }
  4322. if (namedLength > 0) {
  4323. sep = requiredPositionalLength > 0 ? "," : "";
  4324. recipe += sep + "{" + A._Universe__canonicalRecipeJoinNamed(named) + "}";
  4325. }
  4326. key = s + (recipe + ")");
  4327. probe = universe.eC.get(key);
  4328. if (probe != null)
  4329. return probe;
  4330. rti = new A.Rti(null, null);
  4331. rti._kind = 12;
  4332. rti._primary = returnType;
  4333. rti._rest = parameters;
  4334. rti._canonicalRecipe = key;
  4335. t1 = A._Universe__installTypeTests(universe, rti);
  4336. universe.eC.set(key, t1);
  4337. return t1;
  4338. },
  4339. _Universe__lookupGenericFunctionRti(universe, baseFunctionType, bounds, normalize) {
  4340. var t1,
  4341. key = baseFunctionType._canonicalRecipe + ("<" + A._Universe__canonicalRecipeJoin(bounds) + ">"),
  4342. probe = universe.eC.get(key);
  4343. if (probe != null)
  4344. return probe;
  4345. t1 = A._Universe__createGenericFunctionRti(universe, baseFunctionType, bounds, key, normalize);
  4346. universe.eC.set(key, t1);
  4347. return t1;
  4348. },
  4349. _Universe__createGenericFunctionRti(universe, baseFunctionType, bounds, key, normalize) {
  4350. var $length, typeArguments, count, i, bound, substitutedBase, substitutedBounds, rti;
  4351. if (normalize) {
  4352. $length = bounds.length;
  4353. typeArguments = A._Utils_newArrayOrEmpty($length);
  4354. for (count = 0, i = 0; i < $length; ++i) {
  4355. bound = bounds[i];
  4356. if (bound._kind === 1) {
  4357. typeArguments[i] = bound;
  4358. ++count;
  4359. }
  4360. }
  4361. if (count > 0) {
  4362. substitutedBase = A._substitute(universe, baseFunctionType, typeArguments, 0);
  4363. substitutedBounds = A._substituteArray(universe, bounds, typeArguments, 0);
  4364. return A._Universe__lookupGenericFunctionRti(universe, substitutedBase, substitutedBounds, bounds !== substitutedBounds);
  4365. }
  4366. }
  4367. rti = new A.Rti(null, null);
  4368. rti._kind = 13;
  4369. rti._primary = baseFunctionType;
  4370. rti._rest = bounds;
  4371. rti._canonicalRecipe = key;
  4372. return A._Universe__installTypeTests(universe, rti);
  4373. },
  4374. _Parser_create(universe, environment, recipe, normalize) {
  4375. return {u: universe, e: environment, r: recipe, s: [], p: 0, n: normalize};
  4376. },
  4377. _Parser_parse(parser) {
  4378. var t2, i, ch, t3, array, end, item,
  4379. source = parser.r,
  4380. t1 = parser.s;
  4381. for (t2 = source.length, i = 0; i < t2;) {
  4382. ch = source.charCodeAt(i);
  4383. if (ch >= 48 && ch <= 57)
  4384. i = A._Parser_handleDigit(i + 1, ch, source, t1);
  4385. else if ((((ch | 32) >>> 0) - 97 & 65535) < 26 || ch === 95 || ch === 36 || ch === 124)
  4386. i = A._Parser_handleIdentifier(parser, i, source, t1, false);
  4387. else if (ch === 46)
  4388. i = A._Parser_handleIdentifier(parser, i, source, t1, true);
  4389. else {
  4390. ++i;
  4391. switch (ch) {
  4392. case 44:
  4393. break;
  4394. case 58:
  4395. t1.push(false);
  4396. break;
  4397. case 33:
  4398. t1.push(true);
  4399. break;
  4400. case 59:
  4401. t1.push(A._Parser_toType(parser.u, parser.e, t1.pop()));
  4402. break;
  4403. case 94:
  4404. t1.push(A._Universe__lookupGenericFunctionParameterRti(parser.u, t1.pop()));
  4405. break;
  4406. case 35:
  4407. t1.push(A._Universe__lookupTerminalRti(parser.u, 5, "#"));
  4408. break;
  4409. case 64:
  4410. t1.push(A._Universe__lookupTerminalRti(parser.u, 2, "@"));
  4411. break;
  4412. case 126:
  4413. t1.push(A._Universe__lookupTerminalRti(parser.u, 3, "~"));
  4414. break;
  4415. case 60:
  4416. t1.push(parser.p);
  4417. parser.p = t1.length;
  4418. break;
  4419. case 62:
  4420. A._Parser_handleTypeArguments(parser, t1);
  4421. break;
  4422. case 38:
  4423. A._Parser_handleExtendedOperations(parser, t1);
  4424. break;
  4425. case 42:
  4426. t3 = parser.u;
  4427. t1.push(A._Universe__lookupStarRti(t3, A._Parser_toType(t3, parser.e, t1.pop()), parser.n));
  4428. break;
  4429. case 63:
  4430. t3 = parser.u;
  4431. t1.push(A._Universe__lookupQuestionRti(t3, A._Parser_toType(t3, parser.e, t1.pop()), parser.n));
  4432. break;
  4433. case 47:
  4434. t3 = parser.u;
  4435. t1.push(A._Universe__lookupFutureOrRti(t3, A._Parser_toType(t3, parser.e, t1.pop()), parser.n));
  4436. break;
  4437. case 40:
  4438. t1.push(-3);
  4439. t1.push(parser.p);
  4440. parser.p = t1.length;
  4441. break;
  4442. case 41:
  4443. A._Parser_handleArguments(parser, t1);
  4444. break;
  4445. case 91:
  4446. t1.push(parser.p);
  4447. parser.p = t1.length;
  4448. break;
  4449. case 93:
  4450. array = t1.splice(parser.p);
  4451. A._Parser_toTypes(parser.u, parser.e, array);
  4452. parser.p = t1.pop();
  4453. t1.push(array);
  4454. t1.push(-1);
  4455. break;
  4456. case 123:
  4457. t1.push(parser.p);
  4458. parser.p = t1.length;
  4459. break;
  4460. case 125:
  4461. array = t1.splice(parser.p);
  4462. A._Parser_toTypesNamed(parser.u, parser.e, array);
  4463. parser.p = t1.pop();
  4464. t1.push(array);
  4465. t1.push(-2);
  4466. break;
  4467. case 43:
  4468. end = source.indexOf("(", i);
  4469. t1.push(source.substring(i, end));
  4470. t1.push(-4);
  4471. t1.push(parser.p);
  4472. parser.p = t1.length;
  4473. i = end + 1;
  4474. break;
  4475. default:
  4476. throw "Bad character " + ch;
  4477. }
  4478. }
  4479. }
  4480. item = t1.pop();
  4481. return A._Parser_toType(parser.u, parser.e, item);
  4482. },
  4483. _Parser_handleDigit(i, digit, source, stack) {
  4484. var t1, ch,
  4485. value = digit - 48;
  4486. for (t1 = source.length; i < t1; ++i) {
  4487. ch = source.charCodeAt(i);
  4488. if (!(ch >= 48 && ch <= 57))
  4489. break;
  4490. value = value * 10 + (ch - 48);
  4491. }
  4492. stack.push(value);
  4493. return i;
  4494. },
  4495. _Parser_handleIdentifier(parser, start, source, stack, hasPeriod) {
  4496. var t1, ch, t2, string, environment, recipe,
  4497. i = start + 1;
  4498. for (t1 = source.length; i < t1; ++i) {
  4499. ch = source.charCodeAt(i);
  4500. if (ch === 46) {
  4501. if (hasPeriod)
  4502. break;
  4503. hasPeriod = true;
  4504. } else {
  4505. if (!((((ch | 32) >>> 0) - 97 & 65535) < 26 || ch === 95 || ch === 36 || ch === 124))
  4506. t2 = ch >= 48 && ch <= 57;
  4507. else
  4508. t2 = true;
  4509. if (!t2)
  4510. break;
  4511. }
  4512. }
  4513. string = source.substring(start, i);
  4514. if (hasPeriod) {
  4515. t1 = parser.u;
  4516. environment = parser.e;
  4517. if (environment._kind === 10)
  4518. environment = environment._primary;
  4519. recipe = A._Universe_findRule(t1, environment._primary)[string];
  4520. if (recipe == null)
  4521. A.throwExpression('No "' + string + '" in "' + A.Rti__getCanonicalRecipe(environment) + '"');
  4522. stack.push(A._Universe_evalInEnvironment(t1, environment, recipe));
  4523. } else
  4524. stack.push(string);
  4525. return i;
  4526. },
  4527. _Parser_handleTypeArguments(parser, stack) {
  4528. var base,
  4529. t1 = parser.u,
  4530. $arguments = A._Parser_collectArray(parser, stack),
  4531. head = stack.pop();
  4532. if (typeof head == "string")
  4533. stack.push(A._Universe__lookupInterfaceRti(t1, head, $arguments));
  4534. else {
  4535. base = A._Parser_toType(t1, parser.e, head);
  4536. switch (base._kind) {
  4537. case 12:
  4538. stack.push(A._Universe__lookupGenericFunctionRti(t1, base, $arguments, parser.n));
  4539. break;
  4540. default:
  4541. stack.push(A._Universe__lookupBindingRti(t1, base, $arguments));
  4542. break;
  4543. }
  4544. }
  4545. },
  4546. _Parser_handleArguments(parser, stack) {
  4547. var requiredPositional, returnType, parameters,
  4548. t1 = parser.u,
  4549. head = stack.pop(),
  4550. optionalPositional = null, named = null;
  4551. if (typeof head == "number")
  4552. switch (head) {
  4553. case -1:
  4554. optionalPositional = stack.pop();
  4555. break;
  4556. case -2:
  4557. named = stack.pop();
  4558. break;
  4559. default:
  4560. stack.push(head);
  4561. break;
  4562. }
  4563. else
  4564. stack.push(head);
  4565. requiredPositional = A._Parser_collectArray(parser, stack);
  4566. head = stack.pop();
  4567. switch (head) {
  4568. case -3:
  4569. head = stack.pop();
  4570. if (optionalPositional == null)
  4571. optionalPositional = t1.sEA;
  4572. if (named == null)
  4573. named = t1.sEA;
  4574. returnType = A._Parser_toType(t1, parser.e, head);
  4575. parameters = new A._FunctionParameters();
  4576. parameters._requiredPositional = requiredPositional;
  4577. parameters._optionalPositional = optionalPositional;
  4578. parameters._named = named;
  4579. stack.push(A._Universe__lookupFunctionRti(t1, returnType, parameters));
  4580. return;
  4581. case -4:
  4582. stack.push(A._Universe__lookupRecordRti(t1, stack.pop(), requiredPositional));
  4583. return;
  4584. default:
  4585. throw A.wrapException(A.AssertionError$("Unexpected state under `()`: " + A.S(head)));
  4586. }
  4587. },
  4588. _Parser_handleExtendedOperations(parser, stack) {
  4589. var $top = stack.pop();
  4590. if (0 === $top) {
  4591. stack.push(A._Universe__lookupTerminalRti(parser.u, 1, "0&"));
  4592. return;
  4593. }
  4594. if (1 === $top) {
  4595. stack.push(A._Universe__lookupTerminalRti(parser.u, 4, "1&"));
  4596. return;
  4597. }
  4598. throw A.wrapException(A.AssertionError$("Unexpected extended operation " + A.S($top)));
  4599. },
  4600. _Parser_collectArray(parser, stack) {
  4601. var array = stack.splice(parser.p);
  4602. A._Parser_toTypes(parser.u, parser.e, array);
  4603. parser.p = stack.pop();
  4604. return array;
  4605. },
  4606. _Parser_toType(universe, environment, item) {
  4607. if (typeof item == "string")
  4608. return A._Universe__lookupInterfaceRti(universe, item, universe.sEA);
  4609. else if (typeof item == "number") {
  4610. environment.toString;
  4611. return A._Parser_indexToType(universe, environment, item);
  4612. } else
  4613. return item;
  4614. },
  4615. _Parser_toTypes(universe, environment, items) {
  4616. var i,
  4617. $length = items.length;
  4618. for (i = 0; i < $length; ++i)
  4619. items[i] = A._Parser_toType(universe, environment, items[i]);
  4620. },
  4621. _Parser_toTypesNamed(universe, environment, items) {
  4622. var i,
  4623. $length = items.length;
  4624. for (i = 2; i < $length; i += 3)
  4625. items[i] = A._Parser_toType(universe, environment, items[i]);
  4626. },
  4627. _Parser_indexToType(universe, environment, index) {
  4628. var typeArguments, len,
  4629. kind = environment._kind;
  4630. if (kind === 10) {
  4631. if (index === 0)
  4632. return environment._primary;
  4633. typeArguments = environment._rest;
  4634. len = typeArguments.length;
  4635. if (index <= len)
  4636. return typeArguments[index - 1];
  4637. index -= len;
  4638. environment = environment._primary;
  4639. kind = environment._kind;
  4640. } else if (index === 0)
  4641. return environment;
  4642. if (kind !== 9)
  4643. throw A.wrapException(A.AssertionError$("Indexed base must be an interface type"));
  4644. typeArguments = environment._rest;
  4645. if (index <= typeArguments.length)
  4646. return typeArguments[index - 1];
  4647. throw A.wrapException(A.AssertionError$("Bad index " + index + " for " + environment.toString$0(0)));
  4648. },
  4649. isSubtype(universe, s, t) {
  4650. var result,
  4651. sCache = s._isSubtypeCache;
  4652. if (sCache == null)
  4653. sCache = s._isSubtypeCache = new Map();
  4654. result = sCache.get(t);
  4655. if (result == null) {
  4656. result = A._isSubtype(universe, s, null, t, null, false) ? 1 : 0;
  4657. sCache.set(t, result);
  4658. }
  4659. if (0 === result)
  4660. return false;
  4661. if (1 === result)
  4662. return true;
  4663. return true;
  4664. },
  4665. _isSubtype(universe, s, sEnv, t, tEnv, isLegacy) {
  4666. var t1, sKind, leftTypeVariable, tKind, t2, sBounds, tBounds, sLength, i, sBound, tBound;
  4667. if (s === t)
  4668. return true;
  4669. if (!A.isSoundTopType(t))
  4670. t1 = t === type$.legacy_Object;
  4671. else
  4672. t1 = true;
  4673. if (t1)
  4674. return true;
  4675. sKind = s._kind;
  4676. if (sKind === 4)
  4677. return true;
  4678. if (A.isSoundTopType(s))
  4679. return false;
  4680. t1 = s._kind;
  4681. if (t1 === 1)
  4682. return true;
  4683. leftTypeVariable = sKind === 14;
  4684. if (leftTypeVariable)
  4685. if (A._isSubtype(universe, sEnv[s._primary], sEnv, t, tEnv, false))
  4686. return true;
  4687. tKind = t._kind;
  4688. t1 = s === type$.Null || s === type$.JSNull;
  4689. if (t1) {
  4690. if (tKind === 8)
  4691. return A._isSubtype(universe, s, sEnv, t._primary, tEnv, false);
  4692. return t === type$.Null || t === type$.JSNull || tKind === 7 || tKind === 6;
  4693. }
  4694. if (t === type$.Object) {
  4695. if (sKind === 8)
  4696. return A._isSubtype(universe, s._primary, sEnv, t, tEnv, false);
  4697. if (sKind === 6)
  4698. return A._isSubtype(universe, s._primary, sEnv, t, tEnv, false);
  4699. return sKind !== 7;
  4700. }
  4701. if (sKind === 6)
  4702. return A._isSubtype(universe, s._primary, sEnv, t, tEnv, false);
  4703. if (tKind === 6) {
  4704. t1 = A.Rti__getQuestionFromStar(universe, t);
  4705. return A._isSubtype(universe, s, sEnv, t1, tEnv, false);
  4706. }
  4707. if (sKind === 8) {
  4708. if (!A._isSubtype(universe, s._primary, sEnv, t, tEnv, false))
  4709. return false;
  4710. return A._isSubtype(universe, A.Rti__getFutureFromFutureOr(universe, s), sEnv, t, tEnv, false);
  4711. }
  4712. if (sKind === 7) {
  4713. t1 = A._isSubtype(universe, type$.Null, sEnv, t, tEnv, false);
  4714. return t1 && A._isSubtype(universe, s._primary, sEnv, t, tEnv, false);
  4715. }
  4716. if (tKind === 8) {
  4717. if (A._isSubtype(universe, s, sEnv, t._primary, tEnv, false))
  4718. return true;
  4719. return A._isSubtype(universe, s, sEnv, A.Rti__getFutureFromFutureOr(universe, t), tEnv, false);
  4720. }
  4721. if (tKind === 7) {
  4722. t1 = A._isSubtype(universe, s, sEnv, type$.Null, tEnv, false);
  4723. return t1 || A._isSubtype(universe, s, sEnv, t._primary, tEnv, false);
  4724. }
  4725. if (leftTypeVariable)
  4726. return false;
  4727. t1 = sKind !== 12;
  4728. if ((!t1 || sKind === 13) && t === type$.Function)
  4729. return true;
  4730. t2 = sKind === 11;
  4731. if (t2 && t === type$.Record)
  4732. return true;
  4733. if (tKind === 13) {
  4734. if (s === type$.JavaScriptFunction)
  4735. return true;
  4736. if (sKind !== 13)
  4737. return false;
  4738. sBounds = s._rest;
  4739. tBounds = t._rest;
  4740. sLength = sBounds.length;
  4741. if (sLength !== tBounds.length)
  4742. return false;
  4743. sEnv = sEnv == null ? sBounds : sBounds.concat(sEnv);
  4744. tEnv = tEnv == null ? tBounds : tBounds.concat(tEnv);
  4745. for (i = 0; i < sLength; ++i) {
  4746. sBound = sBounds[i];
  4747. tBound = tBounds[i];
  4748. if (!A._isSubtype(universe, sBound, sEnv, tBound, tEnv, false) || !A._isSubtype(universe, tBound, tEnv, sBound, sEnv, false))
  4749. return false;
  4750. }
  4751. return A._isFunctionSubtype(universe, s._primary, sEnv, t._primary, tEnv, false);
  4752. }
  4753. if (tKind === 12) {
  4754. if (s === type$.JavaScriptFunction)
  4755. return true;
  4756. if (t1)
  4757. return false;
  4758. return A._isFunctionSubtype(universe, s, sEnv, t, tEnv, false);
  4759. }
  4760. if (sKind === 9) {
  4761. if (tKind !== 9)
  4762. return false;
  4763. return A._isInterfaceSubtype(universe, s, sEnv, t, tEnv, false);
  4764. }
  4765. if (t2 && tKind === 11)
  4766. return A._isRecordSubtype(universe, s, sEnv, t, tEnv, false);
  4767. return false;
  4768. },
  4769. _isFunctionSubtype(universe, s, sEnv, t, tEnv, isLegacy) {
  4770. var sParameters, tParameters, sRequiredPositional, tRequiredPositional, sRequiredPositionalLength, tRequiredPositionalLength, requiredPositionalDelta, sOptionalPositional, tOptionalPositional, sOptionalPositionalLength, tOptionalPositionalLength, i, t1, sNamed, tNamed, sNamedLength, tNamedLength, sIndex, tIndex, tName, sName, sIsRequired;
  4771. if (!A._isSubtype(universe, s._primary, sEnv, t._primary, tEnv, false))
  4772. return false;
  4773. sParameters = s._rest;
  4774. tParameters = t._rest;
  4775. sRequiredPositional = sParameters._requiredPositional;
  4776. tRequiredPositional = tParameters._requiredPositional;
  4777. sRequiredPositionalLength = sRequiredPositional.length;
  4778. tRequiredPositionalLength = tRequiredPositional.length;
  4779. if (sRequiredPositionalLength > tRequiredPositionalLength)
  4780. return false;
  4781. requiredPositionalDelta = tRequiredPositionalLength - sRequiredPositionalLength;
  4782. sOptionalPositional = sParameters._optionalPositional;
  4783. tOptionalPositional = tParameters._optionalPositional;
  4784. sOptionalPositionalLength = sOptionalPositional.length;
  4785. tOptionalPositionalLength = tOptionalPositional.length;
  4786. if (sRequiredPositionalLength + sOptionalPositionalLength < tRequiredPositionalLength + tOptionalPositionalLength)
  4787. return false;
  4788. for (i = 0; i < sRequiredPositionalLength; ++i) {
  4789. t1 = sRequiredPositional[i];
  4790. if (!A._isSubtype(universe, tRequiredPositional[i], tEnv, t1, sEnv, false))
  4791. return false;
  4792. }
  4793. for (i = 0; i < requiredPositionalDelta; ++i) {
  4794. t1 = sOptionalPositional[i];
  4795. if (!A._isSubtype(universe, tRequiredPositional[sRequiredPositionalLength + i], tEnv, t1, sEnv, false))
  4796. return false;
  4797. }
  4798. for (i = 0; i < tOptionalPositionalLength; ++i) {
  4799. t1 = sOptionalPositional[requiredPositionalDelta + i];
  4800. if (!A._isSubtype(universe, tOptionalPositional[i], tEnv, t1, sEnv, false))
  4801. return false;
  4802. }
  4803. sNamed = sParameters._named;
  4804. tNamed = tParameters._named;
  4805. sNamedLength = sNamed.length;
  4806. tNamedLength = tNamed.length;
  4807. for (sIndex = 0, tIndex = 0; tIndex < tNamedLength; tIndex += 3) {
  4808. tName = tNamed[tIndex];
  4809. for (; true;) {
  4810. if (sIndex >= sNamedLength)
  4811. return false;
  4812. sName = sNamed[sIndex];
  4813. sIndex += 3;
  4814. if (tName < sName)
  4815. return false;
  4816. sIsRequired = sNamed[sIndex - 2];
  4817. if (sName < tName) {
  4818. if (sIsRequired)
  4819. return false;
  4820. continue;
  4821. }
  4822. t1 = tNamed[tIndex + 1];
  4823. if (sIsRequired && !t1)
  4824. return false;
  4825. t1 = sNamed[sIndex - 1];
  4826. if (!A._isSubtype(universe, tNamed[tIndex + 2], tEnv, t1, sEnv, false))
  4827. return false;
  4828. break;
  4829. }
  4830. }
  4831. for (; sIndex < sNamedLength;) {
  4832. if (sNamed[sIndex + 1])
  4833. return false;
  4834. sIndex += 3;
  4835. }
  4836. return true;
  4837. },
  4838. _isInterfaceSubtype(universe, s, sEnv, t, tEnv, isLegacy) {
  4839. var rule, recipes, $length, supertypeArgs, i,
  4840. sName = s._primary,
  4841. tName = t._primary;
  4842. for (; sName !== tName;) {
  4843. rule = universe.tR[sName];
  4844. if (rule == null)
  4845. return false;
  4846. if (typeof rule == "string") {
  4847. sName = rule;
  4848. continue;
  4849. }
  4850. recipes = rule[tName];
  4851. if (recipes == null)
  4852. return false;
  4853. $length = recipes.length;
  4854. supertypeArgs = $length > 0 ? new Array($length) : init.typeUniverse.sEA;
  4855. for (i = 0; i < $length; ++i)
  4856. supertypeArgs[i] = A._Universe_evalInEnvironment(universe, s, recipes[i]);
  4857. return A._areArgumentsSubtypes(universe, supertypeArgs, null, sEnv, t._rest, tEnv, false);
  4858. }
  4859. return A._areArgumentsSubtypes(universe, s._rest, null, sEnv, t._rest, tEnv, false);
  4860. },
  4861. _areArgumentsSubtypes(universe, sArgs, sVariances, sEnv, tArgs, tEnv, isLegacy) {
  4862. var i,
  4863. $length = sArgs.length;
  4864. for (i = 0; i < $length; ++i)
  4865. if (!A._isSubtype(universe, sArgs[i], sEnv, tArgs[i], tEnv, false))
  4866. return false;
  4867. return true;
  4868. },
  4869. _isRecordSubtype(universe, s, sEnv, t, tEnv, isLegacy) {
  4870. var i,
  4871. sFields = s._rest,
  4872. tFields = t._rest,
  4873. sCount = sFields.length;
  4874. if (sCount !== tFields.length)
  4875. return false;
  4876. if (s._primary !== t._primary)
  4877. return false;
  4878. for (i = 0; i < sCount; ++i)
  4879. if (!A._isSubtype(universe, sFields[i], sEnv, tFields[i], tEnv, false))
  4880. return false;
  4881. return true;
  4882. },
  4883. isNullable(t) {
  4884. var kind = t._kind,
  4885. t1 = true;
  4886. if (!(t === type$.Null || t === type$.JSNull))
  4887. if (!A.isSoundTopType(t))
  4888. if (kind !== 7)
  4889. if (!(kind === 6 && A.isNullable(t._primary)))
  4890. t1 = kind === 8 && A.isNullable(t._primary);
  4891. return t1;
  4892. },
  4893. isDefinitelyTopType(t) {
  4894. var t1;
  4895. if (!A.isSoundTopType(t))
  4896. t1 = t === type$.legacy_Object;
  4897. else
  4898. t1 = true;
  4899. return t1;
  4900. },
  4901. isSoundTopType(t) {
  4902. var kind = t._kind;
  4903. return kind === 2 || kind === 3 || kind === 4 || kind === 5 || t === type$.nullable_Object;
  4904. },
  4905. _Utils_objectAssign(o, other) {
  4906. var i, key,
  4907. keys = Object.keys(other),
  4908. $length = keys.length;
  4909. for (i = 0; i < $length; ++i) {
  4910. key = keys[i];
  4911. o[key] = other[key];
  4912. }
  4913. },
  4914. _Utils_newArrayOrEmpty($length) {
  4915. return $length > 0 ? new Array($length) : init.typeUniverse.sEA;
  4916. },
  4917. Rti: function Rti(t0, t1) {
  4918. var _ = this;
  4919. _._as = t0;
  4920. _._is = t1;
  4921. _._cachedRuntimeType = _._specializedTestResource = _._isSubtypeCache = _._precomputed1 = null;
  4922. _._kind = 0;
  4923. _._canonicalRecipe = _._bindCache = _._evalCache = _._rest = _._primary = null;
  4924. },
  4925. _FunctionParameters: function _FunctionParameters() {
  4926. this._named = this._optionalPositional = this._requiredPositional = null;
  4927. },
  4928. _Type: function _Type(t0) {
  4929. this._rti = t0;
  4930. },
  4931. _Error: function _Error() {
  4932. },
  4933. _TypeError: function _TypeError(t0) {
  4934. this.__rti$_message = t0;
  4935. },
  4936. _AsyncRun__initializeScheduleImmediate() {
  4937. var div, span, t1 = {};
  4938. if (self.scheduleImmediate != null)
  4939. return A.async__AsyncRun__scheduleImmediateJsOverride$closure();
  4940. if (self.MutationObserver != null && self.document != null) {
  4941. div = self.document.createElement("div");
  4942. span = self.document.createElement("span");
  4943. t1.storedCallback = null;
  4944. new self.MutationObserver(A.convertDartClosureToJS(new A._AsyncRun__initializeScheduleImmediate_internalCallback(t1), 1)).observe(div, {childList: true});
  4945. return new A._AsyncRun__initializeScheduleImmediate_closure(t1, div, span);
  4946. } else if (self.setImmediate != null)
  4947. return A.async__AsyncRun__scheduleImmediateWithSetImmediate$closure();
  4948. return A.async__AsyncRun__scheduleImmediateWithTimer$closure();
  4949. },
  4950. _AsyncRun__scheduleImmediateJsOverride(callback) {
  4951. self.scheduleImmediate(A.convertDartClosureToJS(new A._AsyncRun__scheduleImmediateJsOverride_internalCallback(callback), 0));
  4952. },
  4953. _AsyncRun__scheduleImmediateWithSetImmediate(callback) {
  4954. self.setImmediate(A.convertDartClosureToJS(new A._AsyncRun__scheduleImmediateWithSetImmediate_internalCallback(callback), 0));
  4955. },
  4956. _AsyncRun__scheduleImmediateWithTimer(callback) {
  4957. A.Timer__createTimer(B.Duration_0, callback);
  4958. },
  4959. Timer__createTimer(duration, callback) {
  4960. var milliseconds = B.JSInt_methods._tdivFast$1(duration._duration, 1000);
  4961. return A._TimerImpl$(milliseconds < 0 ? 0 : milliseconds, callback);
  4962. },
  4963. _TimerImpl$(milliseconds, callback) {
  4964. var t1 = new A._TimerImpl(true);
  4965. t1._TimerImpl$2(milliseconds, callback);
  4966. return t1;
  4967. },
  4968. _TimerImpl$periodic(milliseconds, callback) {
  4969. var t1 = new A._TimerImpl(false);
  4970. t1._TimerImpl$periodic$2(milliseconds, callback);
  4971. return t1;
  4972. },
  4973. _makeAsyncAwaitCompleter($T) {
  4974. return new A._AsyncAwaitCompleter(new A._Future($.Zone__current, $T._eval$1("_Future<0>")), $T._eval$1("_AsyncAwaitCompleter<0>"));
  4975. },
  4976. _asyncStartSync(bodyFunction, completer) {
  4977. bodyFunction.call$2(0, null);
  4978. completer.isSync = true;
  4979. return completer._future;
  4980. },
  4981. _asyncAwait(object, bodyFunction) {
  4982. A._awaitOnObject(object, bodyFunction);
  4983. },
  4984. _asyncReturn(object, completer) {
  4985. completer.complete$1(object);
  4986. },
  4987. _asyncRethrow(object, completer) {
  4988. completer.completeError$2(A.unwrapException(object), A.getTraceFromException(object));
  4989. },
  4990. _awaitOnObject(object, bodyFunction) {
  4991. var t1, future,
  4992. thenCallback = new A._awaitOnObject_closure(bodyFunction),
  4993. errorCallback = new A._awaitOnObject_closure0(bodyFunction);
  4994. if (object instanceof A._Future)
  4995. object._thenAwait$1$2(thenCallback, errorCallback, type$.dynamic);
  4996. else {
  4997. t1 = type$.dynamic;
  4998. if (object instanceof A._Future)
  4999. object.then$1$2$onError(0, thenCallback, errorCallback, t1);
  5000. else {
  5001. future = new A._Future($.Zone__current, type$._Future_dynamic);
  5002. future._state = 8;
  5003. future._resultOrListeners = object;
  5004. future._thenAwait$1$2(thenCallback, errorCallback, t1);
  5005. }
  5006. }
  5007. },
  5008. _wrapJsFunctionForAsync($function) {
  5009. var $protected = function(fn, ERROR) {
  5010. return function(errorCode, result) {
  5011. while (true) {
  5012. try {
  5013. fn(errorCode, result);
  5014. break;
  5015. } catch (error) {
  5016. result = error;
  5017. errorCode = ERROR;
  5018. }
  5019. }
  5020. };
  5021. }($function, 1);
  5022. return $.Zone__current.registerBinaryCallback$3$1(new A._wrapJsFunctionForAsync_closure($protected), type$.void, type$.int, type$.dynamic);
  5023. },
  5024. _SyncStarIterator__terminatedBody(_1, _2, _3) {
  5025. return 0;
  5026. },
  5027. AsyncError$(error, stackTrace) {
  5028. var t1 = A.checkNotNullable(error, "error", type$.Object);
  5029. return new A.AsyncError(t1, stackTrace == null ? A.AsyncError_defaultStackTrace(error) : stackTrace);
  5030. },
  5031. AsyncError_defaultStackTrace(error) {
  5032. var stackTrace;
  5033. if (type$.Error._is(error)) {
  5034. stackTrace = error.get$stackTrace();
  5035. if (stackTrace != null)
  5036. return stackTrace;
  5037. }
  5038. return B._StringStackTrace_uwd;
  5039. },
  5040. Future_Future$value(value, $T) {
  5041. var t1;
  5042. $T._as(value);
  5043. t1 = new A._Future($.Zone__current, $T._eval$1("_Future<0>"));
  5044. t1._asyncComplete$1(value);
  5045. return t1;
  5046. },
  5047. Future_Future$error(error, stackTrace, $T) {
  5048. var t1, replacement;
  5049. A.checkNotNullable(error, "error", type$.Object);
  5050. t1 = $.Zone__current;
  5051. if (t1 !== B.C__RootZone) {
  5052. replacement = t1.errorCallback$2(error, stackTrace);
  5053. if (replacement != null) {
  5054. error = replacement.error;
  5055. stackTrace = replacement.stackTrace;
  5056. }
  5057. }
  5058. if (stackTrace == null)
  5059. stackTrace = A.AsyncError_defaultStackTrace(error);
  5060. t1 = new A._Future($.Zone__current, $T._eval$1("_Future<0>"));
  5061. t1._asyncCompleteError$2(error, stackTrace);
  5062. return t1;
  5063. },
  5064. Future_wait(futures, eagerError, $T) {
  5065. var handleError, future, pos, e, st, t1, t2, exception, _box_0 = {}, cleanUp = null,
  5066. _future = new A._Future($.Zone__current, $T._eval$1("_Future<List<0>>"));
  5067. _box_0.values = null;
  5068. _box_0.remaining = 0;
  5069. _box_0.stackTrace = _box_0.error = null;
  5070. handleError = new A.Future_wait_handleError(_box_0, cleanUp, eagerError, _future);
  5071. try {
  5072. for (t1 = J.get$iterator$ax(futures), t2 = type$.Null; t1.moveNext$0();) {
  5073. future = t1.get$current(t1);
  5074. pos = _box_0.remaining;
  5075. J.then$1$2$onError$x(future, new A.Future_wait_closure(_box_0, pos, _future, $T, cleanUp, eagerError), handleError, t2);
  5076. ++_box_0.remaining;
  5077. }
  5078. t1 = _box_0.remaining;
  5079. if (t1 === 0) {
  5080. t1 = _future;
  5081. t1._completeWithValue$1(A._setArrayType([], $T._eval$1("JSArray<0>")));
  5082. return t1;
  5083. }
  5084. _box_0.values = A.List_List$filled(t1, null, false, $T._eval$1("0?"));
  5085. } catch (exception) {
  5086. e = A.unwrapException(exception);
  5087. st = A.getTraceFromException(exception);
  5088. if (_box_0.remaining === 0 || eagerError)
  5089. return A.Future_Future$error(e, st, $T._eval$1("List<0>"));
  5090. else {
  5091. _box_0.error = e;
  5092. _box_0.stackTrace = st;
  5093. }
  5094. }
  5095. return _future;
  5096. },
  5097. _Future$zoneValue(value, _zone, $T) {
  5098. var t1 = new A._Future(_zone, $T._eval$1("_Future<0>"));
  5099. t1._state = 8;
  5100. t1._resultOrListeners = value;
  5101. return t1;
  5102. },
  5103. _Future$value(value, $T) {
  5104. var t1 = new A._Future($.Zone__current, $T._eval$1("_Future<0>"));
  5105. t1._state = 8;
  5106. t1._resultOrListeners = value;
  5107. return t1;
  5108. },
  5109. _Future__chainCoreFutureSync(source, target) {
  5110. var t1, listeners;
  5111. for (; t1 = source._state, (t1 & 4) !== 0;)
  5112. source = source._resultOrListeners;
  5113. if (source === target) {
  5114. target._asyncCompleteError$2(new A.ArgumentError(true, source, null, "Cannot complete a future with itself"), A.StackTrace_current());
  5115. return;
  5116. }
  5117. t1 |= target._state & 1;
  5118. source._state = t1;
  5119. if ((t1 & 24) !== 0) {
  5120. listeners = target._removeListeners$0();
  5121. target._cloneResult$1(source);
  5122. A._Future__propagateToListeners(target, listeners);
  5123. } else {
  5124. listeners = target._resultOrListeners;
  5125. target._setChained$1(source);
  5126. source._prependListeners$1(listeners);
  5127. }
  5128. },
  5129. _Future__chainCoreFutureAsync(source, target) {
  5130. var t2, listeners, _box_0 = {},
  5131. t1 = _box_0.source = source;
  5132. for (; t2 = t1._state, (t2 & 4) !== 0;) {
  5133. t1 = t1._resultOrListeners;
  5134. _box_0.source = t1;
  5135. }
  5136. if (t1 === target) {
  5137. target._asyncCompleteError$2(new A.ArgumentError(true, t1, null, "Cannot complete a future with itself"), A.StackTrace_current());
  5138. return;
  5139. }
  5140. if ((t2 & 24) === 0) {
  5141. listeners = target._resultOrListeners;
  5142. target._setChained$1(t1);
  5143. _box_0.source._prependListeners$1(listeners);
  5144. return;
  5145. }
  5146. if ((t2 & 16) === 0 && target._resultOrListeners == null) {
  5147. target._cloneResult$1(t1);
  5148. return;
  5149. }
  5150. target._state ^= 2;
  5151. target._zone.scheduleMicrotask$1(new A._Future__chainCoreFutureAsync_closure(_box_0, target));
  5152. },
  5153. _Future__propagateToListeners(source, listeners) {
  5154. var _box_0, t2, t3, hasError, nextListener, nextListener0, sourceResult, t4, zone, oldZone, result, current, _box_1 = {},
  5155. t1 = _box_1.source = source;
  5156. for (; true;) {
  5157. _box_0 = {};
  5158. t2 = t1._state;
  5159. t3 = (t2 & 16) === 0;
  5160. hasError = !t3;
  5161. if (listeners == null) {
  5162. if (hasError && (t2 & 1) === 0) {
  5163. t2 = t1._resultOrListeners;
  5164. t1._zone.handleUncaughtError$2(t2.error, t2.stackTrace);
  5165. }
  5166. return;
  5167. }
  5168. _box_0.listener = listeners;
  5169. nextListener = listeners._nextListener;
  5170. for (t1 = listeners; nextListener != null; t1 = nextListener, nextListener = nextListener0) {
  5171. t1._nextListener = null;
  5172. A._Future__propagateToListeners(_box_1.source, t1);
  5173. _box_0.listener = nextListener;
  5174. nextListener0 = nextListener._nextListener;
  5175. }
  5176. t2 = _box_1.source;
  5177. sourceResult = t2._resultOrListeners;
  5178. _box_0.listenerHasError = hasError;
  5179. _box_0.listenerValueOrError = sourceResult;
  5180. if (t3) {
  5181. t4 = t1.state;
  5182. t4 = (t4 & 1) !== 0 || (t4 & 15) === 8;
  5183. } else
  5184. t4 = true;
  5185. if (t4) {
  5186. zone = t1.result._zone;
  5187. if (hasError) {
  5188. t1 = t2._zone;
  5189. t1 = !(t1 === zone || t1.get$errorZone() === zone.get$errorZone());
  5190. } else
  5191. t1 = false;
  5192. if (t1) {
  5193. t1 = _box_1.source;
  5194. t2 = t1._resultOrListeners;
  5195. t1._zone.handleUncaughtError$2(t2.error, t2.stackTrace);
  5196. return;
  5197. }
  5198. oldZone = $.Zone__current;
  5199. if (oldZone !== zone)
  5200. $.Zone__current = zone;
  5201. else
  5202. oldZone = null;
  5203. t1 = _box_0.listener.state;
  5204. if ((t1 & 15) === 8)
  5205. new A._Future__propagateToListeners_handleWhenCompleteCallback(_box_0, _box_1, hasError).call$0();
  5206. else if (t3) {
  5207. if ((t1 & 1) !== 0)
  5208. new A._Future__propagateToListeners_handleValueCallback(_box_0, sourceResult).call$0();
  5209. } else if ((t1 & 2) !== 0)
  5210. new A._Future__propagateToListeners_handleError(_box_1, _box_0).call$0();
  5211. if (oldZone != null)
  5212. $.Zone__current = oldZone;
  5213. t1 = _box_0.listenerValueOrError;
  5214. if (t1 instanceof A._Future) {
  5215. t2 = _box_0.listener.$ti;
  5216. t2 = t2._eval$1("Future<2>")._is(t1) || !t2._rest[1]._is(t1);
  5217. } else
  5218. t2 = false;
  5219. if (t2) {
  5220. result = _box_0.listener.result;
  5221. if ((t1._state & 24) !== 0) {
  5222. current = result._resultOrListeners;
  5223. result._resultOrListeners = null;
  5224. listeners = result._reverseListeners$1(current);
  5225. result._state = t1._state & 30 | result._state & 1;
  5226. result._resultOrListeners = t1._resultOrListeners;
  5227. _box_1.source = t1;
  5228. continue;
  5229. } else
  5230. A._Future__chainCoreFutureSync(t1, result);
  5231. return;
  5232. }
  5233. }
  5234. result = _box_0.listener.result;
  5235. current = result._resultOrListeners;
  5236. result._resultOrListeners = null;
  5237. listeners = result._reverseListeners$1(current);
  5238. t1 = _box_0.listenerHasError;
  5239. t2 = _box_0.listenerValueOrError;
  5240. if (!t1) {
  5241. result._state = 8;
  5242. result._resultOrListeners = t2;
  5243. } else {
  5244. result._state = result._state & 1 | 16;
  5245. result._resultOrListeners = t2;
  5246. }
  5247. _box_1.source = result;
  5248. t1 = result;
  5249. }
  5250. },
  5251. _registerErrorHandler(errorHandler, zone) {
  5252. if (type$.dynamic_Function_Object_StackTrace._is(errorHandler))
  5253. return zone.registerBinaryCallback$3$1(errorHandler, type$.dynamic, type$.Object, type$.StackTrace);
  5254. if (type$.dynamic_Function_Object._is(errorHandler))
  5255. return zone.registerUnaryCallback$2$1(errorHandler, type$.dynamic, type$.Object);
  5256. throw A.wrapException(A.ArgumentError$value(errorHandler, "onError", string$.Error_));
  5257. },
  5258. _microtaskLoop() {
  5259. var entry, next;
  5260. for (entry = $._nextCallback; entry != null; entry = $._nextCallback) {
  5261. $._lastPriorityCallback = null;
  5262. next = entry.next;
  5263. $._nextCallback = next;
  5264. if (next == null)
  5265. $._lastCallback = null;
  5266. entry.callback.call$0();
  5267. }
  5268. },
  5269. _startMicrotaskLoop() {
  5270. $._isInCallbackLoop = true;
  5271. try {
  5272. A._microtaskLoop();
  5273. } finally {
  5274. $._lastPriorityCallback = null;
  5275. $._isInCallbackLoop = false;
  5276. if ($._nextCallback != null)
  5277. $.$get$_AsyncRun__scheduleImmediateClosure().call$1(A.async___startMicrotaskLoop$closure());
  5278. }
  5279. },
  5280. _scheduleAsyncCallback(callback) {
  5281. var newEntry = new A._AsyncCallbackEntry(callback),
  5282. lastCallback = $._lastCallback;
  5283. if (lastCallback == null) {
  5284. $._nextCallback = $._lastCallback = newEntry;
  5285. if (!$._isInCallbackLoop)
  5286. $.$get$_AsyncRun__scheduleImmediateClosure().call$1(A.async___startMicrotaskLoop$closure());
  5287. } else
  5288. $._lastCallback = lastCallback.next = newEntry;
  5289. },
  5290. _schedulePriorityAsyncCallback(callback) {
  5291. var entry, lastPriorityCallback, next,
  5292. t1 = $._nextCallback;
  5293. if (t1 == null) {
  5294. A._scheduleAsyncCallback(callback);
  5295. $._lastPriorityCallback = $._lastCallback;
  5296. return;
  5297. }
  5298. entry = new A._AsyncCallbackEntry(callback);
  5299. lastPriorityCallback = $._lastPriorityCallback;
  5300. if (lastPriorityCallback == null) {
  5301. entry.next = t1;
  5302. $._nextCallback = $._lastPriorityCallback = entry;
  5303. } else {
  5304. next = lastPriorityCallback.next;
  5305. entry.next = next;
  5306. $._lastPriorityCallback = lastPriorityCallback.next = entry;
  5307. if (next == null)
  5308. $._lastCallback = entry;
  5309. }
  5310. },
  5311. scheduleMicrotask(callback) {
  5312. var t1, _null = null,
  5313. currentZone = $.Zone__current;
  5314. if (B.C__RootZone === currentZone) {
  5315. A._rootScheduleMicrotask(_null, _null, B.C__RootZone, callback);
  5316. return;
  5317. }
  5318. if (B.C__RootZone === currentZone.get$_scheduleMicrotask().zone)
  5319. t1 = B.C__RootZone.get$errorZone() === currentZone.get$errorZone();
  5320. else
  5321. t1 = false;
  5322. if (t1) {
  5323. A._rootScheduleMicrotask(_null, _null, currentZone, currentZone.registerCallback$1$1(callback, type$.void));
  5324. return;
  5325. }
  5326. t1 = $.Zone__current;
  5327. t1.scheduleMicrotask$1(t1.bindCallbackGuarded$1(callback));
  5328. },
  5329. Stream_Stream$fromFuture(future, $T) {
  5330. var _null = null,
  5331. t1 = $T._eval$1("_SyncStreamController<0>"),
  5332. controller = new A._SyncStreamController(_null, _null, _null, _null, t1);
  5333. future.then$1$2$onError(0, new A.Stream_Stream$fromFuture_closure(controller, $T), new A.Stream_Stream$fromFuture_closure0(controller), type$.Null);
  5334. return new A._ControllerStream(controller, t1._eval$1("_ControllerStream<1>"));
  5335. },
  5336. StreamIterator_StreamIterator(stream) {
  5337. return new A._StreamIterator(A.checkNotNullable(stream, "stream", type$.Object));
  5338. },
  5339. StreamController_StreamController(onCancel, onListen, onPause, onResume, sync, $T) {
  5340. return sync ? new A._SyncStreamController(onListen, onPause, onResume, onCancel, $T._eval$1("_SyncStreamController<0>")) : new A._AsyncStreamController(onListen, onPause, onResume, onCancel, $T._eval$1("_AsyncStreamController<0>"));
  5341. },
  5342. _runGuarded(notificationHandler) {
  5343. var e, s, exception;
  5344. if (notificationHandler == null)
  5345. return;
  5346. try {
  5347. notificationHandler.call$0();
  5348. } catch (exception) {
  5349. e = A.unwrapException(exception);
  5350. s = A.getTraceFromException(exception);
  5351. $.Zone__current.handleUncaughtError$2(e, s);
  5352. }
  5353. },
  5354. _ControllerSubscription$(_controller, onData, onError, onDone, cancelOnError, $T) {
  5355. var t1 = $.Zone__current,
  5356. t2 = cancelOnError ? 1 : 0,
  5357. t3 = onError != null ? 32 : 0,
  5358. t4 = A._BufferingStreamSubscription__registerDataHandler(t1, onData, $T),
  5359. t5 = A._BufferingStreamSubscription__registerErrorHandler(t1, onError),
  5360. t6 = onDone == null ? A.async___nullDoneHandler$closure() : onDone;
  5361. return new A._ControllerSubscription(_controller, t4, t5, t1.registerCallback$1$1(t6, type$.void), t1, t2 | t3, $T._eval$1("_ControllerSubscription<0>"));
  5362. },
  5363. _AddStreamState_makeErrorHandler(controller) {
  5364. return new A._AddStreamState_makeErrorHandler_closure(controller);
  5365. },
  5366. _BufferingStreamSubscription__registerDataHandler(zone, handleData, $T) {
  5367. var t1 = handleData == null ? A.async___nullDataHandler$closure() : handleData;
  5368. return zone.registerUnaryCallback$2$1(t1, type$.void, $T);
  5369. },
  5370. _BufferingStreamSubscription__registerErrorHandler(zone, handleError) {
  5371. if (handleError == null)
  5372. handleError = A.async___nullErrorHandler$closure();
  5373. if (type$.void_Function_Object_StackTrace._is(handleError))
  5374. return zone.registerBinaryCallback$3$1(handleError, type$.dynamic, type$.Object, type$.StackTrace);
  5375. if (type$.void_Function_Object._is(handleError))
  5376. return zone.registerUnaryCallback$2$1(handleError, type$.dynamic, type$.Object);
  5377. throw A.wrapException(A.ArgumentError$("handleError callback must take either an Object (the error), or both an Object (the error) and a StackTrace.", null));
  5378. },
  5379. _nullDataHandler(value) {
  5380. },
  5381. _nullErrorHandler(error, stackTrace) {
  5382. $.Zone__current.handleUncaughtError$2(error, stackTrace);
  5383. },
  5384. _nullDoneHandler() {
  5385. },
  5386. Timer_Timer(duration, callback) {
  5387. var t1 = $.Zone__current;
  5388. if (t1 === B.C__RootZone)
  5389. return t1.createTimer$2(duration, callback);
  5390. return t1.createTimer$2(duration, t1.bindCallbackGuarded$1(callback));
  5391. },
  5392. _rootHandleUncaughtError($self, $parent, zone, error, stackTrace) {
  5393. A._rootHandleError(error, stackTrace);
  5394. },
  5395. _rootHandleError(error, stackTrace) {
  5396. A._schedulePriorityAsyncCallback(new A._rootHandleError_closure(error, stackTrace));
  5397. },
  5398. _rootRun($self, $parent, zone, f) {
  5399. var old,
  5400. t1 = $.Zone__current;
  5401. if (t1 === zone)
  5402. return f.call$0();
  5403. $.Zone__current = zone;
  5404. old = t1;
  5405. try {
  5406. t1 = f.call$0();
  5407. return t1;
  5408. } finally {
  5409. $.Zone__current = old;
  5410. }
  5411. },
  5412. _rootRunUnary($self, $parent, zone, f, arg) {
  5413. var old,
  5414. t1 = $.Zone__current;
  5415. if (t1 === zone)
  5416. return f.call$1(arg);
  5417. $.Zone__current = zone;
  5418. old = t1;
  5419. try {
  5420. t1 = f.call$1(arg);
  5421. return t1;
  5422. } finally {
  5423. $.Zone__current = old;
  5424. }
  5425. },
  5426. _rootRunBinary($self, $parent, zone, f, arg1, arg2) {
  5427. var old,
  5428. t1 = $.Zone__current;
  5429. if (t1 === zone)
  5430. return f.call$2(arg1, arg2);
  5431. $.Zone__current = zone;
  5432. old = t1;
  5433. try {
  5434. t1 = f.call$2(arg1, arg2);
  5435. return t1;
  5436. } finally {
  5437. $.Zone__current = old;
  5438. }
  5439. },
  5440. _rootRegisterCallback($self, $parent, zone, f) {
  5441. return f;
  5442. },
  5443. _rootRegisterUnaryCallback($self, $parent, zone, f) {
  5444. return f;
  5445. },
  5446. _rootRegisterBinaryCallback($self, $parent, zone, f) {
  5447. return f;
  5448. },
  5449. _rootErrorCallback($self, $parent, zone, error, stackTrace) {
  5450. return null;
  5451. },
  5452. _rootScheduleMicrotask($self, $parent, zone, f) {
  5453. var t1, t2;
  5454. if (B.C__RootZone !== zone) {
  5455. t1 = B.C__RootZone.get$errorZone();
  5456. t2 = zone.get$errorZone();
  5457. f = t1 !== t2 ? zone.bindCallbackGuarded$1(f) : zone.bindCallback$1$1(f, type$.void);
  5458. }
  5459. A._scheduleAsyncCallback(f);
  5460. },
  5461. _rootCreateTimer($self, $parent, zone, duration, callback) {
  5462. return A.Timer__createTimer(duration, B.C__RootZone !== zone ? zone.bindCallback$1$1(callback, type$.void) : callback);
  5463. },
  5464. _rootCreatePeriodicTimer($self, $parent, zone, duration, callback) {
  5465. var milliseconds;
  5466. if (B.C__RootZone !== zone)
  5467. callback = zone.bindUnaryCallback$2$1(callback, type$.void, type$.Timer);
  5468. milliseconds = B.JSInt_methods._tdivFast$1(duration._duration, 1000);
  5469. return A._TimerImpl$periodic(milliseconds < 0 ? 0 : milliseconds, callback);
  5470. },
  5471. _rootPrint($self, $parent, zone, line) {
  5472. A.printString(line);
  5473. },
  5474. _printToZone(line) {
  5475. $.Zone__current.print$1(line);
  5476. },
  5477. _rootFork($self, $parent, zone, specification, zoneValues) {
  5478. var valueMap, t1, handleUncaughtError;
  5479. $.printToZone = A.async___printToZone$closure();
  5480. if (specification == null)
  5481. specification = B._ZoneSpecification_48t;
  5482. if (zoneValues == null)
  5483. valueMap = zone.get$_async$_map();
  5484. else {
  5485. t1 = type$.nullable_Object;
  5486. valueMap = A.HashMap_HashMap$from(zoneValues, t1, t1);
  5487. }
  5488. t1 = new A._CustomZone(zone.get$_run(), zone.get$_runUnary(), zone.get$_runBinary(), zone.get$_registerCallback(), zone.get$_registerUnaryCallback(), zone.get$_registerBinaryCallback(), zone.get$_errorCallback(), zone.get$_scheduleMicrotask(), zone.get$_createTimer(), zone.get$_createPeriodicTimer(), zone.get$_print(), zone.get$_fork(), zone.get$_handleUncaughtError(), zone, valueMap);
  5489. handleUncaughtError = specification.handleUncaughtError;
  5490. if (handleUncaughtError != null)
  5491. t1._handleUncaughtError = new A._ZoneFunction(t1, handleUncaughtError);
  5492. return t1;
  5493. },
  5494. runZoned(body, zoneValues, $R) {
  5495. A.checkNotNullable(body, "body", $R._eval$1("0()"));
  5496. return A._runZoned(body, zoneValues, null, $R);
  5497. },
  5498. _runZoned(body, zoneValues, specification, $R) {
  5499. return $.Zone__current.fork$2$specification$zoneValues(specification, zoneValues).run$1$1(0, body, $R);
  5500. },
  5501. _AsyncRun__initializeScheduleImmediate_internalCallback: function _AsyncRun__initializeScheduleImmediate_internalCallback(t0) {
  5502. this._box_0 = t0;
  5503. },
  5504. _AsyncRun__initializeScheduleImmediate_closure: function _AsyncRun__initializeScheduleImmediate_closure(t0, t1, t2) {
  5505. this._box_0 = t0;
  5506. this.div = t1;
  5507. this.span = t2;
  5508. },
  5509. _AsyncRun__scheduleImmediateJsOverride_internalCallback: function _AsyncRun__scheduleImmediateJsOverride_internalCallback(t0) {
  5510. this.callback = t0;
  5511. },
  5512. _AsyncRun__scheduleImmediateWithSetImmediate_internalCallback: function _AsyncRun__scheduleImmediateWithSetImmediate_internalCallback(t0) {
  5513. this.callback = t0;
  5514. },
  5515. _TimerImpl: function _TimerImpl(t0) {
  5516. this._once = t0;
  5517. this._handle = null;
  5518. this._tick = 0;
  5519. },
  5520. _TimerImpl_internalCallback: function _TimerImpl_internalCallback(t0, t1) {
  5521. this.$this = t0;
  5522. this.callback = t1;
  5523. },
  5524. _TimerImpl$periodic_closure: function _TimerImpl$periodic_closure(t0, t1, t2, t3) {
  5525. var _ = this;
  5526. _.$this = t0;
  5527. _.milliseconds = t1;
  5528. _.start = t2;
  5529. _.callback = t3;
  5530. },
  5531. _AsyncAwaitCompleter: function _AsyncAwaitCompleter(t0, t1) {
  5532. this._future = t0;
  5533. this.isSync = false;
  5534. this.$ti = t1;
  5535. },
  5536. _awaitOnObject_closure: function _awaitOnObject_closure(t0) {
  5537. this.bodyFunction = t0;
  5538. },
  5539. _awaitOnObject_closure0: function _awaitOnObject_closure0(t0) {
  5540. this.bodyFunction = t0;
  5541. },
  5542. _wrapJsFunctionForAsync_closure: function _wrapJsFunctionForAsync_closure(t0) {
  5543. this.$protected = t0;
  5544. },
  5545. _SyncStarIterator: function _SyncStarIterator(t0) {
  5546. var _ = this;
  5547. _._body = t0;
  5548. _._suspendedBodies = _._nestedIterator = _._datum = _._async$_current = null;
  5549. },
  5550. _SyncStarIterable: function _SyncStarIterable(t0, t1) {
  5551. this._outerHelper = t0;
  5552. this.$ti = t1;
  5553. },
  5554. AsyncError: function AsyncError(t0, t1) {
  5555. this.error = t0;
  5556. this.stackTrace = t1;
  5557. },
  5558. Future_wait_handleError: function Future_wait_handleError(t0, t1, t2, t3) {
  5559. var _ = this;
  5560. _._box_0 = t0;
  5561. _.cleanUp = t1;
  5562. _.eagerError = t2;
  5563. _._future = t3;
  5564. },
  5565. Future_wait_closure: function Future_wait_closure(t0, t1, t2, t3, t4, t5) {
  5566. var _ = this;
  5567. _._box_0 = t0;
  5568. _.pos = t1;
  5569. _._future = t2;
  5570. _.T = t3;
  5571. _.cleanUp = t4;
  5572. _.eagerError = t5;
  5573. },
  5574. _Completer: function _Completer() {
  5575. },
  5576. _AsyncCompleter: function _AsyncCompleter(t0, t1) {
  5577. this.future = t0;
  5578. this.$ti = t1;
  5579. },
  5580. _SyncCompleter: function _SyncCompleter(t0, t1) {
  5581. this.future = t0;
  5582. this.$ti = t1;
  5583. },
  5584. _FutureListener: function _FutureListener(t0, t1, t2, t3, t4) {
  5585. var _ = this;
  5586. _._nextListener = null;
  5587. _.result = t0;
  5588. _.state = t1;
  5589. _.callback = t2;
  5590. _.errorCallback = t3;
  5591. _.$ti = t4;
  5592. },
  5593. _Future: function _Future(t0, t1) {
  5594. var _ = this;
  5595. _._state = 0;
  5596. _._zone = t0;
  5597. _._resultOrListeners = null;
  5598. _.$ti = t1;
  5599. },
  5600. _Future__addListener_closure: function _Future__addListener_closure(t0, t1) {
  5601. this.$this = t0;
  5602. this.listener = t1;
  5603. },
  5604. _Future__prependListeners_closure: function _Future__prependListeners_closure(t0, t1) {
  5605. this._box_0 = t0;
  5606. this.$this = t1;
  5607. },
  5608. _Future__chainForeignFuture_closure: function _Future__chainForeignFuture_closure(t0) {
  5609. this.$this = t0;
  5610. },
  5611. _Future__chainForeignFuture_closure0: function _Future__chainForeignFuture_closure0(t0) {
  5612. this.$this = t0;
  5613. },
  5614. _Future__chainForeignFuture_closure1: function _Future__chainForeignFuture_closure1(t0, t1, t2) {
  5615. this.$this = t0;
  5616. this.e = t1;
  5617. this.s = t2;
  5618. },
  5619. _Future__chainCoreFutureAsync_closure: function _Future__chainCoreFutureAsync_closure(t0, t1) {
  5620. this._box_0 = t0;
  5621. this.target = t1;
  5622. },
  5623. _Future__asyncCompleteWithValue_closure: function _Future__asyncCompleteWithValue_closure(t0, t1) {
  5624. this.$this = t0;
  5625. this.value = t1;
  5626. },
  5627. _Future__asyncCompleteError_closure: function _Future__asyncCompleteError_closure(t0, t1, t2) {
  5628. this.$this = t0;
  5629. this.error = t1;
  5630. this.stackTrace = t2;
  5631. },
  5632. _Future__propagateToListeners_handleWhenCompleteCallback: function _Future__propagateToListeners_handleWhenCompleteCallback(t0, t1, t2) {
  5633. this._box_0 = t0;
  5634. this._box_1 = t1;
  5635. this.hasError = t2;
  5636. },
  5637. _Future__propagateToListeners_handleWhenCompleteCallback_closure: function _Future__propagateToListeners_handleWhenCompleteCallback_closure(t0) {
  5638. this.originalSource = t0;
  5639. },
  5640. _Future__propagateToListeners_handleValueCallback: function _Future__propagateToListeners_handleValueCallback(t0, t1) {
  5641. this._box_0 = t0;
  5642. this.sourceResult = t1;
  5643. },
  5644. _Future__propagateToListeners_handleError: function _Future__propagateToListeners_handleError(t0, t1) {
  5645. this._box_1 = t0;
  5646. this._box_0 = t1;
  5647. },
  5648. _AsyncCallbackEntry: function _AsyncCallbackEntry(t0) {
  5649. this.callback = t0;
  5650. this.next = null;
  5651. },
  5652. Stream: function Stream() {
  5653. },
  5654. Stream_Stream$fromFuture_closure: function Stream_Stream$fromFuture_closure(t0, t1) {
  5655. this.controller = t0;
  5656. this.T = t1;
  5657. },
  5658. Stream_Stream$fromFuture_closure0: function Stream_Stream$fromFuture_closure0(t0) {
  5659. this.controller = t0;
  5660. },
  5661. Stream_length_closure: function Stream_length_closure(t0, t1) {
  5662. this._box_0 = t0;
  5663. this.$this = t1;
  5664. },
  5665. Stream_length_closure0: function Stream_length_closure0(t0, t1) {
  5666. this._box_0 = t0;
  5667. this.future = t1;
  5668. },
  5669. _StreamController: function _StreamController() {
  5670. },
  5671. _StreamController__subscribe_closure: function _StreamController__subscribe_closure(t0) {
  5672. this.$this = t0;
  5673. },
  5674. _StreamController__recordCancel_complete: function _StreamController__recordCancel_complete(t0) {
  5675. this.$this = t0;
  5676. },
  5677. _SyncStreamControllerDispatch: function _SyncStreamControllerDispatch() {
  5678. },
  5679. _AsyncStreamControllerDispatch: function _AsyncStreamControllerDispatch() {
  5680. },
  5681. _AsyncStreamController: function _AsyncStreamController(t0, t1, t2, t3, t4) {
  5682. var _ = this;
  5683. _._varData = null;
  5684. _._state = 0;
  5685. _._doneFuture = null;
  5686. _.onListen = t0;
  5687. _.onPause = t1;
  5688. _.onResume = t2;
  5689. _.onCancel = t3;
  5690. _.$ti = t4;
  5691. },
  5692. _SyncStreamController: function _SyncStreamController(t0, t1, t2, t3, t4) {
  5693. var _ = this;
  5694. _._varData = null;
  5695. _._state = 0;
  5696. _._doneFuture = null;
  5697. _.onListen = t0;
  5698. _.onPause = t1;
  5699. _.onResume = t2;
  5700. _.onCancel = t3;
  5701. _.$ti = t4;
  5702. },
  5703. _ControllerStream: function _ControllerStream(t0, t1) {
  5704. this._controller = t0;
  5705. this.$ti = t1;
  5706. },
  5707. _ControllerSubscription: function _ControllerSubscription(t0, t1, t2, t3, t4, t5, t6) {
  5708. var _ = this;
  5709. _._controller = t0;
  5710. _._onData = t1;
  5711. _._onError = t2;
  5712. _._onDone = t3;
  5713. _._zone = t4;
  5714. _._state = t5;
  5715. _._pending = _._cancelFuture = null;
  5716. _.$ti = t6;
  5717. },
  5718. _AddStreamState: function _AddStreamState() {
  5719. },
  5720. _AddStreamState_makeErrorHandler_closure: function _AddStreamState_makeErrorHandler_closure(t0) {
  5721. this.controller = t0;
  5722. },
  5723. _AddStreamState_cancel_closure: function _AddStreamState_cancel_closure(t0) {
  5724. this.$this = t0;
  5725. },
  5726. _StreamControllerAddStreamState: function _StreamControllerAddStreamState(t0, t1, t2) {
  5727. this._varData = t0;
  5728. this.addStreamFuture = t1;
  5729. this.addSubscription = t2;
  5730. },
  5731. _BufferingStreamSubscription: function _BufferingStreamSubscription() {
  5732. },
  5733. _BufferingStreamSubscription__sendError_sendError: function _BufferingStreamSubscription__sendError_sendError(t0, t1, t2) {
  5734. this.$this = t0;
  5735. this.error = t1;
  5736. this.stackTrace = t2;
  5737. },
  5738. _BufferingStreamSubscription__sendDone_sendDone: function _BufferingStreamSubscription__sendDone_sendDone(t0) {
  5739. this.$this = t0;
  5740. },
  5741. _StreamImpl: function _StreamImpl() {
  5742. },
  5743. _DelayedEvent: function _DelayedEvent() {
  5744. },
  5745. _DelayedData: function _DelayedData(t0) {
  5746. this.value = t0;
  5747. this.next = null;
  5748. },
  5749. _DelayedError: function _DelayedError(t0, t1) {
  5750. this.error = t0;
  5751. this.stackTrace = t1;
  5752. this.next = null;
  5753. },
  5754. _DelayedDone: function _DelayedDone() {
  5755. },
  5756. _PendingEvents: function _PendingEvents() {
  5757. this._state = 0;
  5758. this.lastPendingEvent = this.firstPendingEvent = null;
  5759. },
  5760. _PendingEvents_schedule_closure: function _PendingEvents_schedule_closure(t0, t1) {
  5761. this.$this = t0;
  5762. this.dispatch = t1;
  5763. },
  5764. _StreamIterator: function _StreamIterator(t0) {
  5765. this._subscription = null;
  5766. this._stateData = t0;
  5767. this._async$_hasValue = false;
  5768. },
  5769. _ForwardingStream: function _ForwardingStream() {
  5770. },
  5771. _ForwardingStreamSubscription: function _ForwardingStreamSubscription(t0, t1, t2, t3, t4, t5, t6) {
  5772. var _ = this;
  5773. _._stream = t0;
  5774. _._subscription = null;
  5775. _._onData = t1;
  5776. _._onError = t2;
  5777. _._onDone = t3;
  5778. _._zone = t4;
  5779. _._state = t5;
  5780. _._pending = _._cancelFuture = null;
  5781. _.$ti = t6;
  5782. },
  5783. _ExpandStream: function _ExpandStream(t0, t1, t2) {
  5784. this._expand = t0;
  5785. this._async$_source = t1;
  5786. this.$ti = t2;
  5787. },
  5788. _ZoneFunction: function _ZoneFunction(t0, t1) {
  5789. this.zone = t0;
  5790. this.$function = t1;
  5791. },
  5792. _ZoneSpecification: function _ZoneSpecification(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12) {
  5793. var _ = this;
  5794. _.handleUncaughtError = t0;
  5795. _.run = t1;
  5796. _.runUnary = t2;
  5797. _.runBinary = t3;
  5798. _.registerCallback = t4;
  5799. _.registerUnaryCallback = t5;
  5800. _.registerBinaryCallback = t6;
  5801. _.errorCallback = t7;
  5802. _.scheduleMicrotask = t8;
  5803. _.createTimer = t9;
  5804. _.createPeriodicTimer = t10;
  5805. _.print = t11;
  5806. _.fork = t12;
  5807. },
  5808. _ZoneDelegate: function _ZoneDelegate(t0) {
  5809. this._delegationTarget = t0;
  5810. },
  5811. _Zone: function _Zone() {
  5812. },
  5813. _CustomZone: function _CustomZone(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14) {
  5814. var _ = this;
  5815. _._run = t0;
  5816. _._runUnary = t1;
  5817. _._runBinary = t2;
  5818. _._registerCallback = t3;
  5819. _._registerUnaryCallback = t4;
  5820. _._registerBinaryCallback = t5;
  5821. _._errorCallback = t6;
  5822. _._scheduleMicrotask = t7;
  5823. _._createTimer = t8;
  5824. _._createPeriodicTimer = t9;
  5825. _._print = t10;
  5826. _._fork = t11;
  5827. _._handleUncaughtError = t12;
  5828. _._delegateCache = null;
  5829. _.parent = t13;
  5830. _._async$_map = t14;
  5831. },
  5832. _CustomZone_bindCallback_closure: function _CustomZone_bindCallback_closure(t0, t1, t2) {
  5833. this.$this = t0;
  5834. this.registered = t1;
  5835. this.R = t2;
  5836. },
  5837. _CustomZone_bindUnaryCallback_closure: function _CustomZone_bindUnaryCallback_closure(t0, t1, t2, t3) {
  5838. var _ = this;
  5839. _.$this = t0;
  5840. _.registered = t1;
  5841. _.T = t2;
  5842. _.R = t3;
  5843. },
  5844. _CustomZone_bindCallbackGuarded_closure: function _CustomZone_bindCallbackGuarded_closure(t0, t1) {
  5845. this.$this = t0;
  5846. this.registered = t1;
  5847. },
  5848. _rootHandleError_closure: function _rootHandleError_closure(t0, t1) {
  5849. this.error = t0;
  5850. this.stackTrace = t1;
  5851. },
  5852. _RootZone: function _RootZone() {
  5853. },
  5854. _RootZone_bindCallback_closure: function _RootZone_bindCallback_closure(t0, t1, t2) {
  5855. this.$this = t0;
  5856. this.f = t1;
  5857. this.R = t2;
  5858. },
  5859. _RootZone_bindUnaryCallback_closure: function _RootZone_bindUnaryCallback_closure(t0, t1, t2, t3) {
  5860. var _ = this;
  5861. _.$this = t0;
  5862. _.f = t1;
  5863. _.T = t2;
  5864. _.R = t3;
  5865. },
  5866. _RootZone_bindCallbackGuarded_closure: function _RootZone_bindCallbackGuarded_closure(t0, t1) {
  5867. this.$this = t0;
  5868. this.f = t1;
  5869. },
  5870. HashMap_HashMap($K, $V) {
  5871. return new A._HashMap($K._eval$1("@<0>")._bind$1($V)._eval$1("_HashMap<1,2>"));
  5872. },
  5873. _HashMap__getTableEntry(table, key) {
  5874. var entry = table[key];
  5875. return entry === table ? null : entry;
  5876. },
  5877. _HashMap__setTableEntry(table, key, value) {
  5878. if (value == null)
  5879. table[key] = table;
  5880. else
  5881. table[key] = value;
  5882. },
  5883. _HashMap__newHashTable() {
  5884. var table = Object.create(null);
  5885. A._HashMap__setTableEntry(table, "<non-identifier-key>", table);
  5886. delete table["<non-identifier-key>"];
  5887. return table;
  5888. },
  5889. LinkedHashMap_LinkedHashMap(equals, hashCode, isValidKey, $K, $V) {
  5890. if (isValidKey == null)
  5891. if (hashCode == null) {
  5892. if (equals == null)
  5893. return new A.JsLinkedHashMap($K._eval$1("@<0>")._bind$1($V)._eval$1("JsLinkedHashMap<1,2>"));
  5894. hashCode = A.collection___defaultHashCode$closure();
  5895. } else {
  5896. if (A.core__identityHashCode$closure() === hashCode && A.core__identical$closure() === equals)
  5897. return new A.JsIdentityLinkedHashMap($K._eval$1("@<0>")._bind$1($V)._eval$1("JsIdentityLinkedHashMap<1,2>"));
  5898. if (equals == null)
  5899. equals = A.collection___defaultEquals$closure();
  5900. }
  5901. else {
  5902. if (hashCode == null)
  5903. hashCode = A.collection___defaultHashCode$closure();
  5904. if (equals == null)
  5905. equals = A.collection___defaultEquals$closure();
  5906. }
  5907. return A._LinkedCustomHashMap$(equals, hashCode, isValidKey, $K, $V);
  5908. },
  5909. LinkedHashMap_LinkedHashMap$_literal(keyValuePairs, $K, $V) {
  5910. return A.fillLiteralMap(keyValuePairs, new A.JsLinkedHashMap($K._eval$1("@<0>")._bind$1($V)._eval$1("JsLinkedHashMap<1,2>")));
  5911. },
  5912. LinkedHashMap_LinkedHashMap$_empty($K, $V) {
  5913. return new A.JsLinkedHashMap($K._eval$1("@<0>")._bind$1($V)._eval$1("JsLinkedHashMap<1,2>"));
  5914. },
  5915. _LinkedCustomHashMap$(_equals, _hashCode, validKey, $K, $V) {
  5916. var t1 = validKey != null ? validKey : new A._LinkedCustomHashMap_closure($K);
  5917. return new A._LinkedCustomHashMap(_equals, _hashCode, t1, $K._eval$1("@<0>")._bind$1($V)._eval$1("_LinkedCustomHashMap<1,2>"));
  5918. },
  5919. LinkedHashSet_LinkedHashSet($E) {
  5920. return new A._LinkedHashSet($E._eval$1("_LinkedHashSet<0>"));
  5921. },
  5922. LinkedHashSet_LinkedHashSet$_empty($E) {
  5923. return new A._LinkedHashSet($E._eval$1("_LinkedHashSet<0>"));
  5924. },
  5925. LinkedHashSet_LinkedHashSet$_literal(values, $E) {
  5926. return A.fillLiteralSet(values, new A._LinkedHashSet($E._eval$1("_LinkedHashSet<0>")));
  5927. },
  5928. _LinkedHashSet__newHashTable() {
  5929. var table = Object.create(null);
  5930. table["<non-identifier-key>"] = table;
  5931. delete table["<non-identifier-key>"];
  5932. return table;
  5933. },
  5934. _LinkedHashSetIterator$(_set, _modifications, $E) {
  5935. var t1 = new A._LinkedHashSetIterator(_set, _modifications, $E._eval$1("_LinkedHashSetIterator<0>"));
  5936. t1._cell = _set._first;
  5937. return t1;
  5938. },
  5939. UnmodifiableListView$(source, $E) {
  5940. return new A.UnmodifiableListView(source, $E._eval$1("UnmodifiableListView<0>"));
  5941. },
  5942. _defaultEquals(a, b) {
  5943. return J.$eq$(a, b);
  5944. },
  5945. _defaultHashCode(a) {
  5946. return J.get$hashCode$(a);
  5947. },
  5948. HashMap_HashMap$from(other, $K, $V) {
  5949. var result = A.HashMap_HashMap($K, $V);
  5950. other.forEach$1(0, new A.HashMap_HashMap$from_closure(result, $K, $V));
  5951. return result;
  5952. },
  5953. IterableExtensions_get_firstOrNull(_this) {
  5954. var t2,
  5955. t1 = A._arrayInstanceType(_this),
  5956. iterator = new J.ArrayIterator(_this, _this.length, t1._eval$1("ArrayIterator<1>"));
  5957. if (iterator.moveNext$0()) {
  5958. t2 = iterator._current;
  5959. return t2 == null ? t1._precomputed1._as(t2) : t2;
  5960. }
  5961. return null;
  5962. },
  5963. LinkedHashMap_LinkedHashMap$from(other, $K, $V) {
  5964. var result = A.LinkedHashMap_LinkedHashMap(null, null, null, $K, $V);
  5965. other.forEach$1(0, new A.LinkedHashMap_LinkedHashMap$from_closure(result, $K, $V));
  5966. return result;
  5967. },
  5968. LinkedHashMap_LinkedHashMap$of(other, $K, $V) {
  5969. var t1 = A.LinkedHashMap_LinkedHashMap(null, null, null, $K, $V);
  5970. t1.addAll$1(0, other);
  5971. return t1;
  5972. },
  5973. LinkedHashSet_LinkedHashSet$from(elements, $E) {
  5974. var t1, _i,
  5975. result = A.LinkedHashSet_LinkedHashSet($E);
  5976. for (t1 = elements.length, _i = 0; _i < elements.length; elements.length === t1 || (0, A.throwConcurrentModificationError)(elements), ++_i)
  5977. result.add$1(0, $E._as(elements[_i]));
  5978. return result;
  5979. },
  5980. LinkedHashSet_LinkedHashSet$of(elements, $E) {
  5981. var t1 = A.LinkedHashSet_LinkedHashSet($E);
  5982. t1.addAll$1(0, elements);
  5983. return t1;
  5984. },
  5985. ListBase__compareAny(a, b) {
  5986. var t1 = type$.Comparable_dynamic;
  5987. return J.compareTo$1$ns(t1._as(a), t1._as(b));
  5988. },
  5989. MapBase_mapToString(m) {
  5990. var result, t1 = {};
  5991. if (A.isToStringVisiting(m))
  5992. return "{...}";
  5993. result = new A.StringBuffer("");
  5994. try {
  5995. $.toStringVisiting.push(m);
  5996. result._contents += "{";
  5997. t1.first = true;
  5998. m.forEach$1(0, new A.MapBase_mapToString_closure(t1, result));
  5999. result._contents += "}";
  6000. } finally {
  6001. $.toStringVisiting.pop();
  6002. }
  6003. t1 = result._contents;
  6004. return t1.charCodeAt(0) == 0 ? t1 : t1;
  6005. },
  6006. MapBase__fillMapWithIterables(map, keys, values) {
  6007. var keyIterator = keys.get$iterator(keys),
  6008. valueIterator = values.get$iterator(values),
  6009. hasNextKey = keyIterator.moveNext$0(),
  6010. hasNextValue = valueIterator.moveNext$0();
  6011. while (true) {
  6012. if (!(hasNextKey && hasNextValue))
  6013. break;
  6014. map.$indexSet(0, keyIterator.get$current(keyIterator), valueIterator.get$current(valueIterator));
  6015. hasNextKey = keyIterator.moveNext$0();
  6016. hasNextValue = valueIterator.moveNext$0();
  6017. }
  6018. if (hasNextKey || hasNextValue)
  6019. throw A.wrapException(A.ArgumentError$("Iterables do not have same length.", null));
  6020. },
  6021. ListQueue$($E) {
  6022. return new A.ListQueue(A.List_List$filled(A.ListQueue__calculateCapacity(null), null, false, $E._eval$1("0?")), $E._eval$1("ListQueue<0>"));
  6023. },
  6024. ListQueue__calculateCapacity(initialCapacity) {
  6025. return 8;
  6026. },
  6027. ListQueue__nextPowerOf2(number) {
  6028. var nextNumber;
  6029. number = (number << 1 >>> 0) - 1;
  6030. for (; true; number = nextNumber) {
  6031. nextNumber = (number & number - 1) >>> 0;
  6032. if (nextNumber === 0)
  6033. return number;
  6034. }
  6035. },
  6036. _ListQueueIterator$(queue, $E) {
  6037. return new A._ListQueueIterator(queue, queue._tail, queue._modificationCount, queue._head, $E._eval$1("_ListQueueIterator<0>"));
  6038. },
  6039. _UnmodifiableSetMixin__throwUnmodifiable() {
  6040. throw A.wrapException(A.UnsupportedError$("Cannot change an unmodifiable set"));
  6041. },
  6042. _HashMap: function _HashMap(t0) {
  6043. var _ = this;
  6044. _._collection$_length = 0;
  6045. _._collection$_keys = _._collection$_rest = _._nums = _._strings = null;
  6046. _.$ti = t0;
  6047. },
  6048. _HashMap_values_closure: function _HashMap_values_closure(t0) {
  6049. this.$this = t0;
  6050. },
  6051. _HashMap_addAll_closure: function _HashMap_addAll_closure(t0) {
  6052. this.$this = t0;
  6053. },
  6054. _IdentityHashMap: function _IdentityHashMap(t0) {
  6055. var _ = this;
  6056. _._collection$_length = 0;
  6057. _._collection$_keys = _._collection$_rest = _._nums = _._strings = null;
  6058. _.$ti = t0;
  6059. },
  6060. _HashMapKeyIterable: function _HashMapKeyIterable(t0, t1) {
  6061. this._map = t0;
  6062. this.$ti = t1;
  6063. },
  6064. _HashMapKeyIterator: function _HashMapKeyIterator(t0, t1, t2) {
  6065. var _ = this;
  6066. _._map = t0;
  6067. _._collection$_keys = t1;
  6068. _._offset = 0;
  6069. _._collection$_current = null;
  6070. _.$ti = t2;
  6071. },
  6072. _LinkedCustomHashMap: function _LinkedCustomHashMap(t0, t1, t2, t3) {
  6073. var _ = this;
  6074. _._equals = t0;
  6075. _._hashCode = t1;
  6076. _._validKey = t2;
  6077. _.__js_helper$_length = 0;
  6078. _.__js_helper$_last = _.__js_helper$_first = _.__js_helper$_rest = _.__js_helper$_nums = _.__js_helper$_strings = null;
  6079. _.__js_helper$_modifications = 0;
  6080. _.$ti = t3;
  6081. },
  6082. _LinkedCustomHashMap_closure: function _LinkedCustomHashMap_closure(t0) {
  6083. this.K = t0;
  6084. },
  6085. _LinkedHashSet: function _LinkedHashSet(t0) {
  6086. var _ = this;
  6087. _._collection$_length = 0;
  6088. _._last = _._first = _._collection$_rest = _._nums = _._strings = null;
  6089. _._modifications = 0;
  6090. _.$ti = t0;
  6091. },
  6092. _LinkedIdentityHashSet: function _LinkedIdentityHashSet(t0) {
  6093. var _ = this;
  6094. _._collection$_length = 0;
  6095. _._last = _._first = _._collection$_rest = _._nums = _._strings = null;
  6096. _._modifications = 0;
  6097. _.$ti = t0;
  6098. },
  6099. _LinkedHashSetCell: function _LinkedHashSetCell(t0) {
  6100. this._element = t0;
  6101. this._previous = this._next = null;
  6102. },
  6103. _LinkedHashSetIterator: function _LinkedHashSetIterator(t0, t1, t2) {
  6104. var _ = this;
  6105. _._set = t0;
  6106. _._modifications = t1;
  6107. _._collection$_current = _._cell = null;
  6108. _.$ti = t2;
  6109. },
  6110. UnmodifiableListView: function UnmodifiableListView(t0, t1) {
  6111. this._collection$_source = t0;
  6112. this.$ti = t1;
  6113. },
  6114. HashMap_HashMap$from_closure: function HashMap_HashMap$from_closure(t0, t1, t2) {
  6115. this.result = t0;
  6116. this.K = t1;
  6117. this.V = t2;
  6118. },
  6119. LinkedHashMap_LinkedHashMap$from_closure: function LinkedHashMap_LinkedHashMap$from_closure(t0, t1, t2) {
  6120. this.result = t0;
  6121. this.K = t1;
  6122. this.V = t2;
  6123. },
  6124. ListBase: function ListBase() {
  6125. },
  6126. MapBase: function MapBase() {
  6127. },
  6128. MapBase_addAll_closure: function MapBase_addAll_closure(t0) {
  6129. this.$this = t0;
  6130. },
  6131. MapBase_entries_closure: function MapBase_entries_closure(t0) {
  6132. this.$this = t0;
  6133. },
  6134. MapBase_mapToString_closure: function MapBase_mapToString_closure(t0, t1) {
  6135. this._box_0 = t0;
  6136. this.result = t1;
  6137. },
  6138. UnmodifiableMapBase: function UnmodifiableMapBase() {
  6139. },
  6140. _MapBaseValueIterable: function _MapBaseValueIterable(t0, t1) {
  6141. this._map = t0;
  6142. this.$ti = t1;
  6143. },
  6144. _MapBaseValueIterator: function _MapBaseValueIterator(t0, t1, t2) {
  6145. var _ = this;
  6146. _._collection$_keys = t0;
  6147. _._map = t1;
  6148. _._collection$_current = null;
  6149. _.$ti = t2;
  6150. },
  6151. _UnmodifiableMapMixin: function _UnmodifiableMapMixin() {
  6152. },
  6153. MapView: function MapView() {
  6154. },
  6155. UnmodifiableMapView: function UnmodifiableMapView(t0, t1) {
  6156. this._map = t0;
  6157. this.$ti = t1;
  6158. },
  6159. ListQueue: function ListQueue(t0, t1) {
  6160. var _ = this;
  6161. _._table = t0;
  6162. _._modificationCount = _._tail = _._head = 0;
  6163. _.$ti = t1;
  6164. },
  6165. _ListQueueIterator: function _ListQueueIterator(t0, t1, t2, t3, t4) {
  6166. var _ = this;
  6167. _._queue = t0;
  6168. _._collection$_end = t1;
  6169. _._modificationCount = t2;
  6170. _._collection$_position = t3;
  6171. _._collection$_current = null;
  6172. _.$ti = t4;
  6173. },
  6174. SetBase: function SetBase() {
  6175. },
  6176. _SetBase: function _SetBase() {
  6177. },
  6178. _UnmodifiableSetMixin: function _UnmodifiableSetMixin() {
  6179. },
  6180. UnmodifiableSetView: function UnmodifiableSetView(t0, t1) {
  6181. this._collection$_source = t0;
  6182. this.$ti = t1;
  6183. },
  6184. _UnmodifiableMapView_MapView__UnmodifiableMapMixin: function _UnmodifiableMapView_MapView__UnmodifiableMapMixin() {
  6185. },
  6186. _UnmodifiableSetView_SetBase__UnmodifiableSetMixin: function _UnmodifiableSetView_SetBase__UnmodifiableSetMixin() {
  6187. },
  6188. _parseJson(source, reviver) {
  6189. var e, exception, t1, parsed = null;
  6190. try {
  6191. parsed = JSON.parse(source);
  6192. } catch (exception) {
  6193. e = A.unwrapException(exception);
  6194. t1 = A.FormatException$(String(e), null, null);
  6195. throw A.wrapException(t1);
  6196. }
  6197. t1 = A._convertJsonToDartLazy(parsed);
  6198. return t1;
  6199. },
  6200. _convertJsonToDartLazy(object) {
  6201. var i;
  6202. if (object == null)
  6203. return null;
  6204. if (typeof object != "object")
  6205. return object;
  6206. if (!Array.isArray(object))
  6207. return new A._JsonMap(object, Object.create(null));
  6208. for (i = 0; i < object.length; ++i)
  6209. object[i] = A._convertJsonToDartLazy(object[i]);
  6210. return object;
  6211. },
  6212. _Utf8Decoder__makeNativeUint8List(codeUnits, start, end) {
  6213. var bytes, t1, i, b,
  6214. $length = end - start;
  6215. if ($length <= 4096)
  6216. bytes = $.$get$_Utf8Decoder__reusableBuffer();
  6217. else
  6218. bytes = new Uint8Array($length);
  6219. for (t1 = J.getInterceptor$asx(codeUnits), i = 0; i < $length; ++i) {
  6220. b = t1.$index(codeUnits, start + i);
  6221. if ((b & 255) !== b)
  6222. b = 255;
  6223. bytes[i] = b;
  6224. }
  6225. return bytes;
  6226. },
  6227. _Utf8Decoder__convertInterceptedUint8List(allowMalformed, codeUnits, start, end) {
  6228. var decoder = allowMalformed ? $.$get$_Utf8Decoder__decoderNonfatal() : $.$get$_Utf8Decoder__decoder();
  6229. if (decoder == null)
  6230. return null;
  6231. if (0 === start && end === codeUnits.length)
  6232. return A._Utf8Decoder__useTextDecoder(decoder, codeUnits);
  6233. return A._Utf8Decoder__useTextDecoder(decoder, codeUnits.subarray(start, end));
  6234. },
  6235. _Utf8Decoder__useTextDecoder(decoder, codeUnits) {
  6236. var t1, exception;
  6237. try {
  6238. t1 = decoder.decode(codeUnits);
  6239. return t1;
  6240. } catch (exception) {
  6241. }
  6242. return null;
  6243. },
  6244. Base64Codec__checkPadding(source, sourceIndex, sourceEnd, firstPadding, paddingCount, $length) {
  6245. if (B.JSInt_methods.$mod($length, 4) !== 0)
  6246. throw A.wrapException(A.FormatException$("Invalid base64 padding, padded length must be multiple of four, is " + $length, source, sourceEnd));
  6247. if (firstPadding + paddingCount !== $length)
  6248. throw A.wrapException(A.FormatException$("Invalid base64 padding, '=' not at the end", source, sourceIndex));
  6249. if (paddingCount > 2)
  6250. throw A.wrapException(A.FormatException$("Invalid base64 padding, more than two '=' characters", source, sourceIndex));
  6251. },
  6252. _Base64Encoder_encodeChunk(alphabet, bytes, start, end, isLast, output, outputIndex, state) {
  6253. var t1, i, byteOr, byte, outputIndex0, outputIndex1,
  6254. bits = state >>> 2,
  6255. expectedChars = 3 - (state & 3);
  6256. for (t1 = J.getInterceptor$asx(bytes), i = start, byteOr = 0; i < end; ++i) {
  6257. byte = t1.$index(bytes, i);
  6258. byteOr = (byteOr | byte) >>> 0;
  6259. bits = (bits << 8 | byte) & 16777215;
  6260. --expectedChars;
  6261. if (expectedChars === 0) {
  6262. outputIndex0 = outputIndex + 1;
  6263. output[outputIndex] = alphabet.charCodeAt(bits >>> 18 & 63);
  6264. outputIndex = outputIndex0 + 1;
  6265. output[outputIndex0] = alphabet.charCodeAt(bits >>> 12 & 63);
  6266. outputIndex0 = outputIndex + 1;
  6267. output[outputIndex] = alphabet.charCodeAt(bits >>> 6 & 63);
  6268. outputIndex = outputIndex0 + 1;
  6269. output[outputIndex0] = alphabet.charCodeAt(bits & 63);
  6270. bits = 0;
  6271. expectedChars = 3;
  6272. }
  6273. }
  6274. if (byteOr >= 0 && byteOr <= 255) {
  6275. if (isLast && expectedChars < 3) {
  6276. outputIndex0 = outputIndex + 1;
  6277. outputIndex1 = outputIndex0 + 1;
  6278. if (3 - expectedChars === 1) {
  6279. output[outputIndex] = alphabet.charCodeAt(bits >>> 2 & 63);
  6280. output[outputIndex0] = alphabet.charCodeAt(bits << 4 & 63);
  6281. output[outputIndex1] = 61;
  6282. output[outputIndex1 + 1] = 61;
  6283. } else {
  6284. output[outputIndex] = alphabet.charCodeAt(bits >>> 10 & 63);
  6285. output[outputIndex0] = alphabet.charCodeAt(bits >>> 4 & 63);
  6286. output[outputIndex1] = alphabet.charCodeAt(bits << 2 & 63);
  6287. output[outputIndex1 + 1] = 61;
  6288. }
  6289. return 0;
  6290. }
  6291. return (bits << 2 | 3 - expectedChars) >>> 0;
  6292. }
  6293. for (i = start; i < end;) {
  6294. byte = t1.$index(bytes, i);
  6295. if (byte < 0 || byte > 255)
  6296. break;
  6297. ++i;
  6298. }
  6299. throw A.wrapException(A.ArgumentError$value(bytes, "Not a byte value at index " + i + ": 0x" + J.toRadixString$1$n(t1.$index(bytes, i), 16), null));
  6300. },
  6301. JsonUnsupportedObjectError$(unsupportedObject, cause, partialResult) {
  6302. return new A.JsonUnsupportedObjectError(unsupportedObject, cause);
  6303. },
  6304. _defaultToEncodable(object) {
  6305. return object.toJson$0();
  6306. },
  6307. _JsonStringStringifier$(_sink, _toEncodable) {
  6308. return new A._JsonStringStringifier(_sink, [], A.convert___defaultToEncodable$closure());
  6309. },
  6310. _JsonStringStringifier_stringify(object, toEncodable, indent) {
  6311. var t1,
  6312. output = new A.StringBuffer(""),
  6313. stringifier = A._JsonStringStringifier$(output, toEncodable);
  6314. stringifier.writeObject$1(object);
  6315. t1 = output._contents;
  6316. return t1.charCodeAt(0) == 0 ? t1 : t1;
  6317. },
  6318. _Utf8Decoder_errorDescription(state) {
  6319. switch (state) {
  6320. case 65:
  6321. return "Missing extension byte";
  6322. case 67:
  6323. return "Unexpected extension byte";
  6324. case 69:
  6325. return "Invalid UTF-8 byte";
  6326. case 71:
  6327. return "Overlong encoding";
  6328. case 73:
  6329. return "Out of unicode range";
  6330. case 75:
  6331. return "Encoded surrogate";
  6332. case 77:
  6333. return "Unfinished UTF-8 octet sequence";
  6334. default:
  6335. return "";
  6336. }
  6337. },
  6338. _JsonMap: function _JsonMap(t0, t1) {
  6339. this._original = t0;
  6340. this._processed = t1;
  6341. this._data = null;
  6342. },
  6343. _JsonMap_values_closure: function _JsonMap_values_closure(t0) {
  6344. this.$this = t0;
  6345. },
  6346. _JsonMap_addAll_closure: function _JsonMap_addAll_closure(t0) {
  6347. this.$this = t0;
  6348. },
  6349. _JsonMapKeyIterable: function _JsonMapKeyIterable(t0) {
  6350. this._convert$_parent = t0;
  6351. },
  6352. _Utf8Decoder__decoder_closure: function _Utf8Decoder__decoder_closure() {
  6353. },
  6354. _Utf8Decoder__decoderNonfatal_closure: function _Utf8Decoder__decoderNonfatal_closure() {
  6355. },
  6356. AsciiCodec: function AsciiCodec() {
  6357. },
  6358. _UnicodeSubsetEncoder: function _UnicodeSubsetEncoder() {
  6359. },
  6360. AsciiEncoder: function AsciiEncoder(t0) {
  6361. this._subsetMask = t0;
  6362. },
  6363. Base64Codec: function Base64Codec() {
  6364. },
  6365. Base64Encoder: function Base64Encoder() {
  6366. },
  6367. _Base64Encoder: function _Base64Encoder(t0) {
  6368. this._convert$_state = 0;
  6369. this._alphabet = t0;
  6370. },
  6371. _Base64EncoderSink: function _Base64EncoderSink() {
  6372. },
  6373. _Utf8Base64EncoderSink: function _Utf8Base64EncoderSink(t0, t1) {
  6374. this._sink = t0;
  6375. this._encoder = t1;
  6376. },
  6377. ByteConversionSink: function ByteConversionSink() {
  6378. },
  6379. Codec: function Codec() {
  6380. },
  6381. Converter: function Converter() {
  6382. },
  6383. Encoding: function Encoding() {
  6384. },
  6385. JsonUnsupportedObjectError: function JsonUnsupportedObjectError(t0, t1) {
  6386. this.unsupportedObject = t0;
  6387. this.cause = t1;
  6388. },
  6389. JsonCyclicError: function JsonCyclicError(t0, t1) {
  6390. this.unsupportedObject = t0;
  6391. this.cause = t1;
  6392. },
  6393. JsonCodec: function JsonCodec() {
  6394. },
  6395. JsonEncoder: function JsonEncoder(t0) {
  6396. this._toEncodable = t0;
  6397. },
  6398. JsonDecoder: function JsonDecoder(t0) {
  6399. this._reviver = t0;
  6400. },
  6401. _JsonStringifier: function _JsonStringifier() {
  6402. },
  6403. _JsonStringifier_writeMap_closure: function _JsonStringifier_writeMap_closure(t0, t1) {
  6404. this._box_0 = t0;
  6405. this.keyValueList = t1;
  6406. },
  6407. _JsonStringStringifier: function _JsonStringStringifier(t0, t1, t2) {
  6408. this._sink = t0;
  6409. this._seen = t1;
  6410. this._toEncodable = t2;
  6411. },
  6412. StringConversionSink: function StringConversionSink() {
  6413. },
  6414. _StringSinkConversionSink: function _StringSinkConversionSink(t0) {
  6415. this._stringSink = t0;
  6416. },
  6417. _StringCallbackSink: function _StringCallbackSink(t0, t1) {
  6418. this._convert$_callback = t0;
  6419. this._stringSink = t1;
  6420. },
  6421. _Utf8StringSinkAdapter: function _Utf8StringSinkAdapter(t0, t1, t2) {
  6422. this._decoder = t0;
  6423. this._sink = t1;
  6424. this._stringSink = t2;
  6425. },
  6426. Utf8Codec: function Utf8Codec() {
  6427. },
  6428. Utf8Encoder: function Utf8Encoder() {
  6429. },
  6430. _Utf8Encoder: function _Utf8Encoder(t0) {
  6431. this._bufferIndex = 0;
  6432. this._buffer = t0;
  6433. },
  6434. Utf8Decoder: function Utf8Decoder(t0) {
  6435. this._allowMalformed = t0;
  6436. },
  6437. _Utf8Decoder: function _Utf8Decoder(t0) {
  6438. this.allowMalformed = t0;
  6439. this._convert$_state = 16;
  6440. this._charOrIndex = 0;
  6441. },
  6442. identityHashCode(object) {
  6443. return A.objectHashCode(object);
  6444. },
  6445. Function_apply($function, positionalArguments) {
  6446. return A.Primitives_applyFunction($function, positionalArguments, null);
  6447. },
  6448. Expando$() {
  6449. return new A.Expando(new WeakMap());
  6450. },
  6451. Expando__checkType(object) {
  6452. if (A._isBool(object) || typeof object == "number" || typeof object == "string" || object instanceof A._Record)
  6453. A.Expando__badExpandoKey(object);
  6454. },
  6455. Expando__badExpandoKey(object) {
  6456. throw A.wrapException(A.ArgumentError$value(object, "object", "Expandos are not allowed on strings, numbers, bools, records or null"));
  6457. },
  6458. int_parse(source, radix) {
  6459. var value = A.Primitives_parseInt(source, radix);
  6460. if (value != null)
  6461. return value;
  6462. throw A.wrapException(A.FormatException$(source, null, null));
  6463. },
  6464. double_parse(source) {
  6465. var value = A.Primitives_parseDouble(source);
  6466. if (value != null)
  6467. return value;
  6468. throw A.wrapException(A.FormatException$("Invalid double", source, null));
  6469. },
  6470. Error__throw(error, stackTrace) {
  6471. error = A.wrapException(error);
  6472. error.stack = stackTrace.toString$0(0);
  6473. throw error;
  6474. throw A.wrapException("unreachable");
  6475. },
  6476. List_List$filled($length, fill, growable, $E) {
  6477. var i,
  6478. result = growable ? J.JSArray_JSArray$growable($length, $E) : J.JSArray_JSArray$fixed($length, $E);
  6479. if ($length !== 0 && fill != null)
  6480. for (i = 0; i < result.length; ++i)
  6481. result[i] = fill;
  6482. return result;
  6483. },
  6484. List_List$from(elements, growable, $E) {
  6485. var t1,
  6486. list = A._setArrayType([], $E._eval$1("JSArray<0>"));
  6487. for (t1 = J.get$iterator$ax(elements); t1.moveNext$0();)
  6488. list.push(t1.get$current(t1));
  6489. if (growable)
  6490. return list;
  6491. return J.JSArray_markFixedList(list);
  6492. },
  6493. List_List$of(elements, growable, $E) {
  6494. var t1;
  6495. if (growable)
  6496. return A.List_List$_of(elements, $E);
  6497. t1 = J.JSArray_markFixedList(A.List_List$_of(elements, $E));
  6498. return t1;
  6499. },
  6500. List_List$_of(elements, $E) {
  6501. var list, t1;
  6502. if (Array.isArray(elements))
  6503. return A._setArrayType(elements.slice(0), $E._eval$1("JSArray<0>"));
  6504. list = A._setArrayType([], $E._eval$1("JSArray<0>"));
  6505. for (t1 = J.get$iterator$ax(elements); t1.moveNext$0();)
  6506. list.push(t1.get$current(t1));
  6507. return list;
  6508. },
  6509. List_List$unmodifiable(elements, $E) {
  6510. return J.JSArray_markUnmodifiableList(A.List_List$from(elements, false, $E));
  6511. },
  6512. String_String$fromCharCodes(charCodes, start, end) {
  6513. var t1, t2, maxLength, array, len;
  6514. A.RangeError_checkNotNegative(start, "start");
  6515. t1 = end == null;
  6516. t2 = !t1;
  6517. if (t2) {
  6518. maxLength = end - start;
  6519. if (maxLength < 0)
  6520. throw A.wrapException(A.RangeError$range(end, start, null, "end", null));
  6521. if (maxLength === 0)
  6522. return "";
  6523. }
  6524. if (Array.isArray(charCodes)) {
  6525. array = charCodes;
  6526. len = array.length;
  6527. if (t1)
  6528. end = len;
  6529. return A.Primitives_stringFromCharCodes(start > 0 || end < len ? array.slice(start, end) : array);
  6530. }
  6531. if (type$.NativeUint8List._is(charCodes))
  6532. return A.String__stringFromUint8List(charCodes, start, end);
  6533. if (t2)
  6534. charCodes = J.take$1$ax(charCodes, end);
  6535. if (start > 0)
  6536. charCodes = J.skip$1$ax(charCodes, start);
  6537. return A.Primitives_stringFromCharCodes(A.List_List$of(charCodes, true, type$.int));
  6538. },
  6539. String_String$fromCharCode(charCode) {
  6540. return A.Primitives_stringFromCharCode(charCode);
  6541. },
  6542. String__stringFromUint8List(charCodes, start, endOrNull) {
  6543. var len = charCodes.length;
  6544. if (start >= len)
  6545. return "";
  6546. return A.Primitives_stringFromNativeUint8List(charCodes, start, endOrNull == null || endOrNull > len ? len : endOrNull);
  6547. },
  6548. RegExp_RegExp(source, multiLine) {
  6549. return new A.JSSyntaxRegExp(source, A.JSSyntaxRegExp_makeNative(source, multiLine, true, false, false, false));
  6550. },
  6551. identical(a, b) {
  6552. return a == null ? b == null : a === b;
  6553. },
  6554. StringBuffer__writeAll(string, objects, separator) {
  6555. var iterator = J.get$iterator$ax(objects);
  6556. if (!iterator.moveNext$0())
  6557. return string;
  6558. if (separator.length === 0) {
  6559. do
  6560. string += A.S(iterator.get$current(iterator));
  6561. while (iterator.moveNext$0());
  6562. } else {
  6563. string += A.S(iterator.get$current(iterator));
  6564. for (; iterator.moveNext$0();)
  6565. string = string + separator + A.S(iterator.get$current(iterator));
  6566. }
  6567. return string;
  6568. },
  6569. NoSuchMethodError_NoSuchMethodError$withInvocation(receiver, invocation) {
  6570. return new A.NoSuchMethodError(receiver, invocation.get$memberName(), invocation.get$positionalArguments(), invocation.get$namedArguments());
  6571. },
  6572. Uri_base() {
  6573. var cachedUri, uri,
  6574. current = A.Primitives_currentUri();
  6575. if (current == null)
  6576. throw A.wrapException(A.UnsupportedError$("'Uri.base' is not supported"));
  6577. cachedUri = $.Uri__cachedBaseUri;
  6578. if (cachedUri != null && current === $.Uri__cachedBaseString)
  6579. return cachedUri;
  6580. uri = A.Uri_parse(current);
  6581. $.Uri__cachedBaseUri = uri;
  6582. $.Uri__cachedBaseString = current;
  6583. return uri;
  6584. },
  6585. _Uri__uriEncode(canonicalTable, text, encoding, spaceToPlus) {
  6586. var t1, bytes, i, t2, byte,
  6587. _s16_ = "0123456789ABCDEF";
  6588. if (encoding === B.C_Utf8Codec) {
  6589. t1 = $.$get$_Uri__needsNoEncoding();
  6590. t1 = t1._nativeRegExp.test(text);
  6591. } else
  6592. t1 = false;
  6593. if (t1)
  6594. return text;
  6595. bytes = B.C_Utf8Encoder.convert$1(text);
  6596. for (t1 = bytes.length, i = 0, t2 = ""; i < t1; ++i) {
  6597. byte = bytes[i];
  6598. if (byte < 128 && (canonicalTable[byte >>> 4] & 1 << (byte & 15)) !== 0)
  6599. t2 += A.Primitives_stringFromCharCode(byte);
  6600. else
  6601. t2 = spaceToPlus && byte === 32 ? t2 + "+" : t2 + "%" + _s16_[byte >>> 4 & 15] + _s16_[byte & 15];
  6602. }
  6603. return t2.charCodeAt(0) == 0 ? t2 : t2;
  6604. },
  6605. StackTrace_current() {
  6606. return A.getTraceFromException(new Error());
  6607. },
  6608. DateTime__fourDigits(n) {
  6609. var absN = Math.abs(n),
  6610. sign = n < 0 ? "-" : "";
  6611. if (absN >= 1000)
  6612. return "" + n;
  6613. if (absN >= 100)
  6614. return sign + "0" + absN;
  6615. if (absN >= 10)
  6616. return sign + "00" + absN;
  6617. return sign + "000" + absN;
  6618. },
  6619. DateTime__threeDigits(n) {
  6620. if (n >= 100)
  6621. return "" + n;
  6622. if (n >= 10)
  6623. return "0" + n;
  6624. return "00" + n;
  6625. },
  6626. DateTime__twoDigits(n) {
  6627. if (n >= 10)
  6628. return "" + n;
  6629. return "0" + n;
  6630. },
  6631. Duration$(microseconds, milliseconds) {
  6632. return new A.Duration(microseconds + 1000 * milliseconds);
  6633. },
  6634. EnumByName_byName(_this, $name) {
  6635. var _i, value;
  6636. for (_i = 0; _i < 4; ++_i) {
  6637. value = _this[_i];
  6638. if (value._name === $name)
  6639. return value;
  6640. }
  6641. throw A.wrapException(A.ArgumentError$value($name, "name", "No enum value with that name"));
  6642. },
  6643. Error_safeToString(object) {
  6644. if (typeof object == "number" || A._isBool(object) || object == null)
  6645. return J.toString$0$(object);
  6646. if (typeof object == "string")
  6647. return JSON.stringify(object);
  6648. return A.Primitives_safeToString(object);
  6649. },
  6650. Error_throwWithStackTrace(error, stackTrace) {
  6651. A.checkNotNullable(error, "error", type$.Object);
  6652. A.checkNotNullable(stackTrace, "stackTrace", type$.StackTrace);
  6653. A.Error__throw(error, stackTrace);
  6654. },
  6655. AssertionError$(message) {
  6656. return new A.AssertionError(message);
  6657. },
  6658. ArgumentError$(message, $name) {
  6659. return new A.ArgumentError(false, null, $name, message);
  6660. },
  6661. ArgumentError$value(value, $name, message) {
  6662. return new A.ArgumentError(true, value, $name, message);
  6663. },
  6664. ArgumentError_checkNotNull(argument, $name) {
  6665. return argument;
  6666. },
  6667. RangeError$(message) {
  6668. var _null = null;
  6669. return new A.RangeError(_null, _null, false, _null, _null, message);
  6670. },
  6671. RangeError$value(value, $name, message) {
  6672. return new A.RangeError(null, null, true, value, $name, message == null ? "Value not in range" : message);
  6673. },
  6674. RangeError$range(invalidValue, minValue, maxValue, $name, message) {
  6675. return new A.RangeError(minValue, maxValue, true, invalidValue, $name, message == null ? "Invalid value" : message);
  6676. },
  6677. RangeError_checkValueInInterval(value, minValue, maxValue, $name) {
  6678. if (value < minValue || value > maxValue)
  6679. throw A.wrapException(A.RangeError$range(value, minValue, maxValue, $name, null));
  6680. return value;
  6681. },
  6682. RangeError_checkValidRange(start, end, $length) {
  6683. if (0 > start || start > $length)
  6684. throw A.wrapException(A.RangeError$range(start, 0, $length, "start", null));
  6685. if (end != null) {
  6686. if (start > end || end > $length)
  6687. throw A.wrapException(A.RangeError$range(end, start, $length, "end", null));
  6688. return end;
  6689. }
  6690. return $length;
  6691. },
  6692. RangeError_checkNotNegative(value, $name) {
  6693. if (value < 0)
  6694. throw A.wrapException(A.RangeError$range(value, 0, null, $name, null));
  6695. return value;
  6696. },
  6697. IndexError$withLength(invalidValue, $length, indexable, message, $name) {
  6698. return new A.IndexError($length, true, invalidValue, $name, "Index out of range");
  6699. },
  6700. IndexError_check(index, $length, indexable, message, $name) {
  6701. if (0 > index || index >= $length)
  6702. throw A.wrapException(A.IndexError$withLength(index, $length, indexable, message, $name == null ? "index" : $name));
  6703. return index;
  6704. },
  6705. UnsupportedError$(message) {
  6706. return new A.UnsupportedError(message);
  6707. },
  6708. UnimplementedError$(message) {
  6709. return new A.UnimplementedError(message);
  6710. },
  6711. StateError$(message) {
  6712. return new A.StateError(message);
  6713. },
  6714. ConcurrentModificationError$(modifiedObject) {
  6715. return new A.ConcurrentModificationError(modifiedObject);
  6716. },
  6717. FormatException$(message, source, offset) {
  6718. return new A.FormatException(message, source, offset);
  6719. },
  6720. Iterable_Iterable$generate(count, generator, $E) {
  6721. if (count <= 0)
  6722. return new A.EmptyIterable($E._eval$1("EmptyIterable<0>"));
  6723. return new A._GeneratorIterable(count, generator, $E._eval$1("_GeneratorIterable<0>"));
  6724. },
  6725. Iterable_iterableToShortString(iterable, leftDelimiter, rightDelimiter) {
  6726. var parts, t1;
  6727. if (A.isToStringVisiting(iterable)) {
  6728. if (leftDelimiter === "(" && rightDelimiter === ")")
  6729. return "(...)";
  6730. return leftDelimiter + "..." + rightDelimiter;
  6731. }
  6732. parts = A._setArrayType([], type$.JSArray_String);
  6733. $.toStringVisiting.push(iterable);
  6734. try {
  6735. A._iterablePartsToStrings(iterable, parts);
  6736. } finally {
  6737. $.toStringVisiting.pop();
  6738. }
  6739. t1 = A.StringBuffer__writeAll(leftDelimiter, parts, ", ") + rightDelimiter;
  6740. return t1.charCodeAt(0) == 0 ? t1 : t1;
  6741. },
  6742. Iterable_iterableToFullString(iterable, leftDelimiter, rightDelimiter) {
  6743. var buffer, t1;
  6744. if (A.isToStringVisiting(iterable))
  6745. return leftDelimiter + "..." + rightDelimiter;
  6746. buffer = new A.StringBuffer(leftDelimiter);
  6747. $.toStringVisiting.push(iterable);
  6748. try {
  6749. t1 = buffer;
  6750. t1._contents = A.StringBuffer__writeAll(t1._contents, iterable, ", ");
  6751. } finally {
  6752. $.toStringVisiting.pop();
  6753. }
  6754. buffer._contents += rightDelimiter;
  6755. t1 = buffer._contents;
  6756. return t1.charCodeAt(0) == 0 ? t1 : t1;
  6757. },
  6758. _iterablePartsToStrings(iterable, parts) {
  6759. var next, ultimateString, penultimateString, penultimate, ultimate, ultimate0, elision,
  6760. it = iterable.get$iterator(iterable),
  6761. $length = 0, count = 0;
  6762. while (true) {
  6763. if (!($length < 80 || count < 3))
  6764. break;
  6765. if (!it.moveNext$0())
  6766. return;
  6767. next = A.S(it.get$current(it));
  6768. parts.push(next);
  6769. $length += next.length + 2;
  6770. ++count;
  6771. }
  6772. if (!it.moveNext$0()) {
  6773. if (count <= 5)
  6774. return;
  6775. ultimateString = parts.pop();
  6776. penultimateString = parts.pop();
  6777. } else {
  6778. penultimate = it.get$current(it);
  6779. ++count;
  6780. if (!it.moveNext$0()) {
  6781. if (count <= 4) {
  6782. parts.push(A.S(penultimate));
  6783. return;
  6784. }
  6785. ultimateString = A.S(penultimate);
  6786. penultimateString = parts.pop();
  6787. $length += ultimateString.length + 2;
  6788. } else {
  6789. ultimate = it.get$current(it);
  6790. ++count;
  6791. for (; it.moveNext$0(); penultimate = ultimate, ultimate = ultimate0) {
  6792. ultimate0 = it.get$current(it);
  6793. ++count;
  6794. if (count > 100) {
  6795. while (true) {
  6796. if (!($length > 75 && count > 3))
  6797. break;
  6798. $length -= parts.pop().length + 2;
  6799. --count;
  6800. }
  6801. parts.push("...");
  6802. return;
  6803. }
  6804. }
  6805. penultimateString = A.S(penultimate);
  6806. ultimateString = A.S(ultimate);
  6807. $length += ultimateString.length + penultimateString.length + 4;
  6808. }
  6809. }
  6810. if (count > parts.length + 2) {
  6811. $length += 5;
  6812. elision = "...";
  6813. } else
  6814. elision = null;
  6815. while (true) {
  6816. if (!($length > 80 && parts.length > 3))
  6817. break;
  6818. $length -= parts.pop().length + 2;
  6819. if (elision == null) {
  6820. $length += 5;
  6821. elision = "...";
  6822. }
  6823. }
  6824. if (elision != null)
  6825. parts.push(elision);
  6826. parts.push(penultimateString);
  6827. parts.push(ultimateString);
  6828. },
  6829. Map_castFrom(source, $K, $V, K2, V2) {
  6830. return new A.CastMap(source, $K._eval$1("@<0>")._bind$1($V)._bind$1(K2)._bind$1(V2)._eval$1("CastMap<1,2,3,4>"));
  6831. },
  6832. Object_hash(object1, object2, object3, object4) {
  6833. var t1;
  6834. if (B.C_SentinelValue === object3) {
  6835. t1 = J.get$hashCode$(object1);
  6836. object2 = J.get$hashCode$(object2);
  6837. return A.SystemHash_finish(A.SystemHash_combine(A.SystemHash_combine($.$get$_hashSeed(), t1), object2));
  6838. }
  6839. if (B.C_SentinelValue === object4) {
  6840. t1 = J.get$hashCode$(object1);
  6841. object2 = J.get$hashCode$(object2);
  6842. object3 = J.get$hashCode$(object3);
  6843. return A.SystemHash_finish(A.SystemHash_combine(A.SystemHash_combine(A.SystemHash_combine($.$get$_hashSeed(), t1), object2), object3));
  6844. }
  6845. t1 = J.get$hashCode$(object1);
  6846. object2 = J.get$hashCode$(object2);
  6847. object3 = J.get$hashCode$(object3);
  6848. object4 = J.get$hashCode$(object4);
  6849. object4 = A.SystemHash_finish(A.SystemHash_combine(A.SystemHash_combine(A.SystemHash_combine(A.SystemHash_combine($.$get$_hashSeed(), t1), object2), object3), object4));
  6850. return object4;
  6851. },
  6852. Object_hashAll(objects) {
  6853. var t1, _i,
  6854. hash = $.$get$_hashSeed();
  6855. for (t1 = objects.length, _i = 0; _i < objects.length; objects.length === t1 || (0, A.throwConcurrentModificationError)(objects), ++_i)
  6856. hash = A.SystemHash_combine(hash, J.get$hashCode$(objects[_i]));
  6857. return A.SystemHash_finish(hash);
  6858. },
  6859. print(object) {
  6860. var line = A.S(object),
  6861. toZone = $.printToZone;
  6862. if (toZone == null)
  6863. A.printString(line);
  6864. else
  6865. toZone.call$1(line);
  6866. },
  6867. Set_Set$unmodifiable(elements, $E) {
  6868. return new A.UnmodifiableSetView(A.LinkedHashSet_LinkedHashSet$of(elements, $E), $E._eval$1("UnmodifiableSetView<0>"));
  6869. },
  6870. Set_castFrom(source, newSet, $S, $T) {
  6871. return new A.CastSet(source, newSet, $S._eval$1("@<0>")._bind$1($T)._eval$1("CastSet<1,2>"));
  6872. },
  6873. _combineSurrogatePair(start, end) {
  6874. return 65536 + ((start & 1023) << 10) + (end & 1023);
  6875. },
  6876. Uri_Uri$dataFromString($content, encoding, mimeType) {
  6877. var encodingName, t1,
  6878. buffer = new A.StringBuffer(""),
  6879. indices = A._setArrayType([-1], type$.JSArray_int);
  6880. if (encoding == null)
  6881. encodingName = null;
  6882. else
  6883. encodingName = "utf-8";
  6884. if (encoding == null)
  6885. encoding = B.C_AsciiCodec;
  6886. A.UriData__writeUri(mimeType, encodingName, null, buffer, indices);
  6887. indices.push(buffer._contents.length);
  6888. buffer._contents += ",";
  6889. A.UriData__uriEncodeBytes(B.List_42A, encoding.encode$1($content), buffer);
  6890. t1 = buffer._contents;
  6891. return new A.UriData(t1.charCodeAt(0) == 0 ? t1 : t1, indices, null).get$uri();
  6892. },
  6893. Uri_parse(uri) {
  6894. var delta, indices, schemeEnd, hostStart, portStart, pathStart, queryStart, fragmentStart, isSimple, scheme, t1, t2, schemeAuth, queryStart0, pathStart0, port, userInfoStart, userInfo, host, portNumber, path, query, _null = null,
  6895. end = uri.length;
  6896. if (end >= 5) {
  6897. delta = ((uri.charCodeAt(4) ^ 58) * 3 | uri.charCodeAt(0) ^ 100 | uri.charCodeAt(1) ^ 97 | uri.charCodeAt(2) ^ 116 | uri.charCodeAt(3) ^ 97) >>> 0;
  6898. if (delta === 0)
  6899. return A.UriData__parse(end < end ? B.JSString_methods.substring$2(uri, 0, end) : uri, 5, _null).get$uri();
  6900. else if (delta === 32)
  6901. return A.UriData__parse(B.JSString_methods.substring$2(uri, 5, end), 0, _null).get$uri();
  6902. }
  6903. indices = A.List_List$filled(8, 0, false, type$.int);
  6904. indices[0] = 0;
  6905. indices[1] = -1;
  6906. indices[2] = -1;
  6907. indices[7] = -1;
  6908. indices[3] = 0;
  6909. indices[4] = 0;
  6910. indices[5] = end;
  6911. indices[6] = end;
  6912. if (A._scan(uri, 0, end, 0, indices) >= 14)
  6913. indices[7] = end;
  6914. schemeEnd = indices[1];
  6915. if (schemeEnd >= 0)
  6916. if (A._scan(uri, 0, schemeEnd, 20, indices) === 20)
  6917. indices[7] = schemeEnd;
  6918. hostStart = indices[2] + 1;
  6919. portStart = indices[3];
  6920. pathStart = indices[4];
  6921. queryStart = indices[5];
  6922. fragmentStart = indices[6];
  6923. if (fragmentStart < queryStart)
  6924. queryStart = fragmentStart;
  6925. if (pathStart < hostStart)
  6926. pathStart = queryStart;
  6927. else if (pathStart <= schemeEnd)
  6928. pathStart = schemeEnd + 1;
  6929. if (portStart < hostStart)
  6930. portStart = pathStart;
  6931. isSimple = indices[7] < 0;
  6932. scheme = _null;
  6933. if (isSimple) {
  6934. isSimple = false;
  6935. if (!(hostStart > schemeEnd + 3)) {
  6936. t1 = portStart > 0;
  6937. if (!(t1 && portStart + 1 === pathStart)) {
  6938. if (!B.JSString_methods.startsWith$2(uri, "\\", pathStart))
  6939. if (hostStart > 0)
  6940. t2 = B.JSString_methods.startsWith$2(uri, "\\", hostStart - 1) || B.JSString_methods.startsWith$2(uri, "\\", hostStart - 2);
  6941. else
  6942. t2 = false;
  6943. else
  6944. t2 = true;
  6945. if (!t2) {
  6946. if (!(queryStart < end && queryStart === pathStart + 2 && B.JSString_methods.startsWith$2(uri, "..", pathStart)))
  6947. t2 = queryStart > pathStart + 2 && B.JSString_methods.startsWith$2(uri, "/..", queryStart - 3);
  6948. else
  6949. t2 = true;
  6950. if (!t2)
  6951. if (schemeEnd === 4) {
  6952. if (B.JSString_methods.startsWith$2(uri, "file", 0)) {
  6953. if (hostStart <= 0) {
  6954. if (!B.JSString_methods.startsWith$2(uri, "/", pathStart)) {
  6955. schemeAuth = "file:///";
  6956. delta = 3;
  6957. } else {
  6958. schemeAuth = "file://";
  6959. delta = 2;
  6960. }
  6961. uri = schemeAuth + B.JSString_methods.substring$2(uri, pathStart, end);
  6962. queryStart += delta;
  6963. fragmentStart += delta;
  6964. end = uri.length;
  6965. hostStart = 7;
  6966. portStart = 7;
  6967. pathStart = 7;
  6968. } else if (pathStart === queryStart) {
  6969. ++fragmentStart;
  6970. queryStart0 = queryStart + 1;
  6971. uri = B.JSString_methods.replaceRange$3(uri, pathStart, queryStart, "/");
  6972. ++end;
  6973. queryStart = queryStart0;
  6974. }
  6975. scheme = "file";
  6976. } else if (B.JSString_methods.startsWith$2(uri, "http", 0)) {
  6977. if (t1 && portStart + 3 === pathStart && B.JSString_methods.startsWith$2(uri, "80", portStart + 1)) {
  6978. fragmentStart -= 3;
  6979. pathStart0 = pathStart - 3;
  6980. queryStart -= 3;
  6981. uri = B.JSString_methods.replaceRange$3(uri, portStart, pathStart, "");
  6982. end -= 3;
  6983. pathStart = pathStart0;
  6984. }
  6985. scheme = "http";
  6986. }
  6987. } else if (schemeEnd === 5 && B.JSString_methods.startsWith$2(uri, "https", 0)) {
  6988. if (t1 && portStart + 4 === pathStart && B.JSString_methods.startsWith$2(uri, "443", portStart + 1)) {
  6989. fragmentStart -= 4;
  6990. pathStart0 = pathStart - 4;
  6991. queryStart -= 4;
  6992. uri = B.JSString_methods.replaceRange$3(uri, portStart, pathStart, "");
  6993. end -= 3;
  6994. pathStart = pathStart0;
  6995. }
  6996. scheme = "https";
  6997. }
  6998. isSimple = !t2;
  6999. }
  7000. }
  7001. }
  7002. }
  7003. if (isSimple)
  7004. return new A._SimpleUri(end < uri.length ? B.JSString_methods.substring$2(uri, 0, end) : uri, schemeEnd, hostStart, portStart, pathStart, queryStart, fragmentStart, scheme);
  7005. if (scheme == null)
  7006. if (schemeEnd > 0)
  7007. scheme = A._Uri__makeScheme(uri, 0, schemeEnd);
  7008. else {
  7009. if (schemeEnd === 0)
  7010. A._Uri__fail(uri, 0, "Invalid empty scheme");
  7011. scheme = "";
  7012. }
  7013. port = _null;
  7014. if (hostStart > 0) {
  7015. userInfoStart = schemeEnd + 3;
  7016. userInfo = userInfoStart < hostStart ? A._Uri__makeUserInfo(uri, userInfoStart, hostStart - 1) : "";
  7017. host = A._Uri__makeHost(uri, hostStart, portStart, false);
  7018. t1 = portStart + 1;
  7019. if (t1 < pathStart) {
  7020. portNumber = A.Primitives_parseInt(B.JSString_methods.substring$2(uri, t1, pathStart), _null);
  7021. port = A._Uri__makePort(portNumber == null ? A.throwExpression(A.FormatException$("Invalid port", uri, t1)) : portNumber, scheme);
  7022. }
  7023. } else {
  7024. host = _null;
  7025. userInfo = "";
  7026. }
  7027. path = A._Uri__makePath(uri, pathStart, queryStart, _null, scheme, host != null);
  7028. query = queryStart < fragmentStart ? A._Uri__makeQuery(uri, queryStart + 1, fragmentStart, _null) : _null;
  7029. return A._Uri$_internal(scheme, userInfo, host, port, path, query, fragmentStart < end ? A._Uri__makeFragment(uri, fragmentStart + 1, end) : _null);
  7030. },
  7031. Uri_decodeComponent(encodedComponent) {
  7032. return A._Uri__uriDecode(encodedComponent, 0, encodedComponent.length, B.C_Utf8Codec, false);
  7033. },
  7034. Uri__parseIPv4Address(host, start, end) {
  7035. var i, partStart, partIndex, char, part, partIndex0,
  7036. _s43_ = "IPv4 address should contain exactly 4 parts",
  7037. _s37_ = "each part must be in the range 0..255",
  7038. error = new A.Uri__parseIPv4Address_error(host),
  7039. result = new Uint8Array(4);
  7040. for (i = start, partStart = i, partIndex = 0; i < end; ++i) {
  7041. char = host.charCodeAt(i);
  7042. if (char !== 46) {
  7043. if ((char ^ 48) > 9)
  7044. error.call$2("invalid character", i);
  7045. } else {
  7046. if (partIndex === 3)
  7047. error.call$2(_s43_, i);
  7048. part = A.int_parse(B.JSString_methods.substring$2(host, partStart, i), null);
  7049. if (part > 255)
  7050. error.call$2(_s37_, partStart);
  7051. partIndex0 = partIndex + 1;
  7052. result[partIndex] = part;
  7053. partStart = i + 1;
  7054. partIndex = partIndex0;
  7055. }
  7056. }
  7057. if (partIndex !== 3)
  7058. error.call$2(_s43_, end);
  7059. part = A.int_parse(B.JSString_methods.substring$2(host, partStart, end), null);
  7060. if (part > 255)
  7061. error.call$2(_s37_, partStart);
  7062. result[partIndex] = part;
  7063. return result;
  7064. },
  7065. Uri_parseIPv6Address(host, start, end) {
  7066. var parts, i, partStart, wildcardSeen, seenDot, char, atEnd, t1, last, bytes, wildCardLength, index, value, j, _null = null,
  7067. error = new A.Uri_parseIPv6Address_error(host),
  7068. parseHex = new A.Uri_parseIPv6Address_parseHex(error, host);
  7069. if (host.length < 2)
  7070. error.call$2("address is too short", _null);
  7071. parts = A._setArrayType([], type$.JSArray_int);
  7072. for (i = start, partStart = i, wildcardSeen = false, seenDot = false; i < end; ++i) {
  7073. char = host.charCodeAt(i);
  7074. if (char === 58) {
  7075. if (i === start) {
  7076. ++i;
  7077. if (host.charCodeAt(i) !== 58)
  7078. error.call$2("invalid start colon.", i);
  7079. partStart = i;
  7080. }
  7081. if (i === partStart) {
  7082. if (wildcardSeen)
  7083. error.call$2("only one wildcard `::` is allowed", i);
  7084. parts.push(-1);
  7085. wildcardSeen = true;
  7086. } else
  7087. parts.push(parseHex.call$2(partStart, i));
  7088. partStart = i + 1;
  7089. } else if (char === 46)
  7090. seenDot = true;
  7091. }
  7092. if (parts.length === 0)
  7093. error.call$2("too few parts", _null);
  7094. atEnd = partStart === end;
  7095. t1 = B.JSArray_methods.get$last(parts);
  7096. if (atEnd && t1 !== -1)
  7097. error.call$2("expected a part after last `:`", end);
  7098. if (!atEnd)
  7099. if (!seenDot)
  7100. parts.push(parseHex.call$2(partStart, end));
  7101. else {
  7102. last = A.Uri__parseIPv4Address(host, partStart, end);
  7103. parts.push((last[0] << 8 | last[1]) >>> 0);
  7104. parts.push((last[2] << 8 | last[3]) >>> 0);
  7105. }
  7106. if (wildcardSeen) {
  7107. if (parts.length > 7)
  7108. error.call$2("an address with a wildcard must have less than 7 parts", _null);
  7109. } else if (parts.length !== 8)
  7110. error.call$2("an address without a wildcard must contain exactly 8 parts", _null);
  7111. bytes = new Uint8Array(16);
  7112. for (t1 = parts.length, wildCardLength = 9 - t1, i = 0, index = 0; i < t1; ++i) {
  7113. value = parts[i];
  7114. if (value === -1)
  7115. for (j = 0; j < wildCardLength; ++j) {
  7116. bytes[index] = 0;
  7117. bytes[index + 1] = 0;
  7118. index += 2;
  7119. }
  7120. else {
  7121. bytes[index] = B.JSInt_methods._shrOtherPositive$1(value, 8);
  7122. bytes[index + 1] = value & 255;
  7123. index += 2;
  7124. }
  7125. }
  7126. return bytes;
  7127. },
  7128. _Uri$_internal(scheme, _userInfo, _host, _port, path, _query, _fragment) {
  7129. return new A._Uri(scheme, _userInfo, _host, _port, path, _query, _fragment);
  7130. },
  7131. _Uri__Uri(host, path, pathSegments, scheme) {
  7132. var userInfo, query, fragment, port, isFile, t1, hasAuthority, t2, _null = null;
  7133. scheme = scheme == null ? "" : A._Uri__makeScheme(scheme, 0, scheme.length);
  7134. userInfo = A._Uri__makeUserInfo(_null, 0, 0);
  7135. host = A._Uri__makeHost(host, 0, host == null ? 0 : host.length, false);
  7136. query = A._Uri__makeQuery(_null, 0, 0, _null);
  7137. fragment = A._Uri__makeFragment(_null, 0, 0);
  7138. port = A._Uri__makePort(_null, scheme);
  7139. isFile = scheme === "file";
  7140. if (host == null)
  7141. t1 = userInfo.length !== 0 || port != null || isFile;
  7142. else
  7143. t1 = false;
  7144. if (t1)
  7145. host = "";
  7146. t1 = host == null;
  7147. hasAuthority = !t1;
  7148. path = A._Uri__makePath(path, 0, path == null ? 0 : path.length, pathSegments, scheme, hasAuthority);
  7149. t2 = scheme.length === 0;
  7150. if (t2 && t1 && !B.JSString_methods.startsWith$1(path, "/"))
  7151. path = A._Uri__normalizeRelativePath(path, !t2 || hasAuthority);
  7152. else
  7153. path = A._Uri__removeDotSegments(path);
  7154. return A._Uri$_internal(scheme, userInfo, t1 && B.JSString_methods.startsWith$1(path, "//") ? "" : host, port, path, query, fragment);
  7155. },
  7156. _Uri__defaultPort(scheme) {
  7157. if (scheme === "http")
  7158. return 80;
  7159. if (scheme === "https")
  7160. return 443;
  7161. return 0;
  7162. },
  7163. _Uri__fail(uri, index, message) {
  7164. throw A.wrapException(A.FormatException$(message, uri, index));
  7165. },
  7166. _Uri__Uri$file(path, windows) {
  7167. return windows ? A._Uri__makeWindowsFileUrl(path, false) : A._Uri__makeFileUri(path, false);
  7168. },
  7169. _Uri__checkNonWindowsPathReservedCharacters(segments, argumentError) {
  7170. var t1, _i, segment, t2, t3;
  7171. for (t1 = segments.length, _i = 0; _i < t1; ++_i) {
  7172. segment = segments[_i];
  7173. t2 = J.getInterceptor$asx(segment);
  7174. t3 = t2.get$length(segment);
  7175. if (0 > t3)
  7176. A.throwExpression(A.RangeError$range(0, 0, t2.get$length(segment), null, null));
  7177. if (A.stringContainsUnchecked(segment, "/", 0)) {
  7178. t1 = A.UnsupportedError$("Illegal path character " + A.S(segment));
  7179. throw A.wrapException(t1);
  7180. }
  7181. }
  7182. },
  7183. _Uri__checkWindowsPathReservedCharacters(segments, argumentError, firstSegment) {
  7184. var t1, t2, t3, t4;
  7185. for (t1 = A.SubListIterable$(segments, firstSegment, null, A._arrayInstanceType(segments)._precomputed1), t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListIterable.E>")), t2 = t2._eval$1("ListIterable.E"); t1.moveNext$0();) {
  7186. t3 = t1.__internal$_current;
  7187. if (t3 == null)
  7188. t3 = t2._as(t3);
  7189. t4 = A.RegExp_RegExp('["*/:<>?\\\\|]', false);
  7190. if (A.stringContainsUnchecked(t3, t4, 0))
  7191. if (argumentError)
  7192. throw A.wrapException(A.ArgumentError$("Illegal character in path", null));
  7193. else
  7194. throw A.wrapException(A.UnsupportedError$("Illegal character in path: " + t3));
  7195. }
  7196. },
  7197. _Uri__checkWindowsDriveLetter(charCode, argumentError) {
  7198. var t1,
  7199. _s21_ = "Illegal drive letter ";
  7200. if (!(65 <= charCode && charCode <= 90))
  7201. t1 = 97 <= charCode && charCode <= 122;
  7202. else
  7203. t1 = true;
  7204. if (t1)
  7205. return;
  7206. if (argumentError)
  7207. throw A.wrapException(A.ArgumentError$(_s21_ + A.String_String$fromCharCode(charCode), null));
  7208. else
  7209. throw A.wrapException(A.UnsupportedError$(_s21_ + A.String_String$fromCharCode(charCode)));
  7210. },
  7211. _Uri__makeFileUri(path, slashTerminated) {
  7212. var _null = null,
  7213. segments = A._setArrayType(path.split("/"), type$.JSArray_String);
  7214. if (B.JSString_methods.startsWith$1(path, "/"))
  7215. return A._Uri__Uri(_null, _null, segments, "file");
  7216. else
  7217. return A._Uri__Uri(_null, _null, segments, _null);
  7218. },
  7219. _Uri__makeWindowsFileUrl(path, slashTerminated) {
  7220. var t1, pathSegments, pathStart, hostPart, _s1_ = "\\", _null = null, _s4_ = "file";
  7221. if (B.JSString_methods.startsWith$1(path, "\\\\?\\"))
  7222. if (B.JSString_methods.startsWith$2(path, "UNC\\", 4))
  7223. path = B.JSString_methods.replaceRange$3(path, 0, 7, _s1_);
  7224. else {
  7225. path = B.JSString_methods.substring$1(path, 4);
  7226. if (path.length < 3 || path.charCodeAt(1) !== 58 || path.charCodeAt(2) !== 92)
  7227. throw A.wrapException(A.ArgumentError$value(path, "path", "Windows paths with \\\\?\\ prefix must be absolute"));
  7228. }
  7229. else
  7230. path = A.stringReplaceAllUnchecked(path, "/", _s1_);
  7231. t1 = path.length;
  7232. if (t1 > 1 && path.charCodeAt(1) === 58) {
  7233. A._Uri__checkWindowsDriveLetter(path.charCodeAt(0), true);
  7234. if (t1 === 2 || path.charCodeAt(2) !== 92)
  7235. throw A.wrapException(A.ArgumentError$value(path, "path", "Windows paths with drive letter must be absolute"));
  7236. pathSegments = A._setArrayType(path.split(_s1_), type$.JSArray_String);
  7237. A._Uri__checkWindowsPathReservedCharacters(pathSegments, true, 1);
  7238. return A._Uri__Uri(_null, _null, pathSegments, _s4_);
  7239. }
  7240. if (B.JSString_methods.startsWith$1(path, _s1_))
  7241. if (B.JSString_methods.startsWith$2(path, _s1_, 1)) {
  7242. pathStart = B.JSString_methods.indexOf$2(path, _s1_, 2);
  7243. t1 = pathStart < 0;
  7244. hostPart = t1 ? B.JSString_methods.substring$1(path, 2) : B.JSString_methods.substring$2(path, 2, pathStart);
  7245. pathSegments = A._setArrayType((t1 ? "" : B.JSString_methods.substring$1(path, pathStart + 1)).split(_s1_), type$.JSArray_String);
  7246. A._Uri__checkWindowsPathReservedCharacters(pathSegments, true, 0);
  7247. return A._Uri__Uri(hostPart, _null, pathSegments, _s4_);
  7248. } else {
  7249. pathSegments = A._setArrayType(path.split(_s1_), type$.JSArray_String);
  7250. A._Uri__checkWindowsPathReservedCharacters(pathSegments, true, 0);
  7251. return A._Uri__Uri(_null, _null, pathSegments, _s4_);
  7252. }
  7253. else {
  7254. pathSegments = A._setArrayType(path.split(_s1_), type$.JSArray_String);
  7255. A._Uri__checkWindowsPathReservedCharacters(pathSegments, true, 0);
  7256. return A._Uri__Uri(_null, _null, pathSegments, _null);
  7257. }
  7258. },
  7259. _Uri__makePort(port, scheme) {
  7260. if (port != null && port === A._Uri__defaultPort(scheme))
  7261. return null;
  7262. return port;
  7263. },
  7264. _Uri__makeHost(host, start, end, strictIPv6) {
  7265. var t1, t2, index, zoneIDstart, zoneID, i;
  7266. if (host == null)
  7267. return null;
  7268. if (start === end)
  7269. return "";
  7270. if (host.charCodeAt(start) === 91) {
  7271. t1 = end - 1;
  7272. if (host.charCodeAt(t1) !== 93)
  7273. A._Uri__fail(host, start, "Missing end `]` to match `[` in host");
  7274. t2 = start + 1;
  7275. index = A._Uri__checkZoneID(host, t2, t1);
  7276. if (index < t1) {
  7277. zoneIDstart = index + 1;
  7278. zoneID = A._Uri__normalizeZoneID(host, B.JSString_methods.startsWith$2(host, "25", zoneIDstart) ? index + 3 : zoneIDstart, t1, "%25");
  7279. } else
  7280. zoneID = "";
  7281. A.Uri_parseIPv6Address(host, t2, index);
  7282. return B.JSString_methods.substring$2(host, start, index).toLowerCase() + zoneID + "]";
  7283. }
  7284. for (i = start; i < end; ++i)
  7285. if (host.charCodeAt(i) === 58) {
  7286. index = B.JSString_methods.indexOf$2(host, "%", start);
  7287. index = index >= start && index < end ? index : end;
  7288. if (index < end) {
  7289. zoneIDstart = index + 1;
  7290. zoneID = A._Uri__normalizeZoneID(host, B.JSString_methods.startsWith$2(host, "25", zoneIDstart) ? index + 3 : zoneIDstart, end, "%25");
  7291. } else
  7292. zoneID = "";
  7293. A.Uri_parseIPv6Address(host, start, index);
  7294. return "[" + B.JSString_methods.substring$2(host, start, index) + zoneID + "]";
  7295. }
  7296. return A._Uri__normalizeRegName(host, start, end);
  7297. },
  7298. _Uri__checkZoneID(host, start, end) {
  7299. var index = B.JSString_methods.indexOf$2(host, "%", start);
  7300. return index >= start && index < end ? index : end;
  7301. },
  7302. _Uri__normalizeZoneID(host, start, end, prefix) {
  7303. var index, sectionStart, isNormalized, char, replacement, t1, t2, sourceLength, tail, slice,
  7304. buffer = prefix !== "" ? new A.StringBuffer(prefix) : null;
  7305. for (index = start, sectionStart = index, isNormalized = true; index < end;) {
  7306. char = host.charCodeAt(index);
  7307. if (char === 37) {
  7308. replacement = A._Uri__normalizeEscape(host, index, true);
  7309. t1 = replacement == null;
  7310. if (t1 && isNormalized) {
  7311. index += 3;
  7312. continue;
  7313. }
  7314. if (buffer == null)
  7315. buffer = new A.StringBuffer("");
  7316. t2 = buffer._contents += B.JSString_methods.substring$2(host, sectionStart, index);
  7317. if (t1)
  7318. replacement = B.JSString_methods.substring$2(host, index, index + 3);
  7319. else if (replacement === "%")
  7320. A._Uri__fail(host, index, "ZoneID should not contain % anymore");
  7321. buffer._contents = t2 + replacement;
  7322. index += 3;
  7323. sectionStart = index;
  7324. isNormalized = true;
  7325. } else if (char < 127 && (B.List_piR[char >>> 4] & 1 << (char & 15)) !== 0) {
  7326. if (isNormalized && 65 <= char && 90 >= char) {
  7327. if (buffer == null)
  7328. buffer = new A.StringBuffer("");
  7329. if (sectionStart < index) {
  7330. buffer._contents += B.JSString_methods.substring$2(host, sectionStart, index);
  7331. sectionStart = index;
  7332. }
  7333. isNormalized = false;
  7334. }
  7335. ++index;
  7336. } else {
  7337. sourceLength = 1;
  7338. if ((char & 64512) === 55296 && index + 1 < end) {
  7339. tail = host.charCodeAt(index + 1);
  7340. if ((tail & 64512) === 56320) {
  7341. char = (char & 1023) << 10 | tail & 1023 | 65536;
  7342. sourceLength = 2;
  7343. }
  7344. }
  7345. slice = B.JSString_methods.substring$2(host, sectionStart, index);
  7346. if (buffer == null) {
  7347. buffer = new A.StringBuffer("");
  7348. t1 = buffer;
  7349. } else
  7350. t1 = buffer;
  7351. t1._contents += slice;
  7352. t2 = A._Uri__escapeChar(char);
  7353. t1._contents += t2;
  7354. index += sourceLength;
  7355. sectionStart = index;
  7356. }
  7357. }
  7358. if (buffer == null)
  7359. return B.JSString_methods.substring$2(host, start, end);
  7360. if (sectionStart < end) {
  7361. slice = B.JSString_methods.substring$2(host, sectionStart, end);
  7362. buffer._contents += slice;
  7363. }
  7364. t1 = buffer._contents;
  7365. return t1.charCodeAt(0) == 0 ? t1 : t1;
  7366. },
  7367. _Uri__normalizeRegName(host, start, end) {
  7368. var index, sectionStart, buffer, isNormalized, char, replacement, t1, slice, t2, sourceLength, tail;
  7369. for (index = start, sectionStart = index, buffer = null, isNormalized = true; index < end;) {
  7370. char = host.charCodeAt(index);
  7371. if (char === 37) {
  7372. replacement = A._Uri__normalizeEscape(host, index, true);
  7373. t1 = replacement == null;
  7374. if (t1 && isNormalized) {
  7375. index += 3;
  7376. continue;
  7377. }
  7378. if (buffer == null)
  7379. buffer = new A.StringBuffer("");
  7380. slice = B.JSString_methods.substring$2(host, sectionStart, index);
  7381. if (!isNormalized)
  7382. slice = slice.toLowerCase();
  7383. t2 = buffer._contents += slice;
  7384. sourceLength = 3;
  7385. if (t1)
  7386. replacement = B.JSString_methods.substring$2(host, index, index + 3);
  7387. else if (replacement === "%") {
  7388. replacement = "%25";
  7389. sourceLength = 1;
  7390. }
  7391. buffer._contents = t2 + replacement;
  7392. index += sourceLength;
  7393. sectionStart = index;
  7394. isNormalized = true;
  7395. } else if (char < 127 && (B.List_4AN[char >>> 4] & 1 << (char & 15)) !== 0) {
  7396. if (isNormalized && 65 <= char && 90 >= char) {
  7397. if (buffer == null)
  7398. buffer = new A.StringBuffer("");
  7399. if (sectionStart < index) {
  7400. buffer._contents += B.JSString_methods.substring$2(host, sectionStart, index);
  7401. sectionStart = index;
  7402. }
  7403. isNormalized = false;
  7404. }
  7405. ++index;
  7406. } else if (char <= 93 && (B.List_VOY[char >>> 4] & 1 << (char & 15)) !== 0)
  7407. A._Uri__fail(host, index, "Invalid character");
  7408. else {
  7409. sourceLength = 1;
  7410. if ((char & 64512) === 55296 && index + 1 < end) {
  7411. tail = host.charCodeAt(index + 1);
  7412. if ((tail & 64512) === 56320) {
  7413. char = (char & 1023) << 10 | tail & 1023 | 65536;
  7414. sourceLength = 2;
  7415. }
  7416. }
  7417. slice = B.JSString_methods.substring$2(host, sectionStart, index);
  7418. if (!isNormalized)
  7419. slice = slice.toLowerCase();
  7420. if (buffer == null) {
  7421. buffer = new A.StringBuffer("");
  7422. t1 = buffer;
  7423. } else
  7424. t1 = buffer;
  7425. t1._contents += slice;
  7426. t2 = A._Uri__escapeChar(char);
  7427. t1._contents += t2;
  7428. index += sourceLength;
  7429. sectionStart = index;
  7430. }
  7431. }
  7432. if (buffer == null)
  7433. return B.JSString_methods.substring$2(host, start, end);
  7434. if (sectionStart < end) {
  7435. slice = B.JSString_methods.substring$2(host, sectionStart, end);
  7436. if (!isNormalized)
  7437. slice = slice.toLowerCase();
  7438. buffer._contents += slice;
  7439. }
  7440. t1 = buffer._contents;
  7441. return t1.charCodeAt(0) == 0 ? t1 : t1;
  7442. },
  7443. _Uri__makeScheme(scheme, start, end) {
  7444. var i, containsUpperCase, codeUnit;
  7445. if (start === end)
  7446. return "";
  7447. if (!A._Uri__isAlphabeticCharacter(scheme.charCodeAt(start)))
  7448. A._Uri__fail(scheme, start, "Scheme not starting with alphabetic character");
  7449. for (i = start, containsUpperCase = false; i < end; ++i) {
  7450. codeUnit = scheme.charCodeAt(i);
  7451. if (!(codeUnit < 128 && (B.List_GVy[codeUnit >>> 4] & 1 << (codeUnit & 15)) !== 0))
  7452. A._Uri__fail(scheme, i, "Illegal scheme character");
  7453. if (65 <= codeUnit && codeUnit <= 90)
  7454. containsUpperCase = true;
  7455. }
  7456. scheme = B.JSString_methods.substring$2(scheme, start, end);
  7457. return A._Uri__canonicalizeScheme(containsUpperCase ? scheme.toLowerCase() : scheme);
  7458. },
  7459. _Uri__canonicalizeScheme(scheme) {
  7460. if (scheme === "http")
  7461. return "http";
  7462. if (scheme === "file")
  7463. return "file";
  7464. if (scheme === "https")
  7465. return "https";
  7466. if (scheme === "package")
  7467. return "package";
  7468. return scheme;
  7469. },
  7470. _Uri__makeUserInfo(userInfo, start, end) {
  7471. if (userInfo == null)
  7472. return "";
  7473. return A._Uri__normalizeOrSubstring(userInfo, start, end, B.List_2jN, false, false);
  7474. },
  7475. _Uri__makePath(path, start, end, pathSegments, scheme, hasAuthority) {
  7476. var result,
  7477. isFile = scheme === "file",
  7478. ensureLeadingSlash = isFile || hasAuthority;
  7479. if (path == null) {
  7480. if (pathSegments == null)
  7481. return isFile ? "/" : "";
  7482. result = new A.MappedListIterable(pathSegments, new A._Uri__makePath_closure(), A._arrayInstanceType(pathSegments)._eval$1("MappedListIterable<1,String>")).join$1(0, "/");
  7483. } else if (pathSegments != null)
  7484. throw A.wrapException(A.ArgumentError$("Both path and pathSegments specified", null));
  7485. else
  7486. result = A._Uri__normalizeOrSubstring(path, start, end, B.List_M2I, true, true);
  7487. if (result.length === 0) {
  7488. if (isFile)
  7489. return "/";
  7490. } else if (ensureLeadingSlash && !B.JSString_methods.startsWith$1(result, "/"))
  7491. result = "/" + result;
  7492. return A._Uri__normalizePath(result, scheme, hasAuthority);
  7493. },
  7494. _Uri__normalizePath(path, scheme, hasAuthority) {
  7495. var t1 = scheme.length === 0;
  7496. if (t1 && !hasAuthority && !B.JSString_methods.startsWith$1(path, "/") && !B.JSString_methods.startsWith$1(path, "\\"))
  7497. return A._Uri__normalizeRelativePath(path, !t1 || hasAuthority);
  7498. return A._Uri__removeDotSegments(path);
  7499. },
  7500. _Uri__makeQuery(query, start, end, queryParameters) {
  7501. if (query != null)
  7502. return A._Uri__normalizeOrSubstring(query, start, end, B.List_42A, true, false);
  7503. return null;
  7504. },
  7505. _Uri__makeFragment(fragment, start, end) {
  7506. if (fragment == null)
  7507. return null;
  7508. return A._Uri__normalizeOrSubstring(fragment, start, end, B.List_42A, true, false);
  7509. },
  7510. _Uri__normalizeEscape(source, index, lowerCase) {
  7511. var firstDigit, secondDigit, firstDigitValue, secondDigitValue, value,
  7512. t1 = index + 2;
  7513. if (t1 >= source.length)
  7514. return "%";
  7515. firstDigit = source.charCodeAt(index + 1);
  7516. secondDigit = source.charCodeAt(t1);
  7517. firstDigitValue = A.hexDigitValue(firstDigit);
  7518. secondDigitValue = A.hexDigitValue(secondDigit);
  7519. if (firstDigitValue < 0 || secondDigitValue < 0)
  7520. return "%";
  7521. value = firstDigitValue * 16 + secondDigitValue;
  7522. if (value < 127 && (B.List_piR[B.JSInt_methods._shrOtherPositive$1(value, 4)] & 1 << (value & 15)) !== 0)
  7523. return A.Primitives_stringFromCharCode(lowerCase && 65 <= value && 90 >= value ? (value | 32) >>> 0 : value);
  7524. if (firstDigit >= 97 || secondDigit >= 97)
  7525. return B.JSString_methods.substring$2(source, index, index + 3).toUpperCase();
  7526. return null;
  7527. },
  7528. _Uri__escapeChar(char) {
  7529. var codeUnits, flag, encodedBytes, index, byte,
  7530. _s16_ = "0123456789ABCDEF";
  7531. if (char < 128) {
  7532. codeUnits = new Uint8Array(3);
  7533. codeUnits[0] = 37;
  7534. codeUnits[1] = _s16_.charCodeAt(char >>> 4);
  7535. codeUnits[2] = _s16_.charCodeAt(char & 15);
  7536. } else {
  7537. if (char > 2047)
  7538. if (char > 65535) {
  7539. flag = 240;
  7540. encodedBytes = 4;
  7541. } else {
  7542. flag = 224;
  7543. encodedBytes = 3;
  7544. }
  7545. else {
  7546. flag = 192;
  7547. encodedBytes = 2;
  7548. }
  7549. codeUnits = new Uint8Array(3 * encodedBytes);
  7550. for (index = 0; --encodedBytes, encodedBytes >= 0; flag = 128) {
  7551. byte = B.JSInt_methods._shrReceiverPositive$1(char, 6 * encodedBytes) & 63 | flag;
  7552. codeUnits[index] = 37;
  7553. codeUnits[index + 1] = _s16_.charCodeAt(byte >>> 4);
  7554. codeUnits[index + 2] = _s16_.charCodeAt(byte & 15);
  7555. index += 3;
  7556. }
  7557. }
  7558. return A.String_String$fromCharCodes(codeUnits, 0, null);
  7559. },
  7560. _Uri__normalizeOrSubstring(component, start, end, charTable, escapeDelimiters, replaceBackslash) {
  7561. var t1 = A._Uri__normalize(component, start, end, charTable, escapeDelimiters, replaceBackslash);
  7562. return t1 == null ? B.JSString_methods.substring$2(component, start, end) : t1;
  7563. },
  7564. _Uri__normalize(component, start, end, charTable, escapeDelimiters, replaceBackslash) {
  7565. var t1, index, sectionStart, buffer, char, sourceLength, replacement, t2, tail, t3, _null = null;
  7566. for (t1 = !escapeDelimiters, index = start, sectionStart = index, buffer = _null; index < end;) {
  7567. char = component.charCodeAt(index);
  7568. if (char < 127 && (charTable[char >>> 4] & 1 << (char & 15)) !== 0)
  7569. ++index;
  7570. else {
  7571. sourceLength = 1;
  7572. if (char === 37) {
  7573. replacement = A._Uri__normalizeEscape(component, index, false);
  7574. if (replacement == null) {
  7575. index += 3;
  7576. continue;
  7577. }
  7578. if ("%" === replacement)
  7579. replacement = "%25";
  7580. else
  7581. sourceLength = 3;
  7582. } else if (char === 92 && replaceBackslash)
  7583. replacement = "/";
  7584. else if (t1 && char <= 93 && (B.List_VOY[char >>> 4] & 1 << (char & 15)) !== 0) {
  7585. A._Uri__fail(component, index, "Invalid character");
  7586. sourceLength = _null;
  7587. replacement = sourceLength;
  7588. } else {
  7589. if ((char & 64512) === 55296) {
  7590. t2 = index + 1;
  7591. if (t2 < end) {
  7592. tail = component.charCodeAt(t2);
  7593. if ((tail & 64512) === 56320) {
  7594. char = (char & 1023) << 10 | tail & 1023 | 65536;
  7595. sourceLength = 2;
  7596. }
  7597. }
  7598. }
  7599. replacement = A._Uri__escapeChar(char);
  7600. }
  7601. if (buffer == null) {
  7602. buffer = new A.StringBuffer("");
  7603. t2 = buffer;
  7604. } else
  7605. t2 = buffer;
  7606. t3 = t2._contents += B.JSString_methods.substring$2(component, sectionStart, index);
  7607. t2._contents = t3 + A.S(replacement);
  7608. index += sourceLength;
  7609. sectionStart = index;
  7610. }
  7611. }
  7612. if (buffer == null)
  7613. return _null;
  7614. if (sectionStart < end) {
  7615. t1 = B.JSString_methods.substring$2(component, sectionStart, end);
  7616. buffer._contents += t1;
  7617. }
  7618. t1 = buffer._contents;
  7619. return t1.charCodeAt(0) == 0 ? t1 : t1;
  7620. },
  7621. _Uri__mayContainDotSegments(path) {
  7622. if (B.JSString_methods.startsWith$1(path, "."))
  7623. return true;
  7624. return B.JSString_methods.indexOf$1(path, "/.") !== -1;
  7625. },
  7626. _Uri__removeDotSegments(path) {
  7627. var output, t1, t2, appendSlash, _i, segment;
  7628. if (!A._Uri__mayContainDotSegments(path))
  7629. return path;
  7630. output = A._setArrayType([], type$.JSArray_String);
  7631. for (t1 = path.split("/"), t2 = t1.length, appendSlash = false, _i = 0; _i < t2; ++_i) {
  7632. segment = t1[_i];
  7633. if (J.$eq$(segment, "..")) {
  7634. if (output.length !== 0) {
  7635. output.pop();
  7636. if (output.length === 0)
  7637. output.push("");
  7638. }
  7639. appendSlash = true;
  7640. } else {
  7641. appendSlash = "." === segment;
  7642. if (!appendSlash)
  7643. output.push(segment);
  7644. }
  7645. }
  7646. if (appendSlash)
  7647. output.push("");
  7648. return B.JSArray_methods.join$1(output, "/");
  7649. },
  7650. _Uri__normalizeRelativePath(path, allowScheme) {
  7651. var output, t1, t2, appendSlash, _i, segment;
  7652. if (!A._Uri__mayContainDotSegments(path))
  7653. return !allowScheme ? A._Uri__escapeScheme(path) : path;
  7654. output = A._setArrayType([], type$.JSArray_String);
  7655. for (t1 = path.split("/"), t2 = t1.length, appendSlash = false, _i = 0; _i < t2; ++_i) {
  7656. segment = t1[_i];
  7657. if (".." === segment) {
  7658. appendSlash = output.length !== 0 && B.JSArray_methods.get$last(output) !== "..";
  7659. if (appendSlash)
  7660. output.pop();
  7661. else
  7662. output.push("..");
  7663. } else {
  7664. appendSlash = "." === segment;
  7665. if (!appendSlash)
  7666. output.push(segment);
  7667. }
  7668. }
  7669. t1 = output.length;
  7670. if (t1 !== 0)
  7671. t1 = t1 === 1 && output[0].length === 0;
  7672. else
  7673. t1 = true;
  7674. if (t1)
  7675. return "./";
  7676. if (appendSlash || B.JSArray_methods.get$last(output) === "..")
  7677. output.push("");
  7678. if (!allowScheme)
  7679. output[0] = A._Uri__escapeScheme(output[0]);
  7680. return B.JSArray_methods.join$1(output, "/");
  7681. },
  7682. _Uri__escapeScheme(path) {
  7683. var i, char,
  7684. t1 = path.length;
  7685. if (t1 >= 2 && A._Uri__isAlphabeticCharacter(path.charCodeAt(0)))
  7686. for (i = 1; i < t1; ++i) {
  7687. char = path.charCodeAt(i);
  7688. if (char === 58)
  7689. return B.JSString_methods.substring$2(path, 0, i) + "%3A" + B.JSString_methods.substring$1(path, i + 1);
  7690. if (char > 127 || (B.List_GVy[char >>> 4] & 1 << (char & 15)) === 0)
  7691. break;
  7692. }
  7693. return path;
  7694. },
  7695. _Uri__packageNameEnd(uri, path) {
  7696. if (uri.isScheme$1("package") && uri._host == null)
  7697. return A._skipPackageNameChars(path, 0, path.length);
  7698. return -1;
  7699. },
  7700. _Uri__toWindowsFilePath(uri) {
  7701. var t2, host,
  7702. segments = uri.get$pathSegments(),
  7703. t1 = segments.length,
  7704. hasDriveLetter = t1 > 0 && J.get$length$asx(segments[0]) === 2 && J.codeUnitAt$1$s(segments[0], 1) === 58;
  7705. if (hasDriveLetter) {
  7706. A._Uri__checkWindowsDriveLetter(J.codeUnitAt$1$s(segments[0], 0), false);
  7707. A._Uri__checkWindowsPathReservedCharacters(segments, false, 1);
  7708. } else
  7709. A._Uri__checkWindowsPathReservedCharacters(segments, false, 0);
  7710. t2 = uri.get$hasAbsolutePath() && !hasDriveLetter ? "" + "\\" : "";
  7711. if (uri.get$hasAuthority()) {
  7712. host = uri.get$host();
  7713. if (host.length !== 0)
  7714. t2 = t2 + "\\" + host + "\\";
  7715. }
  7716. t2 = A.StringBuffer__writeAll(t2, segments, "\\");
  7717. t1 = hasDriveLetter && t1 === 1 ? t2 + "\\" : t2;
  7718. return t1.charCodeAt(0) == 0 ? t1 : t1;
  7719. },
  7720. _Uri__hexCharPairToByte(s, pos) {
  7721. var byte, i, charCode;
  7722. for (byte = 0, i = 0; i < 2; ++i) {
  7723. charCode = s.charCodeAt(pos + i);
  7724. if (48 <= charCode && charCode <= 57)
  7725. byte = byte * 16 + charCode - 48;
  7726. else {
  7727. charCode |= 32;
  7728. if (97 <= charCode && charCode <= 102)
  7729. byte = byte * 16 + charCode - 87;
  7730. else
  7731. throw A.wrapException(A.ArgumentError$("Invalid URL encoding", null));
  7732. }
  7733. }
  7734. return byte;
  7735. },
  7736. _Uri__uriDecode(text, start, end, encoding, plusToSpace) {
  7737. var simple, codeUnit, t1, bytes,
  7738. i = start;
  7739. while (true) {
  7740. if (!(i < end)) {
  7741. simple = true;
  7742. break;
  7743. }
  7744. codeUnit = text.charCodeAt(i);
  7745. if (codeUnit <= 127)
  7746. t1 = codeUnit === 37;
  7747. else
  7748. t1 = true;
  7749. if (t1) {
  7750. simple = false;
  7751. break;
  7752. }
  7753. ++i;
  7754. }
  7755. if (simple)
  7756. if (B.C_Utf8Codec === encoding)
  7757. return B.JSString_methods.substring$2(text, start, end);
  7758. else
  7759. bytes = new A.CodeUnits(B.JSString_methods.substring$2(text, start, end));
  7760. else {
  7761. bytes = A._setArrayType([], type$.JSArray_int);
  7762. for (t1 = text.length, i = start; i < end; ++i) {
  7763. codeUnit = text.charCodeAt(i);
  7764. if (codeUnit > 127)
  7765. throw A.wrapException(A.ArgumentError$("Illegal percent encoding in URI", null));
  7766. if (codeUnit === 37) {
  7767. if (i + 3 > t1)
  7768. throw A.wrapException(A.ArgumentError$("Truncated URI", null));
  7769. bytes.push(A._Uri__hexCharPairToByte(text, i + 1));
  7770. i += 2;
  7771. } else
  7772. bytes.push(codeUnit);
  7773. }
  7774. }
  7775. return B.Utf8Decoder_false.convert$1(bytes);
  7776. },
  7777. _Uri__isAlphabeticCharacter(codeUnit) {
  7778. var lowerCase = codeUnit | 32;
  7779. return 97 <= lowerCase && lowerCase <= 122;
  7780. },
  7781. UriData__writeUri(mimeType, charsetName, parameters, buffer, indices) {
  7782. var t1, slashIndex;
  7783. if (mimeType != null)
  7784. t1 = 10 === mimeType.length && A._caseInsensitiveCompareStart("text/plain", mimeType, 0) >= 0;
  7785. else
  7786. t1 = true;
  7787. if (t1)
  7788. mimeType = "";
  7789. if (mimeType.length === 0 || mimeType === "application/octet-stream")
  7790. t1 = buffer._contents += mimeType;
  7791. else {
  7792. slashIndex = A.UriData__validateMimeType(mimeType);
  7793. if (slashIndex < 0)
  7794. throw A.wrapException(A.ArgumentError$value(mimeType, "mimeType", "Invalid MIME type"));
  7795. t1 = A._Uri__uriEncode(B.List_oyU, B.JSString_methods.substring$2(mimeType, 0, slashIndex), B.C_Utf8Codec, false);
  7796. t1 = buffer._contents += t1;
  7797. buffer._contents = t1 + "/";
  7798. t1 = A._Uri__uriEncode(B.List_oyU, B.JSString_methods.substring$1(mimeType, slashIndex + 1), B.C_Utf8Codec, false);
  7799. t1 = buffer._contents += t1;
  7800. }
  7801. if (charsetName != null) {
  7802. indices.push(t1.length);
  7803. indices.push(buffer._contents.length + 8);
  7804. buffer._contents += ";charset=";
  7805. t1 = A._Uri__uriEncode(B.List_oyU, charsetName, B.C_Utf8Codec, false);
  7806. buffer._contents += t1;
  7807. }
  7808. },
  7809. UriData__validateMimeType(mimeType) {
  7810. var t1, slashIndex, i;
  7811. for (t1 = mimeType.length, slashIndex = -1, i = 0; i < t1; ++i) {
  7812. if (mimeType.charCodeAt(i) !== 47)
  7813. continue;
  7814. if (slashIndex < 0) {
  7815. slashIndex = i;
  7816. continue;
  7817. }
  7818. return -1;
  7819. }
  7820. return slashIndex;
  7821. },
  7822. UriData__parse(text, start, sourceUri) {
  7823. var t1, i, slashIndex, char, equalsIndex, lastSeparator, t2, data,
  7824. _s17_ = "Invalid MIME type",
  7825. indices = A._setArrayType([start - 1], type$.JSArray_int);
  7826. for (t1 = text.length, i = start, slashIndex = -1, char = null; i < t1; ++i) {
  7827. char = text.charCodeAt(i);
  7828. if (char === 44 || char === 59)
  7829. break;
  7830. if (char === 47) {
  7831. if (slashIndex < 0) {
  7832. slashIndex = i;
  7833. continue;
  7834. }
  7835. throw A.wrapException(A.FormatException$(_s17_, text, i));
  7836. }
  7837. }
  7838. if (slashIndex < 0 && i > start)
  7839. throw A.wrapException(A.FormatException$(_s17_, text, i));
  7840. for (; char !== 44;) {
  7841. indices.push(i);
  7842. ++i;
  7843. for (equalsIndex = -1; i < t1; ++i) {
  7844. char = text.charCodeAt(i);
  7845. if (char === 61) {
  7846. if (equalsIndex < 0)
  7847. equalsIndex = i;
  7848. } else if (char === 59 || char === 44)
  7849. break;
  7850. }
  7851. if (equalsIndex >= 0)
  7852. indices.push(equalsIndex);
  7853. else {
  7854. lastSeparator = B.JSArray_methods.get$last(indices);
  7855. if (char !== 44 || i !== lastSeparator + 7 || !B.JSString_methods.startsWith$2(text, "base64", lastSeparator + 1))
  7856. throw A.wrapException(A.FormatException$("Expecting '='", text, i));
  7857. break;
  7858. }
  7859. }
  7860. indices.push(i);
  7861. t2 = i + 1;
  7862. if ((indices.length & 1) === 1)
  7863. text = B.C_Base64Codec.normalize$3(text, t2, t1);
  7864. else {
  7865. data = A._Uri__normalize(text, t2, t1, B.List_42A, true, false);
  7866. if (data != null)
  7867. text = B.JSString_methods.replaceRange$3(text, t2, t1, data);
  7868. }
  7869. return new A.UriData(text, indices, sourceUri);
  7870. },
  7871. UriData__uriEncodeBytes(canonicalTable, bytes, buffer) {
  7872. var t1, byteOr, i, byte, t2,
  7873. _s16_ = "0123456789ABCDEF";
  7874. for (t1 = bytes.length, byteOr = 0, i = 0; i < t1; ++i) {
  7875. byte = bytes[i];
  7876. byteOr |= byte;
  7877. if (byte < 128 && (canonicalTable[byte >>> 4] & 1 << (byte & 15)) !== 0) {
  7878. t2 = A.Primitives_stringFromCharCode(byte);
  7879. buffer._contents += t2;
  7880. } else {
  7881. t2 = A.Primitives_stringFromCharCode(37);
  7882. buffer._contents += t2;
  7883. t2 = A.Primitives_stringFromCharCode(_s16_.charCodeAt(byte >>> 4));
  7884. buffer._contents += t2;
  7885. t2 = A.Primitives_stringFromCharCode(_s16_.charCodeAt(byte & 15));
  7886. buffer._contents += t2;
  7887. }
  7888. }
  7889. if ((byteOr & 4294967040) !== 0)
  7890. for (i = 0; i < t1; ++i) {
  7891. byte = bytes[i];
  7892. if (byte > 255)
  7893. throw A.wrapException(A.ArgumentError$value(byte, "non-byte value", null));
  7894. }
  7895. },
  7896. _createTables() {
  7897. var _i, t1, t2, t3, b,
  7898. _s77_ = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-._~!$&'()*+,;=",
  7899. _s1_ = ".", _s1_0 = ":", _s1_1 = "/", _s1_2 = "\\", _s1_3 = "?", _s1_4 = "#", _s2_ = "/\\",
  7900. tables = J.JSArray_JSArray$allocateGrowable(22, type$.Uint8List);
  7901. for (_i = 0; _i < 22; ++_i)
  7902. tables[_i] = new Uint8Array(96);
  7903. t1 = new A._createTables_build(tables);
  7904. t2 = new A._createTables_setChars();
  7905. t3 = new A._createTables_setRange();
  7906. b = t1.call$2(0, 225);
  7907. t2.call$3(b, _s77_, 1);
  7908. t2.call$3(b, _s1_, 14);
  7909. t2.call$3(b, _s1_0, 34);
  7910. t2.call$3(b, _s1_1, 3);
  7911. t2.call$3(b, _s1_2, 227);
  7912. t2.call$3(b, _s1_3, 172);
  7913. t2.call$3(b, _s1_4, 205);
  7914. b = t1.call$2(14, 225);
  7915. t2.call$3(b, _s77_, 1);
  7916. t2.call$3(b, _s1_, 15);
  7917. t2.call$3(b, _s1_0, 34);
  7918. t2.call$3(b, _s2_, 234);
  7919. t2.call$3(b, _s1_3, 172);
  7920. t2.call$3(b, _s1_4, 205);
  7921. b = t1.call$2(15, 225);
  7922. t2.call$3(b, _s77_, 1);
  7923. t2.call$3(b, "%", 225);
  7924. t2.call$3(b, _s1_0, 34);
  7925. t2.call$3(b, _s1_1, 9);
  7926. t2.call$3(b, _s1_2, 233);
  7927. t2.call$3(b, _s1_3, 172);
  7928. t2.call$3(b, _s1_4, 205);
  7929. b = t1.call$2(1, 225);
  7930. t2.call$3(b, _s77_, 1);
  7931. t2.call$3(b, _s1_0, 34);
  7932. t2.call$3(b, _s1_1, 10);
  7933. t2.call$3(b, _s1_2, 234);
  7934. t2.call$3(b, _s1_3, 172);
  7935. t2.call$3(b, _s1_4, 205);
  7936. b = t1.call$2(2, 235);
  7937. t2.call$3(b, _s77_, 139);
  7938. t2.call$3(b, _s1_1, 131);
  7939. t2.call$3(b, _s1_2, 131);
  7940. t2.call$3(b, _s1_, 146);
  7941. t2.call$3(b, _s1_3, 172);
  7942. t2.call$3(b, _s1_4, 205);
  7943. b = t1.call$2(3, 235);
  7944. t2.call$3(b, _s77_, 11);
  7945. t2.call$3(b, _s1_1, 68);
  7946. t2.call$3(b, _s1_2, 68);
  7947. t2.call$3(b, _s1_, 18);
  7948. t2.call$3(b, _s1_3, 172);
  7949. t2.call$3(b, _s1_4, 205);
  7950. b = t1.call$2(4, 229);
  7951. t2.call$3(b, _s77_, 5);
  7952. t3.call$3(b, "AZ", 229);
  7953. t2.call$3(b, _s1_0, 102);
  7954. t2.call$3(b, "@", 68);
  7955. t2.call$3(b, "[", 232);
  7956. t2.call$3(b, _s1_1, 138);
  7957. t2.call$3(b, _s1_2, 138);
  7958. t2.call$3(b, _s1_3, 172);
  7959. t2.call$3(b, _s1_4, 205);
  7960. b = t1.call$2(5, 229);
  7961. t2.call$3(b, _s77_, 5);
  7962. t3.call$3(b, "AZ", 229);
  7963. t2.call$3(b, _s1_0, 102);
  7964. t2.call$3(b, "@", 68);
  7965. t2.call$3(b, _s1_1, 138);
  7966. t2.call$3(b, _s1_2, 138);
  7967. t2.call$3(b, _s1_3, 172);
  7968. t2.call$3(b, _s1_4, 205);
  7969. b = t1.call$2(6, 231);
  7970. t3.call$3(b, "19", 7);
  7971. t2.call$3(b, "@", 68);
  7972. t2.call$3(b, _s1_1, 138);
  7973. t2.call$3(b, _s1_2, 138);
  7974. t2.call$3(b, _s1_3, 172);
  7975. t2.call$3(b, _s1_4, 205);
  7976. b = t1.call$2(7, 231);
  7977. t3.call$3(b, "09", 7);
  7978. t2.call$3(b, "@", 68);
  7979. t2.call$3(b, _s1_1, 138);
  7980. t2.call$3(b, _s1_2, 138);
  7981. t2.call$3(b, _s1_3, 172);
  7982. t2.call$3(b, _s1_4, 205);
  7983. t2.call$3(t1.call$2(8, 8), "]", 5);
  7984. b = t1.call$2(9, 235);
  7985. t2.call$3(b, _s77_, 11);
  7986. t2.call$3(b, _s1_, 16);
  7987. t2.call$3(b, _s2_, 234);
  7988. t2.call$3(b, _s1_3, 172);
  7989. t2.call$3(b, _s1_4, 205);
  7990. b = t1.call$2(16, 235);
  7991. t2.call$3(b, _s77_, 11);
  7992. t2.call$3(b, _s1_, 17);
  7993. t2.call$3(b, _s2_, 234);
  7994. t2.call$3(b, _s1_3, 172);
  7995. t2.call$3(b, _s1_4, 205);
  7996. b = t1.call$2(17, 235);
  7997. t2.call$3(b, _s77_, 11);
  7998. t2.call$3(b, _s1_1, 9);
  7999. t2.call$3(b, _s1_2, 233);
  8000. t2.call$3(b, _s1_3, 172);
  8001. t2.call$3(b, _s1_4, 205);
  8002. b = t1.call$2(10, 235);
  8003. t2.call$3(b, _s77_, 11);
  8004. t2.call$3(b, _s1_, 18);
  8005. t2.call$3(b, _s1_1, 10);
  8006. t2.call$3(b, _s1_2, 234);
  8007. t2.call$3(b, _s1_3, 172);
  8008. t2.call$3(b, _s1_4, 205);
  8009. b = t1.call$2(18, 235);
  8010. t2.call$3(b, _s77_, 11);
  8011. t2.call$3(b, _s1_, 19);
  8012. t2.call$3(b, _s2_, 234);
  8013. t2.call$3(b, _s1_3, 172);
  8014. t2.call$3(b, _s1_4, 205);
  8015. b = t1.call$2(19, 235);
  8016. t2.call$3(b, _s77_, 11);
  8017. t2.call$3(b, _s2_, 234);
  8018. t2.call$3(b, _s1_3, 172);
  8019. t2.call$3(b, _s1_4, 205);
  8020. b = t1.call$2(11, 235);
  8021. t2.call$3(b, _s77_, 11);
  8022. t2.call$3(b, _s1_1, 10);
  8023. t2.call$3(b, _s1_2, 234);
  8024. t2.call$3(b, _s1_3, 172);
  8025. t2.call$3(b, _s1_4, 205);
  8026. b = t1.call$2(12, 236);
  8027. t2.call$3(b, _s77_, 12);
  8028. t2.call$3(b, _s1_3, 12);
  8029. t2.call$3(b, _s1_4, 205);
  8030. b = t1.call$2(13, 237);
  8031. t2.call$3(b, _s77_, 13);
  8032. t2.call$3(b, _s1_3, 13);
  8033. t3.call$3(t1.call$2(20, 245), "az", 21);
  8034. b = t1.call$2(21, 245);
  8035. t3.call$3(b, "az", 21);
  8036. t3.call$3(b, "09", 21);
  8037. t2.call$3(b, "+-.", 21);
  8038. return tables;
  8039. },
  8040. _scan(uri, start, end, state, indices) {
  8041. var i, table, char, transition,
  8042. tables = $.$get$_scannerTables();
  8043. for (i = start; i < end; ++i) {
  8044. table = tables[state];
  8045. char = uri.charCodeAt(i) ^ 96;
  8046. transition = table[char > 95 ? 31 : char];
  8047. state = transition & 31;
  8048. indices[transition >>> 5] = i;
  8049. }
  8050. return state;
  8051. },
  8052. _SimpleUri__packageNameEnd(uri) {
  8053. if (uri._schemeEnd === 7 && B.JSString_methods.startsWith$1(uri._uri, "package") && uri._hostStart <= 0)
  8054. return A._skipPackageNameChars(uri._uri, uri._pathStart, uri._queryStart);
  8055. return -1;
  8056. },
  8057. _skipPackageNameChars(source, start, end) {
  8058. var i, dots, char;
  8059. for (i = start, dots = 0; i < end; ++i) {
  8060. char = source.charCodeAt(i);
  8061. if (char === 47)
  8062. return dots !== 0 ? i : -1;
  8063. if (char === 37 || char === 58)
  8064. return -1;
  8065. dots |= char ^ 46;
  8066. }
  8067. return -1;
  8068. },
  8069. _caseInsensitiveCompareStart(prefix, string, start) {
  8070. var t1, result, i, stringChar, delta, lowerChar;
  8071. for (t1 = prefix.length, result = 0, i = 0; i < t1; ++i) {
  8072. stringChar = string.charCodeAt(start + i);
  8073. delta = prefix.charCodeAt(i) ^ stringChar;
  8074. if (delta !== 0) {
  8075. if (delta === 32) {
  8076. lowerChar = stringChar | delta;
  8077. if (97 <= lowerChar && lowerChar <= 122) {
  8078. result = 32;
  8079. continue;
  8080. }
  8081. }
  8082. return -1;
  8083. }
  8084. }
  8085. return result;
  8086. },
  8087. NoSuchMethodError_toString_closure: function NoSuchMethodError_toString_closure(t0, t1) {
  8088. this._box_0 = t0;
  8089. this.sb = t1;
  8090. },
  8091. DateTime: function DateTime(t0, t1, t2) {
  8092. this._value = t0;
  8093. this._microsecond = t1;
  8094. this.isUtc = t2;
  8095. },
  8096. Duration: function Duration(t0) {
  8097. this._duration = t0;
  8098. },
  8099. _Enum: function _Enum() {
  8100. },
  8101. Error: function Error() {
  8102. },
  8103. AssertionError: function AssertionError(t0) {
  8104. this.message = t0;
  8105. },
  8106. TypeError: function TypeError() {
  8107. },
  8108. ArgumentError: function ArgumentError(t0, t1, t2, t3) {
  8109. var _ = this;
  8110. _._hasValue = t0;
  8111. _.invalidValue = t1;
  8112. _.name = t2;
  8113. _.message = t3;
  8114. },
  8115. RangeError: function RangeError(t0, t1, t2, t3, t4, t5) {
  8116. var _ = this;
  8117. _.start = t0;
  8118. _.end = t1;
  8119. _._hasValue = t2;
  8120. _.invalidValue = t3;
  8121. _.name = t4;
  8122. _.message = t5;
  8123. },
  8124. IndexError: function IndexError(t0, t1, t2, t3, t4) {
  8125. var _ = this;
  8126. _.length = t0;
  8127. _._hasValue = t1;
  8128. _.invalidValue = t2;
  8129. _.name = t3;
  8130. _.message = t4;
  8131. },
  8132. NoSuchMethodError: function NoSuchMethodError(t0, t1, t2, t3) {
  8133. var _ = this;
  8134. _._core$_receiver = t0;
  8135. _._memberName = t1;
  8136. _._core$_arguments = t2;
  8137. _._namedArguments = t3;
  8138. },
  8139. UnsupportedError: function UnsupportedError(t0) {
  8140. this.message = t0;
  8141. },
  8142. UnimplementedError: function UnimplementedError(t0) {
  8143. this.message = t0;
  8144. },
  8145. StateError: function StateError(t0) {
  8146. this.message = t0;
  8147. },
  8148. ConcurrentModificationError: function ConcurrentModificationError(t0) {
  8149. this.modifiedObject = t0;
  8150. },
  8151. OutOfMemoryError: function OutOfMemoryError() {
  8152. },
  8153. StackOverflowError: function StackOverflowError() {
  8154. },
  8155. _Exception: function _Exception(t0) {
  8156. this.message = t0;
  8157. },
  8158. FormatException: function FormatException(t0, t1, t2) {
  8159. this.message = t0;
  8160. this.source = t1;
  8161. this.offset = t2;
  8162. },
  8163. Iterable: function Iterable() {
  8164. },
  8165. _GeneratorIterable: function _GeneratorIterable(t0, t1, t2) {
  8166. this.length = t0;
  8167. this._generator = t1;
  8168. this.$ti = t2;
  8169. },
  8170. MapEntry: function MapEntry(t0, t1, t2) {
  8171. this.key = t0;
  8172. this.value = t1;
  8173. this.$ti = t2;
  8174. },
  8175. Null: function Null() {
  8176. },
  8177. Object: function Object() {
  8178. },
  8179. _StringStackTrace: function _StringStackTrace(t0) {
  8180. this._stackTrace = t0;
  8181. },
  8182. Runes: function Runes(t0) {
  8183. this.string = t0;
  8184. },
  8185. RuneIterator: function RuneIterator(t0) {
  8186. var _ = this;
  8187. _.string = t0;
  8188. _._nextPosition = _._position = 0;
  8189. _._currentCodePoint = -1;
  8190. },
  8191. StringBuffer: function StringBuffer(t0) {
  8192. this._contents = t0;
  8193. },
  8194. Uri__parseIPv4Address_error: function Uri__parseIPv4Address_error(t0) {
  8195. this.host = t0;
  8196. },
  8197. Uri_parseIPv6Address_error: function Uri_parseIPv6Address_error(t0) {
  8198. this.host = t0;
  8199. },
  8200. Uri_parseIPv6Address_parseHex: function Uri_parseIPv6Address_parseHex(t0, t1) {
  8201. this.error = t0;
  8202. this.host = t1;
  8203. },
  8204. _Uri: function _Uri(t0, t1, t2, t3, t4, t5, t6) {
  8205. var _ = this;
  8206. _.scheme = t0;
  8207. _._userInfo = t1;
  8208. _._host = t2;
  8209. _._port = t3;
  8210. _.path = t4;
  8211. _._query = t5;
  8212. _._fragment = t6;
  8213. _.___Uri_hashCode_FI = _.___Uri_pathSegments_FI = _.___Uri__text_FI = $;
  8214. },
  8215. _Uri__makePath_closure: function _Uri__makePath_closure() {
  8216. },
  8217. UriData: function UriData(t0, t1, t2) {
  8218. this._text = t0;
  8219. this._separatorIndices = t1;
  8220. this._uriCache = t2;
  8221. },
  8222. _createTables_build: function _createTables_build(t0) {
  8223. this.tables = t0;
  8224. },
  8225. _createTables_setChars: function _createTables_setChars() {
  8226. },
  8227. _createTables_setRange: function _createTables_setRange() {
  8228. },
  8229. _SimpleUri: function _SimpleUri(t0, t1, t2, t3, t4, t5, t6, t7) {
  8230. var _ = this;
  8231. _._uri = t0;
  8232. _._schemeEnd = t1;
  8233. _._hostStart = t2;
  8234. _._portStart = t3;
  8235. _._pathStart = t4;
  8236. _._queryStart = t5;
  8237. _._fragmentStart = t6;
  8238. _._schemeCache = t7;
  8239. _._hashCodeCache = null;
  8240. },
  8241. _DataUri: function _DataUri(t0, t1, t2, t3, t4, t5, t6) {
  8242. var _ = this;
  8243. _.scheme = t0;
  8244. _._userInfo = t1;
  8245. _._host = t2;
  8246. _._port = t3;
  8247. _.path = t4;
  8248. _._query = t5;
  8249. _._fragment = t6;
  8250. _.___Uri_hashCode_FI = _.___Uri_pathSegments_FI = _.___Uri__text_FI = $;
  8251. },
  8252. Expando: function Expando(t0) {
  8253. this._jsWeakMap = t0;
  8254. },
  8255. _convertDartFunctionFast(f) {
  8256. var ret,
  8257. existing = f.$dart_jsFunction;
  8258. if (existing != null)
  8259. return existing;
  8260. ret = function(_call, f) {
  8261. return function() {
  8262. return _call(f, Array.prototype.slice.apply(arguments));
  8263. };
  8264. }(A._callDartFunctionFast, f);
  8265. ret[$.$get$DART_CLOSURE_PROPERTY_NAME()] = f;
  8266. f.$dart_jsFunction = ret;
  8267. return ret;
  8268. },
  8269. _convertDartFunctionFastCaptureThis(f) {
  8270. var ret,
  8271. existing = f._$dart_jsFunctionCaptureThis;
  8272. if (existing != null)
  8273. return existing;
  8274. ret = function(_call, f) {
  8275. return function() {
  8276. return _call(f, this, Array.prototype.slice.apply(arguments));
  8277. };
  8278. }(A._callDartFunctionFastCaptureThis, f);
  8279. ret[$.$get$DART_CLOSURE_PROPERTY_NAME()] = f;
  8280. f._$dart_jsFunctionCaptureThis = ret;
  8281. return ret;
  8282. },
  8283. _callDartFunctionFast(callback, $arguments) {
  8284. return A.Function_apply(callback, $arguments);
  8285. },
  8286. _callDartFunctionFastCaptureThis(callback, $self, $arguments) {
  8287. var t1 = [$self];
  8288. B.JSArray_methods.addAll$1(t1, $arguments);
  8289. return A.Function_apply(callback, t1);
  8290. },
  8291. allowInterop(f) {
  8292. if (typeof f == "function")
  8293. return f;
  8294. else
  8295. return A._convertDartFunctionFast(f);
  8296. },
  8297. allowInteropCaptureThis(f) {
  8298. if (typeof f == "function")
  8299. throw A.wrapException(A.ArgumentError$("Function is already a JS function so cannot capture this.", null));
  8300. else
  8301. return A._convertDartFunctionFastCaptureThis(f);
  8302. },
  8303. _noJsifyRequired(o) {
  8304. return o == null || A._isBool(o) || typeof o == "number" || typeof o == "string" || type$.Int8List._is(o) || type$.Uint8List._is(o) || type$.Uint8ClampedList._is(o) || type$.Int16List._is(o) || type$.Uint16List._is(o) || type$.Int32List._is(o) || type$.Uint32List._is(o) || type$.Float32List._is(o) || type$.Float64List._is(o) || type$.ByteBuffer._is(o) || type$.ByteData._is(o);
  8305. },
  8306. jsify(object) {
  8307. if (A._noJsifyRequired(object))
  8308. return object;
  8309. return new A.jsify__convert(new A._IdentityHashMap(type$._IdentityHashMap_of_nullable_Object_and_nullable_Object)).call$1(object);
  8310. },
  8311. callConstructor(constr, $arguments) {
  8312. var args, factoryFunction;
  8313. if ($arguments instanceof Array)
  8314. switch ($arguments.length) {
  8315. case 0:
  8316. return new constr();
  8317. case 1:
  8318. return new constr($arguments[0]);
  8319. case 2:
  8320. return new constr($arguments[0], $arguments[1]);
  8321. case 3:
  8322. return new constr($arguments[0], $arguments[1], $arguments[2]);
  8323. case 4:
  8324. return new constr($arguments[0], $arguments[1], $arguments[2], $arguments[3]);
  8325. }
  8326. args = [null];
  8327. B.JSArray_methods.addAll$1(args, $arguments);
  8328. factoryFunction = constr.bind.apply(constr, args);
  8329. String(factoryFunction);
  8330. return new factoryFunction();
  8331. },
  8332. promiseToFuture0(jsPromise, $T) {
  8333. var t1 = new A._Future($.Zone__current, $T._eval$1("_Future<0>")),
  8334. completer = new A._AsyncCompleter(t1, $T._eval$1("_AsyncCompleter<0>"));
  8335. jsPromise.then(A.convertDartClosureToJS(new A.promiseToFuture_closure1(completer), 1), A.convertDartClosureToJS(new A.promiseToFuture_closure2(completer), 1));
  8336. return t1;
  8337. },
  8338. jsify__convert: function jsify__convert(t0) {
  8339. this._convertedObjects = t0;
  8340. },
  8341. promiseToFuture_closure1: function promiseToFuture_closure1(t0) {
  8342. this.completer = t0;
  8343. },
  8344. promiseToFuture_closure2: function promiseToFuture_closure2(t0) {
  8345. this.completer = t0;
  8346. },
  8347. NullRejectionException: function NullRejectionException(t0) {
  8348. this.isUndefined = t0;
  8349. },
  8350. max(a, b) {
  8351. return Math.max(a, b);
  8352. },
  8353. pow(x, exponent) {
  8354. return Math.pow(x, exponent);
  8355. },
  8356. Random_Random() {
  8357. return B.C__JSRandom;
  8358. },
  8359. _JSRandom: function _JSRandom() {
  8360. },
  8361. ArgParser: function ArgParser(t0, t1, t2, t3, t4, t5, t6) {
  8362. var _ = this;
  8363. _._arg_parser$_options = t0;
  8364. _._aliases = t1;
  8365. _.options = t2;
  8366. _.commands = t3;
  8367. _._optionsAndSeparators = t4;
  8368. _.allowTrailingOptions = t5;
  8369. _.usageLineLength = t6;
  8370. },
  8371. ArgParser__addOption_closure: function ArgParser__addOption_closure(t0) {
  8372. this.$this = t0;
  8373. },
  8374. ArgParserException$(message, commands, argumentName, source, offset) {
  8375. return new A.ArgParserException(commands == null ? B.List_empty : A.List_List$unmodifiable(commands, type$.String), argumentName, message, source, offset);
  8376. },
  8377. ArgParserException: function ArgParserException(t0, t1, t2, t3, t4) {
  8378. var _ = this;
  8379. _.commands = t0;
  8380. _.argumentName = t1;
  8381. _.message = t2;
  8382. _.source = t3;
  8383. _.offset = t4;
  8384. },
  8385. ArgResults: function ArgResults(t0, t1, t2, t3) {
  8386. var _ = this;
  8387. _._parser = t0;
  8388. _._parsed = t1;
  8389. _.name = t2;
  8390. _.rest = t3;
  8391. },
  8392. Option: function Option(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12) {
  8393. var _ = this;
  8394. _.name = t0;
  8395. _.abbr = t1;
  8396. _.help = t2;
  8397. _.valueHelp = t3;
  8398. _.allowed = t4;
  8399. _.allowedHelp = t5;
  8400. _.defaultsTo = t6;
  8401. _.negatable = t7;
  8402. _.callback = t8;
  8403. _.type = t9;
  8404. _.splitCommas = t10;
  8405. _.mandatory = t11;
  8406. _.hide = t12;
  8407. },
  8408. OptionType: function OptionType(t0) {
  8409. this.name = t0;
  8410. },
  8411. Parser$(_commandName, _grammar, _args, _parent, rest) {
  8412. var t1 = A._setArrayType([], type$.JSArray_String);
  8413. if (rest != null)
  8414. B.JSArray_methods.addAll$1(t1, rest);
  8415. return new A.Parser0(_commandName, _parent, _grammar, _args, t1, A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.dynamic));
  8416. },
  8417. _isLetterOrDigit(codeUnit) {
  8418. var t1 = true;
  8419. if (!(codeUnit >= 65 && codeUnit <= 90))
  8420. if (!(codeUnit >= 97 && codeUnit <= 122))
  8421. t1 = codeUnit >= 48 && codeUnit <= 57;
  8422. return t1;
  8423. },
  8424. Parser0: function Parser0(t0, t1, t2, t3, t4, t5) {
  8425. var _ = this;
  8426. _._commandName = t0;
  8427. _._parser$_parent = t1;
  8428. _._grammar = t2;
  8429. _._args = t3;
  8430. _._parser$_rest = t4;
  8431. _._results = t5;
  8432. },
  8433. Parser_parse_closure: function Parser_parse_closure(t0) {
  8434. this.$this = t0;
  8435. },
  8436. Parser__setOption_closure: function Parser__setOption_closure() {
  8437. },
  8438. _Usage: function _Usage(t0, t1, t2) {
  8439. var _ = this;
  8440. _._usage$_optionsAndSeparators = t0;
  8441. _._usage$_buffer = t1;
  8442. _._currentColumn = 0;
  8443. _.___Usage__columnWidths_FI = $;
  8444. _._newlinesNeeded = 0;
  8445. _.lineLength = t2;
  8446. },
  8447. _Usage__writeOption_closure: function _Usage__writeOption_closure() {
  8448. },
  8449. _Usage__buildAllowedList_closure: function _Usage__buildAllowedList_closure(t0) {
  8450. this.option = t0;
  8451. },
  8452. FutureGroup: function FutureGroup(t0, t1, t2) {
  8453. var _ = this;
  8454. _._future_group$_pending = 0;
  8455. _._future_group$_closed = false;
  8456. _._future_group$_completer = t0;
  8457. _._future_group$_values = t1;
  8458. _.$ti = t2;
  8459. },
  8460. FutureGroup_add_closure: function FutureGroup_add_closure(t0, t1) {
  8461. this.$this = t0;
  8462. this.index = t1;
  8463. },
  8464. FutureGroup_add_closure0: function FutureGroup_add_closure0(t0) {
  8465. this.$this = t0;
  8466. },
  8467. ErrorResult: function ErrorResult(t0, t1) {
  8468. this.error = t0;
  8469. this.stackTrace = t1;
  8470. },
  8471. ValueResult: function ValueResult(t0, t1) {
  8472. this.value = t0;
  8473. this.$ti = t1;
  8474. },
  8475. StreamCompleter: function StreamCompleter(t0, t1) {
  8476. this._stream_completer$_stream = t0;
  8477. this.$ti = t1;
  8478. },
  8479. _CompleterStream: function _CompleterStream(t0) {
  8480. this._sourceStream = this._stream_completer$_controller = null;
  8481. this.$ti = t0;
  8482. },
  8483. StreamGroup: function StreamGroup(t0, t1, t2) {
  8484. var _ = this;
  8485. _.__StreamGroup__controller_A = $;
  8486. _._closed = false;
  8487. _._stream_group$_state = t0;
  8488. _._subscriptions = t1;
  8489. _.$ti = t2;
  8490. },
  8491. StreamGroup_add_closure: function StreamGroup_add_closure() {
  8492. },
  8493. StreamGroup_add_closure0: function StreamGroup_add_closure0(t0, t1) {
  8494. this.$this = t0;
  8495. this.stream = t1;
  8496. },
  8497. StreamGroup__onListen_closure: function StreamGroup__onListen_closure() {
  8498. },
  8499. StreamGroup__onCancel_closure: function StreamGroup__onCancel_closure(t0) {
  8500. this.$this = t0;
  8501. },
  8502. StreamGroup__listenToStream_closure: function StreamGroup__listenToStream_closure(t0, t1) {
  8503. this.$this = t0;
  8504. this.stream = t1;
  8505. },
  8506. _StreamGroupState: function _StreamGroupState(t0) {
  8507. this.name = t0;
  8508. },
  8509. StreamQueue: function StreamQueue(t0, t1, t2, t3) {
  8510. var _ = this;
  8511. _._stream_queue$_source = t0;
  8512. _._stream_queue$_subscription = null;
  8513. _._isDone = false;
  8514. _._eventsReceived = 0;
  8515. _._eventQueue = t1;
  8516. _._requestQueue = t2;
  8517. _.$ti = t3;
  8518. },
  8519. StreamQueue__ensureListening_closure: function StreamQueue__ensureListening_closure(t0) {
  8520. this.$this = t0;
  8521. },
  8522. StreamQueue__ensureListening_closure1: function StreamQueue__ensureListening_closure1(t0) {
  8523. this.$this = t0;
  8524. },
  8525. StreamQueue__ensureListening_closure0: function StreamQueue__ensureListening_closure0(t0) {
  8526. this.$this = t0;
  8527. },
  8528. _NextRequest: function _NextRequest(t0, t1) {
  8529. this._completer = t0;
  8530. this.$ti = t1;
  8531. },
  8532. isNodeJs() {
  8533. var t1 = self.process;
  8534. if (t1 == null)
  8535. t1 = null;
  8536. else {
  8537. t1 = J.get$release$x(t1);
  8538. t1 = t1 == null ? null : J.get$name$x(t1);
  8539. }
  8540. return J.$eq$(t1, "node");
  8541. },
  8542. isBrowser() {
  8543. return !A.isNodeJs() && self.document != null && typeof self.document.querySelector == "function";
  8544. },
  8545. wrapJSExceptions(callback) {
  8546. var error, error0, error1, error2, t1, exception;
  8547. if (!$.$get$_isStrictMode())
  8548. return callback.call$0();
  8549. try {
  8550. t1 = callback.call$0();
  8551. return t1;
  8552. } catch (exception) {
  8553. t1 = A.unwrapException(exception);
  8554. if (typeof t1 == "string") {
  8555. error = t1;
  8556. throw A.wrapException(error);
  8557. } else if (A._isBool(t1)) {
  8558. error0 = t1;
  8559. throw A.wrapException(error0);
  8560. } else if (typeof t1 == "number") {
  8561. error1 = t1;
  8562. throw A.wrapException(error1);
  8563. } else {
  8564. error2 = t1;
  8565. if (typeof error2 == "symbol" || typeof error2 == "bigint" || error2 == null)
  8566. throw A.wrapException(error2.toString());
  8567. throw exception;
  8568. }
  8569. }
  8570. },
  8571. _isStrictMode_closure: function _isStrictMode_closure() {
  8572. },
  8573. Repl: function Repl(t0, t1, t2, t3) {
  8574. var _ = this;
  8575. _.prompt = t0;
  8576. _.continuation = t1;
  8577. _.validator = t2;
  8578. _.__Repl__adapter_A = $;
  8579. _.history = t3;
  8580. },
  8581. alwaysValid_closure: function alwaysValid_closure() {
  8582. },
  8583. ReplAdapter: function ReplAdapter(t0) {
  8584. this.repl = t0;
  8585. this.rl = null;
  8586. },
  8587. ReplAdapter_runAsync_closure: function ReplAdapter_runAsync_closure(t0, t1, t2, t3) {
  8588. var _ = this;
  8589. _._box_0 = t0;
  8590. _.$this = t1;
  8591. _.rl = t2;
  8592. _.runController = t3;
  8593. },
  8594. ReplAdapter_runAsync__closure: function ReplAdapter_runAsync__closure(t0) {
  8595. this.lineController = t0;
  8596. },
  8597. Stdin: function Stdin() {
  8598. },
  8599. Stdout: function Stdout() {
  8600. },
  8601. ReadlineModule: function ReadlineModule() {
  8602. },
  8603. ReadlineOptions: function ReadlineOptions() {
  8604. },
  8605. ReadlineInterface: function ReadlineInterface() {
  8606. },
  8607. EmptyUnmodifiableSet: function EmptyUnmodifiableSet(t0) {
  8608. this.$ti = t0;
  8609. },
  8610. _EmptyUnmodifiableSet_IterableBase_UnmodifiableSetMixin: function _EmptyUnmodifiableSet_IterableBase_UnmodifiableSetMixin() {
  8611. },
  8612. DefaultEquality: function DefaultEquality() {
  8613. },
  8614. IterableEquality: function IterableEquality() {
  8615. },
  8616. ListEquality: function ListEquality() {
  8617. },
  8618. _MapEntry: function _MapEntry(t0, t1, t2) {
  8619. this.equality = t0;
  8620. this.key = t1;
  8621. this.value = t2;
  8622. },
  8623. MapEquality: function MapEquality(t0) {
  8624. this.$ti = t0;
  8625. },
  8626. QueueList$(initialCapacity, $E) {
  8627. return new A.QueueList(A.List_List$filled(A.QueueList__computeInitialCapacity(initialCapacity), null, false, $E._eval$1("0?")), 0, 0, $E._eval$1("QueueList<0>"));
  8628. },
  8629. QueueList_QueueList$from(source, $E) {
  8630. var $length, queue, t1;
  8631. if (type$.List_dynamic._is(source)) {
  8632. $length = J.get$length$asx(source);
  8633. queue = A.QueueList$($length + 1, $E);
  8634. J.setRange$4$ax(queue._queue_list$_table, 0, $length, source, 0);
  8635. queue._queue_list$_tail = $length;
  8636. return queue;
  8637. } else {
  8638. t1 = A.QueueList$(null, $E);
  8639. t1.addAll$1(0, source);
  8640. return t1;
  8641. }
  8642. },
  8643. QueueList__computeInitialCapacity(initialCapacity) {
  8644. if (initialCapacity == null || initialCapacity < 8)
  8645. return 8;
  8646. ++initialCapacity;
  8647. if ((initialCapacity & initialCapacity - 1) >>> 0 === 0)
  8648. return initialCapacity;
  8649. return A.QueueList__nextPowerOf2(initialCapacity);
  8650. },
  8651. QueueList__nextPowerOf2(number) {
  8652. var nextNumber;
  8653. number = (number << 1 >>> 0) - 1;
  8654. for (; true; number = nextNumber) {
  8655. nextNumber = (number & number - 1) >>> 0;
  8656. if (nextNumber === 0)
  8657. return number;
  8658. }
  8659. },
  8660. QueueList: function QueueList(t0, t1, t2, t3) {
  8661. var _ = this;
  8662. _._queue_list$_table = t0;
  8663. _._queue_list$_head = t1;
  8664. _._queue_list$_tail = t2;
  8665. _.$ti = t3;
  8666. },
  8667. _CastQueueList: function _CastQueueList(t0, t1, t2, t3, t4) {
  8668. var _ = this;
  8669. _._queue_list$_delegate = t0;
  8670. _._queue_list$_table = t1;
  8671. _._queue_list$_head = t2;
  8672. _._queue_list$_tail = t3;
  8673. _.$ti = t4;
  8674. },
  8675. _QueueList_Object_ListMixin: function _QueueList_Object_ListMixin() {
  8676. },
  8677. UnionSet: function UnionSet(t0, t1) {
  8678. this._sets = t0;
  8679. this.$ti = t1;
  8680. },
  8681. UnionSet__iterable_closure: function UnionSet__iterable_closure(t0) {
  8682. this.$this = t0;
  8683. },
  8684. UnionSet_contains_closure: function UnionSet_contains_closure(t0, t1) {
  8685. this.$this = t0;
  8686. this.element = t1;
  8687. },
  8688. _UnionSet_SetBase_UnmodifiableSetMixin: function _UnionSet_SetBase_UnmodifiableSetMixin() {
  8689. },
  8690. UnmodifiableSetMixin__throw() {
  8691. throw A.wrapException(A.UnsupportedError$("Cannot modify an unmodifiable Set"));
  8692. },
  8693. UnmodifiableSetView0: function UnmodifiableSetView0(t0, t1) {
  8694. this._base = t0;
  8695. this.$ti = t1;
  8696. },
  8697. UnmodifiableSetMixin: function UnmodifiableSetMixin() {
  8698. },
  8699. _UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin: function _UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin() {
  8700. },
  8701. _DelegatingIterableBase: function _DelegatingIterableBase() {
  8702. },
  8703. DelegatingSet: function DelegatingSet(t0, t1) {
  8704. this._base = t0;
  8705. this.$ti = t1;
  8706. },
  8707. MapKeySet: function MapKeySet(t0, t1) {
  8708. this._baseMap = t0;
  8709. this.$ti = t1;
  8710. },
  8711. MapKeySet_difference_closure: function MapKeySet_difference_closure(t0, t1) {
  8712. this.$this = t0;
  8713. this.other = t1;
  8714. },
  8715. _MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin: function _MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin() {
  8716. },
  8717. BufferModule: function BufferModule() {
  8718. },
  8719. BufferConstants: function BufferConstants() {
  8720. },
  8721. Buffer: function Buffer() {
  8722. },
  8723. ConsoleModule: function ConsoleModule() {
  8724. },
  8725. Console: function Console() {
  8726. },
  8727. EventEmitter: function EventEmitter() {
  8728. },
  8729. fs() {
  8730. var t1 = $._fs;
  8731. return t1 == null ? $._fs = self.fs : t1;
  8732. },
  8733. FS: function FS() {
  8734. },
  8735. FSConstants: function FSConstants() {
  8736. },
  8737. FSWatcher: function FSWatcher() {
  8738. },
  8739. ReadStream: function ReadStream() {
  8740. },
  8741. ReadStreamOptions: function ReadStreamOptions() {
  8742. },
  8743. WriteStream: function WriteStream() {
  8744. },
  8745. WriteStreamOptions: function WriteStreamOptions() {
  8746. },
  8747. FileOptions: function FileOptions() {
  8748. },
  8749. StatOptions: function StatOptions() {
  8750. },
  8751. MkdirOptions: function MkdirOptions() {
  8752. },
  8753. RmdirOptions: function RmdirOptions() {
  8754. },
  8755. WatchOptions: function WatchOptions() {
  8756. },
  8757. WatchFileOptions: function WatchFileOptions() {
  8758. },
  8759. Stats: function Stats() {
  8760. },
  8761. Promise: function Promise() {
  8762. },
  8763. Date: function Date() {
  8764. },
  8765. JsError: function JsError() {
  8766. },
  8767. Atomics: function Atomics() {
  8768. },
  8769. Modules: function Modules() {
  8770. },
  8771. Module: function Module() {
  8772. },
  8773. Net: function Net() {
  8774. },
  8775. Socket: function Socket() {
  8776. },
  8777. NetAddress: function NetAddress() {
  8778. },
  8779. NetServer: function NetServer() {
  8780. },
  8781. NodeJsError: function NodeJsError() {
  8782. },
  8783. JsAssertionError: function JsAssertionError() {
  8784. },
  8785. JsRangeError: function JsRangeError() {
  8786. },
  8787. JsReferenceError: function JsReferenceError() {
  8788. },
  8789. JsSyntaxError: function JsSyntaxError() {
  8790. },
  8791. JsTypeError: function JsTypeError() {
  8792. },
  8793. JsSystemError: function JsSystemError() {
  8794. },
  8795. Process: function Process() {
  8796. },
  8797. CPUUsage: function CPUUsage() {
  8798. },
  8799. Release: function Release() {
  8800. },
  8801. StreamModule: function StreamModule() {
  8802. },
  8803. Readable: function Readable() {
  8804. },
  8805. Writable: function Writable() {
  8806. },
  8807. Duplex: function Duplex() {
  8808. },
  8809. Transform: function Transform() {
  8810. },
  8811. WritableOptions: function WritableOptions() {
  8812. },
  8813. ReadableOptions: function ReadableOptions() {
  8814. },
  8815. Immediate: function Immediate() {
  8816. },
  8817. Timeout: function Timeout() {
  8818. },
  8819. TTY: function TTY() {
  8820. },
  8821. TTYReadStream: function TTYReadStream() {
  8822. },
  8823. TTYWriteStream: function TTYWriteStream() {
  8824. },
  8825. jsify0(dartObject) {
  8826. if (A._isBasicType(dartObject))
  8827. return dartObject;
  8828. return A.jsify(dartObject);
  8829. },
  8830. _isBasicType(value) {
  8831. return false;
  8832. },
  8833. promiseToFuture(promise, $T) {
  8834. var t1 = new A._Future($.Zone__current, $T._eval$1("_Future<0>")),
  8835. completer = new A._SyncCompleter(t1, $T._eval$1("_SyncCompleter<0>"));
  8836. J.then$2$x(promise, A.allowInterop(new A.promiseToFuture_closure(completer)), A.allowInterop(new A.promiseToFuture_closure0(completer)));
  8837. return t1;
  8838. },
  8839. futureToPromise(future, $T) {
  8840. return new self.Promise(A.allowInterop(new A.futureToPromise_closure(future, $T)));
  8841. },
  8842. Util: function Util() {
  8843. },
  8844. promiseToFuture_closure: function promiseToFuture_closure(t0) {
  8845. this.completer = t0;
  8846. },
  8847. promiseToFuture_closure0: function promiseToFuture_closure0(t0) {
  8848. this.completer = t0;
  8849. },
  8850. futureToPromise_closure: function futureToPromise_closure(t0, t1) {
  8851. this.future = t0;
  8852. this.T = t1;
  8853. },
  8854. futureToPromise__closure: function futureToPromise__closure(t0, t1) {
  8855. this.resolve = t0;
  8856. this.T = t1;
  8857. },
  8858. Context_Context(style) {
  8859. return new A.Context(style, ".");
  8860. },
  8861. _parseUri(uri) {
  8862. if (typeof uri == "string")
  8863. return A.Uri_parse(uri);
  8864. if (type$.Uri._is(uri))
  8865. return uri;
  8866. throw A.wrapException(A.ArgumentError$value(uri, "uri", "Value must be a String or a Uri"));
  8867. },
  8868. _validateArgList(method, args) {
  8869. var numArgs, i, numArgs0, message, t1, t2, t3, t4;
  8870. for (numArgs = args.length, i = 1; i < numArgs; ++i) {
  8871. if (args[i] == null || args[i - 1] != null)
  8872. continue;
  8873. for (; numArgs >= 1; numArgs = numArgs0) {
  8874. numArgs0 = numArgs - 1;
  8875. if (args[numArgs0] != null)
  8876. break;
  8877. }
  8878. message = new A.StringBuffer("");
  8879. t1 = "" + (method + "(");
  8880. message._contents = t1;
  8881. t2 = A._arrayInstanceType(args);
  8882. t3 = t2._eval$1("SubListIterable<1>");
  8883. t4 = new A.SubListIterable(args, 0, numArgs, t3);
  8884. t4.SubListIterable$3(args, 0, numArgs, t2._precomputed1);
  8885. t3 = t1 + new A.MappedListIterable(t4, new A._validateArgList_closure(), t3._eval$1("MappedListIterable<ListIterable.E,String>")).join$1(0, ", ");
  8886. message._contents = t3;
  8887. message._contents = t3 + ("): part " + (i - 1) + " was null, but part " + i + " was not.");
  8888. throw A.wrapException(A.ArgumentError$(message.toString$0(0), null));
  8889. }
  8890. },
  8891. Context: function Context(t0, t1) {
  8892. this.style = t0;
  8893. this._context$_current = t1;
  8894. },
  8895. Context_joinAll_closure: function Context_joinAll_closure() {
  8896. },
  8897. Context_split_closure: function Context_split_closure() {
  8898. },
  8899. _validateArgList_closure: function _validateArgList_closure() {
  8900. },
  8901. _PathDirection: function _PathDirection(t0) {
  8902. this.name = t0;
  8903. },
  8904. _PathRelation: function _PathRelation(t0) {
  8905. this.name = t0;
  8906. },
  8907. InternalStyle: function InternalStyle() {
  8908. },
  8909. ParsedPath_ParsedPath$parse(path, style) {
  8910. var t1, parts, separators, start, i,
  8911. root = style.getRoot$1(path),
  8912. isRootRelative = style.isRootRelative$1(path);
  8913. if (root != null)
  8914. path = B.JSString_methods.substring$1(path, root.length);
  8915. t1 = type$.JSArray_String;
  8916. parts = A._setArrayType([], t1);
  8917. separators = A._setArrayType([], t1);
  8918. t1 = path.length;
  8919. if (t1 !== 0 && style.isSeparator$1(path.charCodeAt(0))) {
  8920. separators.push(path[0]);
  8921. start = 1;
  8922. } else {
  8923. separators.push("");
  8924. start = 0;
  8925. }
  8926. for (i = start; i < t1; ++i)
  8927. if (style.isSeparator$1(path.charCodeAt(i))) {
  8928. parts.push(B.JSString_methods.substring$2(path, start, i));
  8929. separators.push(path[i]);
  8930. start = i + 1;
  8931. }
  8932. if (start < t1) {
  8933. parts.push(B.JSString_methods.substring$1(path, start));
  8934. separators.push("");
  8935. }
  8936. return new A.ParsedPath(style, root, isRootRelative, parts, separators);
  8937. },
  8938. ParsedPath: function ParsedPath(t0, t1, t2, t3, t4) {
  8939. var _ = this;
  8940. _.style = t0;
  8941. _.root = t1;
  8942. _.isRootRelative = t2;
  8943. _.parts = t3;
  8944. _.separators = t4;
  8945. },
  8946. ParsedPath__splitExtension_closure: function ParsedPath__splitExtension_closure() {
  8947. },
  8948. ParsedPath__splitExtension_closure0: function ParsedPath__splitExtension_closure0() {
  8949. },
  8950. PathException$(message) {
  8951. return new A.PathException(message);
  8952. },
  8953. PathException: function PathException(t0) {
  8954. this.message = t0;
  8955. },
  8956. PathMap__create(context, $V) {
  8957. var t1 = {};
  8958. t1.context = context;
  8959. t1.context = $.$get$context();
  8960. return A.LinkedHashMap_LinkedHashMap(new A.PathMap__create_closure(t1), new A.PathMap__create_closure0(t1), new A.PathMap__create_closure1(), type$.nullable_String, $V);
  8961. },
  8962. PathMap: function PathMap(t0, t1) {
  8963. this._map = t0;
  8964. this.$ti = t1;
  8965. },
  8966. PathMap__create_closure: function PathMap__create_closure(t0) {
  8967. this._box_0 = t0;
  8968. },
  8969. PathMap__create_closure0: function PathMap__create_closure0(t0) {
  8970. this._box_0 = t0;
  8971. },
  8972. PathMap__create_closure1: function PathMap__create_closure1() {
  8973. },
  8974. Style__getPlatformStyle() {
  8975. if (A.Uri_base().get$scheme() !== "file")
  8976. return $.$get$Style_url();
  8977. var t1 = A.Uri_base();
  8978. if (!B.JSString_methods.endsWith$1(t1.get$path(t1), "/"))
  8979. return $.$get$Style_url();
  8980. if (A._Uri__Uri(null, "a/b", null, null).toFilePath$0() === "a\\b")
  8981. return $.$get$Style_windows();
  8982. return $.$get$Style_posix();
  8983. },
  8984. Style: function Style() {
  8985. },
  8986. PosixStyle: function PosixStyle(t0, t1, t2) {
  8987. this.separatorPattern = t0;
  8988. this.needsSeparatorPattern = t1;
  8989. this.rootPattern = t2;
  8990. },
  8991. UrlStyle: function UrlStyle(t0, t1, t2, t3) {
  8992. var _ = this;
  8993. _.separatorPattern = t0;
  8994. _.needsSeparatorPattern = t1;
  8995. _.rootPattern = t2;
  8996. _.relativeRootPattern = t3;
  8997. },
  8998. WindowsStyle: function WindowsStyle(t0, t1, t2, t3) {
  8999. var _ = this;
  9000. _.separatorPattern = t0;
  9001. _.needsSeparatorPattern = t1;
  9002. _.rootPattern = t2;
  9003. _.relativeRootPattern = t3;
  9004. },
  9005. WindowsStyle_absolutePathToUri_closure: function WindowsStyle_absolutePathToUri_closure() {
  9006. },
  9007. Version$_(major, minor, patch, preRelease, build, _text) {
  9008. var t1 = preRelease == null ? A._setArrayType([], type$.JSArray_Object) : A.Version__splitParts(preRelease),
  9009. t2 = build == null ? A._setArrayType([], type$.JSArray_Object) : A.Version__splitParts(build);
  9010. if (major < 0)
  9011. A.throwExpression(A.ArgumentError$("Major version must be non-negative.", null));
  9012. if (minor < 0)
  9013. A.throwExpression(A.ArgumentError$("Minor version must be non-negative.", null));
  9014. if (patch < 0)
  9015. A.throwExpression(A.ArgumentError$("Patch version must be non-negative.", null));
  9016. return new A.Version(major, minor, patch, t1, t2, _text);
  9017. },
  9018. Version_Version(major, minor, patch, pre) {
  9019. var text = "" + major + "." + minor + "." + patch;
  9020. if (pre != null)
  9021. text += "-" + pre;
  9022. return A.Version$_(major, minor, patch, pre, null, text);
  9023. },
  9024. Version___parse_tearOff(text) {
  9025. return A.Version_Version$parse(text);
  9026. },
  9027. Version_Version$parse(text) {
  9028. var major, minor, patch, preRelease, build, t1, exception, _null = null,
  9029. _s17_ = 'Could not parse "',
  9030. match = $.$get$completeVersion().firstMatch$1(text);
  9031. if (match == null)
  9032. throw A.wrapException(A.FormatException$(_s17_ + text + '".', _null, _null));
  9033. try {
  9034. t1 = match._match[1];
  9035. t1.toString;
  9036. major = A.int_parse(t1, _null);
  9037. t1 = match._match[2];
  9038. t1.toString;
  9039. minor = A.int_parse(t1, _null);
  9040. t1 = match._match[3];
  9041. t1.toString;
  9042. patch = A.int_parse(t1, _null);
  9043. preRelease = match._match[5];
  9044. build = match._match[8];
  9045. t1 = A.Version$_(major, minor, patch, preRelease, build, text);
  9046. return t1;
  9047. } catch (exception) {
  9048. if (type$.FormatException._is(A.unwrapException(exception)))
  9049. throw A.wrapException(A.FormatException$(_s17_ + text + '".', _null, _null));
  9050. else
  9051. throw exception;
  9052. }
  9053. },
  9054. Version__splitParts(text) {
  9055. var t1 = type$.MappedListIterable_String_Object;
  9056. return A.List_List$of(new A.MappedListIterable(A._setArrayType(text.split("."), type$.JSArray_String), new A.Version__splitParts_closure(), t1), true, t1._eval$1("ListIterable.E"));
  9057. },
  9058. Version: function Version(t0, t1, t2, t3, t4, t5) {
  9059. var _ = this;
  9060. _.major = t0;
  9061. _.minor = t1;
  9062. _.patch = t2;
  9063. _.preRelease = t3;
  9064. _.build = t4;
  9065. _._version$_text = t5;
  9066. },
  9067. Version__splitParts_closure: function Version__splitParts_closure() {
  9068. },
  9069. VersionRange_VersionRange(includeMax, max) {
  9070. return new A.VersionRange(null, max, false, true);
  9071. },
  9072. VersionRange: function VersionRange(t0, t1, t2, t3) {
  9073. var _ = this;
  9074. _.min = t0;
  9075. _.max = t1;
  9076. _.includeMin = t2;
  9077. _.includeMax = t3;
  9078. },
  9079. CssMediaQuery$type(type, conditions, modifier) {
  9080. return new A.CssMediaQuery(modifier, type, true, conditions == null ? B.List_empty : A.List_List$unmodifiable(conditions, type$.String));
  9081. },
  9082. CssMediaQuery$condition(conditions, conjunction) {
  9083. var t1 = A.List_List$unmodifiable(conditions, type$.String);
  9084. if (t1.length > 1 && conjunction == null)
  9085. A.throwExpression(A.ArgumentError$(string$.If_con, null));
  9086. return new A.CssMediaQuery(null, null, conjunction !== false, t1);
  9087. },
  9088. CssMediaQuery: function CssMediaQuery(t0, t1, t2, t3) {
  9089. var _ = this;
  9090. _.modifier = t0;
  9091. _.type = t1;
  9092. _.conjunction = t2;
  9093. _.conditions = t3;
  9094. },
  9095. _SingletonCssMediaQueryMergeResult: function _SingletonCssMediaQueryMergeResult(t0) {
  9096. this._name = t0;
  9097. },
  9098. MediaQuerySuccessfulMergeResult: function MediaQuerySuccessfulMergeResult(t0) {
  9099. this.query = t0;
  9100. },
  9101. ModifiableCssAtRule$($name, span, childless, value) {
  9102. var t1 = A._setArrayType([], type$.JSArray_ModifiableCssNode);
  9103. return new A.ModifiableCssAtRule($name, value, childless, span, new A.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode), t1);
  9104. },
  9105. ModifiableCssAtRule: function ModifiableCssAtRule(t0, t1, t2, t3, t4, t5) {
  9106. var _ = this;
  9107. _.name = t0;
  9108. _.value = t1;
  9109. _.isChildless = t2;
  9110. _.span = t3;
  9111. _.children = t4;
  9112. _._children = t5;
  9113. _._indexInParent = _._parent = null;
  9114. _.isGroupEnd = false;
  9115. },
  9116. ModifiableCssComment: function ModifiableCssComment(t0, t1) {
  9117. var _ = this;
  9118. _.text = t0;
  9119. _.span = t1;
  9120. _._indexInParent = _._parent = null;
  9121. _.isGroupEnd = false;
  9122. },
  9123. ModifiableCssDeclaration$($name, value, span, interleavedRules, parsedAsCustomProperty, trace, valueSpanForMap) {
  9124. var t3,
  9125. t1 = interleavedRules == null ? B.List_empty11 : A.List_List$unmodifiable(interleavedRules, type$.CssStyleRule),
  9126. t2 = valueSpanForMap == null ? value.span : valueSpanForMap;
  9127. if (parsedAsCustomProperty)
  9128. if (!J.startsWith$1$s($name.value, "--"))
  9129. A.throwExpression(A.ArgumentError$(string$.parsed, null));
  9130. else {
  9131. t3 = value.value;
  9132. if (!(t3 instanceof A.SassString))
  9133. A.throwExpression(A.ArgumentError$(string$.If_par + value.toString$0(0) + "` of type " + A.getRuntimeTypeOfDartObject(t3).toString$0(0) + ").", null));
  9134. }
  9135. return new A.ModifiableCssDeclaration($name, value, parsedAsCustomProperty, t1, trace, t2, span);
  9136. },
  9137. ModifiableCssDeclaration: function ModifiableCssDeclaration(t0, t1, t2, t3, t4, t5, t6) {
  9138. var _ = this;
  9139. _.name = t0;
  9140. _.value = t1;
  9141. _.parsedAsCustomProperty = t2;
  9142. _.interleavedRules = t3;
  9143. _.trace = t4;
  9144. _.valueSpanForMap = t5;
  9145. _.span = t6;
  9146. _._indexInParent = _._parent = null;
  9147. _.isGroupEnd = false;
  9148. },
  9149. ModifiableCssImport: function ModifiableCssImport(t0, t1, t2) {
  9150. var _ = this;
  9151. _.url = t0;
  9152. _.modifiers = t1;
  9153. _.span = t2;
  9154. _._indexInParent = _._parent = null;
  9155. _.isGroupEnd = false;
  9156. },
  9157. ModifiableCssKeyframeBlock$(selector, span) {
  9158. var t1 = A._setArrayType([], type$.JSArray_ModifiableCssNode);
  9159. return new A.ModifiableCssKeyframeBlock(selector, span, new A.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode), t1);
  9160. },
  9161. ModifiableCssKeyframeBlock: function ModifiableCssKeyframeBlock(t0, t1, t2, t3) {
  9162. var _ = this;
  9163. _.selector = t0;
  9164. _.span = t1;
  9165. _.children = t2;
  9166. _._children = t3;
  9167. _._indexInParent = _._parent = null;
  9168. _.isGroupEnd = false;
  9169. },
  9170. ModifiableCssMediaRule$(queries, span) {
  9171. var t1 = A.List_List$unmodifiable(queries, type$.CssMediaQuery),
  9172. t2 = A._setArrayType([], type$.JSArray_ModifiableCssNode);
  9173. if (J.get$isEmpty$asx(queries))
  9174. A.throwExpression(A.ArgumentError$value(queries, "queries", "may not be empty."));
  9175. return new A.ModifiableCssMediaRule(t1, span, new A.UnmodifiableListView(t2, type$.UnmodifiableListView_ModifiableCssNode), t2);
  9176. },
  9177. ModifiableCssMediaRule: function ModifiableCssMediaRule(t0, t1, t2, t3) {
  9178. var _ = this;
  9179. _.queries = t0;
  9180. _.span = t1;
  9181. _.children = t2;
  9182. _._children = t3;
  9183. _._indexInParent = _._parent = null;
  9184. _.isGroupEnd = false;
  9185. },
  9186. ModifiableCssNode: function ModifiableCssNode() {
  9187. },
  9188. ModifiableCssNode_hasFollowingSibling_closure: function ModifiableCssNode_hasFollowingSibling_closure() {
  9189. },
  9190. ModifiableCssParentNode: function ModifiableCssParentNode() {
  9191. },
  9192. ModifiableCssStyleRule$(_selector, span, fromPlainCss, originalSelector) {
  9193. var t1 = A._setArrayType([], type$.JSArray_ModifiableCssNode);
  9194. return new A.ModifiableCssStyleRule(_selector, originalSelector, span, fromPlainCss, new A.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode), t1);
  9195. },
  9196. ModifiableCssStyleRule: function ModifiableCssStyleRule(t0, t1, t2, t3, t4, t5) {
  9197. var _ = this;
  9198. _._style_rule$_selector = t0;
  9199. _.originalSelector = t1;
  9200. _.span = t2;
  9201. _.fromPlainCss = t3;
  9202. _.children = t4;
  9203. _._children = t5;
  9204. _._indexInParent = _._parent = null;
  9205. _.isGroupEnd = false;
  9206. },
  9207. ModifiableCssStylesheet$(span) {
  9208. var t1 = A._setArrayType([], type$.JSArray_ModifiableCssNode);
  9209. return new A.ModifiableCssStylesheet(span, new A.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode), t1);
  9210. },
  9211. ModifiableCssStylesheet: function ModifiableCssStylesheet(t0, t1, t2) {
  9212. var _ = this;
  9213. _.span = t0;
  9214. _.children = t1;
  9215. _._children = t2;
  9216. _._indexInParent = _._parent = null;
  9217. _.isGroupEnd = false;
  9218. },
  9219. ModifiableCssSupportsRule$(condition, span) {
  9220. var t1 = A._setArrayType([], type$.JSArray_ModifiableCssNode);
  9221. return new A.ModifiableCssSupportsRule(condition, span, new A.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode), t1);
  9222. },
  9223. ModifiableCssSupportsRule: function ModifiableCssSupportsRule(t0, t1, t2, t3) {
  9224. var _ = this;
  9225. _.condition = t0;
  9226. _.span = t1;
  9227. _.children = t2;
  9228. _._children = t3;
  9229. _._indexInParent = _._parent = null;
  9230. _.isGroupEnd = false;
  9231. },
  9232. CssNode: function CssNode() {
  9233. },
  9234. CssParentNode: function CssParentNode() {
  9235. },
  9236. _IsInvisibleVisitor: function _IsInvisibleVisitor(t0, t1) {
  9237. this.includeBogus = t0;
  9238. this.includeComments = t1;
  9239. },
  9240. __IsInvisibleVisitor_Object_EveryCssVisitor: function __IsInvisibleVisitor_Object_EveryCssVisitor() {
  9241. },
  9242. CssStylesheet: function CssStylesheet(t0, t1) {
  9243. this.children = t0;
  9244. this.span = t1;
  9245. },
  9246. CssValue: function CssValue(t0, t1, t2) {
  9247. this.value = t0;
  9248. this.span = t1;
  9249. this.$ti = t2;
  9250. },
  9251. _FakeAstNode: function _FakeAstNode(t0) {
  9252. this._callback = t0;
  9253. },
  9254. Argument: function Argument(t0, t1, t2) {
  9255. this.name = t0;
  9256. this.defaultValue = t1;
  9257. this.span = t2;
  9258. },
  9259. ArgumentDeclaration_ArgumentDeclaration$parse(contents, url) {
  9260. return A.ScssParser$(contents, url).parseArgumentDeclaration$0();
  9261. },
  9262. ArgumentDeclaration: function ArgumentDeclaration(t0, t1, t2) {
  9263. this.$arguments = t0;
  9264. this.restArgument = t1;
  9265. this.span = t2;
  9266. },
  9267. ArgumentDeclaration_verify_closure: function ArgumentDeclaration_verify_closure() {
  9268. },
  9269. ArgumentDeclaration_verify_closure0: function ArgumentDeclaration_verify_closure0() {
  9270. },
  9271. ArgumentInvocation$empty(span) {
  9272. return new A.ArgumentInvocation(B.List_empty9, B.Map_empty6, null, null, span);
  9273. },
  9274. ArgumentInvocation: function ArgumentInvocation(t0, t1, t2, t3, t4) {
  9275. var _ = this;
  9276. _.positional = t0;
  9277. _.named = t1;
  9278. _.rest = t2;
  9279. _.keywordRest = t3;
  9280. _.span = t4;
  9281. },
  9282. AtRootQuery: function AtRootQuery(t0, t1, t2, t3) {
  9283. var _ = this;
  9284. _.include = t0;
  9285. _.names = t1;
  9286. _._all = t2;
  9287. _._at_root_query$_rule = t3;
  9288. },
  9289. ConfiguredVariable: function ConfiguredVariable(t0, t1, t2, t3) {
  9290. var _ = this;
  9291. _.name = t0;
  9292. _.expression = t1;
  9293. _.isGuarded = t2;
  9294. _.span = t3;
  9295. },
  9296. Expression: function Expression() {
  9297. },
  9298. BinaryOperationExpression: function BinaryOperationExpression(t0, t1, t2, t3) {
  9299. var _ = this;
  9300. _.operator = t0;
  9301. _.left = t1;
  9302. _.right = t2;
  9303. _.allowsSlash = t3;
  9304. },
  9305. BinaryOperator: function BinaryOperator(t0, t1, t2, t3, t4) {
  9306. var _ = this;
  9307. _.name = t0;
  9308. _.operator = t1;
  9309. _.precedence = t2;
  9310. _.isAssociative = t3;
  9311. _._name = t4;
  9312. },
  9313. BooleanExpression: function BooleanExpression(t0, t1) {
  9314. this.value = t0;
  9315. this.span = t1;
  9316. },
  9317. ColorExpression: function ColorExpression(t0, t1) {
  9318. this.value = t0;
  9319. this.span = t1;
  9320. },
  9321. FunctionExpression: function FunctionExpression(t0, t1, t2, t3, t4) {
  9322. var _ = this;
  9323. _.namespace = t0;
  9324. _.name = t1;
  9325. _.originalName = t2;
  9326. _.$arguments = t3;
  9327. _.span = t4;
  9328. },
  9329. IfExpression: function IfExpression(t0, t1) {
  9330. this.$arguments = t0;
  9331. this.span = t1;
  9332. },
  9333. InterpolatedFunctionExpression: function InterpolatedFunctionExpression(t0, t1, t2) {
  9334. this.name = t0;
  9335. this.$arguments = t1;
  9336. this.span = t2;
  9337. },
  9338. ListExpression: function ListExpression(t0, t1, t2, t3) {
  9339. var _ = this;
  9340. _.contents = t0;
  9341. _.separator = t1;
  9342. _.hasBrackets = t2;
  9343. _.span = t3;
  9344. },
  9345. ListExpression_toString_closure: function ListExpression_toString_closure(t0) {
  9346. this.$this = t0;
  9347. },
  9348. MapExpression: function MapExpression(t0, t1) {
  9349. this.pairs = t0;
  9350. this.span = t1;
  9351. },
  9352. NullExpression: function NullExpression(t0) {
  9353. this.span = t0;
  9354. },
  9355. NumberExpression: function NumberExpression(t0, t1, t2) {
  9356. this.value = t0;
  9357. this.unit = t1;
  9358. this.span = t2;
  9359. },
  9360. ParenthesizedExpression: function ParenthesizedExpression(t0, t1) {
  9361. this.expression = t0;
  9362. this.span = t1;
  9363. },
  9364. SelectorExpression: function SelectorExpression(t0) {
  9365. this.span = t0;
  9366. },
  9367. StringExpression_quoteText(text) {
  9368. var t1,
  9369. quote = A.StringExpression__bestQuote(A._setArrayType([text], type$.JSArray_String)),
  9370. buffer = new A.StringBuffer("");
  9371. buffer._contents = "" + A.Primitives_stringFromCharCode(quote);
  9372. A.StringExpression__quoteInnerText(text, quote, buffer, true);
  9373. t1 = A.Primitives_stringFromCharCode(quote);
  9374. t1 = buffer._contents += t1;
  9375. return t1.charCodeAt(0) == 0 ? t1 : t1;
  9376. },
  9377. StringExpression__quoteInnerText(text, quote, buffer, $static) {
  9378. var t1, t2, i, _1_0, _0_0, t3, t4, t5, t0;
  9379. for (t1 = text.length, t2 = t1 - 1, i = 0; i < t1; ++i) {
  9380. _1_0 = text.charCodeAt(i);
  9381. if (_1_0 === 10 || _1_0 === 13 || _1_0 === 12) {
  9382. buffer.writeCharCode$1(92);
  9383. buffer.writeCharCode$1(97);
  9384. if (i !== t2) {
  9385. _0_0 = text.charCodeAt(i + 1);
  9386. t3 = true;
  9387. if (!(_0_0 === 32 || _0_0 === 9 || _0_0 === 10 || _0_0 === 13 || _0_0 === 12))
  9388. if (!(_0_0 >= 48 && _0_0 <= 57))
  9389. if (!(_0_0 >= 97 && _0_0 <= 102))
  9390. t3 = _0_0 >= 65 && _0_0 <= 70;
  9391. if (t3)
  9392. buffer.writeCharCode$1(32);
  9393. }
  9394. continue;
  9395. }
  9396. t3 = 92 === _1_0;
  9397. if (t3)
  9398. t4 = _1_0;
  9399. else
  9400. t4 = null;
  9401. if (!t3) {
  9402. t3 = false;
  9403. t5 = _1_0 === quote;
  9404. if (t5)
  9405. t4 = _1_0;
  9406. if (!t5)
  9407. if (35 === _1_0)
  9408. if ($static)
  9409. if (i < t2) {
  9410. t3 = text.charCodeAt(i + 1) === 123;
  9411. if (t3)
  9412. t4 = _1_0;
  9413. t0 = t4;
  9414. t4 = t3;
  9415. t3 = t0;
  9416. } else {
  9417. t0 = t4;
  9418. t4 = t3;
  9419. t3 = t0;
  9420. }
  9421. else {
  9422. t0 = t4;
  9423. t4 = t3;
  9424. t3 = t0;
  9425. }
  9426. else {
  9427. t0 = t4;
  9428. t4 = t3;
  9429. t3 = t0;
  9430. }
  9431. else {
  9432. t3 = t4;
  9433. t4 = true;
  9434. }
  9435. } else {
  9436. t3 = t4;
  9437. t4 = true;
  9438. }
  9439. if (t4) {
  9440. buffer.writeCharCode$1(92);
  9441. buffer.writeCharCode$1(t3);
  9442. continue;
  9443. }
  9444. buffer.writeCharCode$1(_1_0);
  9445. }
  9446. },
  9447. StringExpression__bestQuote(strings) {
  9448. var t1, t2, t3, containsDoubleQuote, t4, t5;
  9449. for (t1 = J.get$iterator$ax(strings), t2 = type$.CodeUnits, t3 = t2._eval$1("ListIterator<ListBase.E>"), t2 = t2._eval$1("ListBase.E"), containsDoubleQuote = false; t1.moveNext$0();)
  9450. for (t4 = new A.CodeUnits(t1.get$current(t1)), t4 = new A.ListIterator(t4, t4.get$length(0), t3); t4.moveNext$0();) {
  9451. t5 = t4.__internal$_current;
  9452. if (t5 == null)
  9453. t5 = t2._as(t5);
  9454. if (t5 === 39)
  9455. return 34;
  9456. if (t5 === 34)
  9457. containsDoubleQuote = true;
  9458. }
  9459. return containsDoubleQuote ? 39 : 34;
  9460. },
  9461. StringExpression: function StringExpression(t0, t1) {
  9462. this.text = t0;
  9463. this.hasQuotes = t1;
  9464. },
  9465. SupportsExpression: function SupportsExpression(t0) {
  9466. this.condition = t0;
  9467. },
  9468. UnaryOperationExpression: function UnaryOperationExpression(t0, t1, t2) {
  9469. this.operator = t0;
  9470. this.operand = t1;
  9471. this.span = t2;
  9472. },
  9473. UnaryOperator: function UnaryOperator(t0, t1, t2) {
  9474. this.name = t0;
  9475. this.operator = t1;
  9476. this._name = t2;
  9477. },
  9478. ValueExpression: function ValueExpression(t0, t1) {
  9479. this.value = t0;
  9480. this.span = t1;
  9481. },
  9482. VariableExpression: function VariableExpression(t0, t1, t2) {
  9483. this.namespace = t0;
  9484. this.name = t1;
  9485. this.span = t2;
  9486. },
  9487. DynamicImport: function DynamicImport(t0, t1) {
  9488. this.urlString = t0;
  9489. this.span = t1;
  9490. },
  9491. StaticImport: function StaticImport(t0, t1, t2) {
  9492. this.url = t0;
  9493. this.modifiers = t1;
  9494. this.span = t2;
  9495. },
  9496. Interpolation$(contents, spans, span) {
  9497. var t1 = new A.Interpolation(A.List_List$unmodifiable(contents, type$.Object), A.List_List$unmodifiable(spans, type$.nullable_FileSpan), span);
  9498. t1.Interpolation$3(contents, spans, span);
  9499. return t1;
  9500. },
  9501. Interpolation: function Interpolation(t0, t1, t2) {
  9502. this.contents = t0;
  9503. this.spans = t1;
  9504. this.span = t2;
  9505. },
  9506. Interpolation_toString_closure: function Interpolation_toString_closure() {
  9507. },
  9508. Statement: function Statement() {
  9509. },
  9510. AtRootRule$(children, span, query) {
  9511. var t1 = A.List_List$unmodifiable(children, type$.Statement),
  9512. t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure());
  9513. return new A.AtRootRule(query, span, t1, t2);
  9514. },
  9515. AtRootRule: function AtRootRule(t0, t1, t2, t3) {
  9516. var _ = this;
  9517. _.query = t0;
  9518. _.span = t1;
  9519. _.children = t2;
  9520. _.hasDeclarations = t3;
  9521. },
  9522. AtRule$($name, span, children, value) {
  9523. var t1 = children == null ? null : A.List_List$unmodifiable(children, type$.Statement),
  9524. t2 = t1 == null ? null : B.JSArray_methods.any$1(t1, new A.ParentStatement_closure());
  9525. return new A.AtRule($name, value, span, t1, t2 === true);
  9526. },
  9527. AtRule: function AtRule(t0, t1, t2, t3, t4) {
  9528. var _ = this;
  9529. _.name = t0;
  9530. _.value = t1;
  9531. _.span = t2;
  9532. _.children = t3;
  9533. _.hasDeclarations = t4;
  9534. },
  9535. CallableDeclaration: function CallableDeclaration() {
  9536. },
  9537. ContentBlock$($arguments, children, span) {
  9538. var _s8_ = "@content",
  9539. t1 = A.stringReplaceAllUnchecked(_s8_, "_", "-"),
  9540. t2 = A.List_List$unmodifiable(children, type$.Statement),
  9541. t3 = B.JSArray_methods.any$1(t2, new A.ParentStatement_closure());
  9542. return new A.ContentBlock(t1, _s8_, $arguments, span, t2, t3);
  9543. },
  9544. ContentBlock: function ContentBlock(t0, t1, t2, t3, t4, t5) {
  9545. var _ = this;
  9546. _.name = t0;
  9547. _.originalName = t1;
  9548. _.$arguments = t2;
  9549. _.span = t3;
  9550. _.children = t4;
  9551. _.hasDeclarations = t5;
  9552. },
  9553. ContentRule: function ContentRule(t0, t1) {
  9554. this.$arguments = t0;
  9555. this.span = t1;
  9556. },
  9557. DebugRule: function DebugRule(t0, t1) {
  9558. this.expression = t0;
  9559. this.span = t1;
  9560. },
  9561. Declaration$($name, value, span) {
  9562. return new A.Declaration($name, value, span, null, false);
  9563. },
  9564. Declaration$nested($name, children, span, value) {
  9565. var t1 = A.List_List$unmodifiable(children, type$.Statement),
  9566. t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure());
  9567. return new A.Declaration($name, value, span, t1, t2);
  9568. },
  9569. Declaration: function Declaration(t0, t1, t2, t3, t4) {
  9570. var _ = this;
  9571. _.name = t0;
  9572. _.value = t1;
  9573. _.span = t2;
  9574. _.children = t3;
  9575. _.hasDeclarations = t4;
  9576. },
  9577. EachRule$(variables, list, children, span) {
  9578. var t1 = A.List_List$unmodifiable(variables, type$.String),
  9579. t2 = A.List_List$unmodifiable(children, type$.Statement),
  9580. t3 = B.JSArray_methods.any$1(t2, new A.ParentStatement_closure());
  9581. return new A.EachRule(t1, list, span, t2, t3);
  9582. },
  9583. EachRule: function EachRule(t0, t1, t2, t3, t4) {
  9584. var _ = this;
  9585. _.variables = t0;
  9586. _.list = t1;
  9587. _.span = t2;
  9588. _.children = t3;
  9589. _.hasDeclarations = t4;
  9590. },
  9591. EachRule_toString_closure: function EachRule_toString_closure() {
  9592. },
  9593. ErrorRule: function ErrorRule(t0, t1) {
  9594. this.expression = t0;
  9595. this.span = t1;
  9596. },
  9597. ExtendRule: function ExtendRule(t0, t1, t2) {
  9598. this.selector = t0;
  9599. this.isOptional = t1;
  9600. this.span = t2;
  9601. },
  9602. ForRule$(variable, from, to, children, span, exclusive) {
  9603. var t1 = A.List_List$unmodifiable(children, type$.Statement),
  9604. t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure());
  9605. return new A.ForRule(variable, from, to, exclusive, span, t1, t2);
  9606. },
  9607. ForRule: function ForRule(t0, t1, t2, t3, t4, t5, t6) {
  9608. var _ = this;
  9609. _.variable = t0;
  9610. _.from = t1;
  9611. _.to = t2;
  9612. _.isExclusive = t3;
  9613. _.span = t4;
  9614. _.children = t5;
  9615. _.hasDeclarations = t6;
  9616. },
  9617. ForwardRule: function ForwardRule(t0, t1, t2, t3, t4, t5, t6, t7) {
  9618. var _ = this;
  9619. _.url = t0;
  9620. _.shownMixinsAndFunctions = t1;
  9621. _.shownVariables = t2;
  9622. _.hiddenMixinsAndFunctions = t3;
  9623. _.hiddenVariables = t4;
  9624. _.prefix = t5;
  9625. _.configuration = t6;
  9626. _.span = t7;
  9627. },
  9628. FunctionRule$($name, $arguments, children, span, comment) {
  9629. var t1 = A.stringReplaceAllUnchecked($name, "_", "-"),
  9630. t2 = A.List_List$unmodifiable(children, type$.Statement),
  9631. t3 = B.JSArray_methods.any$1(t2, new A.ParentStatement_closure());
  9632. return new A.FunctionRule(t1, $name, $arguments, span, t2, t3);
  9633. },
  9634. FunctionRule: function FunctionRule(t0, t1, t2, t3, t4, t5) {
  9635. var _ = this;
  9636. _.name = t0;
  9637. _.originalName = t1;
  9638. _.$arguments = t2;
  9639. _.span = t3;
  9640. _.children = t4;
  9641. _.hasDeclarations = t5;
  9642. },
  9643. IfClause$(expression, children) {
  9644. var t1 = A.List_List$unmodifiable(children, type$.Statement);
  9645. return new A.IfClause(expression, t1, B.JSArray_methods.any$1(t1, new A.IfRuleClause$__closure()));
  9646. },
  9647. ElseClause$(children) {
  9648. var t1 = A.List_List$unmodifiable(children, type$.Statement);
  9649. return new A.ElseClause(t1, B.JSArray_methods.any$1(t1, new A.IfRuleClause$__closure()));
  9650. },
  9651. IfRule: function IfRule(t0, t1, t2) {
  9652. this.clauses = t0;
  9653. this.lastClause = t1;
  9654. this.span = t2;
  9655. },
  9656. IfRule_toString_closure: function IfRule_toString_closure() {
  9657. },
  9658. IfRuleClause: function IfRuleClause() {
  9659. },
  9660. IfRuleClause$__closure: function IfRuleClause$__closure() {
  9661. },
  9662. IfRuleClause$___closure: function IfRuleClause$___closure() {
  9663. },
  9664. IfClause: function IfClause(t0, t1, t2) {
  9665. this.expression = t0;
  9666. this.children = t1;
  9667. this.hasDeclarations = t2;
  9668. },
  9669. ElseClause: function ElseClause(t0, t1) {
  9670. this.children = t0;
  9671. this.hasDeclarations = t1;
  9672. },
  9673. ImportRule: function ImportRule(t0, t1) {
  9674. this.imports = t0;
  9675. this.span = t1;
  9676. },
  9677. IncludeRule: function IncludeRule(t0, t1, t2, t3, t4, t5) {
  9678. var _ = this;
  9679. _.namespace = t0;
  9680. _.name = t1;
  9681. _.originalName = t2;
  9682. _.$arguments = t3;
  9683. _.content = t4;
  9684. _.span = t5;
  9685. },
  9686. LoudComment: function LoudComment(t0) {
  9687. this.text = t0;
  9688. },
  9689. MediaRule$(query, children, span) {
  9690. var t1 = A.List_List$unmodifiable(children, type$.Statement),
  9691. t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure());
  9692. return new A.MediaRule(query, span, t1, t2);
  9693. },
  9694. MediaRule: function MediaRule(t0, t1, t2, t3) {
  9695. var _ = this;
  9696. _.query = t0;
  9697. _.span = t1;
  9698. _.children = t2;
  9699. _.hasDeclarations = t3;
  9700. },
  9701. MixinRule$($name, $arguments, children, span, comment) {
  9702. var t1 = A.stringReplaceAllUnchecked($name, "_", "-"),
  9703. t2 = A.List_List$unmodifiable(children, type$.Statement),
  9704. t3 = B.JSArray_methods.any$1(t2, new A.ParentStatement_closure());
  9705. return new A.MixinRule(t1, $name, $arguments, span, t2, t3);
  9706. },
  9707. MixinRule: function MixinRule(t0, t1, t2, t3, t4, t5) {
  9708. var _ = this;
  9709. _.__MixinRule_hasContent_FI = $;
  9710. _.name = t0;
  9711. _.originalName = t1;
  9712. _.$arguments = t2;
  9713. _.span = t3;
  9714. _.children = t4;
  9715. _.hasDeclarations = t5;
  9716. },
  9717. _HasContentVisitor: function _HasContentVisitor() {
  9718. },
  9719. __HasContentVisitor_Object_StatementSearchVisitor: function __HasContentVisitor_Object_StatementSearchVisitor() {
  9720. },
  9721. ParentStatement: function ParentStatement() {
  9722. },
  9723. ParentStatement_closure: function ParentStatement_closure() {
  9724. },
  9725. ParentStatement__closure: function ParentStatement__closure() {
  9726. },
  9727. ReturnRule: function ReturnRule(t0, t1) {
  9728. this.expression = t0;
  9729. this.span = t1;
  9730. },
  9731. SilentComment: function SilentComment(t0, t1) {
  9732. this.text = t0;
  9733. this.span = t1;
  9734. },
  9735. StyleRule$(selector, children, span) {
  9736. var t1 = A.List_List$unmodifiable(children, type$.Statement),
  9737. t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure());
  9738. return new A.StyleRule(selector, span, t1, t2);
  9739. },
  9740. StyleRule: function StyleRule(t0, t1, t2, t3) {
  9741. var _ = this;
  9742. _.selector = t0;
  9743. _.span = t1;
  9744. _.children = t2;
  9745. _.hasDeclarations = t3;
  9746. },
  9747. Stylesheet$(children, span) {
  9748. var t1 = A._setArrayType([], type$.JSArray_Record_3_nullable_Deprecation_deprecation_and_String_message_and_FileSpan_span),
  9749. t2 = A._setArrayType([], type$.JSArray_UseRule),
  9750. t3 = A._setArrayType([], type$.JSArray_ForwardRule),
  9751. t4 = A.List_List$unmodifiable(children, type$.Statement),
  9752. t5 = B.JSArray_methods.any$1(t4, new A.ParentStatement_closure());
  9753. t2 = new A.Stylesheet(span, false, t2, t3, new A.UnmodifiableListView(t1, type$.UnmodifiableListView_Record_3_nullable_Deprecation_deprecation_and_String_message_and_FileSpan_span), t4, t5);
  9754. t2.Stylesheet$internal$4$plainCss(children, span, t1, false);
  9755. return t2;
  9756. },
  9757. Stylesheet$internal(children, span, parseTimeWarnings, plainCss) {
  9758. var t1 = A._setArrayType([], type$.JSArray_UseRule),
  9759. t2 = A._setArrayType([], type$.JSArray_ForwardRule),
  9760. t3 = A.List_List$unmodifiable(children, type$.Statement),
  9761. t4 = B.JSArray_methods.any$1(t3, new A.ParentStatement_closure());
  9762. t1 = new A.Stylesheet(span, plainCss, t1, t2, new A.UnmodifiableListView(parseTimeWarnings, type$.UnmodifiableListView_Record_3_nullable_Deprecation_deprecation_and_String_message_and_FileSpan_span), t3, t4);
  9763. t1.Stylesheet$internal$4$plainCss(children, span, parseTimeWarnings, plainCss);
  9764. return t1;
  9765. },
  9766. Stylesheet_Stylesheet$parse(contents, syntax, url) {
  9767. var error, stackTrace, url0, t1, exception, t2;
  9768. try {
  9769. switch (syntax) {
  9770. case B.Syntax_Sass_sass:
  9771. t1 = new A.SassParser(A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration), A._setArrayType([], type$.JSArray_Record_3_nullable_Deprecation_deprecation_and_String_message_and_FileSpan_span), A.SpanScanner$(contents, url), null).parse$0(0);
  9772. return t1;
  9773. case B.Syntax_SCSS_scss:
  9774. t1 = A.ScssParser$(contents, url).parse$0(0);
  9775. return t1;
  9776. case B.Syntax_CSS_css:
  9777. t1 = new A.CssParser(A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration), A._setArrayType([], type$.JSArray_Record_3_nullable_Deprecation_deprecation_and_String_message_and_FileSpan_span), A.SpanScanner$(contents, url), null).parse$0(0);
  9778. return t1;
  9779. }
  9780. } catch (exception) {
  9781. t1 = A.unwrapException(exception);
  9782. if (t1 instanceof A.SassException) {
  9783. error = t1;
  9784. stackTrace = A.getTraceFromException(exception);
  9785. t1 = error;
  9786. t2 = J.getInterceptor$z(t1);
  9787. t1 = A.SourceSpanException.prototype.get$span.call(t2, t1);
  9788. url0 = t1.get$sourceUrl(t1);
  9789. if (url0 == null || J.toString$0$(url0) === "stdin")
  9790. throw exception;
  9791. t1 = type$.Uri;
  9792. throw A.wrapException(A.throwWithTrace(error.withLoadedUrls$1(A.Set_Set$unmodifiable(A.LinkedHashSet_LinkedHashSet$_literal([url0], t1), t1)), error, stackTrace));
  9793. } else
  9794. throw exception;
  9795. }
  9796. },
  9797. Stylesheet: function Stylesheet(t0, t1, t2, t3, t4, t5, t6) {
  9798. var _ = this;
  9799. _.span = t0;
  9800. _.plainCss = t1;
  9801. _._uses = t2;
  9802. _._forwards = t3;
  9803. _.parseTimeWarnings = t4;
  9804. _.children = t5;
  9805. _.hasDeclarations = t6;
  9806. },
  9807. SupportsRule$(condition, children, span) {
  9808. var t1 = A.List_List$unmodifiable(children, type$.Statement),
  9809. t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure());
  9810. return new A.SupportsRule(condition, span, t1, t2);
  9811. },
  9812. SupportsRule: function SupportsRule(t0, t1, t2, t3) {
  9813. var _ = this;
  9814. _.condition = t0;
  9815. _.span = t1;
  9816. _.children = t2;
  9817. _.hasDeclarations = t3;
  9818. },
  9819. UseRule: function UseRule(t0, t1, t2, t3) {
  9820. var _ = this;
  9821. _.url = t0;
  9822. _.namespace = t1;
  9823. _.configuration = t2;
  9824. _.span = t3;
  9825. },
  9826. VariableDeclaration$($name, expression, span, comment, global, guarded, namespace) {
  9827. if (namespace != null && global)
  9828. A.throwExpression(A.ArgumentError$(string$.Other_, null));
  9829. return new A.VariableDeclaration(namespace, $name, expression, guarded, global, span);
  9830. },
  9831. VariableDeclaration: function VariableDeclaration(t0, t1, t2, t3, t4, t5) {
  9832. var _ = this;
  9833. _.namespace = t0;
  9834. _.name = t1;
  9835. _.expression = t2;
  9836. _.isGuarded = t3;
  9837. _.isGlobal = t4;
  9838. _.span = t5;
  9839. },
  9840. WarnRule: function WarnRule(t0, t1) {
  9841. this.expression = t0;
  9842. this.span = t1;
  9843. },
  9844. WhileRule$(condition, children, span) {
  9845. var t1 = A.List_List$unmodifiable(children, type$.Statement),
  9846. t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure());
  9847. return new A.WhileRule(condition, span, t1, t2);
  9848. },
  9849. WhileRule: function WhileRule(t0, t1, t2, t3) {
  9850. var _ = this;
  9851. _.condition = t0;
  9852. _.span = t1;
  9853. _.children = t2;
  9854. _.hasDeclarations = t3;
  9855. },
  9856. SupportsAnything: function SupportsAnything(t0, t1) {
  9857. this.contents = t0;
  9858. this.span = t1;
  9859. },
  9860. SupportsDeclaration: function SupportsDeclaration(t0, t1, t2) {
  9861. this.name = t0;
  9862. this.value = t1;
  9863. this.span = t2;
  9864. },
  9865. SupportsFunction: function SupportsFunction(t0, t1, t2) {
  9866. this.name = t0;
  9867. this.$arguments = t1;
  9868. this.span = t2;
  9869. },
  9870. SupportsInterpolation: function SupportsInterpolation(t0, t1) {
  9871. this.expression = t0;
  9872. this.span = t1;
  9873. },
  9874. SupportsNegation: function SupportsNegation(t0, t1) {
  9875. this.condition = t0;
  9876. this.span = t1;
  9877. },
  9878. SupportsOperation$(left, right, operator, span) {
  9879. var lowerOperator = operator.toLowerCase();
  9880. if (lowerOperator !== "and" && lowerOperator !== "or")
  9881. A.throwExpression(A.ArgumentError$value(operator, "operator", 'may only be "and" or "or".'));
  9882. return new A.SupportsOperation(left, right, operator, span);
  9883. },
  9884. SupportsOperation: function SupportsOperation(t0, t1, t2, t3) {
  9885. var _ = this;
  9886. _.left = t0;
  9887. _.right = t1;
  9888. _.operator = t2;
  9889. _.span = t3;
  9890. },
  9891. Selector: function Selector() {
  9892. },
  9893. _IsInvisibleVisitor0: function _IsInvisibleVisitor0(t0) {
  9894. this.includeBogus = t0;
  9895. },
  9896. _IsBogusVisitor: function _IsBogusVisitor(t0) {
  9897. this.includeLeadingCombinator = t0;
  9898. },
  9899. _IsBogusVisitor_visitComplexSelector_closure: function _IsBogusVisitor_visitComplexSelector_closure(t0) {
  9900. this.$this = t0;
  9901. },
  9902. _IsUselessVisitor: function _IsUselessVisitor() {
  9903. },
  9904. _IsUselessVisitor_visitComplexSelector_closure: function _IsUselessVisitor_visitComplexSelector_closure(t0) {
  9905. this.$this = t0;
  9906. },
  9907. __IsBogusVisitor_Object_AnySelectorVisitor: function __IsBogusVisitor_Object_AnySelectorVisitor() {
  9908. },
  9909. __IsInvisibleVisitor_Object_AnySelectorVisitor: function __IsInvisibleVisitor_Object_AnySelectorVisitor() {
  9910. },
  9911. __IsUselessVisitor_Object_AnySelectorVisitor: function __IsUselessVisitor_Object_AnySelectorVisitor() {
  9912. },
  9913. AttributeSelector: function AttributeSelector(t0, t1, t2, t3, t4) {
  9914. var _ = this;
  9915. _.name = t0;
  9916. _.op = t1;
  9917. _.value = t2;
  9918. _.modifier = t3;
  9919. _.span = t4;
  9920. },
  9921. AttributeOperator: function AttributeOperator(t0, t1) {
  9922. this._attribute$_text = t0;
  9923. this._name = t1;
  9924. },
  9925. ClassSelector: function ClassSelector(t0, t1) {
  9926. this.name = t0;
  9927. this.span = t1;
  9928. },
  9929. Combinator: function Combinator(t0, t1) {
  9930. this._combinator$_text = t0;
  9931. this._name = t1;
  9932. },
  9933. ComplexSelector$(leadingCombinators, components, span, lineBreak) {
  9934. var t1 = A.List_List$unmodifiable(leadingCombinators, type$.CssValue_Combinator),
  9935. t2 = A.List_List$unmodifiable(components, type$.ComplexSelectorComponent);
  9936. if (t1.length === 0 && t2.length === 0)
  9937. A.throwExpression(A.ArgumentError$(string$.leadin, null));
  9938. return new A.ComplexSelector(t1, t2, lineBreak, span);
  9939. },
  9940. ComplexSelector: function ComplexSelector(t0, t1, t2, t3) {
  9941. var _ = this;
  9942. _.leadingCombinators = t0;
  9943. _.components = t1;
  9944. _.lineBreak = t2;
  9945. _.__ComplexSelector_specificity_FI = $;
  9946. _.span = t3;
  9947. },
  9948. ComplexSelector_specificity_closure: function ComplexSelector_specificity_closure() {
  9949. },
  9950. ComplexSelectorComponent: function ComplexSelectorComponent(t0, t1, t2) {
  9951. this.selector = t0;
  9952. this.combinators = t1;
  9953. this.span = t2;
  9954. },
  9955. ComplexSelectorComponent_toString_closure: function ComplexSelectorComponent_toString_closure() {
  9956. },
  9957. CompoundSelector$(components, span) {
  9958. var t1 = A.List_List$unmodifiable(components, type$.SimpleSelector);
  9959. if (t1.length === 0)
  9960. A.throwExpression(A.ArgumentError$("components may not be empty.", null));
  9961. return new A.CompoundSelector(t1, span);
  9962. },
  9963. CompoundSelector: function CompoundSelector(t0, t1) {
  9964. var _ = this;
  9965. _.components = t0;
  9966. _.__CompoundSelector_hasComplicatedSuperselectorSemantics_FI = _.__CompoundSelector_specificity_FI = $;
  9967. _.span = t1;
  9968. },
  9969. CompoundSelector_specificity_closure: function CompoundSelector_specificity_closure() {
  9970. },
  9971. CompoundSelector_hasComplicatedSuperselectorSemantics_closure: function CompoundSelector_hasComplicatedSuperselectorSemantics_closure() {
  9972. },
  9973. IDSelector: function IDSelector(t0, t1) {
  9974. this.name = t0;
  9975. this.span = t1;
  9976. },
  9977. IDSelector_unify_closure: function IDSelector_unify_closure(t0) {
  9978. this.$this = t0;
  9979. },
  9980. SelectorList$(components, span) {
  9981. var t1 = A.List_List$unmodifiable(components, type$.ComplexSelector);
  9982. if (t1.length === 0)
  9983. A.throwExpression(A.ArgumentError$("components may not be empty.", null));
  9984. return new A.SelectorList(t1, span);
  9985. },
  9986. SelectorList_SelectorList$parse(contents, allowParent, interpolationMap, plainCss) {
  9987. return new A.SelectorParser(allowParent, plainCss, A.SpanScanner$(contents, null), interpolationMap).parse$0(0);
  9988. },
  9989. SelectorList: function SelectorList(t0, t1) {
  9990. this.components = t0;
  9991. this.span = t1;
  9992. },
  9993. SelectorList_asSassList_closure: function SelectorList_asSassList_closure() {
  9994. },
  9995. SelectorList_nestWithin_closure: function SelectorList_nestWithin_closure(t0, t1, t2, t3) {
  9996. var _ = this;
  9997. _.$this = t0;
  9998. _.preserveParentSelectors = t1;
  9999. _.implicitParent = t2;
  10000. _.parent = t3;
  10001. },
  10002. SelectorList_nestWithin__closure: function SelectorList_nestWithin__closure(t0) {
  10003. this.complex = t0;
  10004. },
  10005. SelectorList_nestWithin__closure0: function SelectorList_nestWithin__closure0(t0) {
  10006. this.complex = t0;
  10007. },
  10008. SelectorList__nestWithinCompound_closure: function SelectorList__nestWithinCompound_closure() {
  10009. },
  10010. SelectorList__nestWithinCompound_closure0: function SelectorList__nestWithinCompound_closure0(t0) {
  10011. this.parent = t0;
  10012. },
  10013. SelectorList__nestWithinCompound_closure1: function SelectorList__nestWithinCompound_closure1(t0, t1, t2) {
  10014. this.parentSelector = t0;
  10015. this.resolvedSimples = t1;
  10016. this.component = t2;
  10017. },
  10018. SelectorList_withAdditionalCombinators_closure: function SelectorList_withAdditionalCombinators_closure(t0) {
  10019. this.combinators = t0;
  10020. },
  10021. _ParentSelectorVisitor: function _ParentSelectorVisitor() {
  10022. },
  10023. __ParentSelectorVisitor_Object_SelectorSearchVisitor: function __ParentSelectorVisitor_Object_SelectorSearchVisitor() {
  10024. },
  10025. ParentSelector: function ParentSelector(t0, t1) {
  10026. this.suffix = t0;
  10027. this.span = t1;
  10028. },
  10029. PlaceholderSelector: function PlaceholderSelector(t0, t1) {
  10030. this.name = t0;
  10031. this.span = t1;
  10032. },
  10033. PseudoSelector$($name, span, argument, element, selector) {
  10034. var t1 = !element,
  10035. t2 = t1 && !A.PseudoSelector__isFakePseudoElement($name);
  10036. return new A.PseudoSelector($name, A.unvendor($name), t2, t1, argument, selector, span);
  10037. },
  10038. PseudoSelector__isFakePseudoElement($name) {
  10039. switch ($name.charCodeAt(0)) {
  10040. case 97:
  10041. case 65:
  10042. return A.equalsIgnoreCase($name, "after");
  10043. case 98:
  10044. case 66:
  10045. return A.equalsIgnoreCase($name, "before");
  10046. case 102:
  10047. case 70:
  10048. return A.equalsIgnoreCase($name, "first-line") || A.equalsIgnoreCase($name, "first-letter");
  10049. default:
  10050. return false;
  10051. }
  10052. },
  10053. PseudoSelector: function PseudoSelector(t0, t1, t2, t3, t4, t5, t6) {
  10054. var _ = this;
  10055. _.name = t0;
  10056. _.normalizedName = t1;
  10057. _.isClass = t2;
  10058. _.isSyntacticClass = t3;
  10059. _.argument = t4;
  10060. _.selector = t5;
  10061. _.__PseudoSelector_specificity_FI = $;
  10062. _.span = t6;
  10063. },
  10064. PseudoSelector_specificity_closure: function PseudoSelector_specificity_closure(t0) {
  10065. this.$this = t0;
  10066. },
  10067. PseudoSelector_specificity__closure: function PseudoSelector_specificity__closure() {
  10068. },
  10069. PseudoSelector_specificity__closure0: function PseudoSelector_specificity__closure0() {
  10070. },
  10071. PseudoSelector_unify_closure: function PseudoSelector_unify_closure() {
  10072. },
  10073. QualifiedName: function QualifiedName(t0, t1) {
  10074. this.name = t0;
  10075. this.namespace = t1;
  10076. },
  10077. SimpleSelector: function SimpleSelector() {
  10078. },
  10079. SimpleSelector_isSuperselector_closure: function SimpleSelector_isSuperselector_closure(t0) {
  10080. this.$this = t0;
  10081. },
  10082. SimpleSelector_isSuperselector__closure: function SimpleSelector_isSuperselector__closure(t0) {
  10083. this.$this = t0;
  10084. },
  10085. TypeSelector: function TypeSelector(t0, t1) {
  10086. this.name = t0;
  10087. this.span = t1;
  10088. },
  10089. UniversalSelector: function UniversalSelector(t0, t1) {
  10090. this.namespace = t0;
  10091. this.span = t1;
  10092. },
  10093. compileAsync(path, charset, fatalDeprecations, futureDeprecations, importCache, logger, quietDeps, silenceDeprecations, sourceMap, style, syntax, verbose) {
  10094. var $async$goto = 0,
  10095. $async$completer = A._makeAsyncAwaitCompleter(type$.CompileResult),
  10096. $async$returnValue, t3, t4, t0, stylesheet, result, t1, t2;
  10097. var $async$compileAsync = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  10098. if ($async$errorCode === 1)
  10099. return A._asyncRethrow($async$result, $async$completer);
  10100. while (true)
  10101. switch ($async$goto) {
  10102. case 0:
  10103. // Function start
  10104. t1 = type$.Deprecation;
  10105. t2 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
  10106. t2.addAll$1(0, silenceDeprecations);
  10107. t3 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
  10108. t3.addAll$1(0, fatalDeprecations);
  10109. t4 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
  10110. t4.addAll$1(0, futureDeprecations);
  10111. logger = new A.DeprecationProcessingLogger(A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.int), logger, t2, t3, t4, !verbose);
  10112. logger.validate$0();
  10113. t1 = syntax === A.Syntax_forPath(path);
  10114. $async$goto = t1 ? 3 : 5;
  10115. break;
  10116. case 3:
  10117. // then
  10118. t1 = $.$get$FilesystemImporter_cwd();
  10119. t2 = A.isNodeJs() ? self.process : null;
  10120. if (!J.$eq$(t2 == null ? null : J.get$platform$x(t2), "win32")) {
  10121. t2 = A.isNodeJs() ? self.process : null;
  10122. t2 = J.$eq$(t2 == null ? null : J.get$platform$x(t2), "darwin");
  10123. } else
  10124. t2 = true;
  10125. if (t2) {
  10126. t2 = $.$get$context();
  10127. t3 = A._realCasePath(A.absolute(t2.normalize$1(path), null, null, null, null, null, null, null, null, null, null, null, null, null, null));
  10128. t0 = t3;
  10129. t3 = t2;
  10130. t2 = t0;
  10131. } else {
  10132. t2 = $.$get$context();
  10133. t3 = t2.canonicalize$1(0, path);
  10134. t0 = t3;
  10135. t3 = t2;
  10136. t2 = t0;
  10137. }
  10138. $async$goto = 6;
  10139. return A._asyncAwait(importCache.importCanonical$3$originalUrl(t1, t3.toUri$1(t2), t3.toUri$1(path)), $async$compileAsync);
  10140. case 6:
  10141. // returning from await.
  10142. t3 = $async$result;
  10143. t3.toString;
  10144. stylesheet = t3;
  10145. // goto join
  10146. $async$goto = 4;
  10147. break;
  10148. case 5:
  10149. // else
  10150. t1 = A.readFile(path);
  10151. stylesheet = A.Stylesheet_Stylesheet$parse(t1, syntax, $.$get$context().toUri$1(path));
  10152. case 4:
  10153. // join
  10154. $async$goto = 7;
  10155. return A._asyncAwait(A._compileStylesheet0(stylesheet, logger, importCache, null, $.$get$FilesystemImporter_cwd(), null, style, true, null, null, quietDeps, sourceMap, charset), $async$compileAsync);
  10156. case 7:
  10157. // returning from await.
  10158. result = $async$result;
  10159. logger.summarize$1$js(false);
  10160. $async$returnValue = result;
  10161. // goto return
  10162. $async$goto = 1;
  10163. break;
  10164. case 1:
  10165. // return
  10166. return A._asyncReturn($async$returnValue, $async$completer);
  10167. }
  10168. });
  10169. return A._asyncStartSync($async$compileAsync, $async$completer);
  10170. },
  10171. compileStringAsync(source, charset, fatalDeprecations, futureDeprecations, importCache, importer, logger, quietDeps, silenceDeprecations, sourceMap, style, syntax, verbose) {
  10172. var $async$goto = 0,
  10173. $async$completer = A._makeAsyncAwaitCompleter(type$.CompileResult),
  10174. $async$returnValue, t3, t4, stylesheet, result, t1, t2;
  10175. var $async$compileStringAsync = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  10176. if ($async$errorCode === 1)
  10177. return A._asyncRethrow($async$result, $async$completer);
  10178. while (true)
  10179. switch ($async$goto) {
  10180. case 0:
  10181. // Function start
  10182. t1 = type$.Deprecation;
  10183. t2 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
  10184. t2.addAll$1(0, silenceDeprecations);
  10185. t3 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
  10186. t3.addAll$1(0, fatalDeprecations);
  10187. t4 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
  10188. t4.addAll$1(0, futureDeprecations);
  10189. logger = new A.DeprecationProcessingLogger(A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.int), logger, t2, t3, t4, !verbose);
  10190. logger.validate$0();
  10191. stylesheet = A.Stylesheet_Stylesheet$parse(source, syntax, null);
  10192. $async$goto = 3;
  10193. return A._asyncAwait(A._compileStylesheet0(stylesheet, logger, importCache, null, importer, null, style, true, null, null, quietDeps, sourceMap, charset), $async$compileStringAsync);
  10194. case 3:
  10195. // returning from await.
  10196. result = $async$result;
  10197. logger.summarize$1$js(false);
  10198. $async$returnValue = result;
  10199. // goto return
  10200. $async$goto = 1;
  10201. break;
  10202. case 1:
  10203. // return
  10204. return A._asyncReturn($async$returnValue, $async$completer);
  10205. }
  10206. });
  10207. return A._asyncStartSync($async$compileStringAsync, $async$completer);
  10208. },
  10209. _compileStylesheet0(stylesheet, logger, importCache, nodeImporter, importer, functions, style, useSpaces, indentWidth, lineFeed, quietDeps, sourceMap, charset) {
  10210. var $async$goto = 0,
  10211. $async$completer = A._makeAsyncAwaitCompleter(type$.CompileResult),
  10212. $async$returnValue, serializeResult, resultSourceMap, $async$temp1;
  10213. var $async$_compileStylesheet0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  10214. if ($async$errorCode === 1)
  10215. return A._asyncRethrow($async$result, $async$completer);
  10216. while (true)
  10217. switch ($async$goto) {
  10218. case 0:
  10219. // Function start
  10220. $async$temp1 = A;
  10221. $async$goto = 3;
  10222. return A._asyncAwait(A._EvaluateVisitor$0(functions, importCache, logger, nodeImporter, quietDeps, sourceMap).run$2(0, importer, stylesheet), $async$_compileStylesheet0);
  10223. case 3:
  10224. // returning from await.
  10225. serializeResult = $async$temp1.serialize($async$result._1, charset, indentWidth, false, lineFeed, logger, sourceMap, style, true);
  10226. resultSourceMap = serializeResult._1;
  10227. if (resultSourceMap != null)
  10228. A.mapInPlace(resultSourceMap.urls, new A._compileStylesheet_closure0(stylesheet, importCache));
  10229. $async$returnValue = new A.CompileResult(serializeResult);
  10230. // goto return
  10231. $async$goto = 1;
  10232. break;
  10233. case 1:
  10234. // return
  10235. return A._asyncReturn($async$returnValue, $async$completer);
  10236. }
  10237. });
  10238. return A._asyncStartSync($async$_compileStylesheet0, $async$completer);
  10239. },
  10240. _compileStylesheet_closure0: function _compileStylesheet_closure0(t0, t1) {
  10241. this.stylesheet = t0;
  10242. this.importCache = t1;
  10243. },
  10244. AsyncEnvironment$() {
  10245. var t1 = type$.String,
  10246. t2 = type$.Module_AsyncCallable,
  10247. t3 = type$.AstNode,
  10248. t4 = type$.int,
  10249. t5 = type$.AsyncCallable,
  10250. t6 = type$.JSArray_Map_String_AsyncCallable;
  10251. return new A.AsyncEnvironment(A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), A.LinkedHashMap_LinkedHashMap$_empty(t1, t3), A.LinkedHashMap_LinkedHashMap$_empty(t2, t3), A.LinkedHashMap_LinkedHashMap$_empty(t2, t3), null, null, A._setArrayType([], type$.JSArray_Module_AsyncCallable), A._setArrayType([A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Value)], type$.JSArray_Map_String_Value), A._setArrayType([A.LinkedHashMap_LinkedHashMap$_empty(t1, t3)], type$.JSArray_Map_String_AstNode), A.LinkedHashMap_LinkedHashMap$_empty(t1, t4), A._setArrayType([A.LinkedHashMap_LinkedHashMap$_empty(t1, t5)], t6), A.LinkedHashMap_LinkedHashMap$_empty(t1, t4), A._setArrayType([A.LinkedHashMap_LinkedHashMap$_empty(t1, t5)], t6), A.LinkedHashMap_LinkedHashMap$_empty(t1, t4), null);
  10252. },
  10253. AsyncEnvironment$_(_modules, _namespaceNodes, _globalModules, _importedModules, _forwardedModules, _nestedForwardedModules, _allModules, _variables, _variableNodes, _functions, _mixins, _content) {
  10254. var t1 = type$.String,
  10255. t2 = type$.int;
  10256. return new A.AsyncEnvironment(_modules, _namespaceNodes, _globalModules, _importedModules, _forwardedModules, _nestedForwardedModules, _allModules, _variables, _variableNodes, A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _functions, A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _mixins, A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _content);
  10257. },
  10258. _EnvironmentModule__EnvironmentModule0(environment, css, preModuleComments, extensionStore, forwarded) {
  10259. var t1, t2, t3, t4, t5, t6, module, result, t7;
  10260. if (forwarded == null)
  10261. forwarded = B.Set_empty2;
  10262. t1 = type$.dynamic;
  10263. t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  10264. for (t2 = type$.Module_AsyncCallable, t3 = type$.List_CssComment, t4 = A.MapExtensions_get_pairs(preModuleComments, t2, t3), t4 = t4.get$iterator(t4), t5 = type$.CssComment; t4.moveNext$0();) {
  10265. t6 = t4.get$current(t4);
  10266. module = t6._0;
  10267. result = A.List_List$from(t6._1, false, t5);
  10268. result.fixed$length = Array;
  10269. result.immutable$list = Array;
  10270. t1.$indexSet(0, module, result);
  10271. }
  10272. t1 = A.ConstantMap_ConstantMap$from(t1, t2, t3);
  10273. t2 = A._EnvironmentModule__makeModulesByVariable0(forwarded);
  10274. t3 = A._EnvironmentModule__memberMap0(B.JSArray_methods.get$first(environment._async_environment$_variables), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure5(), type$.Map_String_Value), type$.Value);
  10275. t4 = A._EnvironmentModule__memberMap0(B.JSArray_methods.get$first(environment._async_environment$_variableNodes), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure6(), type$.Map_String_AstNode), type$.AstNode);
  10276. t5 = type$.Map_String_AsyncCallable;
  10277. t6 = type$.AsyncCallable;
  10278. t7 = A._EnvironmentModule__memberMap0(B.JSArray_methods.get$first(environment._async_environment$_functions), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure7(), t5), t6);
  10279. t6 = A._EnvironmentModule__memberMap0(B.JSArray_methods.get$first(environment._async_environment$_mixins), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure8(), t5), t6);
  10280. t5 = J.get$isNotEmpty$asx(css.get$children(css)) || preModuleComments.get$isNotEmpty(preModuleComments) || B.JSArray_methods.any$1(environment._async_environment$_allModules, new A._EnvironmentModule__EnvironmentModule_closure9());
  10281. return A._EnvironmentModule$_0(environment, css, t1, extensionStore, t2, t3, t4, t7, t6, t5, !extensionStore.get$isEmpty(extensionStore) || B.JSArray_methods.any$1(environment._async_environment$_allModules, new A._EnvironmentModule__EnvironmentModule_closure10()));
  10282. },
  10283. _EnvironmentModule__makeModulesByVariable0(forwarded) {
  10284. var modulesByVariable, t1, t2, t3, t4, t5;
  10285. if (forwarded.get$isEmpty(forwarded))
  10286. return B.Map_empty8;
  10287. modulesByVariable = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.Module_AsyncCallable);
  10288. for (t1 = forwarded.get$iterator(forwarded); t1.moveNext$0();) {
  10289. t2 = t1.get$current(t1);
  10290. if (t2 instanceof A._EnvironmentModule0) {
  10291. for (t3 = t2._async_environment$_modulesByVariable, t3 = t3.get$values(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  10292. t4 = t3.get$current(t3);
  10293. t5 = t4.get$variables();
  10294. A.setAll(modulesByVariable, t5.get$keys(t5), t4);
  10295. }
  10296. A.setAll(modulesByVariable, J.get$keys$z(B.JSArray_methods.get$first(t2._async_environment$_environment._async_environment$_variables)), t2);
  10297. } else {
  10298. t3 = t2.get$variables();
  10299. A.setAll(modulesByVariable, t3.get$keys(t3), t2);
  10300. }
  10301. }
  10302. return modulesByVariable;
  10303. },
  10304. _EnvironmentModule__memberMap0(localMap, otherMaps, $V) {
  10305. var t1, t2, t3;
  10306. localMap = new A.PublicMemberMapView(localMap, $V._eval$1("PublicMemberMapView<0>"));
  10307. if (otherMaps.get$isEmpty(otherMaps))
  10308. return localMap;
  10309. t1 = A._setArrayType([], $V._eval$1("JSArray<Map<String,0>>"));
  10310. for (t2 = otherMaps.get$iterator(otherMaps); t2.moveNext$0();) {
  10311. t3 = t2.get$current(t2);
  10312. if (t3.get$isNotEmpty(t3))
  10313. t1.push(t3);
  10314. }
  10315. t1.push(localMap);
  10316. if (t1.length === 1)
  10317. return localMap;
  10318. return A.MergedMapView$(t1, type$.String, $V);
  10319. },
  10320. _EnvironmentModule$_0(_environment, css, preModuleComments, extensionStore, _modulesByVariable, variables, variableNodes, functions, mixins, transitivelyContainsCss, transitivelyContainsExtensions) {
  10321. return new A._EnvironmentModule0(_environment._async_environment$_allModules, variables, variableNodes, functions, mixins, extensionStore, css, preModuleComments, transitivelyContainsCss, transitivelyContainsExtensions, _environment, _modulesByVariable);
  10322. },
  10323. AsyncEnvironment: function AsyncEnvironment(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14) {
  10324. var _ = this;
  10325. _._async_environment$_modules = t0;
  10326. _._async_environment$_namespaceNodes = t1;
  10327. _._async_environment$_globalModules = t2;
  10328. _._async_environment$_importedModules = t3;
  10329. _._async_environment$_forwardedModules = t4;
  10330. _._async_environment$_nestedForwardedModules = t5;
  10331. _._async_environment$_allModules = t6;
  10332. _._async_environment$_variables = t7;
  10333. _._async_environment$_variableNodes = t8;
  10334. _._async_environment$_variableIndices = t9;
  10335. _._async_environment$_functions = t10;
  10336. _._async_environment$_functionIndices = t11;
  10337. _._async_environment$_mixins = t12;
  10338. _._async_environment$_mixinIndices = t13;
  10339. _._async_environment$_content = t14;
  10340. _._async_environment$_inMixin = false;
  10341. _._async_environment$_inSemiGlobalScope = true;
  10342. _._async_environment$_lastVariableIndex = _._async_environment$_lastVariableName = null;
  10343. },
  10344. AsyncEnvironment__getVariableFromGlobalModule_closure: function AsyncEnvironment__getVariableFromGlobalModule_closure(t0) {
  10345. this.name = t0;
  10346. },
  10347. AsyncEnvironment_setVariable_closure: function AsyncEnvironment_setVariable_closure(t0, t1) {
  10348. this.$this = t0;
  10349. this.name = t1;
  10350. },
  10351. AsyncEnvironment_setVariable_closure0: function AsyncEnvironment_setVariable_closure0(t0) {
  10352. this.name = t0;
  10353. },
  10354. AsyncEnvironment_setVariable_closure1: function AsyncEnvironment_setVariable_closure1(t0, t1) {
  10355. this.$this = t0;
  10356. this.name = t1;
  10357. },
  10358. AsyncEnvironment__getFunctionFromGlobalModule_closure: function AsyncEnvironment__getFunctionFromGlobalModule_closure(t0) {
  10359. this.name = t0;
  10360. },
  10361. AsyncEnvironment__getMixinFromGlobalModule_closure: function AsyncEnvironment__getMixinFromGlobalModule_closure(t0) {
  10362. this.name = t0;
  10363. },
  10364. AsyncEnvironment_toModule_closure: function AsyncEnvironment_toModule_closure() {
  10365. },
  10366. AsyncEnvironment_toDummyModule_closure: function AsyncEnvironment_toDummyModule_closure() {
  10367. },
  10368. _EnvironmentModule0: function _EnvironmentModule0(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11) {
  10369. var _ = this;
  10370. _.upstream = t0;
  10371. _.variables = t1;
  10372. _.variableNodes = t2;
  10373. _.functions = t3;
  10374. _.mixins = t4;
  10375. _.extensionStore = t5;
  10376. _.css = t6;
  10377. _.preModuleComments = t7;
  10378. _.transitivelyContainsCss = t8;
  10379. _.transitivelyContainsExtensions = t9;
  10380. _._async_environment$_environment = t10;
  10381. _._async_environment$_modulesByVariable = t11;
  10382. },
  10383. _EnvironmentModule__EnvironmentModule_closure5: function _EnvironmentModule__EnvironmentModule_closure5() {
  10384. },
  10385. _EnvironmentModule__EnvironmentModule_closure6: function _EnvironmentModule__EnvironmentModule_closure6() {
  10386. },
  10387. _EnvironmentModule__EnvironmentModule_closure7: function _EnvironmentModule__EnvironmentModule_closure7() {
  10388. },
  10389. _EnvironmentModule__EnvironmentModule_closure8: function _EnvironmentModule__EnvironmentModule_closure8() {
  10390. },
  10391. _EnvironmentModule__EnvironmentModule_closure9: function _EnvironmentModule__EnvironmentModule_closure9() {
  10392. },
  10393. _EnvironmentModule__EnvironmentModule_closure10: function _EnvironmentModule__EnvironmentModule_closure10() {
  10394. },
  10395. AsyncImportCache__toImporters(importers, loadPaths, packageConfig) {
  10396. var t1, t2, t3, t4, _i, path, _null = null,
  10397. sassPath = A.getEnvironmentVariable("SASS_PATH");
  10398. if (A.isBrowser()) {
  10399. t1 = A._setArrayType([], type$.JSArray_AsyncImporter_2);
  10400. B.JSArray_methods.addAll$1(t1, importers);
  10401. return t1;
  10402. }
  10403. t1 = A._setArrayType([], type$.JSArray_AsyncImporter_2);
  10404. B.JSArray_methods.addAll$1(t1, importers);
  10405. for (t2 = J.get$iterator$ax(loadPaths); t2.moveNext$0();) {
  10406. t3 = t2.get$current(t2);
  10407. t1.push(new A.FilesystemImporter($.$get$context().absolute$15(t3, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null), false));
  10408. }
  10409. if (sassPath != null) {
  10410. t2 = A.isNodeJs() ? self.process : _null;
  10411. t3 = sassPath.split(J.$eq$(t2 == null ? _null : J.get$platform$x(t2), "win32") ? ";" : ":");
  10412. t4 = t3.length;
  10413. _i = 0;
  10414. for (; _i < t4; ++_i) {
  10415. path = t3[_i];
  10416. t1.push(new A.FilesystemImporter($.$get$context().absolute$15(path, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null), false));
  10417. }
  10418. }
  10419. return t1;
  10420. },
  10421. AsyncImportCache: function AsyncImportCache(t0, t1, t2, t3, t4, t5) {
  10422. var _ = this;
  10423. _._async_import_cache$_importers = t0;
  10424. _._async_import_cache$_canonicalizeCache = t1;
  10425. _._async_import_cache$_perImporterCanonicalizeCache = t2;
  10426. _._async_import_cache$_nonCanonicalRelativeUrls = t3;
  10427. _._async_import_cache$_importCache = t4;
  10428. _._async_import_cache$_resultsCache = t5;
  10429. },
  10430. AsyncImportCache_canonicalize_closure: function AsyncImportCache_canonicalize_closure(t0, t1, t2, t3, t4, t5, t6) {
  10431. var _ = this;
  10432. _.$this = t0;
  10433. _.baseImporter = t1;
  10434. _.resolvedUrl = t2;
  10435. _.baseUrl = t3;
  10436. _.forImport = t4;
  10437. _.key = t5;
  10438. _.url = t6;
  10439. },
  10440. AsyncImportCache__canonicalize_closure: function AsyncImportCache__canonicalize_closure(t0, t1) {
  10441. this.importer = t0;
  10442. this.url = t1;
  10443. },
  10444. AsyncImportCache_importCanonical_closure: function AsyncImportCache_importCanonical_closure(t0, t1, t2, t3) {
  10445. var _ = this;
  10446. _.$this = t0;
  10447. _.importer = t1;
  10448. _.canonicalUrl = t2;
  10449. _.originalUrl = t3;
  10450. },
  10451. AsyncImportCache_humanize_closure: function AsyncImportCache_humanize_closure(t0) {
  10452. this.canonicalUrl = t0;
  10453. },
  10454. AsyncImportCache_humanize_closure0: function AsyncImportCache_humanize_closure0() {
  10455. },
  10456. AsyncImportCache_humanize_closure1: function AsyncImportCache_humanize_closure1() {
  10457. },
  10458. AsyncImportCache_humanize_closure2: function AsyncImportCache_humanize_closure2(t0) {
  10459. this.canonicalUrl = t0;
  10460. },
  10461. AsyncBuiltInCallable$mixin($name, $arguments, callback, acceptsContent, url) {
  10462. return new A.AsyncBuiltInCallable($name, A.ScssParser$("@mixin " + $name + "(" + $arguments + ") {", url).parseArgumentDeclaration$0(), new A.AsyncBuiltInCallable$mixin_closure(callback), false);
  10463. },
  10464. AsyncBuiltInCallable: function AsyncBuiltInCallable(t0, t1, t2, t3) {
  10465. var _ = this;
  10466. _.name = t0;
  10467. _._async_built_in$_arguments = t1;
  10468. _._async_built_in$_callback = t2;
  10469. _.acceptsContent = t3;
  10470. },
  10471. AsyncBuiltInCallable$mixin_closure: function AsyncBuiltInCallable$mixin_closure(t0) {
  10472. this.callback = t0;
  10473. },
  10474. AsyncBuiltInCallable_withDeprecationWarning_closure: function AsyncBuiltInCallable_withDeprecationWarning_closure(t0, t1, t2) {
  10475. this.$this = t0;
  10476. this.module = t1;
  10477. this.newName = t2;
  10478. },
  10479. BuiltInCallable$function($name, $arguments, callback, url) {
  10480. return new A.BuiltInCallable($name, A._setArrayType([new A._Record_2(A.ScssParser$("@function " + $name + "(" + $arguments + ") {", url).parseArgumentDeclaration$0(), callback)], type$.JSArray_Record_2_ArgumentDeclaration_and_Value_Function_List_Value), false);
  10481. },
  10482. BuiltInCallable$mixin($name, $arguments, callback, acceptsContent, url) {
  10483. return new A.BuiltInCallable($name, A._setArrayType([new A._Record_2(A.ScssParser$("@mixin " + $name + "(" + $arguments + ") {", url).parseArgumentDeclaration$0(), new A.BuiltInCallable$mixin_closure(callback))], type$.JSArray_Record_2_ArgumentDeclaration_and_Value_Function_List_Value), acceptsContent);
  10484. },
  10485. BuiltInCallable$overloadedFunction($name, overloads) {
  10486. var t2, t3, t4, t5, t6, t7, args, callback,
  10487. t1 = A._setArrayType([], type$.JSArray_Record_2_ArgumentDeclaration_and_Value_Function_List_Value);
  10488. for (t2 = type$.String, t3 = A.MapExtensions_get_pairs(overloads, t2, type$.Value_Function_List_Value), t3 = t3.get$iterator(t3), t4 = "@function " + $name + "(", t5 = type$.VariableDeclaration, t6 = type$.JSArray_Record_3_nullable_Deprecation_deprecation_and_String_message_and_FileSpan_span; t3.moveNext$0();) {
  10489. t7 = t3.get$current(t3);
  10490. args = t7._0;
  10491. callback = t7._1;
  10492. t1.push(new A._Record_2(new A.ScssParser(A.LinkedHashMap_LinkedHashMap$_empty(t2, t5), A._setArrayType([], t6), A.SpanScanner$(t4 + args + ") {", null), null).parseArgumentDeclaration$0(), callback));
  10493. }
  10494. return new A.BuiltInCallable($name, t1, false);
  10495. },
  10496. BuiltInCallable: function BuiltInCallable(t0, t1, t2) {
  10497. this.name = t0;
  10498. this._overloads = t1;
  10499. this.acceptsContent = t2;
  10500. },
  10501. BuiltInCallable$mixin_closure: function BuiltInCallable$mixin_closure(t0) {
  10502. this.callback = t0;
  10503. },
  10504. BuiltInCallable_withDeprecationWarning_closure: function BuiltInCallable_withDeprecationWarning_closure(t0, t1, t2, t3) {
  10505. var _ = this;
  10506. _._box_0 = t0;
  10507. _.$this = t1;
  10508. _.module = t2;
  10509. _.newName = t3;
  10510. },
  10511. PlainCssCallable: function PlainCssCallable(t0) {
  10512. this.name = t0;
  10513. },
  10514. UserDefinedCallable: function UserDefinedCallable(t0, t1, t2, t3) {
  10515. var _ = this;
  10516. _.declaration = t0;
  10517. _.environment = t1;
  10518. _.inDependency = t2;
  10519. _.$ti = t3;
  10520. },
  10521. _compileStylesheet(stylesheet, logger, importCache, nodeImporter, importer, functions, style, useSpaces, indentWidth, lineFeed, quietDeps, sourceMap, charset) {
  10522. var serializeResult = A.serialize(A._EvaluateVisitor$(functions, importCache, logger, nodeImporter, quietDeps, sourceMap).run$2(0, importer, stylesheet)._1, charset, indentWidth, false, lineFeed, logger, sourceMap, style, true),
  10523. resultSourceMap = serializeResult._1;
  10524. if (resultSourceMap != null)
  10525. A.mapInPlace(resultSourceMap.urls, new A._compileStylesheet_closure(stylesheet, importCache));
  10526. return new A.CompileResult(serializeResult);
  10527. },
  10528. _compileStylesheet_closure: function _compileStylesheet_closure(t0, t1) {
  10529. this.stylesheet = t0;
  10530. this.importCache = t1;
  10531. },
  10532. CompileResult: function CompileResult(t0) {
  10533. this._serialize = t0;
  10534. },
  10535. Configuration: function Configuration(t0, t1) {
  10536. this._configuration$_values = t0;
  10537. this.__originalConfiguration = t1;
  10538. },
  10539. ExplicitConfiguration: function ExplicitConfiguration(t0, t1, t2) {
  10540. this.nodeWithSpan = t0;
  10541. this._configuration$_values = t1;
  10542. this.__originalConfiguration = t2;
  10543. },
  10544. ConfiguredValue: function ConfiguredValue(t0, t1, t2) {
  10545. this.value = t0;
  10546. this.configurationSpan = t1;
  10547. this.assignmentNode = t2;
  10548. },
  10549. Deprecation_fromId(id) {
  10550. return A.IterableExtension_firstWhereOrNull(B.List_Hx4, new A.Deprecation_fromId_closure(id));
  10551. },
  10552. Deprecation_forVersion(version) {
  10553. var t2, _i, deprecation, $self, t3,
  10554. t1 = A.LinkedHashSet_LinkedHashSet$_empty(type$.Deprecation);
  10555. for (t2 = A.VersionRange_VersionRange(true, version).get$allows(), _i = 0; _i < 24; ++_i) {
  10556. deprecation = B.List_Hx4[_i];
  10557. $self = deprecation._deprecatedIn;
  10558. t3 = $self == null ? null : A.Version___parse_tearOff($self);
  10559. t3 = t3 == null ? null : t2.call$1(t3);
  10560. if (t3 == null ? false : t3)
  10561. t1.add$1(0, deprecation);
  10562. }
  10563. return t1;
  10564. },
  10565. Deprecation: function Deprecation(t0, t1, t2) {
  10566. this.id = t0;
  10567. this._deprecatedIn = t1;
  10568. this._name = t2;
  10569. },
  10570. Deprecation_fromId_closure: function Deprecation_fromId_closure(t0) {
  10571. this.id = t0;
  10572. },
  10573. Environment$() {
  10574. var t1 = type$.String,
  10575. t2 = type$.Module_Callable,
  10576. t3 = type$.AstNode,
  10577. t4 = type$.int,
  10578. t5 = type$.Callable,
  10579. t6 = type$.JSArray_Map_String_Callable;
  10580. return new A.Environment(A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), A.LinkedHashMap_LinkedHashMap$_empty(t1, t3), A.LinkedHashMap_LinkedHashMap$_empty(t2, t3), A.LinkedHashMap_LinkedHashMap$_empty(t2, t3), null, null, A._setArrayType([], type$.JSArray_Module_Callable), A._setArrayType([A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Value)], type$.JSArray_Map_String_Value), A._setArrayType([A.LinkedHashMap_LinkedHashMap$_empty(t1, t3)], type$.JSArray_Map_String_AstNode), A.LinkedHashMap_LinkedHashMap$_empty(t1, t4), A._setArrayType([A.LinkedHashMap_LinkedHashMap$_empty(t1, t5)], t6), A.LinkedHashMap_LinkedHashMap$_empty(t1, t4), A._setArrayType([A.LinkedHashMap_LinkedHashMap$_empty(t1, t5)], t6), A.LinkedHashMap_LinkedHashMap$_empty(t1, t4), null);
  10581. },
  10582. Environment$_(_modules, _namespaceNodes, _globalModules, _importedModules, _forwardedModules, _nestedForwardedModules, _allModules, _variables, _variableNodes, _functions, _mixins, _content) {
  10583. var t1 = type$.String,
  10584. t2 = type$.int;
  10585. return new A.Environment(_modules, _namespaceNodes, _globalModules, _importedModules, _forwardedModules, _nestedForwardedModules, _allModules, _variables, _variableNodes, A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _functions, A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _mixins, A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _content);
  10586. },
  10587. _EnvironmentModule__EnvironmentModule(environment, css, preModuleComments, extensionStore, forwarded) {
  10588. var t1, t2, t3, t4, t5, t6, module, result, t7;
  10589. if (forwarded == null)
  10590. forwarded = B.Set_empty0;
  10591. t1 = type$.dynamic;
  10592. t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  10593. for (t2 = type$.Module_Callable, t3 = type$.List_CssComment, t4 = A.MapExtensions_get_pairs(preModuleComments, t2, t3), t4 = t4.get$iterator(t4), t5 = type$.CssComment; t4.moveNext$0();) {
  10594. t6 = t4.get$current(t4);
  10595. module = t6._0;
  10596. result = A.List_List$from(t6._1, false, t5);
  10597. result.fixed$length = Array;
  10598. result.immutable$list = Array;
  10599. t1.$indexSet(0, module, result);
  10600. }
  10601. t1 = A.ConstantMap_ConstantMap$from(t1, t2, t3);
  10602. t2 = A._EnvironmentModule__makeModulesByVariable(forwarded);
  10603. t3 = A._EnvironmentModule__memberMap(B.JSArray_methods.get$first(environment._variables), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure(), type$.Map_String_Value), type$.Value);
  10604. t4 = A._EnvironmentModule__memberMap(B.JSArray_methods.get$first(environment._variableNodes), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure0(), type$.Map_String_AstNode), type$.AstNode);
  10605. t5 = type$.Map_String_Callable;
  10606. t6 = type$.Callable;
  10607. t7 = A._EnvironmentModule__memberMap(B.JSArray_methods.get$first(environment._functions), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure1(), t5), t6);
  10608. t6 = A._EnvironmentModule__memberMap(B.JSArray_methods.get$first(environment._mixins), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure2(), t5), t6);
  10609. t5 = J.get$isNotEmpty$asx(css.get$children(css)) || preModuleComments.get$isNotEmpty(preModuleComments) || B.JSArray_methods.any$1(environment._allModules, new A._EnvironmentModule__EnvironmentModule_closure3());
  10610. return A._EnvironmentModule$_(environment, css, t1, extensionStore, t2, t3, t4, t7, t6, t5, !extensionStore.get$isEmpty(extensionStore) || B.JSArray_methods.any$1(environment._allModules, new A._EnvironmentModule__EnvironmentModule_closure4()));
  10611. },
  10612. _EnvironmentModule__makeModulesByVariable(forwarded) {
  10613. var modulesByVariable, t1, t2, t3, t4, t5;
  10614. if (forwarded.get$isEmpty(forwarded))
  10615. return B.Map_empty1;
  10616. modulesByVariable = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.Module_Callable);
  10617. for (t1 = forwarded.get$iterator(forwarded); t1.moveNext$0();) {
  10618. t2 = t1.get$current(t1);
  10619. if (t2 instanceof A._EnvironmentModule) {
  10620. for (t3 = t2._modulesByVariable, t3 = t3.get$values(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  10621. t4 = t3.get$current(t3);
  10622. t5 = t4.get$variables();
  10623. A.setAll(modulesByVariable, t5.get$keys(t5), t4);
  10624. }
  10625. A.setAll(modulesByVariable, J.get$keys$z(B.JSArray_methods.get$first(t2._environment$_environment._variables)), t2);
  10626. } else {
  10627. t3 = t2.get$variables();
  10628. A.setAll(modulesByVariable, t3.get$keys(t3), t2);
  10629. }
  10630. }
  10631. return modulesByVariable;
  10632. },
  10633. _EnvironmentModule__memberMap(localMap, otherMaps, $V) {
  10634. var t1, t2, t3;
  10635. localMap = new A.PublicMemberMapView(localMap, $V._eval$1("PublicMemberMapView<0>"));
  10636. if (otherMaps.get$isEmpty(otherMaps))
  10637. return localMap;
  10638. t1 = A._setArrayType([], $V._eval$1("JSArray<Map<String,0>>"));
  10639. for (t2 = otherMaps.get$iterator(otherMaps); t2.moveNext$0();) {
  10640. t3 = t2.get$current(t2);
  10641. if (t3.get$isNotEmpty(t3))
  10642. t1.push(t3);
  10643. }
  10644. t1.push(localMap);
  10645. if (t1.length === 1)
  10646. return localMap;
  10647. return A.MergedMapView$(t1, type$.String, $V);
  10648. },
  10649. _EnvironmentModule$_(_environment, css, preModuleComments, extensionStore, _modulesByVariable, variables, variableNodes, functions, mixins, transitivelyContainsCss, transitivelyContainsExtensions) {
  10650. return new A._EnvironmentModule(_environment._allModules, variables, variableNodes, functions, mixins, extensionStore, css, preModuleComments, transitivelyContainsCss, transitivelyContainsExtensions, _environment, _modulesByVariable);
  10651. },
  10652. Environment: function Environment(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14) {
  10653. var _ = this;
  10654. _._environment$_modules = t0;
  10655. _._namespaceNodes = t1;
  10656. _._globalModules = t2;
  10657. _._importedModules = t3;
  10658. _._forwardedModules = t4;
  10659. _._nestedForwardedModules = t5;
  10660. _._allModules = t6;
  10661. _._variables = t7;
  10662. _._variableNodes = t8;
  10663. _._variableIndices = t9;
  10664. _._functions = t10;
  10665. _._functionIndices = t11;
  10666. _._mixins = t12;
  10667. _._mixinIndices = t13;
  10668. _._content = t14;
  10669. _._inMixin = false;
  10670. _._inSemiGlobalScope = true;
  10671. _._lastVariableIndex = _._lastVariableName = null;
  10672. },
  10673. Environment__getVariableFromGlobalModule_closure: function Environment__getVariableFromGlobalModule_closure(t0) {
  10674. this.name = t0;
  10675. },
  10676. Environment_setVariable_closure: function Environment_setVariable_closure(t0, t1) {
  10677. this.$this = t0;
  10678. this.name = t1;
  10679. },
  10680. Environment_setVariable_closure0: function Environment_setVariable_closure0(t0) {
  10681. this.name = t0;
  10682. },
  10683. Environment_setVariable_closure1: function Environment_setVariable_closure1(t0, t1) {
  10684. this.$this = t0;
  10685. this.name = t1;
  10686. },
  10687. Environment__getFunctionFromGlobalModule_closure: function Environment__getFunctionFromGlobalModule_closure(t0) {
  10688. this.name = t0;
  10689. },
  10690. Environment__getMixinFromGlobalModule_closure: function Environment__getMixinFromGlobalModule_closure(t0) {
  10691. this.name = t0;
  10692. },
  10693. Environment_toModule_closure: function Environment_toModule_closure() {
  10694. },
  10695. Environment_toDummyModule_closure: function Environment_toDummyModule_closure() {
  10696. },
  10697. _EnvironmentModule: function _EnvironmentModule(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11) {
  10698. var _ = this;
  10699. _.upstream = t0;
  10700. _.variables = t1;
  10701. _.variableNodes = t2;
  10702. _.functions = t3;
  10703. _.mixins = t4;
  10704. _.extensionStore = t5;
  10705. _.css = t6;
  10706. _.preModuleComments = t7;
  10707. _.transitivelyContainsCss = t8;
  10708. _.transitivelyContainsExtensions = t9;
  10709. _._environment$_environment = t10;
  10710. _._modulesByVariable = t11;
  10711. },
  10712. _EnvironmentModule__EnvironmentModule_closure: function _EnvironmentModule__EnvironmentModule_closure() {
  10713. },
  10714. _EnvironmentModule__EnvironmentModule_closure0: function _EnvironmentModule__EnvironmentModule_closure0() {
  10715. },
  10716. _EnvironmentModule__EnvironmentModule_closure1: function _EnvironmentModule__EnvironmentModule_closure1() {
  10717. },
  10718. _EnvironmentModule__EnvironmentModule_closure2: function _EnvironmentModule__EnvironmentModule_closure2() {
  10719. },
  10720. _EnvironmentModule__EnvironmentModule_closure3: function _EnvironmentModule__EnvironmentModule_closure3() {
  10721. },
  10722. _EnvironmentModule__EnvironmentModule_closure4: function _EnvironmentModule__EnvironmentModule_closure4() {
  10723. },
  10724. SassException$(message, span, loadedUrls) {
  10725. return new A.SassException(loadedUrls == null ? B.Set_empty : A.Set_Set$unmodifiable(loadedUrls, type$.Uri), message, span);
  10726. },
  10727. MultiSpanSassException$(message, span, primaryLabel, secondarySpans, loadedUrls) {
  10728. var t1 = A.ConstantMap_ConstantMap$from(secondarySpans, type$.FileSpan, type$.String);
  10729. return new A.MultiSpanSassException(primaryLabel, t1, loadedUrls == null ? B.Set_empty : A.Set_Set$unmodifiable(loadedUrls, type$.Uri), message, span);
  10730. },
  10731. SassRuntimeException$(message, span, trace, loadedUrls) {
  10732. return new A.SassRuntimeException(trace, loadedUrls == null ? B.Set_empty : A.Set_Set$unmodifiable(loadedUrls, type$.Uri), message, span);
  10733. },
  10734. MultiSpanSassRuntimeException$(message, span, primaryLabel, secondarySpans, trace, loadedUrls) {
  10735. var t1 = A.ConstantMap_ConstantMap$from(secondarySpans, type$.FileSpan, type$.String);
  10736. return new A.MultiSpanSassRuntimeException(trace, primaryLabel, t1, loadedUrls == null ? B.Set_empty : A.Set_Set$unmodifiable(loadedUrls, type$.Uri), message, span);
  10737. },
  10738. SassFormatException$(message, span, loadedUrls) {
  10739. return new A.SassFormatException(loadedUrls == null ? B.Set_empty : A.Set_Set$unmodifiable(loadedUrls, type$.Uri), message, span);
  10740. },
  10741. MultiSpanSassFormatException$(message, span, primaryLabel, secondarySpans, loadedUrls) {
  10742. var t1 = A.ConstantMap_ConstantMap$from(secondarySpans, type$.FileSpan, type$.String);
  10743. return new A.MultiSpanSassFormatException(primaryLabel, t1, loadedUrls == null ? B.Set_empty : A.Set_Set$unmodifiable(loadedUrls, type$.Uri), message, span);
  10744. },
  10745. SassScriptException$(message, argumentName) {
  10746. return new A.SassScriptException(argumentName == null ? message : "$" + argumentName + ": " + message);
  10747. },
  10748. MultiSpanSassScriptException$(message, primaryLabel, secondarySpans) {
  10749. var t1 = A.ConstantMap_ConstantMap$from(secondarySpans, type$.FileSpan, type$.String);
  10750. return new A.MultiSpanSassScriptException(primaryLabel, t1, message);
  10751. },
  10752. SassException: function SassException(t0, t1, t2) {
  10753. this.loadedUrls = t0;
  10754. this._span_exception$_message = t1;
  10755. this._span = t2;
  10756. },
  10757. MultiSpanSassException: function MultiSpanSassException(t0, t1, t2, t3, t4) {
  10758. var _ = this;
  10759. _.primaryLabel = t0;
  10760. _.secondarySpans = t1;
  10761. _.loadedUrls = t2;
  10762. _._span_exception$_message = t3;
  10763. _._span = t4;
  10764. },
  10765. SassRuntimeException: function SassRuntimeException(t0, t1, t2, t3) {
  10766. var _ = this;
  10767. _.trace = t0;
  10768. _.loadedUrls = t1;
  10769. _._span_exception$_message = t2;
  10770. _._span = t3;
  10771. },
  10772. MultiSpanSassRuntimeException: function MultiSpanSassRuntimeException(t0, t1, t2, t3, t4, t5) {
  10773. var _ = this;
  10774. _.trace = t0;
  10775. _.primaryLabel = t1;
  10776. _.secondarySpans = t2;
  10777. _.loadedUrls = t3;
  10778. _._span_exception$_message = t4;
  10779. _._span = t5;
  10780. },
  10781. SassFormatException: function SassFormatException(t0, t1, t2) {
  10782. this.loadedUrls = t0;
  10783. this._span_exception$_message = t1;
  10784. this._span = t2;
  10785. },
  10786. MultiSpanSassFormatException: function MultiSpanSassFormatException(t0, t1, t2, t3, t4) {
  10787. var _ = this;
  10788. _.primaryLabel = t0;
  10789. _.secondarySpans = t1;
  10790. _.loadedUrls = t2;
  10791. _._span_exception$_message = t3;
  10792. _._span = t4;
  10793. },
  10794. SassScriptException: function SassScriptException(t0) {
  10795. this.message = t0;
  10796. },
  10797. MultiSpanSassScriptException: function MultiSpanSassScriptException(t0, t1, t2) {
  10798. this.primaryLabel = t0;
  10799. this.secondarySpans = t1;
  10800. this.message = t2;
  10801. },
  10802. compileStylesheet(options, graph, source, destination, ifModified) {
  10803. return A.compileStylesheet$body(options, graph, source, destination, ifModified);
  10804. },
  10805. compileStylesheet$body(options, graph, source, destination, ifModified) {
  10806. var $async$goto = 0,
  10807. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Record_3_int_and_String_and_nullable_String),
  10808. $async$returnValue, $async$handler = 2, $async$currentError, error, stackTrace, message, error0, stackTrace0, path, message0, exception, t1, $async$exception;
  10809. var $async$compileStylesheet = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  10810. if ($async$errorCode === 1) {
  10811. $async$currentError = $async$result;
  10812. $async$goto = $async$handler;
  10813. }
  10814. while (true)
  10815. switch ($async$goto) {
  10816. case 0:
  10817. // Function start
  10818. $async$handler = 4;
  10819. $async$goto = 7;
  10820. return A._asyncAwait(A._compileStylesheetWithoutErrorHandling(options, graph, source, destination, ifModified), $async$compileStylesheet);
  10821. case 7:
  10822. // returning from await.
  10823. $async$handler = 2;
  10824. // goto after finally
  10825. $async$goto = 6;
  10826. break;
  10827. case 4:
  10828. // catch
  10829. $async$handler = 3;
  10830. $async$exception = $async$currentError;
  10831. t1 = A.unwrapException($async$exception);
  10832. if (t1 instanceof A.SassException) {
  10833. error = t1;
  10834. stackTrace = A.getTraceFromException($async$exception);
  10835. if (destination != null && !options.get$emitErrorCss())
  10836. A._tryDelete(destination);
  10837. message = J.toString$1$color$(error, options.get$color());
  10838. if (A._asBool(options._options.$index(0, "trace"))) {
  10839. t1 = A.getTrace(error);
  10840. if (t1 == null)
  10841. t1 = stackTrace;
  10842. } else
  10843. t1 = null;
  10844. $async$returnValue = A._getErrorWithStackTrace(65, message, t1);
  10845. // goto return
  10846. $async$goto = 1;
  10847. break;
  10848. } else if (t1 instanceof A.FileSystemException) {
  10849. error0 = t1;
  10850. stackTrace0 = A.getTraceFromException($async$exception);
  10851. path = error0.path;
  10852. message0 = path == null ? error0.message : "Error reading " + $.$get$context().relative$2$from(path, null) + ": " + error0.message + ".";
  10853. if (A._asBool(options._options.$index(0, "trace"))) {
  10854. t1 = A.getTrace(error0);
  10855. if (t1 == null)
  10856. t1 = stackTrace0;
  10857. } else
  10858. t1 = null;
  10859. $async$returnValue = A._getErrorWithStackTrace(66, message0, t1);
  10860. // goto return
  10861. $async$goto = 1;
  10862. break;
  10863. } else
  10864. throw $async$exception;
  10865. // goto after finally
  10866. $async$goto = 6;
  10867. break;
  10868. case 3:
  10869. // uncaught
  10870. // goto rethrow
  10871. $async$goto = 2;
  10872. break;
  10873. case 6:
  10874. // after finally
  10875. $async$returnValue = null;
  10876. // goto return
  10877. $async$goto = 1;
  10878. break;
  10879. case 1:
  10880. // return
  10881. return A._asyncReturn($async$returnValue, $async$completer);
  10882. case 2:
  10883. // rethrow
  10884. return A._asyncRethrow($async$currentError, $async$completer);
  10885. }
  10886. });
  10887. return A._asyncStartSync($async$compileStylesheet, $async$completer);
  10888. },
  10889. _compileStylesheetWithoutErrorHandling(options, graph, source, destination, ifModified) {
  10890. return A._compileStylesheetWithoutErrorHandling$body(options, graph, source, destination, ifModified);
  10891. },
  10892. _compileStylesheetWithoutErrorHandling$body(options, graph, source, destination, ifModified) {
  10893. var $async$goto = 0,
  10894. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  10895. $async$returnValue, $async$handler = 2, $async$currentError, syntax, result, importCache, error, t1, exception, t2, t3, t4, t5, t6, t7, t8, t9, t10, result0, t11, t12, t13, t14, logger, stylesheet, t0, css, buffer, sourceName, destinationName, nowStr, timestamp, importer, $async$exception;
  10896. var $async$_compileStylesheetWithoutErrorHandling = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  10897. if ($async$errorCode === 1) {
  10898. $async$currentError = $async$result;
  10899. $async$goto = $async$handler;
  10900. }
  10901. while (true)
  10902. switch ($async$goto) {
  10903. case 0:
  10904. // Function start
  10905. importer = $.$get$FilesystemImporter_cwd();
  10906. if (ifModified)
  10907. try {
  10908. t1 = false;
  10909. if (source != null)
  10910. if (destination != null) {
  10911. t1 = A.absolute(source, null, null, null, null, null, null, null, null, null, null, null, null, null, null);
  10912. t1 = !graph.modifiedSince$3($.$get$context().toUri$1(t1), A.modificationTime(destination), importer);
  10913. }
  10914. if (t1) {
  10915. // goto return
  10916. $async$goto = 1;
  10917. break;
  10918. }
  10919. } catch (exception) {
  10920. if (!(A.unwrapException(exception) instanceof A.FileSystemException))
  10921. throw exception;
  10922. }
  10923. syntax = null;
  10924. if (A._asBoolQ(options._ifParsed$1("indented")) === true)
  10925. syntax = B.Syntax_Sass_sass;
  10926. else if (source != null)
  10927. syntax = A.Syntax_forPath(source);
  10928. else
  10929. syntax = B.Syntax_SCSS_scss;
  10930. result = null;
  10931. $async$handler = 4;
  10932. t1 = options._options;
  10933. $async$goto = A._asBool(t1.$index(0, "async")) ? 7 : 9;
  10934. break;
  10935. case 7:
  10936. // then
  10937. t2 = type$.nullable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl;
  10938. t3 = type$.Record_3_AsyncImporter_and_Uri_and_bool_forImport;
  10939. t4 = type$.Uri;
  10940. importCache = new A.AsyncImportCache(A.AsyncImportCache__toImporters(options.get$pkgImporters(), type$.List_String._as(t1.$index(0, "load-path")), null), A.LinkedHashMap_LinkedHashMap$_empty(type$.Record_2_Uri_and_bool_forImport, t2), A.LinkedHashMap_LinkedHashMap$_empty(t3, t2), A.LinkedHashMap_LinkedHashMap$_empty(t3, t4), A.LinkedHashMap_LinkedHashMap$_empty(t4, type$.nullable_Stylesheet), A.LinkedHashMap_LinkedHashMap$_empty(t4, type$.ImporterResult));
  10941. $async$goto = source == null ? 10 : 12;
  10942. break;
  10943. case 10:
  10944. // then
  10945. $async$goto = 13;
  10946. return A._asyncAwait(A.readStdin(), $async$_compileStylesheetWithoutErrorHandling);
  10947. case 13:
  10948. // returning from await.
  10949. t2 = $async$result;
  10950. t3 = syntax;
  10951. t4 = A._asBool(t1.$index(0, "quiet")) ? $.$get$Logger_quiet() : new A.StderrLogger(options.get$color());
  10952. t5 = $.$get$FilesystemImporter_cwd();
  10953. t6 = J.$eq$(t1.$index(0, "style"), "compressed") ? B.OutputStyle_1 : B.OutputStyle_0;
  10954. t7 = A._asBool(t1.$index(0, "quiet-deps"));
  10955. t8 = A._asBool(t1.$index(0, "verbose"));
  10956. t9 = options.get$emitSourceMap();
  10957. t1 = A._asBool(t1.$index(0, "charset"));
  10958. t10 = options.get$silenceDeprecations(0);
  10959. $async$goto = 14;
  10960. return A._asyncAwait(A.compileStringAsync(t2, t1, options.get$fatalDeprecations(0), options.get$futureDeprecations(0), importCache, t5, t4, t7, t10, t9, t6, t3, t8), $async$_compileStylesheetWithoutErrorHandling);
  10961. case 14:
  10962. // returning from await.
  10963. result0 = $async$result;
  10964. // goto join
  10965. $async$goto = 11;
  10966. break;
  10967. case 12:
  10968. // else
  10969. t2 = syntax;
  10970. t3 = A._asBool(t1.$index(0, "quiet")) ? $.$get$Logger_quiet() : new A.StderrLogger(options.get$color());
  10971. t4 = J.$eq$(t1.$index(0, "style"), "compressed") ? B.OutputStyle_1 : B.OutputStyle_0;
  10972. t5 = A._asBool(t1.$index(0, "quiet-deps"));
  10973. t6 = A._asBool(t1.$index(0, "verbose"));
  10974. t7 = options.get$emitSourceMap();
  10975. t1 = A._asBool(t1.$index(0, "charset"));
  10976. t8 = options.get$silenceDeprecations(0);
  10977. $async$goto = 15;
  10978. return A._asyncAwait(A.compileAsync(source, t1, options.get$fatalDeprecations(0), options.get$futureDeprecations(0), importCache, t3, t5, t8, t7, t4, t2, t6), $async$_compileStylesheetWithoutErrorHandling);
  10979. case 15:
  10980. // returning from await.
  10981. result0 = $async$result;
  10982. case 11:
  10983. // join
  10984. result = result0;
  10985. // goto join
  10986. $async$goto = 8;
  10987. break;
  10988. case 9:
  10989. // else
  10990. $async$goto = source == null ? 16 : 18;
  10991. break;
  10992. case 16:
  10993. // then
  10994. $async$goto = 19;
  10995. return A._asyncAwait(A.readStdin(), $async$_compileStylesheetWithoutErrorHandling);
  10996. case 19:
  10997. // returning from await.
  10998. t2 = $async$result;
  10999. t3 = syntax;
  11000. t4 = A._asBool(t1.$index(0, "quiet")) ? $.$get$Logger_quiet() : new A.StderrLogger(options.get$color());
  11001. t5 = $.$get$FilesystemImporter_cwd();
  11002. t6 = J.$eq$(t1.$index(0, "style"), "compressed") ? B.OutputStyle_1 : B.OutputStyle_0;
  11003. t7 = A._asBool(t1.$index(0, "quiet-deps"));
  11004. t8 = A._asBool(t1.$index(0, "verbose"));
  11005. t9 = options.get$emitSourceMap();
  11006. t1 = A._asBool(t1.$index(0, "charset"));
  11007. t10 = options.get$silenceDeprecations(0);
  11008. t11 = options.get$fatalDeprecations(0);
  11009. t12 = options.get$futureDeprecations(0);
  11010. t13 = type$.Deprecation;
  11011. t14 = A.LinkedHashSet_LinkedHashSet$_empty(t13);
  11012. t14.addAll$1(0, t10);
  11013. t10 = A.LinkedHashSet_LinkedHashSet$_empty(t13);
  11014. t10.addAll$1(0, t11);
  11015. t11 = A.LinkedHashSet_LinkedHashSet$_empty(t13);
  11016. t11.addAll$1(0, t12);
  11017. logger = new A.DeprecationProcessingLogger(A.LinkedHashMap_LinkedHashMap$_empty(t13, type$.int), t4, t14, t10, t11, !t8);
  11018. logger.validate$0();
  11019. stylesheet = A.Stylesheet_Stylesheet$parse(t2, t3 == null ? B.Syntax_SCSS_scss : t3, null);
  11020. result0 = A._compileStylesheet(stylesheet, logger, graph.importCache, null, t5, null, t6, true, null, null, t7, t9, t1);
  11021. logger.summarize$1$js(false);
  11022. // goto join
  11023. $async$goto = 17;
  11024. break;
  11025. case 18:
  11026. // else
  11027. t2 = syntax;
  11028. t3 = A._asBool(t1.$index(0, "quiet")) ? $.$get$Logger_quiet() : new A.StderrLogger(options.get$color());
  11029. importCache = graph.importCache;
  11030. t4 = J.$eq$(t1.$index(0, "style"), "compressed") ? B.OutputStyle_1 : B.OutputStyle_0;
  11031. t5 = A._asBool(t1.$index(0, "quiet-deps"));
  11032. t6 = A._asBool(t1.$index(0, "verbose"));
  11033. t7 = options.get$emitSourceMap();
  11034. t1 = A._asBool(t1.$index(0, "charset"));
  11035. t8 = options.get$silenceDeprecations(0);
  11036. t9 = options.get$fatalDeprecations(0);
  11037. t10 = options.get$futureDeprecations(0);
  11038. t11 = type$.Deprecation;
  11039. t12 = A.LinkedHashSet_LinkedHashSet$_empty(t11);
  11040. t12.addAll$1(0, t8);
  11041. t8 = A.LinkedHashSet_LinkedHashSet$_empty(t11);
  11042. t8.addAll$1(0, t9);
  11043. t9 = A.LinkedHashSet_LinkedHashSet$_empty(t11);
  11044. t9.addAll$1(0, t10);
  11045. logger = new A.DeprecationProcessingLogger(A.LinkedHashMap_LinkedHashMap$_empty(t11, type$.int), t3, t12, t8, t9, !t6);
  11046. logger.validate$0();
  11047. t3 = t2 == null || t2 === A.Syntax_forPath(source);
  11048. if (t3) {
  11049. t2 = $.$get$FilesystemImporter_cwd();
  11050. t3 = A.isNodeJs() ? self.process : null;
  11051. if (!J.$eq$(t3 == null ? null : J.get$platform$x(t3), "win32")) {
  11052. t3 = A.isNodeJs() ? self.process : null;
  11053. t3 = J.$eq$(t3 == null ? null : J.get$platform$x(t3), "darwin");
  11054. } else
  11055. t3 = true;
  11056. if (t3) {
  11057. t3 = $.$get$context();
  11058. t6 = A._realCasePath(A.absolute(t3.normalize$1(source), null, null, null, null, null, null, null, null, null, null, null, null, null, null));
  11059. t0 = t6;
  11060. t6 = t3;
  11061. t3 = t0;
  11062. } else {
  11063. t3 = $.$get$context();
  11064. t6 = t3.canonicalize$1(0, source);
  11065. t0 = t6;
  11066. t6 = t3;
  11067. t3 = t0;
  11068. }
  11069. t6 = importCache.importCanonical$3$originalUrl(t2, t6.toUri$1(t3), t6.toUri$1(source));
  11070. t6.toString;
  11071. stylesheet = t6;
  11072. } else {
  11073. t3 = A.readFile(source);
  11074. if (t2 == null)
  11075. t2 = A.Syntax_forPath(source);
  11076. stylesheet = A.Stylesheet_Stylesheet$parse(t3, t2, $.$get$context().toUri$1(source));
  11077. }
  11078. result0 = A._compileStylesheet(stylesheet, logger, importCache, null, $.$get$FilesystemImporter_cwd(), null, t4, true, null, null, t5, t7, t1);
  11079. logger.summarize$1$js(false);
  11080. case 17:
  11081. // join
  11082. result = result0;
  11083. case 8:
  11084. // join
  11085. $async$handler = 2;
  11086. // goto after finally
  11087. $async$goto = 6;
  11088. break;
  11089. case 4:
  11090. // catch
  11091. $async$handler = 3;
  11092. $async$exception = $async$currentError;
  11093. t1 = A.unwrapException($async$exception);
  11094. if (t1 instanceof A.SassException) {
  11095. error = t1;
  11096. if (options.get$emitErrorCss())
  11097. if (destination == null)
  11098. A.print(error.toCssString$0());
  11099. else {
  11100. A.ensureDir($.$get$context().dirname$1(destination));
  11101. A.writeFile(destination, error.toCssString$0() + "\n");
  11102. }
  11103. throw $async$exception;
  11104. } else
  11105. throw $async$exception;
  11106. // goto after finally
  11107. $async$goto = 6;
  11108. break;
  11109. case 3:
  11110. // uncaught
  11111. // goto rethrow
  11112. $async$goto = 2;
  11113. break;
  11114. case 6:
  11115. // after finally
  11116. css = result._serialize._0 + A._writeSourceMap(options, result._serialize._1, destination);
  11117. if (destination == null) {
  11118. if (css.length !== 0)
  11119. A.print(css);
  11120. } else {
  11121. A.ensureDir($.$get$context().dirname$1(destination));
  11122. A.writeFile(destination, css + "\n");
  11123. }
  11124. t1 = options._options;
  11125. if (!A._asBool(t1.$index(0, "quiet")))
  11126. t1 = !A._asBool(t1.$index(0, "update")) && !A._asBool(t1.$index(0, "watch"));
  11127. else
  11128. t1 = true;
  11129. if (t1) {
  11130. // goto return
  11131. $async$goto = 1;
  11132. break;
  11133. }
  11134. buffer = new A.StringBuffer("");
  11135. if (source == null)
  11136. sourceName = "stdin";
  11137. else {
  11138. t1 = $.$get$context();
  11139. sourceName = t1.prettyUri$1(t1.toUri$1(source));
  11140. }
  11141. destination.toString;
  11142. t1 = $.$get$context();
  11143. destinationName = t1.prettyUri$1(t1.toUri$1(destination));
  11144. nowStr = new A.DateTime(Date.now(), 0, false).toString$0(0);
  11145. timestamp = B.JSString_methods.substring$2(nowStr, 0, nowStr.length - 7);
  11146. t1 = options.get$color() ? buffer._contents = "" + "\x1b[90m" : "";
  11147. t1 = buffer._contents = t1 + ("[" + timestamp + "] ");
  11148. if (options.get$color())
  11149. t1 = buffer._contents = t1 + "\x1b[32m";
  11150. t1 += "Compiled " + sourceName + " to " + destinationName + ".";
  11151. buffer._contents = t1;
  11152. if (options.get$color())
  11153. buffer._contents = t1 + "\x1b[0m";
  11154. t1 = A.isNodeJs() ? self.process : null;
  11155. if (t1 != null) {
  11156. t1 = J.get$stdout$x(t1);
  11157. J.write$1$x(t1, buffer.toString$0(0) + "\n");
  11158. } else {
  11159. t1 = self.console;
  11160. J.log$1$x(t1, buffer);
  11161. }
  11162. case 1:
  11163. // return
  11164. return A._asyncReturn($async$returnValue, $async$completer);
  11165. case 2:
  11166. // rethrow
  11167. return A._asyncRethrow($async$currentError, $async$completer);
  11168. }
  11169. });
  11170. return A._asyncStartSync($async$_compileStylesheetWithoutErrorHandling, $async$completer);
  11171. },
  11172. _writeSourceMap(options, sourceMap, destination) {
  11173. var t1, sourceMapText, url, sourceMapPath, t2, escapedUrl;
  11174. if (sourceMap == null)
  11175. return "";
  11176. if (destination != null) {
  11177. t1 = $.$get$context();
  11178. sourceMap.targetUrl = t1.toUri$1(A.ParsedPath_ParsedPath$parse(destination, t1.style).get$basename()).toString$0(0);
  11179. }
  11180. A.mapInPlace(sourceMap.urls, new A._writeSourceMap_closure(options, destination));
  11181. t1 = options._options;
  11182. sourceMapText = B.C_JsonCodec.encode$2$toEncodable(sourceMap.toJson$1$includeSourceContents(A._asBool(t1.$index(0, "embed-sources"))), null);
  11183. if (A._asBool(t1.$index(0, "embed-source-map")))
  11184. url = A.Uri_Uri$dataFromString(sourceMapText, B.C_Utf8Codec, "application/json");
  11185. else {
  11186. destination.toString;
  11187. sourceMapPath = destination + ".map";
  11188. t2 = $.$get$context();
  11189. A.ensureDir(t2.dirname$1(sourceMapPath));
  11190. A.writeFile(sourceMapPath, sourceMapText);
  11191. url = t2.toUri$1(t2.relative$2$from(sourceMapPath, t2.dirname$1(destination)));
  11192. }
  11193. t2 = url.toString$0(0);
  11194. escapedUrl = A.stringReplaceAllUnchecked(t2, "*/", "%2A/");
  11195. t1 = (J.$eq$(t1.$index(0, "style"), "compressed") ? B.OutputStyle_1 : B.OutputStyle_0) === B.OutputStyle_1 ? "" : "\n\n";
  11196. return t1 + ("/*# sourceMappingURL=" + escapedUrl + " */");
  11197. },
  11198. _tryDelete(path) {
  11199. var exception;
  11200. try {
  11201. A.deleteFile(path);
  11202. } catch (exception) {
  11203. if (!(A.unwrapException(exception) instanceof A.FileSystemException))
  11204. throw exception;
  11205. }
  11206. },
  11207. _getErrorWithStackTrace(exitCode, error, stackTrace) {
  11208. return new A._Record_3(exitCode, error, stackTrace != null ? B.JSString_methods.trimRight$0(A.Trace_Trace$from(stackTrace).get$terse().toString$0(0)) : null);
  11209. },
  11210. _writeSourceMap_closure: function _writeSourceMap_closure(t0, t1) {
  11211. this.options = t0;
  11212. this.destination = t1;
  11213. },
  11214. ExecutableOptions__separator(text) {
  11215. var t1 = $.$get$ExecutableOptions__separatorBar(),
  11216. t2 = B.JSString_methods.$mul(t1, 3),
  11217. t3 = A.hasTerminal() ? "\x1b[1m" : "",
  11218. t4 = A.hasTerminal() ? "\x1b[0m" : "";
  11219. return t2 + " " + t3 + text + t4 + " " + B.JSString_methods.$mul(t1, 35 - text.length);
  11220. },
  11221. ExecutableOptions__fail(message) {
  11222. return A.throwExpression(A.UsageException$(message));
  11223. },
  11224. ExecutableOptions_ExecutableOptions$parse(args) {
  11225. var options, error, t1, t2, exception;
  11226. try {
  11227. t1 = $.$get$ExecutableOptions__parser();
  11228. t2 = A.ListQueue$(type$.String);
  11229. t2.addAll$1(0, args);
  11230. t2 = A.Parser$(null, t1, t2, null, null).parse$0(0);
  11231. if (t2.wasParsed$1("poll") && !A._asBool(t2.$index(0, "watch")))
  11232. A.ExecutableOptions__fail("--poll may not be passed without --watch.");
  11233. options = new A.ExecutableOptions(t2);
  11234. if (A._asBool(options._options.$index(0, "help")))
  11235. A.ExecutableOptions__fail("Compile Sass to CSS.");
  11236. return options;
  11237. } catch (exception) {
  11238. t1 = A.unwrapException(exception);
  11239. if (type$.FormatException._is(t1)) {
  11240. error = t1;
  11241. A.ExecutableOptions__fail(J.get$message$x(error));
  11242. } else
  11243. throw exception;
  11244. }
  11245. },
  11246. UsageException$(message) {
  11247. return new A.UsageException(message);
  11248. },
  11249. ExecutableOptions: function ExecutableOptions(t0) {
  11250. var _ = this;
  11251. _._options = t0;
  11252. _.__ExecutableOptions_interactive_FI = $;
  11253. _._sourcesToDestinations = null;
  11254. _.__ExecutableOptions__sourceDirectoriesToDestinations_F = $;
  11255. _._fatalDeprecations = null;
  11256. },
  11257. ExecutableOptions__parser_closure: function ExecutableOptions__parser_closure() {
  11258. },
  11259. ExecutableOptions_interactive_closure: function ExecutableOptions_interactive_closure(t0) {
  11260. this.$this = t0;
  11261. },
  11262. ExecutableOptions_emitErrorCss_closure: function ExecutableOptions_emitErrorCss_closure() {
  11263. },
  11264. ExecutableOptions_fatalDeprecations_closure: function ExecutableOptions_fatalDeprecations_closure(t0) {
  11265. this.$this = t0;
  11266. },
  11267. UsageException: function UsageException(t0) {
  11268. this.message = t0;
  11269. },
  11270. repl(options) {
  11271. return A.repl$body(options);
  11272. },
  11273. repl$body(options) {
  11274. var $async$goto = 0,
  11275. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  11276. $async$handler = 1, $async$currentError, $async$next = [], repl, trackingLogger, warn, evaluator, line, node, warnings, _1_0, node0, warnings0, _2_0, node1, warnings1, _3_0, error, stackTrace, logger, t4, t5, t6, t7, t8, t9, line0, toZone, exception, t1, t2, t3, repl0;
  11277. var $async$repl = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  11278. if ($async$errorCode === 1) {
  11279. $async$currentError = $async$result;
  11280. $async$goto = $async$handler;
  11281. }
  11282. while (true)
  11283. switch ($async$goto) {
  11284. case 0:
  11285. // Function start
  11286. t1 = A._setArrayType([], type$.JSArray_String);
  11287. t2 = B.JSString_methods.$mul(" ", 3);
  11288. t3 = $.$get$alwaysValid();
  11289. repl0 = new A.Repl(">> ", t2, t3, t1);
  11290. repl0.__Repl__adapter_A = new A.ReplAdapter(repl0);
  11291. repl = repl0;
  11292. t1 = options._options;
  11293. trackingLogger = new A.TrackingLogger(A._asBool(t1.$index(0, "quiet")) ? $.$get$Logger_quiet() : new A.StderrLogger(options.get$color()));
  11294. logger = new A.DeprecationProcessingLogger(A.LinkedHashMap_LinkedHashMap$_empty(type$.Deprecation, type$.int), trackingLogger, options.get$silenceDeprecations(0), options.get$fatalDeprecations(0), options.get$futureDeprecations(0), !A._asBool(t1.$index(0, "verbose")));
  11295. logger.validate$0();
  11296. warn = new A.repl_warn(logger);
  11297. t2 = $.$get$FilesystemImporter_cwd();
  11298. evaluator = new A.Evaluator(A._EvaluateVisitor$(null, A.ImportCache$(options.get$pkgImporters(), type$.List_String._as(t1.$index(0, "load-path"))), logger, null, false, false), t2);
  11299. t2 = repl.__Repl__adapter_A;
  11300. t2 === $ && A.throwUnnamedLateFieldNI();
  11301. t2 = new A._StreamIterator(A.checkNotNullable(t2.runAsync$0(), "stream", type$.Object));
  11302. $async$handler = 2;
  11303. t1 = type$.String, t3 = type$.VariableDeclaration, t4 = type$.JSArray_Record_3_nullable_Deprecation_deprecation_and_String_message_and_FileSpan_span, t5 = type$.Expression;
  11304. case 5:
  11305. // for condition
  11306. $async$goto = 7;
  11307. return A._asyncAwait(t2.moveNext$0(), $async$repl);
  11308. case 7:
  11309. // returning from await.
  11310. if (!$async$result) {
  11311. // goto after for
  11312. $async$goto = 6;
  11313. break;
  11314. }
  11315. line = t2.get$current(0);
  11316. if (J.trim$0$s(line).length === 0) {
  11317. // goto for condition
  11318. $async$goto = 5;
  11319. break;
  11320. }
  11321. try {
  11322. if (J.startsWith$1$s(line, "@")) {
  11323. node = null;
  11324. warnings = null;
  11325. _1_0 = new A.ScssParser(A.LinkedHashMap_LinkedHashMap$_empty(t1, t3), A._setArrayType([], t4), A.SpanScanner$(line, null), null).parseUseRule$0();
  11326. node = _1_0._0;
  11327. warnings = _1_0._1;
  11328. J.forEach$1$ax(warnings, warn);
  11329. t6 = evaluator;
  11330. t7 = node;
  11331. t6._visitor.runStatement$2(t6._importer, t7);
  11332. // goto for condition
  11333. $async$goto = 5;
  11334. break;
  11335. }
  11336. if (new A.Parser(A.SpanScanner$(line, null), null)._isVariableDeclarationLike$0()) {
  11337. node0 = null;
  11338. warnings0 = null;
  11339. _2_0 = new A.ScssParser(A.LinkedHashMap_LinkedHashMap$_empty(t1, t3), A._setArrayType([], t4), A.SpanScanner$(line, null), null).parseVariableDeclaration$0();
  11340. node0 = _2_0._0;
  11341. warnings0 = _2_0._1;
  11342. J.forEach$1$ax(warnings0, warn);
  11343. t6 = evaluator;
  11344. t7 = node0;
  11345. t6._visitor.runStatement$2(t6._importer, t7);
  11346. t7 = evaluator;
  11347. t6 = node0.name;
  11348. t8 = node0.span;
  11349. t9 = node0.namespace;
  11350. line0 = t7._visitor.runExpression$2(t7._importer, new A.VariableExpression(t9, t6, t8)).toString$0(0);
  11351. toZone = $.printToZone;
  11352. if (toZone == null)
  11353. A.printString(line0);
  11354. else
  11355. toZone.call$1(line0);
  11356. } else {
  11357. node1 = null;
  11358. warnings1 = null;
  11359. t6 = A._setArrayType([], t4);
  11360. t7 = new A.ScssParser(A.LinkedHashMap_LinkedHashMap$_empty(t1, t3), t6, A.SpanScanner$(line, null), null);
  11361. _3_0 = new A._Record_2(t7._parseSingleProduction$1$1(t7.get$_expression(), t5), t6);
  11362. node1 = _3_0._0;
  11363. warnings1 = _3_0._1;
  11364. J.forEach$1$ax(warnings1, warn);
  11365. t6 = evaluator;
  11366. t7 = node1;
  11367. line0 = t6._visitor.runExpression$2(t6._importer, t7).toString$0(0);
  11368. toZone = $.printToZone;
  11369. if (toZone == null)
  11370. A.printString(line0);
  11371. else
  11372. toZone.call$1(line0);
  11373. }
  11374. } catch (exception) {
  11375. t6 = A.unwrapException(exception);
  11376. if (t6 instanceof A.SassException) {
  11377. error = t6;
  11378. stackTrace = A.getTraceFromException(exception);
  11379. t6 = error;
  11380. t7 = typeof t6 != "string";
  11381. if (!t7 || typeof t6 == "number" || A._isBool(t6))
  11382. t6 = null;
  11383. else {
  11384. t8 = $.$get$_traces();
  11385. if (A._isBool(t6) || typeof t6 == "number" || !t7 || t6 instanceof A._Record)
  11386. A.Expando__badExpandoKey(t6);
  11387. t6 = t8._jsWeakMap.get(t6);
  11388. }
  11389. if (t6 == null)
  11390. t6 = stackTrace;
  11391. A._logError(error, t6, line, repl, options, trackingLogger);
  11392. } else
  11393. throw exception;
  11394. }
  11395. // goto for condition
  11396. $async$goto = 5;
  11397. break;
  11398. case 6:
  11399. // after for
  11400. $async$next.push(4);
  11401. // goto finally
  11402. $async$goto = 3;
  11403. break;
  11404. case 2:
  11405. // uncaught
  11406. $async$next = [1];
  11407. case 3:
  11408. // finally
  11409. $async$handler = 1;
  11410. $async$goto = 8;
  11411. return A._asyncAwait(t2.cancel$0(), $async$repl);
  11412. case 8:
  11413. // returning from await.
  11414. // goto the next finally handler
  11415. $async$goto = $async$next.pop();
  11416. break;
  11417. case 4:
  11418. // after finally
  11419. // implicit return
  11420. return A._asyncReturn(null, $async$completer);
  11421. case 1:
  11422. // rethrow
  11423. return A._asyncRethrow($async$currentError, $async$completer);
  11424. }
  11425. });
  11426. return A._asyncStartSync($async$repl, $async$completer);
  11427. },
  11428. _logError(error, stackTrace, line, repl, options, logger) {
  11429. var t2, spacesBeforeError, t3,
  11430. t1 = A.SourceSpanException.prototype.get$span.call(error, 0);
  11431. if (t1.get$sourceUrl(t1) == null)
  11432. if (!A._asBool(options._options.$index(0, "quiet")))
  11433. t1 = logger._emittedDebug || logger._emittedWarning;
  11434. else
  11435. t1 = false;
  11436. else
  11437. t1 = true;
  11438. if (t1) {
  11439. A.print(error.toString$1$color(0, options.get$color()));
  11440. return;
  11441. }
  11442. t1 = options.get$color() ? "" + "\x1b[31m" : "";
  11443. t2 = A.SourceSpanException.prototype.get$span.call(error, 0);
  11444. t2 = t2.get$start(t2);
  11445. spacesBeforeError = repl.prompt.length + t2.file.getColumn$1(t2.offset);
  11446. if (options.get$color()) {
  11447. t2 = A.SourceSpanException.prototype.get$span.call(error, 0);
  11448. t2 = t2.get$start(t2);
  11449. t2 = t2.file.getColumn$1(t2.offset) < line.length;
  11450. } else
  11451. t2 = false;
  11452. if (t2)
  11453. t1 = t1 + ("\x1b[1F\x1b[" + spacesBeforeError + "C") + (A.SourceSpanException.prototype.get$span.call(error, 0).get$text() + "\n");
  11454. t2 = B.JSString_methods.$mul(" ", spacesBeforeError);
  11455. t3 = A.SourceSpanException.prototype.get$span.call(error, 0);
  11456. t3 = t1 + t2 + (B.JSString_methods.$mul("^", Math.max(1, t3.get$length(t3))) + "\n");
  11457. t1 = options.get$color() ? t3 + "\x1b[0m" : t3;
  11458. t1 += "Error: " + error._span_exception$_message + "\n";
  11459. if (A._asBool(options._options.$index(0, "trace")))
  11460. t1 += A.Trace_Trace$from(stackTrace).get$terse().toString$0(0);
  11461. A.print(B.JSString_methods.trimRight$0(t1.charCodeAt(0) == 0 ? t1 : t1));
  11462. },
  11463. repl_warn: function repl_warn(t0) {
  11464. this.logger = t0;
  11465. },
  11466. watch(options, graph) {
  11467. var $async$goto = 0,
  11468. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  11469. $async$returnValue, t1, t2, t3, t4, t5, t6, dirWatcher, sourcesToDestinations, t0;
  11470. var $async$watch = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  11471. if ($async$errorCode === 1)
  11472. return A._asyncRethrow($async$result, $async$completer);
  11473. while (true)
  11474. switch ($async$goto) {
  11475. case 0:
  11476. // Function start
  11477. options._ensureSources$0();
  11478. t1 = options.__ExecutableOptions__sourceDirectoriesToDestinations_F;
  11479. t1 === $ && A.throwUnnamedLateFieldNI();
  11480. t2 = type$.String;
  11481. t1 = t1.cast$2$0(0, t2, t2);
  11482. t1 = A.List_List$of(t1.get$keys(t1), true, t2);
  11483. for (options._ensureSources$0(), t3 = options._sourcesToDestinations.cast$2$0(0, t2, t2), t3 = J.get$iterator$ax(t3.get$keys(t3)); t3.moveNext$0();) {
  11484. t4 = t3.get$current(t3);
  11485. t1.push($.$get$context().dirname$1(t4));
  11486. }
  11487. t3 = options._options;
  11488. B.JSArray_methods.addAll$1(t1, type$.List_String._as(t3.$index(0, "load-path")));
  11489. t4 = A._asBool(t3.$index(0, "poll"));
  11490. t5 = type$.Stream_WatchEvent;
  11491. t6 = A.PathMap__create(null, t5);
  11492. t5 = new A.StreamGroup(B._StreamGroupState_dormant, A.LinkedHashMap_LinkedHashMap$_empty(t5, type$.nullable_StreamSubscription_WatchEvent), type$.StreamGroup_WatchEvent);
  11493. t5.__StreamGroup__controller_A = A.StreamController_StreamController(t5.get$_onCancel(), t5.get$_onListen(), t5.get$_onPause(), t5.get$_onResume(), true, type$.WatchEvent);
  11494. dirWatcher = new A.MultiDirWatcher(new A.PathMap(t6, type$.PathMap_Stream_WatchEvent), t5, t4);
  11495. $async$goto = 3;
  11496. return A._asyncAwait(A.Future_wait(new A.MappedListIterable(t1, new A.watch_closure(dirWatcher), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Future<~>>")), false, type$.void), $async$watch);
  11497. case 3:
  11498. // returning from await.
  11499. options._ensureSources$0();
  11500. sourcesToDestinations = options._sourcesToDestinations.cast$2$0(0, t2, t2);
  11501. for (t1 = J.get$iterator$ax(sourcesToDestinations.get$keys(sourcesToDestinations)); t1.moveNext$0();) {
  11502. t2 = t1.get$current(t1);
  11503. t4 = $.$get$FilesystemImporter_cwd();
  11504. t5 = self.process;
  11505. if (t5 == null)
  11506. t5 = null;
  11507. else {
  11508. t5 = J.get$release$x(t5);
  11509. t5 = t5 == null ? null : J.get$name$x(t5);
  11510. }
  11511. t5 = J.$eq$(t5, "node") ? self.process : null;
  11512. if (!J.$eq$(t5 == null ? null : J.get$platform$x(t5), "win32")) {
  11513. t5 = self.process;
  11514. if (t5 == null)
  11515. t5 = null;
  11516. else {
  11517. t5 = J.get$release$x(t5);
  11518. t5 = t5 == null ? null : J.get$name$x(t5);
  11519. }
  11520. t5 = J.$eq$(t5, "node") ? self.process : null;
  11521. t5 = J.$eq$(t5 == null ? null : J.get$platform$x(t5), "darwin");
  11522. } else
  11523. t5 = true;
  11524. if (t5) {
  11525. t5 = $.$get$context();
  11526. t6 = A._realCasePath(t5.absolute$15(t5.normalize$1(t2), null, null, null, null, null, null, null, null, null, null, null, null, null, null));
  11527. t0 = t6;
  11528. t6 = t5;
  11529. t5 = t0;
  11530. } else {
  11531. t5 = $.$get$context();
  11532. t6 = t5.canonicalize$1(0, t2);
  11533. t0 = t6;
  11534. t6 = t5;
  11535. t5 = t0;
  11536. }
  11537. graph.addCanonical$4$recanonicalize(t4, t6.toUri$1(t5), t6.toUri$1(t2), false);
  11538. }
  11539. $async$goto = 4;
  11540. return A._asyncAwait(A.compileStylesheets(options, graph, sourcesToDestinations, true), $async$watch);
  11541. case 4:
  11542. // returning from await.
  11543. if (!$async$result && A._asBool(t3.$index(0, "stop-on-error"))) {
  11544. t1 = dirWatcher._group.__StreamGroup__controller_A;
  11545. t1 === $ && A.throwUnnamedLateFieldNI();
  11546. new A._ControllerStream(t1, A._instanceType(t1)._eval$1("_ControllerStream<1>")).listen$1(0, null).cancel$0();
  11547. // goto return
  11548. $async$goto = 1;
  11549. break;
  11550. }
  11551. A.print("Sass is watching for changes. Press Ctrl-C to stop.\n");
  11552. $async$goto = 5;
  11553. return A._asyncAwait(new A._Watcher(options, graph).watch$1(0, dirWatcher), $async$watch);
  11554. case 5:
  11555. // returning from await.
  11556. case 1:
  11557. // return
  11558. return A._asyncReturn($async$returnValue, $async$completer);
  11559. }
  11560. });
  11561. return A._asyncStartSync($async$watch, $async$completer);
  11562. },
  11563. watch_closure: function watch_closure(t0) {
  11564. this.dirWatcher = t0;
  11565. },
  11566. _Watcher: function _Watcher(t0, t1) {
  11567. this._watch$_options = t0;
  11568. this._graph = t1;
  11569. },
  11570. _Watcher__debounceEvents_closure: function _Watcher__debounceEvents_closure() {
  11571. },
  11572. EmptyExtensionStore: function EmptyExtensionStore() {
  11573. },
  11574. Extension: function Extension(t0, t1, t2, t3, t4) {
  11575. var _ = this;
  11576. _.extender = t0;
  11577. _.target = t1;
  11578. _.mediaContext = t2;
  11579. _.isOptional = t3;
  11580. _.span = t4;
  11581. },
  11582. Extender: function Extender(t0, t1) {
  11583. this.selector = t0;
  11584. this.isOriginal = t1;
  11585. this._extension = null;
  11586. },
  11587. ExtensionStore__extendOrReplace(selector, source, targets, mode, span) {
  11588. var t1, t2, t3, t4, t5, t6, t7, t8, _i, complex, compound, t9, t10, t11, _i0, simple, t12, _i1, t13, t14,
  11589. extender = A.ExtensionStore$_mode(mode);
  11590. if (!selector.accept$1(B._IsInvisibleVisitor_true))
  11591. extender._originals.addAll$1(0, selector.components);
  11592. for (t1 = targets.components, t2 = t1.length, t3 = source.components, t4 = t3.length, t5 = type$.ComplexSelector, t6 = type$.Extension, t7 = type$.SimpleSelector, t8 = type$.Map_ComplexSelector_Extension, _i = 0; _i < t2; ++_i) {
  11593. complex = t1[_i];
  11594. compound = complex.get$singleCompound();
  11595. if (compound == null)
  11596. throw A.wrapException(A.SassScriptException$("Can't extend complex selector " + A.S(complex) + ".", null));
  11597. t9 = A.LinkedHashMap_LinkedHashMap$_empty(t7, t8);
  11598. for (t10 = compound.components, t11 = t10.length, _i0 = 0; _i0 < t11; ++_i0) {
  11599. simple = t10[_i0];
  11600. t12 = A.LinkedHashMap_LinkedHashMap$_empty(t5, t6);
  11601. for (_i1 = 0; _i1 < t4; ++_i1) {
  11602. complex = t3[_i1];
  11603. complex.get$specificity();
  11604. t13 = new A.Extender(complex, false);
  11605. t14 = new A.Extension(t13, simple, null, true, span);
  11606. t13._extension = t14;
  11607. t12.$indexSet(0, complex, t14);
  11608. }
  11609. t9.$indexSet(0, simple, t12);
  11610. }
  11611. selector = extender._extendList$2(selector, t9);
  11612. }
  11613. return selector;
  11614. },
  11615. ExtensionStore$() {
  11616. var t1 = type$.SimpleSelector;
  11617. return new A.ExtensionStore(A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Set_ModifiableBox_SelectorList), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Map_ComplexSelector_Extension), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.List_Extension), A.LinkedHashMap_LinkedHashMap$_empty(type$.ModifiableBox_SelectorList, type$.List_CssMediaQuery), new A.JsIdentityLinkedHashMap(type$.JsIdentityLinkedHashMap_SimpleSelector_int), new A._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_ComplexSelector), B.ExtendMode_normal_normal);
  11618. },
  11619. ExtensionStore$_mode(_mode) {
  11620. var t1 = type$.SimpleSelector;
  11621. return new A.ExtensionStore(A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Set_ModifiableBox_SelectorList), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Map_ComplexSelector_Extension), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.List_Extension), A.LinkedHashMap_LinkedHashMap$_empty(type$.ModifiableBox_SelectorList, type$.List_CssMediaQuery), new A.JsIdentityLinkedHashMap(type$.JsIdentityLinkedHashMap_SimpleSelector_int), new A._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_ComplexSelector), _mode);
  11622. },
  11623. ExtensionStore: function ExtensionStore(t0, t1, t2, t3, t4, t5, t6) {
  11624. var _ = this;
  11625. _._selectors = t0;
  11626. _._extensions = t1;
  11627. _._extensionsByExtender = t2;
  11628. _._mediaContexts = t3;
  11629. _._sourceSpecificity = t4;
  11630. _._originals = t5;
  11631. _._mode = t6;
  11632. },
  11633. ExtensionStore_extensionsWhereTarget_closure: function ExtensionStore_extensionsWhereTarget_closure() {
  11634. },
  11635. ExtensionStore__registerSelector_closure: function ExtensionStore__registerSelector_closure() {
  11636. },
  11637. ExtensionStore_addExtension_closure: function ExtensionStore_addExtension_closure() {
  11638. },
  11639. ExtensionStore_addExtension_closure0: function ExtensionStore_addExtension_closure0() {
  11640. },
  11641. ExtensionStore_addExtension_closure1: function ExtensionStore_addExtension_closure1(t0) {
  11642. this.complex = t0;
  11643. },
  11644. ExtensionStore__extendExistingExtensions_closure: function ExtensionStore__extendExistingExtensions_closure() {
  11645. },
  11646. ExtensionStore__extendExistingExtensions_closure0: function ExtensionStore__extendExistingExtensions_closure0() {
  11647. },
  11648. ExtensionStore_addExtensions_closure: function ExtensionStore_addExtensions_closure() {
  11649. },
  11650. ExtensionStore__extendComplex_closure: function ExtensionStore__extendComplex_closure(t0, t1, t2) {
  11651. this._box_0 = t0;
  11652. this.$this = t1;
  11653. this.complex = t2;
  11654. },
  11655. ExtensionStore__extendComplex__closure: function ExtensionStore__extendComplex__closure(t0, t1, t2) {
  11656. this._box_0 = t0;
  11657. this.$this = t1;
  11658. this.complex = t2;
  11659. },
  11660. ExtensionStore__extendCompound_closure: function ExtensionStore__extendCompound_closure() {
  11661. },
  11662. ExtensionStore__extendCompound_closure0: function ExtensionStore__extendCompound_closure0() {
  11663. },
  11664. ExtensionStore__extendCompound_closure1: function ExtensionStore__extendCompound_closure1(t0) {
  11665. this.original = t0;
  11666. },
  11667. ExtensionStore__extendSimple_withoutPseudo: function ExtensionStore__extendSimple_withoutPseudo(t0, t1, t2) {
  11668. this.$this = t0;
  11669. this.extensions = t1;
  11670. this.targetsUsed = t2;
  11671. },
  11672. ExtensionStore__extendSimple_closure: function ExtensionStore__extendSimple_closure(t0, t1) {
  11673. this.$this = t0;
  11674. this.withoutPseudo = t1;
  11675. },
  11676. ExtensionStore__extendSimple_closure0: function ExtensionStore__extendSimple_closure0() {
  11677. },
  11678. ExtensionStore__extendPseudo_closure: function ExtensionStore__extendPseudo_closure() {
  11679. },
  11680. ExtensionStore__extendPseudo_closure0: function ExtensionStore__extendPseudo_closure0() {
  11681. },
  11682. ExtensionStore__extendPseudo_closure1: function ExtensionStore__extendPseudo_closure1() {
  11683. },
  11684. ExtensionStore__extendPseudo_closure2: function ExtensionStore__extendPseudo_closure2(t0) {
  11685. this.pseudo = t0;
  11686. },
  11687. ExtensionStore__extendPseudo_closure3: function ExtensionStore__extendPseudo_closure3(t0, t1) {
  11688. this.pseudo = t0;
  11689. this.selector = t1;
  11690. },
  11691. ExtensionStore__trim_closure: function ExtensionStore__trim_closure(t0, t1) {
  11692. this._box_0 = t0;
  11693. this.complex1 = t1;
  11694. },
  11695. ExtensionStore__trim_closure0: function ExtensionStore__trim_closure0(t0, t1) {
  11696. this._box_0 = t0;
  11697. this.complex1 = t1;
  11698. },
  11699. ExtensionStore_clone_closure: function ExtensionStore_clone_closure(t0, t1, t2, t3) {
  11700. var _ = this;
  11701. _.$this = t0;
  11702. _.newSelectors = t1;
  11703. _.oldToNewSelectors = t2;
  11704. _.newMediaContexts = t3;
  11705. },
  11706. unifyComplex(complexes, span) {
  11707. var t2, trailingCombinator, leadingCombinator, unifiedBase, t3, t4, _0_6_isSet, _0_6, t5, newLeadingCombinator, base, _1_1, newTrailingCombinator, unifiedBase0, t6, t7, t8, _null = null,
  11708. t1 = J.getInterceptor$asx(complexes);
  11709. if (t1.get$length(complexes) === 1)
  11710. return complexes;
  11711. for (t2 = t1.get$iterator(complexes), trailingCombinator = _null, leadingCombinator = trailingCombinator, unifiedBase = leadingCombinator; t2.moveNext$0();) {
  11712. t3 = t2.get$current(t2);
  11713. if (t3.accept$1(B.C__IsUselessVisitor))
  11714. return _null;
  11715. t4 = t3.components;
  11716. _0_6_isSet = t4.length === 1;
  11717. if (_0_6_isSet) {
  11718. _0_6 = t3.leadingCombinators;
  11719. t5 = _0_6.length === 1;
  11720. } else {
  11721. _0_6 = _null;
  11722. t5 = false;
  11723. }
  11724. if (t5) {
  11725. newLeadingCombinator = (_0_6_isSet ? _0_6 : t3.leadingCombinators)[0];
  11726. if (leadingCombinator == null)
  11727. leadingCombinator = newLeadingCombinator;
  11728. else if (!(leadingCombinator.$ti._is(newLeadingCombinator) && J.$eq$(newLeadingCombinator.value, leadingCombinator.value)))
  11729. return _null;
  11730. }
  11731. base = B.JSArray_methods.get$last(t4);
  11732. _1_1 = base.combinators;
  11733. if (_1_1.length === 1) {
  11734. newTrailingCombinator = _1_1[0];
  11735. if (trailingCombinator != null)
  11736. t3 = !(trailingCombinator.$ti._is(newTrailingCombinator) && J.$eq$(newTrailingCombinator.value, trailingCombinator.value));
  11737. else
  11738. t3 = false;
  11739. if (t3)
  11740. return _null;
  11741. trailingCombinator = newTrailingCombinator;
  11742. }
  11743. unifiedBase0 = base.selector;
  11744. if (unifiedBase == null)
  11745. unifiedBase = unifiedBase0;
  11746. else {
  11747. unifiedBase = A.unifyCompound(unifiedBase, unifiedBase0);
  11748. if (unifiedBase == null)
  11749. return _null;
  11750. }
  11751. }
  11752. t2 = type$.JSArray_ComplexSelector;
  11753. t3 = A._setArrayType([], t2);
  11754. for (t4 = t1.get$iterator(complexes); t4.moveNext$0();) {
  11755. t5 = t4.get$current(t4);
  11756. t6 = t5.components;
  11757. t7 = t6.length;
  11758. if (t7 > 1) {
  11759. t8 = t5.leadingCombinators;
  11760. t3.push(A.ComplexSelector$(t8, B.JSArray_methods.take$1(t6, t7 - 1), t5.span, t5.lineBreak));
  11761. }
  11762. }
  11763. t4 = leadingCombinator == null ? B.List_empty0 : A._setArrayType([leadingCombinator], type$.JSArray_CssValue_Combinator);
  11764. unifiedBase.toString;
  11765. t5 = trailingCombinator == null ? B.List_empty0 : A._setArrayType([trailingCombinator], type$.JSArray_CssValue_Combinator);
  11766. base = A.ComplexSelector$(t4, A._setArrayType([new A.ComplexSelectorComponent(unifiedBase, A.List_List$unmodifiable(t5, type$.CssValue_Combinator), span)], type$.JSArray_ComplexSelectorComponent), span, t1.any$1(complexes, new A.unifyComplex_closure()));
  11767. if (t3.length === 0)
  11768. t1 = A._setArrayType([base], t2);
  11769. else {
  11770. t1 = A.List_List$of(A.IterableExtension_get_exceptLast(t3), true, type$.ComplexSelector);
  11771. t1.push(B.JSArray_methods.get$last(t3).concatenate$2(base, span));
  11772. }
  11773. return A.weave(t1, span, false);
  11774. },
  11775. unifyCompound(compound1, compound2) {
  11776. var t1, t2, pseudoElementFound, _i, simple, unified,
  11777. result = compound1.components,
  11778. pseudoResult = A._setArrayType([], type$.JSArray_SimpleSelector);
  11779. for (t1 = compound2.components, t2 = t1.length, pseudoElementFound = false, _i = 0; _i < t2; ++_i) {
  11780. simple = t1[_i];
  11781. if (pseudoElementFound && simple instanceof A.PseudoSelector) {
  11782. unified = simple.unify$1(pseudoResult);
  11783. if (unified == null)
  11784. return null;
  11785. pseudoResult = unified;
  11786. } else {
  11787. pseudoElementFound = B.JSBool_methods.$or(pseudoElementFound, simple instanceof A.PseudoSelector && !simple.isClass);
  11788. unified = simple.unify$1(result);
  11789. if (unified == null)
  11790. return null;
  11791. result = unified;
  11792. }
  11793. }
  11794. t1 = A.List_List$of(result, true, type$.SimpleSelector);
  11795. B.JSArray_methods.addAll$1(t1, pseudoResult);
  11796. return A.CompoundSelector$(t1, compound1.span);
  11797. },
  11798. unifyUniversalAndElement(selector1, selector2) {
  11799. var namespace, $name, t1,
  11800. _0_0 = A._namespaceAndName(selector1, "selector1"),
  11801. namespace1 = _0_0._0,
  11802. name1 = _0_0._1,
  11803. _1_0 = A._namespaceAndName(selector2, "selector2"),
  11804. namespace2 = _1_0._0,
  11805. name2 = _1_0._1;
  11806. if (namespace1 == namespace2 || namespace2 === "*")
  11807. namespace = namespace1;
  11808. else {
  11809. if (namespace1 !== "*")
  11810. return null;
  11811. namespace = namespace2;
  11812. }
  11813. if (name1 == name2 || name2 == null)
  11814. $name = name1;
  11815. else {
  11816. if (!(name1 == null || name1 === "*"))
  11817. return null;
  11818. $name = name2;
  11819. }
  11820. t1 = selector1.span;
  11821. return $name == null ? new A.UniversalSelector(namespace, t1) : new A.TypeSelector(new A.QualifiedName($name, namespace), t1);
  11822. },
  11823. _namespaceAndName(selector, $name) {
  11824. var t1, _0_4;
  11825. $label0$0: {
  11826. if (selector instanceof A.UniversalSelector) {
  11827. t1 = new A._Record_2(selector.namespace, null);
  11828. break $label0$0;
  11829. }
  11830. if (selector instanceof A.TypeSelector) {
  11831. _0_4 = selector.name;
  11832. t1 = new A._Record_2(_0_4.namespace, _0_4.name);
  11833. break $label0$0;
  11834. }
  11835. t1 = A.throwExpression(A.ArgumentError$value(selector, $name, string$.must_b));
  11836. }
  11837. return t1;
  11838. },
  11839. weave(complexes, span, forceLineBreak) {
  11840. var complex, t2, prefixes, t3, t4, t5, t6, i, t7, t8, _i, t9, t10, _i0, parentPrefix, t11, t12,
  11841. t1 = J.getInterceptor$asx(complexes);
  11842. if (t1.get$length(complexes) === 1) {
  11843. complex = t1.$index(complexes, 0);
  11844. if (!forceLineBreak || complex.lineBreak)
  11845. return complexes;
  11846. return A._setArrayType([A.ComplexSelector$(complex.leadingCombinators, complex.components, complex.span, true)], type$.JSArray_ComplexSelector);
  11847. }
  11848. t2 = type$.JSArray_ComplexSelector;
  11849. prefixes = A._setArrayType([t1.get$first(complexes)], t2);
  11850. for (t1 = t1.skip$1(complexes, 1), t3 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t3._eval$1("ListIterator<ListIterable.E>")), t4 = type$.ComplexSelectorComponent, t3 = t3._eval$1("ListIterable.E"); t1.moveNext$0();) {
  11851. t5 = t1.__internal$_current;
  11852. if (t5 == null)
  11853. t5 = t3._as(t5);
  11854. t6 = t5.components;
  11855. if (t6.length === 1) {
  11856. for (i = 0; i < prefixes.length; ++i)
  11857. prefixes[i] = prefixes[i].concatenate$3$forceLineBreak(t5, span, forceLineBreak);
  11858. continue;
  11859. }
  11860. t7 = A._setArrayType([], t2);
  11861. for (t8 = prefixes.length, _i = 0; _i < prefixes.length; prefixes.length === t8 || (0, A.throwConcurrentModificationError)(prefixes), ++_i) {
  11862. t9 = A._weaveParents(prefixes[_i], t5, span);
  11863. if (t9 == null)
  11864. t9 = B.List_empty1;
  11865. t10 = t9.length;
  11866. _i0 = 0;
  11867. for (; _i0 < t9.length; t9.length === t10 || (0, A.throwConcurrentModificationError)(t9), ++_i0) {
  11868. parentPrefix = t9[_i0];
  11869. t11 = B.JSArray_methods.get$last(t6);
  11870. t12 = A.List_List$of(parentPrefix.components, true, t4);
  11871. t12.push(t11);
  11872. t11 = parentPrefix.lineBreak || forceLineBreak;
  11873. t7.push(A.ComplexSelector$(parentPrefix.leadingCombinators, t12, span, t11));
  11874. }
  11875. }
  11876. prefixes = t7;
  11877. }
  11878. return prefixes;
  11879. },
  11880. _weaveParents(prefix, base, span) {
  11881. var t1, queue1, queue2, trailingCombinators, _0_1, _0_3, _0_3_isSet, _0_30, rootish2, t2, rootish1, rootish, t3, rootish_case_0, t0, rootish_case_1, groups1, groups2, lcs, choices, t4, _i, group, t5, t6, t7, _i0, chunk, t8, t9, _null = null,
  11882. leadingCombinators = A._mergeLeadingCombinators(prefix.leadingCombinators, base.leadingCombinators);
  11883. if (leadingCombinators == null)
  11884. return _null;
  11885. t1 = type$.ComplexSelectorComponent;
  11886. queue1 = A.QueueList_QueueList$from(prefix.components, t1);
  11887. queue2 = A.QueueList_QueueList$from(A.IterableExtension_get_exceptLast(base.components), t1);
  11888. trailingCombinators = A._mergeTrailingCombinators(queue1, queue2, span, _null);
  11889. if (trailingCombinators == null)
  11890. return _null;
  11891. $label0$0: {
  11892. _0_1 = A._firstIfRootish(queue1);
  11893. _0_3 = A._firstIfRootish(queue2);
  11894. _0_3_isSet = _0_1 != null;
  11895. _0_30 = _null;
  11896. rootish2 = _null;
  11897. t2 = false;
  11898. if (_0_3_isSet) {
  11899. rootish1 = _0_1 == null ? t1._as(_0_1) : _0_1;
  11900. t2 = _0_3 != null;
  11901. if (t2)
  11902. rootish2 = _0_3 == null ? t1._as(_0_3) : _0_3;
  11903. _0_30 = _0_3;
  11904. } else
  11905. rootish1 = _null;
  11906. if (t2) {
  11907. rootish = A.unifyCompound(rootish1.selector, rootish2.selector);
  11908. if (rootish == null)
  11909. return _null;
  11910. t1 = rootish1.combinators;
  11911. t2 = rootish1.span;
  11912. t3 = type$.CssValue_Combinator;
  11913. queue1.addFirst$1(new A.ComplexSelectorComponent(rootish, A.List_List$unmodifiable(t1, t3), t2));
  11914. queue2.addFirst$1(new A.ComplexSelectorComponent(rootish, A.List_List$unmodifiable(rootish2.combinators, t3), t2));
  11915. break $label0$0;
  11916. }
  11917. t2 = _null;
  11918. t3 = false;
  11919. if (_0_1 != null) {
  11920. rootish_case_0 = _0_1;
  11921. if (_0_3_isSet)
  11922. t2 = _0_30;
  11923. else {
  11924. t2 = _0_3;
  11925. _0_30 = t2;
  11926. _0_3_isSet = true;
  11927. }
  11928. t2 = t2 == null;
  11929. t3 = t2 ? rootish_case_0 : _null;
  11930. t0 = t3;
  11931. t3 = t2;
  11932. t2 = t0;
  11933. }
  11934. if (!t3)
  11935. if (_0_1 == null) {
  11936. if (_0_3_isSet)
  11937. t3 = _0_30;
  11938. else {
  11939. t3 = _0_3;
  11940. _0_30 = t3;
  11941. _0_3_isSet = true;
  11942. }
  11943. t3 = t3 != null;
  11944. if (t3) {
  11945. rootish_case_1 = _0_3_isSet ? _0_30 : _0_3;
  11946. if (rootish_case_1 == null)
  11947. rootish_case_1 = t1._as(rootish_case_1);
  11948. t1 = rootish_case_1;
  11949. } else
  11950. t1 = t2;
  11951. t2 = t3;
  11952. } else {
  11953. t1 = t2;
  11954. t2 = false;
  11955. }
  11956. else {
  11957. t1 = t2;
  11958. t2 = true;
  11959. }
  11960. if (t2) {
  11961. queue1.addFirst$1(t1);
  11962. queue2.addFirst$1(t1);
  11963. }
  11964. }
  11965. groups1 = A._groupSelectors(queue1);
  11966. groups2 = A._groupSelectors(queue2);
  11967. t1 = type$.List_ComplexSelectorComponent;
  11968. lcs = A.longestCommonSubsequence(groups2, groups1, new A._weaveParents_closure(span), t1);
  11969. choices = A._setArrayType([], type$.JSArray_List_Iterable_ComplexSelectorComponent);
  11970. for (t2 = lcs.length, t3 = type$.JSArray_Iterable_ComplexSelectorComponent, t4 = type$.JSArray_ComplexSelectorComponent, _i = 0; _i < lcs.length; lcs.length === t2 || (0, A.throwConcurrentModificationError)(lcs), ++_i) {
  11971. group = lcs[_i];
  11972. t5 = A._setArrayType([], t3);
  11973. for (t6 = A._chunks(groups1, groups2, new A._weaveParents_closure0(group), t1), t7 = t6.length, _i0 = 0; _i0 < t6.length; t6.length === t7 || (0, A.throwConcurrentModificationError)(t6), ++_i0) {
  11974. chunk = t6[_i0];
  11975. t8 = A._setArrayType([], t4);
  11976. for (t9 = B.JSArray_methods.get$iterator(chunk); t9.moveNext$0();)
  11977. B.JSArray_methods.addAll$1(t8, t9.get$current(0));
  11978. t5.push(t8);
  11979. }
  11980. choices.push(t5);
  11981. choices.push(A._setArrayType([group], t3));
  11982. groups1.removeFirst$0();
  11983. groups2.removeFirst$0();
  11984. }
  11985. t2 = A._setArrayType([], t3);
  11986. for (t1 = A._chunks(groups1, groups2, new A._weaveParents_closure1(), t1), t3 = t1.length, _i = 0; _i < t1.length; t1.length === t3 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
  11987. chunk = t1[_i];
  11988. t5 = A._setArrayType([], t4);
  11989. for (t6 = B.JSArray_methods.get$iterator(chunk); t6.moveNext$0();)
  11990. B.JSArray_methods.addAll$1(t5, t6.get$current(0));
  11991. t2.push(t5);
  11992. }
  11993. choices.push(t2);
  11994. B.JSArray_methods.addAll$1(choices, trailingCombinators);
  11995. t1 = A._setArrayType([], type$.JSArray_ComplexSelector);
  11996. for (t2 = J.get$iterator$ax(A.paths(new A.WhereIterable(choices, new A._weaveParents_closure2(), type$.WhereIterable_List_Iterable_ComplexSelectorComponent), type$.Iterable_ComplexSelectorComponent)), t3 = !prefix.lineBreak, t5 = base.lineBreak; t2.moveNext$0();) {
  11997. t6 = t2.get$current(t2);
  11998. t7 = A._setArrayType([], t4);
  11999. for (t6 = J.get$iterator$ax(t6); t6.moveNext$0();)
  12000. B.JSArray_methods.addAll$1(t7, t6.get$current(t6));
  12001. t1.push(A.ComplexSelector$(leadingCombinators, t7, span, !t3 || t5));
  12002. }
  12003. return t1;
  12004. },
  12005. _firstIfRootish(queue) {
  12006. var first, t1, t2, _i, simple, t3;
  12007. if (queue.get$length(0) >= 1) {
  12008. first = queue.$index(0, 0);
  12009. for (t1 = first.selector.components, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  12010. simple = t1[_i];
  12011. t3 = false;
  12012. if (simple instanceof A.PseudoSelector)
  12013. if (simple.isClass)
  12014. t3 = $._rootishPseudoClasses.contains$1(0, simple.normalizedName);
  12015. if (t3) {
  12016. queue.removeFirst$0();
  12017. return first;
  12018. }
  12019. }
  12020. }
  12021. return null;
  12022. },
  12023. _mergeLeadingCombinators(combinators1, combinators2) {
  12024. var _0_4, t1, t2, _0_7_isSet, _0_7, t3, _0_4_isSet, _0_11, _0_11_isSet, combinators, _null = null;
  12025. $label0$0: {
  12026. _0_4 = combinators2;
  12027. t1 = _null;
  12028. t2 = type$.List_CssValue_Combinator;
  12029. _0_7_isSet = t2._is(combinators1);
  12030. _0_7 = _null;
  12031. if (_0_7_isSet) {
  12032. _0_7 = combinators1.length;
  12033. t3 = _0_7;
  12034. t3 = t3 > 1;
  12035. } else
  12036. t3 = false;
  12037. _0_4_isSet = true;
  12038. _0_11 = _null;
  12039. if (!t3) {
  12040. t3 = _0_4;
  12041. _0_11_isSet = t2._is(t3);
  12042. if (_0_11_isSet) {
  12043. t3 = _0_4;
  12044. _0_11 = (t3 == null ? t2._as(t3) : t3).length;
  12045. t3 = _0_11;
  12046. t3 = t3 > 1;
  12047. } else
  12048. t3 = false;
  12049. } else {
  12050. _0_11_isSet = false;
  12051. t3 = true;
  12052. }
  12053. if (t3)
  12054. break $label0$0;
  12055. if (t2._is(combinators1)) {
  12056. if (_0_7_isSet)
  12057. t3 = _0_7;
  12058. else {
  12059. _0_7 = combinators1.length;
  12060. t3 = _0_7;
  12061. }
  12062. t3 = t3 <= 0;
  12063. if (t3)
  12064. if (_0_4_isSet)
  12065. combinators = _0_4;
  12066. else {
  12067. combinators = combinators2;
  12068. _0_4 = combinators;
  12069. _0_4_isSet = true;
  12070. }
  12071. else
  12072. combinators = t1;
  12073. t1 = t3;
  12074. } else {
  12075. combinators = t1;
  12076. t1 = false;
  12077. }
  12078. if (!t1) {
  12079. t1 = false;
  12080. if (_0_4_isSet)
  12081. t3 = _0_4;
  12082. else {
  12083. t3 = combinators2;
  12084. _0_4 = t3;
  12085. _0_4_isSet = true;
  12086. }
  12087. if (t2._is(t3)) {
  12088. if (_0_11_isSet)
  12089. t1 = _0_11;
  12090. else {
  12091. t1 = _0_4_isSet ? _0_4 : combinators2;
  12092. _0_11 = (t1 == null ? t2._as(t1) : t1).length;
  12093. t1 = _0_11;
  12094. }
  12095. t1 = t1 <= 0;
  12096. }
  12097. combinators = combinators1;
  12098. } else
  12099. t1 = true;
  12100. if (t1) {
  12101. t1 = combinators;
  12102. break $label0$0;
  12103. }
  12104. t1 = B.C_ListEquality.equals$2(0, combinators1, combinators2) ? combinators1 : _null;
  12105. break $label0$0;
  12106. }
  12107. return t1;
  12108. },
  12109. _mergeTrailingCombinators(components1, components2, span, result) {
  12110. var _0_1, t1, _1_1, t2, t3, _4_1, _4_3, _4_4_isSet, _4_5, _4_4, component1, component2, t4, t5, choices, _2_0, _4_9, _4_6, _4_7, followingComponents, nextComponents, _4_4_isSet0, _4_6_isSet, _4_7_isSet, _4_10_isSet, _4_10, _4_5_isSet, next, following, _3_0, siblingComponents_case_0, siblingComponents_case_1, combinator1, t6, combinator2, unified, t7, combinator_case_0, combinatorComponents_case_0, descendantComponents_case_0, t0, combinator_case_1, descendantComponents_case_1, combinatorComponents_case_1, _null = null;
  12111. if (result == null)
  12112. result = A.QueueList$(_null, type$.List_List_ComplexSelectorComponent);
  12113. $label0$0: {
  12114. _0_1 = components1.get$length(0);
  12115. if (_0_1 >= 1) {
  12116. t1 = components1.$index(0, _0_1 - 1).combinators;
  12117. break $label0$0;
  12118. }
  12119. t1 = B.List_empty0;
  12120. break $label0$0;
  12121. }
  12122. $label1$1: {
  12123. _1_1 = components2.get$length(0);
  12124. if (_1_1 >= 1) {
  12125. t2 = components2.$index(0, _1_1 - 1).combinators;
  12126. break $label1$1;
  12127. }
  12128. t2 = B.List_empty0;
  12129. break $label1$1;
  12130. }
  12131. t3 = t1.length;
  12132. if (t3 === 0 && t2.length === 0)
  12133. return result;
  12134. if (t3 > 1 || t2.length > 1)
  12135. return _null;
  12136. $label2$2: {
  12137. t3 = A.IterableExtension_get_firstOrNull(t1);
  12138. t3 = t3 == null ? _null : t3.value;
  12139. t2 = A.IterableExtension_get_firstOrNull(t2);
  12140. t2 = [t3, t2 == null ? _null : t2.value, components1, components2];
  12141. _4_1 = t2[0];
  12142. _4_3 = B.Combinator_y18 === _4_1;
  12143. _4_4_isSet = _4_3;
  12144. _4_5 = _null;
  12145. _4_4 = _null;
  12146. if (_4_4_isSet) {
  12147. _4_4 = t2[1];
  12148. _4_5 = B.Combinator_y18 === _4_4;
  12149. t3 = _4_5;
  12150. } else
  12151. t3 = false;
  12152. if (t3) {
  12153. component1 = components1.removeLast$0(0);
  12154. component2 = components2.removeLast$0(0);
  12155. t2 = component1.selector;
  12156. t3 = component2.selector;
  12157. if (A.compoundIsSuperselector(t2, t3, _null))
  12158. result.addFirst$1(A._setArrayType([A._setArrayType([component2], type$.JSArray_ComplexSelectorComponent)], type$.JSArray_List_ComplexSelectorComponent));
  12159. else {
  12160. t4 = type$.JSArray_ComplexSelectorComponent;
  12161. t5 = type$.JSArray_List_ComplexSelectorComponent;
  12162. if (A.compoundIsSuperselector(t3, t2, _null))
  12163. result.addFirst$1(A._setArrayType([A._setArrayType([component1], t4)], t5));
  12164. else {
  12165. choices = A._setArrayType([A._setArrayType([component1, component2], t4), A._setArrayType([component2, component1], t4)], t5);
  12166. _2_0 = A.unifyCompound(t2, t3);
  12167. if (_2_0 != null)
  12168. choices.push(A._setArrayType([new A.ComplexSelectorComponent(_2_0, A.List_List$unmodifiable(A._setArrayType([B.JSArray_methods.get$first(t1)], type$.JSArray_CssValue_Combinator), type$.CssValue_Combinator), span)], t4));
  12169. result.addFirst$1(choices);
  12170. }
  12171. }
  12172. break $label2$2;
  12173. }
  12174. _4_9 = _null;
  12175. _4_6 = _null;
  12176. _4_7 = _null;
  12177. followingComponents = _null;
  12178. nextComponents = _null;
  12179. if (_4_3) {
  12180. if (_4_4_isSet) {
  12181. t3 = _4_4;
  12182. _4_4_isSet0 = _4_4_isSet;
  12183. } else {
  12184. _4_4 = t2[1];
  12185. t3 = _4_4;
  12186. _4_4_isSet0 = true;
  12187. }
  12188. _4_9 = B.Combinator_gRV === t3;
  12189. _4_6_isSet = _4_9;
  12190. if (_4_6_isSet) {
  12191. _4_6 = t2[2];
  12192. _4_7 = t2[3];
  12193. nextComponents = _4_7;
  12194. followingComponents = _4_6;
  12195. }
  12196. t3 = _4_6_isSet;
  12197. _4_7_isSet = t3;
  12198. } else {
  12199. _4_4_isSet0 = _4_4_isSet;
  12200. _4_6_isSet = false;
  12201. _4_7_isSet = false;
  12202. t3 = false;
  12203. }
  12204. _4_10_isSet = !t3;
  12205. _4_10 = _null;
  12206. if (_4_10_isSet) {
  12207. _4_10 = B.Combinator_gRV === _4_1;
  12208. t3 = _4_10;
  12209. if (t3) {
  12210. if (_4_4_isSet) {
  12211. t3 = _4_5;
  12212. _4_5_isSet = _4_4_isSet;
  12213. _4_4_isSet = _4_4_isSet0;
  12214. } else {
  12215. if (_4_4_isSet0) {
  12216. t3 = _4_4;
  12217. _4_4_isSet = _4_4_isSet0;
  12218. } else {
  12219. _4_4 = t2[1];
  12220. t3 = _4_4;
  12221. _4_4_isSet = true;
  12222. }
  12223. _4_5 = B.Combinator_y18 === t3;
  12224. t3 = _4_5;
  12225. _4_5_isSet = true;
  12226. }
  12227. if (t3) {
  12228. if (_4_6_isSet)
  12229. nextComponents = _4_6;
  12230. else {
  12231. _4_6 = t2[2];
  12232. nextComponents = _4_6;
  12233. _4_6_isSet = true;
  12234. }
  12235. if (_4_7_isSet)
  12236. followingComponents = _4_7;
  12237. else {
  12238. _4_7 = t2[3];
  12239. followingComponents = _4_7;
  12240. _4_7_isSet = true;
  12241. }
  12242. }
  12243. } else {
  12244. _4_5_isSet = _4_4_isSet;
  12245. _4_4_isSet = _4_4_isSet0;
  12246. t3 = false;
  12247. }
  12248. } else {
  12249. _4_5_isSet = _4_4_isSet;
  12250. _4_4_isSet = _4_4_isSet0;
  12251. t3 = true;
  12252. }
  12253. if (t3) {
  12254. next = nextComponents.removeLast$0(0);
  12255. following = followingComponents.removeLast$0(0);
  12256. t1 = following.selector;
  12257. t2 = next.selector;
  12258. t3 = type$.JSArray_ComplexSelectorComponent;
  12259. t4 = type$.JSArray_List_ComplexSelectorComponent;
  12260. if (A.compoundIsSuperselector(t1, t2, _null))
  12261. result.addFirst$1(A._setArrayType([A._setArrayType([next], t3)], t4));
  12262. else {
  12263. t4 = A._setArrayType([A._setArrayType([following, next], t3)], t4);
  12264. _3_0 = A.unifyCompound(t1, t2);
  12265. if (_3_0 != null)
  12266. t4.push(A._setArrayType([new A.ComplexSelectorComponent(_3_0, A.List_List$unmodifiable(next.combinators, type$.CssValue_Combinator), span)], t3));
  12267. result.addFirst$1(t4);
  12268. }
  12269. break $label2$2;
  12270. }
  12271. t3 = _null;
  12272. if (B.Combinator_8I8 === _4_1) {
  12273. _4_4_isSet0 = true;
  12274. if (_4_3)
  12275. t4 = _4_9;
  12276. else {
  12277. if (_4_4_isSet)
  12278. t4 = _4_4;
  12279. else {
  12280. _4_4 = t2[1];
  12281. t4 = _4_4;
  12282. _4_4_isSet = _4_4_isSet0;
  12283. }
  12284. _4_9 = B.Combinator_gRV === t4;
  12285. t4 = _4_9;
  12286. }
  12287. if (!t4)
  12288. if (_4_5_isSet)
  12289. t4 = _4_5;
  12290. else {
  12291. if (_4_4_isSet)
  12292. t4 = _4_4;
  12293. else {
  12294. _4_4 = t2[1];
  12295. t4 = _4_4;
  12296. _4_4_isSet = _4_4_isSet0;
  12297. }
  12298. _4_5 = B.Combinator_y18 === t4;
  12299. t4 = _4_5;
  12300. }
  12301. else
  12302. t4 = true;
  12303. if (t4) {
  12304. if (_4_7_isSet)
  12305. siblingComponents_case_0 = _4_7;
  12306. else {
  12307. _4_7 = t2[3];
  12308. siblingComponents_case_0 = _4_7;
  12309. _4_7_isSet = true;
  12310. }
  12311. t3 = siblingComponents_case_0;
  12312. }
  12313. } else
  12314. t4 = false;
  12315. if (!t4) {
  12316. if (_4_10_isSet)
  12317. t4 = _4_10;
  12318. else {
  12319. _4_10 = B.Combinator_gRV === _4_1;
  12320. t4 = _4_10;
  12321. }
  12322. if (!t4)
  12323. t4 = _4_3;
  12324. else
  12325. t4 = true;
  12326. if (t4) {
  12327. if (_4_4_isSet)
  12328. t4 = _4_4;
  12329. else {
  12330. _4_4 = t2[1];
  12331. t4 = _4_4;
  12332. _4_4_isSet = true;
  12333. }
  12334. t4 = B.Combinator_8I8 === t4;
  12335. if (t4) {
  12336. if (_4_6_isSet)
  12337. siblingComponents_case_1 = _4_6;
  12338. else {
  12339. _4_6 = t2[2];
  12340. siblingComponents_case_1 = _4_6;
  12341. _4_6_isSet = true;
  12342. }
  12343. t3 = siblingComponents_case_1;
  12344. }
  12345. } else
  12346. t4 = false;
  12347. } else
  12348. t4 = true;
  12349. if (t4) {
  12350. result.addFirst$1(A._setArrayType([A._setArrayType([t3.removeLast$0(0)], type$.JSArray_ComplexSelectorComponent)], type$.JSArray_List_ComplexSelectorComponent));
  12351. break $label2$2;
  12352. }
  12353. t3 = _4_1 == null;
  12354. t4 = !t3;
  12355. t5 = false;
  12356. if (t4) {
  12357. _4_4_isSet0 = true;
  12358. combinator1 = _4_1;
  12359. if (_4_4_isSet)
  12360. t6 = _4_4;
  12361. else {
  12362. _4_4 = t2[1];
  12363. t6 = _4_4;
  12364. _4_4_isSet = _4_4_isSet0;
  12365. }
  12366. if (t6 != null) {
  12367. if (_4_4_isSet)
  12368. combinator2 = _4_4;
  12369. else {
  12370. _4_4 = t2[1];
  12371. combinator2 = _4_4;
  12372. _4_4_isSet = _4_4_isSet0;
  12373. }
  12374. t5 = combinator1 === (combinator2 == null ? type$.Combinator._as(combinator2) : combinator2);
  12375. }
  12376. }
  12377. if (t5) {
  12378. unified = A.unifyCompound(components1.removeLast$0(0).selector, components2.removeLast$0(0).selector);
  12379. if (unified == null)
  12380. return _null;
  12381. result.addFirst$1(A._setArrayType([A._setArrayType([new A.ComplexSelectorComponent(unified, A.List_List$unmodifiable(A._setArrayType([B.JSArray_methods.get$first(t1)], type$.JSArray_CssValue_Combinator), type$.CssValue_Combinator), span)], type$.JSArray_ComplexSelectorComponent)], type$.JSArray_List_ComplexSelectorComponent));
  12382. break $label2$2;
  12383. }
  12384. t1 = _null;
  12385. t5 = _null;
  12386. t6 = _null;
  12387. t7 = false;
  12388. if (t4) {
  12389. combinator_case_0 = _4_1;
  12390. if (_4_4_isSet)
  12391. t4 = _4_4;
  12392. else {
  12393. _4_4 = t2[1];
  12394. t4 = _4_4;
  12395. _4_4_isSet = true;
  12396. }
  12397. t4 = t4 == null;
  12398. if (t4) {
  12399. if (_4_6_isSet)
  12400. combinatorComponents_case_0 = _4_6;
  12401. else {
  12402. _4_6 = t2[2];
  12403. combinatorComponents_case_0 = _4_6;
  12404. _4_6_isSet = true;
  12405. }
  12406. if (_4_7_isSet)
  12407. descendantComponents_case_0 = _4_7;
  12408. else {
  12409. _4_7 = t2[3];
  12410. descendantComponents_case_0 = _4_7;
  12411. _4_7_isSet = true;
  12412. }
  12413. t1 = descendantComponents_case_0;
  12414. t6 = t1;
  12415. t1 = combinator_case_0;
  12416. t5 = combinatorComponents_case_0;
  12417. }
  12418. t0 = t6;
  12419. t6 = t4;
  12420. t4 = t5;
  12421. t5 = t0;
  12422. } else {
  12423. t4 = t5;
  12424. t5 = t6;
  12425. t6 = t7;
  12426. }
  12427. if (!t6)
  12428. if (t3) {
  12429. if (_4_4_isSet)
  12430. t3 = _4_4;
  12431. else {
  12432. _4_4 = t2[1];
  12433. t3 = _4_4;
  12434. _4_4_isSet = true;
  12435. }
  12436. t3 = t3 != null;
  12437. if (t3) {
  12438. combinator_case_1 = _4_4_isSet ? _4_4 : t2[1];
  12439. if (combinator_case_1 == null)
  12440. combinator_case_1 = type$.Combinator._as(combinator_case_1);
  12441. descendantComponents_case_1 = _4_6_isSet ? _4_6 : t2[2];
  12442. combinatorComponents_case_1 = _4_7_isSet ? _4_7 : t2[3];
  12443. t1 = combinatorComponents_case_1;
  12444. t2 = descendantComponents_case_1;
  12445. t4 = t2;
  12446. t2 = t1;
  12447. t1 = combinator_case_1;
  12448. } else {
  12449. t2 = t4;
  12450. t4 = t5;
  12451. }
  12452. t0 = t4;
  12453. t4 = t3;
  12454. t3 = t0;
  12455. } else {
  12456. t3 = t5;
  12457. t2 = t4;
  12458. t4 = false;
  12459. }
  12460. else {
  12461. t3 = t5;
  12462. t2 = t4;
  12463. t4 = true;
  12464. }
  12465. if (t4) {
  12466. if (t1 === B.Combinator_8I8) {
  12467. t1 = A.IterableExtension_get_lastOrNull(t3);
  12468. t1 = t1 == null ? _null : A.compoundIsSuperselector(t1.selector, t2.get$last(t2).selector, _null);
  12469. t1 = t1 === true;
  12470. } else
  12471. t1 = false;
  12472. if (t1)
  12473. t3.removeLast$0(0);
  12474. result.addFirst$1(A._setArrayType([A._setArrayType([t2.removeLast$0(0)], type$.JSArray_ComplexSelectorComponent)], type$.JSArray_List_ComplexSelectorComponent));
  12475. break $label2$2;
  12476. }
  12477. return _null;
  12478. }
  12479. return A._mergeTrailingCombinators(components1, components2, span, result);
  12480. },
  12481. _mustUnify(complex1, complex2) {
  12482. var t2, t3, t4,
  12483. t1 = A.LinkedHashSet_LinkedHashSet$_empty(type$.SimpleSelector);
  12484. for (t2 = J.get$iterator$ax(complex1); t2.moveNext$0();)
  12485. for (t3 = B.JSArray_methods.get$iterator(t2.get$current(t2).selector.components), t4 = new A.WhereIterator(t3, A.functions___isUnique$closure()); t4.moveNext$0();)
  12486. t1.add$1(0, t3.get$current(0));
  12487. if (t1._collection$_length === 0)
  12488. return false;
  12489. return J.any$1$ax(complex2, new A._mustUnify_closure(t1));
  12490. },
  12491. _isUnique(simple) {
  12492. var t1;
  12493. if (!(simple instanceof A.IDSelector))
  12494. t1 = simple instanceof A.PseudoSelector && !simple.isClass;
  12495. else
  12496. t1 = true;
  12497. return t1;
  12498. },
  12499. _chunks(queue1, queue2, done, $T) {
  12500. var chunk2, _0_4, _0_5_isSet, _0_1, _0_7, _0_5, chunk, _0_5_isSet0, t2, _null = null,
  12501. t1 = $T._eval$1("JSArray<0>"),
  12502. chunk1 = A._setArrayType([], t1);
  12503. for (; !done.call$1(queue1);)
  12504. chunk1.push(queue1.removeFirst$0());
  12505. chunk2 = A._setArrayType([], t1);
  12506. for (; !done.call$1(queue2);)
  12507. chunk2.push(queue2.removeFirst$0());
  12508. $label0$0: {
  12509. _0_4 = chunk1.length <= 0;
  12510. _0_5_isSet = _0_4;
  12511. _0_1 = chunk1;
  12512. _0_7 = _null;
  12513. _0_5 = _null;
  12514. if (_0_5_isSet) {
  12515. _0_7 = chunk2.length <= 0;
  12516. t1 = _0_7;
  12517. _0_5 = chunk2;
  12518. } else
  12519. t1 = false;
  12520. if (t1) {
  12521. t1 = A._setArrayType([], $T._eval$1("JSArray<List<0>>"));
  12522. break $label0$0;
  12523. }
  12524. if (_0_4)
  12525. if (_0_5_isSet) {
  12526. chunk = _0_5;
  12527. _0_5_isSet0 = _0_5_isSet;
  12528. } else {
  12529. chunk = chunk2;
  12530. _0_5 = chunk;
  12531. _0_5_isSet0 = true;
  12532. }
  12533. else {
  12534. chunk = _null;
  12535. _0_5_isSet0 = _0_5_isSet;
  12536. }
  12537. if (!_0_4) {
  12538. if (_0_5_isSet)
  12539. t1 = _0_7;
  12540. else {
  12541. _0_7 = (_0_5_isSet0 ? _0_5 : chunk2).length <= 0;
  12542. t1 = _0_7;
  12543. }
  12544. chunk = _0_1;
  12545. } else
  12546. t1 = true;
  12547. if (t1) {
  12548. t1 = A._setArrayType([chunk], $T._eval$1("JSArray<List<0>>"));
  12549. break $label0$0;
  12550. }
  12551. t1 = A.List_List$of(chunk1, true, $T);
  12552. B.JSArray_methods.addAll$1(t1, chunk2);
  12553. t2 = A.List_List$of(chunk2, true, $T);
  12554. B.JSArray_methods.addAll$1(t2, chunk1);
  12555. t2 = A._setArrayType([t1, t2], $T._eval$1("JSArray<List<0>>"));
  12556. t1 = t2;
  12557. break $label0$0;
  12558. }
  12559. return t1;
  12560. },
  12561. paths(choices, $T) {
  12562. return J.fold$2$ax(choices, A._setArrayType([A._setArrayType([], $T._eval$1("JSArray<0>"))], $T._eval$1("JSArray<List<0>>")), new A.paths_closure($T));
  12563. },
  12564. _groupSelectors(complex) {
  12565. var t2, t3, t4,
  12566. groups = A.QueueList$(null, type$.List_ComplexSelectorComponent),
  12567. t1 = type$.JSArray_ComplexSelectorComponent,
  12568. group = A._setArrayType([], t1);
  12569. for (t2 = complex.$ti, t3 = new A.ListIterator(complex, complex.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t2 = t2._eval$1("ListBase.E"); t3.moveNext$0();) {
  12570. t4 = t3.__internal$_current;
  12571. if (t4 == null)
  12572. t4 = t2._as(t4);
  12573. group.push(t4);
  12574. if (t4.combinators.length === 0) {
  12575. groups._queue_list$_add$1(group);
  12576. group = A._setArrayType([], t1);
  12577. }
  12578. }
  12579. if (group.length !== 0)
  12580. groups._queue_list$_add$1(group);
  12581. return groups;
  12582. },
  12583. listIsSuperselector(list1, list2) {
  12584. return B.JSArray_methods.every$1(list2, new A.listIsSuperselector_closure(list1));
  12585. },
  12586. _complexIsParentSuperselector(complex1, complex2) {
  12587. var t1, base, t2;
  12588. if (J.get$length$asx(complex1) > J.get$length$asx(complex2))
  12589. return false;
  12590. t1 = $.$get$bogusSpan();
  12591. base = new A.ComplexSelectorComponent(A.CompoundSelector$(A._setArrayType([new A.PlaceholderSelector("<temp>", t1)], type$.JSArray_SimpleSelector), t1), A.List_List$unmodifiable(B.List_empty0, type$.CssValue_Combinator), t1);
  12592. t1 = type$.ComplexSelectorComponent;
  12593. t2 = A.List_List$of(complex1, true, t1);
  12594. t2.push(base);
  12595. t1 = A.List_List$of(complex2, true, t1);
  12596. t1.push(base);
  12597. return A.complexIsSuperselector(t2, t1);
  12598. },
  12599. complexIsSuperselector(complex1, complex2) {
  12600. var t1, t2, previousCombinator, i1, i2, remaining1, remaining2, component1, t3, t4, endOfSubselector, component2, t5, combinator1, _null = null;
  12601. if (B.JSArray_methods.get$last(complex1).combinators.length !== 0)
  12602. return false;
  12603. if (B.JSArray_methods.get$last(complex2).combinators.length !== 0)
  12604. return false;
  12605. for (t1 = A._arrayInstanceType(complex2), t2 = t1._precomputed1, t1 = t1._eval$1("SubListIterable<1>"), previousCombinator = _null, i1 = 0, i2 = 0; true; previousCombinator = combinator1) {
  12606. remaining1 = complex1.length - i1;
  12607. remaining2 = complex2.length - i2;
  12608. if (remaining1 === 0 || remaining2 === 0)
  12609. return false;
  12610. if (remaining1 > remaining2)
  12611. return false;
  12612. component1 = complex1[i1];
  12613. t3 = component1.combinators;
  12614. if (t3.length > 1)
  12615. return false;
  12616. if (remaining1 === 1)
  12617. if (B.JSArray_methods.any$1(complex2, new A.complexIsSuperselector_closure()))
  12618. return false;
  12619. else {
  12620. t1 = component1.selector;
  12621. t2 = B.JSArray_methods.get$last(complex2).selector;
  12622. return A.compoundIsSuperselector(t1, t2, t1.get$hasComplicatedSuperselectorSemantics() ? B.JSArray_methods.sublist$2(complex2, i2, complex2.length - 1) : _null);
  12623. }
  12624. for (t4 = component1.selector, endOfSubselector = i2; true;) {
  12625. component2 = complex2[endOfSubselector];
  12626. if (component2.combinators.length > 1)
  12627. return false;
  12628. t5 = component2.selector;
  12629. if (A.compoundIsSuperselector(t4, t5, t4.get$hasComplicatedSuperselectorSemantics() ? B.JSArray_methods.sublist$2(complex2, i2, endOfSubselector) : _null))
  12630. break;
  12631. ++endOfSubselector;
  12632. if (endOfSubselector === complex2.length - 1)
  12633. return false;
  12634. }
  12635. t4 = new A.SubListIterable(complex2, 0, endOfSubselector, t1);
  12636. t4.SubListIterable$3(complex2, 0, endOfSubselector, t2);
  12637. if (!A._compatibleWithPreviousCombinator(previousCombinator, t4.skip$1(0, i2)))
  12638. return false;
  12639. component2 = complex2[endOfSubselector];
  12640. combinator1 = A.IterableExtension_get_firstOrNull(t3);
  12641. if (!A._isSupercombinator(combinator1, A.IterableExtension_get_firstOrNull(component2.combinators)))
  12642. return false;
  12643. ++i1;
  12644. i2 = endOfSubselector + 1;
  12645. if (complex1.length - i1 === 1) {
  12646. t3 = combinator1 == null;
  12647. if (J.$eq$(t3 ? _null : combinator1.value, B.Combinator_y18)) {
  12648. t3 = complex2.length - 1;
  12649. t4 = new A.SubListIterable(complex2, 0, t3, t1);
  12650. t4.SubListIterable$3(complex2, 0, t3, t2);
  12651. if (!t4.skip$1(0, i2).every$1(0, new A.complexIsSuperselector_closure0(combinator1)))
  12652. return false;
  12653. } else if (!t3)
  12654. if (complex2.length - i2 > 1)
  12655. return false;
  12656. }
  12657. }
  12658. },
  12659. _compatibleWithPreviousCombinator(previous, parents) {
  12660. if (parents.get$isEmpty(parents))
  12661. return true;
  12662. if (previous == null)
  12663. return true;
  12664. if (previous.value !== B.Combinator_y18)
  12665. return false;
  12666. return parents.every$1(0, new A._compatibleWithPreviousCombinator_closure());
  12667. },
  12668. _isSupercombinator(combinator1, combinator2) {
  12669. var t2, t3,
  12670. t1 = true;
  12671. if (!J.$eq$(combinator1, combinator2)) {
  12672. t2 = combinator1 == null;
  12673. if (t2)
  12674. t3 = J.$eq$(combinator2 == null ? null : combinator2.value, B.Combinator_8I8);
  12675. else
  12676. t3 = false;
  12677. if (!t3)
  12678. if (J.$eq$(t2 ? null : combinator1.value, B.Combinator_y18))
  12679. t1 = J.$eq$(combinator2 == null ? null : combinator2.value, B.Combinator_gRV);
  12680. else
  12681. t1 = false;
  12682. }
  12683. return t1;
  12684. },
  12685. compoundIsSuperselector(compound1, compound2, parents) {
  12686. var t1, _0_1, _0_5, _0_5_isSet, _0_50, index1, pseudo2, index2, t2, t3, pseudo1, t4, t5, _i, simple1, _null = null;
  12687. if (!compound1.get$hasComplicatedSuperselectorSemantics() && !compound2.get$hasComplicatedSuperselectorSemantics()) {
  12688. t1 = compound1.components;
  12689. if (t1.length > compound2.components.length)
  12690. return false;
  12691. return B.JSArray_methods.every$1(t1, new A.compoundIsSuperselector_closure(compound2));
  12692. }
  12693. _0_1 = A._findPseudoElementIndexed(compound1);
  12694. _0_5 = A._findPseudoElementIndexed(compound2);
  12695. t1 = type$.Record_2_nullable_Object_and_nullable_Object;
  12696. _0_5_isSet = t1._is(_0_1);
  12697. _0_50 = _null;
  12698. index1 = _null;
  12699. pseudo2 = _null;
  12700. index2 = _null;
  12701. t2 = false;
  12702. if (_0_5_isSet) {
  12703. t3 = _0_1 == null;
  12704. pseudo1 = (t3 ? t1._as(_0_1) : _0_1)._0;
  12705. index1 = (t3 ? t1._as(_0_1) : _0_1)._1;
  12706. t2 = t1._is(_0_5);
  12707. if (t2) {
  12708. t3 = _0_5 == null;
  12709. pseudo2 = (t3 ? t1._as(_0_5) : _0_5)._0;
  12710. index2 = (t3 ? t1._as(_0_5) : _0_5)._1;
  12711. }
  12712. t1 = t2;
  12713. _0_50 = _0_5;
  12714. } else {
  12715. t1 = t2;
  12716. pseudo1 = _null;
  12717. }
  12718. if (t1) {
  12719. if (pseudo1.isSuperselector$1(pseudo2)) {
  12720. t1 = compound1.components;
  12721. t2 = type$.int;
  12722. t3 = A._arrayInstanceType(t1)._precomputed1;
  12723. t4 = compound2.components;
  12724. t5 = A._arrayInstanceType(t4)._precomputed1;
  12725. t1 = A._compoundComponentsIsSuperselector(A.SubListIterable$(t1, 0, A.checkNotNullable(index1, "count", t2), t3), A.SubListIterable$(t4, 0, A.checkNotNullable(index2, "count", t2), t5), parents) && A._compoundComponentsIsSuperselector(A.SubListIterable$(t1, index1 + 1, _null, t3), A.SubListIterable$(t4, index2 + 1, _null, t5), parents);
  12726. } else
  12727. t1 = false;
  12728. return t1;
  12729. }
  12730. if (_0_1 == null)
  12731. t1 = (_0_5_isSet ? _0_50 : _0_5) != null;
  12732. else
  12733. t1 = true;
  12734. if (t1)
  12735. return false;
  12736. for (t1 = compound1.components, t2 = t1.length, t3 = compound2.components, _i = 0; _i < t2; ++_i) {
  12737. simple1 = t1[_i];
  12738. if (simple1 instanceof A.PseudoSelector)
  12739. t4 = simple1.selector != null;
  12740. else
  12741. t4 = false;
  12742. if (t4) {
  12743. if (!A._selectorPseudoIsSuperselector(simple1, compound2, parents))
  12744. return false;
  12745. } else if (!B.JSArray_methods.any$1(t3, simple1.get$isSuperselector()))
  12746. return false;
  12747. }
  12748. return true;
  12749. },
  12750. _findPseudoElementIndexed(compound) {
  12751. var t1, t2, i, simple;
  12752. for (t1 = compound.components, t2 = t1.length, i = 0; i < t2; ++i) {
  12753. simple = t1[i];
  12754. if (simple instanceof A.PseudoSelector && !simple.isClass)
  12755. return new A._Record_2(simple, i);
  12756. }
  12757. return null;
  12758. },
  12759. _compoundComponentsIsSuperselector(compound1, compound2, parents) {
  12760. var t1;
  12761. if (compound1.get$length(0) === 0)
  12762. return true;
  12763. if (compound2.get$length(0) === 0)
  12764. compound2 = A._setArrayType([new A.UniversalSelector("*", $.$get$bogusSpan())], type$.JSArray_SimpleSelector);
  12765. t1 = $.$get$bogusSpan();
  12766. return A.compoundIsSuperselector(A.CompoundSelector$(compound1, t1), A.CompoundSelector$(compound2, t1), parents);
  12767. },
  12768. _selectorPseudoIsSuperselector(pseudo1, compound2, parents) {
  12769. var selector1 = pseudo1.selector;
  12770. if (selector1 == null)
  12771. throw A.wrapException(A.ArgumentError$("Selector " + pseudo1.toString$0(0) + " must have a selector argument.", null));
  12772. switch (pseudo1.normalizedName) {
  12773. case "is":
  12774. case "matches":
  12775. case "any":
  12776. case "where":
  12777. return A._selectorPseudoArgs(compound2, pseudo1.name, true).any$1(0, new A._selectorPseudoIsSuperselector_closure(selector1)) || B.JSArray_methods.any$1(selector1.components, new A._selectorPseudoIsSuperselector_closure0(parents, compound2));
  12778. case "has":
  12779. case "host":
  12780. case "host-context":
  12781. return A._selectorPseudoArgs(compound2, pseudo1.name, true).any$1(0, new A._selectorPseudoIsSuperselector_closure1(selector1));
  12782. case "slotted":
  12783. return A._selectorPseudoArgs(compound2, pseudo1.name, false).any$1(0, new A._selectorPseudoIsSuperselector_closure2(selector1));
  12784. case "not":
  12785. return B.JSArray_methods.every$1(selector1.components, new A._selectorPseudoIsSuperselector_closure3(compound2, pseudo1));
  12786. case "current":
  12787. return A._selectorPseudoArgs(compound2, pseudo1.name, true).any$1(0, new A._selectorPseudoIsSuperselector_closure4(selector1));
  12788. case "nth-child":
  12789. case "nth-last-child":
  12790. return B.JSArray_methods.any$1(compound2.components, new A._selectorPseudoIsSuperselector_closure5(pseudo1, selector1));
  12791. default:
  12792. throw A.wrapException("unreachable");
  12793. }
  12794. },
  12795. _selectorPseudoArgs(compound, $name, isClass) {
  12796. var t1 = type$.WhereTypeIterable_PseudoSelector;
  12797. return new A.NonNullsIterable(new A.MappedIterable(new A.WhereIterable(new A.WhereTypeIterable(compound.components, t1), new A._selectorPseudoArgs_closure(isClass, $name), t1._eval$1("WhereIterable<Iterable.E>")), new A._selectorPseudoArgs_closure0(), t1._eval$1("MappedIterable<Iterable.E,SelectorList?>")), type$.NonNullsIterable_SelectorList);
  12798. },
  12799. unifyComplex_closure: function unifyComplex_closure() {
  12800. },
  12801. _weaveParents_closure: function _weaveParents_closure(t0) {
  12802. this.span = t0;
  12803. },
  12804. _weaveParents_closure0: function _weaveParents_closure0(t0) {
  12805. this.group = t0;
  12806. },
  12807. _weaveParents_closure1: function _weaveParents_closure1() {
  12808. },
  12809. _weaveParents_closure2: function _weaveParents_closure2() {
  12810. },
  12811. _mustUnify_closure: function _mustUnify_closure(t0) {
  12812. this.uniqueSelectors = t0;
  12813. },
  12814. _mustUnify__closure: function _mustUnify__closure(t0) {
  12815. this.uniqueSelectors = t0;
  12816. },
  12817. paths_closure: function paths_closure(t0) {
  12818. this.T = t0;
  12819. },
  12820. paths__closure: function paths__closure(t0, t1) {
  12821. this.paths = t0;
  12822. this.T = t1;
  12823. },
  12824. paths___closure: function paths___closure(t0, t1) {
  12825. this.option = t0;
  12826. this.T = t1;
  12827. },
  12828. listIsSuperselector_closure: function listIsSuperselector_closure(t0) {
  12829. this.list1 = t0;
  12830. },
  12831. listIsSuperselector__closure: function listIsSuperselector__closure(t0) {
  12832. this.complex1 = t0;
  12833. },
  12834. complexIsSuperselector_closure: function complexIsSuperselector_closure() {
  12835. },
  12836. complexIsSuperselector_closure0: function complexIsSuperselector_closure0(t0) {
  12837. this.combinator1 = t0;
  12838. },
  12839. _compatibleWithPreviousCombinator_closure: function _compatibleWithPreviousCombinator_closure() {
  12840. },
  12841. compoundIsSuperselector_closure: function compoundIsSuperselector_closure(t0) {
  12842. this.compound2 = t0;
  12843. },
  12844. _selectorPseudoIsSuperselector_closure: function _selectorPseudoIsSuperselector_closure(t0) {
  12845. this.selector1 = t0;
  12846. },
  12847. _selectorPseudoIsSuperselector_closure0: function _selectorPseudoIsSuperselector_closure0(t0, t1) {
  12848. this.parents = t0;
  12849. this.compound2 = t1;
  12850. },
  12851. _selectorPseudoIsSuperselector_closure1: function _selectorPseudoIsSuperselector_closure1(t0) {
  12852. this.selector1 = t0;
  12853. },
  12854. _selectorPseudoIsSuperselector_closure2: function _selectorPseudoIsSuperselector_closure2(t0) {
  12855. this.selector1 = t0;
  12856. },
  12857. _selectorPseudoIsSuperselector_closure3: function _selectorPseudoIsSuperselector_closure3(t0, t1) {
  12858. this.compound2 = t0;
  12859. this.pseudo1 = t1;
  12860. },
  12861. _selectorPseudoIsSuperselector__closure: function _selectorPseudoIsSuperselector__closure(t0, t1) {
  12862. this.complex = t0;
  12863. this.pseudo1 = t1;
  12864. },
  12865. _selectorPseudoIsSuperselector___closure: function _selectorPseudoIsSuperselector___closure(t0) {
  12866. this.simple2 = t0;
  12867. },
  12868. _selectorPseudoIsSuperselector___closure0: function _selectorPseudoIsSuperselector___closure0(t0) {
  12869. this.simple2 = t0;
  12870. },
  12871. _selectorPseudoIsSuperselector_closure4: function _selectorPseudoIsSuperselector_closure4(t0) {
  12872. this.selector1 = t0;
  12873. },
  12874. _selectorPseudoIsSuperselector_closure5: function _selectorPseudoIsSuperselector_closure5(t0, t1) {
  12875. this.pseudo1 = t0;
  12876. this.selector1 = t1;
  12877. },
  12878. _selectorPseudoArgs_closure: function _selectorPseudoArgs_closure(t0, t1) {
  12879. this.isClass = t0;
  12880. this.name = t1;
  12881. },
  12882. _selectorPseudoArgs_closure0: function _selectorPseudoArgs_closure0() {
  12883. },
  12884. MergedExtension_merge(left, right) {
  12885. var t2, t3, t4,
  12886. t1 = left.extender.selector;
  12887. if (!t1.$eq(0, right.extender.selector) || !left.target.$eq(0, right.target))
  12888. throw A.wrapException(A.ArgumentError$(left.toString$0(0) + " and " + right.toString$0(0) + " aren't the same extension.", null));
  12889. t2 = left.mediaContext;
  12890. t3 = t2 == null;
  12891. if (!t3) {
  12892. t4 = right.mediaContext;
  12893. t4 = t4 != null && !B.C_ListEquality.equals$2(0, t2, t4);
  12894. } else
  12895. t4 = false;
  12896. if (t4)
  12897. throw A.wrapException(A.SassException$("From " + left.span.message$1(0, "") + string$.x0aYou_m, right.span, null));
  12898. if (right.isOptional && right.mediaContext == null)
  12899. return left;
  12900. if (left.isOptional && t3)
  12901. return right;
  12902. if (t3)
  12903. t2 = right.mediaContext;
  12904. t1.get$specificity();
  12905. t1 = new A.Extender(t1, false);
  12906. return t1._extension = new A.MergedExtension(left, right, t1, left.target, t2, true, left.span);
  12907. },
  12908. MergedExtension: function MergedExtension(t0, t1, t2, t3, t4, t5, t6) {
  12909. var _ = this;
  12910. _.left = t0;
  12911. _.right = t1;
  12912. _.extender = t2;
  12913. _.target = t3;
  12914. _.mediaContext = t4;
  12915. _.isOptional = t5;
  12916. _.span = t6;
  12917. },
  12918. ExtendMode: function ExtendMode(t0, t1) {
  12919. this.name = t0;
  12920. this._name = t1;
  12921. },
  12922. globalFunctions_closure: function globalFunctions_closure() {
  12923. },
  12924. _invert($arguments, global) {
  12925. var t2, color, rgb, channel2, space, weight, inSpace, t3, _1_9, channel0, channel1, t4, _s6_ = "weight", _s5_ = "space",
  12926. t1 = J.getInterceptor$asx($arguments),
  12927. weightNumber = t1.$index($arguments, 1).assertNumber$1(_s6_);
  12928. if (!(t1.$index($arguments, 0) instanceof A.SassNumber))
  12929. t2 = global && t1.$index($arguments, 0).get$isSpecialNumber();
  12930. else
  12931. t2 = true;
  12932. if (t2) {
  12933. if (weightNumber._number$_value !== 100 || !weightNumber.hasUnit$1("%"))
  12934. throw A.wrapException(string$.Only_oa);
  12935. return A._functionString("invert", t1.take$1($arguments, 1));
  12936. }
  12937. color = t1.$index($arguments, 0).assertColor$1("color");
  12938. if (J.$eq$(t1.$index($arguments, 2), B.C__SassNull)) {
  12939. t1 = color._space;
  12940. if (!t1.get$isLegacyInternal())
  12941. throw A.wrapException(A.SassScriptException$(string$.To_usei + color.toString$0(0) + ", you must provide a $space.", "color"));
  12942. A._checkPercent(weightNumber, _s6_);
  12943. rgb = color.toSpace$1(B.RgbColorSpace_mlz);
  12944. channel2 = B.LinearChannel_Npb;
  12945. return A._mixLegacy(A.SassColor_SassColor$rgbInternal(A._invertChannel(rgb, B.LinearChannel_bdu, rgb.channel0OrNull), A._invertChannel(rgb, B.LinearChannel_kUZ, rgb.channel1OrNull), A._invertChannel(rgb, channel2, rgb.channel2OrNull), color.alphaOrNull, null), color, weightNumber).toSpace$1(t1);
  12946. }
  12947. t1 = t1.$index($arguments, 2).assertString$1(_s5_);
  12948. t1.assertUnquoted$1(_s5_);
  12949. space = A.ColorSpace_fromName(t1._string$_text, _s5_);
  12950. weight = weightNumber.valueInRangeWithUnit$4(0, 100, _s6_, "%") / 100;
  12951. if (A.fuzzyEquals(weight, 0))
  12952. return color;
  12953. inSpace = color.toSpace$1(space);
  12954. $label0$0: {
  12955. if (B.HwbColorSpace_06z === space) {
  12956. t1 = A._invertChannel(inSpace, space._channels[0], inSpace.channel0OrNull);
  12957. t2 = inSpace.alphaOrNull;
  12958. if (t2 == null)
  12959. t2 = 0;
  12960. t2 = A.SassColor_SassColor$hwb(t1, inSpace.channel2OrNull, inSpace.channel1OrNull, t2);
  12961. t1 = t2;
  12962. break $label0$0;
  12963. }
  12964. if (B.HslColorSpace_gsm === space || B.LchColorSpace_wv8 === space || B.OklchColorSpace_li8 === space) {
  12965. t1 = space._channels;
  12966. t2 = A._invertChannel(inSpace, t1[0], inSpace.channel0OrNull);
  12967. t1 = A._invertChannel(inSpace, t1[2], inSpace.channel2OrNull);
  12968. t3 = inSpace.alphaOrNull;
  12969. if (t3 == null)
  12970. t3 = 0;
  12971. t3 = A.SassColor_SassColor$forSpaceInternal(space, t2, inSpace.channel1OrNull, t1, t3);
  12972. t1 = t3;
  12973. break $label0$0;
  12974. }
  12975. _1_9 = space._channels;
  12976. channel0 = _1_9[0];
  12977. channel1 = _1_9[1];
  12978. channel2 = _1_9[2];
  12979. t1 = A._invertChannel(inSpace, channel0, inSpace.channel0OrNull);
  12980. t2 = A._invertChannel(inSpace, channel1, inSpace.channel1OrNull);
  12981. t3 = A._invertChannel(inSpace, channel2, inSpace.channel2OrNull);
  12982. t4 = inSpace.alphaOrNull;
  12983. t1 = A.SassColor_SassColor$forSpaceInternal(space, t1, t2, t3, t4 == null ? 0 : t4);
  12984. break $label0$0;
  12985. }
  12986. return A.fuzzyEquals(weight, 1) ? t1.toSpace$2$legacyMissing(color._space, false) : color.interpolate$4$legacyMissing$weight(t1, A.InterpolationMethod$(space, null), false, 1 - weight);
  12987. },
  12988. _invertChannel(color, channel, value) {
  12989. var _0_2_isSet, _0_2, t1;
  12990. if (value == null)
  12991. A._missingChannelError(color, channel.name);
  12992. $label0$0: {
  12993. _0_2_isSet = channel instanceof A.LinearChannel;
  12994. if (_0_2_isSet) {
  12995. _0_2 = channel.min;
  12996. t1 = _0_2 < 0;
  12997. } else {
  12998. _0_2 = null;
  12999. t1 = false;
  13000. }
  13001. if (t1) {
  13002. t1 = -value;
  13003. break $label0$0;
  13004. }
  13005. if (_0_2_isSet)
  13006. t1 = 0 === _0_2;
  13007. else
  13008. t1 = false;
  13009. if (t1) {
  13010. t1 = channel.max - value;
  13011. break $label0$0;
  13012. }
  13013. if (channel.isPolarAngle) {
  13014. t1 = B.JSNumber_methods.$mod(value + 180, 360);
  13015. break $label0$0;
  13016. }
  13017. t1 = A.throwExpression(A.UnsupportedError$("Unknown channel " + channel.toString$0(0) + "."));
  13018. }
  13019. return t1;
  13020. },
  13021. _grayscale(colorArg) {
  13022. var hsl, t2, oklch,
  13023. color = colorArg.assertColor$1("color"),
  13024. t1 = color._space;
  13025. if (t1.get$isLegacyInternal()) {
  13026. hsl = color.toSpace$1(B.HslColorSpace_gsm);
  13027. t2 = hsl.alphaOrNull;
  13028. if (t2 == null)
  13029. t2 = 0;
  13030. return A.SassColor_SassColor$hsl(hsl.channel0OrNull, 0, hsl.channel2OrNull, t2).toSpace$2$legacyMissing(t1, false);
  13031. } else {
  13032. oklch = color.toSpace$1(B.OklchColorSpace_li8);
  13033. t2 = oklch.alphaOrNull;
  13034. if (t2 == null)
  13035. t2 = 0;
  13036. return A.SassColor_SassColor$forSpaceInternal(B.OklchColorSpace_li8, oklch.channel0OrNull, 0, oklch.channel2OrNull, t2).toSpace$1(t1);
  13037. }
  13038. },
  13039. _updateComponents($arguments, adjust, change, scale) {
  13040. var t2, t3, keywords, originalColor, spaceKeyword, alphaArg, color, channelArgs, channelInfo, t4, value, channelIndex, result, i, alphaNumber, _null = null, _s5_ = "space",
  13041. t1 = J.getInterceptor$asx($arguments),
  13042. argumentList = type$.SassArgumentList._as(t1.$index($arguments, 1));
  13043. if (argumentList._list$_contents.length !== 0)
  13044. throw A.wrapException(A.SassScriptException$(string$.Only_op, _null));
  13045. argumentList._wereKeywordsAccessed = true;
  13046. t2 = type$.String;
  13047. t3 = type$.Value;
  13048. keywords = A.LinkedHashMap_LinkedHashMap$of(argumentList._keywords, t2, t3);
  13049. originalColor = t1.$index($arguments, 0).assertColor$1("color");
  13050. t1 = keywords.remove$1(0, _s5_);
  13051. spaceKeyword = t1 == null ? _null : t1.assertString$1(_s5_);
  13052. if (spaceKeyword == null)
  13053. spaceKeyword = _null;
  13054. else
  13055. spaceKeyword.assertUnquoted$1(_s5_);
  13056. alphaArg = keywords.remove$1(0, "alpha");
  13057. t1 = spaceKeyword == null;
  13058. if (t1 && originalColor._space.get$isLegacyInternal() && keywords.__js_helper$_length !== 0) {
  13059. t1 = A.NullableExtension_andThen(A._sniffLegacyColorSpace(keywords), new A._updateComponents_closure(originalColor));
  13060. color = t1 == null ? originalColor : t1;
  13061. } else
  13062. color = A._colorInSpace(originalColor, t1 ? B.C__SassNull : spaceKeyword, true);
  13063. channelArgs = A.List_List$filled(color.get$channels().length, _null, false, type$.nullable_Value);
  13064. t1 = color._space;
  13065. channelInfo = t1._channels;
  13066. for (t2 = A.MapExtensions_get_pairs(keywords, t2, t3), t2 = t2.get$iterator(t2); t2.moveNext$0();) {
  13067. t3 = {};
  13068. t4 = t2.get$current(t2);
  13069. t3.name = null;
  13070. t3.name = t4._0;
  13071. value = t4._1;
  13072. channelIndex = B.JSArray_methods.indexWhere$1(channelInfo, new A._updateComponents_closure0(t3));
  13073. if (channelIndex === -1)
  13074. throw A.wrapException(A.SassScriptException$("Color space " + t1.toString$0(0) + " doesn't have a channel with this name.", t3.name));
  13075. channelArgs[channelIndex] = value;
  13076. }
  13077. if (change)
  13078. result = A._changeColor(color, channelArgs, alphaArg);
  13079. else {
  13080. t2 = A._setArrayType([], type$.JSArray_nullable_SassNumber);
  13081. for (i = 0; i < 3; ++i) {
  13082. t3 = channelArgs[i];
  13083. t2.push(t3 == null ? _null : t3.assertNumber$1(channelInfo[i].name));
  13084. }
  13085. alphaNumber = alphaArg == null ? _null : alphaArg.assertNumber$1("alpha");
  13086. result = scale ? A.SassColor_SassColor$forSpaceInternal(t1, A._scaleChannel(color, channelInfo[0], color.channel0OrNull, t2[0]), A._scaleChannel(color, channelInfo[1], color.channel1OrNull, t2[1]), A._scaleChannel(color, channelInfo[2], color.channel2OrNull, t2[2]), A._scaleChannel(color, B.LinearChannel_omH, color.alphaOrNull, alphaNumber)) : A._adjustColor(color, t2, alphaNumber);
  13087. }
  13088. return result.toSpace$2$legacyMissing(originalColor._space, false);
  13089. },
  13090. _changeColor(color, channelArgs, alphaArg) {
  13091. var t4, _s5_ = "alpha",
  13092. t1 = A._channelForChange(channelArgs[0], color, 0),
  13093. t2 = A._channelForChange(channelArgs[1], color, 1),
  13094. t3 = A._channelForChange(channelArgs[2], color, 2);
  13095. $label0$0: {
  13096. if (alphaArg == null) {
  13097. t4 = color.alphaOrNull;
  13098. if (t4 == null)
  13099. t4 = 0;
  13100. break $label0$0;
  13101. }
  13102. t4 = A._isNone(alphaArg);
  13103. if (t4) {
  13104. t4 = null;
  13105. break $label0$0;
  13106. }
  13107. t4 = alphaArg instanceof A.SassNumber;
  13108. if (t4 && !alphaArg.get$hasUnits()) {
  13109. t4 = alphaArg.valueInRange$3(0, 1, _s5_);
  13110. break $label0$0;
  13111. }
  13112. if (t4 && alphaArg.hasUnit$1("%")) {
  13113. t4 = alphaArg.valueInRangeWithUnit$4(0, 100, _s5_, "%") / 100;
  13114. break $label0$0;
  13115. }
  13116. if (t4) {
  13117. t4 = new A._changeColor_closure(alphaArg).call$0();
  13118. break $label0$0;
  13119. }
  13120. t4 = A.throwExpression(A.SassScriptException$(alphaArg.toString$0(0) + ' is not a number or unquoted "none".', _s5_));
  13121. }
  13122. return A._colorFromChannels(color._space, t1, t2, t3, t4, false, false);
  13123. },
  13124. _channelForChange(channelArg, color, channel) {
  13125. var _0_0, t1, t2;
  13126. if (channelArg == null) {
  13127. _0_0 = color.get$channelsOrNull()[channel];
  13128. $label0$0: {
  13129. if (_0_0 != null) {
  13130. t1 = color._space;
  13131. t2 = A.SassNumber_SassNumber(_0_0, (t1 === B.HslColorSpace_gsm || t1 === B.HwbColorSpace_06z) && channel > 0 ? "%" : null);
  13132. t1 = t2;
  13133. break $label0$0;
  13134. }
  13135. t1 = null;
  13136. break $label0$0;
  13137. }
  13138. return t1;
  13139. }
  13140. if (A._isNone(channelArg))
  13141. return null;
  13142. if (channelArg instanceof A.SassNumber)
  13143. return channelArg;
  13144. throw A.wrapException(A.SassScriptException$(channelArg.toString$0(0) + ' is not a number or unquoted "none".', color._space._channels[channel].name));
  13145. },
  13146. _scaleChannel(color, channel, oldValue, factorArg) {
  13147. var t1, factor;
  13148. if (factorArg == null)
  13149. return oldValue;
  13150. if (!(channel instanceof A.LinearChannel))
  13151. throw A.wrapException(A.SassScriptException$("Channel isn't scalable.", channel.name));
  13152. if (oldValue == null)
  13153. A._missingChannelError(color, channel.name);
  13154. t1 = channel.name;
  13155. factorArg.assertUnit$2("%", t1);
  13156. factor = factorArg.valueInRangeWithUnit$4(-100, 100, t1, "%") / 100;
  13157. $label0$0: {
  13158. if (0 === factor) {
  13159. t1 = oldValue;
  13160. break $label0$0;
  13161. }
  13162. if (factor > 0) {
  13163. t1 = channel.max;
  13164. t1 = oldValue >= t1 ? oldValue : oldValue + (t1 - oldValue) * factor;
  13165. break $label0$0;
  13166. }
  13167. t1 = channel.min;
  13168. t1 = oldValue <= t1 ? oldValue : oldValue + (oldValue - t1) * factor;
  13169. break $label0$0;
  13170. }
  13171. return t1;
  13172. },
  13173. _adjustColor(color, channelArgs, alphaArg) {
  13174. var t1 = color._space,
  13175. t2 = t1._channels;
  13176. return A.SassColor_SassColor$forSpaceInternal(t1, A._adjustChannel(color, t2[0], color.channel0OrNull, channelArgs[0]), A._adjustChannel(color, t2[1], color.channel1OrNull, channelArgs[1]), A._adjustChannel(color, t2[2], color.channel2OrNull, channelArgs[2]), A.NullableExtension_andThen(A._adjustChannel(color, B.LinearChannel_omH, color.alphaOrNull, alphaArg), new A._adjustColor_closure()));
  13177. },
  13178. _adjustChannel(color, channel, oldValue, adjustmentArg) {
  13179. var _0_1, _0_3, t1, _0_6_isSet, _0_6, _0_6_isSet0, t2, _0_11, result, min, max, _null = null;
  13180. if (adjustmentArg == null)
  13181. return oldValue;
  13182. if (oldValue == null)
  13183. A._missingChannelError(color, channel.name);
  13184. $label0$0: {
  13185. _0_1 = color._space;
  13186. _0_3 = B.HslColorSpace_gsm === _0_1;
  13187. t1 = _0_3;
  13188. if (!t1)
  13189. _0_6_isSet = B.HwbColorSpace_06z === _0_1;
  13190. else
  13191. _0_6_isSet = true;
  13192. if (_0_6_isSet) {
  13193. t1 = channel.isPolarAngle;
  13194. _0_6 = channel;
  13195. } else {
  13196. _0_6 = _null;
  13197. t1 = false;
  13198. }
  13199. if (t1) {
  13200. adjustmentArg = A.SassNumber_SassNumber(A._angleValue(adjustmentArg, "hue"), _null);
  13201. break $label0$0;
  13202. }
  13203. t1 = false;
  13204. if (_0_3) {
  13205. _0_6_isSet0 = true;
  13206. if (_0_6_isSet)
  13207. t2 = _0_6;
  13208. else {
  13209. t2 = channel;
  13210. _0_6_isSet = _0_6_isSet0;
  13211. _0_6 = t2;
  13212. }
  13213. if (t2 instanceof A.LinearChannel) {
  13214. if (_0_6_isSet)
  13215. t1 = _0_6;
  13216. else {
  13217. t1 = channel;
  13218. _0_6_isSet = _0_6_isSet0;
  13219. _0_6 = t1;
  13220. }
  13221. _0_11 = type$.LinearChannel._as(t1).name;
  13222. t1 = _0_11;
  13223. if ("saturation" !== t1)
  13224. t1 = "lightness" === _0_11;
  13225. else
  13226. t1 = true;
  13227. }
  13228. }
  13229. if (t1) {
  13230. A._checkPercent(adjustmentArg, channel.name);
  13231. adjustmentArg = A.SassNumber_SassNumber(adjustmentArg._number$_value, "%");
  13232. break $label0$0;
  13233. }
  13234. if (B.LinearChannel_omH === (_0_6_isSet ? _0_6 : channel) && adjustmentArg.get$hasUnits()) {
  13235. A.warnForDeprecation("$alpha: Passing a number with unit " + adjustmentArg.get$unitString() + string$.x20is_de + adjustmentArg.unitSuggestion$1("alpha") + string$.x0a_Morex3af, B.Deprecation_int);
  13236. adjustmentArg = A.SassNumber_SassNumber(adjustmentArg._number$_value, _null);
  13237. }
  13238. }
  13239. t1 = A._channelFromValue(channel, adjustmentArg, false);
  13240. t1.toString;
  13241. result = oldValue + t1;
  13242. $label1$1: {
  13243. t1 = channel instanceof A.LinearChannel;
  13244. min = _null;
  13245. t2 = false;
  13246. if (t1)
  13247. if (channel.lowerClamped) {
  13248. min = channel.min;
  13249. t2 = result < min;
  13250. }
  13251. if (t2) {
  13252. t1 = oldValue < min ? Math.max(oldValue, result) : min;
  13253. break $label1$1;
  13254. }
  13255. max = _null;
  13256. t2 = false;
  13257. if (t1)
  13258. if (channel.upperClamped) {
  13259. max = channel.max;
  13260. t1 = result > max;
  13261. } else
  13262. t1 = t2;
  13263. else
  13264. t1 = t2;
  13265. if (t1) {
  13266. t1 = oldValue > max ? Math.min(oldValue, result) : max;
  13267. break $label1$1;
  13268. }
  13269. t1 = result;
  13270. break $label1$1;
  13271. }
  13272. return t1;
  13273. },
  13274. _sniffLegacyColorSpace(keywords) {
  13275. var t1, t2;
  13276. for (t1 = A.LinkedHashMapKeyIterator$(keywords, keywords.__js_helper$_modifications); t1.moveNext$0();) {
  13277. t2 = t1.__js_helper$_current;
  13278. if ("red" === t2 || "green" === t2 || "blue" === t2)
  13279. return B.RgbColorSpace_mlz;
  13280. if ("saturation" === t2 || "lightness" === t2)
  13281. return B.HslColorSpace_gsm;
  13282. if ("whiteness" === t2 || "blackness" === t2)
  13283. return B.HwbColorSpace_06z;
  13284. }
  13285. return keywords.containsKey$1("hue") ? B.HslColorSpace_gsm : null;
  13286. },
  13287. _functionString($name, $arguments) {
  13288. return new A.SassString($name + "(" + J.map$1$1$ax($arguments, new A._functionString_closure(), type$.String).join$1(0, ", ") + ")", false);
  13289. },
  13290. _removedColorFunction($name, argument, negative) {
  13291. return A.BuiltInCallable$function($name, "$color, $amount", new A._removedColorFunction_closure($name, argument, negative), "sass:color");
  13292. },
  13293. _rgb($name, $arguments) {
  13294. var t3, t4,
  13295. t1 = J.getInterceptor$asx($arguments),
  13296. alpha = t1.get$length($arguments) > 3 ? t1.$index($arguments, 3) : null,
  13297. t2 = true;
  13298. if (!t1.$index($arguments, 0).get$isSpecialNumber())
  13299. if (!t1.$index($arguments, 1).get$isSpecialNumber())
  13300. if (!t1.$index($arguments, 2).get$isSpecialNumber()) {
  13301. t2 = alpha == null ? null : alpha.get$isSpecialNumber();
  13302. t2 = t2 === true;
  13303. }
  13304. if (t2)
  13305. return A._functionString($name, $arguments);
  13306. t2 = t1.$index($arguments, 0).assertNumber$1("red");
  13307. t3 = t1.$index($arguments, 1).assertNumber$1("green");
  13308. t1 = t1.$index($arguments, 2).assertNumber$1("blue");
  13309. t4 = A.NullableExtension_andThen(alpha, new A._rgb_closure());
  13310. return A._colorFromChannels(B.RgbColorSpace_mlz, t2, t3, t1, t4 == null ? 1 : t4, true, true);
  13311. },
  13312. _rgbTwoArg($name, $arguments) {
  13313. var t2, color,
  13314. t1 = J.getInterceptor$asx($arguments),
  13315. first = t1.$index($arguments, 0),
  13316. second = t1.$index($arguments, 1);
  13317. if (!first.get$isVar())
  13318. t2 = !(first instanceof A.SassColor) && second.get$isVar();
  13319. else
  13320. t2 = true;
  13321. if (t2)
  13322. return A._functionString($name, $arguments);
  13323. color = first.assertColor$1("color");
  13324. if (!color._space.get$isLegacyInternal())
  13325. throw A.wrapException(A.SassScriptException$("Expected " + color.toString$0(0) + string$.x20to_be_ + color.toString$0(0) + ", $alpha: " + second.toString$0(0) + ")", $name));
  13326. color.assertLegacy$1("color");
  13327. color = color.toSpace$1(B.RgbColorSpace_mlz);
  13328. if (second.get$isSpecialNumber())
  13329. return A._functionString($name, A._setArrayType([A.SassNumber_SassNumber(color.channel$1(0, "red"), null), A.SassNumber_SassNumber(color.channel$1(0, "green"), null), A.SassNumber_SassNumber(color.channel$1(0, "blue"), null), t1.$index($arguments, 1)], type$.JSArray_Value));
  13330. t1 = A._percentageOrUnitless(t1.$index($arguments, 1).assertNumber$1("alpha"), 1, "alpha");
  13331. return color.changeAlpha$1(isNaN(t1) ? 0 : B.JSNumber_methods.clamp$2(t1, 0, 1));
  13332. },
  13333. _hsl($name, $arguments) {
  13334. var t3, t4,
  13335. t1 = J.getInterceptor$asx($arguments),
  13336. alpha = t1.get$length($arguments) > 3 ? t1.$index($arguments, 3) : null,
  13337. t2 = true;
  13338. if (!t1.$index($arguments, 0).get$isSpecialNumber())
  13339. if (!t1.$index($arguments, 1).get$isSpecialNumber())
  13340. if (!t1.$index($arguments, 2).get$isSpecialNumber()) {
  13341. t2 = alpha == null ? null : alpha.get$isSpecialNumber();
  13342. t2 = t2 === true;
  13343. }
  13344. if (t2)
  13345. return A._functionString($name, $arguments);
  13346. t2 = t1.$index($arguments, 0).assertNumber$1("hue");
  13347. t3 = t1.$index($arguments, 1).assertNumber$1("saturation");
  13348. t1 = t1.$index($arguments, 2).assertNumber$1("lightness");
  13349. t4 = A.NullableExtension_andThen(alpha, new A._hsl_closure());
  13350. return A._colorFromChannels(B.HslColorSpace_gsm, t2, t3, t1, t4 == null ? 1 : t4, true, false);
  13351. },
  13352. _angleValue(angleValue, $name) {
  13353. var angle = angleValue.assertNumber$1($name);
  13354. if (angle.compatibleWithUnit$1("deg"))
  13355. return angle.coerceValueToUnit$1("deg");
  13356. A.warnForDeprecation("$" + $name + ": Passing a unit other than deg (" + angle.toString$0(0) + string$.x29x20is_d + angle.unitSuggestion$1($name) + string$.x0a_See_, B.Deprecation_int);
  13357. return angle._number$_value;
  13358. },
  13359. _checkPercent(number, $name) {
  13360. if (number.hasUnit$1("%"))
  13361. return;
  13362. A.warnForDeprecation("$" + $name + ": Passing a number without unit % (" + number.toString$0(0) + string$.x29x20is_d + number.unitSuggestion$2($name, "%") + string$.x0a_Morex3af, B.Deprecation_int);
  13363. },
  13364. _percentageOrUnitless(number, max, $name) {
  13365. var value;
  13366. if (!number.get$hasUnits())
  13367. value = number._number$_value;
  13368. else if (number.hasUnit$1("%"))
  13369. value = max * number._number$_value / 100;
  13370. else
  13371. throw A.wrapException(A.SassScriptException$("Expected " + number.toString$0(0) + ' to have unit "%" or no units.', $name));
  13372. return value;
  13373. },
  13374. _mixLegacy(color1, color2, weight) {
  13375. var t2, alphaDistance, weight1, weight2, t3, t4, t5, t6, t7, t8,
  13376. rgb1 = color1.toSpace$1(B.RgbColorSpace_mlz),
  13377. rgb2 = color2.toSpace$1(B.RgbColorSpace_mlz),
  13378. weightScale = weight.valueInRange$3(0, 100, "weight") / 100,
  13379. normalizedWeight = weightScale * 2 - 1,
  13380. t1 = color1.alphaOrNull;
  13381. if (t1 == null)
  13382. t1 = 0;
  13383. t2 = color2.alphaOrNull;
  13384. alphaDistance = t1 - (t2 == null ? 0 : t2);
  13385. t1 = normalizedWeight * alphaDistance;
  13386. weight1 = ((t1 === -1 ? normalizedWeight : (normalizedWeight + alphaDistance) / (1 + t1)) + 1) / 2;
  13387. weight2 = 1 - weight1;
  13388. t1 = rgb1.channel0OrNull;
  13389. if (t1 == null)
  13390. t1 = 0;
  13391. t2 = rgb2.channel0OrNull;
  13392. if (t2 == null)
  13393. t2 = 0;
  13394. t3 = rgb1.channel1OrNull;
  13395. if (t3 == null)
  13396. t3 = 0;
  13397. t4 = rgb2.channel1OrNull;
  13398. if (t4 == null)
  13399. t4 = 0;
  13400. t5 = rgb1.channel2OrNull;
  13401. if (t5 == null)
  13402. t5 = 0;
  13403. t6 = rgb2.channel2OrNull;
  13404. if (t6 == null)
  13405. t6 = 0;
  13406. t7 = rgb1.alphaOrNull;
  13407. if (t7 == null)
  13408. t7 = 0;
  13409. t8 = rgb2.alphaOrNull;
  13410. if (t8 == null)
  13411. t8 = 0;
  13412. return A.SassColor_SassColor$rgbInternal(t1 * weight1 + t2 * weight2, t3 * weight1 + t4 * weight2, t5 * weight1 + t6 * weight2, t7 * weightScale + t8 * (1 - weightScale), null);
  13413. },
  13414. _opacify($name, $arguments) {
  13415. var result,
  13416. t1 = J.getInterceptor$asx($arguments),
  13417. color = t1.$index($arguments, 0).assertColor$1("color"),
  13418. amount = t1.$index($arguments, 1).assertNumber$1("amount");
  13419. if (!color._space.get$isLegacyInternal())
  13420. throw A.wrapException(A.SassScriptException$($name + string$.x28__is_oa, null));
  13421. t1 = color.alphaOrNull;
  13422. if (t1 == null)
  13423. t1 = 0;
  13424. t1 += amount.valueInRangeWithUnit$4(0, 1, "amount", "");
  13425. result = color.changeAlpha$1(isNaN(t1) ? 0 : B.JSNumber_methods.clamp$2(t1, 0, 1));
  13426. A.warnForDeprecation($name + "() is deprecated. " + A._suggestScaleAndAdjust(color, amount._number$_value, "alpha") + string$.x0a_Morex3ac, B.Deprecation_izR);
  13427. return result;
  13428. },
  13429. _transparentize($name, $arguments) {
  13430. var result,
  13431. t1 = J.getInterceptor$asx($arguments),
  13432. color = t1.$index($arguments, 0).assertColor$1("color"),
  13433. amount = t1.$index($arguments, 1).assertNumber$1("amount");
  13434. if (!color._space.get$isLegacyInternal())
  13435. throw A.wrapException(A.SassScriptException$($name + string$.x28__is_oa, null));
  13436. t1 = color.alphaOrNull;
  13437. if (t1 == null)
  13438. t1 = 0;
  13439. t1 -= amount.valueInRangeWithUnit$4(0, 1, "amount", "");
  13440. result = color.changeAlpha$1(isNaN(t1) ? 0 : B.JSNumber_methods.clamp$2(t1, 0, 1));
  13441. A.warnForDeprecation($name + "() is deprecated. " + A._suggestScaleAndAdjust(color, -amount._number$_value, "alpha") + string$.x0a_Morex3ac, B.Deprecation_izR);
  13442. return result;
  13443. },
  13444. _colorInSpace(colorUntyped, spaceUntyped, legacyMissing) {
  13445. var t1, _s5_ = "space",
  13446. color = colorUntyped.assertColor$1("color");
  13447. if (spaceUntyped.$eq(0, B.C__SassNull))
  13448. return color;
  13449. t1 = spaceUntyped.assertString$1(_s5_);
  13450. t1.assertUnquoted$1(_s5_);
  13451. return color.toSpace$2$legacyMissing(A.ColorSpace_fromName(t1._string$_text, _s5_), legacyMissing);
  13452. },
  13453. _parseChannels(functionName, input, $name, space) {
  13454. var parsedSlash, components, alphaValue, _2_0, _2_1, _2_5, t1, _2_6, t2, _2_60, t3, channels, first, rest, componentList, spaceName, i, channel, channelName, t4, _null = null;
  13455. if (input.get$isVar())
  13456. return A._functionString(functionName, A._setArrayType([input], type$.JSArray_Value));
  13457. parsedSlash = A._parseSlashChannels(input, $name);
  13458. if (parsedSlash == null)
  13459. return A._functionString(functionName, A._setArrayType([input], type$.JSArray_Value));
  13460. components = parsedSlash._0;
  13461. alphaValue = parsedSlash._1;
  13462. $label0$0: {
  13463. _2_0 = components.assertCommonListStyle$2$allowSlash($name, false);
  13464. _2_1 = _2_0.length;
  13465. if (_2_1 <= 0)
  13466. throw A.wrapException(A.SassScriptException$("Color component list may not be empty.", $name));
  13467. _2_5 = _2_1 >= 1;
  13468. t1 = _2_5;
  13469. _2_6 = _null;
  13470. t2 = false;
  13471. if (t1) {
  13472. _2_60 = _2_0[0];
  13473. t3 = _2_60;
  13474. _2_6 = t3;
  13475. if (t3 instanceof A.SassString) {
  13476. type$.SassString._as(_2_6);
  13477. t2 = !_2_6._hasQuotes && _2_6._string$_text.toLowerCase() === "from";
  13478. }
  13479. }
  13480. if (t2)
  13481. return A._functionString(functionName, A._setArrayType([input], type$.JSArray_Value));
  13482. t2 = components.get$isVar();
  13483. if (t2) {
  13484. channels = A._setArrayType([components], type$.JSArray_Value);
  13485. break $label0$0;
  13486. }
  13487. channels = _null;
  13488. if (_2_5) {
  13489. first = t1 ? _2_6 : _2_0[0];
  13490. rest = B.JSArray_methods.sublist$1(_2_0, 1);
  13491. componentList = _2_0;
  13492. } else {
  13493. componentList = channels;
  13494. rest = componentList;
  13495. first = _null;
  13496. }
  13497. if (_2_5) {
  13498. if (space == null) {
  13499. spaceName = first.assertString$1($name);
  13500. spaceName.assertUnquoted$1($name);
  13501. space = spaceName.get$isVar() ? _null : A.ColorSpace_fromName(spaceName._string$_text, $name);
  13502. if (B.RgbColorSpace_mlz === space || B.HslColorSpace_gsm === space || B.HwbColorSpace_06z === space || B.LabColorSpace_IF2 === space || B.LchColorSpace_wv8 === space || B.OklabColorSpace_yrt === space || B.OklchColorSpace_li8 === space)
  13503. throw A.wrapException(A.SassScriptException$(string$.The_co + A.S(space) + ". Use the " + A.S(space) + "() function instead.", $name));
  13504. channels = rest;
  13505. } else
  13506. channels = componentList;
  13507. for (i = 0; i < channels.length; ++i) {
  13508. channel = channels[i];
  13509. t1 = false;
  13510. if (!channel.get$isSpecialNumber())
  13511. if (!(channel instanceof A.SassNumber))
  13512. t1 = !(channel instanceof A.SassString && !channel._hasQuotes && channel._string$_text.toLowerCase() === "none");
  13513. if (t1) {
  13514. t1 = _null;
  13515. if (space == null)
  13516. channelName = t1;
  13517. else {
  13518. t2 = space._channels;
  13519. t2 = i < 3 ? t2[i] : _null;
  13520. if (!(t2 == null))
  13521. t1 = new A._parseChannels_closure().call$1(t2.name);
  13522. channelName = t1;
  13523. }
  13524. if (channelName == null)
  13525. channelName = "channel " + (i + 1);
  13526. throw A.wrapException(A.SassScriptException$("Expected " + channelName + " to be a number, was " + channel.toString$0(0) + ".", $name));
  13527. }
  13528. }
  13529. break $label0$0;
  13530. }
  13531. throw A.wrapException("unreachable");
  13532. }
  13533. t1 = alphaValue == null;
  13534. t2 = t1 ? _null : alphaValue.get$isSpecialNumber();
  13535. if (t2 === true) {
  13536. if (channels.length === 3 && B.Set_2Dcfy.contains$1(0, space)) {
  13537. t1 = A.List_List$of(channels, true, type$.Value);
  13538. alphaValue.toString;
  13539. t1.push(alphaValue);
  13540. t1 = A._functionString(functionName, t1);
  13541. } else
  13542. t1 = A._functionString(functionName, A._setArrayType([input], type$.JSArray_Value));
  13543. return t1;
  13544. }
  13545. $label1$1: {
  13546. if (t1) {
  13547. t2 = 1;
  13548. break $label1$1;
  13549. }
  13550. if (alphaValue instanceof A.SassString && !alphaValue._hasQuotes && "none" === alphaValue._string$_text) {
  13551. t2 = _null;
  13552. break $label1$1;
  13553. }
  13554. t2 = A._percentageOrUnitless(alphaValue.assertNumber$1($name), 1, "alpha");
  13555. t2 = isNaN(t2) ? 0 : B.JSNumber_methods.clamp$2(t2, 0, 1);
  13556. break $label1$1;
  13557. }
  13558. if (space == null)
  13559. return A._functionString(functionName, A._setArrayType([input], type$.JSArray_Value));
  13560. if (B.JSArray_methods.any$1(channels, new A._parseChannels_closure0())) {
  13561. if (channels.length === 3 && B.Set_2Dcfy.contains$1(0, space)) {
  13562. t2 = A.List_List$of(channels, true, type$.Value);
  13563. if (!t1)
  13564. t2.push(alphaValue);
  13565. t1 = A._functionString(functionName, t2);
  13566. } else
  13567. t1 = A._functionString(functionName, A._setArrayType([input], type$.JSArray_Value));
  13568. return t1;
  13569. }
  13570. if (channels.length !== 3)
  13571. throw A.wrapException(A.SassScriptException$("The " + space.toString$0(0) + " color space has 3 channels but " + input.toString$0(0) + " has " + channels.length + ".", $name));
  13572. t1 = channels[0];
  13573. t1 = t1 instanceof A.SassNumber ? t1 : _null;
  13574. t3 = channels[1];
  13575. t3 = t3 instanceof A.SassNumber ? t3 : _null;
  13576. t4 = channels[2];
  13577. t4 = t4 instanceof A.SassNumber ? t4 : _null;
  13578. return A._colorFromChannels(space, t1, t3, t4, t2, true, space === B.RgbColorSpace_mlz);
  13579. },
  13580. _parseSlashChannels(input, $name) {
  13581. var _1_1, alphaValue, t1, components, _1_7, _1_9_isSet, _1_8, _1_9, initial, t2, _0_0, _0_1, channel3, alpha, _1_16, _1_16_isSet, _1_9_isSet0, t3, _null = null,
  13582. _1_0 = input.assertCommonListStyle$2$allowSlash($name, true);
  13583. $label0$0: {
  13584. _1_1 = _1_0.length;
  13585. alphaValue = _null;
  13586. t1 = false;
  13587. if (_1_1 === 2) {
  13588. components = _1_0[0];
  13589. alphaValue = _1_0[1];
  13590. t1 = input.get$separator(input) === B.ListSeparator_cQA;
  13591. } else
  13592. components = _null;
  13593. if (t1) {
  13594. t1 = new A._Record_2(components, alphaValue);
  13595. break $label0$0;
  13596. }
  13597. t1 = input.get$separator(input);
  13598. if (t1 === B.ListSeparator_cQA) {
  13599. t1 = _1_0.length;
  13600. A.throwExpression(A.SassScriptException$(string$.Only_2 + t1 + " " + A.pluralize("was", t1, "were") + " passed.", $name));
  13601. }
  13602. _1_7 = _1_1 >= 1;
  13603. _1_9_isSet = _1_7;
  13604. _1_8 = _null;
  13605. _1_9 = _null;
  13606. initial = _null;
  13607. t1 = false;
  13608. if (_1_9_isSet) {
  13609. _1_8 = B.JSArray_methods.sublist$2(_1_0, 0, _1_1 - 1);
  13610. initial = _1_8;
  13611. _1_9 = _1_0[_1_1 - 1];
  13612. t2 = _1_9;
  13613. if (t2 instanceof A.SassString) {
  13614. type$.SassString._as(_1_9);
  13615. t1 = !_1_9._hasQuotes;
  13616. }
  13617. }
  13618. if (t1) {
  13619. if (_1_9_isSet)
  13620. t1 = _1_9;
  13621. else {
  13622. _1_9 = _1_0[_1_1 - 1];
  13623. t1 = _1_9;
  13624. }
  13625. _0_0 = type$.SassString._as(t1)._string$_text.split("/");
  13626. $label1$1: {
  13627. _0_1 = _0_0.length;
  13628. if (_0_1 === 1) {
  13629. t1 = new A._Record_2(input, _null);
  13630. break $label1$1;
  13631. }
  13632. if (_0_1 === 2) {
  13633. channel3 = _0_0[0];
  13634. alpha = _0_0[1];
  13635. t1 = A.List_List$of(initial, true, type$.Value);
  13636. t1.push(A._parseNumberOrString(channel3));
  13637. t1 = new A._Record_2(A.SassList$(t1, B.ListSeparator_nbm, false), A._parseNumberOrString(alpha));
  13638. break $label1$1;
  13639. }
  13640. t1 = _null;
  13641. break $label1$1;
  13642. }
  13643. break $label0$0;
  13644. }
  13645. _1_16 = _null;
  13646. _1_16_isSet = false;
  13647. t1 = false;
  13648. if (_1_7) {
  13649. _1_9_isSet0 = true;
  13650. if (_1_9_isSet)
  13651. initial = _1_8;
  13652. else {
  13653. _1_8 = B.JSArray_methods.sublist$2(_1_0, 0, _1_1 - 1);
  13654. initial = _1_8;
  13655. }
  13656. if (_1_9_isSet)
  13657. t2 = _1_9;
  13658. else {
  13659. _1_9 = _1_0[_1_1 - 1];
  13660. t2 = _1_9;
  13661. _1_9_isSet = _1_9_isSet0;
  13662. }
  13663. _1_16_isSet = t2 instanceof A.SassNumber;
  13664. if (_1_16_isSet) {
  13665. if (_1_9_isSet)
  13666. t1 = _1_9;
  13667. else {
  13668. _1_9 = _1_0[_1_1 - 1];
  13669. t1 = _1_9;
  13670. _1_9_isSet = _1_9_isSet0;
  13671. }
  13672. _1_16 = type$.SassNumber._as(t1).asSlash;
  13673. t1 = _1_16;
  13674. t1 = type$.Record_2_nullable_Object_and_nullable_Object._is(t1);
  13675. }
  13676. } else
  13677. initial = _null;
  13678. if (t1) {
  13679. if (_1_16_isSet)
  13680. t1 = _1_16;
  13681. else {
  13682. if (_1_9_isSet)
  13683. t1 = _1_9;
  13684. else {
  13685. _1_9 = _1_0[_1_1 - 1];
  13686. t1 = _1_9;
  13687. _1_9_isSet = true;
  13688. }
  13689. _1_16 = type$.SassNumber._as(t1).asSlash;
  13690. t1 = _1_16;
  13691. _1_16_isSet = true;
  13692. }
  13693. if (t1 == null)
  13694. t1 = type$.Record_2_nullable_Object_and_nullable_Object._as(t1);
  13695. if (_1_16_isSet)
  13696. t2 = _1_16;
  13697. else {
  13698. if (_1_9_isSet)
  13699. t2 = _1_9;
  13700. else {
  13701. _1_9 = _1_0[_1_1 - 1];
  13702. t2 = _1_9;
  13703. }
  13704. _1_16 = type$.SassNumber._as(t2).asSlash;
  13705. t2 = _1_16;
  13706. }
  13707. if (t2 == null)
  13708. t2 = type$.Record_2_nullable_Object_and_nullable_Object._as(t2);
  13709. t3 = A.List_List$of(initial, true, type$.Value);
  13710. t3.push(t1._0);
  13711. t2 = new A._Record_2(A.SassList$(t3, B.ListSeparator_nbm, false), t2._1);
  13712. t1 = t2;
  13713. break $label0$0;
  13714. }
  13715. t1 = new A._Record_2(input, _null);
  13716. break $label0$0;
  13717. }
  13718. return t1;
  13719. },
  13720. _parseNumberOrString(text) {
  13721. var t1, expression, exception;
  13722. try {
  13723. t1 = A.ScssParser$(text, null);
  13724. expression = t1._parseSingleProduction$1$1(t1.get$_number(), type$.NumberExpression);
  13725. t1 = A.SassNumber_SassNumber(expression.value, expression.unit);
  13726. return t1;
  13727. } catch (exception) {
  13728. if (type$.SassFormatException._is(A.unwrapException(exception)))
  13729. return new A.SassString(text, false);
  13730. else
  13731. throw exception;
  13732. }
  13733. },
  13734. _colorFromChannels(space, channel0, channel1, channel2, alpha, clamp, fromRgbFunction) {
  13735. var t1, t2, whiteness, blackness, t3;
  13736. switch (space) {
  13737. case B.HslColorSpace_gsm:
  13738. if (channel1 != null)
  13739. A._checkPercent(channel1, "saturation");
  13740. if (channel2 != null)
  13741. A._checkPercent(channel2, "lightness");
  13742. t1 = space._channels;
  13743. return A.SassColor_SassColor$hsl(A.NullableExtension_andThen(channel0, new A._colorFromChannels_closure()), A._channelFromValue(t1[1], A._forcePercent(channel1), clamp), A._channelFromValue(t1[2], A._forcePercent(channel2), clamp), alpha);
  13744. case B.HwbColorSpace_06z:
  13745. t1 = channel1 == null;
  13746. if (!t1)
  13747. channel1.assertUnit$2("%", "whiteness");
  13748. t2 = channel2 == null;
  13749. if (!t2)
  13750. channel2.assertUnit$2("%", "blackness");
  13751. whiteness = t1 ? null : channel1._number$_value;
  13752. blackness = t2 ? null : channel2._number$_value;
  13753. if (whiteness != null && blackness != null && whiteness + blackness > 100) {
  13754. t1 = whiteness + blackness;
  13755. whiteness = whiteness / t1 * 100;
  13756. blackness = blackness / t1 * 100;
  13757. }
  13758. return A.SassColor_SassColor$hwb(A.NullableExtension_andThen(channel0, new A._colorFromChannels_closure0()), whiteness, blackness, alpha);
  13759. case B.RgbColorSpace_mlz:
  13760. t1 = space._channels;
  13761. t2 = A._channelFromValue(t1[0], channel0, clamp);
  13762. t3 = A._channelFromValue(t1[1], channel1, clamp);
  13763. t1 = A._channelFromValue(t1[2], channel2, clamp);
  13764. return A.SassColor_SassColor$rgbInternal(t2, t3, t1, alpha, fromRgbFunction ? B.C__ColorFormatEnum : null);
  13765. default:
  13766. t1 = space._channels;
  13767. return A.SassColor_SassColor$forSpaceInternal(space, A._channelFromValue(t1[0], channel0, clamp), A._channelFromValue(t1[1], channel1, clamp), A._channelFromValue(t1[2], channel2, clamp), alpha);
  13768. }
  13769. },
  13770. _forcePercent(number) {
  13771. var t1, _0_3;
  13772. $label0$0: {
  13773. if (number == null) {
  13774. t1 = null;
  13775. break $label0$0;
  13776. }
  13777. _0_3 = number.get$numeratorUnits(number);
  13778. if (_0_3.length === 1)
  13779. t1 = "%" === _0_3[0] && number.get$denominatorUnits(number).length <= 0;
  13780. else
  13781. t1 = false;
  13782. if (t1) {
  13783. t1 = number;
  13784. break $label0$0;
  13785. }
  13786. t1 = A.SassNumber_SassNumber(number._number$_value, "%");
  13787. break $label0$0;
  13788. }
  13789. return t1;
  13790. },
  13791. _channelFromValue(channel, value, clamp) {
  13792. return A.NullableExtension_andThen(value, new A._channelFromValue_closure(channel, clamp));
  13793. },
  13794. _isNone(value) {
  13795. return value instanceof A.SassString && !value._hasQuotes && value._string$_text.toLowerCase() === "none";
  13796. },
  13797. _channelFunction($name, space, getter, global, unit) {
  13798. return A.BuiltInCallable$function($name, "$color", new A._channelFunction_closure(getter, unit, global, $name, space), "sass:color");
  13799. },
  13800. _suggestScaleAndAdjust(original, adjustment, channelName) {
  13801. var t2, oldValue, newValue, factor, t3, suggestion,
  13802. channel = channelName === "alpha" ? B.LinearChannel_omH : type$.LinearChannel._as(B.JSArray_methods.firstWhere$1(B.List_8aB, new A._suggestScaleAndAdjust_closure(channelName))),
  13803. t1 = channel === B.LinearChannel_omH;
  13804. if (t1) {
  13805. t2 = original.alphaOrNull;
  13806. oldValue = t2 == null ? 0 : t2;
  13807. } else
  13808. oldValue = original.toSpace$1(B.HslColorSpace_gsm).channel$1(0, channelName);
  13809. newValue = oldValue + adjustment;
  13810. if (adjustment !== 0) {
  13811. factor = A._Cell$();
  13812. t2 = channel.max;
  13813. if (newValue > t2)
  13814. factor.__late_helper$_value = 1;
  13815. else {
  13816. t3 = channel.min;
  13817. if (newValue < t3)
  13818. factor.__late_helper$_value = -1;
  13819. else if (adjustment > 0)
  13820. factor.__late_helper$_value = adjustment / (t2 - oldValue);
  13821. else
  13822. factor.__late_helper$_value = (newValue - oldValue) / (oldValue - t3);
  13823. }
  13824. suggestion = "Suggestion" + ("s:\n\ncolor.scale($color, $" + channelName + ": " + A.SassNumber_SassNumber(factor._readLocal$0() * 100, "%").toString$0(0) + ")\n");
  13825. } else
  13826. suggestion = "Suggestion:\n\n";
  13827. return suggestion + ("color.adjust($color, $" + channelName + ": " + A.SassNumber_SassNumber(adjustment, t1 ? null : "%").toString$0(0) + ")");
  13828. },
  13829. _missingChannelError(color, channel) {
  13830. return A.throwExpression(A.SassScriptException$(string$.Becaus + color.toString$0(0) + ").", channel));
  13831. },
  13832. _channelName(value) {
  13833. var t1 = value.assertString$1("channel");
  13834. t1.assertQuoted$1("channel");
  13835. return t1._string$_text;
  13836. },
  13837. _function5($name, $arguments, callback) {
  13838. return A.BuiltInCallable$function($name, $arguments, callback, "sass:color");
  13839. },
  13840. global_closure0: function global_closure0() {
  13841. },
  13842. global_closure1: function global_closure1() {
  13843. },
  13844. global_closure2: function global_closure2() {
  13845. },
  13846. global_closure3: function global_closure3() {
  13847. },
  13848. global_closure4: function global_closure4() {
  13849. },
  13850. global_closure5: function global_closure5() {
  13851. },
  13852. global_closure6: function global_closure6() {
  13853. },
  13854. global_closure7: function global_closure7() {
  13855. },
  13856. global_closure8: function global_closure8() {
  13857. },
  13858. global_closure9: function global_closure9() {
  13859. },
  13860. global_closure10: function global_closure10() {
  13861. },
  13862. global_closure11: function global_closure11() {
  13863. },
  13864. global_closure12: function global_closure12() {
  13865. },
  13866. global_closure13: function global_closure13() {
  13867. },
  13868. global_closure14: function global_closure14() {
  13869. },
  13870. global_closure15: function global_closure15() {
  13871. },
  13872. global_closure16: function global_closure16() {
  13873. },
  13874. global_closure17: function global_closure17() {
  13875. },
  13876. global_closure18: function global_closure18() {
  13877. },
  13878. global_closure19: function global_closure19() {
  13879. },
  13880. global_closure20: function global_closure20() {
  13881. },
  13882. global_closure21: function global_closure21() {
  13883. },
  13884. global_closure22: function global_closure22() {
  13885. },
  13886. global_closure23: function global_closure23() {
  13887. },
  13888. global_closure24: function global_closure24() {
  13889. },
  13890. global_closure25: function global_closure25() {
  13891. },
  13892. global_closure26: function global_closure26() {
  13893. },
  13894. global_closure27: function global_closure27() {
  13895. },
  13896. global_closure28: function global_closure28() {
  13897. },
  13898. global_closure29: function global_closure29() {
  13899. },
  13900. global_closure30: function global_closure30() {
  13901. },
  13902. global_closure31: function global_closure31() {
  13903. },
  13904. global_closure32: function global_closure32() {
  13905. },
  13906. global_closure33: function global_closure33() {
  13907. },
  13908. global_closure34: function global_closure34() {
  13909. },
  13910. global_closure35: function global_closure35() {
  13911. },
  13912. global__closure: function global__closure() {
  13913. },
  13914. global_closure36: function global_closure36() {
  13915. },
  13916. global_closure37: function global_closure37() {
  13917. },
  13918. global_closure38: function global_closure38() {
  13919. },
  13920. global_closure39: function global_closure39() {
  13921. },
  13922. global_closure40: function global_closure40() {
  13923. },
  13924. global_closure41: function global_closure41() {
  13925. },
  13926. global_closure42: function global_closure42() {
  13927. },
  13928. module_closure1: function module_closure1() {
  13929. },
  13930. module_closure2: function module_closure2() {
  13931. },
  13932. module_closure3: function module_closure3() {
  13933. },
  13934. module_closure4: function module_closure4() {
  13935. },
  13936. module_closure5: function module_closure5() {
  13937. },
  13938. module_closure6: function module_closure6() {
  13939. },
  13940. module_closure7: function module_closure7() {
  13941. },
  13942. module_closure8: function module_closure8() {
  13943. },
  13944. module_closure9: function module_closure9() {
  13945. },
  13946. module_closure10: function module_closure10() {
  13947. },
  13948. module_closure11: function module_closure11() {
  13949. },
  13950. module_closure12: function module_closure12() {
  13951. },
  13952. module_closure13: function module_closure13() {
  13953. },
  13954. module_closure14: function module_closure14() {
  13955. },
  13956. module__closure2: function module__closure2() {
  13957. },
  13958. module_closure15: function module_closure15() {
  13959. },
  13960. module_closure16: function module_closure16() {
  13961. },
  13962. module_closure17: function module_closure17() {
  13963. },
  13964. module_closure18: function module_closure18() {
  13965. },
  13966. module_closure19: function module_closure19() {
  13967. },
  13968. module_closure20: function module_closure20() {
  13969. },
  13970. module_closure21: function module_closure21() {
  13971. },
  13972. module_closure22: function module_closure22() {
  13973. },
  13974. module__closure1: function module__closure1(t0) {
  13975. this.channelName = t0;
  13976. },
  13977. module_closure23: function module_closure23() {
  13978. },
  13979. module_closure_toXyzNoMissing: function module_closure_toXyzNoMissing() {
  13980. },
  13981. module_closure24: function module_closure24() {
  13982. },
  13983. _mix_closure: function _mix_closure() {
  13984. },
  13985. _complement_closure: function _complement_closure() {
  13986. },
  13987. _adjust_closure: function _adjust_closure() {
  13988. },
  13989. _scale_closure: function _scale_closure() {
  13990. },
  13991. _change_closure: function _change_closure() {
  13992. },
  13993. _ieHexStr_closure: function _ieHexStr_closure() {
  13994. },
  13995. _ieHexStr_closure_hexString: function _ieHexStr_closure_hexString() {
  13996. },
  13997. _updateComponents_closure: function _updateComponents_closure(t0) {
  13998. this.originalColor = t0;
  13999. },
  14000. _updateComponents_closure0: function _updateComponents_closure0(t0) {
  14001. this._box_0 = t0;
  14002. },
  14003. _changeColor_closure: function _changeColor_closure(t0) {
  14004. this.alphaArg = t0;
  14005. },
  14006. _adjustColor_closure: function _adjustColor_closure() {
  14007. },
  14008. _functionString_closure: function _functionString_closure() {
  14009. },
  14010. _removedColorFunction_closure: function _removedColorFunction_closure(t0, t1, t2) {
  14011. this.name = t0;
  14012. this.argument = t1;
  14013. this.negative = t2;
  14014. },
  14015. _rgb_closure: function _rgb_closure() {
  14016. },
  14017. _hsl_closure: function _hsl_closure() {
  14018. },
  14019. _parseChannels_closure: function _parseChannels_closure() {
  14020. },
  14021. _parseChannels_closure0: function _parseChannels_closure0() {
  14022. },
  14023. _colorFromChannels_closure: function _colorFromChannels_closure() {
  14024. },
  14025. _colorFromChannels_closure0: function _colorFromChannels_closure0() {
  14026. },
  14027. _channelFromValue_closure: function _channelFromValue_closure(t0, t1) {
  14028. this.channel = t0;
  14029. this.clamp = t1;
  14030. },
  14031. _channelFunction_closure: function _channelFunction_closure(t0, t1, t2, t3, t4) {
  14032. var _ = this;
  14033. _.getter = t0;
  14034. _.unit = t1;
  14035. _.global = t2;
  14036. _.name = t3;
  14037. _.space = t4;
  14038. },
  14039. _suggestScaleAndAdjust_closure: function _suggestScaleAndAdjust_closure(t0) {
  14040. this.channelName = t0;
  14041. },
  14042. _function4($name, $arguments, callback) {
  14043. return A.BuiltInCallable$function($name, $arguments, callback, "sass:list");
  14044. },
  14045. _length_closure0: function _length_closure0() {
  14046. },
  14047. _nth_closure: function _nth_closure() {
  14048. },
  14049. _setNth_closure: function _setNth_closure() {
  14050. },
  14051. _join_closure: function _join_closure() {
  14052. },
  14053. _append_closure0: function _append_closure0() {
  14054. },
  14055. _zip_closure: function _zip_closure() {
  14056. },
  14057. _zip__closure: function _zip__closure() {
  14058. },
  14059. _zip__closure0: function _zip__closure0(t0) {
  14060. this._box_0 = t0;
  14061. },
  14062. _zip__closure1: function _zip__closure1(t0) {
  14063. this._box_0 = t0;
  14064. },
  14065. _index_closure0: function _index_closure0() {
  14066. },
  14067. _separator_closure: function _separator_closure() {
  14068. },
  14069. _isBracketed_closure: function _isBracketed_closure() {
  14070. },
  14071. _slash_closure: function _slash_closure() {
  14072. },
  14073. _modify(map, keys, modify, addNesting) {
  14074. var keyIterator = J.get$iterator$ax(keys);
  14075. return keyIterator.moveNext$0() ? new A._modify_modifyNestedMap(keyIterator, modify, addNesting).call$1(map) : modify.call$1(map);
  14076. },
  14077. _deepMergeImpl(map1, map2) {
  14078. var t2, t3, result, t4, key, value, _1_1, _1_3, _1_3_isSet, _1_30, resultMap, valueMap, merged,
  14079. t1 = map1._map$_contents;
  14080. if (t1.get$isEmpty(t1))
  14081. return map2;
  14082. t2 = map2._map$_contents;
  14083. if (t2.get$isEmpty(t2))
  14084. return map1;
  14085. t3 = type$.Value;
  14086. result = A.LinkedHashMap_LinkedHashMap$of(t1, t3, t3);
  14087. for (t1 = A.MapExtensions_get_pairs(t2, t3, t3), t1 = t1.get$iterator(t1), t2 = type$.SassMap; t1.moveNext$0();) {
  14088. t4 = t1.get$current(t1);
  14089. key = t4._0;
  14090. value = t4._1;
  14091. t4 = result.$index(0, key);
  14092. _1_1 = t4 == null ? null : t4.tryMap$0();
  14093. _1_3 = value.tryMap$0();
  14094. _1_3_isSet = _1_1 != null;
  14095. _1_30 = null;
  14096. t4 = false;
  14097. if (_1_3_isSet) {
  14098. resultMap = _1_1 == null ? t2._as(_1_1) : _1_1;
  14099. t4 = _1_3 != null;
  14100. _1_30 = _1_3;
  14101. } else
  14102. resultMap = null;
  14103. if (t4) {
  14104. valueMap = _1_3_isSet ? _1_30 : _1_3;
  14105. merged = A._deepMergeImpl(resultMap, valueMap == null ? t2._as(valueMap) : valueMap);
  14106. if (merged === resultMap)
  14107. continue;
  14108. result.$indexSet(0, key, merged);
  14109. } else
  14110. result.$indexSet(0, key, value);
  14111. }
  14112. return new A.SassMap(A.ConstantMap_ConstantMap$from(result, t3, t3));
  14113. },
  14114. _function3($name, $arguments, callback) {
  14115. return A.BuiltInCallable$function($name, $arguments, callback, "sass:map");
  14116. },
  14117. _get_closure: function _get_closure() {
  14118. },
  14119. _set_closure: function _set_closure() {
  14120. },
  14121. _set__closure0: function _set__closure0(t0) {
  14122. this.$arguments = t0;
  14123. },
  14124. _set_closure0: function _set_closure0() {
  14125. },
  14126. _set__closure: function _set__closure(t0) {
  14127. this._box_0 = t0;
  14128. },
  14129. _merge_closure: function _merge_closure() {
  14130. },
  14131. _merge_closure0: function _merge_closure0() {
  14132. },
  14133. _merge__closure: function _merge__closure(t0) {
  14134. this.map2 = t0;
  14135. },
  14136. _deepMerge_closure: function _deepMerge_closure() {
  14137. },
  14138. _deepRemove_closure: function _deepRemove_closure() {
  14139. },
  14140. _deepRemove__closure: function _deepRemove__closure(t0) {
  14141. this.keys = t0;
  14142. },
  14143. _remove_closure: function _remove_closure() {
  14144. },
  14145. _remove_closure0: function _remove_closure0() {
  14146. },
  14147. _keys_closure: function _keys_closure() {
  14148. },
  14149. _values_closure: function _values_closure() {
  14150. },
  14151. _hasKey_closure: function _hasKey_closure() {
  14152. },
  14153. _modify_modifyNestedMap: function _modify_modifyNestedMap(t0, t1, t2) {
  14154. this.keyIterator = t0;
  14155. this.modify = t1;
  14156. this.addNesting = t2;
  14157. },
  14158. _singleArgumentMathFunc($name, mathFunc) {
  14159. return A.BuiltInCallable$function($name, "$number", new A._singleArgumentMathFunc_closure(mathFunc), "sass:math");
  14160. },
  14161. _numberFunction($name, transform) {
  14162. return A.BuiltInCallable$function($name, "$number", new A._numberFunction_closure(transform), "sass:math");
  14163. },
  14164. _function2($name, $arguments, callback) {
  14165. return A.BuiltInCallable$function($name, $arguments, callback, "sass:math");
  14166. },
  14167. global_closure: function global_closure() {
  14168. },
  14169. module_closure0: function module_closure0() {
  14170. },
  14171. _ceil_closure: function _ceil_closure() {
  14172. },
  14173. _clamp_closure: function _clamp_closure() {
  14174. },
  14175. _floor_closure: function _floor_closure() {
  14176. },
  14177. _max_closure: function _max_closure() {
  14178. },
  14179. _min_closure: function _min_closure() {
  14180. },
  14181. _round_closure: function _round_closure() {
  14182. },
  14183. _hypot_closure: function _hypot_closure() {
  14184. },
  14185. _hypot__closure: function _hypot__closure() {
  14186. },
  14187. _log_closure: function _log_closure() {
  14188. },
  14189. _pow_closure: function _pow_closure() {
  14190. },
  14191. _atan2_closure: function _atan2_closure() {
  14192. },
  14193. _compatible_closure: function _compatible_closure() {
  14194. },
  14195. _isUnitless_closure: function _isUnitless_closure() {
  14196. },
  14197. _unit_closure: function _unit_closure() {
  14198. },
  14199. _percentage_closure: function _percentage_closure() {
  14200. },
  14201. _randomFunction_closure: function _randomFunction_closure() {
  14202. },
  14203. _div_closure: function _div_closure() {
  14204. },
  14205. _singleArgumentMathFunc_closure: function _singleArgumentMathFunc_closure(t0) {
  14206. this.mathFunc = t0;
  14207. },
  14208. _numberFunction_closure: function _numberFunction_closure(t0) {
  14209. this.transform = t0;
  14210. },
  14211. _function($name, $arguments, callback) {
  14212. return A.BuiltInCallable$function($name, $arguments, callback, "sass:meta");
  14213. },
  14214. _shared_closure: function _shared_closure() {
  14215. },
  14216. _shared_closure0: function _shared_closure0() {
  14217. },
  14218. _shared_closure1: function _shared_closure1() {
  14219. },
  14220. _shared_closure2: function _shared_closure2() {
  14221. },
  14222. moduleFunctions_closure: function moduleFunctions_closure() {
  14223. },
  14224. moduleFunctions_closure0: function moduleFunctions_closure0() {
  14225. },
  14226. moduleFunctions__closure: function moduleFunctions__closure() {
  14227. },
  14228. moduleFunctions_closure1: function moduleFunctions_closure1() {
  14229. },
  14230. _prependParent(compound) {
  14231. var _0_3, _0_4, _0_40, t2, _0_4_isSet, t3, rest, _null = null,
  14232. t1 = A.EvaluationContext_currentOrNull(),
  14233. span = (t1 == null ? A.throwExpression(A.StateError$(string$.No_Sass)) : t1).get$currentCallableSpan(),
  14234. _0_0 = compound.components;
  14235. $label0$0: {
  14236. _0_3 = _0_0.length >= 1;
  14237. _0_4 = _null;
  14238. if (_0_3) {
  14239. _0_40 = _0_0[0];
  14240. t1 = _0_40;
  14241. _0_4 = t1;
  14242. t1 = t1 instanceof A.UniversalSelector;
  14243. } else
  14244. t1 = false;
  14245. t2 = _null;
  14246. if (t1) {
  14247. t1 = t2;
  14248. break $label0$0;
  14249. }
  14250. t1 = false;
  14251. if (_0_3) {
  14252. _0_4_isSet = true;
  14253. t3 = _0_4;
  14254. if (t3 instanceof A.TypeSelector) {
  14255. t1 = _0_4;
  14256. t1 = type$.TypeSelector._as(t1).name.namespace != null;
  14257. }
  14258. } else
  14259. _0_4_isSet = _0_3;
  14260. if (t1) {
  14261. t1 = t2;
  14262. break $label0$0;
  14263. }
  14264. if (_0_3) {
  14265. if (_0_4_isSet)
  14266. t1 = _0_4;
  14267. else {
  14268. _0_4 = _0_0[0];
  14269. t1 = _0_4;
  14270. _0_4_isSet = true;
  14271. }
  14272. t1 = t1 instanceof A.TypeSelector;
  14273. } else
  14274. t1 = false;
  14275. if (t1) {
  14276. t1 = _0_4_isSet ? _0_4 : _0_0[0];
  14277. type$.TypeSelector._as(t1);
  14278. rest = B.JSArray_methods.sublist$1(_0_0, 1);
  14279. t1 = A._setArrayType([new A.ParentSelector(t1.name.name, span)], type$.JSArray_SimpleSelector);
  14280. B.JSArray_methods.addAll$1(t1, rest);
  14281. t1 = A.CompoundSelector$(t1, span);
  14282. break $label0$0;
  14283. }
  14284. t1 = A._setArrayType([new A.ParentSelector(_null, span)], type$.JSArray_SimpleSelector);
  14285. B.JSArray_methods.addAll$1(t1, _0_0);
  14286. t1 = A.CompoundSelector$(t1, span);
  14287. break $label0$0;
  14288. }
  14289. return t1;
  14290. },
  14291. _function1($name, $arguments, callback) {
  14292. return A.BuiltInCallable$function($name, $arguments, callback, "sass:selector");
  14293. },
  14294. _nest_closure: function _nest_closure() {
  14295. },
  14296. _nest__closure: function _nest__closure(t0) {
  14297. this._box_0 = t0;
  14298. },
  14299. _nest__closure0: function _nest__closure0() {
  14300. },
  14301. _append_closure: function _append_closure() {
  14302. },
  14303. _append__closure: function _append__closure() {
  14304. },
  14305. _append__closure0: function _append__closure0(t0) {
  14306. this.span = t0;
  14307. },
  14308. _append___closure: function _append___closure(t0, t1) {
  14309. this.parent = t0;
  14310. this.span = t1;
  14311. },
  14312. _extend_closure: function _extend_closure() {
  14313. },
  14314. _replace_closure: function _replace_closure() {
  14315. },
  14316. _unify_closure: function _unify_closure() {
  14317. },
  14318. _isSuperselector_closure: function _isSuperselector_closure() {
  14319. },
  14320. _simpleSelectors_closure: function _simpleSelectors_closure() {
  14321. },
  14322. _simpleSelectors__closure: function _simpleSelectors__closure() {
  14323. },
  14324. _parse_closure: function _parse_closure() {
  14325. },
  14326. _codepointForIndex(index, lengthInCodepoints, allowNegative) {
  14327. var result;
  14328. if (index === 0)
  14329. return 0;
  14330. if (index > 0)
  14331. return Math.min(index - 1, lengthInCodepoints);
  14332. result = lengthInCodepoints + index;
  14333. if (result < 0 && !allowNegative)
  14334. return 0;
  14335. return result;
  14336. },
  14337. _function0($name, $arguments, callback) {
  14338. return A.BuiltInCallable$function($name, $arguments, callback, "sass:string");
  14339. },
  14340. module_closure: function module_closure() {
  14341. },
  14342. module__closure: function module__closure(t0) {
  14343. this.string = t0;
  14344. },
  14345. module__closure0: function module__closure0(t0) {
  14346. this.string = t0;
  14347. },
  14348. _unquote_closure: function _unquote_closure() {
  14349. },
  14350. _quote_closure: function _quote_closure() {
  14351. },
  14352. _length_closure: function _length_closure() {
  14353. },
  14354. _insert_closure: function _insert_closure() {
  14355. },
  14356. _index_closure: function _index_closure() {
  14357. },
  14358. _slice_closure: function _slice_closure() {
  14359. },
  14360. _toUpperCase_closure: function _toUpperCase_closure() {
  14361. },
  14362. _toLowerCase_closure: function _toLowerCase_closure() {
  14363. },
  14364. _uniqueId_closure: function _uniqueId_closure() {
  14365. },
  14366. ImportCache$(importers, loadPaths) {
  14367. var t1 = type$.nullable_Record_3_Importer_and_Uri_and_Uri_originalUrl,
  14368. t2 = type$.Record_3_Importer_and_Uri_and_bool_forImport,
  14369. t3 = type$.Uri;
  14370. return new A.ImportCache(A.ImportCache__toImporters(importers, loadPaths, null), A.LinkedHashMap_LinkedHashMap$_empty(type$.Record_2_Uri_and_bool_forImport, t1), A.LinkedHashMap_LinkedHashMap$_empty(t2, t1), A.LinkedHashMap_LinkedHashMap$_empty(t2, t3), A.LinkedHashMap_LinkedHashMap$_empty(t3, type$.nullable_Stylesheet), A.LinkedHashMap_LinkedHashMap$_empty(t3, type$.ImporterResult));
  14371. },
  14372. ImportCache__toImporters(importers, loadPaths, packageConfig) {
  14373. var t1, t2, t3, t4, _i, path, _null = null,
  14374. sassPath = A.getEnvironmentVariable("SASS_PATH");
  14375. if (A.isBrowser()) {
  14376. t1 = A._setArrayType([], type$.JSArray_Importer);
  14377. B.JSArray_methods.addAll$1(t1, importers);
  14378. return t1;
  14379. }
  14380. t1 = A._setArrayType([], type$.JSArray_Importer);
  14381. B.JSArray_methods.addAll$1(t1, importers);
  14382. for (t2 = J.get$iterator$ax(loadPaths); t2.moveNext$0();) {
  14383. t3 = t2.get$current(t2);
  14384. t1.push(new A.FilesystemImporter($.$get$context().absolute$15(t3, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null), false));
  14385. }
  14386. if (sassPath != null) {
  14387. t2 = A.isNodeJs() ? self.process : _null;
  14388. t3 = sassPath.split(J.$eq$(t2 == null ? _null : J.get$platform$x(t2), "win32") ? ";" : ":");
  14389. t4 = t3.length;
  14390. _i = 0;
  14391. for (; _i < t4; ++_i) {
  14392. path = t3[_i];
  14393. t1.push(new A.FilesystemImporter($.$get$context().absolute$15(path, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null), false));
  14394. }
  14395. }
  14396. return t1;
  14397. },
  14398. ImportCache: function ImportCache(t0, t1, t2, t3, t4, t5) {
  14399. var _ = this;
  14400. _._importers = t0;
  14401. _._canonicalizeCache = t1;
  14402. _._perImporterCanonicalizeCache = t2;
  14403. _._nonCanonicalRelativeUrls = t3;
  14404. _._importCache = t4;
  14405. _._resultsCache = t5;
  14406. },
  14407. ImportCache_canonicalize_closure: function ImportCache_canonicalize_closure(t0, t1, t2, t3, t4, t5, t6) {
  14408. var _ = this;
  14409. _.$this = t0;
  14410. _.baseImporter = t1;
  14411. _.resolvedUrl = t2;
  14412. _.baseUrl = t3;
  14413. _.forImport = t4;
  14414. _.key = t5;
  14415. _.url = t6;
  14416. },
  14417. ImportCache__canonicalize_closure: function ImportCache__canonicalize_closure(t0, t1) {
  14418. this.importer = t0;
  14419. this.url = t1;
  14420. },
  14421. ImportCache_importCanonical_closure: function ImportCache_importCanonical_closure(t0, t1, t2, t3) {
  14422. var _ = this;
  14423. _.$this = t0;
  14424. _.importer = t1;
  14425. _.canonicalUrl = t2;
  14426. _.originalUrl = t3;
  14427. },
  14428. ImportCache_humanize_closure: function ImportCache_humanize_closure(t0) {
  14429. this.canonicalUrl = t0;
  14430. },
  14431. ImportCache_humanize_closure0: function ImportCache_humanize_closure0() {
  14432. },
  14433. ImportCache_humanize_closure1: function ImportCache_humanize_closure1() {
  14434. },
  14435. ImportCache_humanize_closure2: function ImportCache_humanize_closure2(t0) {
  14436. this.canonicalUrl = t0;
  14437. },
  14438. ImportCache_clearCanonicalize_closure: function ImportCache_clearCanonicalize_closure(t0, t1) {
  14439. this.$this = t0;
  14440. this.url = t1;
  14441. },
  14442. Importer: function Importer() {
  14443. },
  14444. AsyncImporter: function AsyncImporter() {
  14445. },
  14446. CanonicalizeContext: function CanonicalizeContext(t0, t1) {
  14447. this._fromImport = t0;
  14448. this._containingUrl = t1;
  14449. this._wasContainingUrlAccessed = false;
  14450. },
  14451. FilesystemImporter: function FilesystemImporter(t0, t1) {
  14452. this._loadPath = t0;
  14453. this._loadPathDeprecated = t1;
  14454. },
  14455. FilesystemImporter_canonicalize_closure: function FilesystemImporter_canonicalize_closure() {
  14456. },
  14457. NoOpImporter: function NoOpImporter() {
  14458. },
  14459. NodePackageImporter: function NodePackageImporter() {
  14460. this.__NodePackageImporter__entryPointDirectory_F = $;
  14461. },
  14462. NodePackageImporter__nodePackageExportsResolve_closure: function NodePackageImporter__nodePackageExportsResolve_closure() {
  14463. },
  14464. NodePackageImporter__nodePackageExportsResolve_closure0: function NodePackageImporter__nodePackageExportsResolve_closure0() {
  14465. },
  14466. NodePackageImporter__nodePackageExportsResolve_closure1: function NodePackageImporter__nodePackageExportsResolve_closure1() {
  14467. },
  14468. NodePackageImporter__nodePackageExportsResolve_closure2: function NodePackageImporter__nodePackageExportsResolve_closure2(t0, t1, t2) {
  14469. this.$this = t0;
  14470. this.exports = t1;
  14471. this.packageRoot = t2;
  14472. },
  14473. NodePackageImporter__nodePackageExportsResolve__closure: function NodePackageImporter__nodePackageExportsResolve__closure(t0, t1, t2) {
  14474. this.$this = t0;
  14475. this.variant = t1;
  14476. this.packageRoot = t2;
  14477. },
  14478. NodePackageImporter__nodePackageExportsResolve__closure0: function NodePackageImporter__nodePackageExportsResolve__closure0() {
  14479. },
  14480. NodePackageImporter__getMainExport_closure: function NodePackageImporter__getMainExport_closure() {
  14481. },
  14482. ImporterResult: function ImporterResult(t0, t1, t2) {
  14483. this.contents = t0;
  14484. this._sourceMapUrl = t1;
  14485. this.syntax = t2;
  14486. },
  14487. fromImport() {
  14488. var t1 = type$.nullable_CanonicalizeContext._as($.Zone__current.$index(0, B.Symbol__canonicalizeContext));
  14489. t1 = t1 == null ? null : t1._fromImport;
  14490. return t1 === true;
  14491. },
  14492. canonicalizeContext() {
  14493. var t1,
  14494. _0_0 = $.Zone__current.$index(0, B.Symbol__canonicalizeContext);
  14495. $label0$0: {
  14496. if (_0_0 == null)
  14497. A.throwExpression(A.StateError$(string$.canoni));
  14498. if (_0_0 instanceof A.CanonicalizeContext) {
  14499. t1 = _0_0;
  14500. break $label0$0;
  14501. }
  14502. t1 = A.throwExpression(A.StateError$(string$.Unexpe + A.S(_0_0) + "."));
  14503. }
  14504. return t1;
  14505. },
  14506. resolveImportPath(path) {
  14507. var t1,
  14508. extension = A.ParsedPath_ParsedPath$parse(path, $.$get$context().style)._splitExtension$1(1)[1];
  14509. if (extension === ".sass" || extension === ".scss" || extension === ".css") {
  14510. t1 = A.fromImport() ? new A.resolveImportPath_closure(path, extension).call$0() : null;
  14511. return t1 == null ? A._exactlyOne(A._tryPath(path)) : t1;
  14512. }
  14513. t1 = A.fromImport() ? new A.resolveImportPath_closure0(path).call$0() : null;
  14514. if (t1 == null)
  14515. t1 = A._exactlyOne(A._tryPathWithExtensions(path));
  14516. return t1 == null ? A._tryPathAsDirectory(path) : t1;
  14517. },
  14518. _tryPathWithExtensions(path) {
  14519. var result = A._tryPath(path + ".sass");
  14520. B.JSArray_methods.addAll$1(result, A._tryPath(path + ".scss"));
  14521. return result.length !== 0 ? result : A._tryPath(path + ".css");
  14522. },
  14523. _tryPath(path) {
  14524. var t1 = $.$get$context(),
  14525. partial = A.join(t1.dirname$1(path), "_" + A.ParsedPath_ParsedPath$parse(path, t1.style).get$basename(), null);
  14526. t1 = A._setArrayType([], type$.JSArray_String);
  14527. if (A.fileExists(partial))
  14528. t1.push(partial);
  14529. if (A.fileExists(path))
  14530. t1.push(path);
  14531. return t1;
  14532. },
  14533. _tryPathAsDirectory(path) {
  14534. var t1;
  14535. if (!A.dirExists(path))
  14536. return null;
  14537. t1 = A.fromImport() ? new A._tryPathAsDirectory_closure(path).call$0() : null;
  14538. return t1 == null ? A._exactlyOne(A._tryPathWithExtensions(A.join(path, "index", null))) : t1;
  14539. },
  14540. _exactlyOne(paths) {
  14541. var _0_1, t1, path;
  14542. $label0$0: {
  14543. _0_1 = paths.length;
  14544. if (_0_1 <= 0) {
  14545. t1 = null;
  14546. break $label0$0;
  14547. }
  14548. if (_0_1 === 1) {
  14549. path = paths[0];
  14550. t1 = path;
  14551. break $label0$0;
  14552. }
  14553. t1 = A.throwExpression(string$.It_s_n + B.JSArray_methods.map$1$1(paths, new A._exactlyOne_closure(), type$.String).join$1(0, "\n"));
  14554. }
  14555. return t1;
  14556. },
  14557. resolveImportPath_closure: function resolveImportPath_closure(t0, t1) {
  14558. this.path = t0;
  14559. this.extension = t1;
  14560. },
  14561. resolveImportPath_closure0: function resolveImportPath_closure0(t0) {
  14562. this.path = t0;
  14563. },
  14564. _tryPathAsDirectory_closure: function _tryPathAsDirectory_closure(t0) {
  14565. this.path = t0;
  14566. },
  14567. _exactlyOne_closure: function _exactlyOne_closure() {
  14568. },
  14569. InterpolationBuffer: function InterpolationBuffer(t0, t1, t2) {
  14570. this._interpolation_buffer$_text = t0;
  14571. this._interpolation_buffer$_contents = t1;
  14572. this._spans = t2;
  14573. },
  14574. InterpolationMap$(_interpolation, targetLocations) {
  14575. var t1 = A.List_List$unmodifiable(targetLocations, type$.SourceLocation),
  14576. t2 = _interpolation.contents.length,
  14577. expectedLocations = Math.max(0, t2 - 1);
  14578. if (t1.length !== expectedLocations)
  14579. A.throwExpression(A.ArgumentError$("InterpolationMap must have " + A.S(expectedLocations) + string$.x20targe + t2 + " components.", null));
  14580. return new A.InterpolationMap(_interpolation, t1);
  14581. },
  14582. InterpolationMap: function InterpolationMap(t0, t1) {
  14583. this._interpolation = t0;
  14584. this._targetLocations = t1;
  14585. },
  14586. InterpolationMap_mapException_closure: function InterpolationMap_mapException_closure() {
  14587. },
  14588. _realCasePath(path) {
  14589. var prefix, _null = null,
  14590. t1 = A.isNodeJs() ? self.process : _null;
  14591. if (!J.$eq$(t1 == null ? _null : J.get$platform$x(t1), "win32")) {
  14592. t1 = A.isNodeJs() ? self.process : _null;
  14593. t1 = J.$eq$(t1 == null ? _null : J.get$platform$x(t1), "darwin");
  14594. } else
  14595. t1 = true;
  14596. if (!t1)
  14597. return path;
  14598. t1 = A.isNodeJs() ? self.process : _null;
  14599. if (J.$eq$(t1 == null ? _null : J.get$platform$x(t1), "win32")) {
  14600. prefix = B.JSString_methods.substring$2(path, 0, $.$get$context().style.rootLength$1(path));
  14601. t1 = prefix.length;
  14602. if (t1 !== 0 && A.CharacterExtension_get_isAlphabetic(prefix.charCodeAt(0)))
  14603. path = prefix.toUpperCase() + B.JSString_methods.substring$1(path, t1);
  14604. }
  14605. return new A._realCasePath_helper().call$1(path);
  14606. },
  14607. _realCasePath_helper: function _realCasePath_helper() {
  14608. },
  14609. _realCasePath_helper_closure: function _realCasePath_helper_closure(t0, t1, t2) {
  14610. this.helper = t0;
  14611. this.dirname = t1;
  14612. this.path = t2;
  14613. },
  14614. _realCasePath_helper__closure: function _realCasePath_helper__closure(t0) {
  14615. this.basename = t0;
  14616. },
  14617. printError(message) {
  14618. var t1 = A.isNodeJs() ? self.process : null;
  14619. if (t1 != null) {
  14620. t1 = J.get$stderr$x(t1);
  14621. J.write$1$x(t1, A.S(message == null ? "" : message) + "\n");
  14622. } else {
  14623. t1 = self.console;
  14624. J.error$1$x(t1, message == null ? "" : message);
  14625. }
  14626. },
  14627. readFile(path) {
  14628. var contents, sourceFile, t1, i;
  14629. if (!A.isNodeJs())
  14630. throw A.wrapException(A.UnsupportedError$("readFile() is only supported on Node.js"));
  14631. contents = A._asString(A._readFile(path, "utf8"));
  14632. if (!B.JSString_methods.contains$1(contents, "\ufffd"))
  14633. return contents;
  14634. sourceFile = A.SourceFile$fromString(contents, $.$get$context().toUri$1(path));
  14635. for (t1 = contents.length, i = 0; i < t1; ++i) {
  14636. if (contents.charCodeAt(i) !== 65533)
  14637. continue;
  14638. throw A.wrapException(A.SassException$("Invalid UTF-8.", A.FileLocation$_(sourceFile, i).pointSpan$0(), null));
  14639. }
  14640. return contents;
  14641. },
  14642. _readFile(path, encoding) {
  14643. return A._systemErrorToFileSystemException(new A._readFile_closure(path, encoding));
  14644. },
  14645. writeFile(path, contents) {
  14646. if (!A.isNodeJs())
  14647. throw A.wrapException(A.UnsupportedError$("writeFile() is only supported on Node.js"));
  14648. return A._systemErrorToFileSystemException(new A.writeFile_closure(path, contents));
  14649. },
  14650. deleteFile(path) {
  14651. if (!A.isNodeJs())
  14652. throw A.wrapException(A.UnsupportedError$("deleteFile() is only supported on Node.js"));
  14653. return A._systemErrorToFileSystemException(new A.deleteFile_closure(path));
  14654. },
  14655. readStdin() {
  14656. return A.readStdin$body();
  14657. },
  14658. readStdin$body() {
  14659. var $async$goto = 0,
  14660. $async$completer = A._makeAsyncAwaitCompleter(type$.String),
  14661. $async$returnValue, t3, completer, sink, t1, t2;
  14662. var $async$readStdin = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  14663. if ($async$errorCode === 1)
  14664. return A._asyncRethrow($async$result, $async$completer);
  14665. while (true)
  14666. switch ($async$goto) {
  14667. case 0:
  14668. // Function start
  14669. t1 = {};
  14670. t2 = A.isNodeJs() ? self.process : null;
  14671. if (t2 == null)
  14672. throw A.wrapException(A.UnsupportedError$("readStdin() is only supported on Node.js"));
  14673. t3 = new A._Future($.Zone__current, type$._Future_String);
  14674. completer = new A._AsyncCompleter(t3, type$._AsyncCompleter_String);
  14675. t1.contents = null;
  14676. sink = new A._StringCallbackSink(new A.readStdin_closure(t1, completer), new A.StringBuffer("")).asUtf8Sink$1(false);
  14677. t1 = J.getInterceptor$x(t2);
  14678. J.on$2$x(t1.get$stdin(t2), "data", A.allowInterop(new A.readStdin_closure0(sink)));
  14679. J.on$2$x(t1.get$stdin(t2), "end", A.allowInterop(new A.readStdin_closure1(sink)));
  14680. J.on$2$x(t1.get$stdin(t2), "error", A.allowInterop(new A.readStdin_closure2(completer)));
  14681. $async$returnValue = t3;
  14682. // goto return
  14683. $async$goto = 1;
  14684. break;
  14685. case 1:
  14686. // return
  14687. return A._asyncReturn($async$returnValue, $async$completer);
  14688. }
  14689. });
  14690. return A._asyncStartSync($async$readStdin, $async$completer);
  14691. },
  14692. fileExists(path) {
  14693. if (!A.isNodeJs())
  14694. throw A.wrapException(A.UnsupportedError$(string$.fileEx));
  14695. return A._systemErrorToFileSystemException(new A.fileExists_closure(path));
  14696. },
  14697. dirExists(path) {
  14698. if (!A.isNodeJs())
  14699. throw A.wrapException(A.UnsupportedError$("dirExists() is only supported on Node.js"));
  14700. return A._systemErrorToFileSystemException(new A.dirExists_closure(path));
  14701. },
  14702. ensureDir(path) {
  14703. if (!A.isNodeJs())
  14704. throw A.wrapException(A.UnsupportedError$("ensureDir() is only supported on Node.js"));
  14705. return A._systemErrorToFileSystemException(new A.ensureDir_closure(path));
  14706. },
  14707. listDir(path, recursive) {
  14708. if (!A.isNodeJs())
  14709. throw A.wrapException(A.UnsupportedError$("listDir() is only supported on Node.js"));
  14710. return A._systemErrorToFileSystemException(new A.listDir_closure(recursive, path));
  14711. },
  14712. modificationTime(path) {
  14713. if (!A.isNodeJs())
  14714. throw A.wrapException(A.UnsupportedError$("modificationTime() is only supported on Node.js"));
  14715. return A._systemErrorToFileSystemException(new A.modificationTime_closure(path));
  14716. },
  14717. getEnvironmentVariable($name) {
  14718. var t1 = A.isNodeJs() ? self.process : null,
  14719. env = t1 == null ? null : J.get$env$x(t1);
  14720. if (env == null)
  14721. t1 = null;
  14722. else
  14723. t1 = A._asStringQ(env[$name]);
  14724. return t1;
  14725. },
  14726. _systemErrorToFileSystemException(callback) {
  14727. var error, t1, exception, t2;
  14728. try {
  14729. t1 = callback.call$0();
  14730. return t1;
  14731. } catch (exception) {
  14732. error = A.unwrapException(exception);
  14733. if (!type$.JsSystemError._is(error))
  14734. throw exception;
  14735. t1 = error;
  14736. t2 = J.getInterceptor$x(t1);
  14737. throw A.wrapException(new A.FileSystemException(J.substring$2$s(t2.get$message(t1), (A.S(t2.get$code(t1)) + ": ").length, J.get$length$asx(t2.get$message(t1)) - (", " + A.S(t2.get$syscall(t1)) + " '" + A.S(t2.get$path(t1)) + "'").length), J.get$path$x(error)));
  14738. }
  14739. },
  14740. hasTerminal() {
  14741. var t1 = A.isNodeJs() ? self.process : null;
  14742. return J.$eq$(t1 == null ? null : J.get$isTTY$x(J.get$stdout$x(t1)), true);
  14743. },
  14744. isWindows() {
  14745. var t1 = A.isNodeJs() ? self.process : null;
  14746. return J.$eq$(t1 == null ? null : J.get$platform$x(t1), "win32");
  14747. },
  14748. watchDir(path, poll) {
  14749. return A.watchDir$body(path, poll);
  14750. },
  14751. watchDir$body(path, poll) {
  14752. var $async$goto = 0,
  14753. $async$completer = A._makeAsyncAwaitCompleter(type$.Stream_WatchEvent),
  14754. $async$returnValue, watcher, t2, t3, controller, t1, $async$temp1, $async$temp2, $async$temp3;
  14755. var $async$watchDir = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  14756. if ($async$errorCode === 1)
  14757. return A._asyncRethrow($async$result, $async$completer);
  14758. while (true)
  14759. switch ($async$goto) {
  14760. case 0:
  14761. // Function start
  14762. t1 = {};
  14763. if (!A.isNodeJs())
  14764. throw A.wrapException(A.UnsupportedError$("watchDir() is only supported on Node.js"));
  14765. t1.controller = null;
  14766. $async$goto = poll ? 3 : 5;
  14767. break;
  14768. case 3:
  14769. // then
  14770. watcher = J.watch$2$x(self.chokidar, path, {usePolling: true});
  14771. t2 = J.getInterceptor$x(watcher);
  14772. t2.on$2(watcher, "add", A.allowInterop(new A.watchDir_closure(t1)));
  14773. t2.on$2(watcher, "change", A.allowInterop(new A.watchDir_closure0(t1)));
  14774. t2.on$2(watcher, "unlink", A.allowInterop(new A.watchDir_closure1(t1)));
  14775. t2.on$2(watcher, "error", A.allowInterop(new A.watchDir_closure2(t1)));
  14776. t3 = new A._Future($.Zone__current, type$._Future_Stream_WatchEvent);
  14777. t2.on$2(watcher, "ready", A.allowInterop(new A.watchDir_closure3(t1, watcher, new A._AsyncCompleter(t3, type$._AsyncCompleter_Stream_WatchEvent))));
  14778. $async$returnValue = t3;
  14779. // goto return
  14780. $async$goto = 1;
  14781. break;
  14782. // goto join
  14783. $async$goto = 4;
  14784. break;
  14785. case 5:
  14786. // else
  14787. $async$temp1 = t1;
  14788. $async$temp2 = A;
  14789. $async$temp3 = A;
  14790. $async$goto = 6;
  14791. return A._asyncAwait(A.ParcelWatcher_subscribeFuture(path, new A.watchDir_closure5(t1)), $async$watchDir);
  14792. case 6:
  14793. // returning from await.
  14794. controller = $async$temp1.controller = $async$temp2.StreamController_StreamController(new $async$temp3.watchDir_closure4($async$result), null, null, null, false, type$.WatchEvent);
  14795. $async$returnValue = new A._ControllerStream(controller, A._instanceType(controller)._eval$1("_ControllerStream<1>"));
  14796. // goto return
  14797. $async$goto = 1;
  14798. break;
  14799. case 4:
  14800. // join
  14801. case 1:
  14802. // return
  14803. return A._asyncReturn($async$returnValue, $async$completer);
  14804. }
  14805. });
  14806. return A._asyncStartSync($async$watchDir, $async$completer);
  14807. },
  14808. FileSystemException: function FileSystemException(t0, t1) {
  14809. this.message = t0;
  14810. this.path = t1;
  14811. },
  14812. _readFile_closure: function _readFile_closure(t0, t1) {
  14813. this.path = t0;
  14814. this.encoding = t1;
  14815. },
  14816. writeFile_closure: function writeFile_closure(t0, t1) {
  14817. this.path = t0;
  14818. this.contents = t1;
  14819. },
  14820. deleteFile_closure: function deleteFile_closure(t0) {
  14821. this.path = t0;
  14822. },
  14823. readStdin_closure: function readStdin_closure(t0, t1) {
  14824. this._box_0 = t0;
  14825. this.completer = t1;
  14826. },
  14827. readStdin_closure0: function readStdin_closure0(t0) {
  14828. this.sink = t0;
  14829. },
  14830. readStdin_closure1: function readStdin_closure1(t0) {
  14831. this.sink = t0;
  14832. },
  14833. readStdin_closure2: function readStdin_closure2(t0) {
  14834. this.completer = t0;
  14835. },
  14836. fileExists_closure: function fileExists_closure(t0) {
  14837. this.path = t0;
  14838. },
  14839. dirExists_closure: function dirExists_closure(t0) {
  14840. this.path = t0;
  14841. },
  14842. ensureDir_closure: function ensureDir_closure(t0) {
  14843. this.path = t0;
  14844. },
  14845. listDir_closure: function listDir_closure(t0, t1) {
  14846. this.recursive = t0;
  14847. this.path = t1;
  14848. },
  14849. listDir__closure: function listDir__closure(t0) {
  14850. this.path = t0;
  14851. },
  14852. listDir__closure0: function listDir__closure0() {
  14853. },
  14854. listDir_closure_list: function listDir_closure_list() {
  14855. },
  14856. listDir__list_closure: function listDir__list_closure(t0, t1) {
  14857. this.parent = t0;
  14858. this.list = t1;
  14859. },
  14860. modificationTime_closure: function modificationTime_closure(t0) {
  14861. this.path = t0;
  14862. },
  14863. watchDir_closure: function watchDir_closure(t0) {
  14864. this._box_0 = t0;
  14865. },
  14866. watchDir_closure0: function watchDir_closure0(t0) {
  14867. this._box_0 = t0;
  14868. },
  14869. watchDir_closure1: function watchDir_closure1(t0) {
  14870. this._box_0 = t0;
  14871. },
  14872. watchDir_closure2: function watchDir_closure2(t0) {
  14873. this._box_0 = t0;
  14874. },
  14875. watchDir_closure3: function watchDir_closure3(t0, t1, t2) {
  14876. this._box_0 = t0;
  14877. this.watcher = t1;
  14878. this.completer = t2;
  14879. },
  14880. watchDir__closure: function watchDir__closure(t0) {
  14881. this.watcher = t0;
  14882. },
  14883. watchDir_closure5: function watchDir_closure5(t0) {
  14884. this._box_0 = t0;
  14885. },
  14886. watchDir_closure4: function watchDir_closure4(t0) {
  14887. this.subscription = t0;
  14888. },
  14889. JSArray0: function JSArray0() {
  14890. },
  14891. Chokidar: function Chokidar() {
  14892. },
  14893. ChokidarOptions: function ChokidarOptions() {
  14894. },
  14895. ChokidarWatcher: function ChokidarWatcher() {
  14896. },
  14897. JSFunction: function JSFunction() {
  14898. },
  14899. ImmutableList: function ImmutableList() {
  14900. },
  14901. ImmutableMap: function ImmutableMap() {
  14902. },
  14903. NodeImporterResult: function NodeImporterResult() {
  14904. },
  14905. RenderContext: function RenderContext() {
  14906. },
  14907. RenderContextOptions: function RenderContextOptions() {
  14908. },
  14909. RenderContextResult: function RenderContextResult() {
  14910. },
  14911. RenderContextResultStats: function RenderContextResultStats() {
  14912. },
  14913. JSModule: function JSModule() {
  14914. },
  14915. JSModuleRequire: function JSModuleRequire() {
  14916. },
  14917. ParcelWatcher_subscribeFuture(path, callback) {
  14918. return A.promiseToFuture(self.parcel_watcher.subscribe(path, A.allowInterop(new A.ParcelWatcher_subscribeFuture_closure(callback))), type$.ParcelWatcherSubscription);
  14919. },
  14920. ParcelWatcherSubscription: function ParcelWatcherSubscription() {
  14921. },
  14922. ParcelWatcherEvent: function ParcelWatcherEvent() {
  14923. },
  14924. ParcelWatcher: function ParcelWatcher() {
  14925. },
  14926. ParcelWatcher_subscribeFuture_closure: function ParcelWatcher_subscribeFuture_closure(t0) {
  14927. this.callback = t0;
  14928. },
  14929. JSClass: function JSClass() {
  14930. },
  14931. JSUrl: function JSUrl() {
  14932. },
  14933. jsThrow0(error) {
  14934. return type$.Never._as($.$get$_jsThrow0().call$1(error));
  14935. },
  14936. _PropertyDescriptor: function _PropertyDescriptor() {
  14937. },
  14938. _RequireMain: function _RequireMain() {
  14939. },
  14940. WarnForDeprecation_warnForDeprecation(_this, deprecation, message, span, trace) {
  14941. if (_this instanceof A.DeprecationProcessingLogger)
  14942. _this.internalWarn$4$deprecation$span$trace(message, deprecation, span, trace);
  14943. else
  14944. _this.warn$4$deprecation$span$trace(0, message, true, span, trace);
  14945. },
  14946. LoggerWithDeprecationType0: function LoggerWithDeprecationType0() {
  14947. },
  14948. _QuietLogger: function _QuietLogger() {
  14949. },
  14950. DeprecationProcessingLogger: function DeprecationProcessingLogger(t0, t1, t2, t3, t4, t5) {
  14951. var _ = this;
  14952. _._warningCounts = t0;
  14953. _._inner = t1;
  14954. _.silenceDeprecations = t2;
  14955. _.fatalDeprecations = t3;
  14956. _.futureDeprecations = t4;
  14957. _.limitRepetition = t5;
  14958. },
  14959. DeprecationProcessingLogger_summarize_closure: function DeprecationProcessingLogger_summarize_closure() {
  14960. },
  14961. DeprecationProcessingLogger_summarize_closure0: function DeprecationProcessingLogger_summarize_closure0() {
  14962. },
  14963. StderrLogger: function StderrLogger(t0) {
  14964. this.color = t0;
  14965. },
  14966. TrackingLogger: function TrackingLogger(t0) {
  14967. this._tracking$_logger = t0;
  14968. this._emittedDebug = this._emittedWarning = false;
  14969. },
  14970. BuiltInModule$($name, functions, mixins, variables, $T) {
  14971. var t1 = A._Uri__Uri(null, $name, null, "sass"),
  14972. t2 = A.BuiltInModule__callableMap(functions, $T),
  14973. t3 = A.BuiltInModule__callableMap(mixins, $T),
  14974. t4 = variables == null ? B.Map_empty5 : new A.UnmodifiableMapView(variables, type$.UnmodifiableMapView_String_Value);
  14975. return new A.BuiltInModule(t1, t2, t3, t4, $T._eval$1("BuiltInModule<0>"));
  14976. },
  14977. BuiltInModule__callableMap(callables, $T) {
  14978. var t2, _i, callable,
  14979. t1 = type$.String;
  14980. if (callables == null)
  14981. t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, $T);
  14982. else {
  14983. t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, $T);
  14984. for (t2 = callables.length, _i = 0; _i < callables.length; callables.length === t2 || (0, A.throwConcurrentModificationError)(callables), ++_i) {
  14985. callable = callables[_i];
  14986. t1.$indexSet(0, J.get$name$x(callable), callable);
  14987. }
  14988. t1 = new A.UnmodifiableMapView(t1, type$.$env_1_1_String._bind$1($T)._eval$1("UnmodifiableMapView<1,2>"));
  14989. }
  14990. return new A.UnmodifiableMapView(t1, type$.$env_1_1_String._bind$1($T)._eval$1("UnmodifiableMapView<1,2>"));
  14991. },
  14992. BuiltInModule: function BuiltInModule(t0, t1, t2, t3, t4) {
  14993. var _ = this;
  14994. _.url = t0;
  14995. _.functions = t1;
  14996. _.mixins = t2;
  14997. _.variables = t3;
  14998. _.$ti = t4;
  14999. },
  15000. ForwardedModuleView_ifNecessary(inner, rule, $T) {
  15001. var t2,
  15002. t1 = false;
  15003. if (rule.prefix == null)
  15004. if (rule.shownMixinsAndFunctions == null)
  15005. if (rule.shownVariables == null) {
  15006. t2 = rule.hiddenMixinsAndFunctions;
  15007. t2 = t2 == null ? null : t2._base.get$isEmpty(0);
  15008. if (t2 === true) {
  15009. t1 = rule.hiddenVariables;
  15010. t1 = t1 == null ? null : t1._base.get$isEmpty(0);
  15011. t1 = t1 === true;
  15012. }
  15013. }
  15014. if (t1)
  15015. return inner;
  15016. else
  15017. return A.ForwardedModuleView$(inner, rule, $T);
  15018. },
  15019. ForwardedModuleView$(_inner, _rule, $T) {
  15020. var t1 = _rule.prefix,
  15021. t2 = _rule.shownVariables,
  15022. t3 = _rule.hiddenVariables,
  15023. t4 = _rule.shownMixinsAndFunctions,
  15024. t5 = _rule.hiddenMixinsAndFunctions;
  15025. return new A.ForwardedModuleView(_inner, _rule, A.ForwardedModuleView__forwardedMap(_inner.get$variables(), t1, t2, t3, type$.Value), A.ForwardedModuleView__forwardedMap(_inner.get$variableNodes(), t1, t2, t3, type$.AstNode), A.ForwardedModuleView__forwardedMap(_inner.get$functions(_inner), t1, t4, t5, $T), A.ForwardedModuleView__forwardedMap(_inner.get$mixins(), t1, t4, t5, $T), $T._eval$1("ForwardedModuleView<0>"));
  15026. },
  15027. ForwardedModuleView__forwardedMap(map, prefix, safelist, blocklist, $V) {
  15028. var t1 = prefix == null,
  15029. t2 = false;
  15030. if (t1)
  15031. if (safelist == null)
  15032. t2 = blocklist == null || blocklist._base.get$isEmpty(0);
  15033. if (t2)
  15034. return map;
  15035. if (!t1)
  15036. map = new A.PrefixedMapView(map, prefix, $V._eval$1("PrefixedMapView<0>"));
  15037. if (safelist != null)
  15038. map = new A.LimitedMapView(map, safelist._base.intersection$1(new A.MapKeySet(map, type$.MapKeySet_nullable_Object)), type$.$env_1_1_String._bind$1($V)._eval$1("LimitedMapView<1,2>"));
  15039. else if (blocklist != null && blocklist._base.get$isNotEmpty(0))
  15040. map = A.LimitedMapView$blocklist(map, blocklist, type$.String, $V);
  15041. return map;
  15042. },
  15043. ForwardedModuleView: function ForwardedModuleView(t0, t1, t2, t3, t4, t5, t6) {
  15044. var _ = this;
  15045. _._forwarded_view$_inner = t0;
  15046. _._rule = t1;
  15047. _.variables = t2;
  15048. _.variableNodes = t3;
  15049. _.functions = t4;
  15050. _.mixins = t5;
  15051. _.$ti = t6;
  15052. },
  15053. ShadowedModuleView_ifNecessary(inner, functions, mixins, variables, $T) {
  15054. return A.ShadowedModuleView__needsBlocklist(inner.get$variables(), variables) || A.ShadowedModuleView__needsBlocklist(inner.get$functions(inner), functions) || A.ShadowedModuleView__needsBlocklist(inner.get$mixins(), mixins) ? new A.ShadowedModuleView(inner, A.ShadowedModuleView__shadowedMap(inner.get$variables(), variables, type$.Value), A.ShadowedModuleView__shadowedMap(inner.get$variableNodes(), variables, type$.AstNode), A.ShadowedModuleView__shadowedMap(inner.get$functions(inner), functions, $T), A.ShadowedModuleView__shadowedMap(inner.get$mixins(), mixins, $T), $T._eval$1("ShadowedModuleView<0>")) : null;
  15055. },
  15056. ShadowedModuleView__shadowedMap(map, blocklist, $V) {
  15057. var t1 = A.ShadowedModuleView__needsBlocklist(map, blocklist);
  15058. return !t1 ? map : A.LimitedMapView$blocklist(map, blocklist, type$.String, $V);
  15059. },
  15060. ShadowedModuleView__needsBlocklist(map, blocklist) {
  15061. return map.get$isNotEmpty(map) && blocklist.any$1(0, map.get$containsKey());
  15062. },
  15063. ShadowedModuleView: function ShadowedModuleView(t0, t1, t2, t3, t4, t5) {
  15064. var _ = this;
  15065. _._shadowed_view$_inner = t0;
  15066. _.variables = t1;
  15067. _.variableNodes = t2;
  15068. _.functions = t3;
  15069. _.mixins = t4;
  15070. _.$ti = t5;
  15071. },
  15072. AtRootQueryParser: function AtRootQueryParser(t0, t1) {
  15073. this.scanner = t0;
  15074. this._interpolationMap = t1;
  15075. },
  15076. AtRootQueryParser_parse_closure: function AtRootQueryParser_parse_closure(t0) {
  15077. this.$this = t0;
  15078. },
  15079. _disallowedFunctionNames_closure: function _disallowedFunctionNames_closure() {
  15080. },
  15081. CssParser: function CssParser(t0, t1, t2, t3) {
  15082. var _ = this;
  15083. _._isUseAllowed = true;
  15084. _._inExpression = _._inParentheses = _._inStyleRule = _._stylesheet$_inUnknownAtRule = _._inControlDirective = _._inContentBlock = _._stylesheet$_inMixin = false;
  15085. _._globalVariables = t0;
  15086. _.warnings = t1;
  15087. _.lastSilentComment = null;
  15088. _.scanner = t2;
  15089. _._interpolationMap = t3;
  15090. },
  15091. KeyframeSelectorParser: function KeyframeSelectorParser(t0, t1) {
  15092. this.scanner = t0;
  15093. this._interpolationMap = t1;
  15094. },
  15095. KeyframeSelectorParser_parse_closure: function KeyframeSelectorParser_parse_closure(t0) {
  15096. this.$this = t0;
  15097. },
  15098. MediaQueryParser: function MediaQueryParser(t0, t1) {
  15099. this.scanner = t0;
  15100. this._interpolationMap = t1;
  15101. },
  15102. MediaQueryParser_parse_closure: function MediaQueryParser_parse_closure(t0) {
  15103. this.$this = t0;
  15104. },
  15105. Parser_isIdentifier(text) {
  15106. var exception;
  15107. try {
  15108. new A.Parser(A.SpanScanner$(text, null), null)._parseIdentifier$0();
  15109. return true;
  15110. } catch (exception) {
  15111. if (type$.SassFormatException._is(A.unwrapException(exception)))
  15112. return false;
  15113. else
  15114. throw exception;
  15115. }
  15116. },
  15117. Parser: function Parser(t0, t1) {
  15118. this.scanner = t0;
  15119. this._interpolationMap = t1;
  15120. },
  15121. Parser__parseIdentifier_closure: function Parser__parseIdentifier_closure(t0) {
  15122. this.$this = t0;
  15123. },
  15124. Parser_escape_closure: function Parser_escape_closure() {
  15125. },
  15126. Parser_scanIdentChar_matches: function Parser_scanIdentChar_matches(t0, t1) {
  15127. this.caseSensitive = t0;
  15128. this.char = t1;
  15129. },
  15130. Parser_spanFrom_closure: function Parser_spanFrom_closure(t0, t1) {
  15131. this.$this = t0;
  15132. this.span = t1;
  15133. },
  15134. SassParser: function SassParser(t0, t1, t2, t3) {
  15135. var _ = this;
  15136. _._currentIndentation = 0;
  15137. _._spaces = _._nextIndentationEnd = _._nextIndentation = null;
  15138. _._isUseAllowed = true;
  15139. _._inExpression = _._inParentheses = _._inStyleRule = _._stylesheet$_inUnknownAtRule = _._inControlDirective = _._inContentBlock = _._stylesheet$_inMixin = false;
  15140. _._globalVariables = t0;
  15141. _.warnings = t1;
  15142. _.lastSilentComment = null;
  15143. _.scanner = t2;
  15144. _._interpolationMap = t3;
  15145. },
  15146. SassParser_styleRuleSelector_closure: function SassParser_styleRuleSelector_closure() {
  15147. },
  15148. SassParser_children_closure: function SassParser_children_closure(t0, t1, t2) {
  15149. this.$this = t0;
  15150. this.child = t1;
  15151. this.children = t2;
  15152. },
  15153. SassParser__peekIndentation_closure: function SassParser__peekIndentation_closure() {
  15154. },
  15155. SassParser__peekIndentation_closure0: function SassParser__peekIndentation_closure0() {
  15156. },
  15157. ScssParser$(contents, url) {
  15158. return new A.ScssParser(A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration), A._setArrayType([], type$.JSArray_Record_3_nullable_Deprecation_deprecation_and_String_message_and_FileSpan_span), A.SpanScanner$(contents, url), null);
  15159. },
  15160. ScssParser: function ScssParser(t0, t1, t2, t3) {
  15161. var _ = this;
  15162. _._isUseAllowed = true;
  15163. _._inExpression = _._inParentheses = _._inStyleRule = _._stylesheet$_inUnknownAtRule = _._inControlDirective = _._inContentBlock = _._stylesheet$_inMixin = false;
  15164. _._globalVariables = t0;
  15165. _.warnings = t1;
  15166. _.lastSilentComment = null;
  15167. _.scanner = t2;
  15168. _._interpolationMap = t3;
  15169. },
  15170. SelectorParser: function SelectorParser(t0, t1, t2, t3) {
  15171. var _ = this;
  15172. _._allowParent = t0;
  15173. _._plainCss = t1;
  15174. _.scanner = t2;
  15175. _._interpolationMap = t3;
  15176. },
  15177. SelectorParser_parse_closure: function SelectorParser_parse_closure(t0) {
  15178. this.$this = t0;
  15179. },
  15180. SelectorParser_parseCompoundSelector_closure: function SelectorParser_parseCompoundSelector_closure(t0) {
  15181. this.$this = t0;
  15182. },
  15183. StylesheetParser: function StylesheetParser() {
  15184. },
  15185. StylesheetParser_parse_closure: function StylesheetParser_parse_closure(t0) {
  15186. this.$this = t0;
  15187. },
  15188. StylesheetParser_parse__closure: function StylesheetParser_parse__closure(t0) {
  15189. this.$this = t0;
  15190. },
  15191. StylesheetParser_parse__closure0: function StylesheetParser_parse__closure0() {
  15192. },
  15193. StylesheetParser_parseArgumentDeclaration_closure: function StylesheetParser_parseArgumentDeclaration_closure(t0) {
  15194. this.$this = t0;
  15195. },
  15196. StylesheetParser_parseVariableDeclaration_closure: function StylesheetParser_parseVariableDeclaration_closure(t0) {
  15197. this.$this = t0;
  15198. },
  15199. StylesheetParser_parseUseRule_closure: function StylesheetParser_parseUseRule_closure(t0) {
  15200. this.$this = t0;
  15201. },
  15202. StylesheetParser__parseSingleProduction_closure: function StylesheetParser__parseSingleProduction_closure(t0, t1, t2) {
  15203. this.$this = t0;
  15204. this.production = t1;
  15205. this.T = t2;
  15206. },
  15207. StylesheetParser__statement_closure: function StylesheetParser__statement_closure(t0) {
  15208. this.$this = t0;
  15209. },
  15210. StylesheetParser_variableDeclarationWithoutNamespace_closure: function StylesheetParser_variableDeclarationWithoutNamespace_closure(t0, t1) {
  15211. this.$this = t0;
  15212. this.start = t1;
  15213. },
  15214. StylesheetParser_variableDeclarationWithoutNamespace_closure0: function StylesheetParser_variableDeclarationWithoutNamespace_closure0(t0) {
  15215. this.declaration = t0;
  15216. },
  15217. StylesheetParser__styleRule_closure: function StylesheetParser__styleRule_closure(t0, t1, t2, t3) {
  15218. var _ = this;
  15219. _._box_0 = t0;
  15220. _.$this = t1;
  15221. _.wasInStyleRule = t2;
  15222. _.start = t3;
  15223. },
  15224. StylesheetParser__tryDeclarationChildren_closure: function StylesheetParser__tryDeclarationChildren_closure(t0, t1) {
  15225. this.name = t0;
  15226. this.value = t1;
  15227. },
  15228. StylesheetParser__atRootRule_closure: function StylesheetParser__atRootRule_closure(t0) {
  15229. this.query = t0;
  15230. },
  15231. StylesheetParser__atRootRule_closure0: function StylesheetParser__atRootRule_closure0() {
  15232. },
  15233. StylesheetParser__eachRule_closure: function StylesheetParser__eachRule_closure(t0, t1, t2, t3) {
  15234. var _ = this;
  15235. _.$this = t0;
  15236. _.wasInControlDirective = t1;
  15237. _.variables = t2;
  15238. _.list = t3;
  15239. },
  15240. StylesheetParser__functionRule_closure: function StylesheetParser__functionRule_closure(t0, t1, t2) {
  15241. this.name = t0;
  15242. this.$arguments = t1;
  15243. this.precedingComment = t2;
  15244. },
  15245. StylesheetParser__forRule_closure: function StylesheetParser__forRule_closure(t0, t1) {
  15246. this._box_0 = t0;
  15247. this.$this = t1;
  15248. },
  15249. StylesheetParser__forRule_closure0: function StylesheetParser__forRule_closure0(t0, t1, t2, t3, t4, t5) {
  15250. var _ = this;
  15251. _._box_0 = t0;
  15252. _.$this = t1;
  15253. _.wasInControlDirective = t2;
  15254. _.variable = t3;
  15255. _.from = t4;
  15256. _.to = t5;
  15257. },
  15258. StylesheetParser__memberList_closure: function StylesheetParser__memberList_closure(t0, t1, t2) {
  15259. this.$this = t0;
  15260. this.variables = t1;
  15261. this.identifiers = t2;
  15262. },
  15263. StylesheetParser__includeRule_closure: function StylesheetParser__includeRule_closure(t0) {
  15264. this.contentArguments_ = t0;
  15265. },
  15266. StylesheetParser_mediaRule_closure: function StylesheetParser_mediaRule_closure(t0) {
  15267. this.query = t0;
  15268. },
  15269. StylesheetParser__mixinRule_closure: function StylesheetParser__mixinRule_closure(t0, t1, t2, t3) {
  15270. var _ = this;
  15271. _.$this = t0;
  15272. _.name = t1;
  15273. _.$arguments = t2;
  15274. _.precedingComment = t3;
  15275. },
  15276. StylesheetParser_mozDocumentRule_closure: function StylesheetParser_mozDocumentRule_closure(t0, t1, t2, t3) {
  15277. var _ = this;
  15278. _._box_0 = t0;
  15279. _.$this = t1;
  15280. _.name = t2;
  15281. _.value = t3;
  15282. },
  15283. StylesheetParser_supportsRule_closure: function StylesheetParser_supportsRule_closure(t0) {
  15284. this.condition = t0;
  15285. },
  15286. StylesheetParser__whileRule_closure: function StylesheetParser__whileRule_closure(t0, t1, t2) {
  15287. this.$this = t0;
  15288. this.wasInControlDirective = t1;
  15289. this.condition = t2;
  15290. },
  15291. StylesheetParser_unknownAtRule_closure: function StylesheetParser_unknownAtRule_closure(t0, t1) {
  15292. this._box_0 = t0;
  15293. this.name = t1;
  15294. },
  15295. StylesheetParser__expression_resetState: function StylesheetParser__expression_resetState(t0, t1, t2) {
  15296. this._box_0 = t0;
  15297. this.$this = t1;
  15298. this.start = t2;
  15299. },
  15300. StylesheetParser__expression_resolveOneOperation: function StylesheetParser__expression_resolveOneOperation(t0, t1) {
  15301. this._box_0 = t0;
  15302. this.$this = t1;
  15303. },
  15304. StylesheetParser__expression_resolveOperations: function StylesheetParser__expression_resolveOperations(t0, t1) {
  15305. this._box_0 = t0;
  15306. this.resolveOneOperation = t1;
  15307. },
  15308. StylesheetParser__expression_addSingleExpression: function StylesheetParser__expression_addSingleExpression(t0, t1, t2, t3) {
  15309. var _ = this;
  15310. _._box_0 = t0;
  15311. _.$this = t1;
  15312. _.resetState = t2;
  15313. _.resolveOperations = t3;
  15314. },
  15315. StylesheetParser__expression_addOperator: function StylesheetParser__expression_addOperator(t0, t1, t2) {
  15316. this._box_0 = t0;
  15317. this.$this = t1;
  15318. this.resolveOneOperation = t2;
  15319. },
  15320. StylesheetParser__expression_resolveSpaceExpressions: function StylesheetParser__expression_resolveSpaceExpressions(t0, t1, t2) {
  15321. this._box_0 = t0;
  15322. this.$this = t1;
  15323. this.resolveOperations = t2;
  15324. },
  15325. StylesheetParser_expressionUntilComma_closure: function StylesheetParser_expressionUntilComma_closure(t0) {
  15326. this.$this = t0;
  15327. },
  15328. StylesheetParser__isHexColor_closure: function StylesheetParser__isHexColor_closure() {
  15329. },
  15330. StylesheetParser__unicodeRange_closure: function StylesheetParser__unicodeRange_closure() {
  15331. },
  15332. StylesheetParser__unicodeRange_closure0: function StylesheetParser__unicodeRange_closure0() {
  15333. },
  15334. StylesheetParser_namespacedExpression_closure: function StylesheetParser_namespacedExpression_closure(t0, t1) {
  15335. this.$this = t0;
  15336. this.start = t1;
  15337. },
  15338. StylesheetParser_trySpecialFunction_closure: function StylesheetParser_trySpecialFunction_closure() {
  15339. },
  15340. StylesheetParser__expressionUntilComparison_closure: function StylesheetParser__expressionUntilComparison_closure(t0) {
  15341. this.$this = t0;
  15342. },
  15343. StylesheetParser__publicIdentifier_closure: function StylesheetParser__publicIdentifier_closure(t0, t1) {
  15344. this.$this = t0;
  15345. this.start = t1;
  15346. },
  15347. StylesheetNode$_(_stylesheet, importer, canonicalUrl, allUpstream) {
  15348. var t1 = new A.StylesheetNode(_stylesheet, importer, canonicalUrl, allUpstream._1, allUpstream._0, A.LinkedHashSet_LinkedHashSet$_empty(type$.StylesheetNode));
  15349. t1.StylesheetNode$_$4(_stylesheet, importer, canonicalUrl, allUpstream);
  15350. return t1;
  15351. },
  15352. StylesheetGraph: function StylesheetGraph(t0, t1, t2) {
  15353. this._nodes = t0;
  15354. this.importCache = t1;
  15355. this._transitiveModificationTimes = t2;
  15356. },
  15357. StylesheetGraph_modifiedSince_transitiveModificationTime: function StylesheetGraph_modifiedSince_transitiveModificationTime(t0) {
  15358. this.$this = t0;
  15359. },
  15360. StylesheetGraph_modifiedSince_transitiveModificationTime_closure: function StylesheetGraph_modifiedSince_transitiveModificationTime_closure(t0, t1) {
  15361. this.node = t0;
  15362. this.transitiveModificationTime = t1;
  15363. },
  15364. StylesheetGraph__add_closure: function StylesheetGraph__add_closure(t0, t1, t2, t3) {
  15365. var _ = this;
  15366. _.$this = t0;
  15367. _.url = t1;
  15368. _.baseImporter = t2;
  15369. _.baseUrl = t3;
  15370. },
  15371. StylesheetGraph_addCanonical_closure: function StylesheetGraph_addCanonical_closure(t0, t1, t2, t3) {
  15372. var _ = this;
  15373. _.$this = t0;
  15374. _.importer = t1;
  15375. _.canonicalUrl = t2;
  15376. _.originalUrl = t3;
  15377. },
  15378. StylesheetGraph_reload_closure: function StylesheetGraph_reload_closure(t0, t1, t2) {
  15379. this.$this = t0;
  15380. this.node = t1;
  15381. this.canonicalUrl = t2;
  15382. },
  15383. StylesheetGraph__nodeFor_closure: function StylesheetGraph__nodeFor_closure(t0, t1, t2, t3, t4) {
  15384. var _ = this;
  15385. _.$this = t0;
  15386. _.url = t1;
  15387. _.baseImporter = t2;
  15388. _.baseUrl = t3;
  15389. _.forImport = t4;
  15390. },
  15391. StylesheetGraph__nodeFor_closure0: function StylesheetGraph__nodeFor_closure0(t0, t1) {
  15392. this._box_0 = t0;
  15393. this.$this = t1;
  15394. },
  15395. StylesheetNode: function StylesheetNode(t0, t1, t2, t3, t4, t5) {
  15396. var _ = this;
  15397. _._stylesheet = t0;
  15398. _.importer = t1;
  15399. _.canonicalUrl = t2;
  15400. _._upstream = t3;
  15401. _._upstreamImports = t4;
  15402. _._downstream = t5;
  15403. },
  15404. Syntax_forPath(path) {
  15405. var t1,
  15406. _0_0 = A.ParsedPath_ParsedPath$parse(path, $.$get$context().style)._splitExtension$1(1)[1];
  15407. $label0$0: {
  15408. if (".sass" === _0_0) {
  15409. t1 = B.Syntax_Sass_sass;
  15410. break $label0$0;
  15411. }
  15412. if (".css" === _0_0) {
  15413. t1 = B.Syntax_CSS_css;
  15414. break $label0$0;
  15415. }
  15416. t1 = B.Syntax_SCSS_scss;
  15417. break $label0$0;
  15418. }
  15419. return t1;
  15420. },
  15421. Syntax: function Syntax(t0, t1) {
  15422. this._syntax$_name = t0;
  15423. this._name = t1;
  15424. },
  15425. Box: function Box(t0, t1) {
  15426. this._box$_inner = t0;
  15427. this.$ti = t1;
  15428. },
  15429. ModifiableBox: function ModifiableBox(t0, t1) {
  15430. this.value = t0;
  15431. this.$ti = t1;
  15432. },
  15433. LazyFileSpan: function LazyFileSpan(t0) {
  15434. this._builder = t0;
  15435. this._lazy_file_span$_span = null;
  15436. },
  15437. LimitedMapView$blocklist(_map, blocklist, $K, $V) {
  15438. var t2, key,
  15439. t1 = A.LinkedHashSet_LinkedHashSet$_empty($K);
  15440. for (t2 = J.get$iterator$ax(_map.get$keys(_map)); t2.moveNext$0();) {
  15441. key = t2.get$current(t2);
  15442. if (!blocklist.contains$1(0, key))
  15443. t1.add$1(0, key);
  15444. }
  15445. return new A.LimitedMapView(_map, t1, $K._eval$1("@<0>")._bind$1($V)._eval$1("LimitedMapView<1,2>"));
  15446. },
  15447. LimitedMapView: function LimitedMapView(t0, t1, t2) {
  15448. this._limited_map_view$_map = t0;
  15449. this._limited_map_view$_keys = t1;
  15450. this.$ti = t2;
  15451. },
  15452. MapExtensions_get_pairs(_this, $K, $V) {
  15453. return _this.get$entries(_this).map$1$1(0, new A.MapExtensions_get_pairs_closure($K, $V), $K._eval$1("@<0>")._bind$1($V)._eval$1("+(1,2)"));
  15454. },
  15455. MapExtensions_get_pairs_closure: function MapExtensions_get_pairs_closure(t0, t1) {
  15456. this.K = t0;
  15457. this.V = t1;
  15458. },
  15459. MergedMapView$(maps, $K, $V) {
  15460. var t1 = $K._eval$1("@<0>")._bind$1($V);
  15461. t1 = new A.MergedMapView(A.LinkedHashMap_LinkedHashMap$_empty($K, t1._eval$1("Map<1,2>")), t1._eval$1("MergedMapView<1,2>"));
  15462. t1.MergedMapView$1(maps, $K, $V);
  15463. return t1;
  15464. },
  15465. MergedMapView: function MergedMapView(t0, t1) {
  15466. this._mapsByKey = t0;
  15467. this.$ti = t1;
  15468. },
  15469. MultiDirWatcher: function MultiDirWatcher(t0, t1, t2) {
  15470. this._watchers = t0;
  15471. this._group = t1;
  15472. this._poll = t2;
  15473. },
  15474. MultiSpan: function MultiSpan(t0, t1, t2) {
  15475. this._multi_span$_primary = t0;
  15476. this.primaryLabel = t1;
  15477. this.secondarySpans = t2;
  15478. },
  15479. NoSourceMapBuffer: function NoSourceMapBuffer(t0) {
  15480. this._no_source_map_buffer$_buffer = t0;
  15481. },
  15482. PrefixedMapView: function PrefixedMapView(t0, t1, t2) {
  15483. this._prefixed_map_view$_map = t0;
  15484. this._prefix = t1;
  15485. this.$ti = t2;
  15486. },
  15487. _PrefixedKeys: function _PrefixedKeys(t0) {
  15488. this._view = t0;
  15489. },
  15490. _PrefixedKeys_iterator_closure: function _PrefixedKeys_iterator_closure(t0) {
  15491. this.$this = t0;
  15492. },
  15493. PublicMemberMapView: function PublicMemberMapView(t0, t1) {
  15494. this._public_member_map_view$_inner = t0;
  15495. this.$ti = t1;
  15496. },
  15497. SourceMapBuffer: function SourceMapBuffer(t0, t1) {
  15498. var _ = this;
  15499. _._source_map_buffer$_buffer = t0;
  15500. _._entries = t1;
  15501. _._column = _._line = 0;
  15502. _._inSpan = false;
  15503. },
  15504. SourceMapBuffer_buildSourceMap_closure: function SourceMapBuffer_buildSourceMap_closure(t0, t1) {
  15505. this._box_0 = t0;
  15506. this.prefixLength = t1;
  15507. },
  15508. UnprefixedMapView: function UnprefixedMapView(t0, t1, t2) {
  15509. this._unprefixed_map_view$_map = t0;
  15510. this._unprefixed_map_view$_prefix = t1;
  15511. this.$ti = t2;
  15512. },
  15513. _UnprefixedKeys: function _UnprefixedKeys(t0) {
  15514. this._unprefixed_map_view$_view = t0;
  15515. },
  15516. _UnprefixedKeys_iterator_closure: function _UnprefixedKeys_iterator_closure(t0) {
  15517. this.$this = t0;
  15518. },
  15519. _UnprefixedKeys_iterator_closure0: function _UnprefixedKeys_iterator_closure0(t0) {
  15520. this.$this = t0;
  15521. },
  15522. toSentence(iter, conjunction) {
  15523. if (iter.get$length(iter) === 1)
  15524. return J.toString$0$(iter.get$first(iter));
  15525. return A.IterableExtension_get_exceptLast(iter).join$1(0, ", ") + (" " + conjunction + " " + A.S(iter.get$last(iter)));
  15526. },
  15527. indent(string, indentation) {
  15528. return new A.MappedListIterable(A._setArrayType(string.split("\n"), type$.JSArray_String), new A.indent_closure(indentation), type$.MappedListIterable_String_String).join$1(0, "\n");
  15529. },
  15530. pluralize($name, number, plural) {
  15531. if (number === 1)
  15532. return $name;
  15533. if (plural != null)
  15534. return plural;
  15535. return $name + "s";
  15536. },
  15537. trimAscii(string, excludeEscape) {
  15538. var t1,
  15539. start = A._firstNonWhitespace(string);
  15540. if (start == null)
  15541. t1 = "";
  15542. else {
  15543. t1 = A._lastNonWhitespace(string, true);
  15544. t1.toString;
  15545. t1 = B.JSString_methods.substring$2(string, start, t1 + 1);
  15546. }
  15547. return t1;
  15548. },
  15549. trimAsciiRight(string, excludeEscape) {
  15550. var end = A._lastNonWhitespace(string, excludeEscape);
  15551. return end == null ? "" : B.JSString_methods.substring$2(string, 0, end + 1);
  15552. },
  15553. _firstNonWhitespace(string) {
  15554. var t1, i, t2;
  15555. for (t1 = string.length, i = 0; i < t1; ++i) {
  15556. t2 = string.charCodeAt(i);
  15557. if (!(t2 === 32 || t2 === 9 || t2 === 10 || t2 === 13 || t2 === 12))
  15558. return i;
  15559. }
  15560. return null;
  15561. },
  15562. _lastNonWhitespace(string, excludeEscape) {
  15563. var i, i0, codeUnit;
  15564. for (i = string.length - 1, i0 = i; i0 >= 0; --i0) {
  15565. codeUnit = string.charCodeAt(i0);
  15566. if (!(codeUnit === 32 || codeUnit === 9 || codeUnit === 10 || codeUnit === 13 || codeUnit === 12))
  15567. if (excludeEscape && i0 !== 0 && i0 !== i && codeUnit === 92)
  15568. return i0 + 1;
  15569. else
  15570. return i0;
  15571. }
  15572. return null;
  15573. },
  15574. isPublic(member) {
  15575. var start = member.charCodeAt(0);
  15576. return start !== 45 && start !== 95;
  15577. },
  15578. flattenVertically(iterable, $T) {
  15579. var result,
  15580. t1 = iterable.$ti._eval$1("@<ListIterable.E>")._bind$1($T._eval$1("QueueList<0>"))._eval$1("MappedListIterable<1,2>"),
  15581. queues = A.List_List$of(new A.MappedListIterable(iterable, new A.flattenVertically_closure($T), t1), true, t1._eval$1("ListIterable.E"));
  15582. if (queues.length === 1)
  15583. return B.JSArray_methods.get$first(queues);
  15584. result = A._setArrayType([], $T._eval$1("JSArray<0>"));
  15585. for (; queues.length !== 0;) {
  15586. if (!!queues.fixed$length)
  15587. A.throwExpression(A.UnsupportedError$("removeWhere"));
  15588. B.JSArray_methods._removeWhere$2(queues, new A.flattenVertically_closure0(result, $T), true);
  15589. }
  15590. return result;
  15591. },
  15592. codepointIndexToCodeUnitIndex(string, codepointIndex) {
  15593. var codeUnitIndex, i, codeUnitIndex0;
  15594. for (codeUnitIndex = 0, i = 0; i < codepointIndex; ++i) {
  15595. codeUnitIndex0 = codeUnitIndex + 1;
  15596. codeUnitIndex = string.charCodeAt(codeUnitIndex) >>> 10 === 54 ? codeUnitIndex0 + 1 : codeUnitIndex0;
  15597. }
  15598. return codeUnitIndex;
  15599. },
  15600. codeUnitIndexToCodepointIndex(string, codeUnitIndex) {
  15601. var codepointIndex, i;
  15602. for (codepointIndex = 0, i = 0; i < codeUnitIndex; i = (string.charCodeAt(i) >>> 10 === 54 ? i + 1 : i) + 1)
  15603. ++codepointIndex;
  15604. return codepointIndex;
  15605. },
  15606. frameForSpan(span, member, url) {
  15607. var t2, t3,
  15608. t1 = url == null ? span.get$sourceUrl(span) : url;
  15609. if (t1 == null)
  15610. t1 = $.$get$_noSourceUrl();
  15611. t2 = span.get$start(span);
  15612. t2 = t2.file.getLine$1(t2.offset);
  15613. t3 = span.get$start(span);
  15614. return new A.Frame(t1, t2 + 1, t3.file.getColumn$1(t3.offset) + 1, member);
  15615. },
  15616. declarationName(span) {
  15617. var text = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(span.file._decodedChars, span._file$_start, span._end), 0, null);
  15618. return A.trimAsciiRight(B.JSString_methods.substring$2(text, 0, B.JSString_methods.indexOf$1(text, ":")), false);
  15619. },
  15620. unvendor($name) {
  15621. var i,
  15622. t1 = $name.length;
  15623. if (t1 < 2)
  15624. return $name;
  15625. if ($name.charCodeAt(0) !== 45)
  15626. return $name;
  15627. if ($name.charCodeAt(1) === 45)
  15628. return $name;
  15629. for (i = 2; i < t1; ++i)
  15630. if ($name.charCodeAt(i) === 45)
  15631. return B.JSString_methods.substring$1($name, i + 1);
  15632. return $name;
  15633. },
  15634. equalsIgnoreCase(string1, string2) {
  15635. var t1, i;
  15636. if (string1 === string2)
  15637. return true;
  15638. if (string1 == null)
  15639. return false;
  15640. t1 = string1.length;
  15641. if (t1 !== string2.length)
  15642. return false;
  15643. for (i = 0; i < t1; ++i)
  15644. if (!A.characterEqualsIgnoreCase(string1.charCodeAt(i), string2.charCodeAt(i)))
  15645. return false;
  15646. return true;
  15647. },
  15648. startsWithIgnoreCase(string, prefix) {
  15649. var i,
  15650. t1 = prefix.length;
  15651. if (string.length < t1)
  15652. return false;
  15653. for (i = 0; i < t1; ++i)
  15654. if (!A.characterEqualsIgnoreCase(string.charCodeAt(i), prefix.charCodeAt(i)))
  15655. return false;
  15656. return true;
  15657. },
  15658. mapInPlace(list, $function) {
  15659. var i;
  15660. for (i = 0; i < list.length; ++i)
  15661. list[i] = $function.call$1(list[i]);
  15662. },
  15663. longestCommonSubsequence(list1, list2, select, $T) {
  15664. var t1, _i, selections, i, i0, j, selection, j0,
  15665. _length = list1.get$length(0) + 1,
  15666. lengths = J.JSArray_JSArray$allocateFixed(_length, type$.List_int);
  15667. for (t1 = type$.int, _i = 0; _i < _length; ++_i)
  15668. lengths[_i] = A.List_List$filled(((list2._queue_list$_tail - list2._queue_list$_head & J.get$length$asx(list2._queue_list$_table) - 1) >>> 0) + 1, 0, false, t1);
  15669. _length = list1.get$length(0);
  15670. selections = J.JSArray_JSArray$allocateFixed(_length, $T._eval$1("List<0?>"));
  15671. for (t1 = $T._eval$1("0?"), _i = 0; _i < _length; ++_i)
  15672. selections[_i] = A.List_List$filled((list2._queue_list$_tail - list2._queue_list$_head & J.get$length$asx(list2._queue_list$_table) - 1) >>> 0, null, false, t1);
  15673. for (i = 0; i < (list1._queue_list$_tail - list1._queue_list$_head & J.get$length$asx(list1._queue_list$_table) - 1) >>> 0; i = i0)
  15674. for (i0 = i + 1, j = 0; j < (list2._queue_list$_tail - list2._queue_list$_head & J.get$length$asx(list2._queue_list$_table) - 1) >>> 0; j = j0) {
  15675. selection = select.call$2(list1.$index(0, i), list2.$index(0, j));
  15676. selections[i][j] = selection;
  15677. t1 = lengths[i0];
  15678. j0 = j + 1;
  15679. t1[j0] = selection == null ? Math.max(t1[j], lengths[i][j0]) : lengths[i][j] + 1;
  15680. }
  15681. return new A.longestCommonSubsequence_backtrack(selections, lengths, $T).call$2(list1.get$length(0) - 1, list2.get$length(0) - 1);
  15682. },
  15683. removeFirstWhere(list, test, orElse) {
  15684. var i;
  15685. for (i = 0; i < list.length; ++i) {
  15686. if (!test.call$1(list[i]))
  15687. continue;
  15688. B.JSArray_methods.removeAt$1(list, i);
  15689. return;
  15690. }
  15691. orElse.call$0();
  15692. },
  15693. mapAddAll2(destination, source, K1, K2, $V) {
  15694. source.forEach$1(0, new A.mapAddAll2_closure(destination, K1, K2, $V));
  15695. },
  15696. setAll(map, keys, value) {
  15697. var t1;
  15698. for (t1 = J.get$iterator$ax(keys); t1.moveNext$0();)
  15699. map.$indexSet(0, t1.get$current(t1), value);
  15700. },
  15701. rotateSlice(list, start, end) {
  15702. var i, next,
  15703. element = list.$index(0, end - 1);
  15704. for (i = start; i < end; ++i, element = next) {
  15705. next = list.$index(0, i);
  15706. list.$indexSet(0, i, element);
  15707. }
  15708. },
  15709. mapAsync(iterable, callback, $E, $F) {
  15710. return A.mapAsync$body(iterable, callback, $E, $F, $F._eval$1("Iterable<0>"));
  15711. },
  15712. mapAsync$body(iterable, callback, $E, $F, $async$type) {
  15713. var $async$goto = 0,
  15714. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  15715. $async$returnValue, t2, _i, t1, $async$temp1;
  15716. var $async$mapAsync = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  15717. if ($async$errorCode === 1)
  15718. return A._asyncRethrow($async$result, $async$completer);
  15719. while (true)
  15720. switch ($async$goto) {
  15721. case 0:
  15722. // Function start
  15723. t1 = A._setArrayType([], $F._eval$1("JSArray<0>"));
  15724. t2 = iterable.length, _i = 0;
  15725. case 3:
  15726. // for condition
  15727. if (!(_i < t2)) {
  15728. // goto after for
  15729. $async$goto = 5;
  15730. break;
  15731. }
  15732. $async$temp1 = t1;
  15733. $async$goto = 6;
  15734. return A._asyncAwait(callback.call$1(iterable[_i]), $async$mapAsync);
  15735. case 6:
  15736. // returning from await.
  15737. $async$temp1.push($async$result);
  15738. case 4:
  15739. // for update
  15740. ++_i;
  15741. // goto for condition
  15742. $async$goto = 3;
  15743. break;
  15744. case 5:
  15745. // after for
  15746. $async$returnValue = t1;
  15747. // goto return
  15748. $async$goto = 1;
  15749. break;
  15750. case 1:
  15751. // return
  15752. return A._asyncReturn($async$returnValue, $async$completer);
  15753. }
  15754. });
  15755. return A._asyncStartSync($async$mapAsync, $async$completer);
  15756. },
  15757. putIfAbsentAsync(map, key, ifAbsent, $K, $V) {
  15758. return A.putIfAbsentAsync$body(map, key, ifAbsent, $K, $V, $V);
  15759. },
  15760. putIfAbsentAsync$body(map, key, ifAbsent, $K, $V, $async$type) {
  15761. var $async$goto = 0,
  15762. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  15763. $async$returnValue, t1, value;
  15764. var $async$putIfAbsentAsync = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  15765. if ($async$errorCode === 1)
  15766. return A._asyncRethrow($async$result, $async$completer);
  15767. while (true)
  15768. switch ($async$goto) {
  15769. case 0:
  15770. // Function start
  15771. if (map.containsKey$1(key)) {
  15772. t1 = map.$index(0, key);
  15773. $async$returnValue = t1 == null ? $V._as(t1) : t1;
  15774. // goto return
  15775. $async$goto = 1;
  15776. break;
  15777. }
  15778. $async$goto = 3;
  15779. return A._asyncAwait(ifAbsent.call$0(), $async$putIfAbsentAsync);
  15780. case 3:
  15781. // returning from await.
  15782. value = $async$result;
  15783. map.$indexSet(0, key, value);
  15784. $async$returnValue = value;
  15785. // goto return
  15786. $async$goto = 1;
  15787. break;
  15788. case 1:
  15789. // return
  15790. return A._asyncReturn($async$returnValue, $async$completer);
  15791. }
  15792. });
  15793. return A._asyncStartSync($async$putIfAbsentAsync, $async$completer);
  15794. },
  15795. copyMapOfMap(map, K1, K2, $V) {
  15796. var t3, key, child,
  15797. t1 = K2._eval$1("@<0>")._bind$1($V)._eval$1("Map<1,2>"),
  15798. t2 = A.LinkedHashMap_LinkedHashMap$_empty(K1, t1);
  15799. for (t1 = A.MapExtensions_get_pairs(map, K1, t1), t1 = t1.get$iterator(t1); t1.moveNext$0();) {
  15800. t3 = t1.get$current(t1);
  15801. key = t3._0;
  15802. child = t3._1;
  15803. t3 = A.LinkedHashMap_LinkedHashMap(null, null, null, K2, $V);
  15804. t3.addAll$1(0, child);
  15805. t2.$indexSet(0, key, t3);
  15806. }
  15807. return t2;
  15808. },
  15809. copyMapOfList(map, $K, $E) {
  15810. var t3,
  15811. t1 = $E._eval$1("List<0>"),
  15812. t2 = A.LinkedHashMap_LinkedHashMap$_empty($K, t1);
  15813. for (t1 = A.MapExtensions_get_pairs(map, $K, t1), t1 = t1.get$iterator(t1); t1.moveNext$0();) {
  15814. t3 = t1.get$current(t1);
  15815. t2.$indexSet(0, t3._0, J.toList$0$ax(t3._1));
  15816. }
  15817. return t2;
  15818. },
  15819. consumeEscapedCharacter(scanner) {
  15820. var _1_0, value, i, next, t1;
  15821. scanner.expectChar$1(92);
  15822. _1_0 = scanner.peekChar$0();
  15823. if (_1_0 == null)
  15824. return 65533;
  15825. if (_1_0 === 10 || _1_0 === 13 || _1_0 === 12)
  15826. scanner.error$1(0, "Expected escape sequence.");
  15827. if (A.CharacterExtension_get_isHex(_1_0)) {
  15828. for (value = 0, i = 0; i < 6; ++i) {
  15829. next = scanner.peekChar$0();
  15830. if (next != null) {
  15831. t1 = true;
  15832. if (!(next >= 48 && next <= 57))
  15833. if (!(next >= 97 && next <= 102))
  15834. t1 = next >= 65 && next <= 70;
  15835. t1 = !t1;
  15836. } else
  15837. t1 = true;
  15838. if (t1)
  15839. break;
  15840. value = (value << 4 >>> 0) + A.asHex(scanner.readChar$0());
  15841. }
  15842. t1 = scanner.peekChar$0();
  15843. if (t1 === 32 || t1 === 9 || t1 === 10 || t1 === 13 || t1 === 12)
  15844. scanner.readChar$0();
  15845. $label0$1: {
  15846. if (0 !== value)
  15847. t1 = value >= 55296 && value <= 57343 || value >= 1114111;
  15848. else
  15849. t1 = true;
  15850. if (t1) {
  15851. t1 = 65533;
  15852. break $label0$1;
  15853. }
  15854. t1 = value;
  15855. break $label0$1;
  15856. }
  15857. return t1;
  15858. }
  15859. return scanner.readChar$0();
  15860. },
  15861. throwWithTrace(error, originalError, trace) {
  15862. var t1 = A.getTrace(originalError);
  15863. A.attachTrace(error, t1 == null ? trace : t1);
  15864. throw A.wrapException(error);
  15865. },
  15866. attachTrace(error, trace) {
  15867. var t1;
  15868. if (trace.toString$0(0).length === 0)
  15869. return;
  15870. t1 = $.$get$_traces();
  15871. A.Expando__checkType(error);
  15872. if (t1._jsWeakMap.get(error) == null)
  15873. t1.$indexSet(0, error, trace);
  15874. },
  15875. getTrace(error) {
  15876. var t1;
  15877. if (typeof error == "string" || typeof error == "number" || A._isBool(error))
  15878. t1 = null;
  15879. else {
  15880. t1 = $.$get$_traces();
  15881. A.Expando__checkType(error);
  15882. t1 = t1._jsWeakMap.get(error);
  15883. }
  15884. return t1;
  15885. },
  15886. indent_closure: function indent_closure(t0) {
  15887. this.indentation = t0;
  15888. },
  15889. flattenVertically_closure: function flattenVertically_closure(t0) {
  15890. this.T = t0;
  15891. },
  15892. flattenVertically_closure0: function flattenVertically_closure0(t0, t1) {
  15893. this.result = t0;
  15894. this.T = t1;
  15895. },
  15896. longestCommonSubsequence_backtrack: function longestCommonSubsequence_backtrack(t0, t1, t2) {
  15897. this.selections = t0;
  15898. this.lengths = t1;
  15899. this.T = t2;
  15900. },
  15901. mapAddAll2_closure: function mapAddAll2_closure(t0, t1, t2, t3) {
  15902. var _ = this;
  15903. _.destination = t0;
  15904. _.K1 = t1;
  15905. _.K2 = t2;
  15906. _.V = t3;
  15907. },
  15908. SassApiValue_assertSelector(_this, allowParent, $name) {
  15909. var error, stackTrace, t1, exception,
  15910. string = _this._selectorString$1($name);
  15911. try {
  15912. t1 = A.SelectorList_SelectorList$parse(string, allowParent, null, false);
  15913. return t1;
  15914. } catch (exception) {
  15915. t1 = A.unwrapException(exception);
  15916. if (type$.SassFormatException._is(t1)) {
  15917. error = t1;
  15918. stackTrace = A.getTraceFromException(exception);
  15919. t1 = B.JSString_methods.replaceFirst$2(J.toString$0$(error), "Error: ", "");
  15920. A.throwWithTrace(new A.SassScriptException($name == null ? t1 : "$" + $name + ": " + t1), error, stackTrace);
  15921. } else
  15922. throw exception;
  15923. }
  15924. },
  15925. SassApiValue_assertCompoundSelector(_this, $name) {
  15926. var error, stackTrace, t1, exception,
  15927. allowParent = false,
  15928. string = _this._selectorString$1($name);
  15929. try {
  15930. t1 = new A.SelectorParser(allowParent, false, A.SpanScanner$(string, null), null).parseCompoundSelector$0();
  15931. return t1;
  15932. } catch (exception) {
  15933. t1 = A.unwrapException(exception);
  15934. if (type$.SassFormatException._is(t1)) {
  15935. error = t1;
  15936. stackTrace = A.getTraceFromException(exception);
  15937. t1 = B.JSString_methods.replaceFirst$2(J.toString$0$(error), "Error: ", "");
  15938. A.throwWithTrace(new A.SassScriptException("$" + $name + ": " + t1), error, stackTrace);
  15939. } else
  15940. throw exception;
  15941. }
  15942. },
  15943. Value: function Value() {
  15944. },
  15945. SassArgumentList$(contents, keywords, separator) {
  15946. var t1 = type$.Value;
  15947. t1 = new A.SassArgumentList(A.ConstantMap_ConstantMap$from(keywords, type$.String, t1), A.List_List$unmodifiable(contents, t1), separator, false);
  15948. t1.SassList$3$brackets(contents, separator, false);
  15949. return t1;
  15950. },
  15951. SassArgumentList: function SassArgumentList(t0, t1, t2, t3) {
  15952. var _ = this;
  15953. _._keywords = t0;
  15954. _._wereKeywordsAccessed = false;
  15955. _._list$_contents = t1;
  15956. _._separator = t2;
  15957. _._hasBrackets = t3;
  15958. },
  15959. SassBoolean: function SassBoolean(t0) {
  15960. this.value = t0;
  15961. },
  15962. SassCalculation_calc(argument) {
  15963. var t1,
  15964. _0_0 = A.SassCalculation__simplify(argument);
  15965. $label0$0: {
  15966. if (_0_0 instanceof A.SassNumber) {
  15967. t1 = _0_0;
  15968. break $label0$0;
  15969. }
  15970. if (_0_0 instanceof A.SassCalculation) {
  15971. t1 = _0_0;
  15972. break $label0$0;
  15973. }
  15974. t1 = new A.SassCalculation("calc", A.List_List$unmodifiable([_0_0], type$.Object));
  15975. break $label0$0;
  15976. }
  15977. return t1;
  15978. },
  15979. SassCalculation_min($arguments) {
  15980. var minimum, _i, arg, t2,
  15981. args = A.List_List$unmodifiable(new A.MappedListIterable($arguments, A.calculation_SassCalculation__simplify$closure(), A._arrayInstanceType($arguments)._eval$1("MappedListIterable<1,@>")), type$.Object),
  15982. t1 = args.length;
  15983. if (t1 === 0)
  15984. throw A.wrapException(A.ArgumentError$("min() must have at least one argument.", null));
  15985. for (minimum = null, _i = 0; _i < t1; ++_i) {
  15986. arg = args[_i];
  15987. if (arg instanceof A.SassNumber)
  15988. t2 = minimum != null && !minimum.isComparableTo$1(arg);
  15989. else
  15990. t2 = true;
  15991. if (t2) {
  15992. minimum = null;
  15993. break;
  15994. } else if (minimum == null || minimum.greaterThan$1(arg).value)
  15995. minimum = arg;
  15996. }
  15997. if (minimum != null)
  15998. return minimum;
  15999. A.SassCalculation__verifyCompatibleNumbers(args);
  16000. return new A.SassCalculation("min", args);
  16001. },
  16002. SassCalculation_max($arguments) {
  16003. var maximum, _i, arg, t2,
  16004. args = A.List_List$unmodifiable(new A.MappedListIterable($arguments, A.calculation_SassCalculation__simplify$closure(), A._arrayInstanceType($arguments)._eval$1("MappedListIterable<1,@>")), type$.Object),
  16005. t1 = args.length;
  16006. if (t1 === 0)
  16007. throw A.wrapException(A.ArgumentError$("max() must have at least one argument.", null));
  16008. for (maximum = null, _i = 0; _i < t1; ++_i) {
  16009. arg = args[_i];
  16010. if (arg instanceof A.SassNumber)
  16011. t2 = maximum != null && !maximum.isComparableTo$1(arg);
  16012. else
  16013. t2 = true;
  16014. if (t2) {
  16015. maximum = null;
  16016. break;
  16017. } else if (maximum == null || maximum.lessThan$1(arg).value)
  16018. maximum = arg;
  16019. }
  16020. if (maximum != null)
  16021. return maximum;
  16022. A.SassCalculation__verifyCompatibleNumbers(args);
  16023. return new A.SassCalculation("max", args);
  16024. },
  16025. SassCalculation_hypot($arguments) {
  16026. var first, subtotal, i, number, value, t2, t3,
  16027. args = A.List_List$unmodifiable(new A.MappedListIterable($arguments, A.calculation_SassCalculation__simplify$closure(), A._arrayInstanceType($arguments)._eval$1("MappedListIterable<1,@>")), type$.Object),
  16028. t1 = args.length;
  16029. if (t1 === 0)
  16030. throw A.wrapException(A.ArgumentError$("hypot() must have at least one argument.", null));
  16031. A.SassCalculation__verifyCompatibleNumbers(args);
  16032. first = B.JSArray_methods.get$first(args);
  16033. if (!(first instanceof A.SassNumber) || first.hasUnit$1("%"))
  16034. return new A.SassCalculation("hypot", args);
  16035. for (subtotal = 0, i = 0; i < t1;) {
  16036. number = args[i];
  16037. if (!(number instanceof A.SassNumber) || !number.hasCompatibleUnits$1(first))
  16038. return new A.SassCalculation("hypot", args);
  16039. ++i;
  16040. value = number.convertValueToMatch$3(first, "numbers[" + i + "]", "numbers[1]");
  16041. subtotal += value * value;
  16042. }
  16043. t1 = Math.sqrt(subtotal);
  16044. t2 = J.getInterceptor$x(first);
  16045. t3 = t2.get$numeratorUnits(first);
  16046. return A.SassNumber_SassNumber$withUnits(t1, t2.get$denominatorUnits(first), t3);
  16047. },
  16048. SassCalculation_abs(argument) {
  16049. argument = A.SassCalculation__simplify(argument);
  16050. if (!(argument instanceof A.SassNumber))
  16051. return new A.SassCalculation("abs", A._setArrayType([argument], type$.JSArray_Object));
  16052. if (argument.hasUnit$1("%"))
  16053. A.warnForDeprecation(string$.Passinp + argument.toString$0(0) + ")\nTo emit a CSS abs() now: abs(#{" + argument.toString$0(0) + string$.x7d__Mor, B.Deprecation_Zk6);
  16054. return A.SassNumber_SassNumber(Math.abs(argument._number$_value), null).coerceToMatch$1(argument);
  16055. },
  16056. SassCalculation_exp(argument) {
  16057. argument = A.SassCalculation__simplify(argument);
  16058. if (!(argument instanceof A.SassNumber))
  16059. return new A.SassCalculation("exp", A._setArrayType([argument], type$.JSArray_Object));
  16060. argument.assertNoUnits$0();
  16061. return A.pow0(A.SassNumber_SassNumber(2.718281828459045, null), argument);
  16062. },
  16063. SassCalculation_sign(argument) {
  16064. var t1, _0_2, t2, arg;
  16065. argument = A.SassCalculation__simplify(argument);
  16066. $label0$0: {
  16067. t1 = argument instanceof A.SassNumber;
  16068. if (t1) {
  16069. _0_2 = argument._number$_value;
  16070. if (!isNaN(_0_2))
  16071. t2 = 0 === _0_2;
  16072. else
  16073. t2 = true;
  16074. } else
  16075. t2 = false;
  16076. if (t2) {
  16077. t1 = argument;
  16078. break $label0$0;
  16079. }
  16080. if (t1) {
  16081. t1 = !argument.hasUnit$1("%");
  16082. arg = argument;
  16083. } else {
  16084. arg = null;
  16085. t1 = false;
  16086. }
  16087. if (t1) {
  16088. t1 = A.SassNumber_SassNumber(J.get$sign$in(arg._number$_value), null).coerceToMatch$1(argument);
  16089. break $label0$0;
  16090. }
  16091. t1 = new A.SassCalculation("sign", A._setArrayType([argument], type$.JSArray_Object));
  16092. break $label0$0;
  16093. }
  16094. return t1;
  16095. },
  16096. SassCalculation_clamp(min, value, max) {
  16097. var t1, args;
  16098. if (value == null && max != null)
  16099. throw A.wrapException(A.ArgumentError$("If value is null, max must also be null.", null));
  16100. min = A.SassCalculation__simplify(min);
  16101. value = A.NullableExtension_andThen(value, A.calculation_SassCalculation__simplify$closure());
  16102. max = A.NullableExtension_andThen(max, A.calculation_SassCalculation__simplify$closure());
  16103. if (min instanceof A.SassNumber && value instanceof A.SassNumber && max instanceof A.SassNumber && min.hasCompatibleUnits$1(value) && min.hasCompatibleUnits$1(max)) {
  16104. if (value.lessThanOrEquals$1(min).value)
  16105. return min;
  16106. if (value.greaterThanOrEquals$1(max).value)
  16107. return max;
  16108. return value;
  16109. }
  16110. t1 = [min];
  16111. if (value != null)
  16112. t1.push(value);
  16113. if (max != null)
  16114. t1.push(max);
  16115. args = A.List_List$unmodifiable(t1, type$.Object);
  16116. A.SassCalculation__verifyCompatibleNumbers(args);
  16117. A.SassCalculation__verifyLength(args, 3);
  16118. return new A.SassCalculation("clamp", args);
  16119. },
  16120. SassCalculation_pow(base, exponent) {
  16121. var t1 = A._setArrayType([base], type$.JSArray_Object);
  16122. if (exponent != null)
  16123. t1.push(exponent);
  16124. A.SassCalculation__verifyLength(t1, 2);
  16125. base = A.SassCalculation__simplify(base);
  16126. exponent = A.NullableExtension_andThen(exponent, A.calculation_SassCalculation__simplify$closure());
  16127. if (!(base instanceof A.SassNumber) || !(exponent instanceof A.SassNumber))
  16128. return new A.SassCalculation("pow", t1);
  16129. base.assertNoUnits$0();
  16130. exponent.assertNoUnits$0();
  16131. return A.pow0(base, exponent);
  16132. },
  16133. SassCalculation_log(number, base) {
  16134. var t1, t2;
  16135. number = A.SassCalculation__simplify(number);
  16136. base = A.NullableExtension_andThen(base, A.calculation_SassCalculation__simplify$closure());
  16137. t1 = A._setArrayType([number], type$.JSArray_Object);
  16138. t2 = base != null;
  16139. if (t2)
  16140. t1.push(base);
  16141. if (number instanceof A.SassNumber)
  16142. t2 = t2 && !(base instanceof A.SassNumber);
  16143. else
  16144. t2 = true;
  16145. if (t2)
  16146. return new A.SassCalculation("log", t1);
  16147. number.assertNoUnits$0();
  16148. if (base instanceof A.SassNumber) {
  16149. base.assertNoUnits$0();
  16150. return A.log(number, base);
  16151. }
  16152. return A.log(number, null);
  16153. },
  16154. SassCalculation_atan2(y, x) {
  16155. var t1;
  16156. y = A.SassCalculation__simplify(y);
  16157. x = A.NullableExtension_andThen(x, A.calculation_SassCalculation__simplify$closure());
  16158. t1 = A._setArrayType([y], type$.JSArray_Object);
  16159. if (x != null)
  16160. t1.push(x);
  16161. A.SassCalculation__verifyLength(t1, 2);
  16162. A.SassCalculation__verifyCompatibleNumbers(t1);
  16163. if (!(y instanceof A.SassNumber) || !(x instanceof A.SassNumber) || y.hasUnit$1("%") || x.hasUnit$1("%") || !y.hasCompatibleUnits$1(x))
  16164. return new A.SassCalculation("atan2", t1);
  16165. return A.SassNumber_SassNumber$withUnits(Math.atan2(y._number$_value, x.convertValueToMatch$3(y, "x", "y")) * 57.29577951308232, null, A._setArrayType(["deg"], type$.JSArray_String));
  16166. },
  16167. SassCalculation_rem(dividend, modulus) {
  16168. var t1, result;
  16169. dividend = A.SassCalculation__simplify(dividend);
  16170. modulus = A.NullableExtension_andThen(modulus, A.calculation_SassCalculation__simplify$closure());
  16171. t1 = A._setArrayType([dividend], type$.JSArray_Object);
  16172. if (modulus != null)
  16173. t1.push(modulus);
  16174. A.SassCalculation__verifyLength(t1, 2);
  16175. A.SassCalculation__verifyCompatibleNumbers(t1);
  16176. if (!(dividend instanceof A.SassNumber) || !(modulus instanceof A.SassNumber) || !dividend.hasCompatibleUnits$1(modulus))
  16177. return new A.SassCalculation("rem", t1);
  16178. result = dividend.modulo$1(modulus);
  16179. t1 = modulus._number$_value;
  16180. if (A.DoubleWithSignedZero_get_signIncludingZero(t1) !== A.DoubleWithSignedZero_get_signIncludingZero(dividend._number$_value)) {
  16181. if (t1 == 1 / 0 || t1 == -1 / 0)
  16182. return dividend;
  16183. if (result._number$_value === 0)
  16184. return result.unaryMinus$0();
  16185. return result.minus$1(modulus);
  16186. }
  16187. return result;
  16188. },
  16189. SassCalculation_mod(dividend, modulus) {
  16190. var t1;
  16191. dividend = A.SassCalculation__simplify(dividend);
  16192. modulus = A.NullableExtension_andThen(modulus, A.calculation_SassCalculation__simplify$closure());
  16193. t1 = A._setArrayType([dividend], type$.JSArray_Object);
  16194. if (modulus != null)
  16195. t1.push(modulus);
  16196. A.SassCalculation__verifyLength(t1, 2);
  16197. A.SassCalculation__verifyCompatibleNumbers(t1);
  16198. if (!(dividend instanceof A.SassNumber) || !(modulus instanceof A.SassNumber) || !dividend.hasCompatibleUnits$1(modulus))
  16199. return new A.SassCalculation("mod", t1);
  16200. return dividend.modulo$1(modulus);
  16201. },
  16202. SassCalculation_round(strategyOrNumber, numberOrStep, step) {
  16203. var number, t2, _0_2_isSet, _0_2_isSet0, _0_10_isSet, _0_8, _0_12, _0_14, _0_14_isSet, _0_16, _0_16_isSet, strategy, _0_5_isSet0, _0_12_isSet, t3, t4, _0_8_isSet, _0_8_isSet0, rest, _null = null, _s5_ = "round",
  16204. _0_1 = A.SassCalculation__simplify(strategyOrNumber),
  16205. _0_2 = A.NullableExtension_andThen(numberOrStep, A.calculation_SassCalculation__simplify$closure()),
  16206. _0_5 = A.NullableExtension_andThen(step, A.calculation_SassCalculation__simplify$closure()),
  16207. _0_10 = _0_1,
  16208. _0_4_isSet = _0_1 instanceof A.SassNumber,
  16209. _0_4 = _null,
  16210. _0_20 = _null,
  16211. _0_6 = _null,
  16212. _0_6_isSet = false,
  16213. _0_50 = _null,
  16214. _0_5_isSet = false,
  16215. t1 = false;
  16216. if (_0_4_isSet) {
  16217. type$.SassNumber._as(_0_10);
  16218. _0_4 = _0_2 == null;
  16219. _0_5_isSet = _0_4;
  16220. _0_20 = _0_2;
  16221. if (_0_5_isSet) {
  16222. _0_6 = _0_5 == null;
  16223. t1 = _0_6;
  16224. _0_50 = _0_5;
  16225. }
  16226. _0_6_isSet = _0_5_isSet;
  16227. number = _0_10;
  16228. _0_1 = number;
  16229. } else {
  16230. number = _null;
  16231. _0_1 = _0_10;
  16232. }
  16233. if (t1) {
  16234. t1 = B.JSNumber_methods.round$0(number._number$_value);
  16235. t2 = number.get$numeratorUnits(number);
  16236. return A.SassNumber_SassNumber$withUnits(t1, number.get$denominatorUnits(number), t2);
  16237. }
  16238. step = _null;
  16239. t1 = false;
  16240. if (_0_1 instanceof A.SassNumber) {
  16241. _0_2_isSet = true;
  16242. if (_0_4_isSet) {
  16243. t2 = _0_20;
  16244. _0_2_isSet0 = _0_4_isSet;
  16245. } else {
  16246. t2 = _0_2;
  16247. _0_2_isSet0 = _0_2_isSet;
  16248. _0_20 = t2;
  16249. }
  16250. if (t2 instanceof A.SassNumber) {
  16251. if (_0_2_isSet0) {
  16252. t2 = _0_20;
  16253. _0_2_isSet = _0_2_isSet0;
  16254. } else {
  16255. t2 = _0_2;
  16256. _0_20 = t2;
  16257. }
  16258. type$.SassNumber._as(t2);
  16259. if (_0_6_isSet)
  16260. t1 = _0_6;
  16261. else {
  16262. if (_0_5_isSet)
  16263. t1 = _0_50;
  16264. else {
  16265. t1 = _0_5;
  16266. _0_50 = t1;
  16267. _0_5_isSet = true;
  16268. }
  16269. _0_6 = t1 == null;
  16270. t1 = _0_6;
  16271. _0_6_isSet = true;
  16272. }
  16273. t1 = t1 && !_0_1.hasCompatibleUnits$1(t2);
  16274. step = t2;
  16275. } else
  16276. _0_2_isSet = _0_2_isSet0;
  16277. number = _0_1;
  16278. } else {
  16279. number = _null;
  16280. _0_2_isSet = _0_4_isSet;
  16281. }
  16282. if (t1) {
  16283. t1 = type$.JSArray_Object;
  16284. A.SassCalculation__verifyCompatibleNumbers(A._setArrayType([number, step], t1));
  16285. return new A.SassCalculation(_s5_, A._setArrayType([number, step], t1));
  16286. }
  16287. step = _null;
  16288. t1 = false;
  16289. if (_0_1 instanceof A.SassNumber) {
  16290. _0_2_isSet0 = true;
  16291. if (_0_2_isSet)
  16292. t2 = _0_20;
  16293. else {
  16294. t2 = _0_2;
  16295. _0_2_isSet = _0_2_isSet0;
  16296. _0_20 = t2;
  16297. }
  16298. if (t2 instanceof A.SassNumber) {
  16299. if (_0_2_isSet)
  16300. t2 = _0_20;
  16301. else {
  16302. t2 = _0_2;
  16303. _0_2_isSet = _0_2_isSet0;
  16304. _0_20 = t2;
  16305. }
  16306. type$.SassNumber._as(t2);
  16307. if (_0_6_isSet)
  16308. t1 = _0_6;
  16309. else {
  16310. if (_0_5_isSet)
  16311. t1 = _0_50;
  16312. else {
  16313. t1 = _0_5;
  16314. _0_50 = t1;
  16315. _0_5_isSet = true;
  16316. }
  16317. _0_6 = t1 == null;
  16318. t1 = _0_6;
  16319. _0_6_isSet = true;
  16320. }
  16321. step = t2;
  16322. }
  16323. number = _0_1;
  16324. } else
  16325. number = _null;
  16326. if (t1) {
  16327. A.SassCalculation__verifyCompatibleNumbers(A._setArrayType([number, step], type$.JSArray_Object));
  16328. return A.SassCalculation__roundWithStep("nearest", number, step);
  16329. }
  16330. _0_10_isSet = _0_1 instanceof A.SassString;
  16331. _0_10 = _null;
  16332. _0_8 = _null;
  16333. _0_12 = _null;
  16334. _0_14 = _null;
  16335. _0_14_isSet = false;
  16336. _0_16 = _null;
  16337. _0_16_isSet = false;
  16338. strategy = _null;
  16339. number = _null;
  16340. step = _null;
  16341. t1 = false;
  16342. if (_0_10_isSet) {
  16343. _0_2_isSet0 = true;
  16344. _0_5_isSet0 = true;
  16345. _0_8 = _0_1._string$_text;
  16346. t2 = _0_8;
  16347. _0_10 = "nearest" === t2;
  16348. t2 = _0_10;
  16349. _0_12_isSet = !t2;
  16350. t2 = true;
  16351. if (_0_12_isSet) {
  16352. _0_12 = "up" === _0_8;
  16353. t3 = _0_12;
  16354. _0_14_isSet = !t3;
  16355. if (_0_14_isSet) {
  16356. _0_14 = "down" === _0_8;
  16357. t3 = _0_14;
  16358. _0_16_isSet = !t3;
  16359. if (_0_16_isSet) {
  16360. _0_16 = "to-zero" === _0_8;
  16361. t2 = _0_16;
  16362. }
  16363. }
  16364. }
  16365. if (t2) {
  16366. if (_0_2_isSet)
  16367. t2 = _0_20;
  16368. else {
  16369. t2 = _0_2;
  16370. _0_2_isSet = _0_2_isSet0;
  16371. _0_20 = t2;
  16372. }
  16373. if (t2 instanceof A.SassNumber) {
  16374. if (_0_2_isSet)
  16375. t2 = _0_20;
  16376. else {
  16377. t2 = _0_2;
  16378. _0_2_isSet = _0_2_isSet0;
  16379. _0_20 = t2;
  16380. }
  16381. t3 = type$.SassNumber;
  16382. t3._as(t2);
  16383. if (_0_5_isSet)
  16384. t4 = _0_50;
  16385. else {
  16386. t4 = _0_5;
  16387. _0_5_isSet = _0_5_isSet0;
  16388. _0_50 = t4;
  16389. }
  16390. if (t4 instanceof A.SassNumber) {
  16391. if (_0_5_isSet)
  16392. t1 = _0_50;
  16393. else {
  16394. t1 = _0_5;
  16395. _0_5_isSet = _0_5_isSet0;
  16396. _0_50 = t1;
  16397. }
  16398. t3._as(t1);
  16399. t3 = !t2.hasCompatibleUnits$1(t1);
  16400. step = t1;
  16401. t1 = t3;
  16402. }
  16403. number = t2;
  16404. }
  16405. strategy = _0_1;
  16406. }
  16407. } else
  16408. _0_12_isSet = false;
  16409. if (t1) {
  16410. t1 = type$.JSArray_Object;
  16411. A.SassCalculation__verifyCompatibleNumbers(A._setArrayType([number, step], t1));
  16412. return new A.SassCalculation(_s5_, A._setArrayType([strategy, number, step], t1));
  16413. }
  16414. strategy = _null;
  16415. number = _null;
  16416. step = _null;
  16417. t1 = false;
  16418. if (_0_1 instanceof A.SassString) {
  16419. _0_2_isSet0 = true;
  16420. _0_5_isSet0 = true;
  16421. _0_8_isSet = true;
  16422. if (_0_10_isSet) {
  16423. t2 = _0_10;
  16424. _0_8_isSet0 = _0_10_isSet;
  16425. } else {
  16426. _0_8 = _0_1._string$_text;
  16427. t2 = _0_8;
  16428. _0_10 = "nearest" === t2;
  16429. t2 = _0_10;
  16430. _0_8_isSet0 = _0_8_isSet;
  16431. _0_10_isSet = true;
  16432. }
  16433. t3 = true;
  16434. if (!t2) {
  16435. if (_0_12_isSet)
  16436. t2 = _0_12;
  16437. else {
  16438. if (_0_8_isSet0)
  16439. t2 = _0_8;
  16440. else {
  16441. _0_8 = _0_1._string$_text;
  16442. t2 = _0_8;
  16443. _0_8_isSet0 = _0_8_isSet;
  16444. }
  16445. _0_12 = "up" === t2;
  16446. t2 = _0_12;
  16447. _0_12_isSet = true;
  16448. }
  16449. if (!t2) {
  16450. if (_0_14_isSet)
  16451. t2 = _0_14;
  16452. else {
  16453. if (_0_8_isSet0)
  16454. t2 = _0_8;
  16455. else {
  16456. _0_8 = _0_1._string$_text;
  16457. t2 = _0_8;
  16458. _0_8_isSet0 = _0_8_isSet;
  16459. }
  16460. _0_14 = "down" === t2;
  16461. t2 = _0_14;
  16462. _0_14_isSet = true;
  16463. }
  16464. if (!t2)
  16465. if (_0_16_isSet) {
  16466. t2 = _0_16;
  16467. _0_8_isSet = _0_8_isSet0;
  16468. } else {
  16469. if (_0_8_isSet0) {
  16470. t2 = _0_8;
  16471. _0_8_isSet = _0_8_isSet0;
  16472. } else {
  16473. _0_8 = _0_1._string$_text;
  16474. t2 = _0_8;
  16475. }
  16476. _0_16 = "to-zero" === t2;
  16477. t2 = _0_16;
  16478. _0_16_isSet = true;
  16479. }
  16480. else {
  16481. t2 = t3;
  16482. _0_8_isSet = _0_8_isSet0;
  16483. }
  16484. } else {
  16485. t2 = t3;
  16486. _0_8_isSet = _0_8_isSet0;
  16487. }
  16488. } else {
  16489. t2 = t3;
  16490. _0_8_isSet = _0_8_isSet0;
  16491. }
  16492. if (t2) {
  16493. if (_0_2_isSet)
  16494. t2 = _0_20;
  16495. else {
  16496. t2 = _0_2;
  16497. _0_2_isSet = _0_2_isSet0;
  16498. _0_20 = t2;
  16499. }
  16500. if (t2 instanceof A.SassNumber) {
  16501. if (_0_2_isSet)
  16502. t2 = _0_20;
  16503. else {
  16504. t2 = _0_2;
  16505. _0_2_isSet = _0_2_isSet0;
  16506. _0_20 = t2;
  16507. }
  16508. t3 = type$.SassNumber;
  16509. t3._as(t2);
  16510. if (_0_5_isSet)
  16511. t1 = _0_50;
  16512. else {
  16513. t1 = _0_5;
  16514. _0_5_isSet = _0_5_isSet0;
  16515. _0_50 = t1;
  16516. }
  16517. t1 = t1 instanceof A.SassNumber;
  16518. if (t1) {
  16519. if (_0_5_isSet)
  16520. t4 = _0_50;
  16521. else {
  16522. t4 = _0_5;
  16523. _0_5_isSet = _0_5_isSet0;
  16524. _0_50 = t4;
  16525. }
  16526. t3._as(t4);
  16527. step = t4;
  16528. }
  16529. number = t2;
  16530. }
  16531. strategy = _0_1;
  16532. }
  16533. } else
  16534. _0_8_isSet = _0_10_isSet;
  16535. if (t1) {
  16536. A.SassCalculation__verifyCompatibleNumbers(A._setArrayType([number, step], type$.JSArray_Object));
  16537. return A.SassCalculation__roundWithStep(strategy._string$_text, number, step);
  16538. }
  16539. strategy = _null;
  16540. rest = _null;
  16541. t1 = false;
  16542. if (_0_1 instanceof A.SassString) {
  16543. _0_2_isSet0 = true;
  16544. _0_8_isSet0 = true;
  16545. if (_0_10_isSet)
  16546. t2 = _0_10;
  16547. else {
  16548. if (_0_8_isSet)
  16549. t2 = _0_8;
  16550. else {
  16551. _0_8 = _0_1._string$_text;
  16552. t2 = _0_8;
  16553. _0_8_isSet = _0_8_isSet0;
  16554. }
  16555. _0_10 = "nearest" === t2;
  16556. t2 = _0_10;
  16557. _0_10_isSet = true;
  16558. }
  16559. t3 = true;
  16560. if (!t2) {
  16561. if (_0_12_isSet)
  16562. t2 = _0_12;
  16563. else {
  16564. if (_0_8_isSet)
  16565. t2 = _0_8;
  16566. else {
  16567. _0_8 = _0_1._string$_text;
  16568. t2 = _0_8;
  16569. _0_8_isSet = _0_8_isSet0;
  16570. }
  16571. _0_12 = "up" === t2;
  16572. t2 = _0_12;
  16573. _0_12_isSet = true;
  16574. }
  16575. if (!t2) {
  16576. if (_0_14_isSet)
  16577. t2 = _0_14;
  16578. else {
  16579. if (_0_8_isSet)
  16580. t2 = _0_8;
  16581. else {
  16582. _0_8 = _0_1._string$_text;
  16583. t2 = _0_8;
  16584. _0_8_isSet = _0_8_isSet0;
  16585. }
  16586. _0_14 = "down" === t2;
  16587. t2 = _0_14;
  16588. _0_14_isSet = true;
  16589. }
  16590. if (!t2)
  16591. if (_0_16_isSet)
  16592. t2 = _0_16;
  16593. else {
  16594. if (_0_8_isSet)
  16595. t2 = _0_8;
  16596. else {
  16597. _0_8 = _0_1._string$_text;
  16598. t2 = _0_8;
  16599. _0_8_isSet = _0_8_isSet0;
  16600. }
  16601. _0_16 = "to-zero" === t2;
  16602. t2 = _0_16;
  16603. _0_16_isSet = true;
  16604. }
  16605. else
  16606. t2 = t3;
  16607. } else
  16608. t2 = t3;
  16609. } else
  16610. t2 = t3;
  16611. if (t2) {
  16612. if (_0_2_isSet)
  16613. t2 = _0_20;
  16614. else {
  16615. t2 = _0_2;
  16616. _0_2_isSet = _0_2_isSet0;
  16617. _0_20 = t2;
  16618. }
  16619. if (t2 instanceof A.SassString) {
  16620. if (_0_2_isSet)
  16621. t2 = _0_20;
  16622. else {
  16623. t2 = _0_2;
  16624. _0_2_isSet = _0_2_isSet0;
  16625. _0_20 = t2;
  16626. }
  16627. type$.SassString._as(t2);
  16628. if (_0_6_isSet)
  16629. t1 = _0_6;
  16630. else {
  16631. if (_0_5_isSet)
  16632. t1 = _0_50;
  16633. else {
  16634. t1 = _0_5;
  16635. _0_50 = t1;
  16636. _0_5_isSet = true;
  16637. }
  16638. _0_6 = t1 == null;
  16639. t1 = _0_6;
  16640. _0_6_isSet = true;
  16641. }
  16642. rest = t2;
  16643. }
  16644. strategy = _0_1;
  16645. }
  16646. }
  16647. if (t1)
  16648. return new A.SassCalculation(_s5_, A._setArrayType([strategy, rest], type$.JSArray_Object));
  16649. t1 = false;
  16650. if (_0_1 instanceof A.SassString) {
  16651. _0_8_isSet0 = true;
  16652. if (_0_10_isSet)
  16653. t2 = _0_10;
  16654. else {
  16655. if (_0_8_isSet)
  16656. t2 = _0_8;
  16657. else {
  16658. _0_8 = _0_1._string$_text;
  16659. t2 = _0_8;
  16660. _0_8_isSet = _0_8_isSet0;
  16661. }
  16662. _0_10 = "nearest" === t2;
  16663. t2 = _0_10;
  16664. _0_10_isSet = true;
  16665. }
  16666. t3 = true;
  16667. if (!t2) {
  16668. if (_0_12_isSet)
  16669. t2 = _0_12;
  16670. else {
  16671. if (_0_8_isSet)
  16672. t2 = _0_8;
  16673. else {
  16674. _0_8 = _0_1._string$_text;
  16675. t2 = _0_8;
  16676. _0_8_isSet = _0_8_isSet0;
  16677. }
  16678. _0_12 = "up" === t2;
  16679. t2 = _0_12;
  16680. _0_12_isSet = true;
  16681. }
  16682. if (!t2) {
  16683. if (_0_14_isSet)
  16684. t2 = _0_14;
  16685. else {
  16686. if (_0_8_isSet)
  16687. t2 = _0_8;
  16688. else {
  16689. _0_8 = _0_1._string$_text;
  16690. t2 = _0_8;
  16691. _0_8_isSet = _0_8_isSet0;
  16692. }
  16693. _0_14 = "down" === t2;
  16694. t2 = _0_14;
  16695. _0_14_isSet = true;
  16696. }
  16697. if (!t2)
  16698. if (_0_16_isSet)
  16699. t2 = _0_16;
  16700. else {
  16701. if (_0_8_isSet)
  16702. t2 = _0_8;
  16703. else {
  16704. _0_8 = _0_1._string$_text;
  16705. t2 = _0_8;
  16706. _0_8_isSet = _0_8_isSet0;
  16707. }
  16708. _0_16 = "to-zero" === t2;
  16709. t2 = _0_16;
  16710. _0_16_isSet = true;
  16711. }
  16712. else
  16713. t2 = t3;
  16714. } else
  16715. t2 = t3;
  16716. } else
  16717. t2 = t3;
  16718. if (t2) {
  16719. if (_0_2_isSet)
  16720. t2 = _0_20;
  16721. else {
  16722. t2 = _0_2;
  16723. _0_20 = t2;
  16724. _0_2_isSet = true;
  16725. }
  16726. if (t2 != null)
  16727. if (_0_6_isSet)
  16728. t1 = _0_6;
  16729. else {
  16730. if (_0_5_isSet)
  16731. t1 = _0_50;
  16732. else {
  16733. t1 = _0_5;
  16734. _0_50 = t1;
  16735. _0_5_isSet = true;
  16736. }
  16737. _0_6 = t1 == null;
  16738. t1 = _0_6;
  16739. _0_6_isSet = true;
  16740. }
  16741. }
  16742. }
  16743. if (t1)
  16744. throw A.wrapException(A.SassScriptException$(string$.If_str, _null));
  16745. t1 = false;
  16746. if (_0_1 instanceof A.SassString) {
  16747. _0_8_isSet0 = true;
  16748. if (_0_10_isSet)
  16749. t2 = _0_10;
  16750. else {
  16751. if (_0_8_isSet)
  16752. t2 = _0_8;
  16753. else {
  16754. _0_8 = _0_1._string$_text;
  16755. t2 = _0_8;
  16756. _0_8_isSet = _0_8_isSet0;
  16757. }
  16758. _0_10 = "nearest" === t2;
  16759. t2 = _0_10;
  16760. _0_10_isSet = true;
  16761. }
  16762. t3 = true;
  16763. if (!t2) {
  16764. if (_0_12_isSet)
  16765. t2 = _0_12;
  16766. else {
  16767. if (_0_8_isSet)
  16768. t2 = _0_8;
  16769. else {
  16770. _0_8 = _0_1._string$_text;
  16771. t2 = _0_8;
  16772. _0_8_isSet = _0_8_isSet0;
  16773. }
  16774. _0_12 = "up" === t2;
  16775. t2 = _0_12;
  16776. _0_12_isSet = true;
  16777. }
  16778. if (!t2) {
  16779. if (_0_14_isSet)
  16780. t2 = _0_14;
  16781. else {
  16782. if (_0_8_isSet)
  16783. t2 = _0_8;
  16784. else {
  16785. _0_8 = _0_1._string$_text;
  16786. t2 = _0_8;
  16787. _0_8_isSet = _0_8_isSet0;
  16788. }
  16789. _0_14 = "down" === t2;
  16790. t2 = _0_14;
  16791. _0_14_isSet = true;
  16792. }
  16793. if (!t2)
  16794. if (_0_16_isSet)
  16795. t2 = _0_16;
  16796. else {
  16797. if (_0_8_isSet)
  16798. t2 = _0_8;
  16799. else {
  16800. _0_8 = _0_1._string$_text;
  16801. t2 = _0_8;
  16802. _0_8_isSet = _0_8_isSet0;
  16803. }
  16804. _0_16 = "to-zero" === t2;
  16805. t2 = _0_16;
  16806. _0_16_isSet = true;
  16807. }
  16808. else
  16809. t2 = t3;
  16810. } else
  16811. t2 = t3;
  16812. } else
  16813. t2 = t3;
  16814. if (t2) {
  16815. if (_0_4_isSet)
  16816. t2 = _0_4;
  16817. else {
  16818. if (_0_2_isSet)
  16819. t2 = _0_20;
  16820. else {
  16821. t2 = _0_2;
  16822. _0_20 = t2;
  16823. _0_2_isSet = true;
  16824. }
  16825. _0_4 = t2 == null;
  16826. t2 = _0_4;
  16827. _0_4_isSet = true;
  16828. }
  16829. if (t2)
  16830. if (_0_6_isSet)
  16831. t1 = _0_6;
  16832. else {
  16833. if (_0_5_isSet)
  16834. t1 = _0_50;
  16835. else {
  16836. t1 = _0_5;
  16837. _0_50 = t1;
  16838. _0_5_isSet = true;
  16839. }
  16840. _0_6 = t1 == null;
  16841. t1 = _0_6;
  16842. _0_6_isSet = true;
  16843. }
  16844. }
  16845. }
  16846. if (t1)
  16847. throw A.wrapException(A.SassScriptException$(string$.Number, _null));
  16848. t1 = false;
  16849. if (_0_1 instanceof A.SassString) {
  16850. if (_0_4_isSet)
  16851. t2 = _0_4;
  16852. else {
  16853. if (_0_2_isSet)
  16854. t2 = _0_20;
  16855. else {
  16856. t2 = _0_2;
  16857. _0_20 = t2;
  16858. _0_2_isSet = true;
  16859. }
  16860. _0_4 = t2 == null;
  16861. t2 = _0_4;
  16862. _0_4_isSet = true;
  16863. }
  16864. if (t2)
  16865. if (_0_6_isSet)
  16866. t1 = _0_6;
  16867. else {
  16868. if (_0_5_isSet)
  16869. t1 = _0_50;
  16870. else {
  16871. t1 = _0_5;
  16872. _0_50 = t1;
  16873. _0_5_isSet = true;
  16874. }
  16875. _0_6 = t1 == null;
  16876. t1 = _0_6;
  16877. _0_6_isSet = true;
  16878. }
  16879. rest = _0_1;
  16880. } else
  16881. rest = _null;
  16882. if (t1)
  16883. return new A.SassCalculation(_s5_, A._setArrayType([rest], type$.JSArray_Object));
  16884. t1 = false;
  16885. if (_0_4_isSet)
  16886. t2 = _0_4;
  16887. else {
  16888. if (_0_2_isSet)
  16889. t2 = _0_20;
  16890. else {
  16891. t2 = _0_2;
  16892. _0_20 = t2;
  16893. _0_2_isSet = true;
  16894. }
  16895. _0_4 = t2 == null;
  16896. t2 = _0_4;
  16897. }
  16898. if (t2)
  16899. if (_0_6_isSet)
  16900. t1 = _0_6;
  16901. else {
  16902. if (_0_5_isSet)
  16903. t1 = _0_50;
  16904. else {
  16905. t1 = _0_5;
  16906. _0_50 = t1;
  16907. _0_5_isSet = true;
  16908. }
  16909. _0_6 = t1 == null;
  16910. t1 = _0_6;
  16911. _0_6_isSet = true;
  16912. }
  16913. if (t1)
  16914. throw A.wrapException(A.SassScriptException$("Single argument " + A.S(_0_1) + " expected to be simplifiable.", _null));
  16915. step = _null;
  16916. t1 = false;
  16917. _0_2_isSet0 = true;
  16918. if (_0_2_isSet)
  16919. t2 = _0_20;
  16920. else {
  16921. t2 = _0_2;
  16922. _0_2_isSet = _0_2_isSet0;
  16923. _0_20 = t2;
  16924. }
  16925. if (t2 != null) {
  16926. if (_0_2_isSet)
  16927. step = _0_20;
  16928. else {
  16929. step = _0_2;
  16930. _0_2_isSet = _0_2_isSet0;
  16931. _0_20 = step;
  16932. }
  16933. if (step == null)
  16934. step = type$.Object._as(step);
  16935. if (_0_6_isSet)
  16936. t1 = _0_6;
  16937. else {
  16938. if (_0_5_isSet)
  16939. t1 = _0_50;
  16940. else {
  16941. t1 = _0_5;
  16942. _0_50 = t1;
  16943. _0_5_isSet = true;
  16944. }
  16945. _0_6 = t1 == null;
  16946. t1 = _0_6;
  16947. }
  16948. }
  16949. if (t1)
  16950. return new A.SassCalculation(_s5_, A._setArrayType([_0_1, step], type$.JSArray_Object));
  16951. if (_0_1 instanceof A.SassString) {
  16952. t1 = true;
  16953. if (_0_10_isSet)
  16954. t2 = _0_10;
  16955. else {
  16956. if (_0_8_isSet)
  16957. t2 = _0_8;
  16958. else {
  16959. _0_8 = _0_1._string$_text;
  16960. t2 = _0_8;
  16961. _0_8_isSet = true;
  16962. }
  16963. _0_10 = "nearest" === t2;
  16964. t2 = _0_10;
  16965. }
  16966. if (!t2) {
  16967. if (_0_12_isSet)
  16968. t2 = _0_12;
  16969. else {
  16970. if (_0_8_isSet)
  16971. t2 = _0_8;
  16972. else {
  16973. _0_8 = _0_1._string$_text;
  16974. t2 = _0_8;
  16975. _0_8_isSet = true;
  16976. }
  16977. _0_12 = "up" === t2;
  16978. t2 = _0_12;
  16979. }
  16980. if (!t2) {
  16981. if (_0_14_isSet)
  16982. t2 = _0_14;
  16983. else {
  16984. if (_0_8_isSet)
  16985. t2 = _0_8;
  16986. else {
  16987. _0_8 = _0_1._string$_text;
  16988. t2 = _0_8;
  16989. _0_8_isSet = true;
  16990. }
  16991. _0_14 = "down" === t2;
  16992. t2 = _0_14;
  16993. }
  16994. if (!t2)
  16995. if (_0_16_isSet)
  16996. t1 = _0_16;
  16997. else {
  16998. if (_0_8_isSet)
  16999. t1 = _0_8;
  17000. else {
  17001. _0_8 = _0_1._string$_text;
  17002. t1 = _0_8;
  17003. }
  17004. _0_16 = "to-zero" === t1;
  17005. t1 = _0_16;
  17006. }
  17007. }
  17008. }
  17009. } else
  17010. t1 = false;
  17011. if (!t1)
  17012. if (_0_1 instanceof A.SassString)
  17013. t1 = _0_1.get$isVar();
  17014. else
  17015. t1 = false;
  17016. else
  17017. t1 = true;
  17018. number = _null;
  17019. step = _null;
  17020. t2 = false;
  17021. if (t1) {
  17022. _0_2_isSet0 = true;
  17023. _0_5_isSet0 = true;
  17024. type$.SassString._as(_0_1);
  17025. if (_0_2_isSet)
  17026. t1 = _0_20;
  17027. else {
  17028. t1 = _0_2;
  17029. _0_2_isSet = _0_2_isSet0;
  17030. _0_20 = t1;
  17031. }
  17032. if (t1 != null) {
  17033. if (_0_2_isSet)
  17034. number = _0_20;
  17035. else {
  17036. number = _0_2;
  17037. _0_2_isSet = _0_2_isSet0;
  17038. _0_20 = number;
  17039. }
  17040. if (number == null)
  17041. number = type$.Object._as(number);
  17042. if (_0_5_isSet)
  17043. t1 = _0_50;
  17044. else {
  17045. t1 = _0_5;
  17046. _0_5_isSet = _0_5_isSet0;
  17047. _0_50 = t1;
  17048. }
  17049. t1 = t1 != null;
  17050. if (t1) {
  17051. if (_0_5_isSet)
  17052. step = _0_50;
  17053. else {
  17054. step = _0_5;
  17055. _0_5_isSet = _0_5_isSet0;
  17056. _0_50 = step;
  17057. }
  17058. if (step == null)
  17059. step = type$.Object._as(step);
  17060. }
  17061. } else
  17062. t1 = t2;
  17063. strategy = _0_1;
  17064. } else {
  17065. t1 = t2;
  17066. strategy = _null;
  17067. }
  17068. if (t1)
  17069. return new A.SassCalculation(_s5_, A._setArrayType([strategy, number, step], type$.JSArray_Object));
  17070. t1 = false;
  17071. if ((_0_2_isSet ? _0_20 : _0_2) != null)
  17072. t1 = (_0_5_isSet ? _0_50 : _0_5) != null;
  17073. if (t1)
  17074. throw A.wrapException(A.SassScriptException$(A.S(strategyOrNumber) + string$.x20must_b, _null));
  17075. t1 = A.SassScriptException$("Invalid parameters.", _null);
  17076. throw A.wrapException(t1);
  17077. },
  17078. SassCalculation_operateInternal(operator, left, right, inLegacySassFunction, simplify) {
  17079. var t1;
  17080. if (!simplify)
  17081. return new A.CalculationOperation(operator, left, right);
  17082. left = A.SassCalculation__simplify(left);
  17083. right = A.SassCalculation__simplify(right);
  17084. if (B.CalculationOperator_g2q === operator || B.CalculationOperator_CxF === operator) {
  17085. t1 = false;
  17086. if (left instanceof A.SassNumber)
  17087. if (right instanceof A.SassNumber)
  17088. t1 = inLegacySassFunction ? left.isComparableTo$1(right) : left.hasCompatibleUnits$1(right);
  17089. if (t1)
  17090. return operator === B.CalculationOperator_g2q ? left.plus$1(right) : left.minus$1(right);
  17091. A.SassCalculation__verifyCompatibleNumbers(A._setArrayType([left, right], type$.JSArray_Object));
  17092. if (right instanceof A.SassNumber) {
  17093. t1 = right._number$_value;
  17094. t1 = t1 < 0 && !A.fuzzyEquals(t1, 0);
  17095. } else
  17096. t1 = false;
  17097. if (t1) {
  17098. right = right.times$1(A.SassNumber_SassNumber(-1, null));
  17099. operator = operator === B.CalculationOperator_g2q ? B.CalculationOperator_CxF : B.CalculationOperator_g2q;
  17100. }
  17101. return new A.CalculationOperation(operator, left, right);
  17102. } else if (left instanceof A.SassNumber && right instanceof A.SassNumber)
  17103. return operator === B.CalculationOperator_171 ? left.times$1(right) : left.dividedBy$1(right);
  17104. else
  17105. return new A.CalculationOperation(operator, left, right);
  17106. },
  17107. SassCalculation__roundWithStep(strategy, number, step) {
  17108. var _0_2, t1, _0_6, _0_8_isSet, _0_8, _0_9_isSet, _0_9, _0_11, _0_13, stepWithNumberUnit, t2, _null = null;
  17109. if (!A.LinkedHashSet_LinkedHashSet$_literal(["nearest", "up", "down", "to-zero"], type$.String).contains$1(0, strategy))
  17110. throw A.wrapException(A.ArgumentError$(strategy + string$.x20must_b, _null));
  17111. _0_2 = number._number$_value;
  17112. if (_0_2 == 1 / 0 || _0_2 == -1 / 0) {
  17113. t1 = step._number$_value;
  17114. t1 = t1 == 1 / 0 || t1 == -1 / 0;
  17115. } else
  17116. t1 = false;
  17117. if (!t1) {
  17118. t1 = step._number$_value;
  17119. t1 = t1 === 0 || isNaN(_0_2) || isNaN(t1);
  17120. } else
  17121. t1 = true;
  17122. if (t1) {
  17123. t1 = number.get$numeratorUnits(number);
  17124. return A.SassNumber_SassNumber$withUnits(0 / 0, number.get$denominatorUnits(number), t1);
  17125. }
  17126. if (_0_2 == 1 / 0 || _0_2 == -1 / 0)
  17127. return number;
  17128. t1 = step._number$_value;
  17129. if (t1 == 1 / 0 || t1 == -1 / 0) {
  17130. $label0$0: {
  17131. if (0 === _0_2) {
  17132. t1 = number;
  17133. break $label0$0;
  17134. }
  17135. _0_6 = "nearest" === strategy;
  17136. t1 = _0_6;
  17137. _0_8_isSet = !t1;
  17138. _0_8 = _null;
  17139. if (_0_8_isSet) {
  17140. _0_8 = "to-zero" === strategy;
  17141. _0_9_isSet = _0_8;
  17142. } else
  17143. _0_9_isSet = true;
  17144. _0_9 = _null;
  17145. if (_0_9_isSet) {
  17146. _0_9 = _0_2 > 0;
  17147. t1 = _0_9;
  17148. } else
  17149. t1 = false;
  17150. if (t1) {
  17151. t1 = number.get$numeratorUnits(number);
  17152. t1 = A.SassNumber_SassNumber$withUnits(0, number.get$denominatorUnits(number), t1);
  17153. break $label0$0;
  17154. }
  17155. if (!_0_6)
  17156. if (_0_8_isSet)
  17157. t1 = _0_8;
  17158. else {
  17159. _0_8 = "to-zero" === strategy;
  17160. t1 = _0_8;
  17161. }
  17162. else
  17163. t1 = true;
  17164. if (t1) {
  17165. t1 = number.get$numeratorUnits(number);
  17166. t1 = A.SassNumber_SassNumber$withUnits(-0.0, number.get$denominatorUnits(number), t1);
  17167. break $label0$0;
  17168. }
  17169. _0_11 = "up" === strategy;
  17170. t1 = _0_11;
  17171. if (t1)
  17172. if (_0_9_isSet)
  17173. t1 = _0_9;
  17174. else {
  17175. _0_9 = _0_2 > 0;
  17176. t1 = _0_9;
  17177. }
  17178. else
  17179. t1 = false;
  17180. if (t1) {
  17181. t1 = number.get$numeratorUnits(number);
  17182. t1 = A.SassNumber_SassNumber$withUnits(1 / 0, number.get$denominatorUnits(number), t1);
  17183. break $label0$0;
  17184. }
  17185. if (_0_11) {
  17186. t1 = number.get$numeratorUnits(number);
  17187. t1 = A.SassNumber_SassNumber$withUnits(-0.0, number.get$denominatorUnits(number), t1);
  17188. break $label0$0;
  17189. }
  17190. _0_13 = "down" === strategy;
  17191. t1 = _0_13;
  17192. if (t1)
  17193. t1 = _0_2 < 0;
  17194. else
  17195. t1 = false;
  17196. if (t1) {
  17197. t1 = number.get$numeratorUnits(number);
  17198. t1 = A.SassNumber_SassNumber$withUnits(-1 / 0, number.get$denominatorUnits(number), t1);
  17199. break $label0$0;
  17200. }
  17201. if (_0_13) {
  17202. t1 = number.get$numeratorUnits(number);
  17203. t1 = A.SassNumber_SassNumber$withUnits(0, number.get$denominatorUnits(number), t1);
  17204. break $label0$0;
  17205. }
  17206. t1 = A.throwExpression(A.UnsupportedError$("Invalid argument: " + strategy + "."));
  17207. }
  17208. return t1;
  17209. }
  17210. stepWithNumberUnit = step.convertValueToMatch$1(number);
  17211. $label1$1: {
  17212. if ("nearest" === strategy) {
  17213. t1 = B.JSNumber_methods.round$0(_0_2 / stepWithNumberUnit);
  17214. t2 = number.get$numeratorUnits(number);
  17215. t2 = A.SassNumber_SassNumber$withUnits(t1 * stepWithNumberUnit, number.get$denominatorUnits(number), t2);
  17216. t1 = t2;
  17217. break $label1$1;
  17218. }
  17219. if ("up" === strategy) {
  17220. t2 = _0_2 / stepWithNumberUnit;
  17221. t1 = t1 < 0 ? B.JSNumber_methods.floor$0(t2) : B.JSNumber_methods.ceil$0(t2);
  17222. t2 = number.get$numeratorUnits(number);
  17223. t2 = A.SassNumber_SassNumber$withUnits(t1 * stepWithNumberUnit, number.get$denominatorUnits(number), t2);
  17224. t1 = t2;
  17225. break $label1$1;
  17226. }
  17227. if ("down" === strategy) {
  17228. t2 = _0_2 / stepWithNumberUnit;
  17229. t1 = t1 < 0 ? B.JSNumber_methods.ceil$0(t2) : B.JSNumber_methods.floor$0(t2);
  17230. t2 = number.get$numeratorUnits(number);
  17231. t2 = A.SassNumber_SassNumber$withUnits(t1 * stepWithNumberUnit, number.get$denominatorUnits(number), t2);
  17232. t1 = t2;
  17233. break $label1$1;
  17234. }
  17235. if ("to-zero" === strategy) {
  17236. t1 = _0_2 / stepWithNumberUnit;
  17237. if (_0_2 < 0) {
  17238. t1 = B.JSNumber_methods.ceil$0(t1);
  17239. t2 = number.get$numeratorUnits(number);
  17240. t2 = A.SassNumber_SassNumber$withUnits(t1 * stepWithNumberUnit, number.get$denominatorUnits(number), t2);
  17241. t1 = t2;
  17242. } else {
  17243. t1 = B.JSNumber_methods.floor$0(t1);
  17244. t2 = number.get$numeratorUnits(number);
  17245. t2 = A.SassNumber_SassNumber$withUnits(t1 * stepWithNumberUnit, number.get$denominatorUnits(number), t2);
  17246. t1 = t2;
  17247. }
  17248. break $label1$1;
  17249. }
  17250. t1 = number.get$numeratorUnits(number);
  17251. t1 = A.SassNumber_SassNumber$withUnits(0 / 0, number.get$denominatorUnits(number), t1);
  17252. break $label1$1;
  17253. }
  17254. return t1;
  17255. },
  17256. SassCalculation__simplify(arg) {
  17257. var t1, t2, _0_11_isSet, _0_15, _0_12, _0_16_isSet, text, _0_11, _0_16, _0_12_isSet, _0_15_isSet, value, _null = null,
  17258. _s32_ = " can't be used in a calculation.";
  17259. $label0$0: {
  17260. if (arg instanceof A.SassNumber || arg instanceof A.CalculationOperation) {
  17261. t1 = arg;
  17262. break $label0$0;
  17263. }
  17264. t1 = arg instanceof A.SassString;
  17265. t2 = _null;
  17266. if (t1 && !arg._hasQuotes) {
  17267. t1 = arg;
  17268. break $label0$0;
  17269. }
  17270. if (t1)
  17271. A.throwExpression(A.SassScriptException$("Quoted string " + arg.toString$0(0) + _s32_, _null));
  17272. _0_11_isSet = arg instanceof A.SassCalculation;
  17273. _0_15 = _null;
  17274. _0_12 = _null;
  17275. _0_16_isSet = false;
  17276. text = _null;
  17277. t1 = false;
  17278. if (_0_11_isSet) {
  17279. _0_11 = "calc" === arg.name;
  17280. if (_0_11) {
  17281. _0_12 = arg.$arguments;
  17282. _0_15 = _0_12.length === 1;
  17283. _0_16_isSet = _0_15;
  17284. if (_0_16_isSet) {
  17285. _0_16 = _0_12[0];
  17286. t2 = _0_16;
  17287. if (t2 instanceof A.SassString) {
  17288. type$.SassString._as(_0_16);
  17289. if (!_0_16._hasQuotes) {
  17290. text = _0_16._string$_text;
  17291. t1 = A.SassCalculation__needsParentheses(text);
  17292. }
  17293. }
  17294. } else
  17295. _0_16 = t2;
  17296. } else
  17297. _0_16 = t2;
  17298. _0_12_isSet = _0_11;
  17299. _0_15_isSet = _0_12_isSet;
  17300. } else {
  17301. _0_16 = t2;
  17302. _0_11 = _null;
  17303. _0_15_isSet = false;
  17304. _0_12_isSet = false;
  17305. }
  17306. if (t1) {
  17307. t1 = new A.SassString("(" + A.S(text) + ")", false);
  17308. break $label0$0;
  17309. }
  17310. t1 = false;
  17311. if (_0_11_isSet)
  17312. if (_0_11)
  17313. if (_0_15_isSet)
  17314. t1 = _0_15;
  17315. else {
  17316. if (_0_12_isSet)
  17317. t1 = _0_12;
  17318. else {
  17319. _0_12 = arg.$arguments;
  17320. t1 = _0_12;
  17321. _0_12_isSet = true;
  17322. }
  17323. _0_15 = t1.length === 1;
  17324. t1 = _0_15;
  17325. }
  17326. if (t1) {
  17327. if (_0_16_isSet)
  17328. value = _0_16;
  17329. else {
  17330. _0_16 = (_0_12_isSet ? _0_12 : arg.$arguments)[0];
  17331. value = _0_16;
  17332. }
  17333. t1 = value;
  17334. break $label0$0;
  17335. }
  17336. if (_0_11_isSet) {
  17337. t1 = arg;
  17338. break $label0$0;
  17339. }
  17340. if (arg instanceof A.Value)
  17341. A.throwExpression(A.SassScriptException$("Value " + arg.toString$0(0) + _s32_, _null));
  17342. t1 = A.throwExpression(A.ArgumentError$("Unexpected calculation argument " + A.S(arg) + ".", _null));
  17343. }
  17344. return t1;
  17345. },
  17346. SassCalculation__needsParentheses(text) {
  17347. var t1, couldBeVar, second, third, fourth, i, t2,
  17348. first = text.charCodeAt(0);
  17349. if (first === 32 || first === 9 || first === 10 || first === 13 || first === 12 || first === 47 || first === 42)
  17350. return true;
  17351. t1 = text.length;
  17352. couldBeVar = t1 >= 4 && A.characterEqualsIgnoreCase(first, 118);
  17353. if (t1 < 2)
  17354. return false;
  17355. second = text.charCodeAt(1);
  17356. if (second === 32 || second === 9 || second === 10 || second === 13 || second === 12 || second === 47 || second === 42)
  17357. return true;
  17358. couldBeVar = couldBeVar && A.characterEqualsIgnoreCase(second, 97);
  17359. if (t1 < 3)
  17360. return false;
  17361. third = text.charCodeAt(2);
  17362. if (third === 32 || third === 9 || third === 10 || third === 13 || third === 12 || third === 47 || third === 42)
  17363. return true;
  17364. couldBeVar = couldBeVar && A.characterEqualsIgnoreCase(third, 114);
  17365. if (t1 < 4)
  17366. return false;
  17367. fourth = text.charCodeAt(3);
  17368. if (couldBeVar && fourth === 40)
  17369. return true;
  17370. if (fourth === 32 || fourth === 9 || fourth === 10 || fourth === 13 || fourth === 12 || fourth === 47 || fourth === 42)
  17371. return true;
  17372. for (i = 4; i < t1; ++i) {
  17373. t2 = text.charCodeAt(i);
  17374. if (t2 === 32 || t2 === 9 || t2 === 10 || t2 === 13 || t2 === 12 || t2 === 47 || t2 === 42)
  17375. return true;
  17376. }
  17377. return false;
  17378. },
  17379. SassCalculation__verifyCompatibleNumbers(args) {
  17380. var t1, _i, t2, arg, i, number1, j, number2;
  17381. for (t1 = args.length, _i = 0; t2 = args.length, _i < t2; args.length === t1 || (0, A.throwConcurrentModificationError)(args), ++_i) {
  17382. arg = args[_i];
  17383. if (arg instanceof A.SassNumber && arg.get$hasComplexUnits())
  17384. throw A.wrapException(A.SassScriptException$("Number " + A.S(arg) + " isn't compatible with CSS calculations.", null));
  17385. }
  17386. for (t1 = t2, i = 0; i < t1 - 1; ++i) {
  17387. number1 = args[i];
  17388. if (!(number1 instanceof A.SassNumber))
  17389. continue;
  17390. for (j = i + 1; t1 = args.length, j < t1; ++j) {
  17391. number2 = args[j];
  17392. if (!(number2 instanceof A.SassNumber))
  17393. continue;
  17394. if (number1.hasPossiblyCompatibleUnits$1(number2))
  17395. continue;
  17396. throw A.wrapException(A.SassScriptException$(number1.toString$0(0) + " and " + number2.toString$0(0) + " are incompatible.", null));
  17397. }
  17398. }
  17399. },
  17400. SassCalculation__verifyLength(args, expectedLength) {
  17401. var t1;
  17402. if (args.length === expectedLength)
  17403. return;
  17404. if (B.JSArray_methods.any$1(args, new A.SassCalculation__verifyLength_closure()))
  17405. return;
  17406. t1 = args.length;
  17407. throw A.wrapException(A.SassScriptException$("" + expectedLength + " arguments required, but only " + t1 + " " + A.pluralize("was", t1, "were") + " passed.", null));
  17408. },
  17409. SassCalculation__singleArgument($name, argument, mathFunc, forbidUnits) {
  17410. argument = A.SassCalculation__simplify(argument);
  17411. if (!(argument instanceof A.SassNumber))
  17412. return new A.SassCalculation($name, A._setArrayType([argument], type$.JSArray_Object));
  17413. if (forbidUnits)
  17414. argument.assertNoUnits$0();
  17415. return mathFunc.call$1(argument);
  17416. },
  17417. SassCalculation: function SassCalculation(t0, t1) {
  17418. this.name = t0;
  17419. this.$arguments = t1;
  17420. },
  17421. SassCalculation__verifyLength_closure: function SassCalculation__verifyLength_closure() {
  17422. },
  17423. CalculationOperation: function CalculationOperation(t0, t1, t2) {
  17424. this._operator = t0;
  17425. this._left = t1;
  17426. this._right = t2;
  17427. },
  17428. CalculationOperator: function CalculationOperator(t0, t1, t2, t3) {
  17429. var _ = this;
  17430. _.name = t0;
  17431. _.operator = t1;
  17432. _.precedence = t2;
  17433. _._name = t3;
  17434. },
  17435. SassColor_SassColor$rgb(red, green, blue, alpha) {
  17436. return A.SassColor_SassColor$rgbInternal(red, green, blue, alpha, null);
  17437. },
  17438. SassColor_SassColor$rgbInternal(red, green, blue, alpha, format) {
  17439. var _null = null,
  17440. t1 = red == null ? _null : red,
  17441. t2 = green == null ? _null : green,
  17442. t3 = blue == null ? _null : blue;
  17443. return A.SassColor$_forSpace(B.RgbColorSpace_mlz, t1, t2, t3, alpha == null ? _null : alpha, format);
  17444. },
  17445. SassColor_SassColor$hsl(hue, saturation, lightness, alpha) {
  17446. var _null = null,
  17447. t1 = hue == null ? _null : hue,
  17448. t2 = saturation == null ? _null : saturation,
  17449. t3 = lightness == null ? _null : lightness;
  17450. return A.SassColor_SassColor$forSpaceInternal(B.HslColorSpace_gsm, t1, t2, t3, alpha == null ? _null : alpha);
  17451. },
  17452. SassColor_SassColor$hwb(hue, whiteness, blackness, alpha) {
  17453. var _null = null,
  17454. t1 = hue == null ? _null : hue,
  17455. t2 = whiteness == null ? _null : whiteness,
  17456. t3 = blackness == null ? _null : blackness;
  17457. return A.SassColor_SassColor$forSpaceInternal(B.HwbColorSpace_06z, t1, t2, t3, alpha == null ? _null : alpha);
  17458. },
  17459. SassColor_SassColor$forSpaceInternal(space, channel0, channel1, channel2, alpha) {
  17460. var t1, t2, _null = null;
  17461. $label0$0: {
  17462. if (B.HslColorSpace_gsm === space) {
  17463. t1 = channel1 == null;
  17464. t2 = A.SassColor__normalizeHue(channel0, !t1 && channel1 < 0 && !A.fuzzyEquals(channel1, 0));
  17465. t2 = A.SassColor$_forSpace(space, t2, t1 ? _null : Math.abs(channel1), channel2, alpha, _null);
  17466. t1 = t2;
  17467. break $label0$0;
  17468. }
  17469. if (B.HwbColorSpace_06z === space) {
  17470. t1 = A.SassColor$_forSpace(space, A.SassColor__normalizeHue(channel0, false), channel1, channel2, alpha, _null);
  17471. break $label0$0;
  17472. }
  17473. if (B.LchColorSpace_wv8 === space || B.OklchColorSpace_li8 === space) {
  17474. t1 = channel1 == null;
  17475. t2 = t1 ? _null : Math.abs(channel1);
  17476. t2 = A.SassColor$_forSpace(space, channel0, t2, A.SassColor__normalizeHue(channel2, !t1 && channel1 < 0 && !A.fuzzyEquals(channel1, 0)), alpha, _null);
  17477. t1 = t2;
  17478. break $label0$0;
  17479. }
  17480. t1 = A.SassColor$_forSpace(space, channel0, channel1, channel2, alpha, _null);
  17481. break $label0$0;
  17482. }
  17483. return t1;
  17484. },
  17485. SassColor$_forSpace(_space, channel0OrNull, channel1OrNull, channel2OrNull, alpha, format) {
  17486. return new A.SassColor(_space, channel0OrNull, channel1OrNull, channel2OrNull, format, A.NullableExtension_andThen(alpha, new A.SassColor$_forSpace_closure()));
  17487. },
  17488. SassColor__normalizeHue(hue, invert) {
  17489. var t1, t2;
  17490. if (hue == null)
  17491. return hue;
  17492. t1 = B.JSNumber_methods.$mod(hue, 360);
  17493. t2 = invert ? 180 : 0;
  17494. return B.JSNumber_methods.$mod(t1 + 360 + t2, 360);
  17495. },
  17496. SassColor: function SassColor(t0, t1, t2, t3, t4, t5) {
  17497. var _ = this;
  17498. _._space = t0;
  17499. _.channel0OrNull = t1;
  17500. _.channel1OrNull = t2;
  17501. _.channel2OrNull = t3;
  17502. _.format = t4;
  17503. _.alphaOrNull = t5;
  17504. },
  17505. SassColor$_forSpace_closure: function SassColor$_forSpace_closure() {
  17506. },
  17507. _ColorFormatEnum: function _ColorFormatEnum() {
  17508. },
  17509. SpanColorFormat: function SpanColorFormat(t0) {
  17510. this._color$_span = t0;
  17511. },
  17512. ColorChannel: function ColorChannel(t0, t1, t2) {
  17513. this.name = t0;
  17514. this.isPolarAngle = t1;
  17515. this.associatedUnit = t2;
  17516. },
  17517. LinearChannel: function LinearChannel(t0, t1, t2, t3, t4, t5, t6, t7) {
  17518. var _ = this;
  17519. _.min = t0;
  17520. _.max = t1;
  17521. _.requiresPercent = t2;
  17522. _.lowerClamped = t3;
  17523. _.upperClamped = t4;
  17524. _.name = t5;
  17525. _.isPolarAngle = t6;
  17526. _.associatedUnit = t7;
  17527. },
  17528. GamutMapMethod_GamutMapMethod$fromName($name) {
  17529. var t1;
  17530. $label0$0: {
  17531. if ("clip" === $name) {
  17532. t1 = B.ClipGamutMap_clip;
  17533. break $label0$0;
  17534. }
  17535. if ("local-minde" === $name) {
  17536. t1 = B.LocalMindeGamutMap_Q7f;
  17537. break $label0$0;
  17538. }
  17539. t1 = A.throwExpression(A.SassScriptException$('Unknown gamut map method "' + $name + '".', null));
  17540. }
  17541. return t1;
  17542. },
  17543. GamutMapMethod: function GamutMapMethod() {
  17544. },
  17545. ClipGamutMap: function ClipGamutMap(t0) {
  17546. this.name = t0;
  17547. },
  17548. LocalMindeGamutMap: function LocalMindeGamutMap(t0) {
  17549. this.name = t0;
  17550. },
  17551. InterpolationMethod$(space, hue) {
  17552. var t1;
  17553. if (space.get$isPolarInternal())
  17554. t1 = hue == null ? B.HueInterpolationMethod_0 : hue;
  17555. else
  17556. t1 = null;
  17557. if (!space.get$isPolarInternal() && hue != null)
  17558. A.throwExpression(A.ArgumentError$(string$.Hue_in + space.toString$0(0) + ".", null));
  17559. return new A.InterpolationMethod(space, t1);
  17560. },
  17561. InterpolationMethod_InterpolationMethod$fromValue(value, $name) {
  17562. var t1, space, hueMethod,
  17563. list = value.assertCommonListStyle$2$allowSlash($name, false);
  17564. if (list.length === 0)
  17565. throw A.wrapException(A.SassScriptException$(string$.Expecta, $name));
  17566. t1 = B.JSArray_methods.get$first(list).assertString$1($name);
  17567. t1.assertUnquoted$1($name);
  17568. space = A.ColorSpace_fromName(t1._string$_text, $name);
  17569. if (list.length === 1)
  17570. return A.InterpolationMethod$(space, null);
  17571. hueMethod = A.HueInterpolationMethod_HueInterpolationMethod$_fromValue(list[1], $name);
  17572. if (list.length === 2)
  17573. throw A.wrapException(A.SassScriptException$('Expected unquoted string "hue" after ' + value.toString$0(0) + ".", $name));
  17574. else {
  17575. t1 = list[2].assertString$1($name);
  17576. t1.assertUnquoted$1($name);
  17577. if (t1._string$_text.toLowerCase() !== "hue")
  17578. throw A.wrapException(A.SassScriptException$(string$.Expectu + value.toString$0(0) + ", was " + A.S(list[2]) + ".", $name));
  17579. else if (list.length > 3)
  17580. throw A.wrapException(A.SassScriptException$('Expected nothing after "hue" in ' + value.toString$0(0) + ".", $name));
  17581. else if (!space.get$isPolarInternal())
  17582. throw A.wrapException(A.SassScriptException$('Hue interpolation method "' + hueMethod.toString$0(0) + string$.x20hue__ + space.toString$0(0) + ".", $name));
  17583. }
  17584. return A.InterpolationMethod$(space, hueMethod);
  17585. },
  17586. HueInterpolationMethod_HueInterpolationMethod$_fromValue(value, $name) {
  17587. var _0_0,
  17588. t1 = value.assertString$1($name);
  17589. t1.assertUnquoted$0();
  17590. _0_0 = t1._string$_text.toLowerCase();
  17591. $label0$0: {
  17592. if ("shorter" === _0_0) {
  17593. t1 = B.HueInterpolationMethod_0;
  17594. break $label0$0;
  17595. }
  17596. if ("longer" === _0_0) {
  17597. t1 = B.HueInterpolationMethod_1;
  17598. break $label0$0;
  17599. }
  17600. if ("increasing" === _0_0) {
  17601. t1 = B.HueInterpolationMethod_2;
  17602. break $label0$0;
  17603. }
  17604. if ("decreasing" === _0_0) {
  17605. t1 = B.HueInterpolationMethod_3;
  17606. break $label0$0;
  17607. }
  17608. t1 = A.throwExpression(A.SassScriptException$("Unknown hue interpolation method " + value.toString$0(0) + ".", $name));
  17609. }
  17610. return t1;
  17611. },
  17612. InterpolationMethod: function InterpolationMethod(t0, t1) {
  17613. this.space = t0;
  17614. this.hue = t1;
  17615. },
  17616. HueInterpolationMethod: function HueInterpolationMethod(t0) {
  17617. this._name = t0;
  17618. },
  17619. ColorSpace_fromName($name, argumentName) {
  17620. var t1,
  17621. _0_0 = $name.toLowerCase();
  17622. $label0$0: {
  17623. if ("rgb" === _0_0) {
  17624. t1 = B.RgbColorSpace_mlz;
  17625. break $label0$0;
  17626. }
  17627. if ("hwb" === _0_0) {
  17628. t1 = B.HwbColorSpace_06z;
  17629. break $label0$0;
  17630. }
  17631. if ("hsl" === _0_0) {
  17632. t1 = B.HslColorSpace_gsm;
  17633. break $label0$0;
  17634. }
  17635. if ("srgb" === _0_0) {
  17636. t1 = B.SrgbColorSpace_AD4;
  17637. break $label0$0;
  17638. }
  17639. if ("srgb-linear" === _0_0) {
  17640. t1 = B.SrgbLinearColorSpace_sEs;
  17641. break $label0$0;
  17642. }
  17643. if ("display-p3" === _0_0) {
  17644. t1 = B.DisplayP3ColorSpace_NQk;
  17645. break $label0$0;
  17646. }
  17647. if ("a98-rgb" === _0_0) {
  17648. t1 = B.A98RgbColorSpace_bdu;
  17649. break $label0$0;
  17650. }
  17651. if ("prophoto-rgb" === _0_0) {
  17652. t1 = B.ProphotoRgbColorSpace_KiG;
  17653. break $label0$0;
  17654. }
  17655. if ("rec2020" === _0_0) {
  17656. t1 = B.Rec2020ColorSpace_2jN;
  17657. break $label0$0;
  17658. }
  17659. if ("xyz" === _0_0 || "xyz-d65" === _0_0) {
  17660. t1 = B.XyzD65ColorSpace_4CA;
  17661. break $label0$0;
  17662. }
  17663. if ("xyz-d50" === _0_0) {
  17664. t1 = B.XyzD50ColorSpace_2No;
  17665. break $label0$0;
  17666. }
  17667. if ("lab" === _0_0) {
  17668. t1 = B.LabColorSpace_IF2;
  17669. break $label0$0;
  17670. }
  17671. if ("lch" === _0_0) {
  17672. t1 = B.LchColorSpace_wv8;
  17673. break $label0$0;
  17674. }
  17675. if ("oklab" === _0_0) {
  17676. t1 = B.OklabColorSpace_yrt;
  17677. break $label0$0;
  17678. }
  17679. if ("oklch" === _0_0) {
  17680. t1 = B.OklchColorSpace_li8;
  17681. break $label0$0;
  17682. }
  17683. t1 = A.throwExpression(A.SassScriptException$('Unknown color space "' + $name + '".', argumentName));
  17684. }
  17685. return t1;
  17686. },
  17687. ColorSpace: function ColorSpace() {
  17688. },
  17689. A98RgbColorSpace: function A98RgbColorSpace(t0, t1) {
  17690. this.name = t0;
  17691. this._channels = t1;
  17692. },
  17693. DisplayP3ColorSpace: function DisplayP3ColorSpace(t0, t1) {
  17694. this.name = t0;
  17695. this._channels = t1;
  17696. },
  17697. HslColorSpace: function HslColorSpace(t0, t1) {
  17698. this.name = t0;
  17699. this._channels = t1;
  17700. },
  17701. HwbColorSpace: function HwbColorSpace(t0, t1) {
  17702. this.name = t0;
  17703. this._channels = t1;
  17704. },
  17705. HwbColorSpace_convert_toRgb: function HwbColorSpace_convert_toRgb(t0, t1) {
  17706. this._box_0 = t0;
  17707. this.factor = t1;
  17708. },
  17709. LabColorSpace: function LabColorSpace(t0, t1) {
  17710. this.name = t0;
  17711. this._channels = t1;
  17712. },
  17713. LchColorSpace: function LchColorSpace(t0, t1) {
  17714. this.name = t0;
  17715. this._channels = t1;
  17716. },
  17717. LmsColorSpace: function LmsColorSpace(t0, t1) {
  17718. this.name = t0;
  17719. this._channels = t1;
  17720. },
  17721. OklabColorSpace: function OklabColorSpace(t0, t1) {
  17722. this.name = t0;
  17723. this._channels = t1;
  17724. },
  17725. OklchColorSpace: function OklchColorSpace(t0, t1) {
  17726. this.name = t0;
  17727. this._channels = t1;
  17728. },
  17729. ProphotoRgbColorSpace: function ProphotoRgbColorSpace(t0, t1) {
  17730. this.name = t0;
  17731. this._channels = t1;
  17732. },
  17733. Rec2020ColorSpace: function Rec2020ColorSpace(t0, t1) {
  17734. this.name = t0;
  17735. this._channels = t1;
  17736. },
  17737. RgbColorSpace: function RgbColorSpace(t0, t1) {
  17738. this.name = t0;
  17739. this._channels = t1;
  17740. },
  17741. SrgbColorSpace: function SrgbColorSpace(t0, t1) {
  17742. this.name = t0;
  17743. this._channels = t1;
  17744. },
  17745. SrgbLinearColorSpace: function SrgbLinearColorSpace(t0, t1) {
  17746. this.name = t0;
  17747. this._channels = t1;
  17748. },
  17749. XyzD50ColorSpace: function XyzD50ColorSpace(t0, t1) {
  17750. this.name = t0;
  17751. this._channels = t1;
  17752. },
  17753. XyzD65ColorSpace: function XyzD65ColorSpace(t0, t1) {
  17754. this.name = t0;
  17755. this._channels = t1;
  17756. },
  17757. SassFunction: function SassFunction(t0) {
  17758. this.callable = t0;
  17759. },
  17760. SassList$(contents, _separator, brackets) {
  17761. var t1 = new A.SassList(A.List_List$unmodifiable(contents, type$.Value), _separator, brackets);
  17762. t1.SassList$3$brackets(contents, _separator, brackets);
  17763. return t1;
  17764. },
  17765. SassList: function SassList(t0, t1, t2) {
  17766. this._list$_contents = t0;
  17767. this._separator = t1;
  17768. this._hasBrackets = t2;
  17769. },
  17770. SassList_isBlank_closure: function SassList_isBlank_closure() {
  17771. },
  17772. ListSeparator: function ListSeparator(t0, t1, t2) {
  17773. this._list$_name = t0;
  17774. this.separator = t1;
  17775. this._name = t2;
  17776. },
  17777. SassMap: function SassMap(t0) {
  17778. this._map$_contents = t0;
  17779. },
  17780. SassMixin: function SassMixin(t0) {
  17781. this.callable = t0;
  17782. },
  17783. _SassNull: function _SassNull() {
  17784. },
  17785. conversionFactor(unit1, unit2) {
  17786. var _0_0;
  17787. if (unit1 === unit2)
  17788. return 1;
  17789. _0_0 = B.Map_gQqJO.$index(0, unit1);
  17790. if (_0_0 != null)
  17791. return _0_0.$index(0, unit2);
  17792. return null;
  17793. },
  17794. SassNumber_SassNumber(value, unit) {
  17795. return unit == null ? new A.UnitlessSassNumber(value, null) : new A.SingleUnitSassNumber(unit, value, null);
  17796. },
  17797. SassNumber_SassNumber$withUnits(value, denominatorUnits, numeratorUnits) {
  17798. var t1, _0_8_isSet, _0_8, _0_10, _0_10_isSet, _0_7, unit, t2, _0_7_isSet, t3, _0_4_isSet, _0_7_isSet0, numerators, denominators, unsimplifiedDenominators, valueDouble, _i, denominator, simplifiedAway, i, factor, _1_2, _1_7_isSet, _1_7, _null = null,
  17799. _0_6_isSet = !false,
  17800. _0_6 = _null,
  17801. _0_4 = _null;
  17802. if (_0_6_isSet) {
  17803. _0_4 = (numeratorUnits === null ? type$.List_String._as(numeratorUnits) : numeratorUnits).length;
  17804. t1 = _0_4;
  17805. _0_6 = t1 <= 0;
  17806. _0_8_isSet = _0_6;
  17807. } else
  17808. _0_8_isSet = true;
  17809. _0_8 = _null;
  17810. _0_10 = _null;
  17811. if (_0_8_isSet) {
  17812. _0_8 = denominatorUnits == null;
  17813. t1 = _0_8;
  17814. _0_10_isSet = !t1;
  17815. if (_0_10_isSet) {
  17816. _0_10 = (denominatorUnits == null ? type$.List_String._as(denominatorUnits) : denominatorUnits).length <= 0;
  17817. t1 = _0_10;
  17818. } else
  17819. t1 = true;
  17820. _0_7 = denominatorUnits;
  17821. } else {
  17822. _0_7 = _null;
  17823. _0_10_isSet = false;
  17824. t1 = false;
  17825. }
  17826. if (t1)
  17827. return new A.UnitlessSassNumber(value, _null);
  17828. t1 = type$.List_String;
  17829. unit = _null;
  17830. t2 = false;
  17831. if (t1._is(numeratorUnits)) {
  17832. _0_7_isSet = true;
  17833. if (_0_6_isSet) {
  17834. t3 = _0_4;
  17835. _0_4_isSet = _0_6_isSet;
  17836. } else {
  17837. _0_4 = numeratorUnits.length;
  17838. t3 = _0_4;
  17839. _0_4_isSet = true;
  17840. }
  17841. if (t3 === 1) {
  17842. unit = numeratorUnits[0];
  17843. if (_0_8_isSet) {
  17844. t2 = _0_8;
  17845. _0_7_isSet0 = _0_8_isSet;
  17846. } else {
  17847. _0_8 = denominatorUnits == null;
  17848. t2 = _0_8;
  17849. _0_7_isSet0 = _0_7_isSet;
  17850. _0_7 = denominatorUnits;
  17851. _0_8_isSet = true;
  17852. }
  17853. if (!t2)
  17854. if (_0_10_isSet) {
  17855. t2 = _0_10;
  17856. _0_7_isSet = _0_7_isSet0;
  17857. } else {
  17858. if (_0_7_isSet0) {
  17859. t2 = _0_7;
  17860. _0_7_isSet = _0_7_isSet0;
  17861. } else {
  17862. t2 = denominatorUnits;
  17863. _0_7 = t2;
  17864. }
  17865. _0_10 = (t2 == null ? t1._as(t2) : t2).length <= 0;
  17866. t2 = _0_10;
  17867. _0_10_isSet = true;
  17868. }
  17869. else {
  17870. _0_7_isSet = _0_7_isSet0;
  17871. t2 = true;
  17872. }
  17873. } else
  17874. _0_7_isSet = _0_8_isSet;
  17875. } else {
  17876. _0_7_isSet = _0_8_isSet;
  17877. _0_4_isSet = _0_6_isSet;
  17878. }
  17879. if (t2)
  17880. return new A.SingleUnitSassNumber(unit, value, _null);
  17881. t2 = numeratorUnits === null;
  17882. t3 = false;
  17883. if (!t2) {
  17884. _0_7_isSet0 = true;
  17885. numerators = numeratorUnits;
  17886. if (_0_8_isSet)
  17887. t3 = _0_8;
  17888. else {
  17889. if (_0_7_isSet)
  17890. t3 = _0_7;
  17891. else {
  17892. t3 = denominatorUnits;
  17893. _0_7_isSet = _0_7_isSet0;
  17894. _0_7 = t3;
  17895. }
  17896. _0_8 = t3 == null;
  17897. t3 = _0_8;
  17898. }
  17899. if (!t3)
  17900. if (_0_10_isSet)
  17901. t3 = _0_10;
  17902. else {
  17903. if (_0_7_isSet)
  17904. t3 = _0_7;
  17905. else {
  17906. t3 = denominatorUnits;
  17907. _0_7_isSet = _0_7_isSet0;
  17908. _0_7 = t3;
  17909. }
  17910. _0_10 = (t3 == null ? t1._as(t3) : t3).length <= 0;
  17911. t3 = _0_10;
  17912. }
  17913. else
  17914. t3 = true;
  17915. } else
  17916. numerators = _null;
  17917. if (t3)
  17918. return new A.ComplexSassNumber(A.List_List$unmodifiable(numerators, type$.String), B.List_empty, value, _null);
  17919. if (!false)
  17920. if (_0_6_isSet)
  17921. t2 = _0_6;
  17922. else {
  17923. if (_0_4_isSet)
  17924. t2 = _0_4;
  17925. else {
  17926. _0_4 = (t2 ? t1._as(numeratorUnits) : numeratorUnits).length;
  17927. t2 = _0_4;
  17928. }
  17929. _0_6 = t2 <= 0;
  17930. t2 = _0_6;
  17931. }
  17932. else
  17933. t2 = true;
  17934. denominators = _null;
  17935. if (t2) {
  17936. if (_0_7_isSet)
  17937. t2 = _0_7;
  17938. else {
  17939. t2 = denominatorUnits;
  17940. _0_7 = t2;
  17941. _0_7_isSet = true;
  17942. }
  17943. t2 = t2 != null;
  17944. if (t2) {
  17945. denominators = _0_7_isSet ? _0_7 : denominatorUnits;
  17946. if (denominators == null)
  17947. denominators = t1._as(denominators);
  17948. }
  17949. t1 = t2;
  17950. } else
  17951. t1 = false;
  17952. if (t1)
  17953. return new A.ComplexSassNumber(B.List_empty, A.List_List$unmodifiable(denominators, type$.String), value, _null);
  17954. numerators = A._setArrayType(numeratorUnits.slice(0), A._arrayInstanceType(numeratorUnits));
  17955. unsimplifiedDenominators = A._setArrayType(denominatorUnits.slice(0), A.instanceType(denominatorUnits));
  17956. denominators = A._setArrayType([], type$.JSArray_String);
  17957. for (t1 = unsimplifiedDenominators.length, valueDouble = value, _i = 0; _i < unsimplifiedDenominators.length; unsimplifiedDenominators.length === t1 || (0, A.throwConcurrentModificationError)(unsimplifiedDenominators), ++_i) {
  17958. denominator = unsimplifiedDenominators[_i];
  17959. i = 0;
  17960. while (true) {
  17961. if (!(i < numerators.length)) {
  17962. simplifiedAway = false;
  17963. break;
  17964. }
  17965. c$0: {
  17966. factor = A.conversionFactor(denominator, numerators[i]);
  17967. if (factor == null)
  17968. break c$0;
  17969. valueDouble *= factor;
  17970. B.JSArray_methods.removeAt$1(numerators, i);
  17971. simplifiedAway = true;
  17972. break;
  17973. }
  17974. ++i;
  17975. }
  17976. if (!simplifiedAway)
  17977. denominators.push(denominator);
  17978. }
  17979. $label0$1: {
  17980. _1_2 = numerators.length;
  17981. t1 = _1_2;
  17982. _1_7_isSet = t1 <= 0;
  17983. if (_1_7_isSet) {
  17984. _1_7 = denominators.length <= 0;
  17985. t1 = _1_7;
  17986. } else {
  17987. _1_7 = _null;
  17988. t1 = false;
  17989. }
  17990. if (t1) {
  17991. t1 = new A.UnitlessSassNumber(valueDouble, _null);
  17992. break $label0$1;
  17993. }
  17994. t1 = false;
  17995. if (_1_2 === 1) {
  17996. unit = numerators[0];
  17997. t1 = _1_7_isSet ? _1_7 : denominators.length <= 0;
  17998. } else
  17999. unit = _null;
  18000. if (t1) {
  18001. t1 = new A.SingleUnitSassNumber(unit, valueDouble, _null);
  18002. break $label0$1;
  18003. }
  18004. t1 = type$.String;
  18005. t1 = new A.ComplexSassNumber(A.List_List$unmodifiable(numerators, t1), A.List_List$unmodifiable(denominators, t1), valueDouble, _null);
  18006. break $label0$1;
  18007. }
  18008. return t1;
  18009. },
  18010. SassNumber: function SassNumber() {
  18011. },
  18012. SassNumber__coerceOrConvertValue_compatibilityException: function SassNumber__coerceOrConvertValue_compatibilityException(t0, t1, t2, t3, t4, t5, t6) {
  18013. var _ = this;
  18014. _.$this = t0;
  18015. _.other = t1;
  18016. _.otherName = t2;
  18017. _.otherHasUnits = t3;
  18018. _.name = t4;
  18019. _.newNumerators = t5;
  18020. _.newDenominators = t6;
  18021. },
  18022. SassNumber__coerceOrConvertValue_closure: function SassNumber__coerceOrConvertValue_closure(t0, t1) {
  18023. this._box_0 = t0;
  18024. this.newNumerator = t1;
  18025. },
  18026. SassNumber__coerceOrConvertValue_closure0: function SassNumber__coerceOrConvertValue_closure0(t0) {
  18027. this.compatibilityException = t0;
  18028. },
  18029. SassNumber__coerceOrConvertValue_closure1: function SassNumber__coerceOrConvertValue_closure1(t0, t1) {
  18030. this._box_0 = t0;
  18031. this.newDenominator = t1;
  18032. },
  18033. SassNumber__coerceOrConvertValue_closure2: function SassNumber__coerceOrConvertValue_closure2(t0) {
  18034. this.compatibilityException = t0;
  18035. },
  18036. SassNumber_plus_closure: function SassNumber_plus_closure() {
  18037. },
  18038. SassNumber_minus_closure: function SassNumber_minus_closure() {
  18039. },
  18040. SassNumber_multiplyUnits_closure: function SassNumber_multiplyUnits_closure(t0, t1) {
  18041. this._box_0 = t0;
  18042. this.numerator = t1;
  18043. },
  18044. SassNumber_multiplyUnits_closure0: function SassNumber_multiplyUnits_closure0(t0, t1) {
  18045. this.newNumerators = t0;
  18046. this.numerator = t1;
  18047. },
  18048. SassNumber_multiplyUnits_closure1: function SassNumber_multiplyUnits_closure1(t0, t1) {
  18049. this._box_0 = t0;
  18050. this.numerator = t1;
  18051. },
  18052. SassNumber_multiplyUnits_closure2: function SassNumber_multiplyUnits_closure2(t0, t1) {
  18053. this.newNumerators = t0;
  18054. this.numerator = t1;
  18055. },
  18056. SassNumber__areAnyConvertible_closure: function SassNumber__areAnyConvertible_closure(t0) {
  18057. this.units2 = t0;
  18058. },
  18059. SassNumber__canonicalizeUnitList_closure: function SassNumber__canonicalizeUnitList_closure() {
  18060. },
  18061. SassNumber__canonicalMultiplier_closure: function SassNumber__canonicalMultiplier_closure(t0) {
  18062. this.$this = t0;
  18063. },
  18064. SassNumber_unitSuggestion_closure: function SassNumber_unitSuggestion_closure() {
  18065. },
  18066. SassNumber_unitSuggestion_closure0: function SassNumber_unitSuggestion_closure0() {
  18067. },
  18068. ComplexSassNumber: function ComplexSassNumber(t0, t1, t2, t3) {
  18069. var _ = this;
  18070. _._numeratorUnits = t0;
  18071. _._denominatorUnits = t1;
  18072. _._number$_value = t2;
  18073. _.hashCache = null;
  18074. _.asSlash = t3;
  18075. },
  18076. SingleUnitSassNumber: function SingleUnitSassNumber(t0, t1, t2) {
  18077. var _ = this;
  18078. _._unit = t0;
  18079. _._number$_value = t1;
  18080. _.hashCache = null;
  18081. _.asSlash = t2;
  18082. },
  18083. SingleUnitSassNumber__coerceToUnit_closure: function SingleUnitSassNumber__coerceToUnit_closure(t0, t1) {
  18084. this.$this = t0;
  18085. this.unit = t1;
  18086. },
  18087. SingleUnitSassNumber__coerceValueToUnit_closure: function SingleUnitSassNumber__coerceValueToUnit_closure(t0) {
  18088. this.$this = t0;
  18089. },
  18090. SingleUnitSassNumber_multiplyUnits_closure: function SingleUnitSassNumber_multiplyUnits_closure(t0, t1) {
  18091. this._box_0 = t0;
  18092. this.$this = t1;
  18093. },
  18094. SingleUnitSassNumber_multiplyUnits_closure0: function SingleUnitSassNumber_multiplyUnits_closure0(t0, t1) {
  18095. this._box_0 = t0;
  18096. this.$this = t1;
  18097. },
  18098. UnitlessSassNumber: function UnitlessSassNumber(t0, t1) {
  18099. this._number$_value = t0;
  18100. this.hashCache = null;
  18101. this.asSlash = t1;
  18102. },
  18103. SassString$(_text, quotes) {
  18104. return new A.SassString(_text, quotes);
  18105. },
  18106. SassString: function SassString(t0, t1) {
  18107. var _ = this;
  18108. _._string$_text = t0;
  18109. _._hasQuotes = t1;
  18110. _.__SassString__sassLength_FI = $;
  18111. _._hashCache = null;
  18112. },
  18113. AnySelectorVisitor: function AnySelectorVisitor() {
  18114. },
  18115. AnySelectorVisitor_visitComplexSelector_closure: function AnySelectorVisitor_visitComplexSelector_closure(t0) {
  18116. this.$this = t0;
  18117. },
  18118. AnySelectorVisitor_visitCompoundSelector_closure: function AnySelectorVisitor_visitCompoundSelector_closure(t0) {
  18119. this.$this = t0;
  18120. },
  18121. _EvaluateVisitor$0(functions, importCache, logger, nodeImporter, quietDeps, sourceMap) {
  18122. var t1 = type$.Uri,
  18123. t2 = type$.Module_AsyncCallable,
  18124. t3 = A._setArrayType([], type$.JSArray_Record_2_String_and_AstNode);
  18125. t1 = new A._EvaluateVisitor0(importCache, nodeImporter, A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.AsyncCallable), A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Configuration), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.AstNode), logger, A.LinkedHashSet_LinkedHashSet$_empty(type$.Record_2_String_and_SourceSpan), quietDeps, sourceMap, A.AsyncEnvironment$(), A.LinkedHashSet_LinkedHashSet$_empty(t1), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.nullable_AstNode), t3, B.Configuration_Map_empty_null);
  18126. t1._EvaluateVisitor$6$functions$importCache$logger$nodeImporter$quietDeps$sourceMap0(functions, importCache, logger, nodeImporter, quietDeps, sourceMap);
  18127. return t1;
  18128. },
  18129. _EvaluateVisitor0: function _EvaluateVisitor0(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15) {
  18130. var _ = this;
  18131. _._async_evaluate$_importCache = t0;
  18132. _._async_evaluate$_nodeImporter = t1;
  18133. _._async_evaluate$_builtInFunctions = t2;
  18134. _._async_evaluate$_builtInModules = t3;
  18135. _._async_evaluate$_modules = t4;
  18136. _._async_evaluate$_moduleConfigurations = t5;
  18137. _._async_evaluate$_moduleNodes = t6;
  18138. _._async_evaluate$_logger = t7;
  18139. _._async_evaluate$_warningsEmitted = t8;
  18140. _._async_evaluate$_quietDeps = t9;
  18141. _._async_evaluate$_sourceMap = t10;
  18142. _._async_evaluate$_environment = t11;
  18143. _._async_evaluate$_declarationName = _._async_evaluate$__parent = _._async_evaluate$_mediaQuerySources = _._async_evaluate$_mediaQueries = _._async_evaluate$_styleRuleIgnoringAtRoot = null;
  18144. _._async_evaluate$_member = "root stylesheet";
  18145. _._async_evaluate$_importSpan = _._async_evaluate$_callableNode = _._async_evaluate$_currentCallable = null;
  18146. _._async_evaluate$_inSupportsDeclaration = _._async_evaluate$_inKeyframes = _._async_evaluate$_atRootExcludingStyleRule = _._async_evaluate$_inUnknownAtRule = _._async_evaluate$_inFunction = false;
  18147. _._async_evaluate$_loadedUrls = t12;
  18148. _._async_evaluate$_activeModules = t13;
  18149. _._async_evaluate$_stack = t14;
  18150. _._async_evaluate$_importer = null;
  18151. _._async_evaluate$_inDependency = false;
  18152. _._async_evaluate$__extensionStore = _._async_evaluate$_preModuleComments = _._async_evaluate$_outOfOrderImports = _._async_evaluate$__endOfImports = _._async_evaluate$__root = _._async_evaluate$__stylesheet = null;
  18153. _._async_evaluate$_configuration = t15;
  18154. },
  18155. _EvaluateVisitor_closure12: function _EvaluateVisitor_closure12(t0) {
  18156. this.$this = t0;
  18157. },
  18158. _EvaluateVisitor_closure13: function _EvaluateVisitor_closure13(t0) {
  18159. this.$this = t0;
  18160. },
  18161. _EvaluateVisitor_closure14: function _EvaluateVisitor_closure14(t0) {
  18162. this.$this = t0;
  18163. },
  18164. _EvaluateVisitor_closure15: function _EvaluateVisitor_closure15(t0) {
  18165. this.$this = t0;
  18166. },
  18167. _EvaluateVisitor_closure16: function _EvaluateVisitor_closure16(t0) {
  18168. this.$this = t0;
  18169. },
  18170. _EvaluateVisitor_closure17: function _EvaluateVisitor_closure17(t0) {
  18171. this.$this = t0;
  18172. },
  18173. _EvaluateVisitor_closure18: function _EvaluateVisitor_closure18(t0) {
  18174. this.$this = t0;
  18175. },
  18176. _EvaluateVisitor_closure19: function _EvaluateVisitor_closure19(t0) {
  18177. this.$this = t0;
  18178. },
  18179. _EvaluateVisitor_closure20: function _EvaluateVisitor_closure20(t0) {
  18180. this.$this = t0;
  18181. },
  18182. _EvaluateVisitor__closure6: function _EvaluateVisitor__closure6(t0, t1, t2) {
  18183. this.$this = t0;
  18184. this.name = t1;
  18185. this.module = t2;
  18186. },
  18187. _EvaluateVisitor_closure21: function _EvaluateVisitor_closure21(t0) {
  18188. this.$this = t0;
  18189. },
  18190. _EvaluateVisitor__closure5: function _EvaluateVisitor__closure5(t0, t1, t2) {
  18191. this.$this = t0;
  18192. this.name = t1;
  18193. this.module = t2;
  18194. },
  18195. _EvaluateVisitor_closure22: function _EvaluateVisitor_closure22(t0) {
  18196. this.$this = t0;
  18197. },
  18198. _EvaluateVisitor_closure23: function _EvaluateVisitor_closure23(t0) {
  18199. this.$this = t0;
  18200. },
  18201. _EvaluateVisitor__closure3: function _EvaluateVisitor__closure3(t0, t1, t2) {
  18202. this.values = t0;
  18203. this.span = t1;
  18204. this.callableNode = t2;
  18205. },
  18206. _EvaluateVisitor__closure4: function _EvaluateVisitor__closure4(t0) {
  18207. this.$this = t0;
  18208. },
  18209. _EvaluateVisitor_closure24: function _EvaluateVisitor_closure24(t0) {
  18210. this.$this = t0;
  18211. },
  18212. _EvaluateVisitor_run_closure0: function _EvaluateVisitor_run_closure0(t0, t1, t2) {
  18213. this.$this = t0;
  18214. this.node = t1;
  18215. this.importer = t2;
  18216. },
  18217. _EvaluateVisitor_run__closure0: function _EvaluateVisitor_run__closure0(t0, t1, t2) {
  18218. this.$this = t0;
  18219. this.importer = t1;
  18220. this.node = t2;
  18221. },
  18222. _EvaluateVisitor__loadModule_closure1: function _EvaluateVisitor__loadModule_closure1(t0, t1) {
  18223. this._box_1 = t0;
  18224. this.callback = t1;
  18225. },
  18226. _EvaluateVisitor__loadModule_closure2: function _EvaluateVisitor__loadModule_closure2(t0, t1, t2, t3, t4, t5, t6) {
  18227. var _ = this;
  18228. _.$this = t0;
  18229. _.url = t1;
  18230. _.nodeWithSpan = t2;
  18231. _.baseUrl = t3;
  18232. _.namesInErrors = t4;
  18233. _.configuration = t5;
  18234. _.callback = t6;
  18235. },
  18236. _EvaluateVisitor__loadModule__closure1: function _EvaluateVisitor__loadModule__closure1(t0, t1) {
  18237. this.$this = t0;
  18238. this.message = t1;
  18239. },
  18240. _EvaluateVisitor__loadModule__closure2: function _EvaluateVisitor__loadModule__closure2(t0, t1, t2) {
  18241. this._box_0 = t0;
  18242. this.callback = t1;
  18243. this.firstLoad = t2;
  18244. },
  18245. _EvaluateVisitor__execute_closure0: function _EvaluateVisitor__execute_closure0(t0, t1, t2, t3, t4, t5, t6) {
  18246. var _ = this;
  18247. _.$this = t0;
  18248. _.importer = t1;
  18249. _.stylesheet = t2;
  18250. _.extensionStore = t3;
  18251. _.configuration = t4;
  18252. _.css = t5;
  18253. _.preModuleComments = t6;
  18254. },
  18255. _EvaluateVisitor__combineCss_closure1: function _EvaluateVisitor__combineCss_closure1() {
  18256. },
  18257. _EvaluateVisitor__combineCss_closure2: function _EvaluateVisitor__combineCss_closure2(t0) {
  18258. this.selectors = t0;
  18259. },
  18260. _EvaluateVisitor__combineCss_visitModule0: function _EvaluateVisitor__combineCss_visitModule0(t0, t1, t2, t3, t4, t5) {
  18261. var _ = this;
  18262. _.$this = t0;
  18263. _.seen = t1;
  18264. _.clone = t2;
  18265. _.css = t3;
  18266. _.imports = t4;
  18267. _.sorted = t5;
  18268. },
  18269. _EvaluateVisitor__extendModules_closure1: function _EvaluateVisitor__extendModules_closure1(t0) {
  18270. this.originalSelectors = t0;
  18271. },
  18272. _EvaluateVisitor__extendModules_closure2: function _EvaluateVisitor__extendModules_closure2() {
  18273. },
  18274. _EvaluateVisitor_visitAtRootRule_closure1: function _EvaluateVisitor_visitAtRootRule_closure1(t0, t1) {
  18275. this.$this = t0;
  18276. this.node = t1;
  18277. },
  18278. _EvaluateVisitor_visitAtRootRule_closure2: function _EvaluateVisitor_visitAtRootRule_closure2(t0, t1) {
  18279. this.$this = t0;
  18280. this.node = t1;
  18281. },
  18282. _EvaluateVisitor__scopeForAtRoot_closure5: function _EvaluateVisitor__scopeForAtRoot_closure5(t0, t1, t2) {
  18283. this.$this = t0;
  18284. this.newParent = t1;
  18285. this.node = t2;
  18286. },
  18287. _EvaluateVisitor__scopeForAtRoot_closure6: function _EvaluateVisitor__scopeForAtRoot_closure6(t0, t1) {
  18288. this.$this = t0;
  18289. this.innerScope = t1;
  18290. },
  18291. _EvaluateVisitor__scopeForAtRoot_closure7: function _EvaluateVisitor__scopeForAtRoot_closure7(t0, t1) {
  18292. this.$this = t0;
  18293. this.innerScope = t1;
  18294. },
  18295. _EvaluateVisitor__scopeForAtRoot__closure0: function _EvaluateVisitor__scopeForAtRoot__closure0(t0, t1) {
  18296. this.innerScope = t0;
  18297. this.callback = t1;
  18298. },
  18299. _EvaluateVisitor__scopeForAtRoot_closure8: function _EvaluateVisitor__scopeForAtRoot_closure8(t0, t1) {
  18300. this.$this = t0;
  18301. this.innerScope = t1;
  18302. },
  18303. _EvaluateVisitor__scopeForAtRoot_closure9: function _EvaluateVisitor__scopeForAtRoot_closure9() {
  18304. },
  18305. _EvaluateVisitor__scopeForAtRoot_closure10: function _EvaluateVisitor__scopeForAtRoot_closure10(t0, t1) {
  18306. this.$this = t0;
  18307. this.innerScope = t1;
  18308. },
  18309. _EvaluateVisitor_visitContentRule_closure0: function _EvaluateVisitor_visitContentRule_closure0(t0, t1) {
  18310. this.$this = t0;
  18311. this.content = t1;
  18312. },
  18313. _EvaluateVisitor_visitDeclaration_closure0: function _EvaluateVisitor_visitDeclaration_closure0(t0, t1) {
  18314. this._box_0 = t0;
  18315. this.$this = t1;
  18316. },
  18317. _EvaluateVisitor_visitEachRule_closure2: function _EvaluateVisitor_visitEachRule_closure2(t0, t1, t2) {
  18318. this._box_0 = t0;
  18319. this.$this = t1;
  18320. this.nodeWithSpan = t2;
  18321. },
  18322. _EvaluateVisitor_visitEachRule_closure3: function _EvaluateVisitor_visitEachRule_closure3(t0, t1, t2) {
  18323. this._box_0 = t0;
  18324. this.$this = t1;
  18325. this.nodeWithSpan = t2;
  18326. },
  18327. _EvaluateVisitor_visitEachRule_closure4: function _EvaluateVisitor_visitEachRule_closure4(t0, t1, t2, t3) {
  18328. var _ = this;
  18329. _.$this = t0;
  18330. _.list = t1;
  18331. _.setVariables = t2;
  18332. _.node = t3;
  18333. },
  18334. _EvaluateVisitor_visitEachRule__closure0: function _EvaluateVisitor_visitEachRule__closure0(t0, t1, t2) {
  18335. this.$this = t0;
  18336. this.setVariables = t1;
  18337. this.node = t2;
  18338. },
  18339. _EvaluateVisitor_visitEachRule___closure0: function _EvaluateVisitor_visitEachRule___closure0(t0) {
  18340. this.$this = t0;
  18341. },
  18342. _EvaluateVisitor_visitAtRule_closure2: function _EvaluateVisitor_visitAtRule_closure2(t0) {
  18343. this.$this = t0;
  18344. },
  18345. _EvaluateVisitor_visitAtRule_closure3: function _EvaluateVisitor_visitAtRule_closure3(t0, t1, t2) {
  18346. this.$this = t0;
  18347. this.name = t1;
  18348. this.children = t2;
  18349. },
  18350. _EvaluateVisitor_visitAtRule__closure0: function _EvaluateVisitor_visitAtRule__closure0(t0, t1) {
  18351. this.$this = t0;
  18352. this.children = t1;
  18353. },
  18354. _EvaluateVisitor_visitAtRule_closure4: function _EvaluateVisitor_visitAtRule_closure4() {
  18355. },
  18356. _EvaluateVisitor_visitForRule_closure4: function _EvaluateVisitor_visitForRule_closure4(t0, t1) {
  18357. this.$this = t0;
  18358. this.node = t1;
  18359. },
  18360. _EvaluateVisitor_visitForRule_closure5: function _EvaluateVisitor_visitForRule_closure5(t0, t1) {
  18361. this.$this = t0;
  18362. this.node = t1;
  18363. },
  18364. _EvaluateVisitor_visitForRule_closure6: function _EvaluateVisitor_visitForRule_closure6(t0) {
  18365. this.fromNumber = t0;
  18366. },
  18367. _EvaluateVisitor_visitForRule_closure7: function _EvaluateVisitor_visitForRule_closure7(t0, t1) {
  18368. this.toNumber = t0;
  18369. this.fromNumber = t1;
  18370. },
  18371. _EvaluateVisitor_visitForRule_closure8: function _EvaluateVisitor_visitForRule_closure8(t0, t1, t2, t3, t4, t5) {
  18372. var _ = this;
  18373. _._box_0 = t0;
  18374. _.$this = t1;
  18375. _.node = t2;
  18376. _.from = t3;
  18377. _.direction = t4;
  18378. _.fromNumber = t5;
  18379. },
  18380. _EvaluateVisitor_visitForRule__closure0: function _EvaluateVisitor_visitForRule__closure0(t0) {
  18381. this.$this = t0;
  18382. },
  18383. _EvaluateVisitor_visitForwardRule_closure1: function _EvaluateVisitor_visitForwardRule_closure1(t0, t1) {
  18384. this.$this = t0;
  18385. this.node = t1;
  18386. },
  18387. _EvaluateVisitor_visitForwardRule_closure2: function _EvaluateVisitor_visitForwardRule_closure2(t0, t1) {
  18388. this.$this = t0;
  18389. this.node = t1;
  18390. },
  18391. _EvaluateVisitor__registerCommentsForModule_closure0: function _EvaluateVisitor__registerCommentsForModule_closure0() {
  18392. },
  18393. _EvaluateVisitor_visitIfRule_closure0: function _EvaluateVisitor_visitIfRule_closure0(t0) {
  18394. this.$this = t0;
  18395. },
  18396. _EvaluateVisitor_visitIfRule__closure0: function _EvaluateVisitor_visitIfRule__closure0(t0, t1) {
  18397. this.$this = t0;
  18398. this.clause = t1;
  18399. },
  18400. _EvaluateVisitor_visitIfRule___closure0: function _EvaluateVisitor_visitIfRule___closure0(t0) {
  18401. this.$this = t0;
  18402. },
  18403. _EvaluateVisitor__visitDynamicImport_closure0: function _EvaluateVisitor__visitDynamicImport_closure0(t0, t1) {
  18404. this.$this = t0;
  18405. this.$import = t1;
  18406. },
  18407. _EvaluateVisitor__visitDynamicImport__closure3: function _EvaluateVisitor__visitDynamicImport__closure3(t0) {
  18408. this.$this = t0;
  18409. },
  18410. _EvaluateVisitor__visitDynamicImport__closure4: function _EvaluateVisitor__visitDynamicImport__closure4() {
  18411. },
  18412. _EvaluateVisitor__visitDynamicImport__closure5: function _EvaluateVisitor__visitDynamicImport__closure5() {
  18413. },
  18414. _EvaluateVisitor__visitDynamicImport__closure6: function _EvaluateVisitor__visitDynamicImport__closure6(t0, t1, t2, t3, t4) {
  18415. var _ = this;
  18416. _._box_0 = t0;
  18417. _.$this = t1;
  18418. _.loadsUserDefinedModules = t2;
  18419. _.environment = t3;
  18420. _.children = t4;
  18421. },
  18422. _EvaluateVisitor__applyMixin_closure1: function _EvaluateVisitor__applyMixin_closure1(t0, t1, t2, t3) {
  18423. var _ = this;
  18424. _.$this = t0;
  18425. _.$arguments = t1;
  18426. _.mixin = t2;
  18427. _.nodeWithSpanWithoutContent = t3;
  18428. },
  18429. _EvaluateVisitor__applyMixin__closure2: function _EvaluateVisitor__applyMixin__closure2(t0, t1, t2, t3) {
  18430. var _ = this;
  18431. _.$this = t0;
  18432. _.$arguments = t1;
  18433. _.mixin = t2;
  18434. _.nodeWithSpanWithoutContent = t3;
  18435. },
  18436. _EvaluateVisitor__applyMixin_closure2: function _EvaluateVisitor__applyMixin_closure2(t0, t1, t2, t3) {
  18437. var _ = this;
  18438. _.$this = t0;
  18439. _.contentCallable = t1;
  18440. _.mixin = t2;
  18441. _.nodeWithSpanWithoutContent = t3;
  18442. },
  18443. _EvaluateVisitor__applyMixin__closure1: function _EvaluateVisitor__applyMixin__closure1(t0, t1, t2) {
  18444. this.$this = t0;
  18445. this.mixin = t1;
  18446. this.nodeWithSpanWithoutContent = t2;
  18447. },
  18448. _EvaluateVisitor__applyMixin___closure0: function _EvaluateVisitor__applyMixin___closure0(t0, t1, t2) {
  18449. this.$this = t0;
  18450. this.mixin = t1;
  18451. this.nodeWithSpanWithoutContent = t2;
  18452. },
  18453. _EvaluateVisitor__applyMixin____closure0: function _EvaluateVisitor__applyMixin____closure0(t0, t1) {
  18454. this.$this = t0;
  18455. this.statement = t1;
  18456. },
  18457. _EvaluateVisitor_visitIncludeRule_closure2: function _EvaluateVisitor_visitIncludeRule_closure2(t0, t1) {
  18458. this.$this = t0;
  18459. this.node = t1;
  18460. },
  18461. _EvaluateVisitor_visitIncludeRule_closure3: function _EvaluateVisitor_visitIncludeRule_closure3(t0) {
  18462. this.$this = t0;
  18463. },
  18464. _EvaluateVisitor_visitIncludeRule_closure4: function _EvaluateVisitor_visitIncludeRule_closure4(t0) {
  18465. this.node = t0;
  18466. },
  18467. _EvaluateVisitor_visitMediaRule_closure2: function _EvaluateVisitor_visitMediaRule_closure2(t0, t1) {
  18468. this.$this = t0;
  18469. this.queries = t1;
  18470. },
  18471. _EvaluateVisitor_visitMediaRule_closure3: function _EvaluateVisitor_visitMediaRule_closure3(t0, t1, t2, t3, t4) {
  18472. var _ = this;
  18473. _.$this = t0;
  18474. _.mergedQueries = t1;
  18475. _.queries = t2;
  18476. _.mergedSources = t3;
  18477. _.node = t4;
  18478. },
  18479. _EvaluateVisitor_visitMediaRule__closure0: function _EvaluateVisitor_visitMediaRule__closure0(t0, t1) {
  18480. this.$this = t0;
  18481. this.node = t1;
  18482. },
  18483. _EvaluateVisitor_visitMediaRule___closure0: function _EvaluateVisitor_visitMediaRule___closure0(t0, t1) {
  18484. this.$this = t0;
  18485. this.node = t1;
  18486. },
  18487. _EvaluateVisitor_visitMediaRule_closure4: function _EvaluateVisitor_visitMediaRule_closure4(t0) {
  18488. this.mergedSources = t0;
  18489. },
  18490. _EvaluateVisitor_visitStyleRule_closure3: function _EvaluateVisitor_visitStyleRule_closure3(t0, t1) {
  18491. this.$this = t0;
  18492. this.node = t1;
  18493. },
  18494. _EvaluateVisitor_visitStyleRule_closure4: function _EvaluateVisitor_visitStyleRule_closure4() {
  18495. },
  18496. _EvaluateVisitor_visitStyleRule_closure6: function _EvaluateVisitor_visitStyleRule_closure6(t0, t1, t2) {
  18497. this.$this = t0;
  18498. this.rule = t1;
  18499. this.node = t2;
  18500. },
  18501. _EvaluateVisitor_visitStyleRule__closure0: function _EvaluateVisitor_visitStyleRule__closure0(t0, t1) {
  18502. this.$this = t0;
  18503. this.node = t1;
  18504. },
  18505. _EvaluateVisitor_visitStyleRule_closure5: function _EvaluateVisitor_visitStyleRule_closure5() {
  18506. },
  18507. _EvaluateVisitor__warnForBogusCombinators_closure0: function _EvaluateVisitor__warnForBogusCombinators_closure0() {
  18508. },
  18509. _EvaluateVisitor_visitSupportsRule_closure1: function _EvaluateVisitor_visitSupportsRule_closure1(t0, t1) {
  18510. this.$this = t0;
  18511. this.node = t1;
  18512. },
  18513. _EvaluateVisitor_visitSupportsRule__closure0: function _EvaluateVisitor_visitSupportsRule__closure0(t0, t1) {
  18514. this.$this = t0;
  18515. this.node = t1;
  18516. },
  18517. _EvaluateVisitor_visitSupportsRule_closure2: function _EvaluateVisitor_visitSupportsRule_closure2() {
  18518. },
  18519. _EvaluateVisitor__visitSupportsCondition_closure0: function _EvaluateVisitor__visitSupportsCondition_closure0(t0, t1) {
  18520. this._box_0 = t0;
  18521. this.$this = t1;
  18522. },
  18523. _EvaluateVisitor_visitVariableDeclaration_closure2: function _EvaluateVisitor_visitVariableDeclaration_closure2(t0, t1, t2) {
  18524. this._box_0 = t0;
  18525. this.$this = t1;
  18526. this.node = t2;
  18527. },
  18528. _EvaluateVisitor_visitVariableDeclaration_closure3: function _EvaluateVisitor_visitVariableDeclaration_closure3(t0, t1) {
  18529. this.$this = t0;
  18530. this.node = t1;
  18531. },
  18532. _EvaluateVisitor_visitVariableDeclaration_closure4: function _EvaluateVisitor_visitVariableDeclaration_closure4(t0, t1, t2) {
  18533. this.$this = t0;
  18534. this.node = t1;
  18535. this.value = t2;
  18536. },
  18537. _EvaluateVisitor_visitUseRule_closure0: function _EvaluateVisitor_visitUseRule_closure0(t0, t1) {
  18538. this.$this = t0;
  18539. this.node = t1;
  18540. },
  18541. _EvaluateVisitor_visitWarnRule_closure0: function _EvaluateVisitor_visitWarnRule_closure0(t0, t1) {
  18542. this.$this = t0;
  18543. this.node = t1;
  18544. },
  18545. _EvaluateVisitor_visitWhileRule_closure0: function _EvaluateVisitor_visitWhileRule_closure0(t0, t1) {
  18546. this.$this = t0;
  18547. this.node = t1;
  18548. },
  18549. _EvaluateVisitor_visitWhileRule__closure0: function _EvaluateVisitor_visitWhileRule__closure0(t0) {
  18550. this.$this = t0;
  18551. },
  18552. _EvaluateVisitor_visitBinaryOperationExpression_closure0: function _EvaluateVisitor_visitBinaryOperationExpression_closure0(t0, t1) {
  18553. this.$this = t0;
  18554. this.node = t1;
  18555. },
  18556. _EvaluateVisitor__slash_recommendation0: function _EvaluateVisitor__slash_recommendation0() {
  18557. },
  18558. _EvaluateVisitor_visitVariableExpression_closure0: function _EvaluateVisitor_visitVariableExpression_closure0(t0, t1) {
  18559. this.$this = t0;
  18560. this.node = t1;
  18561. },
  18562. _EvaluateVisitor_visitUnaryOperationExpression_closure0: function _EvaluateVisitor_visitUnaryOperationExpression_closure0(t0, t1) {
  18563. this.node = t0;
  18564. this.operand = t1;
  18565. },
  18566. _EvaluateVisitor_visitListExpression_closure0: function _EvaluateVisitor_visitListExpression_closure0(t0) {
  18567. this.$this = t0;
  18568. },
  18569. _EvaluateVisitor_visitFunctionExpression_closure2: function _EvaluateVisitor_visitFunctionExpression_closure2(t0, t1) {
  18570. this.$this = t0;
  18571. this.node = t1;
  18572. },
  18573. _EvaluateVisitor_visitFunctionExpression_closure3: function _EvaluateVisitor_visitFunctionExpression_closure3() {
  18574. },
  18575. _EvaluateVisitor_visitFunctionExpression_closure4: function _EvaluateVisitor_visitFunctionExpression_closure4(t0, t1, t2) {
  18576. this._box_0 = t0;
  18577. this.$this = t1;
  18578. this.node = t2;
  18579. },
  18580. _EvaluateVisitor__checkCalculationArguments_check0: function _EvaluateVisitor__checkCalculationArguments_check0(t0, t1) {
  18581. this.$this = t0;
  18582. this.node = t1;
  18583. },
  18584. _EvaluateVisitor__visitCalculationExpression_closure0: function _EvaluateVisitor__visitCalculationExpression_closure0(t0, t1, t2, t3) {
  18585. var _ = this;
  18586. _._box_0 = t0;
  18587. _.$this = t1;
  18588. _.node = t2;
  18589. _.inLegacySassFunction = t3;
  18590. },
  18591. _EvaluateVisitor_visitInterpolatedFunctionExpression_closure0: function _EvaluateVisitor_visitInterpolatedFunctionExpression_closure0(t0, t1, t2) {
  18592. this.$this = t0;
  18593. this.node = t1;
  18594. this.$function = t2;
  18595. },
  18596. _EvaluateVisitor__runUserDefinedCallable_closure0: function _EvaluateVisitor__runUserDefinedCallable_closure0(t0, t1, t2, t3, t4, t5) {
  18597. var _ = this;
  18598. _.$this = t0;
  18599. _.callable = t1;
  18600. _.evaluated = t2;
  18601. _.nodeWithSpan = t3;
  18602. _.run = t4;
  18603. _.V = t5;
  18604. },
  18605. _EvaluateVisitor__runUserDefinedCallable__closure0: function _EvaluateVisitor__runUserDefinedCallable__closure0(t0, t1, t2, t3, t4, t5) {
  18606. var _ = this;
  18607. _.$this = t0;
  18608. _.evaluated = t1;
  18609. _.callable = t2;
  18610. _.nodeWithSpan = t3;
  18611. _.run = t4;
  18612. _.V = t5;
  18613. },
  18614. _EvaluateVisitor__runUserDefinedCallable___closure0: function _EvaluateVisitor__runUserDefinedCallable___closure0(t0, t1, t2, t3, t4, t5) {
  18615. var _ = this;
  18616. _.$this = t0;
  18617. _.evaluated = t1;
  18618. _.callable = t2;
  18619. _.nodeWithSpan = t3;
  18620. _.run = t4;
  18621. _.V = t5;
  18622. },
  18623. _EvaluateVisitor__runUserDefinedCallable____closure0: function _EvaluateVisitor__runUserDefinedCallable____closure0() {
  18624. },
  18625. _EvaluateVisitor__runFunctionCallable_closure0: function _EvaluateVisitor__runFunctionCallable_closure0(t0, t1) {
  18626. this.$this = t0;
  18627. this.callable = t1;
  18628. },
  18629. _EvaluateVisitor__runBuiltInCallable_closure2: function _EvaluateVisitor__runBuiltInCallable_closure2(t0, t1, t2) {
  18630. this._box_0 = t0;
  18631. this.evaluated = t1;
  18632. this.namedSet = t2;
  18633. },
  18634. _EvaluateVisitor__runBuiltInCallable_closure3: function _EvaluateVisitor__runBuiltInCallable_closure3(t0, t1) {
  18635. this._box_0 = t0;
  18636. this.evaluated = t1;
  18637. },
  18638. _EvaluateVisitor__runBuiltInCallable_closure4: function _EvaluateVisitor__runBuiltInCallable_closure4() {
  18639. },
  18640. _EvaluateVisitor__evaluateArguments_closure3: function _EvaluateVisitor__evaluateArguments_closure3() {
  18641. },
  18642. _EvaluateVisitor__evaluateArguments_closure4: function _EvaluateVisitor__evaluateArguments_closure4(t0, t1) {
  18643. this.$this = t0;
  18644. this.restNodeForSpan = t1;
  18645. },
  18646. _EvaluateVisitor__evaluateArguments_closure5: function _EvaluateVisitor__evaluateArguments_closure5(t0, t1, t2, t3) {
  18647. var _ = this;
  18648. _.$this = t0;
  18649. _.named = t1;
  18650. _.restNodeForSpan = t2;
  18651. _.namedNodes = t3;
  18652. },
  18653. _EvaluateVisitor__evaluateArguments_closure6: function _EvaluateVisitor__evaluateArguments_closure6() {
  18654. },
  18655. _EvaluateVisitor__evaluateMacroArguments_closure3: function _EvaluateVisitor__evaluateMacroArguments_closure3(t0) {
  18656. this.restArgs = t0;
  18657. },
  18658. _EvaluateVisitor__evaluateMacroArguments_closure4: function _EvaluateVisitor__evaluateMacroArguments_closure4(t0, t1, t2) {
  18659. this.$this = t0;
  18660. this.restNodeForSpan = t1;
  18661. this.restArgs = t2;
  18662. },
  18663. _EvaluateVisitor__evaluateMacroArguments_closure5: function _EvaluateVisitor__evaluateMacroArguments_closure5(t0, t1, t2, t3) {
  18664. var _ = this;
  18665. _.$this = t0;
  18666. _.named = t1;
  18667. _.restNodeForSpan = t2;
  18668. _.restArgs = t3;
  18669. },
  18670. _EvaluateVisitor__evaluateMacroArguments_closure6: function _EvaluateVisitor__evaluateMacroArguments_closure6(t0, t1, t2) {
  18671. this.$this = t0;
  18672. this.keywordRestNodeForSpan = t1;
  18673. this.keywordRestArgs = t2;
  18674. },
  18675. _EvaluateVisitor__addRestMap_closure0: function _EvaluateVisitor__addRestMap_closure0(t0, t1, t2, t3, t4, t5) {
  18676. var _ = this;
  18677. _.$this = t0;
  18678. _.values = t1;
  18679. _.convert = t2;
  18680. _.expressionNode = t3;
  18681. _.map = t4;
  18682. _.nodeWithSpan = t5;
  18683. },
  18684. _EvaluateVisitor__verifyArguments_closure0: function _EvaluateVisitor__verifyArguments_closure0(t0, t1, t2) {
  18685. this.$arguments = t0;
  18686. this.positional = t1;
  18687. this.named = t2;
  18688. },
  18689. _EvaluateVisitor_visitCssAtRule_closure1: function _EvaluateVisitor_visitCssAtRule_closure1(t0, t1) {
  18690. this.$this = t0;
  18691. this.node = t1;
  18692. },
  18693. _EvaluateVisitor_visitCssAtRule_closure2: function _EvaluateVisitor_visitCssAtRule_closure2() {
  18694. },
  18695. _EvaluateVisitor_visitCssKeyframeBlock_closure1: function _EvaluateVisitor_visitCssKeyframeBlock_closure1(t0, t1) {
  18696. this.$this = t0;
  18697. this.node = t1;
  18698. },
  18699. _EvaluateVisitor_visitCssKeyframeBlock_closure2: function _EvaluateVisitor_visitCssKeyframeBlock_closure2() {
  18700. },
  18701. _EvaluateVisitor_visitCssMediaRule_closure2: function _EvaluateVisitor_visitCssMediaRule_closure2(t0, t1) {
  18702. this.$this = t0;
  18703. this.node = t1;
  18704. },
  18705. _EvaluateVisitor_visitCssMediaRule_closure3: function _EvaluateVisitor_visitCssMediaRule_closure3(t0, t1, t2, t3) {
  18706. var _ = this;
  18707. _.$this = t0;
  18708. _.mergedQueries = t1;
  18709. _.node = t2;
  18710. _.mergedSources = t3;
  18711. },
  18712. _EvaluateVisitor_visitCssMediaRule__closure0: function _EvaluateVisitor_visitCssMediaRule__closure0(t0, t1) {
  18713. this.$this = t0;
  18714. this.node = t1;
  18715. },
  18716. _EvaluateVisitor_visitCssMediaRule___closure0: function _EvaluateVisitor_visitCssMediaRule___closure0(t0, t1) {
  18717. this.$this = t0;
  18718. this.node = t1;
  18719. },
  18720. _EvaluateVisitor_visitCssMediaRule_closure4: function _EvaluateVisitor_visitCssMediaRule_closure4(t0) {
  18721. this.mergedSources = t0;
  18722. },
  18723. _EvaluateVisitor_visitCssStyleRule_closure2: function _EvaluateVisitor_visitCssStyleRule_closure2(t0, t1, t2) {
  18724. this.$this = t0;
  18725. this.rule = t1;
  18726. this.node = t2;
  18727. },
  18728. _EvaluateVisitor_visitCssStyleRule__closure0: function _EvaluateVisitor_visitCssStyleRule__closure0(t0, t1) {
  18729. this.$this = t0;
  18730. this.node = t1;
  18731. },
  18732. _EvaluateVisitor_visitCssStyleRule_closure1: function _EvaluateVisitor_visitCssStyleRule_closure1() {
  18733. },
  18734. _EvaluateVisitor_visitCssSupportsRule_closure1: function _EvaluateVisitor_visitCssSupportsRule_closure1(t0, t1) {
  18735. this.$this = t0;
  18736. this.node = t1;
  18737. },
  18738. _EvaluateVisitor_visitCssSupportsRule__closure0: function _EvaluateVisitor_visitCssSupportsRule__closure0(t0, t1) {
  18739. this.$this = t0;
  18740. this.node = t1;
  18741. },
  18742. _EvaluateVisitor_visitCssSupportsRule_closure2: function _EvaluateVisitor_visitCssSupportsRule_closure2() {
  18743. },
  18744. _EvaluateVisitor__performInterpolationHelper_closure0: function _EvaluateVisitor__performInterpolationHelper_closure0(t0) {
  18745. this.interpolation = t0;
  18746. },
  18747. _EvaluateVisitor__serialize_closure0: function _EvaluateVisitor__serialize_closure0(t0, t1) {
  18748. this.value = t0;
  18749. this.quote = t1;
  18750. },
  18751. _EvaluateVisitor__expressionNode_closure0: function _EvaluateVisitor__expressionNode_closure0(t0, t1) {
  18752. this.$this = t0;
  18753. this.expression = t1;
  18754. },
  18755. _EvaluateVisitor__withoutSlash_recommendation0: function _EvaluateVisitor__withoutSlash_recommendation0() {
  18756. },
  18757. _EvaluateVisitor__stackFrame_closure0: function _EvaluateVisitor__stackFrame_closure0(t0) {
  18758. this.$this = t0;
  18759. },
  18760. _ImportedCssVisitor0: function _ImportedCssVisitor0(t0) {
  18761. this._async_evaluate$_visitor = t0;
  18762. },
  18763. _ImportedCssVisitor_visitCssAtRule_closure0: function _ImportedCssVisitor_visitCssAtRule_closure0() {
  18764. },
  18765. _ImportedCssVisitor_visitCssMediaRule_closure0: function _ImportedCssVisitor_visitCssMediaRule_closure0(t0) {
  18766. this.hasBeenMerged = t0;
  18767. },
  18768. _ImportedCssVisitor_visitCssStyleRule_closure0: function _ImportedCssVisitor_visitCssStyleRule_closure0() {
  18769. },
  18770. _ImportedCssVisitor_visitCssSupportsRule_closure0: function _ImportedCssVisitor_visitCssSupportsRule_closure0() {
  18771. },
  18772. _EvaluationContext0: function _EvaluationContext0(t0, t1) {
  18773. this._async_evaluate$_visitor = t0;
  18774. this._async_evaluate$_defaultWarnNodeWithSpan = t1;
  18775. },
  18776. cloneCssStylesheet(stylesheet, extensionStore) {
  18777. var _0_0 = extensionStore.clone$0();
  18778. return new A._Record_2(new A._CloneCssVisitor(_0_0._1)._visitChildren$2(A.ModifiableCssStylesheet$(stylesheet.get$span(stylesheet)), stylesheet), _0_0._0);
  18779. },
  18780. _CloneCssVisitor: function _CloneCssVisitor(t0) {
  18781. this._oldToNewSelectors = t0;
  18782. },
  18783. _EvaluateVisitor$(functions, importCache, logger, nodeImporter, quietDeps, sourceMap) {
  18784. var t1 = type$.Uri,
  18785. t2 = type$.Module_Callable,
  18786. t3 = A._setArrayType([], type$.JSArray_Record_2_String_and_AstNode);
  18787. t1 = new A._EvaluateVisitor(importCache, nodeImporter, A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.Callable), A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Configuration), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.AstNode), logger, A.LinkedHashSet_LinkedHashSet$_empty(type$.Record_2_String_and_SourceSpan), quietDeps, sourceMap, A.Environment$(), A.LinkedHashSet_LinkedHashSet$_empty(t1), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.nullable_AstNode), t3, B.Configuration_Map_empty_null);
  18788. t1._EvaluateVisitor$6$functions$importCache$logger$nodeImporter$quietDeps$sourceMap(functions, importCache, logger, nodeImporter, quietDeps, sourceMap);
  18789. return t1;
  18790. },
  18791. Evaluator: function Evaluator(t0, t1) {
  18792. this._visitor = t0;
  18793. this._importer = t1;
  18794. },
  18795. _EvaluateVisitor: function _EvaluateVisitor(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15) {
  18796. var _ = this;
  18797. _._evaluate$_importCache = t0;
  18798. _._evaluate$_nodeImporter = t1;
  18799. _._builtInFunctions = t2;
  18800. _._builtInModules = t3;
  18801. _._modules = t4;
  18802. _._moduleConfigurations = t5;
  18803. _._moduleNodes = t6;
  18804. _._logger = t7;
  18805. _._warningsEmitted = t8;
  18806. _._quietDeps = t9;
  18807. _._sourceMap = t10;
  18808. _._environment = t11;
  18809. _._declarationName = _.__parent = _._mediaQuerySources = _._mediaQueries = _._styleRuleIgnoringAtRoot = null;
  18810. _._member = "root stylesheet";
  18811. _._importSpan = _._callableNode = _._currentCallable = null;
  18812. _._inSupportsDeclaration = _._inKeyframes = _._atRootExcludingStyleRule = _._inUnknownAtRule = _._inFunction = false;
  18813. _._loadedUrls = t12;
  18814. _._activeModules = t13;
  18815. _._stack = t14;
  18816. _._importer = null;
  18817. _._inDependency = false;
  18818. _.__extensionStore = _._preModuleComments = _._outOfOrderImports = _.__endOfImports = _.__root = _.__stylesheet = null;
  18819. _._configuration = t15;
  18820. },
  18821. _EvaluateVisitor_closure: function _EvaluateVisitor_closure(t0) {
  18822. this.$this = t0;
  18823. },
  18824. _EvaluateVisitor_closure0: function _EvaluateVisitor_closure0(t0) {
  18825. this.$this = t0;
  18826. },
  18827. _EvaluateVisitor_closure1: function _EvaluateVisitor_closure1(t0) {
  18828. this.$this = t0;
  18829. },
  18830. _EvaluateVisitor_closure2: function _EvaluateVisitor_closure2(t0) {
  18831. this.$this = t0;
  18832. },
  18833. _EvaluateVisitor_closure3: function _EvaluateVisitor_closure3(t0) {
  18834. this.$this = t0;
  18835. },
  18836. _EvaluateVisitor_closure4: function _EvaluateVisitor_closure4(t0) {
  18837. this.$this = t0;
  18838. },
  18839. _EvaluateVisitor_closure5: function _EvaluateVisitor_closure5(t0) {
  18840. this.$this = t0;
  18841. },
  18842. _EvaluateVisitor_closure6: function _EvaluateVisitor_closure6(t0) {
  18843. this.$this = t0;
  18844. },
  18845. _EvaluateVisitor_closure7: function _EvaluateVisitor_closure7(t0) {
  18846. this.$this = t0;
  18847. },
  18848. _EvaluateVisitor__closure2: function _EvaluateVisitor__closure2(t0, t1, t2) {
  18849. this.$this = t0;
  18850. this.name = t1;
  18851. this.module = t2;
  18852. },
  18853. _EvaluateVisitor_closure8: function _EvaluateVisitor_closure8(t0) {
  18854. this.$this = t0;
  18855. },
  18856. _EvaluateVisitor__closure1: function _EvaluateVisitor__closure1(t0, t1, t2) {
  18857. this.$this = t0;
  18858. this.name = t1;
  18859. this.module = t2;
  18860. },
  18861. _EvaluateVisitor_closure9: function _EvaluateVisitor_closure9(t0) {
  18862. this.$this = t0;
  18863. },
  18864. _EvaluateVisitor_closure10: function _EvaluateVisitor_closure10(t0) {
  18865. this.$this = t0;
  18866. },
  18867. _EvaluateVisitor__closure: function _EvaluateVisitor__closure(t0, t1, t2) {
  18868. this.values = t0;
  18869. this.span = t1;
  18870. this.callableNode = t2;
  18871. },
  18872. _EvaluateVisitor__closure0: function _EvaluateVisitor__closure0(t0) {
  18873. this.$this = t0;
  18874. },
  18875. _EvaluateVisitor_closure11: function _EvaluateVisitor_closure11(t0) {
  18876. this.$this = t0;
  18877. },
  18878. _EvaluateVisitor_run_closure: function _EvaluateVisitor_run_closure(t0, t1, t2) {
  18879. this.$this = t0;
  18880. this.node = t1;
  18881. this.importer = t2;
  18882. },
  18883. _EvaluateVisitor_run__closure: function _EvaluateVisitor_run__closure(t0, t1, t2) {
  18884. this.$this = t0;
  18885. this.importer = t1;
  18886. this.node = t2;
  18887. },
  18888. _EvaluateVisitor_runExpression_closure: function _EvaluateVisitor_runExpression_closure(t0, t1, t2) {
  18889. this.$this = t0;
  18890. this.importer = t1;
  18891. this.expression = t2;
  18892. },
  18893. _EvaluateVisitor_runExpression__closure: function _EvaluateVisitor_runExpression__closure(t0, t1) {
  18894. this.$this = t0;
  18895. this.expression = t1;
  18896. },
  18897. _EvaluateVisitor_runExpression___closure: function _EvaluateVisitor_runExpression___closure(t0, t1) {
  18898. this.$this = t0;
  18899. this.expression = t1;
  18900. },
  18901. _EvaluateVisitor_runStatement_closure: function _EvaluateVisitor_runStatement_closure(t0, t1, t2) {
  18902. this.$this = t0;
  18903. this.importer = t1;
  18904. this.statement = t2;
  18905. },
  18906. _EvaluateVisitor_runStatement__closure: function _EvaluateVisitor_runStatement__closure(t0, t1) {
  18907. this.$this = t0;
  18908. this.statement = t1;
  18909. },
  18910. _EvaluateVisitor_runStatement___closure: function _EvaluateVisitor_runStatement___closure(t0, t1) {
  18911. this.$this = t0;
  18912. this.statement = t1;
  18913. },
  18914. _EvaluateVisitor__loadModule_closure: function _EvaluateVisitor__loadModule_closure(t0, t1) {
  18915. this._box_1 = t0;
  18916. this.callback = t1;
  18917. },
  18918. _EvaluateVisitor__loadModule_closure0: function _EvaluateVisitor__loadModule_closure0(t0, t1, t2, t3, t4, t5, t6) {
  18919. var _ = this;
  18920. _.$this = t0;
  18921. _.url = t1;
  18922. _.nodeWithSpan = t2;
  18923. _.baseUrl = t3;
  18924. _.namesInErrors = t4;
  18925. _.configuration = t5;
  18926. _.callback = t6;
  18927. },
  18928. _EvaluateVisitor__loadModule__closure: function _EvaluateVisitor__loadModule__closure(t0, t1) {
  18929. this.$this = t0;
  18930. this.message = t1;
  18931. },
  18932. _EvaluateVisitor__loadModule__closure0: function _EvaluateVisitor__loadModule__closure0(t0, t1, t2) {
  18933. this._box_0 = t0;
  18934. this.callback = t1;
  18935. this.firstLoad = t2;
  18936. },
  18937. _EvaluateVisitor__execute_closure: function _EvaluateVisitor__execute_closure(t0, t1, t2, t3, t4, t5, t6) {
  18938. var _ = this;
  18939. _.$this = t0;
  18940. _.importer = t1;
  18941. _.stylesheet = t2;
  18942. _.extensionStore = t3;
  18943. _.configuration = t4;
  18944. _.css = t5;
  18945. _.preModuleComments = t6;
  18946. },
  18947. _EvaluateVisitor__combineCss_closure: function _EvaluateVisitor__combineCss_closure() {
  18948. },
  18949. _EvaluateVisitor__combineCss_closure0: function _EvaluateVisitor__combineCss_closure0(t0) {
  18950. this.selectors = t0;
  18951. },
  18952. _EvaluateVisitor__combineCss_visitModule: function _EvaluateVisitor__combineCss_visitModule(t0, t1, t2, t3, t4, t5) {
  18953. var _ = this;
  18954. _.$this = t0;
  18955. _.seen = t1;
  18956. _.clone = t2;
  18957. _.css = t3;
  18958. _.imports = t4;
  18959. _.sorted = t5;
  18960. },
  18961. _EvaluateVisitor__extendModules_closure: function _EvaluateVisitor__extendModules_closure(t0) {
  18962. this.originalSelectors = t0;
  18963. },
  18964. _EvaluateVisitor__extendModules_closure0: function _EvaluateVisitor__extendModules_closure0() {
  18965. },
  18966. _EvaluateVisitor_visitAtRootRule_closure: function _EvaluateVisitor_visitAtRootRule_closure(t0, t1) {
  18967. this.$this = t0;
  18968. this.node = t1;
  18969. },
  18970. _EvaluateVisitor_visitAtRootRule_closure0: function _EvaluateVisitor_visitAtRootRule_closure0(t0, t1) {
  18971. this.$this = t0;
  18972. this.node = t1;
  18973. },
  18974. _EvaluateVisitor__scopeForAtRoot_closure: function _EvaluateVisitor__scopeForAtRoot_closure(t0, t1, t2) {
  18975. this.$this = t0;
  18976. this.newParent = t1;
  18977. this.node = t2;
  18978. },
  18979. _EvaluateVisitor__scopeForAtRoot_closure0: function _EvaluateVisitor__scopeForAtRoot_closure0(t0, t1) {
  18980. this.$this = t0;
  18981. this.innerScope = t1;
  18982. },
  18983. _EvaluateVisitor__scopeForAtRoot_closure1: function _EvaluateVisitor__scopeForAtRoot_closure1(t0, t1) {
  18984. this.$this = t0;
  18985. this.innerScope = t1;
  18986. },
  18987. _EvaluateVisitor__scopeForAtRoot__closure: function _EvaluateVisitor__scopeForAtRoot__closure(t0, t1) {
  18988. this.innerScope = t0;
  18989. this.callback = t1;
  18990. },
  18991. _EvaluateVisitor__scopeForAtRoot_closure2: function _EvaluateVisitor__scopeForAtRoot_closure2(t0, t1) {
  18992. this.$this = t0;
  18993. this.innerScope = t1;
  18994. },
  18995. _EvaluateVisitor__scopeForAtRoot_closure3: function _EvaluateVisitor__scopeForAtRoot_closure3() {
  18996. },
  18997. _EvaluateVisitor__scopeForAtRoot_closure4: function _EvaluateVisitor__scopeForAtRoot_closure4(t0, t1) {
  18998. this.$this = t0;
  18999. this.innerScope = t1;
  19000. },
  19001. _EvaluateVisitor_visitContentRule_closure: function _EvaluateVisitor_visitContentRule_closure(t0, t1) {
  19002. this.$this = t0;
  19003. this.content = t1;
  19004. },
  19005. _EvaluateVisitor_visitDeclaration_closure: function _EvaluateVisitor_visitDeclaration_closure(t0, t1) {
  19006. this._box_0 = t0;
  19007. this.$this = t1;
  19008. },
  19009. _EvaluateVisitor_visitEachRule_closure: function _EvaluateVisitor_visitEachRule_closure(t0, t1, t2) {
  19010. this._box_0 = t0;
  19011. this.$this = t1;
  19012. this.nodeWithSpan = t2;
  19013. },
  19014. _EvaluateVisitor_visitEachRule_closure0: function _EvaluateVisitor_visitEachRule_closure0(t0, t1, t2) {
  19015. this._box_0 = t0;
  19016. this.$this = t1;
  19017. this.nodeWithSpan = t2;
  19018. },
  19019. _EvaluateVisitor_visitEachRule_closure1: function _EvaluateVisitor_visitEachRule_closure1(t0, t1, t2, t3) {
  19020. var _ = this;
  19021. _.$this = t0;
  19022. _.list = t1;
  19023. _.setVariables = t2;
  19024. _.node = t3;
  19025. },
  19026. _EvaluateVisitor_visitEachRule__closure: function _EvaluateVisitor_visitEachRule__closure(t0, t1, t2) {
  19027. this.$this = t0;
  19028. this.setVariables = t1;
  19029. this.node = t2;
  19030. },
  19031. _EvaluateVisitor_visitEachRule___closure: function _EvaluateVisitor_visitEachRule___closure(t0) {
  19032. this.$this = t0;
  19033. },
  19034. _EvaluateVisitor_visitAtRule_closure: function _EvaluateVisitor_visitAtRule_closure(t0) {
  19035. this.$this = t0;
  19036. },
  19037. _EvaluateVisitor_visitAtRule_closure0: function _EvaluateVisitor_visitAtRule_closure0(t0, t1, t2) {
  19038. this.$this = t0;
  19039. this.name = t1;
  19040. this.children = t2;
  19041. },
  19042. _EvaluateVisitor_visitAtRule__closure: function _EvaluateVisitor_visitAtRule__closure(t0, t1) {
  19043. this.$this = t0;
  19044. this.children = t1;
  19045. },
  19046. _EvaluateVisitor_visitAtRule_closure1: function _EvaluateVisitor_visitAtRule_closure1() {
  19047. },
  19048. _EvaluateVisitor_visitForRule_closure: function _EvaluateVisitor_visitForRule_closure(t0, t1) {
  19049. this.$this = t0;
  19050. this.node = t1;
  19051. },
  19052. _EvaluateVisitor_visitForRule_closure0: function _EvaluateVisitor_visitForRule_closure0(t0, t1) {
  19053. this.$this = t0;
  19054. this.node = t1;
  19055. },
  19056. _EvaluateVisitor_visitForRule_closure1: function _EvaluateVisitor_visitForRule_closure1(t0) {
  19057. this.fromNumber = t0;
  19058. },
  19059. _EvaluateVisitor_visitForRule_closure2: function _EvaluateVisitor_visitForRule_closure2(t0, t1) {
  19060. this.toNumber = t0;
  19061. this.fromNumber = t1;
  19062. },
  19063. _EvaluateVisitor_visitForRule_closure3: function _EvaluateVisitor_visitForRule_closure3(t0, t1, t2, t3, t4, t5) {
  19064. var _ = this;
  19065. _._box_0 = t0;
  19066. _.$this = t1;
  19067. _.node = t2;
  19068. _.from = t3;
  19069. _.direction = t4;
  19070. _.fromNumber = t5;
  19071. },
  19072. _EvaluateVisitor_visitForRule__closure: function _EvaluateVisitor_visitForRule__closure(t0) {
  19073. this.$this = t0;
  19074. },
  19075. _EvaluateVisitor_visitForwardRule_closure: function _EvaluateVisitor_visitForwardRule_closure(t0, t1) {
  19076. this.$this = t0;
  19077. this.node = t1;
  19078. },
  19079. _EvaluateVisitor_visitForwardRule_closure0: function _EvaluateVisitor_visitForwardRule_closure0(t0, t1) {
  19080. this.$this = t0;
  19081. this.node = t1;
  19082. },
  19083. _EvaluateVisitor__registerCommentsForModule_closure: function _EvaluateVisitor__registerCommentsForModule_closure() {
  19084. },
  19085. _EvaluateVisitor_visitIfRule_closure: function _EvaluateVisitor_visitIfRule_closure(t0) {
  19086. this.$this = t0;
  19087. },
  19088. _EvaluateVisitor_visitIfRule__closure: function _EvaluateVisitor_visitIfRule__closure(t0, t1) {
  19089. this.$this = t0;
  19090. this.clause = t1;
  19091. },
  19092. _EvaluateVisitor_visitIfRule___closure: function _EvaluateVisitor_visitIfRule___closure(t0) {
  19093. this.$this = t0;
  19094. },
  19095. _EvaluateVisitor__visitDynamicImport_closure: function _EvaluateVisitor__visitDynamicImport_closure(t0, t1) {
  19096. this.$this = t0;
  19097. this.$import = t1;
  19098. },
  19099. _EvaluateVisitor__visitDynamicImport__closure: function _EvaluateVisitor__visitDynamicImport__closure(t0) {
  19100. this.$this = t0;
  19101. },
  19102. _EvaluateVisitor__visitDynamicImport__closure0: function _EvaluateVisitor__visitDynamicImport__closure0() {
  19103. },
  19104. _EvaluateVisitor__visitDynamicImport__closure1: function _EvaluateVisitor__visitDynamicImport__closure1() {
  19105. },
  19106. _EvaluateVisitor__visitDynamicImport__closure2: function _EvaluateVisitor__visitDynamicImport__closure2(t0, t1, t2, t3, t4) {
  19107. var _ = this;
  19108. _._box_0 = t0;
  19109. _.$this = t1;
  19110. _.loadsUserDefinedModules = t2;
  19111. _.environment = t3;
  19112. _.children = t4;
  19113. },
  19114. _EvaluateVisitor__applyMixin_closure: function _EvaluateVisitor__applyMixin_closure(t0, t1, t2, t3) {
  19115. var _ = this;
  19116. _.$this = t0;
  19117. _.$arguments = t1;
  19118. _.mixin = t2;
  19119. _.nodeWithSpanWithoutContent = t3;
  19120. },
  19121. _EvaluateVisitor__applyMixin__closure0: function _EvaluateVisitor__applyMixin__closure0(t0, t1, t2, t3) {
  19122. var _ = this;
  19123. _.$this = t0;
  19124. _.$arguments = t1;
  19125. _.mixin = t2;
  19126. _.nodeWithSpanWithoutContent = t3;
  19127. },
  19128. _EvaluateVisitor__applyMixin_closure0: function _EvaluateVisitor__applyMixin_closure0(t0, t1, t2, t3) {
  19129. var _ = this;
  19130. _.$this = t0;
  19131. _.contentCallable = t1;
  19132. _.mixin = t2;
  19133. _.nodeWithSpanWithoutContent = t3;
  19134. },
  19135. _EvaluateVisitor__applyMixin__closure: function _EvaluateVisitor__applyMixin__closure(t0, t1, t2) {
  19136. this.$this = t0;
  19137. this.mixin = t1;
  19138. this.nodeWithSpanWithoutContent = t2;
  19139. },
  19140. _EvaluateVisitor__applyMixin___closure: function _EvaluateVisitor__applyMixin___closure(t0, t1, t2) {
  19141. this.$this = t0;
  19142. this.mixin = t1;
  19143. this.nodeWithSpanWithoutContent = t2;
  19144. },
  19145. _EvaluateVisitor__applyMixin____closure: function _EvaluateVisitor__applyMixin____closure(t0, t1) {
  19146. this.$this = t0;
  19147. this.statement = t1;
  19148. },
  19149. _EvaluateVisitor_visitIncludeRule_closure: function _EvaluateVisitor_visitIncludeRule_closure(t0, t1) {
  19150. this.$this = t0;
  19151. this.node = t1;
  19152. },
  19153. _EvaluateVisitor_visitIncludeRule_closure0: function _EvaluateVisitor_visitIncludeRule_closure0(t0) {
  19154. this.$this = t0;
  19155. },
  19156. _EvaluateVisitor_visitIncludeRule_closure1: function _EvaluateVisitor_visitIncludeRule_closure1(t0) {
  19157. this.node = t0;
  19158. },
  19159. _EvaluateVisitor_visitMediaRule_closure: function _EvaluateVisitor_visitMediaRule_closure(t0, t1) {
  19160. this.$this = t0;
  19161. this.queries = t1;
  19162. },
  19163. _EvaluateVisitor_visitMediaRule_closure0: function _EvaluateVisitor_visitMediaRule_closure0(t0, t1, t2, t3, t4) {
  19164. var _ = this;
  19165. _.$this = t0;
  19166. _.mergedQueries = t1;
  19167. _.queries = t2;
  19168. _.mergedSources = t3;
  19169. _.node = t4;
  19170. },
  19171. _EvaluateVisitor_visitMediaRule__closure: function _EvaluateVisitor_visitMediaRule__closure(t0, t1) {
  19172. this.$this = t0;
  19173. this.node = t1;
  19174. },
  19175. _EvaluateVisitor_visitMediaRule___closure: function _EvaluateVisitor_visitMediaRule___closure(t0, t1) {
  19176. this.$this = t0;
  19177. this.node = t1;
  19178. },
  19179. _EvaluateVisitor_visitMediaRule_closure1: function _EvaluateVisitor_visitMediaRule_closure1(t0) {
  19180. this.mergedSources = t0;
  19181. },
  19182. _EvaluateVisitor_visitStyleRule_closure: function _EvaluateVisitor_visitStyleRule_closure(t0, t1) {
  19183. this.$this = t0;
  19184. this.node = t1;
  19185. },
  19186. _EvaluateVisitor_visitStyleRule_closure0: function _EvaluateVisitor_visitStyleRule_closure0() {
  19187. },
  19188. _EvaluateVisitor_visitStyleRule_closure2: function _EvaluateVisitor_visitStyleRule_closure2(t0, t1, t2) {
  19189. this.$this = t0;
  19190. this.rule = t1;
  19191. this.node = t2;
  19192. },
  19193. _EvaluateVisitor_visitStyleRule__closure: function _EvaluateVisitor_visitStyleRule__closure(t0, t1) {
  19194. this.$this = t0;
  19195. this.node = t1;
  19196. },
  19197. _EvaluateVisitor_visitStyleRule_closure1: function _EvaluateVisitor_visitStyleRule_closure1() {
  19198. },
  19199. _EvaluateVisitor__warnForBogusCombinators_closure: function _EvaluateVisitor__warnForBogusCombinators_closure() {
  19200. },
  19201. _EvaluateVisitor_visitSupportsRule_closure: function _EvaluateVisitor_visitSupportsRule_closure(t0, t1) {
  19202. this.$this = t0;
  19203. this.node = t1;
  19204. },
  19205. _EvaluateVisitor_visitSupportsRule__closure: function _EvaluateVisitor_visitSupportsRule__closure(t0, t1) {
  19206. this.$this = t0;
  19207. this.node = t1;
  19208. },
  19209. _EvaluateVisitor_visitSupportsRule_closure0: function _EvaluateVisitor_visitSupportsRule_closure0() {
  19210. },
  19211. _EvaluateVisitor__visitSupportsCondition_closure: function _EvaluateVisitor__visitSupportsCondition_closure(t0, t1) {
  19212. this._box_0 = t0;
  19213. this.$this = t1;
  19214. },
  19215. _EvaluateVisitor_visitVariableDeclaration_closure: function _EvaluateVisitor_visitVariableDeclaration_closure(t0, t1, t2) {
  19216. this._box_0 = t0;
  19217. this.$this = t1;
  19218. this.node = t2;
  19219. },
  19220. _EvaluateVisitor_visitVariableDeclaration_closure0: function _EvaluateVisitor_visitVariableDeclaration_closure0(t0, t1) {
  19221. this.$this = t0;
  19222. this.node = t1;
  19223. },
  19224. _EvaluateVisitor_visitVariableDeclaration_closure1: function _EvaluateVisitor_visitVariableDeclaration_closure1(t0, t1, t2) {
  19225. this.$this = t0;
  19226. this.node = t1;
  19227. this.value = t2;
  19228. },
  19229. _EvaluateVisitor_visitUseRule_closure: function _EvaluateVisitor_visitUseRule_closure(t0, t1) {
  19230. this.$this = t0;
  19231. this.node = t1;
  19232. },
  19233. _EvaluateVisitor_visitWarnRule_closure: function _EvaluateVisitor_visitWarnRule_closure(t0, t1) {
  19234. this.$this = t0;
  19235. this.node = t1;
  19236. },
  19237. _EvaluateVisitor_visitWhileRule_closure: function _EvaluateVisitor_visitWhileRule_closure(t0, t1) {
  19238. this.$this = t0;
  19239. this.node = t1;
  19240. },
  19241. _EvaluateVisitor_visitWhileRule__closure: function _EvaluateVisitor_visitWhileRule__closure(t0) {
  19242. this.$this = t0;
  19243. },
  19244. _EvaluateVisitor_visitBinaryOperationExpression_closure: function _EvaluateVisitor_visitBinaryOperationExpression_closure(t0, t1) {
  19245. this.$this = t0;
  19246. this.node = t1;
  19247. },
  19248. _EvaluateVisitor__slash_recommendation: function _EvaluateVisitor__slash_recommendation() {
  19249. },
  19250. _EvaluateVisitor_visitVariableExpression_closure: function _EvaluateVisitor_visitVariableExpression_closure(t0, t1) {
  19251. this.$this = t0;
  19252. this.node = t1;
  19253. },
  19254. _EvaluateVisitor_visitUnaryOperationExpression_closure: function _EvaluateVisitor_visitUnaryOperationExpression_closure(t0, t1) {
  19255. this.node = t0;
  19256. this.operand = t1;
  19257. },
  19258. _EvaluateVisitor_visitListExpression_closure: function _EvaluateVisitor_visitListExpression_closure(t0) {
  19259. this.$this = t0;
  19260. },
  19261. _EvaluateVisitor_visitFunctionExpression_closure: function _EvaluateVisitor_visitFunctionExpression_closure(t0, t1) {
  19262. this.$this = t0;
  19263. this.node = t1;
  19264. },
  19265. _EvaluateVisitor_visitFunctionExpression_closure0: function _EvaluateVisitor_visitFunctionExpression_closure0() {
  19266. },
  19267. _EvaluateVisitor_visitFunctionExpression_closure1: function _EvaluateVisitor_visitFunctionExpression_closure1(t0, t1, t2) {
  19268. this._box_0 = t0;
  19269. this.$this = t1;
  19270. this.node = t2;
  19271. },
  19272. _EvaluateVisitor__checkCalculationArguments_check: function _EvaluateVisitor__checkCalculationArguments_check(t0, t1) {
  19273. this.$this = t0;
  19274. this.node = t1;
  19275. },
  19276. _EvaluateVisitor__visitCalculationExpression_closure: function _EvaluateVisitor__visitCalculationExpression_closure(t0, t1, t2, t3) {
  19277. var _ = this;
  19278. _._box_0 = t0;
  19279. _.$this = t1;
  19280. _.node = t2;
  19281. _.inLegacySassFunction = t3;
  19282. },
  19283. _EvaluateVisitor_visitInterpolatedFunctionExpression_closure: function _EvaluateVisitor_visitInterpolatedFunctionExpression_closure(t0, t1, t2) {
  19284. this.$this = t0;
  19285. this.node = t1;
  19286. this.$function = t2;
  19287. },
  19288. _EvaluateVisitor__runUserDefinedCallable_closure: function _EvaluateVisitor__runUserDefinedCallable_closure(t0, t1, t2, t3, t4, t5) {
  19289. var _ = this;
  19290. _.$this = t0;
  19291. _.callable = t1;
  19292. _.evaluated = t2;
  19293. _.nodeWithSpan = t3;
  19294. _.run = t4;
  19295. _.V = t5;
  19296. },
  19297. _EvaluateVisitor__runUserDefinedCallable__closure: function _EvaluateVisitor__runUserDefinedCallable__closure(t0, t1, t2, t3, t4, t5) {
  19298. var _ = this;
  19299. _.$this = t0;
  19300. _.evaluated = t1;
  19301. _.callable = t2;
  19302. _.nodeWithSpan = t3;
  19303. _.run = t4;
  19304. _.V = t5;
  19305. },
  19306. _EvaluateVisitor__runUserDefinedCallable___closure: function _EvaluateVisitor__runUserDefinedCallable___closure(t0, t1, t2, t3, t4, t5) {
  19307. var _ = this;
  19308. _.$this = t0;
  19309. _.evaluated = t1;
  19310. _.callable = t2;
  19311. _.nodeWithSpan = t3;
  19312. _.run = t4;
  19313. _.V = t5;
  19314. },
  19315. _EvaluateVisitor__runUserDefinedCallable____closure: function _EvaluateVisitor__runUserDefinedCallable____closure() {
  19316. },
  19317. _EvaluateVisitor__runFunctionCallable_closure: function _EvaluateVisitor__runFunctionCallable_closure(t0, t1) {
  19318. this.$this = t0;
  19319. this.callable = t1;
  19320. },
  19321. _EvaluateVisitor__runBuiltInCallable_closure: function _EvaluateVisitor__runBuiltInCallable_closure(t0, t1, t2) {
  19322. this._box_0 = t0;
  19323. this.evaluated = t1;
  19324. this.namedSet = t2;
  19325. },
  19326. _EvaluateVisitor__runBuiltInCallable_closure0: function _EvaluateVisitor__runBuiltInCallable_closure0(t0, t1) {
  19327. this._box_0 = t0;
  19328. this.evaluated = t1;
  19329. },
  19330. _EvaluateVisitor__runBuiltInCallable_closure1: function _EvaluateVisitor__runBuiltInCallable_closure1() {
  19331. },
  19332. _EvaluateVisitor__evaluateArguments_closure: function _EvaluateVisitor__evaluateArguments_closure() {
  19333. },
  19334. _EvaluateVisitor__evaluateArguments_closure0: function _EvaluateVisitor__evaluateArguments_closure0(t0, t1) {
  19335. this.$this = t0;
  19336. this.restNodeForSpan = t1;
  19337. },
  19338. _EvaluateVisitor__evaluateArguments_closure1: function _EvaluateVisitor__evaluateArguments_closure1(t0, t1, t2, t3) {
  19339. var _ = this;
  19340. _.$this = t0;
  19341. _.named = t1;
  19342. _.restNodeForSpan = t2;
  19343. _.namedNodes = t3;
  19344. },
  19345. _EvaluateVisitor__evaluateArguments_closure2: function _EvaluateVisitor__evaluateArguments_closure2() {
  19346. },
  19347. _EvaluateVisitor__evaluateMacroArguments_closure: function _EvaluateVisitor__evaluateMacroArguments_closure(t0) {
  19348. this.restArgs = t0;
  19349. },
  19350. _EvaluateVisitor__evaluateMacroArguments_closure0: function _EvaluateVisitor__evaluateMacroArguments_closure0(t0, t1, t2) {
  19351. this.$this = t0;
  19352. this.restNodeForSpan = t1;
  19353. this.restArgs = t2;
  19354. },
  19355. _EvaluateVisitor__evaluateMacroArguments_closure1: function _EvaluateVisitor__evaluateMacroArguments_closure1(t0, t1, t2, t3) {
  19356. var _ = this;
  19357. _.$this = t0;
  19358. _.named = t1;
  19359. _.restNodeForSpan = t2;
  19360. _.restArgs = t3;
  19361. },
  19362. _EvaluateVisitor__evaluateMacroArguments_closure2: function _EvaluateVisitor__evaluateMacroArguments_closure2(t0, t1, t2) {
  19363. this.$this = t0;
  19364. this.keywordRestNodeForSpan = t1;
  19365. this.keywordRestArgs = t2;
  19366. },
  19367. _EvaluateVisitor__addRestMap_closure: function _EvaluateVisitor__addRestMap_closure(t0, t1, t2, t3, t4, t5) {
  19368. var _ = this;
  19369. _.$this = t0;
  19370. _.values = t1;
  19371. _.convert = t2;
  19372. _.expressionNode = t3;
  19373. _.map = t4;
  19374. _.nodeWithSpan = t5;
  19375. },
  19376. _EvaluateVisitor__verifyArguments_closure: function _EvaluateVisitor__verifyArguments_closure(t0, t1, t2) {
  19377. this.$arguments = t0;
  19378. this.positional = t1;
  19379. this.named = t2;
  19380. },
  19381. _EvaluateVisitor_visitCssAtRule_closure: function _EvaluateVisitor_visitCssAtRule_closure(t0, t1) {
  19382. this.$this = t0;
  19383. this.node = t1;
  19384. },
  19385. _EvaluateVisitor_visitCssAtRule_closure0: function _EvaluateVisitor_visitCssAtRule_closure0() {
  19386. },
  19387. _EvaluateVisitor_visitCssKeyframeBlock_closure: function _EvaluateVisitor_visitCssKeyframeBlock_closure(t0, t1) {
  19388. this.$this = t0;
  19389. this.node = t1;
  19390. },
  19391. _EvaluateVisitor_visitCssKeyframeBlock_closure0: function _EvaluateVisitor_visitCssKeyframeBlock_closure0() {
  19392. },
  19393. _EvaluateVisitor_visitCssMediaRule_closure: function _EvaluateVisitor_visitCssMediaRule_closure(t0, t1) {
  19394. this.$this = t0;
  19395. this.node = t1;
  19396. },
  19397. _EvaluateVisitor_visitCssMediaRule_closure0: function _EvaluateVisitor_visitCssMediaRule_closure0(t0, t1, t2, t3) {
  19398. var _ = this;
  19399. _.$this = t0;
  19400. _.mergedQueries = t1;
  19401. _.node = t2;
  19402. _.mergedSources = t3;
  19403. },
  19404. _EvaluateVisitor_visitCssMediaRule__closure: function _EvaluateVisitor_visitCssMediaRule__closure(t0, t1) {
  19405. this.$this = t0;
  19406. this.node = t1;
  19407. },
  19408. _EvaluateVisitor_visitCssMediaRule___closure: function _EvaluateVisitor_visitCssMediaRule___closure(t0, t1) {
  19409. this.$this = t0;
  19410. this.node = t1;
  19411. },
  19412. _EvaluateVisitor_visitCssMediaRule_closure1: function _EvaluateVisitor_visitCssMediaRule_closure1(t0) {
  19413. this.mergedSources = t0;
  19414. },
  19415. _EvaluateVisitor_visitCssStyleRule_closure0: function _EvaluateVisitor_visitCssStyleRule_closure0(t0, t1, t2) {
  19416. this.$this = t0;
  19417. this.rule = t1;
  19418. this.node = t2;
  19419. },
  19420. _EvaluateVisitor_visitCssStyleRule__closure: function _EvaluateVisitor_visitCssStyleRule__closure(t0, t1) {
  19421. this.$this = t0;
  19422. this.node = t1;
  19423. },
  19424. _EvaluateVisitor_visitCssStyleRule_closure: function _EvaluateVisitor_visitCssStyleRule_closure() {
  19425. },
  19426. _EvaluateVisitor_visitCssSupportsRule_closure: function _EvaluateVisitor_visitCssSupportsRule_closure(t0, t1) {
  19427. this.$this = t0;
  19428. this.node = t1;
  19429. },
  19430. _EvaluateVisitor_visitCssSupportsRule__closure: function _EvaluateVisitor_visitCssSupportsRule__closure(t0, t1) {
  19431. this.$this = t0;
  19432. this.node = t1;
  19433. },
  19434. _EvaluateVisitor_visitCssSupportsRule_closure0: function _EvaluateVisitor_visitCssSupportsRule_closure0() {
  19435. },
  19436. _EvaluateVisitor__performInterpolationHelper_closure: function _EvaluateVisitor__performInterpolationHelper_closure(t0) {
  19437. this.interpolation = t0;
  19438. },
  19439. _EvaluateVisitor__serialize_closure: function _EvaluateVisitor__serialize_closure(t0, t1) {
  19440. this.value = t0;
  19441. this.quote = t1;
  19442. },
  19443. _EvaluateVisitor__expressionNode_closure: function _EvaluateVisitor__expressionNode_closure(t0, t1) {
  19444. this.$this = t0;
  19445. this.expression = t1;
  19446. },
  19447. _EvaluateVisitor__withoutSlash_recommendation: function _EvaluateVisitor__withoutSlash_recommendation() {
  19448. },
  19449. _EvaluateVisitor__stackFrame_closure: function _EvaluateVisitor__stackFrame_closure(t0) {
  19450. this.$this = t0;
  19451. },
  19452. _ImportedCssVisitor: function _ImportedCssVisitor(t0) {
  19453. this._visitor = t0;
  19454. },
  19455. _ImportedCssVisitor_visitCssAtRule_closure: function _ImportedCssVisitor_visitCssAtRule_closure() {
  19456. },
  19457. _ImportedCssVisitor_visitCssMediaRule_closure: function _ImportedCssVisitor_visitCssMediaRule_closure(t0) {
  19458. this.hasBeenMerged = t0;
  19459. },
  19460. _ImportedCssVisitor_visitCssStyleRule_closure: function _ImportedCssVisitor_visitCssStyleRule_closure() {
  19461. },
  19462. _ImportedCssVisitor_visitCssSupportsRule_closure: function _ImportedCssVisitor_visitCssSupportsRule_closure() {
  19463. },
  19464. _EvaluationContext: function _EvaluationContext(t0, t1) {
  19465. this._visitor = t0;
  19466. this._defaultWarnNodeWithSpan = t1;
  19467. },
  19468. EveryCssVisitor: function EveryCssVisitor() {
  19469. },
  19470. EveryCssVisitor_visitCssAtRule_closure: function EveryCssVisitor_visitCssAtRule_closure(t0) {
  19471. this.$this = t0;
  19472. },
  19473. EveryCssVisitor_visitCssKeyframeBlock_closure: function EveryCssVisitor_visitCssKeyframeBlock_closure(t0) {
  19474. this.$this = t0;
  19475. },
  19476. EveryCssVisitor_visitCssMediaRule_closure: function EveryCssVisitor_visitCssMediaRule_closure(t0) {
  19477. this.$this = t0;
  19478. },
  19479. EveryCssVisitor_visitCssStyleRule_closure: function EveryCssVisitor_visitCssStyleRule_closure(t0) {
  19480. this.$this = t0;
  19481. },
  19482. EveryCssVisitor_visitCssStylesheet_closure: function EveryCssVisitor_visitCssStylesheet_closure(t0) {
  19483. this.$this = t0;
  19484. },
  19485. EveryCssVisitor_visitCssSupportsRule_closure: function EveryCssVisitor_visitCssSupportsRule_closure(t0) {
  19486. this.$this = t0;
  19487. },
  19488. expressionToCalc(expression) {
  19489. var t4,
  19490. t1 = A._setArrayType([B.C__MakeExpressionCalculationSafe.visitBinaryOperationExpression$1(0, expression)], type$.JSArray_Expression),
  19491. t2 = expression.get$span(0),
  19492. t3 = type$.Expression;
  19493. t1 = A.List_List$unmodifiable(t1, t3);
  19494. t3 = A.ConstantMap_ConstantMap$from(B.Map_empty6, type$.String, t3);
  19495. t4 = expression.get$span(0);
  19496. return new A.FunctionExpression(null, A.stringReplaceAllUnchecked("calc", "_", "-"), "calc", new A.ArgumentInvocation(t1, t3, null, null, t2), t4);
  19497. },
  19498. _MakeExpressionCalculationSafe: function _MakeExpressionCalculationSafe() {
  19499. },
  19500. __MakeExpressionCalculationSafe_Object_ReplaceExpressionVisitor: function __MakeExpressionCalculationSafe_Object_ReplaceExpressionVisitor() {
  19501. },
  19502. _FindDependenciesVisitor: function _FindDependenciesVisitor(t0, t1, t2, t3, t4) {
  19503. var _ = this;
  19504. _._find_dependencies$_uses = t0;
  19505. _._find_dependencies$_forwards = t1;
  19506. _._metaLoadCss = t2;
  19507. _._imports = t3;
  19508. _._metaNamespaces = t4;
  19509. },
  19510. DependencyReport: function DependencyReport(t0, t1, t2, t3) {
  19511. var _ = this;
  19512. _.uses = t0;
  19513. _.forwards = t1;
  19514. _.metaLoadCss = t2;
  19515. _.imports = t3;
  19516. },
  19517. __FindDependenciesVisitor_Object_RecursiveStatementVisitor: function __FindDependenciesVisitor_Object_RecursiveStatementVisitor() {
  19518. },
  19519. IsCalculationSafeVisitor: function IsCalculationSafeVisitor() {
  19520. },
  19521. IsCalculationSafeVisitor_visitListExpression_closure: function IsCalculationSafeVisitor_visitListExpression_closure(t0) {
  19522. this.$this = t0;
  19523. },
  19524. RecursiveStatementVisitor: function RecursiveStatementVisitor() {
  19525. },
  19526. ReplaceExpressionVisitor: function ReplaceExpressionVisitor() {
  19527. },
  19528. ReplaceExpressionVisitor_visitListExpression_closure: function ReplaceExpressionVisitor_visitListExpression_closure(t0) {
  19529. this.$this = t0;
  19530. },
  19531. ReplaceExpressionVisitor_visitArgumentInvocation_closure: function ReplaceExpressionVisitor_visitArgumentInvocation_closure(t0) {
  19532. this.$this = t0;
  19533. },
  19534. ReplaceExpressionVisitor_visitInterpolation_closure: function ReplaceExpressionVisitor_visitInterpolation_closure(t0) {
  19535. this.$this = t0;
  19536. },
  19537. SelectorSearchVisitor: function SelectorSearchVisitor() {
  19538. },
  19539. SelectorSearchVisitor_visitComplexSelector_closure: function SelectorSearchVisitor_visitComplexSelector_closure(t0) {
  19540. this.$this = t0;
  19541. },
  19542. SelectorSearchVisitor_visitCompoundSelector_closure: function SelectorSearchVisitor_visitCompoundSelector_closure(t0) {
  19543. this.$this = t0;
  19544. },
  19545. serialize(node, charset, indentWidth, inspect, lineFeed, logger, sourceMap, style, useSpaces) {
  19546. var t1, css, t2, prefix,
  19547. visitor = A._SerializeVisitor$(2, inspect, lineFeed, logger, true, sourceMap, style, true);
  19548. node.accept$1(visitor);
  19549. t1 = visitor._serialize$_buffer;
  19550. css = t1.toString$0(0);
  19551. if (charset) {
  19552. t2 = new A.CodeUnits(css);
  19553. t2 = t2.any$1(t2, new A.serialize_closure());
  19554. } else
  19555. t2 = false;
  19556. if (t2)
  19557. prefix = style === B.OutputStyle_1 ? "\ufeff" : '@charset "UTF-8";\n';
  19558. else
  19559. prefix = "";
  19560. t1 = sourceMap ? t1.buildSourceMap$1$prefix(prefix) : null;
  19561. return new A._Record_2_sourceMap(prefix + css, t1);
  19562. },
  19563. serializeValue(value, inspect, quote) {
  19564. var _null = null,
  19565. visitor = A._SerializeVisitor$(_null, inspect, _null, _null, quote, false, _null, true);
  19566. value.accept$1(visitor);
  19567. return visitor._serialize$_buffer.toString$0(0);
  19568. },
  19569. serializeSelector(selector, inspect) {
  19570. var _null = null,
  19571. visitor = A._SerializeVisitor$(_null, true, _null, _null, true, false, _null, true);
  19572. selector.accept$1(visitor);
  19573. return visitor._serialize$_buffer.toString$0(0);
  19574. },
  19575. _SerializeVisitor$(indentWidth, inspect, lineFeed, logger, quote, sourceMap, style, useSpaces) {
  19576. var t1 = sourceMap ? new A.SourceMapBuffer(new A.StringBuffer(""), A._setArrayType([], type$.JSArray_Entry)) : new A.NoSourceMapBuffer(new A.StringBuffer("")),
  19577. t2 = style == null ? B.OutputStyle_0 : style,
  19578. t3 = indentWidth == null ? 2 : indentWidth,
  19579. t4 = logger == null ? B.StderrLogger_false : logger;
  19580. A.RangeError_checkValueInInterval(t3, 0, 10, "indentWidth");
  19581. return new A._SerializeVisitor(t1, t2, inspect, quote, 32, t3, B.LineFeed_lf, t4);
  19582. },
  19583. serialize_closure: function serialize_closure() {
  19584. },
  19585. _SerializeVisitor: function _SerializeVisitor(t0, t1, t2, t3, t4, t5, t6, t7) {
  19586. var _ = this;
  19587. _._serialize$_buffer = t0;
  19588. _._indentation = 0;
  19589. _._style = t1;
  19590. _._inspect = t2;
  19591. _._quote = t3;
  19592. _._indentCharacter = t4;
  19593. _._indentWidth = t5;
  19594. _._serialize$_lineFeed = t6;
  19595. _._serialize$_logger = t7;
  19596. },
  19597. _SerializeVisitor_visitCssComment_closure: function _SerializeVisitor_visitCssComment_closure(t0, t1) {
  19598. this.$this = t0;
  19599. this.node = t1;
  19600. },
  19601. _SerializeVisitor_visitCssAtRule_closure: function _SerializeVisitor_visitCssAtRule_closure(t0, t1) {
  19602. this.$this = t0;
  19603. this.node = t1;
  19604. },
  19605. _SerializeVisitor_visitCssMediaRule_closure: function _SerializeVisitor_visitCssMediaRule_closure(t0, t1) {
  19606. this.$this = t0;
  19607. this.node = t1;
  19608. },
  19609. _SerializeVisitor_visitCssImport_closure: function _SerializeVisitor_visitCssImport_closure(t0, t1) {
  19610. this.$this = t0;
  19611. this.node = t1;
  19612. },
  19613. _SerializeVisitor_visitCssImport__closure: function _SerializeVisitor_visitCssImport__closure(t0, t1) {
  19614. this.$this = t0;
  19615. this.node = t1;
  19616. },
  19617. _SerializeVisitor_visitCssKeyframeBlock_closure: function _SerializeVisitor_visitCssKeyframeBlock_closure(t0, t1) {
  19618. this.$this = t0;
  19619. this.node = t1;
  19620. },
  19621. _SerializeVisitor_visitCssStyleRule_closure: function _SerializeVisitor_visitCssStyleRule_closure(t0, t1) {
  19622. this.$this = t0;
  19623. this.node = t1;
  19624. },
  19625. _SerializeVisitor_visitCssSupportsRule_closure: function _SerializeVisitor_visitCssSupportsRule_closure(t0, t1) {
  19626. this.$this = t0;
  19627. this.node = t1;
  19628. },
  19629. _SerializeVisitor_visitCssDeclaration_closure: function _SerializeVisitor_visitCssDeclaration_closure(t0, t1) {
  19630. this.$this = t0;
  19631. this.node = t1;
  19632. },
  19633. _SerializeVisitor_visitCssDeclaration_closure0: function _SerializeVisitor_visitCssDeclaration_closure0(t0, t1) {
  19634. this.$this = t0;
  19635. this.node = t1;
  19636. },
  19637. _SerializeVisitor_visitList_closure: function _SerializeVisitor_visitList_closure() {
  19638. },
  19639. _SerializeVisitor_visitList_closure0: function _SerializeVisitor_visitList_closure0(t0, t1) {
  19640. this.$this = t0;
  19641. this.value = t1;
  19642. },
  19643. _SerializeVisitor_visitList_closure1: function _SerializeVisitor_visitList_closure1(t0) {
  19644. this.$this = t0;
  19645. },
  19646. _SerializeVisitor_visitMap_closure: function _SerializeVisitor_visitMap_closure(t0) {
  19647. this.$this = t0;
  19648. },
  19649. _SerializeVisitor_visitSelectorList_closure: function _SerializeVisitor_visitSelectorList_closure() {
  19650. },
  19651. _SerializeVisitor__write_closure: function _SerializeVisitor__write_closure(t0, t1) {
  19652. this.$this = t0;
  19653. this.value = t1;
  19654. },
  19655. _SerializeVisitor__visitChildren_closure: function _SerializeVisitor__visitChildren_closure(t0, t1) {
  19656. this.$this = t0;
  19657. this.child = t1;
  19658. },
  19659. _SerializeVisitor__visitChildren_closure0: function _SerializeVisitor__visitChildren_closure0(t0, t1) {
  19660. this.$this = t0;
  19661. this.child = t1;
  19662. },
  19663. OutputStyle: function OutputStyle(t0) {
  19664. this._name = t0;
  19665. },
  19666. LineFeed: function LineFeed(t0) {
  19667. this._name = t0;
  19668. },
  19669. StatementSearchVisitor: function StatementSearchVisitor() {
  19670. },
  19671. StatementSearchVisitor_visitIfRule_closure: function StatementSearchVisitor_visitIfRule_closure(t0) {
  19672. this.$this = t0;
  19673. },
  19674. StatementSearchVisitor_visitIfRule__closure0: function StatementSearchVisitor_visitIfRule__closure0(t0) {
  19675. this.$this = t0;
  19676. },
  19677. StatementSearchVisitor_visitIfRule_closure0: function StatementSearchVisitor_visitIfRule_closure0(t0) {
  19678. this.$this = t0;
  19679. },
  19680. StatementSearchVisitor_visitIfRule__closure: function StatementSearchVisitor_visitIfRule__closure(t0) {
  19681. this.$this = t0;
  19682. },
  19683. StatementSearchVisitor_visitChildren_closure: function StatementSearchVisitor_visitChildren_closure(t0) {
  19684. this.$this = t0;
  19685. },
  19686. Entry: function Entry(t0, t1, t2) {
  19687. this.source = t0;
  19688. this.target = t1;
  19689. this.identifierName = t2;
  19690. },
  19691. SingleMapping_SingleMapping$fromEntries(entries) {
  19692. var lines, t1, t2, urls, names, files, targetEntries, t3, lineNum, _i, sourceEntry, t4, t5, sourceUrl, t6, urlId,
  19693. sourceEntries = J.toList$0$ax(entries);
  19694. B.JSArray_methods.sort$0(sourceEntries);
  19695. lines = A._setArrayType([], type$.JSArray_TargetLineEntry);
  19696. t1 = type$.String;
  19697. t2 = type$.int;
  19698. urls = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
  19699. names = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
  19700. files = A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.SourceFile);
  19701. targetEntries = A._Cell$();
  19702. for (t2 = sourceEntries.length, t3 = type$.JSArray_TargetEntry, lineNum = null, _i = 0; _i < sourceEntries.length; sourceEntries.length === t2 || (0, A.throwConcurrentModificationError)(sourceEntries), ++_i) {
  19703. sourceEntry = sourceEntries[_i];
  19704. if (lineNum == null || sourceEntry.target.line > lineNum) {
  19705. lineNum = sourceEntry.target.line;
  19706. t4 = A._setArrayType([], t3);
  19707. targetEntries.__late_helper$_value = t4;
  19708. lines.push(new A.TargetLineEntry(lineNum, t4));
  19709. }
  19710. t4 = sourceEntry.source;
  19711. t5 = t4.file;
  19712. sourceUrl = t5.url;
  19713. t6 = sourceUrl == null ? "" : sourceUrl.toString$0(0);
  19714. urlId = urls.putIfAbsent$2(t6, new A.SingleMapping_SingleMapping$fromEntries_closure(urls));
  19715. files.putIfAbsent$2(urlId, new A.SingleMapping_SingleMapping$fromEntries_closure0(sourceEntry));
  19716. t6 = targetEntries.__late_helper$_value;
  19717. if (t6 === targetEntries)
  19718. A.throwExpression(A.LateError$localNI(""));
  19719. t4 = t4.offset;
  19720. J.add$1$ax(t6, new A.TargetEntry(sourceEntry.target.column, urlId, t5.getLine$1(t4), t5.getColumn$1(t4), null));
  19721. }
  19722. t2 = urls.get$values(0);
  19723. t2 = A.MappedIterable_MappedIterable(t2, new A.SingleMapping_SingleMapping$fromEntries_closure1(files), A._instanceType(t2)._eval$1("Iterable.E"), type$.nullable_SourceFile);
  19724. t2 = A.List_List$of(t2, true, A._instanceType(t2)._eval$1("Iterable.E"));
  19725. t3 = urls.$ti._eval$1("LinkedHashMapKeyIterable<1>");
  19726. t4 = names.$ti._eval$1("LinkedHashMapKeyIterable<1>");
  19727. return new A.SingleMapping(A.List_List$of(new A.LinkedHashMapKeyIterable(urls, t3), true, t3._eval$1("Iterable.E")), A.List_List$of(new A.LinkedHashMapKeyIterable(names, t4), true, t4._eval$1("Iterable.E")), t2, lines, null, A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.dynamic));
  19728. },
  19729. Mapping: function Mapping() {
  19730. },
  19731. SingleMapping: function SingleMapping(t0, t1, t2, t3, t4, t5) {
  19732. var _ = this;
  19733. _.urls = t0;
  19734. _.names = t1;
  19735. _.files = t2;
  19736. _.lines = t3;
  19737. _.targetUrl = t4;
  19738. _.sourceRoot = null;
  19739. _.extensions = t5;
  19740. },
  19741. SingleMapping_SingleMapping$fromEntries_closure: function SingleMapping_SingleMapping$fromEntries_closure(t0) {
  19742. this.urls = t0;
  19743. },
  19744. SingleMapping_SingleMapping$fromEntries_closure0: function SingleMapping_SingleMapping$fromEntries_closure0(t0) {
  19745. this.sourceEntry = t0;
  19746. },
  19747. SingleMapping_SingleMapping$fromEntries_closure1: function SingleMapping_SingleMapping$fromEntries_closure1(t0) {
  19748. this.files = t0;
  19749. },
  19750. SingleMapping_toJson_closure: function SingleMapping_toJson_closure() {
  19751. },
  19752. SingleMapping_toJson_closure0: function SingleMapping_toJson_closure0(t0) {
  19753. this.result = t0;
  19754. },
  19755. TargetLineEntry: function TargetLineEntry(t0, t1) {
  19756. this.line = t0;
  19757. this.entries = t1;
  19758. },
  19759. TargetEntry: function TargetEntry(t0, t1, t2, t3, t4) {
  19760. var _ = this;
  19761. _.column = t0;
  19762. _.sourceUrlId = t1;
  19763. _.sourceLine = t2;
  19764. _.sourceColumn = t3;
  19765. _.sourceNameId = t4;
  19766. },
  19767. SourceFile$fromString(text, url) {
  19768. var t1 = new A.CodeUnits(text),
  19769. t2 = A._setArrayType([0], type$.JSArray_int),
  19770. t3 = typeof url == "string" ? A.Uri_parse(url) : type$.nullable_Uri._as(url);
  19771. t2 = new A.SourceFile(t3, t2, new Uint32Array(A._ensureNativeList(t1.toList$0(t1))));
  19772. t2.SourceFile$decoded$2$url(t1, url);
  19773. return t2;
  19774. },
  19775. SourceFile$decoded(decodedChars, url) {
  19776. var t1 = A._setArrayType([0], type$.JSArray_int),
  19777. t2 = typeof url == "string" ? A.Uri_parse(url) : type$.nullable_Uri._as(url);
  19778. t1 = new A.SourceFile(t2, t1, new Uint32Array(A._ensureNativeList(J.toList$0$ax(decodedChars))));
  19779. t1.SourceFile$decoded$2$url(decodedChars, url);
  19780. return t1;
  19781. },
  19782. FileLocation$_(file, offset) {
  19783. if (offset < 0)
  19784. A.throwExpression(A.RangeError$("Offset may not be negative, was " + offset + "."));
  19785. else if (offset > file._decodedChars.length)
  19786. A.throwExpression(A.RangeError$("Offset " + offset + string$.x20must_n + file.get$length(0) + "."));
  19787. return new A.FileLocation(file, offset);
  19788. },
  19789. _FileSpan$(file, _start, _end) {
  19790. if (_end < _start)
  19791. A.throwExpression(A.ArgumentError$("End " + _end + " must come after start " + _start + ".", null));
  19792. else if (_end > file._decodedChars.length)
  19793. A.throwExpression(A.RangeError$("End " + _end + string$.x20must_n + file.get$length(0) + "."));
  19794. else if (_start < 0)
  19795. A.throwExpression(A.RangeError$("Start may not be negative, was " + _start + "."));
  19796. return new A._FileSpan(file, _start, _end);
  19797. },
  19798. FileSpanExtension_subspan(_this, start, end) {
  19799. var t1, startOffset, t2;
  19800. A.RangeError_checkValidRange(start, end, _this.get$length(_this));
  19801. if (start === 0)
  19802. t1 = end == null || end === _this.get$length(_this);
  19803. else
  19804. t1 = false;
  19805. if (t1)
  19806. return _this;
  19807. startOffset = _this.get$start(_this).offset;
  19808. t1 = _this.get$file(_this);
  19809. t2 = end == null ? _this.get$end(_this).offset : startOffset + end;
  19810. return t1.span$2(0, startOffset + start, t2);
  19811. },
  19812. SourceFile: function SourceFile(t0, t1, t2) {
  19813. var _ = this;
  19814. _.url = t0;
  19815. _._lineStarts = t1;
  19816. _._decodedChars = t2;
  19817. _._cachedLine = null;
  19818. },
  19819. FileLocation: function FileLocation(t0, t1) {
  19820. this.file = t0;
  19821. this.offset = t1;
  19822. },
  19823. _FileSpan: function _FileSpan(t0, t1, t2) {
  19824. this.file = t0;
  19825. this._file$_start = t1;
  19826. this._end = t2;
  19827. },
  19828. Highlighter$(span, color) {
  19829. var t1 = A.Highlighter__collateLines(A._setArrayType([A._Highlight$(span, null, true)], type$.JSArray__Highlight)),
  19830. t2 = new A.Highlighter_closure(color).call$0(),
  19831. t3 = B.JSInt_methods.toString$0(B.JSArray_methods.get$last(t1).number + 1),
  19832. t4 = A.Highlighter__contiguous(t1) ? 0 : 3,
  19833. t5 = A._arrayInstanceType(t1);
  19834. return new A.Highlighter(t1, t2, null, 1 + Math.max(t3.length, t4), new A.MappedListIterable(t1, new A.Highlighter$__closure(), t5._eval$1("MappedListIterable<1,int>")).reduce$1(0, B.CONSTANT), !A.isAllTheSame(new A.MappedListIterable(t1, new A.Highlighter$__closure0(), t5._eval$1("MappedListIterable<1,Object?>"))), new A.StringBuffer(""));
  19835. },
  19836. Highlighter$multiple(primarySpan, primaryLabel, secondarySpans, color, primaryColor, secondaryColor) {
  19837. var t2, t3, t4, t5, t6,
  19838. t1 = A._setArrayType([A._Highlight$(primarySpan, primaryLabel, true)], type$.JSArray__Highlight);
  19839. for (t2 = secondarySpans.get$entries(secondarySpans), t2 = t2.get$iterator(t2); t2.moveNext$0();) {
  19840. t3 = t2.get$current(t2);
  19841. t1.push(A._Highlight$(t3.key, t3.value, false));
  19842. }
  19843. t1 = A.Highlighter__collateLines(t1);
  19844. if (color)
  19845. t2 = primaryColor == null ? "\x1b[31m" : primaryColor;
  19846. else
  19847. t2 = null;
  19848. if (color)
  19849. t3 = "\x1b[34m";
  19850. else
  19851. t3 = null;
  19852. t4 = B.JSInt_methods.toString$0(B.JSArray_methods.get$last(t1).number + 1);
  19853. t5 = A.Highlighter__contiguous(t1) ? 0 : 3;
  19854. t6 = A._arrayInstanceType(t1);
  19855. return new A.Highlighter(t1, t2, t3, 1 + Math.max(t4.length, t5), new A.MappedListIterable(t1, new A.Highlighter$__closure(), t6._eval$1("MappedListIterable<1,int>")).reduce$1(0, B.CONSTANT), !A.isAllTheSame(new A.MappedListIterable(t1, new A.Highlighter$__closure0(), t6._eval$1("MappedListIterable<1,Object?>"))), new A.StringBuffer(""));
  19856. },
  19857. Highlighter__contiguous(lines) {
  19858. var i, thisLine, nextLine;
  19859. for (i = 0; i < lines.length - 1;) {
  19860. thisLine = lines[i];
  19861. ++i;
  19862. nextLine = lines[i];
  19863. if (thisLine.number + 1 !== nextLine.number && J.$eq$(thisLine.url, nextLine.url))
  19864. return false;
  19865. }
  19866. return true;
  19867. },
  19868. Highlighter__collateLines(highlights) {
  19869. var t1, t2, t3,
  19870. highlightsByUrl = A.groupBy(highlights, new A.Highlighter__collateLines_closure(), type$._Highlight, type$.Object);
  19871. for (t1 = highlightsByUrl.get$values(0), t2 = A._instanceType(t1), t1 = new A.MappedIterator(J.get$iterator$ax(t1.__internal$_iterable), t1._f, t2._eval$1("MappedIterator<1,2>")), t2 = t2._rest[1]; t1.moveNext$0();) {
  19872. t3 = t1.__internal$_current;
  19873. if (t3 == null)
  19874. t3 = t2._as(t3);
  19875. J.sort$1$ax(t3, new A.Highlighter__collateLines_closure0());
  19876. }
  19877. t1 = highlightsByUrl.get$entries(0);
  19878. t2 = A._instanceType(t1)._eval$1("ExpandIterable<Iterable.E,_Line>");
  19879. return A.List_List$of(new A.ExpandIterable(t1, new A.Highlighter__collateLines_closure1(), t2), true, t2._eval$1("Iterable.E"));
  19880. },
  19881. _Highlight$(span, label, primary) {
  19882. var t2,
  19883. t1 = new A._Highlight_closure(span).call$0();
  19884. if (label == null)
  19885. t2 = null;
  19886. else
  19887. t2 = A.stringReplaceAllUnchecked(label, "\r\n", "\n");
  19888. return new A._Highlight(t1, primary, t2);
  19889. },
  19890. _Highlight__normalizeNewlines(span) {
  19891. var endOffset, t1, i, t2, t3, t4,
  19892. text = span.get$text();
  19893. if (!B.JSString_methods.contains$1(text, "\r\n"))
  19894. return span;
  19895. endOffset = span.get$end(span).get$offset();
  19896. for (t1 = text.length - 1, i = 0; i < t1; ++i)
  19897. if (text.charCodeAt(i) === 13 && text.charCodeAt(i + 1) === 10)
  19898. --endOffset;
  19899. t1 = span.get$start(span);
  19900. t2 = span.get$sourceUrl(span);
  19901. t3 = span.get$end(span).get$line();
  19902. t2 = A.SourceLocation$(endOffset, span.get$end(span).get$column(), t3, t2);
  19903. t3 = A.stringReplaceAllUnchecked(text, "\r\n", "\n");
  19904. t4 = span.get$context(span);
  19905. return A.SourceSpanWithContext$(t1, t2, t3, A.stringReplaceAllUnchecked(t4, "\r\n", "\n"));
  19906. },
  19907. _Highlight__normalizeTrailingNewline(span) {
  19908. var context, text, start, end, t1, t2, t3;
  19909. if (!B.JSString_methods.endsWith$1(span.get$context(span), "\n"))
  19910. return span;
  19911. if (B.JSString_methods.endsWith$1(span.get$text(), "\n\n"))
  19912. return span;
  19913. context = B.JSString_methods.substring$2(span.get$context(span), 0, span.get$context(span).length - 1);
  19914. text = span.get$text();
  19915. start = span.get$start(span);
  19916. end = span.get$end(span);
  19917. if (B.JSString_methods.endsWith$1(span.get$text(), "\n")) {
  19918. t1 = A.findLineStart(span.get$context(span), span.get$text(), span.get$start(span).get$column());
  19919. t1.toString;
  19920. t1 = t1 + span.get$start(span).get$column() + span.get$length(span) === span.get$context(span).length;
  19921. } else
  19922. t1 = false;
  19923. if (t1) {
  19924. text = B.JSString_methods.substring$2(span.get$text(), 0, span.get$text().length - 1);
  19925. if (text.length === 0)
  19926. end = start;
  19927. else {
  19928. t1 = span.get$end(span).get$offset();
  19929. t2 = span.get$sourceUrl(span);
  19930. t3 = span.get$end(span).get$line();
  19931. end = A.SourceLocation$(t1 - 1, A._Highlight__lastLineLength(context), t3 - 1, t2);
  19932. start = span.get$start(span).get$offset() === span.get$end(span).get$offset() ? end : span.get$start(span);
  19933. }
  19934. }
  19935. return A.SourceSpanWithContext$(start, end, text, context);
  19936. },
  19937. _Highlight__normalizeEndOfLine(span) {
  19938. var text, t1, t2, t3, t4;
  19939. if (span.get$end(span).get$column() !== 0)
  19940. return span;
  19941. if (span.get$end(span).get$line() === span.get$start(span).get$line())
  19942. return span;
  19943. text = B.JSString_methods.substring$2(span.get$text(), 0, span.get$text().length - 1);
  19944. t1 = span.get$start(span);
  19945. t2 = span.get$end(span).get$offset();
  19946. t3 = span.get$sourceUrl(span);
  19947. t4 = span.get$end(span).get$line();
  19948. t3 = A.SourceLocation$(t2 - 1, text.length - B.JSString_methods.lastIndexOf$1(text, "\n") - 1, t4 - 1, t3);
  19949. return A.SourceSpanWithContext$(t1, t3, text, B.JSString_methods.endsWith$1(span.get$context(span), "\n") ? B.JSString_methods.substring$2(span.get$context(span), 0, span.get$context(span).length - 1) : span.get$context(span));
  19950. },
  19951. _Highlight__lastLineLength(text) {
  19952. var t1 = text.length;
  19953. if (t1 === 0)
  19954. return 0;
  19955. else if (text.charCodeAt(t1 - 1) === 10)
  19956. return t1 === 1 ? 0 : t1 - B.JSString_methods.lastIndexOf$2(text, "\n", t1 - 2) - 1;
  19957. else
  19958. return t1 - B.JSString_methods.lastIndexOf$1(text, "\n") - 1;
  19959. },
  19960. Highlighter: function Highlighter(t0, t1, t2, t3, t4, t5, t6) {
  19961. var _ = this;
  19962. _._lines = t0;
  19963. _._primaryColor = t1;
  19964. _._secondaryColor = t2;
  19965. _._paddingBeforeSidebar = t3;
  19966. _._maxMultilineSpans = t4;
  19967. _._multipleFiles = t5;
  19968. _._highlighter$_buffer = t6;
  19969. },
  19970. Highlighter_closure: function Highlighter_closure(t0) {
  19971. this.color = t0;
  19972. },
  19973. Highlighter$__closure: function Highlighter$__closure() {
  19974. },
  19975. Highlighter$___closure: function Highlighter$___closure() {
  19976. },
  19977. Highlighter$__closure0: function Highlighter$__closure0() {
  19978. },
  19979. Highlighter__collateLines_closure: function Highlighter__collateLines_closure() {
  19980. },
  19981. Highlighter__collateLines_closure0: function Highlighter__collateLines_closure0() {
  19982. },
  19983. Highlighter__collateLines_closure1: function Highlighter__collateLines_closure1() {
  19984. },
  19985. Highlighter__collateLines__closure: function Highlighter__collateLines__closure(t0) {
  19986. this.line = t0;
  19987. },
  19988. Highlighter_highlight_closure: function Highlighter_highlight_closure() {
  19989. },
  19990. Highlighter__writeFileStart_closure: function Highlighter__writeFileStart_closure(t0) {
  19991. this.$this = t0;
  19992. },
  19993. Highlighter__writeMultilineHighlights_closure: function Highlighter__writeMultilineHighlights_closure(t0, t1, t2) {
  19994. this.$this = t0;
  19995. this.startLine = t1;
  19996. this.line = t2;
  19997. },
  19998. Highlighter__writeMultilineHighlights_closure0: function Highlighter__writeMultilineHighlights_closure0(t0, t1) {
  19999. this.$this = t0;
  20000. this.highlight = t1;
  20001. },
  20002. Highlighter__writeMultilineHighlights_closure1: function Highlighter__writeMultilineHighlights_closure1(t0) {
  20003. this.$this = t0;
  20004. },
  20005. Highlighter__writeMultilineHighlights_closure2: function Highlighter__writeMultilineHighlights_closure2(t0, t1, t2, t3, t4, t5, t6) {
  20006. var _ = this;
  20007. _._box_0 = t0;
  20008. _.$this = t1;
  20009. _.current = t2;
  20010. _.startLine = t3;
  20011. _.line = t4;
  20012. _.highlight = t5;
  20013. _.endLine = t6;
  20014. },
  20015. Highlighter__writeMultilineHighlights__closure: function Highlighter__writeMultilineHighlights__closure(t0, t1) {
  20016. this._box_0 = t0;
  20017. this.$this = t1;
  20018. },
  20019. Highlighter__writeMultilineHighlights__closure0: function Highlighter__writeMultilineHighlights__closure0(t0, t1) {
  20020. this.$this = t0;
  20021. this.vertical = t1;
  20022. },
  20023. Highlighter__writeHighlightedText_closure: function Highlighter__writeHighlightedText_closure(t0, t1, t2, t3) {
  20024. var _ = this;
  20025. _.$this = t0;
  20026. _.text = t1;
  20027. _.startColumn = t2;
  20028. _.endColumn = t3;
  20029. },
  20030. Highlighter__writeIndicator_closure: function Highlighter__writeIndicator_closure(t0, t1, t2) {
  20031. this.$this = t0;
  20032. this.line = t1;
  20033. this.highlight = t2;
  20034. },
  20035. Highlighter__writeIndicator_closure0: function Highlighter__writeIndicator_closure0(t0, t1, t2) {
  20036. this.$this = t0;
  20037. this.line = t1;
  20038. this.highlight = t2;
  20039. },
  20040. Highlighter__writeIndicator_closure1: function Highlighter__writeIndicator_closure1(t0, t1, t2, t3) {
  20041. var _ = this;
  20042. _.$this = t0;
  20043. _.coversWholeLine = t1;
  20044. _.line = t2;
  20045. _.highlight = t3;
  20046. },
  20047. Highlighter__writeLabel_closure: function Highlighter__writeLabel_closure(t0, t1) {
  20048. this.$this = t0;
  20049. this.lines = t1;
  20050. },
  20051. Highlighter__writeLabel_closure0: function Highlighter__writeLabel_closure0(t0, t1) {
  20052. this.$this = t0;
  20053. this.text = t1;
  20054. },
  20055. Highlighter__writeSidebar_closure: function Highlighter__writeSidebar_closure(t0, t1, t2) {
  20056. this._box_0 = t0;
  20057. this.$this = t1;
  20058. this.end = t2;
  20059. },
  20060. _Highlight: function _Highlight(t0, t1, t2) {
  20061. this.span = t0;
  20062. this.isPrimary = t1;
  20063. this.label = t2;
  20064. },
  20065. _Highlight_closure: function _Highlight_closure(t0) {
  20066. this.span = t0;
  20067. },
  20068. _Line: function _Line(t0, t1, t2, t3) {
  20069. var _ = this;
  20070. _.text = t0;
  20071. _.number = t1;
  20072. _.url = t2;
  20073. _.highlights = t3;
  20074. },
  20075. SourceLocation$(offset, column, line, sourceUrl) {
  20076. var t1 = line == null,
  20077. t2 = t1 ? 0 : line,
  20078. t3 = column == null,
  20079. t4 = t3 ? offset : column;
  20080. if (offset < 0)
  20081. A.throwExpression(A.RangeError$("Offset may not be negative, was " + offset + "."));
  20082. else if (!t1 && line < 0)
  20083. A.throwExpression(A.RangeError$("Line may not be negative, was " + A.S(line) + "."));
  20084. else if (!t3 && column < 0)
  20085. A.throwExpression(A.RangeError$("Column may not be negative, was " + A.S(column) + "."));
  20086. return new A.SourceLocation(sourceUrl, offset, t2, t4);
  20087. },
  20088. SourceLocation: function SourceLocation(t0, t1, t2, t3) {
  20089. var _ = this;
  20090. _.sourceUrl = t0;
  20091. _.offset = t1;
  20092. _.line = t2;
  20093. _.column = t3;
  20094. },
  20095. SourceLocationMixin: function SourceLocationMixin() {
  20096. },
  20097. SourceSpanExtension_messageMultiple(_this, message, label, secondarySpans, color, primaryColor, secondaryColor) {
  20098. var t2, t3,
  20099. t1 = _this.get$start(_this);
  20100. t1 = t1.file.getLine$1(t1.offset);
  20101. t2 = _this.get$start(_this);
  20102. t2 = "" + ("line " + (t1 + 1) + ", column " + (t2.file.getColumn$1(t2.offset) + 1));
  20103. if (_this.get$sourceUrl(_this) != null) {
  20104. t1 = _this.get$sourceUrl(_this);
  20105. t3 = $.$get$context();
  20106. t1.toString;
  20107. t1 = t2 + (" of " + t3.prettyUri$1(t1));
  20108. } else
  20109. t1 = t2;
  20110. t1 = t1 + (": " + message + "\n") + A.Highlighter$multiple(_this, label, secondarySpans, color, primaryColor, secondaryColor).highlight$0();
  20111. return t1.charCodeAt(0) == 0 ? t1 : t1;
  20112. },
  20113. SourceSpanBase: function SourceSpanBase() {
  20114. },
  20115. SourceSpanException: function SourceSpanException() {
  20116. },
  20117. SourceSpanFormatException: function SourceSpanFormatException(t0, t1, t2) {
  20118. this.source = t0;
  20119. this._span_exception$_message = t1;
  20120. this._span = t2;
  20121. },
  20122. MultiSourceSpanException: function MultiSourceSpanException() {
  20123. },
  20124. MultiSourceSpanFormatException: function MultiSourceSpanFormatException(t0, t1, t2, t3, t4) {
  20125. var _ = this;
  20126. _.source = t0;
  20127. _.primaryLabel = t1;
  20128. _.secondarySpans = t2;
  20129. _._span_exception$_message = t3;
  20130. _._span = t4;
  20131. },
  20132. SourceSpanMixin: function SourceSpanMixin() {
  20133. },
  20134. SourceSpanWithContext$(start, end, text, _context) {
  20135. var t1 = new A.SourceSpanWithContext(_context, start, end, text);
  20136. t1.SourceSpanBase$3(start, end, text);
  20137. if (!B.JSString_methods.contains$1(_context, text))
  20138. A.throwExpression(A.ArgumentError$('The context line "' + _context + '" must contain "' + text + '".', null));
  20139. if (A.findLineStart(_context, text, start.get$column()) == null)
  20140. A.throwExpression(A.ArgumentError$('The span text "' + text + '" must start at column ' + (start.get$column() + 1) + ' in a line within "' + _context + '".', null));
  20141. return t1;
  20142. },
  20143. SourceSpanWithContext: function SourceSpanWithContext(t0, t1, t2, t3) {
  20144. var _ = this;
  20145. _._context = t0;
  20146. _.start = t1;
  20147. _.end = t2;
  20148. _.text = t3;
  20149. },
  20150. Chain_Chain$parse(chain) {
  20151. var t1, t2,
  20152. _s51_ = string$.x3d_____;
  20153. if (chain.length === 0)
  20154. return new A.Chain(A.List_List$unmodifiable(A._setArrayType([], type$.JSArray_Trace), type$.Trace));
  20155. t1 = $.$get$vmChainGap();
  20156. if (B.JSString_methods.contains$1(chain, t1)) {
  20157. t1 = B.JSString_methods.split$1(chain, t1);
  20158. t2 = A._arrayInstanceType(t1);
  20159. return new A.Chain(A.List_List$unmodifiable(new A.MappedIterable(new A.WhereIterable(t1, new A.Chain_Chain$parse_closure(), t2._eval$1("WhereIterable<1>")), A.trace_Trace___parseVM_tearOff$closure(), t2._eval$1("MappedIterable<1,Trace>")), type$.Trace));
  20160. }
  20161. if (!B.JSString_methods.contains$1(chain, _s51_))
  20162. return new A.Chain(A.List_List$unmodifiable(A._setArrayType([A.Trace_Trace$parse(chain)], type$.JSArray_Trace), type$.Trace));
  20163. return new A.Chain(A.List_List$unmodifiable(new A.MappedListIterable(A._setArrayType(chain.split(_s51_), type$.JSArray_String), A.trace_Trace___parseFriendly_tearOff$closure(), type$.MappedListIterable_String_Trace), type$.Trace));
  20164. },
  20165. Chain: function Chain(t0) {
  20166. this.traces = t0;
  20167. },
  20168. Chain_Chain$parse_closure: function Chain_Chain$parse_closure() {
  20169. },
  20170. Chain_toTrace_closure: function Chain_toTrace_closure() {
  20171. },
  20172. Chain_toString_closure0: function Chain_toString_closure0() {
  20173. },
  20174. Chain_toString__closure0: function Chain_toString__closure0() {
  20175. },
  20176. Chain_toString_closure: function Chain_toString_closure(t0) {
  20177. this.longest = t0;
  20178. },
  20179. Chain_toString__closure: function Chain_toString__closure(t0) {
  20180. this.longest = t0;
  20181. },
  20182. Frame___parseVM_tearOff(frame) {
  20183. return A.Frame_Frame$parseVM(frame);
  20184. },
  20185. Frame_Frame$parseVM(frame) {
  20186. return A.Frame__catchFormatException(frame, new A.Frame_Frame$parseVM_closure(frame));
  20187. },
  20188. Frame___parseV8_tearOff(frame) {
  20189. return A.Frame_Frame$parseV8(frame);
  20190. },
  20191. Frame_Frame$parseV8(frame) {
  20192. return A.Frame__catchFormatException(frame, new A.Frame_Frame$parseV8_closure(frame));
  20193. },
  20194. Frame_Frame$_parseFirefoxEval(frame) {
  20195. return A.Frame__catchFormatException(frame, new A.Frame_Frame$_parseFirefoxEval_closure(frame));
  20196. },
  20197. Frame___parseFirefox_tearOff(frame) {
  20198. return A.Frame_Frame$parseFirefox(frame);
  20199. },
  20200. Frame_Frame$parseFirefox(frame) {
  20201. return A.Frame__catchFormatException(frame, new A.Frame_Frame$parseFirefox_closure(frame));
  20202. },
  20203. Frame___parseFriendly_tearOff(frame) {
  20204. return A.Frame_Frame$parseFriendly(frame);
  20205. },
  20206. Frame_Frame$parseFriendly(frame) {
  20207. return A.Frame__catchFormatException(frame, new A.Frame_Frame$parseFriendly_closure(frame));
  20208. },
  20209. Frame__uriOrPathToUri(uriOrPath) {
  20210. if (B.JSString_methods.contains$1(uriOrPath, $.$get$Frame__uriRegExp()))
  20211. return A.Uri_parse(uriOrPath);
  20212. else if (B.JSString_methods.contains$1(uriOrPath, $.$get$Frame__windowsRegExp()))
  20213. return A._Uri__Uri$file(uriOrPath, true);
  20214. else if (B.JSString_methods.startsWith$1(uriOrPath, "/"))
  20215. return A._Uri__Uri$file(uriOrPath, false);
  20216. if (B.JSString_methods.contains$1(uriOrPath, "\\"))
  20217. return $.$get$windows().toUri$1(uriOrPath);
  20218. return A.Uri_parse(uriOrPath);
  20219. },
  20220. Frame__catchFormatException(text, body) {
  20221. var t1, exception;
  20222. try {
  20223. t1 = body.call$0();
  20224. return t1;
  20225. } catch (exception) {
  20226. if (type$.FormatException._is(A.unwrapException(exception)))
  20227. return new A.UnparsedFrame(A._Uri__Uri(null, "unparsed", null, null), text);
  20228. else
  20229. throw exception;
  20230. }
  20231. },
  20232. Frame: function Frame(t0, t1, t2, t3) {
  20233. var _ = this;
  20234. _.uri = t0;
  20235. _.line = t1;
  20236. _.column = t2;
  20237. _.member = t3;
  20238. },
  20239. Frame_Frame$parseVM_closure: function Frame_Frame$parseVM_closure(t0) {
  20240. this.frame = t0;
  20241. },
  20242. Frame_Frame$parseV8_closure: function Frame_Frame$parseV8_closure(t0) {
  20243. this.frame = t0;
  20244. },
  20245. Frame_Frame$parseV8_closure_parseJsLocation: function Frame_Frame$parseV8_closure_parseJsLocation(t0) {
  20246. this.frame = t0;
  20247. },
  20248. Frame_Frame$_parseFirefoxEval_closure: function Frame_Frame$_parseFirefoxEval_closure(t0) {
  20249. this.frame = t0;
  20250. },
  20251. Frame_Frame$parseFirefox_closure: function Frame_Frame$parseFirefox_closure(t0) {
  20252. this.frame = t0;
  20253. },
  20254. Frame_Frame$parseFriendly_closure: function Frame_Frame$parseFriendly_closure(t0) {
  20255. this.frame = t0;
  20256. },
  20257. LazyTrace: function LazyTrace(t0) {
  20258. this._thunk = t0;
  20259. this.__LazyTrace__trace_FI = $;
  20260. },
  20261. LazyTrace_terse_closure: function LazyTrace_terse_closure(t0) {
  20262. this.$this = t0;
  20263. },
  20264. Trace_Trace$from(trace) {
  20265. if (type$.Trace._is(trace))
  20266. return trace;
  20267. if (trace instanceof A.Chain)
  20268. return trace.toTrace$0();
  20269. return new A.LazyTrace(new A.Trace_Trace$from_closure(trace));
  20270. },
  20271. Trace_Trace$parse(trace) {
  20272. var error, t1, exception;
  20273. try {
  20274. if (trace.length === 0) {
  20275. t1 = A.Trace$(A._setArrayType([], type$.JSArray_Frame), null);
  20276. return t1;
  20277. }
  20278. if (B.JSString_methods.contains$1(trace, $.$get$_v8Trace())) {
  20279. t1 = A.Trace$parseV8(trace);
  20280. return t1;
  20281. }
  20282. if (B.JSString_methods.contains$1(trace, "\tat ")) {
  20283. t1 = A.Trace$parseJSCore(trace);
  20284. return t1;
  20285. }
  20286. if (B.JSString_methods.contains$1(trace, $.$get$_firefoxSafariTrace()) || B.JSString_methods.contains$1(trace, $.$get$_firefoxEvalTrace())) {
  20287. t1 = A.Trace$parseFirefox(trace);
  20288. return t1;
  20289. }
  20290. if (B.JSString_methods.contains$1(trace, string$.x3d_____)) {
  20291. t1 = A.Chain_Chain$parse(trace).toTrace$0();
  20292. return t1;
  20293. }
  20294. if (B.JSString_methods.contains$1(trace, $.$get$_friendlyTrace())) {
  20295. t1 = A.Trace$parseFriendly(trace);
  20296. return t1;
  20297. }
  20298. t1 = A.Trace$parseVM(trace);
  20299. return t1;
  20300. } catch (exception) {
  20301. t1 = A.unwrapException(exception);
  20302. if (type$.FormatException._is(t1)) {
  20303. error = t1;
  20304. throw A.wrapException(A.FormatException$(J.get$message$x(error) + "\nStack trace:\n" + trace, null, null));
  20305. } else
  20306. throw exception;
  20307. }
  20308. },
  20309. Trace___parseVM_tearOff(trace) {
  20310. return A.Trace$parseVM(trace);
  20311. },
  20312. Trace$parseVM(trace) {
  20313. var t1 = A.List_List$unmodifiable(A.Trace__parseVM(trace), type$.Frame);
  20314. return new A.Trace(t1, new A._StringStackTrace(trace));
  20315. },
  20316. Trace__parseVM(trace) {
  20317. var $frames,
  20318. t1 = B.JSString_methods.trim$0(trace),
  20319. t2 = $.$get$vmChainGap(),
  20320. t3 = type$.WhereIterable_String,
  20321. lines = new A.WhereIterable(A._setArrayType(A.stringReplaceAllUnchecked(t1, t2, "").split("\n"), type$.JSArray_String), new A.Trace__parseVM_closure(), t3);
  20322. if (!lines.get$iterator(0).moveNext$0())
  20323. return A._setArrayType([], type$.JSArray_Frame);
  20324. t1 = A.TakeIterable_TakeIterable(lines, lines.get$length(0) - 1, t3._eval$1("Iterable.E"));
  20325. t1 = A.MappedIterable_MappedIterable(t1, A.frame_Frame___parseVM_tearOff$closure(), A._instanceType(t1)._eval$1("Iterable.E"), type$.Frame);
  20326. $frames = A.List_List$of(t1, true, A._instanceType(t1)._eval$1("Iterable.E"));
  20327. if (!J.endsWith$1$s(lines.get$last(0), ".da"))
  20328. B.JSArray_methods.add$1($frames, A.Frame_Frame$parseVM(lines.get$last(0)));
  20329. return $frames;
  20330. },
  20331. Trace$parseV8(trace) {
  20332. var t1 = A.SubListIterable$(A._setArrayType(trace.split("\n"), type$.JSArray_String), 1, null, type$.String).super$Iterable$skipWhile(0, new A.Trace$parseV8_closure()),
  20333. t2 = type$.Frame;
  20334. t2 = A.List_List$unmodifiable(A.MappedIterable_MappedIterable(t1, A.frame_Frame___parseV8_tearOff$closure(), t1.$ti._eval$1("Iterable.E"), t2), t2);
  20335. return new A.Trace(t2, new A._StringStackTrace(trace));
  20336. },
  20337. Trace$parseJSCore(trace) {
  20338. var t1 = A.List_List$unmodifiable(new A.MappedIterable(new A.WhereIterable(A._setArrayType(trace.split("\n"), type$.JSArray_String), new A.Trace$parseJSCore_closure(), type$.WhereIterable_String), A.frame_Frame___parseV8_tearOff$closure(), type$.MappedIterable_String_Frame), type$.Frame);
  20339. return new A.Trace(t1, new A._StringStackTrace(trace));
  20340. },
  20341. Trace$parseFirefox(trace) {
  20342. var t1 = A.List_List$unmodifiable(new A.MappedIterable(new A.WhereIterable(A._setArrayType(B.JSString_methods.trim$0(trace).split("\n"), type$.JSArray_String), new A.Trace$parseFirefox_closure(), type$.WhereIterable_String), A.frame_Frame___parseFirefox_tearOff$closure(), type$.MappedIterable_String_Frame), type$.Frame);
  20343. return new A.Trace(t1, new A._StringStackTrace(trace));
  20344. },
  20345. Trace___parseFriendly_tearOff(trace) {
  20346. return A.Trace$parseFriendly(trace);
  20347. },
  20348. Trace$parseFriendly(trace) {
  20349. var t1 = trace.length === 0 ? A._setArrayType([], type$.JSArray_Frame) : new A.MappedIterable(new A.WhereIterable(A._setArrayType(B.JSString_methods.trim$0(trace).split("\n"), type$.JSArray_String), new A.Trace$parseFriendly_closure(), type$.WhereIterable_String), A.frame_Frame___parseFriendly_tearOff$closure(), type$.MappedIterable_String_Frame);
  20350. t1 = A.List_List$unmodifiable(t1, type$.Frame);
  20351. return new A.Trace(t1, new A._StringStackTrace(trace));
  20352. },
  20353. Trace$($frames, original) {
  20354. var t1 = A.List_List$unmodifiable($frames, type$.Frame);
  20355. return new A.Trace(t1, new A._StringStackTrace(original == null ? "" : original));
  20356. },
  20357. Trace: function Trace(t0, t1) {
  20358. this.frames = t0;
  20359. this.original = t1;
  20360. },
  20361. Trace_Trace$from_closure: function Trace_Trace$from_closure(t0) {
  20362. this.trace = t0;
  20363. },
  20364. Trace__parseVM_closure: function Trace__parseVM_closure() {
  20365. },
  20366. Trace$parseV8_closure: function Trace$parseV8_closure() {
  20367. },
  20368. Trace$parseJSCore_closure: function Trace$parseJSCore_closure() {
  20369. },
  20370. Trace$parseFirefox_closure: function Trace$parseFirefox_closure() {
  20371. },
  20372. Trace$parseFriendly_closure: function Trace$parseFriendly_closure() {
  20373. },
  20374. Trace_terse_closure: function Trace_terse_closure() {
  20375. },
  20376. Trace_foldFrames_closure: function Trace_foldFrames_closure(t0) {
  20377. this.oldPredicate = t0;
  20378. },
  20379. Trace_foldFrames_closure0: function Trace_foldFrames_closure0(t0) {
  20380. this._box_0 = t0;
  20381. },
  20382. Trace_toString_closure0: function Trace_toString_closure0() {
  20383. },
  20384. Trace_toString_closure: function Trace_toString_closure(t0) {
  20385. this.longest = t0;
  20386. },
  20387. UnparsedFrame: function UnparsedFrame(t0, t1) {
  20388. this.uri = t0;
  20389. this.member = t1;
  20390. },
  20391. TransformByHandlers_transformByHandlers(_this, onData, onDone, $S, $T) {
  20392. var _null = null, t1 = {},
  20393. controller = A.StreamController_StreamController(_null, _null, _null, _null, true, $T);
  20394. t1.subscription = null;
  20395. controller.onListen = new A.TransformByHandlers_transformByHandlers_closure(t1, _this, onData, controller, A.instantiate1(A.from_handlers__TransformByHandlers__defaultHandleError$closure(), $T), onDone, $S);
  20396. return controller.get$stream();
  20397. },
  20398. TransformByHandlers__defaultHandleError(error, stackTrace, sink) {
  20399. sink.addError$2(error, stackTrace);
  20400. },
  20401. TransformByHandlers_transformByHandlers_closure: function TransformByHandlers_transformByHandlers_closure(t0, t1, t2, t3, t4, t5, t6) {
  20402. var _ = this;
  20403. _._box_1 = t0;
  20404. _._this = t1;
  20405. _.handleData = t2;
  20406. _.controller = t3;
  20407. _.handleError = t4;
  20408. _.handleDone = t5;
  20409. _.S = t6;
  20410. },
  20411. TransformByHandlers_transformByHandlers__closure: function TransformByHandlers_transformByHandlers__closure(t0, t1, t2) {
  20412. this.handleData = t0;
  20413. this.controller = t1;
  20414. this.S = t2;
  20415. },
  20416. TransformByHandlers_transformByHandlers__closure1: function TransformByHandlers_transformByHandlers__closure1(t0, t1) {
  20417. this.handleError = t0;
  20418. this.controller = t1;
  20419. },
  20420. TransformByHandlers_transformByHandlers__closure0: function TransformByHandlers_transformByHandlers__closure0(t0, t1, t2) {
  20421. this._box_0 = t0;
  20422. this.handleDone = t1;
  20423. this.controller = t2;
  20424. },
  20425. TransformByHandlers_transformByHandlers__closure2: function TransformByHandlers_transformByHandlers__closure2(t0, t1) {
  20426. this._box_1 = t0;
  20427. this._box_0 = t1;
  20428. },
  20429. RateLimit__debounceAggregate(_this, duration, collect, leading, trailing, $T, $S) {
  20430. var t1 = {};
  20431. t1.soFar = t1.timer = null;
  20432. t1.emittedLatestAsLeading = t1.shouldClose = t1.hasPending = false;
  20433. return A.TransformByHandlers_transformByHandlers(_this, new A.RateLimit__debounceAggregate_closure(t1, $S, collect, false, duration, true, $T), new A.RateLimit__debounceAggregate_closure0(t1, true, $S), $T, $S);
  20434. },
  20435. _collect($event, soFar, $T) {
  20436. var t1 = soFar == null ? A._setArrayType([], $T._eval$1("JSArray<0>")) : soFar;
  20437. J.add$1$ax(t1, $event);
  20438. return t1;
  20439. },
  20440. RateLimit__debounceAggregate_closure: function RateLimit__debounceAggregate_closure(t0, t1, t2, t3, t4, t5, t6) {
  20441. var _ = this;
  20442. _._box_0 = t0;
  20443. _.S = t1;
  20444. _.collect = t2;
  20445. _.leading = t3;
  20446. _.duration = t4;
  20447. _.trailing = t5;
  20448. _.T = t6;
  20449. },
  20450. RateLimit__debounceAggregate_closure_emit: function RateLimit__debounceAggregate_closure_emit(t0, t1, t2) {
  20451. this._box_0 = t0;
  20452. this.sink = t1;
  20453. this.S = t2;
  20454. },
  20455. RateLimit__debounceAggregate__closure: function RateLimit__debounceAggregate__closure(t0, t1, t2, t3) {
  20456. var _ = this;
  20457. _._box_0 = t0;
  20458. _.trailing = t1;
  20459. _.emit = t2;
  20460. _.sink = t3;
  20461. },
  20462. RateLimit__debounceAggregate_closure0: function RateLimit__debounceAggregate_closure0(t0, t1, t2) {
  20463. this._box_0 = t0;
  20464. this.trailing = t1;
  20465. this.S = t2;
  20466. },
  20467. StringScannerException$(message, span, source) {
  20468. return new A.StringScannerException(source, message, span);
  20469. },
  20470. StringScannerException: function StringScannerException(t0, t1, t2) {
  20471. this.source = t0;
  20472. this._span_exception$_message = t1;
  20473. this._span = t2;
  20474. },
  20475. LineScanner$(string) {
  20476. return new A.LineScanner(null, string);
  20477. },
  20478. LineScanner: function LineScanner(t0, t1) {
  20479. var _ = this;
  20480. _._line_scanner$_column = _._line_scanner$_line = 0;
  20481. _.sourceUrl = t0;
  20482. _.string = t1;
  20483. _._string_scanner$_position = 0;
  20484. _._lastMatchPosition = _._lastMatch = null;
  20485. },
  20486. SpanScanner$(string, sourceUrl) {
  20487. var t2,
  20488. t1 = A.SourceFile$fromString(string, sourceUrl);
  20489. if (sourceUrl == null)
  20490. t2 = null;
  20491. else
  20492. t2 = typeof sourceUrl == "string" ? A.Uri_parse(sourceUrl) : type$.Uri._as(sourceUrl);
  20493. return new A.SpanScanner(t1, t2, string);
  20494. },
  20495. SpanScanner: function SpanScanner(t0, t1, t2) {
  20496. var _ = this;
  20497. _._sourceFile = t0;
  20498. _.sourceUrl = t1;
  20499. _.string = t2;
  20500. _._string_scanner$_position = 0;
  20501. _._lastMatchPosition = _._lastMatch = null;
  20502. },
  20503. _SpanScannerState: function _SpanScannerState(t0, t1) {
  20504. this._scanner = t0;
  20505. this.position = t1;
  20506. },
  20507. StringScanner$(string, position, sourceUrl) {
  20508. var t1;
  20509. if (sourceUrl == null)
  20510. t1 = null;
  20511. else
  20512. t1 = typeof sourceUrl == "string" ? A.Uri_parse(sourceUrl) : type$.Uri._as(sourceUrl);
  20513. return new A.StringScanner(t1, string);
  20514. },
  20515. StringScanner: function StringScanner(t0, t1) {
  20516. var _ = this;
  20517. _.sourceUrl = t0;
  20518. _.string = t1;
  20519. _._string_scanner$_position = 0;
  20520. _._lastMatchPosition = _._lastMatch = null;
  20521. },
  20522. AsciiGlyphSet: function AsciiGlyphSet() {
  20523. },
  20524. UnicodeGlyphSet: function UnicodeGlyphSet() {
  20525. },
  20526. WatchEvent: function WatchEvent(t0, t1) {
  20527. this.type = t0;
  20528. this.path = t1;
  20529. },
  20530. ChangeType: function ChangeType(t0) {
  20531. this._watch_event$_name = t0;
  20532. },
  20533. A98RgbColorSpace0: function A98RgbColorSpace0(t0, t1) {
  20534. this.name = t0;
  20535. this._space$_channels = t1;
  20536. },
  20537. AnySelectorVisitor0: function AnySelectorVisitor0() {
  20538. },
  20539. AnySelectorVisitor_visitComplexSelector_closure0: function AnySelectorVisitor_visitComplexSelector_closure0(t0) {
  20540. this.$this = t0;
  20541. },
  20542. AnySelectorVisitor_visitCompoundSelector_closure0: function AnySelectorVisitor_visitCompoundSelector_closure0(t0) {
  20543. this.$this = t0;
  20544. },
  20545. SupportsAnything0: function SupportsAnything0(t0, t1) {
  20546. this.contents = t0;
  20547. this.span = t1;
  20548. },
  20549. Argument0: function Argument0(t0, t1, t2) {
  20550. this.name = t0;
  20551. this.defaultValue = t1;
  20552. this.span = t2;
  20553. },
  20554. ArgumentDeclaration_ArgumentDeclaration$parse0(contents, url) {
  20555. return A.ScssParser$0(contents, url).parseArgumentDeclaration$0();
  20556. },
  20557. ArgumentDeclaration0: function ArgumentDeclaration0(t0, t1, t2) {
  20558. this.$arguments = t0;
  20559. this.restArgument = t1;
  20560. this.span = t2;
  20561. },
  20562. ArgumentDeclaration_verify_closure1: function ArgumentDeclaration_verify_closure1() {
  20563. },
  20564. ArgumentDeclaration_verify_closure2: function ArgumentDeclaration_verify_closure2() {
  20565. },
  20566. ArgumentInvocation$empty0(span) {
  20567. return new A.ArgumentInvocation0(B.List_empty21, B.Map_empty14, null, null, span);
  20568. },
  20569. ArgumentInvocation0: function ArgumentInvocation0(t0, t1, t2, t3, t4) {
  20570. var _ = this;
  20571. _.positional = t0;
  20572. _.named = t1;
  20573. _.rest = t2;
  20574. _.keywordRest = t3;
  20575. _.span = t4;
  20576. },
  20577. argumentListClass_closure: function argumentListClass_closure() {
  20578. },
  20579. argumentListClass__closure: function argumentListClass__closure() {
  20580. },
  20581. argumentListClass__closure0: function argumentListClass__closure0() {
  20582. },
  20583. SassArgumentList$0(contents, keywords, separator) {
  20584. var t1 = type$.Value_2;
  20585. t1 = new A.SassArgumentList0(A.ConstantMap_ConstantMap$from(keywords, type$.String, t1), A.List_List$unmodifiable(contents, t1), separator, false);
  20586. t1.SassList$3$brackets0(contents, separator, false);
  20587. return t1;
  20588. },
  20589. SassArgumentList0: function SassArgumentList0(t0, t1, t2, t3) {
  20590. var _ = this;
  20591. _._argument_list$_keywords = t0;
  20592. _._argument_list$_wereKeywordsAccessed = false;
  20593. _._list1$_contents = t1;
  20594. _._list1$_separator = t2;
  20595. _._list1$_hasBrackets = t3;
  20596. },
  20597. JSArray1: function JSArray1() {
  20598. },
  20599. AsyncImporter0: function AsyncImporter0() {
  20600. },
  20601. JSToDartAsyncImporter: function JSToDartAsyncImporter(t0, t1, t2) {
  20602. this._async0$_canonicalize = t0;
  20603. this._load = t1;
  20604. this._nonCanonicalSchemes = t2;
  20605. },
  20606. JSToDartAsyncImporter_canonicalize_closure: function JSToDartAsyncImporter_canonicalize_closure(t0, t1) {
  20607. this.$this = t0;
  20608. this.url = t1;
  20609. },
  20610. JSToDartAsyncImporter_load_closure: function JSToDartAsyncImporter_load_closure(t0, t1) {
  20611. this.$this = t0;
  20612. this.url = t1;
  20613. },
  20614. AsyncBuiltInCallable$mixin0($name, $arguments, callback, acceptsContent, url) {
  20615. return new A.AsyncBuiltInCallable0($name, A.ScssParser$0("@mixin " + $name + "(" + $arguments + ") {", url).parseArgumentDeclaration$0(), new A.AsyncBuiltInCallable$mixin_closure0(callback), false);
  20616. },
  20617. AsyncBuiltInCallable0: function AsyncBuiltInCallable0(t0, t1, t2, t3) {
  20618. var _ = this;
  20619. _.name = t0;
  20620. _._async_built_in0$_arguments = t1;
  20621. _._async_built_in0$_callback = t2;
  20622. _.acceptsContent = t3;
  20623. },
  20624. AsyncBuiltInCallable$mixin_closure0: function AsyncBuiltInCallable$mixin_closure0(t0) {
  20625. this.callback = t0;
  20626. },
  20627. AsyncBuiltInCallable_withDeprecationWarning_closure0: function AsyncBuiltInCallable_withDeprecationWarning_closure0(t0, t1, t2) {
  20628. this.$this = t0;
  20629. this.module = t1;
  20630. this.newName = t2;
  20631. },
  20632. compileAsync0(path, charset, fatalDeprecations, functions, futureDeprecations, importCache, indentWidth, lineFeed, logger, nodeImporter, quietDeps, silenceDeprecations, sourceMap, style, syntax, useSpaces, verbose) {
  20633. var $async$goto = 0,
  20634. $async$completer = A._makeAsyncAwaitCompleter(type$.CompileResult_2),
  20635. $async$returnValue, t3, t4, t0, stylesheet, result, t1, t2;
  20636. var $async$compileAsync0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  20637. if ($async$errorCode === 1)
  20638. return A._asyncRethrow($async$result, $async$completer);
  20639. while (true)
  20640. switch ($async$goto) {
  20641. case 0:
  20642. // Function start
  20643. t1 = type$.Deprecation_3;
  20644. t2 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
  20645. if (silenceDeprecations != null)
  20646. t2.addAll$1(0, silenceDeprecations);
  20647. t3 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
  20648. if (fatalDeprecations != null)
  20649. t3.addAll$1(0, fatalDeprecations);
  20650. t4 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
  20651. if (futureDeprecations != null)
  20652. t4.addAll$1(0, futureDeprecations);
  20653. logger = new A.DeprecationProcessingLogger0(A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.int), logger, t2, t3, t4, !verbose);
  20654. logger.validate$0();
  20655. t1 = nodeImporter == null;
  20656. if (t1)
  20657. t2 = syntax == null || syntax === A.Syntax_forPath0(path);
  20658. else
  20659. t2 = false;
  20660. $async$goto = t2 ? 3 : 5;
  20661. break;
  20662. case 3:
  20663. // then
  20664. if (importCache == null)
  20665. importCache = A.AsyncImportCache$none();
  20666. t2 = $.$get$FilesystemImporter_cwd0();
  20667. t3 = A.isNodeJs() ? self.process : null;
  20668. if (!J.$eq$(t3 == null ? null : J.get$platform$x(t3), "win32")) {
  20669. t3 = A.isNodeJs() ? self.process : null;
  20670. t3 = J.$eq$(t3 == null ? null : J.get$platform$x(t3), "darwin");
  20671. } else
  20672. t3 = true;
  20673. if (t3) {
  20674. t3 = $.$get$context();
  20675. t4 = A._realCasePath0(A.absolute(t3.normalize$1(path), null, null, null, null, null, null, null, null, null, null, null, null, null, null));
  20676. t0 = t4;
  20677. t4 = t3;
  20678. t3 = t0;
  20679. } else {
  20680. t3 = $.$get$context();
  20681. t4 = t3.canonicalize$1(0, path);
  20682. t0 = t4;
  20683. t4 = t3;
  20684. t3 = t0;
  20685. }
  20686. $async$goto = 6;
  20687. return A._asyncAwait(importCache.importCanonical$3$originalUrl(t2, t4.toUri$1(t3), t4.toUri$1(path)), $async$compileAsync0);
  20688. case 6:
  20689. // returning from await.
  20690. t4 = $async$result;
  20691. t4.toString;
  20692. stylesheet = t4;
  20693. // goto join
  20694. $async$goto = 4;
  20695. break;
  20696. case 5:
  20697. // else
  20698. t2 = A.readFile0(path);
  20699. t3 = syntax == null ? A.Syntax_forPath0(path) : syntax;
  20700. stylesheet = A.Stylesheet_Stylesheet$parse0(t2, t3, $.$get$context().toUri$1(path));
  20701. case 4:
  20702. // join
  20703. $async$goto = 7;
  20704. return A._asyncAwait(A._compileStylesheet2(stylesheet, logger, importCache, nodeImporter, $.$get$FilesystemImporter_cwd0(), functions, style, useSpaces, indentWidth, lineFeed, quietDeps, sourceMap, charset), $async$compileAsync0);
  20705. case 7:
  20706. // returning from await.
  20707. result = $async$result;
  20708. logger.summarize$1$js(!t1);
  20709. $async$returnValue = result;
  20710. // goto return
  20711. $async$goto = 1;
  20712. break;
  20713. case 1:
  20714. // return
  20715. return A._asyncReturn($async$returnValue, $async$completer);
  20716. }
  20717. });
  20718. return A._asyncStartSync($async$compileAsync0, $async$completer);
  20719. },
  20720. compileStringAsync0(source, charset, fatalDeprecations, functions, futureDeprecations, importCache, importer, indentWidth, lineFeed, logger, nodeImporter, quietDeps, silenceDeprecations, sourceMap, style, syntax, url, useSpaces, verbose) {
  20721. var $async$goto = 0,
  20722. $async$completer = A._makeAsyncAwaitCompleter(type$.CompileResult_2),
  20723. $async$returnValue, t3, t4, stylesheet, result, t1, t2;
  20724. var $async$compileStringAsync0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  20725. if ($async$errorCode === 1)
  20726. return A._asyncRethrow($async$result, $async$completer);
  20727. while (true)
  20728. switch ($async$goto) {
  20729. case 0:
  20730. // Function start
  20731. t1 = type$.Deprecation_3;
  20732. t2 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
  20733. if (silenceDeprecations != null)
  20734. t2.addAll$1(0, silenceDeprecations);
  20735. t3 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
  20736. if (fatalDeprecations != null)
  20737. t3.addAll$1(0, fatalDeprecations);
  20738. t4 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
  20739. if (futureDeprecations != null)
  20740. t4.addAll$1(0, futureDeprecations);
  20741. logger = new A.DeprecationProcessingLogger0(A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.int), logger, t2, t3, t4, !verbose);
  20742. logger.validate$0();
  20743. stylesheet = A.Stylesheet_Stylesheet$parse0(source, syntax == null ? B.Syntax_SCSS_scss0 : syntax, url);
  20744. if (importer == null)
  20745. t1 = A.isBrowser() ? new A.NoOpImporter0() : $.$get$FilesystemImporter_cwd0();
  20746. else
  20747. t1 = importer;
  20748. $async$goto = 3;
  20749. return A._asyncAwait(A._compileStylesheet2(stylesheet, logger, importCache, nodeImporter, t1, functions, style, useSpaces, indentWidth, lineFeed, quietDeps, sourceMap, charset), $async$compileStringAsync0);
  20750. case 3:
  20751. // returning from await.
  20752. result = $async$result;
  20753. logger.summarize$1$js(nodeImporter != null);
  20754. $async$returnValue = result;
  20755. // goto return
  20756. $async$goto = 1;
  20757. break;
  20758. case 1:
  20759. // return
  20760. return A._asyncReturn($async$returnValue, $async$completer);
  20761. }
  20762. });
  20763. return A._asyncStartSync($async$compileStringAsync0, $async$completer);
  20764. },
  20765. _compileStylesheet2(stylesheet, logger, importCache, nodeImporter, importer, functions, style, useSpaces, indentWidth, lineFeed, quietDeps, sourceMap, charset) {
  20766. var $async$goto = 0,
  20767. $async$completer = A._makeAsyncAwaitCompleter(type$.CompileResult_2),
  20768. $async$returnValue, evaluateResult, serializeResult, resultSourceMap;
  20769. var $async$_compileStylesheet2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  20770. if ($async$errorCode === 1)
  20771. return A._asyncRethrow($async$result, $async$completer);
  20772. while (true)
  20773. switch ($async$goto) {
  20774. case 0:
  20775. // Function start
  20776. if (nodeImporter != null)
  20777. A.WarnForDeprecation_warnForDeprecation0(logger, B.Deprecation_2No, string$.The_le, null, null);
  20778. $async$goto = 3;
  20779. return A._asyncAwait(A._EvaluateVisitor$2(functions, importCache, logger, nodeImporter, quietDeps, sourceMap).run$2(0, importer, stylesheet), $async$_compileStylesheet2);
  20780. case 3:
  20781. // returning from await.
  20782. evaluateResult = $async$result;
  20783. serializeResult = A.serialize0(evaluateResult._1, charset, indentWidth, false, lineFeed, logger, sourceMap, style, useSpaces);
  20784. resultSourceMap = serializeResult._1;
  20785. if (resultSourceMap != null && importCache != null)
  20786. A.mapInPlace0(resultSourceMap.urls, new A._compileStylesheet_closure2(stylesheet, importCache));
  20787. $async$returnValue = new A.CompileResult0(evaluateResult, serializeResult);
  20788. // goto return
  20789. $async$goto = 1;
  20790. break;
  20791. case 1:
  20792. // return
  20793. return A._asyncReturn($async$returnValue, $async$completer);
  20794. }
  20795. });
  20796. return A._asyncStartSync($async$_compileStylesheet2, $async$completer);
  20797. },
  20798. _compileStylesheet_closure2: function _compileStylesheet_closure2(t0, t1) {
  20799. this.stylesheet = t0;
  20800. this.importCache = t1;
  20801. },
  20802. AsyncEnvironment$0() {
  20803. var t1 = type$.String,
  20804. t2 = type$.Module_AsyncCallable_2,
  20805. t3 = type$.AstNode_2,
  20806. t4 = type$.int,
  20807. t5 = type$.AsyncCallable_2,
  20808. t6 = type$.JSArray_Map_String_AsyncCallable_2;
  20809. return new A.AsyncEnvironment0(A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), A.LinkedHashMap_LinkedHashMap$_empty(t1, t3), A.LinkedHashMap_LinkedHashMap$_empty(t2, t3), A.LinkedHashMap_LinkedHashMap$_empty(t2, t3), null, null, A._setArrayType([], type$.JSArray_Module_AsyncCallable_2), A._setArrayType([A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Value_2)], type$.JSArray_Map_String_Value_2), A._setArrayType([A.LinkedHashMap_LinkedHashMap$_empty(t1, t3)], type$.JSArray_Map_String_AstNode_2), A.LinkedHashMap_LinkedHashMap$_empty(t1, t4), A._setArrayType([A.LinkedHashMap_LinkedHashMap$_empty(t1, t5)], t6), A.LinkedHashMap_LinkedHashMap$_empty(t1, t4), A._setArrayType([A.LinkedHashMap_LinkedHashMap$_empty(t1, t5)], t6), A.LinkedHashMap_LinkedHashMap$_empty(t1, t4), null);
  20810. },
  20811. AsyncEnvironment$_0(_modules, _namespaceNodes, _globalModules, _importedModules, _forwardedModules, _nestedForwardedModules, _allModules, _variables, _variableNodes, _functions, _mixins, _content) {
  20812. var t1 = type$.String,
  20813. t2 = type$.int;
  20814. return new A.AsyncEnvironment0(_modules, _namespaceNodes, _globalModules, _importedModules, _forwardedModules, _nestedForwardedModules, _allModules, _variables, _variableNodes, A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _functions, A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _mixins, A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _content);
  20815. },
  20816. _EnvironmentModule__EnvironmentModule2(environment, css, preModuleComments, extensionStore, forwarded) {
  20817. var t1, t2, t3, t4, t5, t6, module, result, t7;
  20818. if (forwarded == null)
  20819. forwarded = B.Set_empty6;
  20820. t1 = type$.dynamic;
  20821. t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  20822. for (t2 = type$.Module_AsyncCallable_2, t3 = type$.List_CssComment_2, t4 = A.MapExtensions_get_pairs0(preModuleComments, t2, t3), t4 = t4.get$iterator(t4), t5 = type$.CssComment_2; t4.moveNext$0();) {
  20823. t6 = t4.get$current(t4);
  20824. module = t6._0;
  20825. result = A.List_List$from(t6._1, false, t5);
  20826. result.fixed$length = Array;
  20827. result.immutable$list = Array;
  20828. t1.$indexSet(0, module, result);
  20829. }
  20830. t1 = A.ConstantMap_ConstantMap$from(t1, t2, t3);
  20831. t2 = A._EnvironmentModule__makeModulesByVariable2(forwarded);
  20832. t3 = A._EnvironmentModule__memberMap2(B.JSArray_methods.get$first(environment._async_environment0$_variables), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure17(), type$.Map_String_Value_2), type$.Value_2);
  20833. t4 = A._EnvironmentModule__memberMap2(B.JSArray_methods.get$first(environment._async_environment0$_variableNodes), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure18(), type$.Map_String_AstNode_2), type$.AstNode_2);
  20834. t5 = type$.Map_String_AsyncCallable_2;
  20835. t6 = type$.AsyncCallable_2;
  20836. t7 = A._EnvironmentModule__memberMap2(B.JSArray_methods.get$first(environment._async_environment0$_functions), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure19(), t5), t6);
  20837. t6 = A._EnvironmentModule__memberMap2(B.JSArray_methods.get$first(environment._async_environment0$_mixins), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure20(), t5), t6);
  20838. t5 = J.get$isNotEmpty$asx(css.get$children(css)) || preModuleComments.get$isNotEmpty(preModuleComments) || B.JSArray_methods.any$1(environment._async_environment0$_allModules, new A._EnvironmentModule__EnvironmentModule_closure21());
  20839. return A._EnvironmentModule$_2(environment, css, t1, extensionStore, t2, t3, t4, t7, t6, t5, !extensionStore.get$isEmpty(extensionStore) || B.JSArray_methods.any$1(environment._async_environment0$_allModules, new A._EnvironmentModule__EnvironmentModule_closure22()));
  20840. },
  20841. _EnvironmentModule__makeModulesByVariable2(forwarded) {
  20842. var modulesByVariable, t1, t2, t3, t4, t5;
  20843. if (forwarded.get$isEmpty(forwarded))
  20844. return B.Map_empty16;
  20845. modulesByVariable = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.Module_AsyncCallable_2);
  20846. for (t1 = forwarded.get$iterator(forwarded); t1.moveNext$0();) {
  20847. t2 = t1.get$current(t1);
  20848. if (t2 instanceof A._EnvironmentModule2) {
  20849. for (t3 = t2._async_environment0$_modulesByVariable, t3 = t3.get$values(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  20850. t4 = t3.get$current(t3);
  20851. t5 = t4.get$variables();
  20852. A.setAll0(modulesByVariable, t5.get$keys(t5), t4);
  20853. }
  20854. A.setAll0(modulesByVariable, J.get$keys$z(B.JSArray_methods.get$first(t2._async_environment0$_environment._async_environment0$_variables)), t2);
  20855. } else {
  20856. t3 = t2.get$variables();
  20857. A.setAll0(modulesByVariable, t3.get$keys(t3), t2);
  20858. }
  20859. }
  20860. return modulesByVariable;
  20861. },
  20862. _EnvironmentModule__memberMap2(localMap, otherMaps, $V) {
  20863. var t1, t2, t3;
  20864. localMap = new A.PublicMemberMapView0(localMap, $V._eval$1("PublicMemberMapView0<0>"));
  20865. if (otherMaps.get$isEmpty(otherMaps))
  20866. return localMap;
  20867. t1 = A._setArrayType([], $V._eval$1("JSArray<Map<String,0>>"));
  20868. for (t2 = otherMaps.get$iterator(otherMaps); t2.moveNext$0();) {
  20869. t3 = t2.get$current(t2);
  20870. if (t3.get$isNotEmpty(t3))
  20871. t1.push(t3);
  20872. }
  20873. t1.push(localMap);
  20874. if (t1.length === 1)
  20875. return localMap;
  20876. return A.MergedMapView$0(t1, type$.String, $V);
  20877. },
  20878. _EnvironmentModule$_2(_environment, css, preModuleComments, extensionStore, _modulesByVariable, variables, variableNodes, functions, mixins, transitivelyContainsCss, transitivelyContainsExtensions) {
  20879. return new A._EnvironmentModule2(_environment._async_environment0$_allModules, variables, variableNodes, functions, mixins, extensionStore, css, preModuleComments, transitivelyContainsCss, transitivelyContainsExtensions, _environment, _modulesByVariable);
  20880. },
  20881. AsyncEnvironment0: function AsyncEnvironment0(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14) {
  20882. var _ = this;
  20883. _._async_environment0$_modules = t0;
  20884. _._async_environment0$_namespaceNodes = t1;
  20885. _._async_environment0$_globalModules = t2;
  20886. _._async_environment0$_importedModules = t3;
  20887. _._async_environment0$_forwardedModules = t4;
  20888. _._async_environment0$_nestedForwardedModules = t5;
  20889. _._async_environment0$_allModules = t6;
  20890. _._async_environment0$_variables = t7;
  20891. _._async_environment0$_variableNodes = t8;
  20892. _._async_environment0$_variableIndices = t9;
  20893. _._async_environment0$_functions = t10;
  20894. _._async_environment0$_functionIndices = t11;
  20895. _._async_environment0$_mixins = t12;
  20896. _._async_environment0$_mixinIndices = t13;
  20897. _._async_environment0$_content = t14;
  20898. _._async_environment0$_inMixin = false;
  20899. _._async_environment0$_inSemiGlobalScope = true;
  20900. _._async_environment0$_lastVariableIndex = _._async_environment0$_lastVariableName = null;
  20901. },
  20902. AsyncEnvironment__getVariableFromGlobalModule_closure0: function AsyncEnvironment__getVariableFromGlobalModule_closure0(t0) {
  20903. this.name = t0;
  20904. },
  20905. AsyncEnvironment_setVariable_closure2: function AsyncEnvironment_setVariable_closure2(t0, t1) {
  20906. this.$this = t0;
  20907. this.name = t1;
  20908. },
  20909. AsyncEnvironment_setVariable_closure3: function AsyncEnvironment_setVariable_closure3(t0) {
  20910. this.name = t0;
  20911. },
  20912. AsyncEnvironment_setVariable_closure4: function AsyncEnvironment_setVariable_closure4(t0, t1) {
  20913. this.$this = t0;
  20914. this.name = t1;
  20915. },
  20916. AsyncEnvironment__getFunctionFromGlobalModule_closure0: function AsyncEnvironment__getFunctionFromGlobalModule_closure0(t0) {
  20917. this.name = t0;
  20918. },
  20919. AsyncEnvironment__getMixinFromGlobalModule_closure0: function AsyncEnvironment__getMixinFromGlobalModule_closure0(t0) {
  20920. this.name = t0;
  20921. },
  20922. AsyncEnvironment_toModule_closure0: function AsyncEnvironment_toModule_closure0() {
  20923. },
  20924. AsyncEnvironment_toDummyModule_closure0: function AsyncEnvironment_toDummyModule_closure0() {
  20925. },
  20926. _EnvironmentModule2: function _EnvironmentModule2(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11) {
  20927. var _ = this;
  20928. _.upstream = t0;
  20929. _.variables = t1;
  20930. _.variableNodes = t2;
  20931. _.functions = t3;
  20932. _.mixins = t4;
  20933. _.extensionStore = t5;
  20934. _.css = t6;
  20935. _.preModuleComments = t7;
  20936. _.transitivelyContainsCss = t8;
  20937. _.transitivelyContainsExtensions = t9;
  20938. _._async_environment0$_environment = t10;
  20939. _._async_environment0$_modulesByVariable = t11;
  20940. },
  20941. _EnvironmentModule__EnvironmentModule_closure17: function _EnvironmentModule__EnvironmentModule_closure17() {
  20942. },
  20943. _EnvironmentModule__EnvironmentModule_closure18: function _EnvironmentModule__EnvironmentModule_closure18() {
  20944. },
  20945. _EnvironmentModule__EnvironmentModule_closure19: function _EnvironmentModule__EnvironmentModule_closure19() {
  20946. },
  20947. _EnvironmentModule__EnvironmentModule_closure20: function _EnvironmentModule__EnvironmentModule_closure20() {
  20948. },
  20949. _EnvironmentModule__EnvironmentModule_closure21: function _EnvironmentModule__EnvironmentModule_closure21() {
  20950. },
  20951. _EnvironmentModule__EnvironmentModule_closure22: function _EnvironmentModule__EnvironmentModule_closure22() {
  20952. },
  20953. _EvaluateVisitor$2(functions, importCache, logger, nodeImporter, quietDeps, sourceMap) {
  20954. var t4,
  20955. t1 = type$.Uri,
  20956. t2 = type$.Module_AsyncCallable_2,
  20957. t3 = A._setArrayType([], type$.JSArray_Record_2_String_and_AstNode_2);
  20958. if (importCache == null)
  20959. t4 = nodeImporter == null ? A.AsyncImportCache$none() : null;
  20960. else
  20961. t4 = importCache;
  20962. t1 = new A._EvaluateVisitor2(t4, nodeImporter, A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.AsyncCallable_2), A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Configuration_2), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.AstNode_2), logger, A.LinkedHashSet_LinkedHashSet$_empty(type$.Record_2_String_and_SourceSpan), quietDeps, sourceMap, A.AsyncEnvironment$0(), A.LinkedHashSet_LinkedHashSet$_empty(t1), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.nullable_AstNode_2), t3, B.Configuration_Map_empty_null0);
  20963. t1._EvaluateVisitor$6$functions$importCache$logger$nodeImporter$quietDeps$sourceMap2(functions, importCache, logger, nodeImporter, quietDeps, sourceMap);
  20964. return t1;
  20965. },
  20966. _EvaluateVisitor2: function _EvaluateVisitor2(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15) {
  20967. var _ = this;
  20968. _._async_evaluate0$_importCache = t0;
  20969. _._async_evaluate0$_nodeImporter = t1;
  20970. _._async_evaluate0$_builtInFunctions = t2;
  20971. _._async_evaluate0$_builtInModules = t3;
  20972. _._async_evaluate0$_modules = t4;
  20973. _._async_evaluate0$_moduleConfigurations = t5;
  20974. _._async_evaluate0$_moduleNodes = t6;
  20975. _._async_evaluate0$_logger = t7;
  20976. _._async_evaluate0$_warningsEmitted = t8;
  20977. _._async_evaluate0$_quietDeps = t9;
  20978. _._async_evaluate0$_sourceMap = t10;
  20979. _._async_evaluate0$_environment = t11;
  20980. _._async_evaluate0$_declarationName = _._async_evaluate0$__parent = _._async_evaluate0$_mediaQuerySources = _._async_evaluate0$_mediaQueries = _._async_evaluate0$_styleRuleIgnoringAtRoot = null;
  20981. _._async_evaluate0$_member = "root stylesheet";
  20982. _._async_evaluate0$_importSpan = _._async_evaluate0$_callableNode = _._async_evaluate0$_currentCallable = null;
  20983. _._async_evaluate0$_inSupportsDeclaration = _._async_evaluate0$_inKeyframes = _._async_evaluate0$_atRootExcludingStyleRule = _._async_evaluate0$_inUnknownAtRule = _._async_evaluate0$_inFunction = false;
  20984. _._async_evaluate0$_loadedUrls = t12;
  20985. _._async_evaluate0$_activeModules = t13;
  20986. _._async_evaluate0$_stack = t14;
  20987. _._async_evaluate0$_importer = null;
  20988. _._async_evaluate0$_inDependency = false;
  20989. _._async_evaluate0$__extensionStore = _._async_evaluate0$_preModuleComments = _._async_evaluate0$_outOfOrderImports = _._async_evaluate0$__endOfImports = _._async_evaluate0$__root = _._async_evaluate0$__stylesheet = null;
  20990. _._async_evaluate0$_configuration = t15;
  20991. },
  20992. _EvaluateVisitor_closure38: function _EvaluateVisitor_closure38(t0) {
  20993. this.$this = t0;
  20994. },
  20995. _EvaluateVisitor_closure39: function _EvaluateVisitor_closure39(t0) {
  20996. this.$this = t0;
  20997. },
  20998. _EvaluateVisitor_closure40: function _EvaluateVisitor_closure40(t0) {
  20999. this.$this = t0;
  21000. },
  21001. _EvaluateVisitor_closure41: function _EvaluateVisitor_closure41(t0) {
  21002. this.$this = t0;
  21003. },
  21004. _EvaluateVisitor_closure42: function _EvaluateVisitor_closure42(t0) {
  21005. this.$this = t0;
  21006. },
  21007. _EvaluateVisitor_closure43: function _EvaluateVisitor_closure43(t0) {
  21008. this.$this = t0;
  21009. },
  21010. _EvaluateVisitor_closure44: function _EvaluateVisitor_closure44(t0) {
  21011. this.$this = t0;
  21012. },
  21013. _EvaluateVisitor_closure45: function _EvaluateVisitor_closure45(t0) {
  21014. this.$this = t0;
  21015. },
  21016. _EvaluateVisitor_closure46: function _EvaluateVisitor_closure46(t0) {
  21017. this.$this = t0;
  21018. },
  21019. _EvaluateVisitor__closure14: function _EvaluateVisitor__closure14(t0, t1, t2) {
  21020. this.$this = t0;
  21021. this.name = t1;
  21022. this.module = t2;
  21023. },
  21024. _EvaluateVisitor_closure47: function _EvaluateVisitor_closure47(t0) {
  21025. this.$this = t0;
  21026. },
  21027. _EvaluateVisitor__closure13: function _EvaluateVisitor__closure13(t0, t1, t2) {
  21028. this.$this = t0;
  21029. this.name = t1;
  21030. this.module = t2;
  21031. },
  21032. _EvaluateVisitor_closure48: function _EvaluateVisitor_closure48(t0) {
  21033. this.$this = t0;
  21034. },
  21035. _EvaluateVisitor_closure49: function _EvaluateVisitor_closure49(t0) {
  21036. this.$this = t0;
  21037. },
  21038. _EvaluateVisitor__closure11: function _EvaluateVisitor__closure11(t0, t1, t2) {
  21039. this.values = t0;
  21040. this.span = t1;
  21041. this.callableNode = t2;
  21042. },
  21043. _EvaluateVisitor__closure12: function _EvaluateVisitor__closure12(t0) {
  21044. this.$this = t0;
  21045. },
  21046. _EvaluateVisitor_closure50: function _EvaluateVisitor_closure50(t0) {
  21047. this.$this = t0;
  21048. },
  21049. _EvaluateVisitor_run_closure2: function _EvaluateVisitor_run_closure2(t0, t1, t2) {
  21050. this.$this = t0;
  21051. this.node = t1;
  21052. this.importer = t2;
  21053. },
  21054. _EvaluateVisitor_run__closure2: function _EvaluateVisitor_run__closure2(t0, t1, t2) {
  21055. this.$this = t0;
  21056. this.importer = t1;
  21057. this.node = t2;
  21058. },
  21059. _EvaluateVisitor__loadModule_closure5: function _EvaluateVisitor__loadModule_closure5(t0, t1) {
  21060. this._box_1 = t0;
  21061. this.callback = t1;
  21062. },
  21063. _EvaluateVisitor__loadModule_closure6: function _EvaluateVisitor__loadModule_closure6(t0, t1, t2, t3, t4, t5, t6) {
  21064. var _ = this;
  21065. _.$this = t0;
  21066. _.url = t1;
  21067. _.nodeWithSpan = t2;
  21068. _.baseUrl = t3;
  21069. _.namesInErrors = t4;
  21070. _.configuration = t5;
  21071. _.callback = t6;
  21072. },
  21073. _EvaluateVisitor__loadModule__closure5: function _EvaluateVisitor__loadModule__closure5(t0, t1) {
  21074. this.$this = t0;
  21075. this.message = t1;
  21076. },
  21077. _EvaluateVisitor__loadModule__closure6: function _EvaluateVisitor__loadModule__closure6(t0, t1, t2) {
  21078. this._box_0 = t0;
  21079. this.callback = t1;
  21080. this.firstLoad = t2;
  21081. },
  21082. _EvaluateVisitor__execute_closure2: function _EvaluateVisitor__execute_closure2(t0, t1, t2, t3, t4, t5, t6) {
  21083. var _ = this;
  21084. _.$this = t0;
  21085. _.importer = t1;
  21086. _.stylesheet = t2;
  21087. _.extensionStore = t3;
  21088. _.configuration = t4;
  21089. _.css = t5;
  21090. _.preModuleComments = t6;
  21091. },
  21092. _EvaluateVisitor__combineCss_closure5: function _EvaluateVisitor__combineCss_closure5() {
  21093. },
  21094. _EvaluateVisitor__combineCss_closure6: function _EvaluateVisitor__combineCss_closure6(t0) {
  21095. this.selectors = t0;
  21096. },
  21097. _EvaluateVisitor__combineCss_visitModule2: function _EvaluateVisitor__combineCss_visitModule2(t0, t1, t2, t3, t4, t5) {
  21098. var _ = this;
  21099. _.$this = t0;
  21100. _.seen = t1;
  21101. _.clone = t2;
  21102. _.css = t3;
  21103. _.imports = t4;
  21104. _.sorted = t5;
  21105. },
  21106. _EvaluateVisitor__extendModules_closure5: function _EvaluateVisitor__extendModules_closure5(t0) {
  21107. this.originalSelectors = t0;
  21108. },
  21109. _EvaluateVisitor__extendModules_closure6: function _EvaluateVisitor__extendModules_closure6() {
  21110. },
  21111. _EvaluateVisitor_visitAtRootRule_closure5: function _EvaluateVisitor_visitAtRootRule_closure5(t0, t1) {
  21112. this.$this = t0;
  21113. this.node = t1;
  21114. },
  21115. _EvaluateVisitor_visitAtRootRule_closure6: function _EvaluateVisitor_visitAtRootRule_closure6(t0, t1) {
  21116. this.$this = t0;
  21117. this.node = t1;
  21118. },
  21119. _EvaluateVisitor__scopeForAtRoot_closure17: function _EvaluateVisitor__scopeForAtRoot_closure17(t0, t1, t2) {
  21120. this.$this = t0;
  21121. this.newParent = t1;
  21122. this.node = t2;
  21123. },
  21124. _EvaluateVisitor__scopeForAtRoot_closure18: function _EvaluateVisitor__scopeForAtRoot_closure18(t0, t1) {
  21125. this.$this = t0;
  21126. this.innerScope = t1;
  21127. },
  21128. _EvaluateVisitor__scopeForAtRoot_closure19: function _EvaluateVisitor__scopeForAtRoot_closure19(t0, t1) {
  21129. this.$this = t0;
  21130. this.innerScope = t1;
  21131. },
  21132. _EvaluateVisitor__scopeForAtRoot__closure2: function _EvaluateVisitor__scopeForAtRoot__closure2(t0, t1) {
  21133. this.innerScope = t0;
  21134. this.callback = t1;
  21135. },
  21136. _EvaluateVisitor__scopeForAtRoot_closure20: function _EvaluateVisitor__scopeForAtRoot_closure20(t0, t1) {
  21137. this.$this = t0;
  21138. this.innerScope = t1;
  21139. },
  21140. _EvaluateVisitor__scopeForAtRoot_closure21: function _EvaluateVisitor__scopeForAtRoot_closure21() {
  21141. },
  21142. _EvaluateVisitor__scopeForAtRoot_closure22: function _EvaluateVisitor__scopeForAtRoot_closure22(t0, t1) {
  21143. this.$this = t0;
  21144. this.innerScope = t1;
  21145. },
  21146. _EvaluateVisitor_visitContentRule_closure2: function _EvaluateVisitor_visitContentRule_closure2(t0, t1) {
  21147. this.$this = t0;
  21148. this.content = t1;
  21149. },
  21150. _EvaluateVisitor_visitDeclaration_closure2: function _EvaluateVisitor_visitDeclaration_closure2(t0, t1) {
  21151. this._box_0 = t0;
  21152. this.$this = t1;
  21153. },
  21154. _EvaluateVisitor_visitEachRule_closure8: function _EvaluateVisitor_visitEachRule_closure8(t0, t1, t2) {
  21155. this._box_0 = t0;
  21156. this.$this = t1;
  21157. this.nodeWithSpan = t2;
  21158. },
  21159. _EvaluateVisitor_visitEachRule_closure9: function _EvaluateVisitor_visitEachRule_closure9(t0, t1, t2) {
  21160. this._box_0 = t0;
  21161. this.$this = t1;
  21162. this.nodeWithSpan = t2;
  21163. },
  21164. _EvaluateVisitor_visitEachRule_closure10: function _EvaluateVisitor_visitEachRule_closure10(t0, t1, t2, t3) {
  21165. var _ = this;
  21166. _.$this = t0;
  21167. _.list = t1;
  21168. _.setVariables = t2;
  21169. _.node = t3;
  21170. },
  21171. _EvaluateVisitor_visitEachRule__closure2: function _EvaluateVisitor_visitEachRule__closure2(t0, t1, t2) {
  21172. this.$this = t0;
  21173. this.setVariables = t1;
  21174. this.node = t2;
  21175. },
  21176. _EvaluateVisitor_visitEachRule___closure2: function _EvaluateVisitor_visitEachRule___closure2(t0) {
  21177. this.$this = t0;
  21178. },
  21179. _EvaluateVisitor_visitAtRule_closure8: function _EvaluateVisitor_visitAtRule_closure8(t0) {
  21180. this.$this = t0;
  21181. },
  21182. _EvaluateVisitor_visitAtRule_closure9: function _EvaluateVisitor_visitAtRule_closure9(t0, t1, t2) {
  21183. this.$this = t0;
  21184. this.name = t1;
  21185. this.children = t2;
  21186. },
  21187. _EvaluateVisitor_visitAtRule__closure2: function _EvaluateVisitor_visitAtRule__closure2(t0, t1) {
  21188. this.$this = t0;
  21189. this.children = t1;
  21190. },
  21191. _EvaluateVisitor_visitAtRule_closure10: function _EvaluateVisitor_visitAtRule_closure10() {
  21192. },
  21193. _EvaluateVisitor_visitForRule_closure14: function _EvaluateVisitor_visitForRule_closure14(t0, t1) {
  21194. this.$this = t0;
  21195. this.node = t1;
  21196. },
  21197. _EvaluateVisitor_visitForRule_closure15: function _EvaluateVisitor_visitForRule_closure15(t0, t1) {
  21198. this.$this = t0;
  21199. this.node = t1;
  21200. },
  21201. _EvaluateVisitor_visitForRule_closure16: function _EvaluateVisitor_visitForRule_closure16(t0) {
  21202. this.fromNumber = t0;
  21203. },
  21204. _EvaluateVisitor_visitForRule_closure17: function _EvaluateVisitor_visitForRule_closure17(t0, t1) {
  21205. this.toNumber = t0;
  21206. this.fromNumber = t1;
  21207. },
  21208. _EvaluateVisitor_visitForRule_closure18: function _EvaluateVisitor_visitForRule_closure18(t0, t1, t2, t3, t4, t5) {
  21209. var _ = this;
  21210. _._box_0 = t0;
  21211. _.$this = t1;
  21212. _.node = t2;
  21213. _.from = t3;
  21214. _.direction = t4;
  21215. _.fromNumber = t5;
  21216. },
  21217. _EvaluateVisitor_visitForRule__closure2: function _EvaluateVisitor_visitForRule__closure2(t0) {
  21218. this.$this = t0;
  21219. },
  21220. _EvaluateVisitor_visitForwardRule_closure5: function _EvaluateVisitor_visitForwardRule_closure5(t0, t1) {
  21221. this.$this = t0;
  21222. this.node = t1;
  21223. },
  21224. _EvaluateVisitor_visitForwardRule_closure6: function _EvaluateVisitor_visitForwardRule_closure6(t0, t1) {
  21225. this.$this = t0;
  21226. this.node = t1;
  21227. },
  21228. _EvaluateVisitor__registerCommentsForModule_closure2: function _EvaluateVisitor__registerCommentsForModule_closure2() {
  21229. },
  21230. _EvaluateVisitor_visitIfRule_closure2: function _EvaluateVisitor_visitIfRule_closure2(t0) {
  21231. this.$this = t0;
  21232. },
  21233. _EvaluateVisitor_visitIfRule__closure2: function _EvaluateVisitor_visitIfRule__closure2(t0, t1) {
  21234. this.$this = t0;
  21235. this.clause = t1;
  21236. },
  21237. _EvaluateVisitor_visitIfRule___closure2: function _EvaluateVisitor_visitIfRule___closure2(t0) {
  21238. this.$this = t0;
  21239. },
  21240. _EvaluateVisitor__visitDynamicImport_closure2: function _EvaluateVisitor__visitDynamicImport_closure2(t0, t1) {
  21241. this.$this = t0;
  21242. this.$import = t1;
  21243. },
  21244. _EvaluateVisitor__visitDynamicImport__closure11: function _EvaluateVisitor__visitDynamicImport__closure11(t0) {
  21245. this.$this = t0;
  21246. },
  21247. _EvaluateVisitor__visitDynamicImport__closure12: function _EvaluateVisitor__visitDynamicImport__closure12() {
  21248. },
  21249. _EvaluateVisitor__visitDynamicImport__closure13: function _EvaluateVisitor__visitDynamicImport__closure13() {
  21250. },
  21251. _EvaluateVisitor__visitDynamicImport__closure14: function _EvaluateVisitor__visitDynamicImport__closure14(t0, t1, t2, t3, t4) {
  21252. var _ = this;
  21253. _._box_0 = t0;
  21254. _.$this = t1;
  21255. _.loadsUserDefinedModules = t2;
  21256. _.environment = t3;
  21257. _.children = t4;
  21258. },
  21259. _EvaluateVisitor__applyMixin_closure5: function _EvaluateVisitor__applyMixin_closure5(t0, t1, t2, t3) {
  21260. var _ = this;
  21261. _.$this = t0;
  21262. _.$arguments = t1;
  21263. _.mixin = t2;
  21264. _.nodeWithSpanWithoutContent = t3;
  21265. },
  21266. _EvaluateVisitor__applyMixin__closure6: function _EvaluateVisitor__applyMixin__closure6(t0, t1, t2, t3) {
  21267. var _ = this;
  21268. _.$this = t0;
  21269. _.$arguments = t1;
  21270. _.mixin = t2;
  21271. _.nodeWithSpanWithoutContent = t3;
  21272. },
  21273. _EvaluateVisitor__applyMixin_closure6: function _EvaluateVisitor__applyMixin_closure6(t0, t1, t2, t3) {
  21274. var _ = this;
  21275. _.$this = t0;
  21276. _.contentCallable = t1;
  21277. _.mixin = t2;
  21278. _.nodeWithSpanWithoutContent = t3;
  21279. },
  21280. _EvaluateVisitor__applyMixin__closure5: function _EvaluateVisitor__applyMixin__closure5(t0, t1, t2) {
  21281. this.$this = t0;
  21282. this.mixin = t1;
  21283. this.nodeWithSpanWithoutContent = t2;
  21284. },
  21285. _EvaluateVisitor__applyMixin___closure2: function _EvaluateVisitor__applyMixin___closure2(t0, t1, t2) {
  21286. this.$this = t0;
  21287. this.mixin = t1;
  21288. this.nodeWithSpanWithoutContent = t2;
  21289. },
  21290. _EvaluateVisitor__applyMixin____closure2: function _EvaluateVisitor__applyMixin____closure2(t0, t1) {
  21291. this.$this = t0;
  21292. this.statement = t1;
  21293. },
  21294. _EvaluateVisitor_visitIncludeRule_closure8: function _EvaluateVisitor_visitIncludeRule_closure8(t0, t1) {
  21295. this.$this = t0;
  21296. this.node = t1;
  21297. },
  21298. _EvaluateVisitor_visitIncludeRule_closure9: function _EvaluateVisitor_visitIncludeRule_closure9(t0) {
  21299. this.$this = t0;
  21300. },
  21301. _EvaluateVisitor_visitIncludeRule_closure10: function _EvaluateVisitor_visitIncludeRule_closure10(t0) {
  21302. this.node = t0;
  21303. },
  21304. _EvaluateVisitor_visitMediaRule_closure8: function _EvaluateVisitor_visitMediaRule_closure8(t0, t1) {
  21305. this.$this = t0;
  21306. this.queries = t1;
  21307. },
  21308. _EvaluateVisitor_visitMediaRule_closure9: function _EvaluateVisitor_visitMediaRule_closure9(t0, t1, t2, t3, t4) {
  21309. var _ = this;
  21310. _.$this = t0;
  21311. _.mergedQueries = t1;
  21312. _.queries = t2;
  21313. _.mergedSources = t3;
  21314. _.node = t4;
  21315. },
  21316. _EvaluateVisitor_visitMediaRule__closure2: function _EvaluateVisitor_visitMediaRule__closure2(t0, t1) {
  21317. this.$this = t0;
  21318. this.node = t1;
  21319. },
  21320. _EvaluateVisitor_visitMediaRule___closure2: function _EvaluateVisitor_visitMediaRule___closure2(t0, t1) {
  21321. this.$this = t0;
  21322. this.node = t1;
  21323. },
  21324. _EvaluateVisitor_visitMediaRule_closure10: function _EvaluateVisitor_visitMediaRule_closure10(t0) {
  21325. this.mergedSources = t0;
  21326. },
  21327. _EvaluateVisitor_visitStyleRule_closure11: function _EvaluateVisitor_visitStyleRule_closure11(t0, t1) {
  21328. this.$this = t0;
  21329. this.node = t1;
  21330. },
  21331. _EvaluateVisitor_visitStyleRule_closure12: function _EvaluateVisitor_visitStyleRule_closure12() {
  21332. },
  21333. _EvaluateVisitor_visitStyleRule_closure14: function _EvaluateVisitor_visitStyleRule_closure14(t0, t1, t2) {
  21334. this.$this = t0;
  21335. this.rule = t1;
  21336. this.node = t2;
  21337. },
  21338. _EvaluateVisitor_visitStyleRule__closure2: function _EvaluateVisitor_visitStyleRule__closure2(t0, t1) {
  21339. this.$this = t0;
  21340. this.node = t1;
  21341. },
  21342. _EvaluateVisitor_visitStyleRule_closure13: function _EvaluateVisitor_visitStyleRule_closure13() {
  21343. },
  21344. _EvaluateVisitor__warnForBogusCombinators_closure2: function _EvaluateVisitor__warnForBogusCombinators_closure2() {
  21345. },
  21346. _EvaluateVisitor_visitSupportsRule_closure5: function _EvaluateVisitor_visitSupportsRule_closure5(t0, t1) {
  21347. this.$this = t0;
  21348. this.node = t1;
  21349. },
  21350. _EvaluateVisitor_visitSupportsRule__closure2: function _EvaluateVisitor_visitSupportsRule__closure2(t0, t1) {
  21351. this.$this = t0;
  21352. this.node = t1;
  21353. },
  21354. _EvaluateVisitor_visitSupportsRule_closure6: function _EvaluateVisitor_visitSupportsRule_closure6() {
  21355. },
  21356. _EvaluateVisitor__visitSupportsCondition_closure2: function _EvaluateVisitor__visitSupportsCondition_closure2(t0, t1) {
  21357. this._box_0 = t0;
  21358. this.$this = t1;
  21359. },
  21360. _EvaluateVisitor_visitVariableDeclaration_closure8: function _EvaluateVisitor_visitVariableDeclaration_closure8(t0, t1, t2) {
  21361. this._box_0 = t0;
  21362. this.$this = t1;
  21363. this.node = t2;
  21364. },
  21365. _EvaluateVisitor_visitVariableDeclaration_closure9: function _EvaluateVisitor_visitVariableDeclaration_closure9(t0, t1) {
  21366. this.$this = t0;
  21367. this.node = t1;
  21368. },
  21369. _EvaluateVisitor_visitVariableDeclaration_closure10: function _EvaluateVisitor_visitVariableDeclaration_closure10(t0, t1, t2) {
  21370. this.$this = t0;
  21371. this.node = t1;
  21372. this.value = t2;
  21373. },
  21374. _EvaluateVisitor_visitUseRule_closure2: function _EvaluateVisitor_visitUseRule_closure2(t0, t1) {
  21375. this.$this = t0;
  21376. this.node = t1;
  21377. },
  21378. _EvaluateVisitor_visitWarnRule_closure2: function _EvaluateVisitor_visitWarnRule_closure2(t0, t1) {
  21379. this.$this = t0;
  21380. this.node = t1;
  21381. },
  21382. _EvaluateVisitor_visitWhileRule_closure2: function _EvaluateVisitor_visitWhileRule_closure2(t0, t1) {
  21383. this.$this = t0;
  21384. this.node = t1;
  21385. },
  21386. _EvaluateVisitor_visitWhileRule__closure2: function _EvaluateVisitor_visitWhileRule__closure2(t0) {
  21387. this.$this = t0;
  21388. },
  21389. _EvaluateVisitor_visitBinaryOperationExpression_closure2: function _EvaluateVisitor_visitBinaryOperationExpression_closure2(t0, t1) {
  21390. this.$this = t0;
  21391. this.node = t1;
  21392. },
  21393. _EvaluateVisitor__slash_recommendation2: function _EvaluateVisitor__slash_recommendation2() {
  21394. },
  21395. _EvaluateVisitor_visitVariableExpression_closure2: function _EvaluateVisitor_visitVariableExpression_closure2(t0, t1) {
  21396. this.$this = t0;
  21397. this.node = t1;
  21398. },
  21399. _EvaluateVisitor_visitUnaryOperationExpression_closure2: function _EvaluateVisitor_visitUnaryOperationExpression_closure2(t0, t1) {
  21400. this.node = t0;
  21401. this.operand = t1;
  21402. },
  21403. _EvaluateVisitor_visitListExpression_closure2: function _EvaluateVisitor_visitListExpression_closure2(t0) {
  21404. this.$this = t0;
  21405. },
  21406. _EvaluateVisitor_visitFunctionExpression_closure8: function _EvaluateVisitor_visitFunctionExpression_closure8(t0, t1) {
  21407. this.$this = t0;
  21408. this.node = t1;
  21409. },
  21410. _EvaluateVisitor_visitFunctionExpression_closure9: function _EvaluateVisitor_visitFunctionExpression_closure9() {
  21411. },
  21412. _EvaluateVisitor_visitFunctionExpression_closure10: function _EvaluateVisitor_visitFunctionExpression_closure10(t0, t1, t2) {
  21413. this._box_0 = t0;
  21414. this.$this = t1;
  21415. this.node = t2;
  21416. },
  21417. _EvaluateVisitor__checkCalculationArguments_check2: function _EvaluateVisitor__checkCalculationArguments_check2(t0, t1) {
  21418. this.$this = t0;
  21419. this.node = t1;
  21420. },
  21421. _EvaluateVisitor__visitCalculationExpression_closure2: function _EvaluateVisitor__visitCalculationExpression_closure2(t0, t1, t2, t3) {
  21422. var _ = this;
  21423. _._box_0 = t0;
  21424. _.$this = t1;
  21425. _.node = t2;
  21426. _.inLegacySassFunction = t3;
  21427. },
  21428. _EvaluateVisitor_visitInterpolatedFunctionExpression_closure2: function _EvaluateVisitor_visitInterpolatedFunctionExpression_closure2(t0, t1, t2) {
  21429. this.$this = t0;
  21430. this.node = t1;
  21431. this.$function = t2;
  21432. },
  21433. _EvaluateVisitor__runUserDefinedCallable_closure2: function _EvaluateVisitor__runUserDefinedCallable_closure2(t0, t1, t2, t3, t4, t5) {
  21434. var _ = this;
  21435. _.$this = t0;
  21436. _.callable = t1;
  21437. _.evaluated = t2;
  21438. _.nodeWithSpan = t3;
  21439. _.run = t4;
  21440. _.V = t5;
  21441. },
  21442. _EvaluateVisitor__runUserDefinedCallable__closure2: function _EvaluateVisitor__runUserDefinedCallable__closure2(t0, t1, t2, t3, t4, t5) {
  21443. var _ = this;
  21444. _.$this = t0;
  21445. _.evaluated = t1;
  21446. _.callable = t2;
  21447. _.nodeWithSpan = t3;
  21448. _.run = t4;
  21449. _.V = t5;
  21450. },
  21451. _EvaluateVisitor__runUserDefinedCallable___closure2: function _EvaluateVisitor__runUserDefinedCallable___closure2(t0, t1, t2, t3, t4, t5) {
  21452. var _ = this;
  21453. _.$this = t0;
  21454. _.evaluated = t1;
  21455. _.callable = t2;
  21456. _.nodeWithSpan = t3;
  21457. _.run = t4;
  21458. _.V = t5;
  21459. },
  21460. _EvaluateVisitor__runUserDefinedCallable____closure2: function _EvaluateVisitor__runUserDefinedCallable____closure2() {
  21461. },
  21462. _EvaluateVisitor__runFunctionCallable_closure2: function _EvaluateVisitor__runFunctionCallable_closure2(t0, t1) {
  21463. this.$this = t0;
  21464. this.callable = t1;
  21465. },
  21466. _EvaluateVisitor__runBuiltInCallable_closure8: function _EvaluateVisitor__runBuiltInCallable_closure8(t0, t1, t2) {
  21467. this._box_0 = t0;
  21468. this.evaluated = t1;
  21469. this.namedSet = t2;
  21470. },
  21471. _EvaluateVisitor__runBuiltInCallable_closure9: function _EvaluateVisitor__runBuiltInCallable_closure9(t0, t1) {
  21472. this._box_0 = t0;
  21473. this.evaluated = t1;
  21474. },
  21475. _EvaluateVisitor__runBuiltInCallable_closure10: function _EvaluateVisitor__runBuiltInCallable_closure10() {
  21476. },
  21477. _EvaluateVisitor__evaluateArguments_closure11: function _EvaluateVisitor__evaluateArguments_closure11() {
  21478. },
  21479. _EvaluateVisitor__evaluateArguments_closure12: function _EvaluateVisitor__evaluateArguments_closure12(t0, t1) {
  21480. this.$this = t0;
  21481. this.restNodeForSpan = t1;
  21482. },
  21483. _EvaluateVisitor__evaluateArguments_closure13: function _EvaluateVisitor__evaluateArguments_closure13(t0, t1, t2, t3) {
  21484. var _ = this;
  21485. _.$this = t0;
  21486. _.named = t1;
  21487. _.restNodeForSpan = t2;
  21488. _.namedNodes = t3;
  21489. },
  21490. _EvaluateVisitor__evaluateArguments_closure14: function _EvaluateVisitor__evaluateArguments_closure14() {
  21491. },
  21492. _EvaluateVisitor__evaluateMacroArguments_closure11: function _EvaluateVisitor__evaluateMacroArguments_closure11(t0) {
  21493. this.restArgs = t0;
  21494. },
  21495. _EvaluateVisitor__evaluateMacroArguments_closure12: function _EvaluateVisitor__evaluateMacroArguments_closure12(t0, t1, t2) {
  21496. this.$this = t0;
  21497. this.restNodeForSpan = t1;
  21498. this.restArgs = t2;
  21499. },
  21500. _EvaluateVisitor__evaluateMacroArguments_closure13: function _EvaluateVisitor__evaluateMacroArguments_closure13(t0, t1, t2, t3) {
  21501. var _ = this;
  21502. _.$this = t0;
  21503. _.named = t1;
  21504. _.restNodeForSpan = t2;
  21505. _.restArgs = t3;
  21506. },
  21507. _EvaluateVisitor__evaluateMacroArguments_closure14: function _EvaluateVisitor__evaluateMacroArguments_closure14(t0, t1, t2) {
  21508. this.$this = t0;
  21509. this.keywordRestNodeForSpan = t1;
  21510. this.keywordRestArgs = t2;
  21511. },
  21512. _EvaluateVisitor__addRestMap_closure2: function _EvaluateVisitor__addRestMap_closure2(t0, t1, t2, t3, t4, t5) {
  21513. var _ = this;
  21514. _.$this = t0;
  21515. _.values = t1;
  21516. _.convert = t2;
  21517. _.expressionNode = t3;
  21518. _.map = t4;
  21519. _.nodeWithSpan = t5;
  21520. },
  21521. _EvaluateVisitor__verifyArguments_closure2: function _EvaluateVisitor__verifyArguments_closure2(t0, t1, t2) {
  21522. this.$arguments = t0;
  21523. this.positional = t1;
  21524. this.named = t2;
  21525. },
  21526. _EvaluateVisitor_visitCssAtRule_closure5: function _EvaluateVisitor_visitCssAtRule_closure5(t0, t1) {
  21527. this.$this = t0;
  21528. this.node = t1;
  21529. },
  21530. _EvaluateVisitor_visitCssAtRule_closure6: function _EvaluateVisitor_visitCssAtRule_closure6() {
  21531. },
  21532. _EvaluateVisitor_visitCssKeyframeBlock_closure5: function _EvaluateVisitor_visitCssKeyframeBlock_closure5(t0, t1) {
  21533. this.$this = t0;
  21534. this.node = t1;
  21535. },
  21536. _EvaluateVisitor_visitCssKeyframeBlock_closure6: function _EvaluateVisitor_visitCssKeyframeBlock_closure6() {
  21537. },
  21538. _EvaluateVisitor_visitCssMediaRule_closure8: function _EvaluateVisitor_visitCssMediaRule_closure8(t0, t1) {
  21539. this.$this = t0;
  21540. this.node = t1;
  21541. },
  21542. _EvaluateVisitor_visitCssMediaRule_closure9: function _EvaluateVisitor_visitCssMediaRule_closure9(t0, t1, t2, t3) {
  21543. var _ = this;
  21544. _.$this = t0;
  21545. _.mergedQueries = t1;
  21546. _.node = t2;
  21547. _.mergedSources = t3;
  21548. },
  21549. _EvaluateVisitor_visitCssMediaRule__closure2: function _EvaluateVisitor_visitCssMediaRule__closure2(t0, t1) {
  21550. this.$this = t0;
  21551. this.node = t1;
  21552. },
  21553. _EvaluateVisitor_visitCssMediaRule___closure2: function _EvaluateVisitor_visitCssMediaRule___closure2(t0, t1) {
  21554. this.$this = t0;
  21555. this.node = t1;
  21556. },
  21557. _EvaluateVisitor_visitCssMediaRule_closure10: function _EvaluateVisitor_visitCssMediaRule_closure10(t0) {
  21558. this.mergedSources = t0;
  21559. },
  21560. _EvaluateVisitor_visitCssStyleRule_closure6: function _EvaluateVisitor_visitCssStyleRule_closure6(t0, t1, t2) {
  21561. this.$this = t0;
  21562. this.rule = t1;
  21563. this.node = t2;
  21564. },
  21565. _EvaluateVisitor_visitCssStyleRule__closure2: function _EvaluateVisitor_visitCssStyleRule__closure2(t0, t1) {
  21566. this.$this = t0;
  21567. this.node = t1;
  21568. },
  21569. _EvaluateVisitor_visitCssStyleRule_closure5: function _EvaluateVisitor_visitCssStyleRule_closure5() {
  21570. },
  21571. _EvaluateVisitor_visitCssSupportsRule_closure5: function _EvaluateVisitor_visitCssSupportsRule_closure5(t0, t1) {
  21572. this.$this = t0;
  21573. this.node = t1;
  21574. },
  21575. _EvaluateVisitor_visitCssSupportsRule__closure2: function _EvaluateVisitor_visitCssSupportsRule__closure2(t0, t1) {
  21576. this.$this = t0;
  21577. this.node = t1;
  21578. },
  21579. _EvaluateVisitor_visitCssSupportsRule_closure6: function _EvaluateVisitor_visitCssSupportsRule_closure6() {
  21580. },
  21581. _EvaluateVisitor__performInterpolationHelper_closure2: function _EvaluateVisitor__performInterpolationHelper_closure2(t0) {
  21582. this.interpolation = t0;
  21583. },
  21584. _EvaluateVisitor__serialize_closure2: function _EvaluateVisitor__serialize_closure2(t0, t1) {
  21585. this.value = t0;
  21586. this.quote = t1;
  21587. },
  21588. _EvaluateVisitor__expressionNode_closure2: function _EvaluateVisitor__expressionNode_closure2(t0, t1) {
  21589. this.$this = t0;
  21590. this.expression = t1;
  21591. },
  21592. _EvaluateVisitor__withoutSlash_recommendation2: function _EvaluateVisitor__withoutSlash_recommendation2() {
  21593. },
  21594. _EvaluateVisitor__stackFrame_closure2: function _EvaluateVisitor__stackFrame_closure2(t0) {
  21595. this.$this = t0;
  21596. },
  21597. _ImportedCssVisitor2: function _ImportedCssVisitor2(t0) {
  21598. this._async_evaluate0$_visitor = t0;
  21599. },
  21600. _ImportedCssVisitor_visitCssAtRule_closure2: function _ImportedCssVisitor_visitCssAtRule_closure2() {
  21601. },
  21602. _ImportedCssVisitor_visitCssMediaRule_closure2: function _ImportedCssVisitor_visitCssMediaRule_closure2(t0) {
  21603. this.hasBeenMerged = t0;
  21604. },
  21605. _ImportedCssVisitor_visitCssStyleRule_closure2: function _ImportedCssVisitor_visitCssStyleRule_closure2() {
  21606. },
  21607. _ImportedCssVisitor_visitCssSupportsRule_closure2: function _ImportedCssVisitor_visitCssSupportsRule_closure2() {
  21608. },
  21609. _EvaluationContext2: function _EvaluationContext2(t0, t1) {
  21610. this._async_evaluate0$_visitor = t0;
  21611. this._async_evaluate0$_defaultWarnNodeWithSpan = t1;
  21612. },
  21613. JSToDartAsyncFileImporter: function JSToDartAsyncFileImporter(t0) {
  21614. this._findFileUrl = t0;
  21615. },
  21616. JSToDartAsyncFileImporter_canonicalize_closure: function JSToDartAsyncFileImporter_canonicalize_closure(t0, t1) {
  21617. this.$this = t0;
  21618. this.url = t1;
  21619. },
  21620. AsyncImportCache$(importers, loadPaths, packageConfig) {
  21621. var t1 = type$.nullable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl_2,
  21622. t2 = type$.Record_3_AsyncImporter_and_Uri_and_bool_forImport_2,
  21623. t3 = type$.Uri;
  21624. return new A.AsyncImportCache0(A.AsyncImportCache__toImporters0(importers, loadPaths, packageConfig), A.LinkedHashMap_LinkedHashMap$_empty(type$.Record_2_Uri_and_bool_forImport, t1), A.LinkedHashMap_LinkedHashMap$_empty(t2, t1), A.LinkedHashMap_LinkedHashMap$_empty(t2, t3), A.LinkedHashMap_LinkedHashMap$_empty(t3, type$.nullable_Stylesheet_2), A.LinkedHashMap_LinkedHashMap$_empty(t3, type$.ImporterResult_2));
  21625. },
  21626. AsyncImportCache$none() {
  21627. var t1 = type$.nullable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl_2,
  21628. t2 = type$.Record_3_AsyncImporter_and_Uri_and_bool_forImport_2,
  21629. t3 = type$.Uri;
  21630. return new A.AsyncImportCache0(B.List_empty27, A.LinkedHashMap_LinkedHashMap$_empty(type$.Record_2_Uri_and_bool_forImport, t1), A.LinkedHashMap_LinkedHashMap$_empty(t2, t1), A.LinkedHashMap_LinkedHashMap$_empty(t2, t3), A.LinkedHashMap_LinkedHashMap$_empty(t3, type$.nullable_Stylesheet_2), A.LinkedHashMap_LinkedHashMap$_empty(t3, type$.ImporterResult_2));
  21631. },
  21632. AsyncImportCache__toImporters0(importers, loadPaths, packageConfig) {
  21633. var t1, t2, t3, t4, _i, path, _null = null,
  21634. sassPath = A.getEnvironmentVariable0("SASS_PATH");
  21635. if (A.isBrowser()) {
  21636. t1 = A._setArrayType([], type$.JSArray_AsyncImporter);
  21637. if (importers != null)
  21638. B.JSArray_methods.addAll$1(t1, importers);
  21639. return t1;
  21640. }
  21641. t1 = A._setArrayType([], type$.JSArray_AsyncImporter);
  21642. if (importers != null)
  21643. B.JSArray_methods.addAll$1(t1, importers);
  21644. if (loadPaths != null)
  21645. for (t2 = J.get$iterator$ax(loadPaths); t2.moveNext$0();) {
  21646. t3 = t2.get$current(t2);
  21647. t1.push(new A.FilesystemImporter0($.$get$context().absolute$15(t3, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null), false));
  21648. }
  21649. if (sassPath != null) {
  21650. t2 = A.isNodeJs() ? self.process : _null;
  21651. t3 = sassPath.split(J.$eq$(t2 == null ? _null : J.get$platform$x(t2), "win32") ? ";" : ":");
  21652. t4 = t3.length;
  21653. _i = 0;
  21654. for (; _i < t4; ++_i) {
  21655. path = t3[_i];
  21656. t1.push(new A.FilesystemImporter0($.$get$context().absolute$15(path, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null), false));
  21657. }
  21658. }
  21659. return t1;
  21660. },
  21661. AsyncImportCache0: function AsyncImportCache0(t0, t1, t2, t3, t4, t5) {
  21662. var _ = this;
  21663. _._async_import_cache0$_importers = t0;
  21664. _._async_import_cache0$_canonicalizeCache = t1;
  21665. _._async_import_cache0$_perImporterCanonicalizeCache = t2;
  21666. _._async_import_cache0$_nonCanonicalRelativeUrls = t3;
  21667. _._async_import_cache0$_importCache = t4;
  21668. _._async_import_cache0$_resultsCache = t5;
  21669. },
  21670. AsyncImportCache_canonicalize_closure0: function AsyncImportCache_canonicalize_closure0(t0, t1, t2, t3, t4, t5, t6) {
  21671. var _ = this;
  21672. _.$this = t0;
  21673. _.baseImporter = t1;
  21674. _.resolvedUrl = t2;
  21675. _.baseUrl = t3;
  21676. _.forImport = t4;
  21677. _.key = t5;
  21678. _.url = t6;
  21679. },
  21680. AsyncImportCache__canonicalize_closure0: function AsyncImportCache__canonicalize_closure0(t0, t1) {
  21681. this.importer = t0;
  21682. this.url = t1;
  21683. },
  21684. AsyncImportCache_importCanonical_closure0: function AsyncImportCache_importCanonical_closure0(t0, t1, t2, t3) {
  21685. var _ = this;
  21686. _.$this = t0;
  21687. _.importer = t1;
  21688. _.canonicalUrl = t2;
  21689. _.originalUrl = t3;
  21690. },
  21691. AsyncImportCache_humanize_closure3: function AsyncImportCache_humanize_closure3(t0) {
  21692. this.canonicalUrl = t0;
  21693. },
  21694. AsyncImportCache_humanize_closure4: function AsyncImportCache_humanize_closure4() {
  21695. },
  21696. AsyncImportCache_humanize_closure5: function AsyncImportCache_humanize_closure5() {
  21697. },
  21698. AsyncImportCache_humanize_closure6: function AsyncImportCache_humanize_closure6(t0) {
  21699. this.canonicalUrl = t0;
  21700. },
  21701. AtRootQueryParser0: function AtRootQueryParser0(t0, t1) {
  21702. this.scanner = t0;
  21703. this._parser1$_interpolationMap = t1;
  21704. },
  21705. AtRootQueryParser_parse_closure0: function AtRootQueryParser_parse_closure0(t0) {
  21706. this.$this = t0;
  21707. },
  21708. AtRootQuery0: function AtRootQuery0(t0, t1, t2, t3) {
  21709. var _ = this;
  21710. _.include = t0;
  21711. _.names = t1;
  21712. _._at_root_query0$_all = t2;
  21713. _._at_root_query0$_rule = t3;
  21714. },
  21715. AtRootRule$0(children, span, query) {
  21716. var t1 = A.List_List$unmodifiable(children, type$.Statement_2),
  21717. t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure0());
  21718. return new A.AtRootRule0(query, span, t1, t2);
  21719. },
  21720. AtRootRule0: function AtRootRule0(t0, t1, t2, t3) {
  21721. var _ = this;
  21722. _.query = t0;
  21723. _.span = t1;
  21724. _.children = t2;
  21725. _.hasDeclarations = t3;
  21726. },
  21727. ModifiableCssAtRule$0($name, span, childless, value) {
  21728. var t1 = A._setArrayType([], type$.JSArray_ModifiableCssNode_2);
  21729. return new A.ModifiableCssAtRule0($name, value, childless, span, new A.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode_2), t1);
  21730. },
  21731. ModifiableCssAtRule0: function ModifiableCssAtRule0(t0, t1, t2, t3, t4, t5) {
  21732. var _ = this;
  21733. _.name = t0;
  21734. _.value = t1;
  21735. _.isChildless = t2;
  21736. _.span = t3;
  21737. _.children = t4;
  21738. _._node$_children = t5;
  21739. _._node$_indexInParent = _._node$_parent = null;
  21740. _.isGroupEnd = false;
  21741. },
  21742. AtRule$0($name, span, children, value) {
  21743. var t1 = children == null ? null : A.List_List$unmodifiable(children, type$.Statement_2),
  21744. t2 = t1 == null ? null : B.JSArray_methods.any$1(t1, new A.ParentStatement_closure0());
  21745. return new A.AtRule0($name, value, span, t1, t2 === true);
  21746. },
  21747. AtRule0: function AtRule0(t0, t1, t2, t3, t4) {
  21748. var _ = this;
  21749. _.name = t0;
  21750. _.value = t1;
  21751. _.span = t2;
  21752. _.children = t3;
  21753. _.hasDeclarations = t4;
  21754. },
  21755. AttributeSelector0: function AttributeSelector0(t0, t1, t2, t3, t4) {
  21756. var _ = this;
  21757. _.name = t0;
  21758. _.op = t1;
  21759. _.value = t2;
  21760. _.modifier = t3;
  21761. _.span = t4;
  21762. },
  21763. AttributeOperator0: function AttributeOperator0(t0, t1) {
  21764. this._attribute0$_text = t0;
  21765. this._name = t1;
  21766. },
  21767. BinaryOperationExpression0: function BinaryOperationExpression0(t0, t1, t2, t3) {
  21768. var _ = this;
  21769. _.operator = t0;
  21770. _.left = t1;
  21771. _.right = t2;
  21772. _.allowsSlash = t3;
  21773. },
  21774. BinaryOperator0: function BinaryOperator0(t0, t1, t2, t3, t4) {
  21775. var _ = this;
  21776. _.name = t0;
  21777. _.operator = t1;
  21778. _.precedence = t2;
  21779. _.isAssociative = t3;
  21780. _._name = t4;
  21781. },
  21782. BooleanExpression0: function BooleanExpression0(t0, t1) {
  21783. this.value = t0;
  21784. this.span = t1;
  21785. },
  21786. booleanClass_closure: function booleanClass_closure() {
  21787. },
  21788. booleanClass__closure: function booleanClass__closure() {
  21789. },
  21790. legacyBooleanClass_closure: function legacyBooleanClass_closure() {
  21791. },
  21792. legacyBooleanClass__closure: function legacyBooleanClass__closure() {
  21793. },
  21794. legacyBooleanClass__closure0: function legacyBooleanClass__closure0() {
  21795. },
  21796. SassBoolean0: function SassBoolean0(t0) {
  21797. this.value = t0;
  21798. },
  21799. Box0: function Box0(t0, t1) {
  21800. this._box0$_inner = t0;
  21801. this.$ti = t1;
  21802. },
  21803. ModifiableBox0: function ModifiableBox0(t0, t1) {
  21804. this.value = t0;
  21805. this.$ti = t1;
  21806. },
  21807. BuiltInCallable$function0($name, $arguments, callback, url) {
  21808. return new A.BuiltInCallable0($name, A._setArrayType([new A._Record_2(A.ScssParser$0("@function " + $name + "(" + $arguments + ") {", url).parseArgumentDeclaration$0(), callback)], type$.JSArray_Record_2_ArgumentDeclaration_and_Value_Function_List_Value_2), false);
  21809. },
  21810. BuiltInCallable$mixin0($name, $arguments, callback, acceptsContent, url) {
  21811. return new A.BuiltInCallable0($name, A._setArrayType([new A._Record_2(A.ScssParser$0("@mixin " + $name + "(" + $arguments + ") {", url).parseArgumentDeclaration$0(), new A.BuiltInCallable$mixin_closure0(callback))], type$.JSArray_Record_2_ArgumentDeclaration_and_Value_Function_List_Value_2), acceptsContent);
  21812. },
  21813. BuiltInCallable$overloadedFunction0($name, overloads) {
  21814. var t2, t3, t4, t5, t6, t7, args, callback,
  21815. t1 = A._setArrayType([], type$.JSArray_Record_2_ArgumentDeclaration_and_Value_Function_List_Value_2);
  21816. for (t2 = type$.String, t3 = A.MapExtensions_get_pairs0(overloads, t2, type$.Value_Function_List_Value_2), t3 = t3.get$iterator(t3), t4 = "@function " + $name + "(", t5 = type$.VariableDeclaration_2, t6 = type$.JSArray_Record_3_nullable_Deprecation_deprecation_and_String_message_and_FileSpan_span_2; t3.moveNext$0();) {
  21817. t7 = t3.get$current(t3);
  21818. args = t7._0;
  21819. callback = t7._1;
  21820. t1.push(new A._Record_2(new A.ScssParser0(A.LinkedHashMap_LinkedHashMap$_empty(t2, t5), A._setArrayType([], t6), A.SpanScanner$(t4 + args + ") {", null), null).parseArgumentDeclaration$0(), callback));
  21821. }
  21822. return new A.BuiltInCallable0($name, t1, false);
  21823. },
  21824. BuiltInCallable0: function BuiltInCallable0(t0, t1, t2) {
  21825. this.name = t0;
  21826. this._built_in$_overloads = t1;
  21827. this.acceptsContent = t2;
  21828. },
  21829. BuiltInCallable$mixin_closure0: function BuiltInCallable$mixin_closure0(t0) {
  21830. this.callback = t0;
  21831. },
  21832. BuiltInCallable_withDeprecationWarning_closure0: function BuiltInCallable_withDeprecationWarning_closure0(t0, t1, t2, t3) {
  21833. var _ = this;
  21834. _._box_0 = t0;
  21835. _.$this = t1;
  21836. _.module = t2;
  21837. _.newName = t3;
  21838. },
  21839. BuiltInModule$0($name, functions, mixins, variables, $T) {
  21840. var t1 = A._Uri__Uri(null, $name, null, "sass"),
  21841. t2 = A.BuiltInModule__callableMap0(functions, $T),
  21842. t3 = A.BuiltInModule__callableMap0(mixins, $T),
  21843. t4 = variables == null ? B.Map_empty13 : new A.UnmodifiableMapView(variables, type$.UnmodifiableMapView_String_Value_2);
  21844. return new A.BuiltInModule0(t1, t2, t3, t4, $T._eval$1("BuiltInModule0<0>"));
  21845. },
  21846. BuiltInModule__callableMap0(callables, $T) {
  21847. var t2, _i, callable,
  21848. t1 = type$.String;
  21849. if (callables == null)
  21850. t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, $T);
  21851. else {
  21852. t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, $T);
  21853. for (t2 = callables.length, _i = 0; _i < callables.length; callables.length === t2 || (0, A.throwConcurrentModificationError)(callables), ++_i) {
  21854. callable = callables[_i];
  21855. t1.$indexSet(0, J.get$name$x(callable), callable);
  21856. }
  21857. t1 = new A.UnmodifiableMapView(t1, type$.$env_1_1_String._bind$1($T)._eval$1("UnmodifiableMapView<1,2>"));
  21858. }
  21859. return new A.UnmodifiableMapView(t1, type$.$env_1_1_String._bind$1($T)._eval$1("UnmodifiableMapView<1,2>"));
  21860. },
  21861. BuiltInModule0: function BuiltInModule0(t0, t1, t2, t3, t4) {
  21862. var _ = this;
  21863. _.url = t0;
  21864. _.functions = t1;
  21865. _.mixins = t2;
  21866. _.variables = t3;
  21867. _.$ti = t4;
  21868. },
  21869. _assertCalculationValue(arg) {
  21870. var t1;
  21871. $label0$0: {
  21872. if (!(arg instanceof A.SassNumber0))
  21873. t1 = arg instanceof A.SassString0 && !arg._string0$_hasQuotes || arg instanceof A.SassCalculation0 || arg instanceof A.CalculationOperation0 || arg instanceof A.CalculationInterpolation;
  21874. else
  21875. t1 = true;
  21876. if (t1) {
  21877. t1 = null;
  21878. break $label0$0;
  21879. }
  21880. t1 = A.jsThrow0(new self.Error("Argument `" + A.S(arg) + "` must be one of SassNumber, unquoted SassString, SassCalculation, CalculationOperation, CalculationInterpolation"));
  21881. }
  21882. return t1;
  21883. },
  21884. _isValidClampArg(arg) {
  21885. var t1;
  21886. $label0$0: {
  21887. if (!(arg instanceof A.CalculationInterpolation))
  21888. t1 = arg instanceof A.SassString0 && !arg._string0$_hasQuotes;
  21889. else
  21890. t1 = true;
  21891. if (t1)
  21892. break $label0$0;
  21893. break $label0$0;
  21894. }
  21895. return t1;
  21896. },
  21897. calculationClass_closure: function calculationClass_closure() {
  21898. },
  21899. calculationClass__closure: function calculationClass__closure() {
  21900. },
  21901. calculationClass__closure0: function calculationClass__closure0() {
  21902. },
  21903. calculationClass__closure1: function calculationClass__closure1() {
  21904. },
  21905. calculationClass__closure2: function calculationClass__closure2() {
  21906. },
  21907. calculationClass__closure3: function calculationClass__closure3() {
  21908. },
  21909. calculationClass__closure4: function calculationClass__closure4() {
  21910. },
  21911. calculationClass__closure5: function calculationClass__closure5() {
  21912. },
  21913. calculationOperationClass_closure: function calculationOperationClass_closure() {
  21914. },
  21915. calculationOperationClass__closure: function calculationOperationClass__closure() {
  21916. },
  21917. calculationOperationClass___closure: function calculationOperationClass___closure(t0) {
  21918. this.strOperator = t0;
  21919. },
  21920. calculationOperationClass__closure0: function calculationOperationClass__closure0() {
  21921. },
  21922. calculationOperationClass__closure1: function calculationOperationClass__closure1() {
  21923. },
  21924. calculationOperationClass__closure2: function calculationOperationClass__closure2() {
  21925. },
  21926. calculationOperationClass__closure3: function calculationOperationClass__closure3() {
  21927. },
  21928. calculationOperationClass__closure4: function calculationOperationClass__closure4() {
  21929. },
  21930. calculationInterpolationClass_closure: function calculationInterpolationClass_closure() {
  21931. },
  21932. calculationInterpolationClass__closure: function calculationInterpolationClass__closure() {
  21933. },
  21934. calculationInterpolationClass__closure0: function calculationInterpolationClass__closure0() {
  21935. },
  21936. calculationInterpolationClass__closure1: function calculationInterpolationClass__closure1() {
  21937. },
  21938. calculationInterpolationClass__closure2: function calculationInterpolationClass__closure2() {
  21939. },
  21940. SassCalculation_calc0(argument) {
  21941. var t1,
  21942. _0_0 = A.SassCalculation__simplify0(argument);
  21943. $label0$0: {
  21944. if (_0_0 instanceof A.SassNumber0) {
  21945. t1 = _0_0;
  21946. break $label0$0;
  21947. }
  21948. if (_0_0 instanceof A.SassCalculation0) {
  21949. t1 = _0_0;
  21950. break $label0$0;
  21951. }
  21952. t1 = new A.SassCalculation0("calc", A.List_List$unmodifiable([_0_0], type$.Object));
  21953. break $label0$0;
  21954. }
  21955. return t1;
  21956. },
  21957. SassCalculation_min0($arguments) {
  21958. var minimum, _i, arg, t2,
  21959. args = A.List_List$unmodifiable(new A.MappedListIterable($arguments, A.calculation0_SassCalculation__simplify$closure(), A._arrayInstanceType($arguments)._eval$1("MappedListIterable<1,@>")), type$.Object),
  21960. t1 = args.length;
  21961. if (t1 === 0)
  21962. throw A.wrapException(A.ArgumentError$("min() must have at least one argument.", null));
  21963. for (minimum = null, _i = 0; _i < t1; ++_i) {
  21964. arg = args[_i];
  21965. if (arg instanceof A.SassNumber0)
  21966. t2 = minimum != null && !minimum.isComparableTo$1(arg);
  21967. else
  21968. t2 = true;
  21969. if (t2) {
  21970. minimum = null;
  21971. break;
  21972. } else if (minimum == null || minimum.greaterThan$1(arg).value)
  21973. minimum = arg;
  21974. }
  21975. if (minimum != null)
  21976. return minimum;
  21977. A.SassCalculation__verifyCompatibleNumbers0(args);
  21978. return new A.SassCalculation0("min", args);
  21979. },
  21980. SassCalculation_max0($arguments) {
  21981. var maximum, _i, arg, t2,
  21982. args = A.List_List$unmodifiable(new A.MappedListIterable($arguments, A.calculation0_SassCalculation__simplify$closure(), A._arrayInstanceType($arguments)._eval$1("MappedListIterable<1,@>")), type$.Object),
  21983. t1 = args.length;
  21984. if (t1 === 0)
  21985. throw A.wrapException(A.ArgumentError$("max() must have at least one argument.", null));
  21986. for (maximum = null, _i = 0; _i < t1; ++_i) {
  21987. arg = args[_i];
  21988. if (arg instanceof A.SassNumber0)
  21989. t2 = maximum != null && !maximum.isComparableTo$1(arg);
  21990. else
  21991. t2 = true;
  21992. if (t2) {
  21993. maximum = null;
  21994. break;
  21995. } else if (maximum == null || maximum.lessThan$1(arg).value)
  21996. maximum = arg;
  21997. }
  21998. if (maximum != null)
  21999. return maximum;
  22000. A.SassCalculation__verifyCompatibleNumbers0(args);
  22001. return new A.SassCalculation0("max", args);
  22002. },
  22003. SassCalculation_hypot0($arguments) {
  22004. var first, subtotal, i, number, value, t2, t3,
  22005. args = A.List_List$unmodifiable(new A.MappedListIterable($arguments, A.calculation0_SassCalculation__simplify$closure(), A._arrayInstanceType($arguments)._eval$1("MappedListIterable<1,@>")), type$.Object),
  22006. t1 = args.length;
  22007. if (t1 === 0)
  22008. throw A.wrapException(A.ArgumentError$("hypot() must have at least one argument.", null));
  22009. A.SassCalculation__verifyCompatibleNumbers0(args);
  22010. first = B.JSArray_methods.get$first(args);
  22011. if (!(first instanceof A.SassNumber0) || first.hasUnit$1("%"))
  22012. return new A.SassCalculation0("hypot", args);
  22013. for (subtotal = 0, i = 0; i < t1;) {
  22014. number = args[i];
  22015. if (!(number instanceof A.SassNumber0) || !number.hasCompatibleUnits$1(first))
  22016. return new A.SassCalculation0("hypot", args);
  22017. ++i;
  22018. value = number.convertValueToMatch$3(first, "numbers[" + i + "]", "numbers[1]");
  22019. subtotal += value * value;
  22020. }
  22021. t1 = Math.sqrt(subtotal);
  22022. t2 = J.getInterceptor$x(first);
  22023. t3 = t2.get$numeratorUnits(first);
  22024. return A.SassNumber_SassNumber$withUnits0(t1, t2.get$denominatorUnits(first), t3);
  22025. },
  22026. SassCalculation_abs0(argument) {
  22027. argument = A.SassCalculation__simplify0(argument);
  22028. if (!(argument instanceof A.SassNumber0))
  22029. return new A.SassCalculation0("abs", A._setArrayType([argument], type$.JSArray_Object));
  22030. if (argument.hasUnit$1("%"))
  22031. A.warnForDeprecation0(string$.Passinp + argument.toString$0(0) + ")\nTo emit a CSS abs() now: abs(#{" + argument.toString$0(0) + string$.x7d__Mor, B.Deprecation_qgq);
  22032. return A.SassNumber_SassNumber0(Math.abs(argument._number1$_value), null).coerceToMatch$1(argument);
  22033. },
  22034. SassCalculation_exp0(argument) {
  22035. argument = A.SassCalculation__simplify0(argument);
  22036. if (!(argument instanceof A.SassNumber0))
  22037. return new A.SassCalculation0("exp", A._setArrayType([argument], type$.JSArray_Object));
  22038. argument.assertNoUnits$0();
  22039. return A.pow1(A.SassNumber_SassNumber0(2.718281828459045, null), argument);
  22040. },
  22041. SassCalculation_sign0(argument) {
  22042. var t1, _0_2, t2, arg;
  22043. argument = A.SassCalculation__simplify0(argument);
  22044. $label0$0: {
  22045. t1 = argument instanceof A.SassNumber0;
  22046. if (t1) {
  22047. _0_2 = argument._number1$_value;
  22048. if (!isNaN(_0_2))
  22049. t2 = 0 === _0_2;
  22050. else
  22051. t2 = true;
  22052. } else
  22053. t2 = false;
  22054. if (t2) {
  22055. t1 = argument;
  22056. break $label0$0;
  22057. }
  22058. if (t1) {
  22059. t1 = !argument.hasUnit$1("%");
  22060. arg = argument;
  22061. } else {
  22062. arg = null;
  22063. t1 = false;
  22064. }
  22065. if (t1) {
  22066. t1 = A.SassNumber_SassNumber0(J.get$sign$in(arg._number1$_value), null).coerceToMatch$1(argument);
  22067. break $label0$0;
  22068. }
  22069. t1 = new A.SassCalculation0("sign", A._setArrayType([argument], type$.JSArray_Object));
  22070. break $label0$0;
  22071. }
  22072. return t1;
  22073. },
  22074. SassCalculation_clamp0(min, value, max) {
  22075. var t1, args;
  22076. if (value == null && max != null)
  22077. throw A.wrapException(A.ArgumentError$("If value is null, max must also be null.", null));
  22078. min = A.SassCalculation__simplify0(min);
  22079. value = A.NullableExtension_andThen0(value, A.calculation0_SassCalculation__simplify$closure());
  22080. max = A.NullableExtension_andThen0(max, A.calculation0_SassCalculation__simplify$closure());
  22081. if (min instanceof A.SassNumber0 && value instanceof A.SassNumber0 && max instanceof A.SassNumber0 && min.hasCompatibleUnits$1(value) && min.hasCompatibleUnits$1(max)) {
  22082. if (value.lessThanOrEquals$1(min).value)
  22083. return min;
  22084. if (value.greaterThanOrEquals$1(max).value)
  22085. return max;
  22086. return value;
  22087. }
  22088. t1 = [min];
  22089. if (value != null)
  22090. t1.push(value);
  22091. if (max != null)
  22092. t1.push(max);
  22093. args = A.List_List$unmodifiable(t1, type$.Object);
  22094. A.SassCalculation__verifyCompatibleNumbers0(args);
  22095. A.SassCalculation__verifyLength0(args, 3);
  22096. return new A.SassCalculation0("clamp", args);
  22097. },
  22098. SassCalculation_pow0(base, exponent) {
  22099. var t1 = A._setArrayType([base], type$.JSArray_Object);
  22100. if (exponent != null)
  22101. t1.push(exponent);
  22102. A.SassCalculation__verifyLength0(t1, 2);
  22103. base = A.SassCalculation__simplify0(base);
  22104. exponent = A.NullableExtension_andThen0(exponent, A.calculation0_SassCalculation__simplify$closure());
  22105. if (!(base instanceof A.SassNumber0) || !(exponent instanceof A.SassNumber0))
  22106. return new A.SassCalculation0("pow", t1);
  22107. base.assertNoUnits$0();
  22108. exponent.assertNoUnits$0();
  22109. return A.pow1(base, exponent);
  22110. },
  22111. SassCalculation_log0(number, base) {
  22112. var t1, t2;
  22113. number = A.SassCalculation__simplify0(number);
  22114. base = A.NullableExtension_andThen0(base, A.calculation0_SassCalculation__simplify$closure());
  22115. t1 = A._setArrayType([number], type$.JSArray_Object);
  22116. t2 = base != null;
  22117. if (t2)
  22118. t1.push(base);
  22119. if (number instanceof A.SassNumber0)
  22120. t2 = t2 && !(base instanceof A.SassNumber0);
  22121. else
  22122. t2 = true;
  22123. if (t2)
  22124. return new A.SassCalculation0("log", t1);
  22125. number.assertNoUnits$0();
  22126. if (base instanceof A.SassNumber0) {
  22127. base.assertNoUnits$0();
  22128. return A.log0(number, base);
  22129. }
  22130. return A.log0(number, null);
  22131. },
  22132. SassCalculation_atan20(y, x) {
  22133. var t1;
  22134. y = A.SassCalculation__simplify0(y);
  22135. x = A.NullableExtension_andThen0(x, A.calculation0_SassCalculation__simplify$closure());
  22136. t1 = A._setArrayType([y], type$.JSArray_Object);
  22137. if (x != null)
  22138. t1.push(x);
  22139. A.SassCalculation__verifyLength0(t1, 2);
  22140. A.SassCalculation__verifyCompatibleNumbers0(t1);
  22141. if (!(y instanceof A.SassNumber0) || !(x instanceof A.SassNumber0) || y.hasUnit$1("%") || x.hasUnit$1("%") || !y.hasCompatibleUnits$1(x))
  22142. return new A.SassCalculation0("atan2", t1);
  22143. return A.SassNumber_SassNumber$withUnits0(Math.atan2(y._number1$_value, x.convertValueToMatch$3(y, "x", "y")) * 57.29577951308232, null, A._setArrayType(["deg"], type$.JSArray_String));
  22144. },
  22145. SassCalculation_rem0(dividend, modulus) {
  22146. var t1, result;
  22147. dividend = A.SassCalculation__simplify0(dividend);
  22148. modulus = A.NullableExtension_andThen0(modulus, A.calculation0_SassCalculation__simplify$closure());
  22149. t1 = A._setArrayType([dividend], type$.JSArray_Object);
  22150. if (modulus != null)
  22151. t1.push(modulus);
  22152. A.SassCalculation__verifyLength0(t1, 2);
  22153. A.SassCalculation__verifyCompatibleNumbers0(t1);
  22154. if (!(dividend instanceof A.SassNumber0) || !(modulus instanceof A.SassNumber0) || !dividend.hasCompatibleUnits$1(modulus))
  22155. return new A.SassCalculation0("rem", t1);
  22156. result = dividend.modulo$1(modulus);
  22157. t1 = modulus._number1$_value;
  22158. if (A.DoubleWithSignedZero_get_signIncludingZero0(t1) !== A.DoubleWithSignedZero_get_signIncludingZero0(dividend._number1$_value)) {
  22159. if (t1 == 1 / 0 || t1 == -1 / 0)
  22160. return dividend;
  22161. if (result._number1$_value === 0)
  22162. return result.unaryMinus$0();
  22163. return result.minus$1(modulus);
  22164. }
  22165. return result;
  22166. },
  22167. SassCalculation_mod0(dividend, modulus) {
  22168. var t1;
  22169. dividend = A.SassCalculation__simplify0(dividend);
  22170. modulus = A.NullableExtension_andThen0(modulus, A.calculation0_SassCalculation__simplify$closure());
  22171. t1 = A._setArrayType([dividend], type$.JSArray_Object);
  22172. if (modulus != null)
  22173. t1.push(modulus);
  22174. A.SassCalculation__verifyLength0(t1, 2);
  22175. A.SassCalculation__verifyCompatibleNumbers0(t1);
  22176. if (!(dividend instanceof A.SassNumber0) || !(modulus instanceof A.SassNumber0) || !dividend.hasCompatibleUnits$1(modulus))
  22177. return new A.SassCalculation0("mod", t1);
  22178. return dividend.modulo$1(modulus);
  22179. },
  22180. SassCalculation_round0(strategyOrNumber, numberOrStep, step) {
  22181. var number, t2, _0_2_isSet, _0_2_isSet0, _0_10_isSet, _0_8, _0_12, _0_14, _0_14_isSet, _0_16, _0_16_isSet, strategy, _0_5_isSet0, _0_12_isSet, t3, t4, _0_8_isSet, _0_8_isSet0, rest, _null = null, _s5_ = "round",
  22182. _0_1 = A.SassCalculation__simplify0(strategyOrNumber),
  22183. _0_2 = A.NullableExtension_andThen0(numberOrStep, A.calculation0_SassCalculation__simplify$closure()),
  22184. _0_5 = A.NullableExtension_andThen0(step, A.calculation0_SassCalculation__simplify$closure()),
  22185. _0_10 = _0_1,
  22186. _0_4_isSet = _0_1 instanceof A.SassNumber0,
  22187. _0_4 = _null,
  22188. _0_20 = _null,
  22189. _0_6 = _null,
  22190. _0_6_isSet = false,
  22191. _0_50 = _null,
  22192. _0_5_isSet = false,
  22193. t1 = false;
  22194. if (_0_4_isSet) {
  22195. type$.SassNumber_2._as(_0_10);
  22196. _0_4 = _0_2 == null;
  22197. _0_5_isSet = _0_4;
  22198. _0_20 = _0_2;
  22199. if (_0_5_isSet) {
  22200. _0_6 = _0_5 == null;
  22201. t1 = _0_6;
  22202. _0_50 = _0_5;
  22203. }
  22204. _0_6_isSet = _0_5_isSet;
  22205. number = _0_10;
  22206. _0_1 = number;
  22207. } else {
  22208. number = _null;
  22209. _0_1 = _0_10;
  22210. }
  22211. if (t1) {
  22212. t1 = B.JSNumber_methods.round$0(number._number1$_value);
  22213. t2 = number.get$numeratorUnits(number);
  22214. return A.SassNumber_SassNumber$withUnits0(t1, number.get$denominatorUnits(number), t2);
  22215. }
  22216. step = _null;
  22217. t1 = false;
  22218. if (_0_1 instanceof A.SassNumber0) {
  22219. _0_2_isSet = true;
  22220. if (_0_4_isSet) {
  22221. t2 = _0_20;
  22222. _0_2_isSet0 = _0_4_isSet;
  22223. } else {
  22224. t2 = _0_2;
  22225. _0_2_isSet0 = _0_2_isSet;
  22226. _0_20 = t2;
  22227. }
  22228. if (t2 instanceof A.SassNumber0) {
  22229. if (_0_2_isSet0) {
  22230. t2 = _0_20;
  22231. _0_2_isSet = _0_2_isSet0;
  22232. } else {
  22233. t2 = _0_2;
  22234. _0_20 = t2;
  22235. }
  22236. type$.SassNumber_2._as(t2);
  22237. if (_0_6_isSet)
  22238. t1 = _0_6;
  22239. else {
  22240. if (_0_5_isSet)
  22241. t1 = _0_50;
  22242. else {
  22243. t1 = _0_5;
  22244. _0_50 = t1;
  22245. _0_5_isSet = true;
  22246. }
  22247. _0_6 = t1 == null;
  22248. t1 = _0_6;
  22249. _0_6_isSet = true;
  22250. }
  22251. t1 = t1 && !_0_1.hasCompatibleUnits$1(t2);
  22252. step = t2;
  22253. } else
  22254. _0_2_isSet = _0_2_isSet0;
  22255. number = _0_1;
  22256. } else {
  22257. number = _null;
  22258. _0_2_isSet = _0_4_isSet;
  22259. }
  22260. if (t1) {
  22261. t1 = type$.JSArray_Object;
  22262. A.SassCalculation__verifyCompatibleNumbers0(A._setArrayType([number, step], t1));
  22263. return new A.SassCalculation0(_s5_, A._setArrayType([number, step], t1));
  22264. }
  22265. step = _null;
  22266. t1 = false;
  22267. if (_0_1 instanceof A.SassNumber0) {
  22268. _0_2_isSet0 = true;
  22269. if (_0_2_isSet)
  22270. t2 = _0_20;
  22271. else {
  22272. t2 = _0_2;
  22273. _0_2_isSet = _0_2_isSet0;
  22274. _0_20 = t2;
  22275. }
  22276. if (t2 instanceof A.SassNumber0) {
  22277. if (_0_2_isSet)
  22278. t2 = _0_20;
  22279. else {
  22280. t2 = _0_2;
  22281. _0_2_isSet = _0_2_isSet0;
  22282. _0_20 = t2;
  22283. }
  22284. type$.SassNumber_2._as(t2);
  22285. if (_0_6_isSet)
  22286. t1 = _0_6;
  22287. else {
  22288. if (_0_5_isSet)
  22289. t1 = _0_50;
  22290. else {
  22291. t1 = _0_5;
  22292. _0_50 = t1;
  22293. _0_5_isSet = true;
  22294. }
  22295. _0_6 = t1 == null;
  22296. t1 = _0_6;
  22297. _0_6_isSet = true;
  22298. }
  22299. step = t2;
  22300. }
  22301. number = _0_1;
  22302. } else
  22303. number = _null;
  22304. if (t1) {
  22305. A.SassCalculation__verifyCompatibleNumbers0(A._setArrayType([number, step], type$.JSArray_Object));
  22306. return A.SassCalculation__roundWithStep0("nearest", number, step);
  22307. }
  22308. _0_10_isSet = _0_1 instanceof A.SassString0;
  22309. _0_10 = _null;
  22310. _0_8 = _null;
  22311. _0_12 = _null;
  22312. _0_14 = _null;
  22313. _0_14_isSet = false;
  22314. _0_16 = _null;
  22315. _0_16_isSet = false;
  22316. strategy = _null;
  22317. number = _null;
  22318. step = _null;
  22319. t1 = false;
  22320. if (_0_10_isSet) {
  22321. _0_2_isSet0 = true;
  22322. _0_5_isSet0 = true;
  22323. _0_8 = _0_1._string0$_text;
  22324. t2 = _0_8;
  22325. _0_10 = "nearest" === t2;
  22326. t2 = _0_10;
  22327. _0_12_isSet = !t2;
  22328. t2 = true;
  22329. if (_0_12_isSet) {
  22330. _0_12 = "up" === _0_8;
  22331. t3 = _0_12;
  22332. _0_14_isSet = !t3;
  22333. if (_0_14_isSet) {
  22334. _0_14 = "down" === _0_8;
  22335. t3 = _0_14;
  22336. _0_16_isSet = !t3;
  22337. if (_0_16_isSet) {
  22338. _0_16 = "to-zero" === _0_8;
  22339. t2 = _0_16;
  22340. }
  22341. }
  22342. }
  22343. if (t2) {
  22344. if (_0_2_isSet)
  22345. t2 = _0_20;
  22346. else {
  22347. t2 = _0_2;
  22348. _0_2_isSet = _0_2_isSet0;
  22349. _0_20 = t2;
  22350. }
  22351. if (t2 instanceof A.SassNumber0) {
  22352. if (_0_2_isSet)
  22353. t2 = _0_20;
  22354. else {
  22355. t2 = _0_2;
  22356. _0_2_isSet = _0_2_isSet0;
  22357. _0_20 = t2;
  22358. }
  22359. t3 = type$.SassNumber_2;
  22360. t3._as(t2);
  22361. if (_0_5_isSet)
  22362. t4 = _0_50;
  22363. else {
  22364. t4 = _0_5;
  22365. _0_5_isSet = _0_5_isSet0;
  22366. _0_50 = t4;
  22367. }
  22368. if (t4 instanceof A.SassNumber0) {
  22369. if (_0_5_isSet)
  22370. t1 = _0_50;
  22371. else {
  22372. t1 = _0_5;
  22373. _0_5_isSet = _0_5_isSet0;
  22374. _0_50 = t1;
  22375. }
  22376. t3._as(t1);
  22377. t3 = !t2.hasCompatibleUnits$1(t1);
  22378. step = t1;
  22379. t1 = t3;
  22380. }
  22381. number = t2;
  22382. }
  22383. strategy = _0_1;
  22384. }
  22385. } else
  22386. _0_12_isSet = false;
  22387. if (t1) {
  22388. t1 = type$.JSArray_Object;
  22389. A.SassCalculation__verifyCompatibleNumbers0(A._setArrayType([number, step], t1));
  22390. return new A.SassCalculation0(_s5_, A._setArrayType([strategy, number, step], t1));
  22391. }
  22392. strategy = _null;
  22393. number = _null;
  22394. step = _null;
  22395. t1 = false;
  22396. if (_0_1 instanceof A.SassString0) {
  22397. _0_2_isSet0 = true;
  22398. _0_5_isSet0 = true;
  22399. _0_8_isSet = true;
  22400. if (_0_10_isSet) {
  22401. t2 = _0_10;
  22402. _0_8_isSet0 = _0_10_isSet;
  22403. } else {
  22404. _0_8 = _0_1._string0$_text;
  22405. t2 = _0_8;
  22406. _0_10 = "nearest" === t2;
  22407. t2 = _0_10;
  22408. _0_8_isSet0 = _0_8_isSet;
  22409. _0_10_isSet = true;
  22410. }
  22411. t3 = true;
  22412. if (!t2) {
  22413. if (_0_12_isSet)
  22414. t2 = _0_12;
  22415. else {
  22416. if (_0_8_isSet0)
  22417. t2 = _0_8;
  22418. else {
  22419. _0_8 = _0_1._string0$_text;
  22420. t2 = _0_8;
  22421. _0_8_isSet0 = _0_8_isSet;
  22422. }
  22423. _0_12 = "up" === t2;
  22424. t2 = _0_12;
  22425. _0_12_isSet = true;
  22426. }
  22427. if (!t2) {
  22428. if (_0_14_isSet)
  22429. t2 = _0_14;
  22430. else {
  22431. if (_0_8_isSet0)
  22432. t2 = _0_8;
  22433. else {
  22434. _0_8 = _0_1._string0$_text;
  22435. t2 = _0_8;
  22436. _0_8_isSet0 = _0_8_isSet;
  22437. }
  22438. _0_14 = "down" === t2;
  22439. t2 = _0_14;
  22440. _0_14_isSet = true;
  22441. }
  22442. if (!t2)
  22443. if (_0_16_isSet) {
  22444. t2 = _0_16;
  22445. _0_8_isSet = _0_8_isSet0;
  22446. } else {
  22447. if (_0_8_isSet0) {
  22448. t2 = _0_8;
  22449. _0_8_isSet = _0_8_isSet0;
  22450. } else {
  22451. _0_8 = _0_1._string0$_text;
  22452. t2 = _0_8;
  22453. }
  22454. _0_16 = "to-zero" === t2;
  22455. t2 = _0_16;
  22456. _0_16_isSet = true;
  22457. }
  22458. else {
  22459. t2 = t3;
  22460. _0_8_isSet = _0_8_isSet0;
  22461. }
  22462. } else {
  22463. t2 = t3;
  22464. _0_8_isSet = _0_8_isSet0;
  22465. }
  22466. } else {
  22467. t2 = t3;
  22468. _0_8_isSet = _0_8_isSet0;
  22469. }
  22470. if (t2) {
  22471. if (_0_2_isSet)
  22472. t2 = _0_20;
  22473. else {
  22474. t2 = _0_2;
  22475. _0_2_isSet = _0_2_isSet0;
  22476. _0_20 = t2;
  22477. }
  22478. if (t2 instanceof A.SassNumber0) {
  22479. if (_0_2_isSet)
  22480. t2 = _0_20;
  22481. else {
  22482. t2 = _0_2;
  22483. _0_2_isSet = _0_2_isSet0;
  22484. _0_20 = t2;
  22485. }
  22486. t3 = type$.SassNumber_2;
  22487. t3._as(t2);
  22488. if (_0_5_isSet)
  22489. t1 = _0_50;
  22490. else {
  22491. t1 = _0_5;
  22492. _0_5_isSet = _0_5_isSet0;
  22493. _0_50 = t1;
  22494. }
  22495. t1 = t1 instanceof A.SassNumber0;
  22496. if (t1) {
  22497. if (_0_5_isSet)
  22498. t4 = _0_50;
  22499. else {
  22500. t4 = _0_5;
  22501. _0_5_isSet = _0_5_isSet0;
  22502. _0_50 = t4;
  22503. }
  22504. t3._as(t4);
  22505. step = t4;
  22506. }
  22507. number = t2;
  22508. }
  22509. strategy = _0_1;
  22510. }
  22511. } else
  22512. _0_8_isSet = _0_10_isSet;
  22513. if (t1) {
  22514. A.SassCalculation__verifyCompatibleNumbers0(A._setArrayType([number, step], type$.JSArray_Object));
  22515. return A.SassCalculation__roundWithStep0(strategy._string0$_text, number, step);
  22516. }
  22517. strategy = _null;
  22518. rest = _null;
  22519. t1 = false;
  22520. if (_0_1 instanceof A.SassString0) {
  22521. _0_2_isSet0 = true;
  22522. _0_8_isSet0 = true;
  22523. if (_0_10_isSet)
  22524. t2 = _0_10;
  22525. else {
  22526. if (_0_8_isSet)
  22527. t2 = _0_8;
  22528. else {
  22529. _0_8 = _0_1._string0$_text;
  22530. t2 = _0_8;
  22531. _0_8_isSet = _0_8_isSet0;
  22532. }
  22533. _0_10 = "nearest" === t2;
  22534. t2 = _0_10;
  22535. _0_10_isSet = true;
  22536. }
  22537. t3 = true;
  22538. if (!t2) {
  22539. if (_0_12_isSet)
  22540. t2 = _0_12;
  22541. else {
  22542. if (_0_8_isSet)
  22543. t2 = _0_8;
  22544. else {
  22545. _0_8 = _0_1._string0$_text;
  22546. t2 = _0_8;
  22547. _0_8_isSet = _0_8_isSet0;
  22548. }
  22549. _0_12 = "up" === t2;
  22550. t2 = _0_12;
  22551. _0_12_isSet = true;
  22552. }
  22553. if (!t2) {
  22554. if (_0_14_isSet)
  22555. t2 = _0_14;
  22556. else {
  22557. if (_0_8_isSet)
  22558. t2 = _0_8;
  22559. else {
  22560. _0_8 = _0_1._string0$_text;
  22561. t2 = _0_8;
  22562. _0_8_isSet = _0_8_isSet0;
  22563. }
  22564. _0_14 = "down" === t2;
  22565. t2 = _0_14;
  22566. _0_14_isSet = true;
  22567. }
  22568. if (!t2)
  22569. if (_0_16_isSet)
  22570. t2 = _0_16;
  22571. else {
  22572. if (_0_8_isSet)
  22573. t2 = _0_8;
  22574. else {
  22575. _0_8 = _0_1._string0$_text;
  22576. t2 = _0_8;
  22577. _0_8_isSet = _0_8_isSet0;
  22578. }
  22579. _0_16 = "to-zero" === t2;
  22580. t2 = _0_16;
  22581. _0_16_isSet = true;
  22582. }
  22583. else
  22584. t2 = t3;
  22585. } else
  22586. t2 = t3;
  22587. } else
  22588. t2 = t3;
  22589. if (t2) {
  22590. if (_0_2_isSet)
  22591. t2 = _0_20;
  22592. else {
  22593. t2 = _0_2;
  22594. _0_2_isSet = _0_2_isSet0;
  22595. _0_20 = t2;
  22596. }
  22597. if (t2 instanceof A.SassString0) {
  22598. if (_0_2_isSet)
  22599. t2 = _0_20;
  22600. else {
  22601. t2 = _0_2;
  22602. _0_2_isSet = _0_2_isSet0;
  22603. _0_20 = t2;
  22604. }
  22605. type$.SassString_2._as(t2);
  22606. if (_0_6_isSet)
  22607. t1 = _0_6;
  22608. else {
  22609. if (_0_5_isSet)
  22610. t1 = _0_50;
  22611. else {
  22612. t1 = _0_5;
  22613. _0_50 = t1;
  22614. _0_5_isSet = true;
  22615. }
  22616. _0_6 = t1 == null;
  22617. t1 = _0_6;
  22618. _0_6_isSet = true;
  22619. }
  22620. rest = t2;
  22621. }
  22622. strategy = _0_1;
  22623. }
  22624. }
  22625. if (t1)
  22626. return new A.SassCalculation0(_s5_, A._setArrayType([strategy, rest], type$.JSArray_Object));
  22627. t1 = false;
  22628. if (_0_1 instanceof A.SassString0) {
  22629. _0_8_isSet0 = true;
  22630. if (_0_10_isSet)
  22631. t2 = _0_10;
  22632. else {
  22633. if (_0_8_isSet)
  22634. t2 = _0_8;
  22635. else {
  22636. _0_8 = _0_1._string0$_text;
  22637. t2 = _0_8;
  22638. _0_8_isSet = _0_8_isSet0;
  22639. }
  22640. _0_10 = "nearest" === t2;
  22641. t2 = _0_10;
  22642. _0_10_isSet = true;
  22643. }
  22644. t3 = true;
  22645. if (!t2) {
  22646. if (_0_12_isSet)
  22647. t2 = _0_12;
  22648. else {
  22649. if (_0_8_isSet)
  22650. t2 = _0_8;
  22651. else {
  22652. _0_8 = _0_1._string0$_text;
  22653. t2 = _0_8;
  22654. _0_8_isSet = _0_8_isSet0;
  22655. }
  22656. _0_12 = "up" === t2;
  22657. t2 = _0_12;
  22658. _0_12_isSet = true;
  22659. }
  22660. if (!t2) {
  22661. if (_0_14_isSet)
  22662. t2 = _0_14;
  22663. else {
  22664. if (_0_8_isSet)
  22665. t2 = _0_8;
  22666. else {
  22667. _0_8 = _0_1._string0$_text;
  22668. t2 = _0_8;
  22669. _0_8_isSet = _0_8_isSet0;
  22670. }
  22671. _0_14 = "down" === t2;
  22672. t2 = _0_14;
  22673. _0_14_isSet = true;
  22674. }
  22675. if (!t2)
  22676. if (_0_16_isSet)
  22677. t2 = _0_16;
  22678. else {
  22679. if (_0_8_isSet)
  22680. t2 = _0_8;
  22681. else {
  22682. _0_8 = _0_1._string0$_text;
  22683. t2 = _0_8;
  22684. _0_8_isSet = _0_8_isSet0;
  22685. }
  22686. _0_16 = "to-zero" === t2;
  22687. t2 = _0_16;
  22688. _0_16_isSet = true;
  22689. }
  22690. else
  22691. t2 = t3;
  22692. } else
  22693. t2 = t3;
  22694. } else
  22695. t2 = t3;
  22696. if (t2) {
  22697. if (_0_2_isSet)
  22698. t2 = _0_20;
  22699. else {
  22700. t2 = _0_2;
  22701. _0_20 = t2;
  22702. _0_2_isSet = true;
  22703. }
  22704. if (t2 != null)
  22705. if (_0_6_isSet)
  22706. t1 = _0_6;
  22707. else {
  22708. if (_0_5_isSet)
  22709. t1 = _0_50;
  22710. else {
  22711. t1 = _0_5;
  22712. _0_50 = t1;
  22713. _0_5_isSet = true;
  22714. }
  22715. _0_6 = t1 == null;
  22716. t1 = _0_6;
  22717. _0_6_isSet = true;
  22718. }
  22719. }
  22720. }
  22721. if (t1)
  22722. throw A.wrapException(A.SassScriptException$0(string$.If_str, _null));
  22723. t1 = false;
  22724. if (_0_1 instanceof A.SassString0) {
  22725. _0_8_isSet0 = true;
  22726. if (_0_10_isSet)
  22727. t2 = _0_10;
  22728. else {
  22729. if (_0_8_isSet)
  22730. t2 = _0_8;
  22731. else {
  22732. _0_8 = _0_1._string0$_text;
  22733. t2 = _0_8;
  22734. _0_8_isSet = _0_8_isSet0;
  22735. }
  22736. _0_10 = "nearest" === t2;
  22737. t2 = _0_10;
  22738. _0_10_isSet = true;
  22739. }
  22740. t3 = true;
  22741. if (!t2) {
  22742. if (_0_12_isSet)
  22743. t2 = _0_12;
  22744. else {
  22745. if (_0_8_isSet)
  22746. t2 = _0_8;
  22747. else {
  22748. _0_8 = _0_1._string0$_text;
  22749. t2 = _0_8;
  22750. _0_8_isSet = _0_8_isSet0;
  22751. }
  22752. _0_12 = "up" === t2;
  22753. t2 = _0_12;
  22754. _0_12_isSet = true;
  22755. }
  22756. if (!t2) {
  22757. if (_0_14_isSet)
  22758. t2 = _0_14;
  22759. else {
  22760. if (_0_8_isSet)
  22761. t2 = _0_8;
  22762. else {
  22763. _0_8 = _0_1._string0$_text;
  22764. t2 = _0_8;
  22765. _0_8_isSet = _0_8_isSet0;
  22766. }
  22767. _0_14 = "down" === t2;
  22768. t2 = _0_14;
  22769. _0_14_isSet = true;
  22770. }
  22771. if (!t2)
  22772. if (_0_16_isSet)
  22773. t2 = _0_16;
  22774. else {
  22775. if (_0_8_isSet)
  22776. t2 = _0_8;
  22777. else {
  22778. _0_8 = _0_1._string0$_text;
  22779. t2 = _0_8;
  22780. _0_8_isSet = _0_8_isSet0;
  22781. }
  22782. _0_16 = "to-zero" === t2;
  22783. t2 = _0_16;
  22784. _0_16_isSet = true;
  22785. }
  22786. else
  22787. t2 = t3;
  22788. } else
  22789. t2 = t3;
  22790. } else
  22791. t2 = t3;
  22792. if (t2) {
  22793. if (_0_4_isSet)
  22794. t2 = _0_4;
  22795. else {
  22796. if (_0_2_isSet)
  22797. t2 = _0_20;
  22798. else {
  22799. t2 = _0_2;
  22800. _0_20 = t2;
  22801. _0_2_isSet = true;
  22802. }
  22803. _0_4 = t2 == null;
  22804. t2 = _0_4;
  22805. _0_4_isSet = true;
  22806. }
  22807. if (t2)
  22808. if (_0_6_isSet)
  22809. t1 = _0_6;
  22810. else {
  22811. if (_0_5_isSet)
  22812. t1 = _0_50;
  22813. else {
  22814. t1 = _0_5;
  22815. _0_50 = t1;
  22816. _0_5_isSet = true;
  22817. }
  22818. _0_6 = t1 == null;
  22819. t1 = _0_6;
  22820. _0_6_isSet = true;
  22821. }
  22822. }
  22823. }
  22824. if (t1)
  22825. throw A.wrapException(A.SassScriptException$0(string$.Number, _null));
  22826. t1 = false;
  22827. if (_0_1 instanceof A.SassString0) {
  22828. if (_0_4_isSet)
  22829. t2 = _0_4;
  22830. else {
  22831. if (_0_2_isSet)
  22832. t2 = _0_20;
  22833. else {
  22834. t2 = _0_2;
  22835. _0_20 = t2;
  22836. _0_2_isSet = true;
  22837. }
  22838. _0_4 = t2 == null;
  22839. t2 = _0_4;
  22840. _0_4_isSet = true;
  22841. }
  22842. if (t2)
  22843. if (_0_6_isSet)
  22844. t1 = _0_6;
  22845. else {
  22846. if (_0_5_isSet)
  22847. t1 = _0_50;
  22848. else {
  22849. t1 = _0_5;
  22850. _0_50 = t1;
  22851. _0_5_isSet = true;
  22852. }
  22853. _0_6 = t1 == null;
  22854. t1 = _0_6;
  22855. _0_6_isSet = true;
  22856. }
  22857. rest = _0_1;
  22858. } else
  22859. rest = _null;
  22860. if (t1)
  22861. return new A.SassCalculation0(_s5_, A._setArrayType([rest], type$.JSArray_Object));
  22862. t1 = false;
  22863. if (_0_4_isSet)
  22864. t2 = _0_4;
  22865. else {
  22866. if (_0_2_isSet)
  22867. t2 = _0_20;
  22868. else {
  22869. t2 = _0_2;
  22870. _0_20 = t2;
  22871. _0_2_isSet = true;
  22872. }
  22873. _0_4 = t2 == null;
  22874. t2 = _0_4;
  22875. }
  22876. if (t2)
  22877. if (_0_6_isSet)
  22878. t1 = _0_6;
  22879. else {
  22880. if (_0_5_isSet)
  22881. t1 = _0_50;
  22882. else {
  22883. t1 = _0_5;
  22884. _0_50 = t1;
  22885. _0_5_isSet = true;
  22886. }
  22887. _0_6 = t1 == null;
  22888. t1 = _0_6;
  22889. _0_6_isSet = true;
  22890. }
  22891. if (t1)
  22892. throw A.wrapException(A.SassScriptException$0("Single argument " + A.S(_0_1) + " expected to be simplifiable.", _null));
  22893. step = _null;
  22894. t1 = false;
  22895. _0_2_isSet0 = true;
  22896. if (_0_2_isSet)
  22897. t2 = _0_20;
  22898. else {
  22899. t2 = _0_2;
  22900. _0_2_isSet = _0_2_isSet0;
  22901. _0_20 = t2;
  22902. }
  22903. if (t2 != null) {
  22904. if (_0_2_isSet)
  22905. step = _0_20;
  22906. else {
  22907. step = _0_2;
  22908. _0_2_isSet = _0_2_isSet0;
  22909. _0_20 = step;
  22910. }
  22911. if (step == null)
  22912. step = type$.Object._as(step);
  22913. if (_0_6_isSet)
  22914. t1 = _0_6;
  22915. else {
  22916. if (_0_5_isSet)
  22917. t1 = _0_50;
  22918. else {
  22919. t1 = _0_5;
  22920. _0_50 = t1;
  22921. _0_5_isSet = true;
  22922. }
  22923. _0_6 = t1 == null;
  22924. t1 = _0_6;
  22925. }
  22926. }
  22927. if (t1)
  22928. return new A.SassCalculation0(_s5_, A._setArrayType([_0_1, step], type$.JSArray_Object));
  22929. if (_0_1 instanceof A.SassString0) {
  22930. t1 = true;
  22931. if (_0_10_isSet)
  22932. t2 = _0_10;
  22933. else {
  22934. if (_0_8_isSet)
  22935. t2 = _0_8;
  22936. else {
  22937. _0_8 = _0_1._string0$_text;
  22938. t2 = _0_8;
  22939. _0_8_isSet = true;
  22940. }
  22941. _0_10 = "nearest" === t2;
  22942. t2 = _0_10;
  22943. }
  22944. if (!t2) {
  22945. if (_0_12_isSet)
  22946. t2 = _0_12;
  22947. else {
  22948. if (_0_8_isSet)
  22949. t2 = _0_8;
  22950. else {
  22951. _0_8 = _0_1._string0$_text;
  22952. t2 = _0_8;
  22953. _0_8_isSet = true;
  22954. }
  22955. _0_12 = "up" === t2;
  22956. t2 = _0_12;
  22957. }
  22958. if (!t2) {
  22959. if (_0_14_isSet)
  22960. t2 = _0_14;
  22961. else {
  22962. if (_0_8_isSet)
  22963. t2 = _0_8;
  22964. else {
  22965. _0_8 = _0_1._string0$_text;
  22966. t2 = _0_8;
  22967. _0_8_isSet = true;
  22968. }
  22969. _0_14 = "down" === t2;
  22970. t2 = _0_14;
  22971. }
  22972. if (!t2)
  22973. if (_0_16_isSet)
  22974. t1 = _0_16;
  22975. else {
  22976. if (_0_8_isSet)
  22977. t1 = _0_8;
  22978. else {
  22979. _0_8 = _0_1._string0$_text;
  22980. t1 = _0_8;
  22981. }
  22982. _0_16 = "to-zero" === t1;
  22983. t1 = _0_16;
  22984. }
  22985. }
  22986. }
  22987. } else
  22988. t1 = false;
  22989. if (!t1)
  22990. if (_0_1 instanceof A.SassString0)
  22991. t1 = _0_1.get$isVar();
  22992. else
  22993. t1 = false;
  22994. else
  22995. t1 = true;
  22996. number = _null;
  22997. step = _null;
  22998. t2 = false;
  22999. if (t1) {
  23000. _0_2_isSet0 = true;
  23001. _0_5_isSet0 = true;
  23002. type$.SassString_2._as(_0_1);
  23003. if (_0_2_isSet)
  23004. t1 = _0_20;
  23005. else {
  23006. t1 = _0_2;
  23007. _0_2_isSet = _0_2_isSet0;
  23008. _0_20 = t1;
  23009. }
  23010. if (t1 != null) {
  23011. if (_0_2_isSet)
  23012. number = _0_20;
  23013. else {
  23014. number = _0_2;
  23015. _0_2_isSet = _0_2_isSet0;
  23016. _0_20 = number;
  23017. }
  23018. if (number == null)
  23019. number = type$.Object._as(number);
  23020. if (_0_5_isSet)
  23021. t1 = _0_50;
  23022. else {
  23023. t1 = _0_5;
  23024. _0_5_isSet = _0_5_isSet0;
  23025. _0_50 = t1;
  23026. }
  23027. t1 = t1 != null;
  23028. if (t1) {
  23029. if (_0_5_isSet)
  23030. step = _0_50;
  23031. else {
  23032. step = _0_5;
  23033. _0_5_isSet = _0_5_isSet0;
  23034. _0_50 = step;
  23035. }
  23036. if (step == null)
  23037. step = type$.Object._as(step);
  23038. }
  23039. } else
  23040. t1 = t2;
  23041. strategy = _0_1;
  23042. } else {
  23043. t1 = t2;
  23044. strategy = _null;
  23045. }
  23046. if (t1)
  23047. return new A.SassCalculation0(_s5_, A._setArrayType([strategy, number, step], type$.JSArray_Object));
  23048. t1 = false;
  23049. if ((_0_2_isSet ? _0_20 : _0_2) != null)
  23050. t1 = (_0_5_isSet ? _0_50 : _0_5) != null;
  23051. if (t1)
  23052. throw A.wrapException(A.SassScriptException$0(A.S(strategyOrNumber) + string$.x20must_b, _null));
  23053. t1 = A.SassScriptException$0("Invalid parameters.", _null);
  23054. throw A.wrapException(t1);
  23055. },
  23056. SassCalculation_operateInternal0(operator, left, right, inLegacySassFunction, simplify) {
  23057. var t1;
  23058. if (!simplify)
  23059. return new A.CalculationOperation0(operator, left, right);
  23060. left = A.SassCalculation__simplify0(left);
  23061. right = A.SassCalculation__simplify0(right);
  23062. if (B.CalculationOperator_g2q0 === operator || B.CalculationOperator_CxF0 === operator) {
  23063. t1 = false;
  23064. if (left instanceof A.SassNumber0)
  23065. if (right instanceof A.SassNumber0)
  23066. t1 = inLegacySassFunction ? left.isComparableTo$1(right) : left.hasCompatibleUnits$1(right);
  23067. if (t1)
  23068. return operator === B.CalculationOperator_g2q0 ? left.plus$1(right) : left.minus$1(right);
  23069. A.SassCalculation__verifyCompatibleNumbers0(A._setArrayType([left, right], type$.JSArray_Object));
  23070. if (right instanceof A.SassNumber0) {
  23071. t1 = right._number1$_value;
  23072. t1 = t1 < 0 && !A.fuzzyEquals0(t1, 0);
  23073. } else
  23074. t1 = false;
  23075. if (t1) {
  23076. right = right.times$1(A.SassNumber_SassNumber0(-1, null));
  23077. operator = operator === B.CalculationOperator_g2q0 ? B.CalculationOperator_CxF0 : B.CalculationOperator_g2q0;
  23078. }
  23079. return new A.CalculationOperation0(operator, left, right);
  23080. } else if (left instanceof A.SassNumber0 && right instanceof A.SassNumber0)
  23081. return operator === B.CalculationOperator_1710 ? left.times$1(right) : left.dividedBy$1(right);
  23082. else
  23083. return new A.CalculationOperation0(operator, left, right);
  23084. },
  23085. SassCalculation__roundWithStep0(strategy, number, step) {
  23086. var _0_2, t1, _0_6, _0_8_isSet, _0_8, _0_9_isSet, _0_9, _0_11, _0_13, stepWithNumberUnit, t2, _null = null;
  23087. if (!A.LinkedHashSet_LinkedHashSet$_literal(["nearest", "up", "down", "to-zero"], type$.String).contains$1(0, strategy))
  23088. throw A.wrapException(A.ArgumentError$(strategy + string$.x20must_b, _null));
  23089. _0_2 = number._number1$_value;
  23090. if (_0_2 == 1 / 0 || _0_2 == -1 / 0) {
  23091. t1 = step._number1$_value;
  23092. t1 = t1 == 1 / 0 || t1 == -1 / 0;
  23093. } else
  23094. t1 = false;
  23095. if (!t1) {
  23096. t1 = step._number1$_value;
  23097. t1 = t1 === 0 || isNaN(_0_2) || isNaN(t1);
  23098. } else
  23099. t1 = true;
  23100. if (t1) {
  23101. t1 = number.get$numeratorUnits(number);
  23102. return A.SassNumber_SassNumber$withUnits0(0 / 0, number.get$denominatorUnits(number), t1);
  23103. }
  23104. if (_0_2 == 1 / 0 || _0_2 == -1 / 0)
  23105. return number;
  23106. t1 = step._number1$_value;
  23107. if (t1 == 1 / 0 || t1 == -1 / 0) {
  23108. $label0$0: {
  23109. if (0 === _0_2) {
  23110. t1 = number;
  23111. break $label0$0;
  23112. }
  23113. _0_6 = "nearest" === strategy;
  23114. t1 = _0_6;
  23115. _0_8_isSet = !t1;
  23116. _0_8 = _null;
  23117. if (_0_8_isSet) {
  23118. _0_8 = "to-zero" === strategy;
  23119. _0_9_isSet = _0_8;
  23120. } else
  23121. _0_9_isSet = true;
  23122. _0_9 = _null;
  23123. if (_0_9_isSet) {
  23124. _0_9 = _0_2 > 0;
  23125. t1 = _0_9;
  23126. } else
  23127. t1 = false;
  23128. if (t1) {
  23129. t1 = number.get$numeratorUnits(number);
  23130. t1 = A.SassNumber_SassNumber$withUnits0(0, number.get$denominatorUnits(number), t1);
  23131. break $label0$0;
  23132. }
  23133. if (!_0_6)
  23134. if (_0_8_isSet)
  23135. t1 = _0_8;
  23136. else {
  23137. _0_8 = "to-zero" === strategy;
  23138. t1 = _0_8;
  23139. }
  23140. else
  23141. t1 = true;
  23142. if (t1) {
  23143. t1 = number.get$numeratorUnits(number);
  23144. t1 = A.SassNumber_SassNumber$withUnits0(-0.0, number.get$denominatorUnits(number), t1);
  23145. break $label0$0;
  23146. }
  23147. _0_11 = "up" === strategy;
  23148. t1 = _0_11;
  23149. if (t1)
  23150. if (_0_9_isSet)
  23151. t1 = _0_9;
  23152. else {
  23153. _0_9 = _0_2 > 0;
  23154. t1 = _0_9;
  23155. }
  23156. else
  23157. t1 = false;
  23158. if (t1) {
  23159. t1 = number.get$numeratorUnits(number);
  23160. t1 = A.SassNumber_SassNumber$withUnits0(1 / 0, number.get$denominatorUnits(number), t1);
  23161. break $label0$0;
  23162. }
  23163. if (_0_11) {
  23164. t1 = number.get$numeratorUnits(number);
  23165. t1 = A.SassNumber_SassNumber$withUnits0(-0.0, number.get$denominatorUnits(number), t1);
  23166. break $label0$0;
  23167. }
  23168. _0_13 = "down" === strategy;
  23169. t1 = _0_13;
  23170. if (t1)
  23171. t1 = _0_2 < 0;
  23172. else
  23173. t1 = false;
  23174. if (t1) {
  23175. t1 = number.get$numeratorUnits(number);
  23176. t1 = A.SassNumber_SassNumber$withUnits0(-1 / 0, number.get$denominatorUnits(number), t1);
  23177. break $label0$0;
  23178. }
  23179. if (_0_13) {
  23180. t1 = number.get$numeratorUnits(number);
  23181. t1 = A.SassNumber_SassNumber$withUnits0(0, number.get$denominatorUnits(number), t1);
  23182. break $label0$0;
  23183. }
  23184. t1 = A.throwExpression(A.UnsupportedError$("Invalid argument: " + strategy + "."));
  23185. }
  23186. return t1;
  23187. }
  23188. stepWithNumberUnit = step.convertValueToMatch$1(number);
  23189. $label1$1: {
  23190. if ("nearest" === strategy) {
  23191. t1 = B.JSNumber_methods.round$0(_0_2 / stepWithNumberUnit);
  23192. t2 = number.get$numeratorUnits(number);
  23193. t2 = A.SassNumber_SassNumber$withUnits0(t1 * stepWithNumberUnit, number.get$denominatorUnits(number), t2);
  23194. t1 = t2;
  23195. break $label1$1;
  23196. }
  23197. if ("up" === strategy) {
  23198. t2 = _0_2 / stepWithNumberUnit;
  23199. t1 = t1 < 0 ? B.JSNumber_methods.floor$0(t2) : B.JSNumber_methods.ceil$0(t2);
  23200. t2 = number.get$numeratorUnits(number);
  23201. t2 = A.SassNumber_SassNumber$withUnits0(t1 * stepWithNumberUnit, number.get$denominatorUnits(number), t2);
  23202. t1 = t2;
  23203. break $label1$1;
  23204. }
  23205. if ("down" === strategy) {
  23206. t2 = _0_2 / stepWithNumberUnit;
  23207. t1 = t1 < 0 ? B.JSNumber_methods.ceil$0(t2) : B.JSNumber_methods.floor$0(t2);
  23208. t2 = number.get$numeratorUnits(number);
  23209. t2 = A.SassNumber_SassNumber$withUnits0(t1 * stepWithNumberUnit, number.get$denominatorUnits(number), t2);
  23210. t1 = t2;
  23211. break $label1$1;
  23212. }
  23213. if ("to-zero" === strategy) {
  23214. t1 = _0_2 / stepWithNumberUnit;
  23215. if (_0_2 < 0) {
  23216. t1 = B.JSNumber_methods.ceil$0(t1);
  23217. t2 = number.get$numeratorUnits(number);
  23218. t2 = A.SassNumber_SassNumber$withUnits0(t1 * stepWithNumberUnit, number.get$denominatorUnits(number), t2);
  23219. t1 = t2;
  23220. } else {
  23221. t1 = B.JSNumber_methods.floor$0(t1);
  23222. t2 = number.get$numeratorUnits(number);
  23223. t2 = A.SassNumber_SassNumber$withUnits0(t1 * stepWithNumberUnit, number.get$denominatorUnits(number), t2);
  23224. t1 = t2;
  23225. }
  23226. break $label1$1;
  23227. }
  23228. t1 = number.get$numeratorUnits(number);
  23229. t1 = A.SassNumber_SassNumber$withUnits0(0 / 0, number.get$denominatorUnits(number), t1);
  23230. break $label1$1;
  23231. }
  23232. return t1;
  23233. },
  23234. SassCalculation__simplify0(arg) {
  23235. var t1, t2, _0_11_isSet, _0_15, _0_12, _0_16_isSet, text, _0_11, _0_16, _0_12_isSet, _0_15_isSet, value, _null = null,
  23236. _s32_ = " can't be used in a calculation.";
  23237. $label0$0: {
  23238. if (arg instanceof A.SassNumber0 || arg instanceof A.CalculationOperation0) {
  23239. t1 = arg;
  23240. break $label0$0;
  23241. }
  23242. if (arg instanceof A.CalculationInterpolation) {
  23243. t1 = new A.SassString0("(" + arg._calculation0$_value + ")", false);
  23244. break $label0$0;
  23245. }
  23246. t1 = arg instanceof A.SassString0;
  23247. t2 = _null;
  23248. if (t1 && !arg._string0$_hasQuotes) {
  23249. t1 = arg;
  23250. break $label0$0;
  23251. }
  23252. if (t1)
  23253. A.throwExpression(A.SassScriptException$0("Quoted string " + arg.toString$0(0) + _s32_, _null));
  23254. _0_11_isSet = arg instanceof A.SassCalculation0;
  23255. _0_15 = _null;
  23256. _0_12 = _null;
  23257. _0_16_isSet = false;
  23258. text = _null;
  23259. t1 = false;
  23260. if (_0_11_isSet) {
  23261. _0_11 = "calc" === arg.name;
  23262. if (_0_11) {
  23263. _0_12 = arg.$arguments;
  23264. _0_15 = _0_12.length === 1;
  23265. _0_16_isSet = _0_15;
  23266. if (_0_16_isSet) {
  23267. _0_16 = _0_12[0];
  23268. t2 = _0_16;
  23269. if (t2 instanceof A.SassString0) {
  23270. type$.SassString_2._as(_0_16);
  23271. if (!_0_16._string0$_hasQuotes) {
  23272. text = _0_16._string0$_text;
  23273. t1 = A.SassCalculation__needsParentheses0(text);
  23274. }
  23275. }
  23276. } else
  23277. _0_16 = t2;
  23278. } else
  23279. _0_16 = t2;
  23280. _0_12_isSet = _0_11;
  23281. _0_15_isSet = _0_12_isSet;
  23282. } else {
  23283. _0_16 = t2;
  23284. _0_11 = _null;
  23285. _0_15_isSet = false;
  23286. _0_12_isSet = false;
  23287. }
  23288. if (t1) {
  23289. t1 = new A.SassString0("(" + A.S(text) + ")", false);
  23290. break $label0$0;
  23291. }
  23292. t1 = false;
  23293. if (_0_11_isSet)
  23294. if (_0_11)
  23295. if (_0_15_isSet)
  23296. t1 = _0_15;
  23297. else {
  23298. if (_0_12_isSet)
  23299. t1 = _0_12;
  23300. else {
  23301. _0_12 = arg.$arguments;
  23302. t1 = _0_12;
  23303. _0_12_isSet = true;
  23304. }
  23305. _0_15 = t1.length === 1;
  23306. t1 = _0_15;
  23307. }
  23308. if (t1) {
  23309. if (_0_16_isSet)
  23310. value = _0_16;
  23311. else {
  23312. _0_16 = (_0_12_isSet ? _0_12 : arg.$arguments)[0];
  23313. value = _0_16;
  23314. }
  23315. t1 = value;
  23316. break $label0$0;
  23317. }
  23318. if (_0_11_isSet) {
  23319. t1 = arg;
  23320. break $label0$0;
  23321. }
  23322. if (arg instanceof A.Value0)
  23323. A.throwExpression(A.SassScriptException$0("Value " + arg.toString$0(0) + _s32_, _null));
  23324. t1 = A.throwExpression(A.ArgumentError$("Unexpected calculation argument " + A.S(arg) + ".", _null));
  23325. }
  23326. return t1;
  23327. },
  23328. SassCalculation__needsParentheses0(text) {
  23329. var t1, couldBeVar, second, third, fourth, i, t2,
  23330. first = text.charCodeAt(0);
  23331. if (first === 32 || first === 9 || first === 10 || first === 13 || first === 12 || first === 47 || first === 42)
  23332. return true;
  23333. t1 = text.length;
  23334. couldBeVar = t1 >= 4 && A.characterEqualsIgnoreCase0(first, 118);
  23335. if (t1 < 2)
  23336. return false;
  23337. second = text.charCodeAt(1);
  23338. if (second === 32 || second === 9 || second === 10 || second === 13 || second === 12 || second === 47 || second === 42)
  23339. return true;
  23340. couldBeVar = couldBeVar && A.characterEqualsIgnoreCase0(second, 97);
  23341. if (t1 < 3)
  23342. return false;
  23343. third = text.charCodeAt(2);
  23344. if (third === 32 || third === 9 || third === 10 || third === 13 || third === 12 || third === 47 || third === 42)
  23345. return true;
  23346. couldBeVar = couldBeVar && A.characterEqualsIgnoreCase0(third, 114);
  23347. if (t1 < 4)
  23348. return false;
  23349. fourth = text.charCodeAt(3);
  23350. if (couldBeVar && fourth === 40)
  23351. return true;
  23352. if (fourth === 32 || fourth === 9 || fourth === 10 || fourth === 13 || fourth === 12 || fourth === 47 || fourth === 42)
  23353. return true;
  23354. for (i = 4; i < t1; ++i) {
  23355. t2 = text.charCodeAt(i);
  23356. if (t2 === 32 || t2 === 9 || t2 === 10 || t2 === 13 || t2 === 12 || t2 === 47 || t2 === 42)
  23357. return true;
  23358. }
  23359. return false;
  23360. },
  23361. SassCalculation__verifyCompatibleNumbers0(args) {
  23362. var t1, _i, t2, arg, i, number1, j, number2;
  23363. for (t1 = args.length, _i = 0; t2 = args.length, _i < t2; args.length === t1 || (0, A.throwConcurrentModificationError)(args), ++_i) {
  23364. arg = args[_i];
  23365. if (arg instanceof A.SassNumber0 && arg.get$hasComplexUnits())
  23366. throw A.wrapException(A.SassScriptException$0("Number " + A.S(arg) + " isn't compatible with CSS calculations.", null));
  23367. }
  23368. for (t1 = t2, i = 0; i < t1 - 1; ++i) {
  23369. number1 = args[i];
  23370. if (!(number1 instanceof A.SassNumber0))
  23371. continue;
  23372. for (j = i + 1; t1 = args.length, j < t1; ++j) {
  23373. number2 = args[j];
  23374. if (!(number2 instanceof A.SassNumber0))
  23375. continue;
  23376. if (number1.hasPossiblyCompatibleUnits$1(number2))
  23377. continue;
  23378. throw A.wrapException(A.SassScriptException$0(number1.toString$0(0) + " and " + number2.toString$0(0) + " are incompatible.", null));
  23379. }
  23380. }
  23381. },
  23382. SassCalculation__verifyLength0(args, expectedLength) {
  23383. var t1;
  23384. if (args.length === expectedLength)
  23385. return;
  23386. if (B.JSArray_methods.any$1(args, new A.SassCalculation__verifyLength_closure0()))
  23387. return;
  23388. t1 = args.length;
  23389. throw A.wrapException(A.SassScriptException$0("" + expectedLength + " arguments required, but only " + t1 + " " + A.pluralize0("was", t1, "were") + " passed.", null));
  23390. },
  23391. SassCalculation__singleArgument0($name, argument, mathFunc, forbidUnits) {
  23392. argument = A.SassCalculation__simplify0(argument);
  23393. if (!(argument instanceof A.SassNumber0))
  23394. return new A.SassCalculation0($name, A._setArrayType([argument], type$.JSArray_Object));
  23395. if (forbidUnits)
  23396. argument.assertNoUnits$0();
  23397. return mathFunc.call$1(argument);
  23398. },
  23399. SassCalculation0: function SassCalculation0(t0, t1) {
  23400. this.name = t0;
  23401. this.$arguments = t1;
  23402. },
  23403. SassCalculation__verifyLength_closure0: function SassCalculation__verifyLength_closure0() {
  23404. },
  23405. CalculationOperation0: function CalculationOperation0(t0, t1, t2) {
  23406. this._calculation0$_operator = t0;
  23407. this._calculation0$_left = t1;
  23408. this._calculation0$_right = t2;
  23409. },
  23410. CalculationOperator0: function CalculationOperator0(t0, t1, t2, t3) {
  23411. var _ = this;
  23412. _.name = t0;
  23413. _.operator = t1;
  23414. _.precedence = t2;
  23415. _._name = t3;
  23416. },
  23417. CalculationInterpolation: function CalculationInterpolation(t0) {
  23418. this._calculation0$_value = t0;
  23419. },
  23420. CallableDeclaration0: function CallableDeclaration0() {
  23421. },
  23422. updateCanonicalizeContextPrototype() {
  23423. var t1 = type$.JSClass._as(new A.CanonicalizeContext0(false, null).constructor);
  23424. A.LinkedHashMap_LinkedHashMap$_literal(["fromImport", new A.updateCanonicalizeContextPrototype_closure(), "containingUrl", new A.updateCanonicalizeContextPrototype_closure0()], type$.String, type$.Function).forEach$1(0, A.JSClassExtension_get_defineGetter(t1));
  23425. return null;
  23426. },
  23427. updateCanonicalizeContextPrototype_closure: function updateCanonicalizeContextPrototype_closure() {
  23428. },
  23429. updateCanonicalizeContextPrototype_closure0: function updateCanonicalizeContextPrototype_closure0() {
  23430. },
  23431. CanonicalizeContext0: function CanonicalizeContext0(t0, t1) {
  23432. this._canonicalize_context$_fromImport = t0;
  23433. this._canonicalize_context$_containingUrl = t1;
  23434. this._canonicalize_context$_wasContainingUrlAccessed = false;
  23435. },
  23436. ColorChannel0: function ColorChannel0(t0, t1, t2) {
  23437. this.name = t0;
  23438. this.isPolarAngle = t1;
  23439. this.associatedUnit = t2;
  23440. },
  23441. LinearChannel0: function LinearChannel0(t0, t1, t2, t3, t4, t5, t6, t7) {
  23442. var _ = this;
  23443. _.min = t0;
  23444. _.max = t1;
  23445. _.requiresPercent = t2;
  23446. _.lowerClamped = t3;
  23447. _.upperClamped = t4;
  23448. _.name = t5;
  23449. _.isPolarAngle = t6;
  23450. _.associatedUnit = t7;
  23451. },
  23452. Chokidar0: function Chokidar0() {
  23453. },
  23454. ChokidarOptions0: function ChokidarOptions0() {
  23455. },
  23456. ChokidarWatcher0: function ChokidarWatcher0() {
  23457. },
  23458. ClassSelector0: function ClassSelector0(t0, t1) {
  23459. this.name = t0;
  23460. this.span = t1;
  23461. },
  23462. ClipGamutMap0: function ClipGamutMap0(t0) {
  23463. this.name = t0;
  23464. },
  23465. cloneCssStylesheet0(stylesheet, extensionStore) {
  23466. var _0_0 = extensionStore.clone$0();
  23467. return new A._Record_2(new A._CloneCssVisitor0(_0_0._1)._clone_css$_visitChildren$2(A.ModifiableCssStylesheet$0(stylesheet.get$span(stylesheet)), stylesheet), _0_0._0);
  23468. },
  23469. _CloneCssVisitor0: function _CloneCssVisitor0(t0) {
  23470. this._clone_css$_oldToNewSelectors = t0;
  23471. },
  23472. ColorExpression0: function ColorExpression0(t0, t1) {
  23473. this.value = t0;
  23474. this.span = t1;
  23475. },
  23476. _invert0($arguments, global) {
  23477. var t2, color, rgb, channel2, space, weight, inSpace, t3, _1_9, channel0, channel1, t4, _s6_ = "weight", _s5_ = "space",
  23478. t1 = J.getInterceptor$asx($arguments),
  23479. weightNumber = t1.$index($arguments, 1).assertNumber$1(_s6_);
  23480. if (!(t1.$index($arguments, 0) instanceof A.SassNumber0))
  23481. t2 = global && t1.$index($arguments, 0).get$isSpecialNumber();
  23482. else
  23483. t2 = true;
  23484. if (t2) {
  23485. if (weightNumber._number1$_value !== 100 || !weightNumber.hasUnit$1("%"))
  23486. throw A.wrapException(string$.Only_oa);
  23487. return A._functionString0("invert", t1.take$1($arguments, 1));
  23488. }
  23489. color = t1.$index($arguments, 0).assertColor$1("color");
  23490. if (J.$eq$(t1.$index($arguments, 2), B.C__SassNull0)) {
  23491. t1 = color._color0$_space;
  23492. if (!t1.get$isLegacyInternal())
  23493. throw A.wrapException(A.SassScriptException$0(string$.To_usei + color.toString$0(0) + ", you must provide a $space.", "color"));
  23494. A._checkPercent0(weightNumber, _s6_);
  23495. rgb = color.toSpace$1(B.RgbColorSpace_mlz0);
  23496. channel2 = B.LinearChannel_Npb0;
  23497. return A._mixLegacy0(A.SassColor_SassColor$rgbInternal0(A._invertChannel0(rgb, B.LinearChannel_bdu0, rgb.channel0OrNull), A._invertChannel0(rgb, B.LinearChannel_kUZ0, rgb.channel1OrNull), A._invertChannel0(rgb, channel2, rgb.channel2OrNull), color.alphaOrNull, null), color, weightNumber).toSpace$1(t1);
  23498. }
  23499. t1 = t1.$index($arguments, 2).assertString$1(_s5_);
  23500. t1.assertUnquoted$1(_s5_);
  23501. space = A.ColorSpace_fromName0(t1._string0$_text, _s5_);
  23502. weight = weightNumber.valueInRangeWithUnit$4(0, 100, _s6_, "%") / 100;
  23503. if (A.fuzzyEquals0(weight, 0))
  23504. return color;
  23505. inSpace = color.toSpace$1(space);
  23506. $label0$0: {
  23507. if (B.HwbColorSpace_06z0 === space) {
  23508. t1 = A._invertChannel0(inSpace, space._space$_channels[0], inSpace.channel0OrNull);
  23509. t2 = inSpace.alphaOrNull;
  23510. if (t2 == null)
  23511. t2 = 0;
  23512. t2 = A.SassColor_SassColor$hwb0(t1, inSpace.channel2OrNull, inSpace.channel1OrNull, t2);
  23513. t1 = t2;
  23514. break $label0$0;
  23515. }
  23516. if (B.HslColorSpace_gsm0 === space || B.LchColorSpace_wv80 === space || B.OklchColorSpace_li80 === space) {
  23517. t1 = space._space$_channels;
  23518. t2 = A._invertChannel0(inSpace, t1[0], inSpace.channel0OrNull);
  23519. t1 = A._invertChannel0(inSpace, t1[2], inSpace.channel2OrNull);
  23520. t3 = inSpace.alphaOrNull;
  23521. if (t3 == null)
  23522. t3 = 0;
  23523. t3 = A.SassColor_SassColor$forSpaceInternal0(space, t2, inSpace.channel1OrNull, t1, t3);
  23524. t1 = t3;
  23525. break $label0$0;
  23526. }
  23527. _1_9 = space._space$_channels;
  23528. channel0 = _1_9[0];
  23529. channel1 = _1_9[1];
  23530. channel2 = _1_9[2];
  23531. t1 = A._invertChannel0(inSpace, channel0, inSpace.channel0OrNull);
  23532. t2 = A._invertChannel0(inSpace, channel1, inSpace.channel1OrNull);
  23533. t3 = A._invertChannel0(inSpace, channel2, inSpace.channel2OrNull);
  23534. t4 = inSpace.alphaOrNull;
  23535. t1 = A.SassColor_SassColor$forSpaceInternal0(space, t1, t2, t3, t4 == null ? 0 : t4);
  23536. break $label0$0;
  23537. }
  23538. return A.fuzzyEquals0(weight, 1) ? t1.toSpace$2$legacyMissing(color._color0$_space, false) : color.interpolate$4$legacyMissing$weight(t1, A.InterpolationMethod$0(space, null), false, 1 - weight);
  23539. },
  23540. _invertChannel0(color, channel, value) {
  23541. var _0_2_isSet, _0_2, t1;
  23542. if (value == null)
  23543. A._missingChannelError0(color, channel.name);
  23544. $label0$0: {
  23545. _0_2_isSet = channel instanceof A.LinearChannel0;
  23546. if (_0_2_isSet) {
  23547. _0_2 = channel.min;
  23548. t1 = _0_2 < 0;
  23549. } else {
  23550. _0_2 = null;
  23551. t1 = false;
  23552. }
  23553. if (t1) {
  23554. t1 = -value;
  23555. break $label0$0;
  23556. }
  23557. if (_0_2_isSet)
  23558. t1 = 0 === _0_2;
  23559. else
  23560. t1 = false;
  23561. if (t1) {
  23562. t1 = channel.max - value;
  23563. break $label0$0;
  23564. }
  23565. if (channel.isPolarAngle) {
  23566. t1 = B.JSNumber_methods.$mod(value + 180, 360);
  23567. break $label0$0;
  23568. }
  23569. t1 = A.throwExpression(A.UnsupportedError$("Unknown channel " + channel.toString$0(0) + "."));
  23570. }
  23571. return t1;
  23572. },
  23573. _grayscale0(colorArg) {
  23574. var hsl, t2, oklch,
  23575. color = colorArg.assertColor$1("color"),
  23576. t1 = color._color0$_space;
  23577. if (t1.get$isLegacyInternal()) {
  23578. hsl = color.toSpace$1(B.HslColorSpace_gsm0);
  23579. t2 = hsl.alphaOrNull;
  23580. if (t2 == null)
  23581. t2 = 0;
  23582. return A.SassColor_SassColor$hsl0(hsl.channel0OrNull, 0, hsl.channel2OrNull, t2).toSpace$2$legacyMissing(t1, false);
  23583. } else {
  23584. oklch = color.toSpace$1(B.OklchColorSpace_li80);
  23585. t2 = oklch.alphaOrNull;
  23586. if (t2 == null)
  23587. t2 = 0;
  23588. return A.SassColor_SassColor$forSpaceInternal0(B.OklchColorSpace_li80, oklch.channel0OrNull, 0, oklch.channel2OrNull, t2).toSpace$1(t1);
  23589. }
  23590. },
  23591. _updateComponents0($arguments, adjust, change, scale) {
  23592. var t2, t3, keywords, originalColor, spaceKeyword, alphaArg, color, channelArgs, channelInfo, t4, value, channelIndex, result, i, alphaNumber, _null = null, _s5_ = "space",
  23593. t1 = J.getInterceptor$asx($arguments),
  23594. argumentList = type$.SassArgumentList_2._as(t1.$index($arguments, 1));
  23595. if (argumentList._list1$_contents.length !== 0)
  23596. throw A.wrapException(A.SassScriptException$0(string$.Only_op, _null));
  23597. argumentList._argument_list$_wereKeywordsAccessed = true;
  23598. t2 = type$.String;
  23599. t3 = type$.Value_2;
  23600. keywords = A.LinkedHashMap_LinkedHashMap$of(argumentList._argument_list$_keywords, t2, t3);
  23601. originalColor = t1.$index($arguments, 0).assertColor$1("color");
  23602. t1 = keywords.remove$1(0, _s5_);
  23603. spaceKeyword = t1 == null ? _null : t1.assertString$1(_s5_);
  23604. if (spaceKeyword == null)
  23605. spaceKeyword = _null;
  23606. else
  23607. spaceKeyword.assertUnquoted$1(_s5_);
  23608. alphaArg = keywords.remove$1(0, "alpha");
  23609. t1 = spaceKeyword == null;
  23610. if (t1 && originalColor._color0$_space.get$isLegacyInternal() && keywords.__js_helper$_length !== 0) {
  23611. t1 = A.NullableExtension_andThen0(A._sniffLegacyColorSpace0(keywords), new A._updateComponents_closure1(originalColor));
  23612. color = t1 == null ? originalColor : t1;
  23613. } else
  23614. color = A._colorInSpace0(originalColor, t1 ? B.C__SassNull0 : spaceKeyword, true);
  23615. channelArgs = A.List_List$filled(color.get$channels().length, _null, false, type$.nullable_Value_2);
  23616. t1 = color._color0$_space;
  23617. channelInfo = t1._space$_channels;
  23618. for (t2 = A.MapExtensions_get_pairs0(keywords, t2, t3), t2 = t2.get$iterator(t2); t2.moveNext$0();) {
  23619. t3 = {};
  23620. t4 = t2.get$current(t2);
  23621. t3.name = null;
  23622. t3.name = t4._0;
  23623. value = t4._1;
  23624. channelIndex = B.JSArray_methods.indexWhere$1(channelInfo, new A._updateComponents_closure2(t3));
  23625. if (channelIndex === -1)
  23626. throw A.wrapException(A.SassScriptException$0("Color space " + t1.toString$0(0) + " doesn't have a channel with this name.", t3.name));
  23627. channelArgs[channelIndex] = value;
  23628. }
  23629. if (change)
  23630. result = A._changeColor0(color, channelArgs, alphaArg);
  23631. else {
  23632. t2 = A._setArrayType([], type$.JSArray_nullable_SassNumber_2);
  23633. for (i = 0; i < 3; ++i) {
  23634. t3 = channelArgs[i];
  23635. t2.push(t3 == null ? _null : t3.assertNumber$1(channelInfo[i].name));
  23636. }
  23637. alphaNumber = alphaArg == null ? _null : alphaArg.assertNumber$1("alpha");
  23638. result = scale ? A.SassColor_SassColor$forSpaceInternal0(t1, A._scaleChannel0(color, channelInfo[0], color.channel0OrNull, t2[0]), A._scaleChannel0(color, channelInfo[1], color.channel1OrNull, t2[1]), A._scaleChannel0(color, channelInfo[2], color.channel2OrNull, t2[2]), A._scaleChannel0(color, B.LinearChannel_omH0, color.alphaOrNull, alphaNumber)) : A._adjustColor0(color, t2, alphaNumber);
  23639. }
  23640. return result.toSpace$2$legacyMissing(originalColor._color0$_space, false);
  23641. },
  23642. _changeColor0(color, channelArgs, alphaArg) {
  23643. var t4, _s5_ = "alpha",
  23644. t1 = A._channelForChange0(channelArgs[0], color, 0),
  23645. t2 = A._channelForChange0(channelArgs[1], color, 1),
  23646. t3 = A._channelForChange0(channelArgs[2], color, 2);
  23647. $label0$0: {
  23648. if (alphaArg == null) {
  23649. t4 = color.alphaOrNull;
  23650. if (t4 == null)
  23651. t4 = 0;
  23652. break $label0$0;
  23653. }
  23654. t4 = A._isNone0(alphaArg);
  23655. if (t4) {
  23656. t4 = null;
  23657. break $label0$0;
  23658. }
  23659. t4 = alphaArg instanceof A.SassNumber0;
  23660. if (t4 && !alphaArg.get$hasUnits()) {
  23661. t4 = alphaArg.valueInRange$3(0, 1, _s5_);
  23662. break $label0$0;
  23663. }
  23664. if (t4 && alphaArg.hasUnit$1("%")) {
  23665. t4 = alphaArg.valueInRangeWithUnit$4(0, 100, _s5_, "%") / 100;
  23666. break $label0$0;
  23667. }
  23668. if (t4) {
  23669. t4 = new A._changeColor_closure0(alphaArg).call$0();
  23670. break $label0$0;
  23671. }
  23672. t4 = A.throwExpression(A.SassScriptException$0(alphaArg.toString$0(0) + ' is not a number or unquoted "none".', _s5_));
  23673. }
  23674. return A._colorFromChannels0(color._color0$_space, t1, t2, t3, t4, false, false);
  23675. },
  23676. _channelForChange0(channelArg, color, channel) {
  23677. var _0_0, t1, t2;
  23678. if (channelArg == null) {
  23679. _0_0 = color.get$channelsOrNull()[channel];
  23680. $label0$0: {
  23681. if (_0_0 != null) {
  23682. t1 = color._color0$_space;
  23683. t2 = A.SassNumber_SassNumber0(_0_0, (t1 === B.HslColorSpace_gsm0 || t1 === B.HwbColorSpace_06z0) && channel > 0 ? "%" : null);
  23684. t1 = t2;
  23685. break $label0$0;
  23686. }
  23687. t1 = null;
  23688. break $label0$0;
  23689. }
  23690. return t1;
  23691. }
  23692. if (A._isNone0(channelArg))
  23693. return null;
  23694. if (channelArg instanceof A.SassNumber0)
  23695. return channelArg;
  23696. throw A.wrapException(A.SassScriptException$0(channelArg.toString$0(0) + ' is not a number or unquoted "none".', color._color0$_space._space$_channels[channel].name));
  23697. },
  23698. _scaleChannel0(color, channel, oldValue, factorArg) {
  23699. var t1, factor;
  23700. if (factorArg == null)
  23701. return oldValue;
  23702. if (!(channel instanceof A.LinearChannel0))
  23703. throw A.wrapException(A.SassScriptException$0("Channel isn't scalable.", channel.name));
  23704. if (oldValue == null)
  23705. A._missingChannelError0(color, channel.name);
  23706. t1 = channel.name;
  23707. factorArg.assertUnit$2("%", t1);
  23708. factor = factorArg.valueInRangeWithUnit$4(-100, 100, t1, "%") / 100;
  23709. $label0$0: {
  23710. if (0 === factor) {
  23711. t1 = oldValue;
  23712. break $label0$0;
  23713. }
  23714. if (factor > 0) {
  23715. t1 = channel.max;
  23716. t1 = oldValue >= t1 ? oldValue : oldValue + (t1 - oldValue) * factor;
  23717. break $label0$0;
  23718. }
  23719. t1 = channel.min;
  23720. t1 = oldValue <= t1 ? oldValue : oldValue + (oldValue - t1) * factor;
  23721. break $label0$0;
  23722. }
  23723. return t1;
  23724. },
  23725. _adjustColor0(color, channelArgs, alphaArg) {
  23726. var t1 = color._color0$_space,
  23727. t2 = t1._space$_channels;
  23728. return A.SassColor_SassColor$forSpaceInternal0(t1, A._adjustChannel0(color, t2[0], color.channel0OrNull, channelArgs[0]), A._adjustChannel0(color, t2[1], color.channel1OrNull, channelArgs[1]), A._adjustChannel0(color, t2[2], color.channel2OrNull, channelArgs[2]), A.NullableExtension_andThen0(A._adjustChannel0(color, B.LinearChannel_omH0, color.alphaOrNull, alphaArg), new A._adjustColor_closure0()));
  23729. },
  23730. _adjustChannel0(color, channel, oldValue, adjustmentArg) {
  23731. var _0_1, _0_3, t1, _0_6_isSet, _0_6, _0_6_isSet0, t2, _0_11, result, min, max, _null = null;
  23732. if (adjustmentArg == null)
  23733. return oldValue;
  23734. if (oldValue == null)
  23735. A._missingChannelError0(color, channel.name);
  23736. $label0$0: {
  23737. _0_1 = color._color0$_space;
  23738. _0_3 = B.HslColorSpace_gsm0 === _0_1;
  23739. t1 = _0_3;
  23740. if (!t1)
  23741. _0_6_isSet = B.HwbColorSpace_06z0 === _0_1;
  23742. else
  23743. _0_6_isSet = true;
  23744. if (_0_6_isSet) {
  23745. t1 = channel.isPolarAngle;
  23746. _0_6 = channel;
  23747. } else {
  23748. _0_6 = _null;
  23749. t1 = false;
  23750. }
  23751. if (t1) {
  23752. adjustmentArg = A.SassNumber_SassNumber0(A._angleValue0(adjustmentArg, "hue"), _null);
  23753. break $label0$0;
  23754. }
  23755. t1 = false;
  23756. if (_0_3) {
  23757. _0_6_isSet0 = true;
  23758. if (_0_6_isSet)
  23759. t2 = _0_6;
  23760. else {
  23761. t2 = channel;
  23762. _0_6_isSet = _0_6_isSet0;
  23763. _0_6 = t2;
  23764. }
  23765. if (t2 instanceof A.LinearChannel0) {
  23766. if (_0_6_isSet)
  23767. t1 = _0_6;
  23768. else {
  23769. t1 = channel;
  23770. _0_6_isSet = _0_6_isSet0;
  23771. _0_6 = t1;
  23772. }
  23773. _0_11 = type$.LinearChannel_2._as(t1).name;
  23774. t1 = _0_11;
  23775. if ("saturation" !== t1)
  23776. t1 = "lightness" === _0_11;
  23777. else
  23778. t1 = true;
  23779. }
  23780. }
  23781. if (t1) {
  23782. A._checkPercent0(adjustmentArg, channel.name);
  23783. adjustmentArg = A.SassNumber_SassNumber0(adjustmentArg._number1$_value, "%");
  23784. break $label0$0;
  23785. }
  23786. if (B.LinearChannel_omH0 === (_0_6_isSet ? _0_6 : channel) && adjustmentArg.get$hasUnits()) {
  23787. A.warnForDeprecation0("$alpha: Passing a number with unit " + adjustmentArg.get$unitString() + string$.x20is_de + adjustmentArg.unitSuggestion$1("alpha") + string$.x0a_Morex3af, B.Deprecation_jV0);
  23788. adjustmentArg = A.SassNumber_SassNumber0(adjustmentArg._number1$_value, _null);
  23789. }
  23790. }
  23791. t1 = A._channelFromValue0(channel, adjustmentArg, false);
  23792. t1.toString;
  23793. result = oldValue + t1;
  23794. $label1$1: {
  23795. t1 = channel instanceof A.LinearChannel0;
  23796. min = _null;
  23797. t2 = false;
  23798. if (t1)
  23799. if (channel.lowerClamped) {
  23800. min = channel.min;
  23801. t2 = result < min;
  23802. }
  23803. if (t2) {
  23804. t1 = oldValue < min ? Math.max(oldValue, result) : min;
  23805. break $label1$1;
  23806. }
  23807. max = _null;
  23808. t2 = false;
  23809. if (t1)
  23810. if (channel.upperClamped) {
  23811. max = channel.max;
  23812. t1 = result > max;
  23813. } else
  23814. t1 = t2;
  23815. else
  23816. t1 = t2;
  23817. if (t1) {
  23818. t1 = oldValue > max ? Math.min(oldValue, result) : max;
  23819. break $label1$1;
  23820. }
  23821. t1 = result;
  23822. break $label1$1;
  23823. }
  23824. return t1;
  23825. },
  23826. _sniffLegacyColorSpace0(keywords) {
  23827. var t1, t2;
  23828. for (t1 = A.LinkedHashMapKeyIterator$(keywords, keywords.__js_helper$_modifications); t1.moveNext$0();) {
  23829. t2 = t1.__js_helper$_current;
  23830. if ("red" === t2 || "green" === t2 || "blue" === t2)
  23831. return B.RgbColorSpace_mlz0;
  23832. if ("saturation" === t2 || "lightness" === t2)
  23833. return B.HslColorSpace_gsm0;
  23834. if ("whiteness" === t2 || "blackness" === t2)
  23835. return B.HwbColorSpace_06z0;
  23836. }
  23837. return keywords.containsKey$1("hue") ? B.HslColorSpace_gsm0 : null;
  23838. },
  23839. _functionString0($name, $arguments) {
  23840. return new A.SassString0($name + "(" + J.map$1$1$ax($arguments, new A._functionString_closure0(), type$.String).join$1(0, ", ") + ")", false);
  23841. },
  23842. _removedColorFunction0($name, argument, negative) {
  23843. return A.BuiltInCallable$function0($name, "$color, $amount", new A._removedColorFunction_closure0($name, argument, negative), "sass:color");
  23844. },
  23845. _rgb0($name, $arguments) {
  23846. var t3, t4,
  23847. t1 = J.getInterceptor$asx($arguments),
  23848. alpha = t1.get$length($arguments) > 3 ? t1.$index($arguments, 3) : null,
  23849. t2 = true;
  23850. if (!t1.$index($arguments, 0).get$isSpecialNumber())
  23851. if (!t1.$index($arguments, 1).get$isSpecialNumber())
  23852. if (!t1.$index($arguments, 2).get$isSpecialNumber()) {
  23853. t2 = alpha == null ? null : alpha.get$isSpecialNumber();
  23854. t2 = t2 === true;
  23855. }
  23856. if (t2)
  23857. return A._functionString0($name, $arguments);
  23858. t2 = t1.$index($arguments, 0).assertNumber$1("red");
  23859. t3 = t1.$index($arguments, 1).assertNumber$1("green");
  23860. t1 = t1.$index($arguments, 2).assertNumber$1("blue");
  23861. t4 = A.NullableExtension_andThen0(alpha, new A._rgb_closure0());
  23862. return A._colorFromChannels0(B.RgbColorSpace_mlz0, t2, t3, t1, t4 == null ? 1 : t4, true, true);
  23863. },
  23864. _rgbTwoArg0($name, $arguments) {
  23865. var t2, color,
  23866. t1 = J.getInterceptor$asx($arguments),
  23867. first = t1.$index($arguments, 0),
  23868. second = t1.$index($arguments, 1);
  23869. if (!first.get$isVar())
  23870. t2 = !(first instanceof A.SassColor0) && second.get$isVar();
  23871. else
  23872. t2 = true;
  23873. if (t2)
  23874. return A._functionString0($name, $arguments);
  23875. color = first.assertColor$1("color");
  23876. if (!color._color0$_space.get$isLegacyInternal())
  23877. throw A.wrapException(A.SassScriptException$0("Expected " + color.toString$0(0) + string$.x20to_be_ + color.toString$0(0) + ", $alpha: " + second.toString$0(0) + ")", $name));
  23878. color.assertLegacy$1("color");
  23879. color = color.toSpace$1(B.RgbColorSpace_mlz0);
  23880. if (second.get$isSpecialNumber())
  23881. return A._functionString0($name, A._setArrayType([A.SassNumber_SassNumber0(color.channel$1(0, "red"), null), A.SassNumber_SassNumber0(color.channel$1(0, "green"), null), A.SassNumber_SassNumber0(color.channel$1(0, "blue"), null), t1.$index($arguments, 1)], type$.JSArray_Value_2));
  23882. t1 = A._percentageOrUnitless0(t1.$index($arguments, 1).assertNumber$1("alpha"), 1, "alpha");
  23883. return color.changeAlpha$1(isNaN(t1) ? 0 : B.JSNumber_methods.clamp$2(t1, 0, 1));
  23884. },
  23885. _hsl0($name, $arguments) {
  23886. var t3, t4,
  23887. t1 = J.getInterceptor$asx($arguments),
  23888. alpha = t1.get$length($arguments) > 3 ? t1.$index($arguments, 3) : null,
  23889. t2 = true;
  23890. if (!t1.$index($arguments, 0).get$isSpecialNumber())
  23891. if (!t1.$index($arguments, 1).get$isSpecialNumber())
  23892. if (!t1.$index($arguments, 2).get$isSpecialNumber()) {
  23893. t2 = alpha == null ? null : alpha.get$isSpecialNumber();
  23894. t2 = t2 === true;
  23895. }
  23896. if (t2)
  23897. return A._functionString0($name, $arguments);
  23898. t2 = t1.$index($arguments, 0).assertNumber$1("hue");
  23899. t3 = t1.$index($arguments, 1).assertNumber$1("saturation");
  23900. t1 = t1.$index($arguments, 2).assertNumber$1("lightness");
  23901. t4 = A.NullableExtension_andThen0(alpha, new A._hsl_closure0());
  23902. return A._colorFromChannels0(B.HslColorSpace_gsm0, t2, t3, t1, t4 == null ? 1 : t4, true, false);
  23903. },
  23904. _angleValue0(angleValue, $name) {
  23905. var angle = angleValue.assertNumber$1($name);
  23906. if (angle.compatibleWithUnit$1("deg"))
  23907. return angle.coerceValueToUnit$1("deg");
  23908. A.warnForDeprecation0("$" + $name + ": Passing a unit other than deg (" + angle.toString$0(0) + string$.x29x20is_d + angle.unitSuggestion$1($name) + string$.x0a_See_, B.Deprecation_jV0);
  23909. return angle._number1$_value;
  23910. },
  23911. _checkPercent0(number, $name) {
  23912. if (number.hasUnit$1("%"))
  23913. return;
  23914. A.warnForDeprecation0("$" + $name + ": Passing a number without unit % (" + number.toString$0(0) + string$.x29x20is_d + number.unitSuggestion$2($name, "%") + string$.x0a_Morex3af, B.Deprecation_jV0);
  23915. },
  23916. _percentageOrUnitless0(number, max, $name) {
  23917. var value;
  23918. if (!number.get$hasUnits())
  23919. value = number._number1$_value;
  23920. else if (number.hasUnit$1("%"))
  23921. value = max * number._number1$_value / 100;
  23922. else
  23923. throw A.wrapException(A.SassScriptException$0("Expected " + number.toString$0(0) + ' to have unit "%" or no units.', $name));
  23924. return value;
  23925. },
  23926. _mixLegacy0(color1, color2, weight) {
  23927. var t2, alphaDistance, weight1, weight2, t3, t4, t5, t6, t7, t8,
  23928. rgb1 = color1.toSpace$1(B.RgbColorSpace_mlz0),
  23929. rgb2 = color2.toSpace$1(B.RgbColorSpace_mlz0),
  23930. weightScale = weight.valueInRange$3(0, 100, "weight") / 100,
  23931. normalizedWeight = weightScale * 2 - 1,
  23932. t1 = color1.alphaOrNull;
  23933. if (t1 == null)
  23934. t1 = 0;
  23935. t2 = color2.alphaOrNull;
  23936. alphaDistance = t1 - (t2 == null ? 0 : t2);
  23937. t1 = normalizedWeight * alphaDistance;
  23938. weight1 = ((t1 === -1 ? normalizedWeight : (normalizedWeight + alphaDistance) / (1 + t1)) + 1) / 2;
  23939. weight2 = 1 - weight1;
  23940. t1 = rgb1.channel0OrNull;
  23941. if (t1 == null)
  23942. t1 = 0;
  23943. t2 = rgb2.channel0OrNull;
  23944. if (t2 == null)
  23945. t2 = 0;
  23946. t3 = rgb1.channel1OrNull;
  23947. if (t3 == null)
  23948. t3 = 0;
  23949. t4 = rgb2.channel1OrNull;
  23950. if (t4 == null)
  23951. t4 = 0;
  23952. t5 = rgb1.channel2OrNull;
  23953. if (t5 == null)
  23954. t5 = 0;
  23955. t6 = rgb2.channel2OrNull;
  23956. if (t6 == null)
  23957. t6 = 0;
  23958. t7 = rgb1.alphaOrNull;
  23959. if (t7 == null)
  23960. t7 = 0;
  23961. t8 = rgb2.alphaOrNull;
  23962. if (t8 == null)
  23963. t8 = 0;
  23964. return A.SassColor_SassColor$rgbInternal0(t1 * weight1 + t2 * weight2, t3 * weight1 + t4 * weight2, t5 * weight1 + t6 * weight2, t7 * weightScale + t8 * (1 - weightScale), null);
  23965. },
  23966. _opacify0($name, $arguments) {
  23967. var result,
  23968. t1 = J.getInterceptor$asx($arguments),
  23969. color = t1.$index($arguments, 0).assertColor$1("color"),
  23970. amount = t1.$index($arguments, 1).assertNumber$1("amount");
  23971. if (!color._color0$_space.get$isLegacyInternal())
  23972. throw A.wrapException(A.SassScriptException$0($name + string$.x28__is_oa, null));
  23973. t1 = color.alphaOrNull;
  23974. if (t1 == null)
  23975. t1 = 0;
  23976. t1 += amount.valueInRangeWithUnit$4(0, 1, "amount", "");
  23977. result = color.changeAlpha$1(isNaN(t1) ? 0 : B.JSNumber_methods.clamp$2(t1, 0, 1));
  23978. A.warnForDeprecation0($name + "() is deprecated. " + A._suggestScaleAndAdjust0(color, amount._number1$_value, "alpha") + string$.x0a_Morex3ac, B.Deprecation_rb9);
  23979. return result;
  23980. },
  23981. _transparentize0($name, $arguments) {
  23982. var result,
  23983. t1 = J.getInterceptor$asx($arguments),
  23984. color = t1.$index($arguments, 0).assertColor$1("color"),
  23985. amount = t1.$index($arguments, 1).assertNumber$1("amount");
  23986. if (!color._color0$_space.get$isLegacyInternal())
  23987. throw A.wrapException(A.SassScriptException$0($name + string$.x28__is_oa, null));
  23988. t1 = color.alphaOrNull;
  23989. if (t1 == null)
  23990. t1 = 0;
  23991. t1 -= amount.valueInRangeWithUnit$4(0, 1, "amount", "");
  23992. result = color.changeAlpha$1(isNaN(t1) ? 0 : B.JSNumber_methods.clamp$2(t1, 0, 1));
  23993. A.warnForDeprecation0($name + "() is deprecated. " + A._suggestScaleAndAdjust0(color, -amount._number1$_value, "alpha") + string$.x0a_Morex3ac, B.Deprecation_rb9);
  23994. return result;
  23995. },
  23996. _colorInSpace0(colorUntyped, spaceUntyped, legacyMissing) {
  23997. var t1, _s5_ = "space",
  23998. color = colorUntyped.assertColor$1("color");
  23999. if (spaceUntyped.$eq(0, B.C__SassNull0))
  24000. return color;
  24001. t1 = spaceUntyped.assertString$1(_s5_);
  24002. t1.assertUnquoted$1(_s5_);
  24003. return color.toSpace$2$legacyMissing(A.ColorSpace_fromName0(t1._string0$_text, _s5_), legacyMissing);
  24004. },
  24005. _parseChannels0(functionName, input, $name, space) {
  24006. var parsedSlash, components, alphaValue, _2_0, _2_1, _2_5, t1, _2_6, t2, _2_60, t3, channels, first, rest, componentList, spaceName, i, channel, channelName, t4, _null = null;
  24007. if (input.get$isVar())
  24008. return A._functionString0(functionName, A._setArrayType([input], type$.JSArray_Value_2));
  24009. parsedSlash = A._parseSlashChannels0(input, $name);
  24010. if (parsedSlash == null)
  24011. return A._functionString0(functionName, A._setArrayType([input], type$.JSArray_Value_2));
  24012. components = parsedSlash._0;
  24013. alphaValue = parsedSlash._1;
  24014. $label0$0: {
  24015. _2_0 = components.assertCommonListStyle$2$allowSlash($name, false);
  24016. _2_1 = _2_0.length;
  24017. if (_2_1 <= 0)
  24018. throw A.wrapException(A.SassScriptException$0("Color component list may not be empty.", $name));
  24019. _2_5 = _2_1 >= 1;
  24020. t1 = _2_5;
  24021. _2_6 = _null;
  24022. t2 = false;
  24023. if (t1) {
  24024. _2_60 = _2_0[0];
  24025. t3 = _2_60;
  24026. _2_6 = t3;
  24027. if (t3 instanceof A.SassString0) {
  24028. type$.SassString_2._as(_2_6);
  24029. t2 = !_2_6._string0$_hasQuotes && _2_6._string0$_text.toLowerCase() === "from";
  24030. }
  24031. }
  24032. if (t2)
  24033. return A._functionString0(functionName, A._setArrayType([input], type$.JSArray_Value_2));
  24034. t2 = components.get$isVar();
  24035. if (t2) {
  24036. channels = A._setArrayType([components], type$.JSArray_Value_2);
  24037. break $label0$0;
  24038. }
  24039. channels = _null;
  24040. if (_2_5) {
  24041. first = t1 ? _2_6 : _2_0[0];
  24042. rest = B.JSArray_methods.sublist$1(_2_0, 1);
  24043. componentList = _2_0;
  24044. } else {
  24045. componentList = channels;
  24046. rest = componentList;
  24047. first = _null;
  24048. }
  24049. if (_2_5) {
  24050. if (space == null) {
  24051. spaceName = first.assertString$1($name);
  24052. spaceName.assertUnquoted$1($name);
  24053. space = spaceName.get$isVar() ? _null : A.ColorSpace_fromName0(spaceName._string0$_text, $name);
  24054. if (B.RgbColorSpace_mlz0 === space || B.HslColorSpace_gsm0 === space || B.HwbColorSpace_06z0 === space || B.LabColorSpace_IF20 === space || B.LchColorSpace_wv80 === space || B.OklabColorSpace_yrt0 === space || B.OklchColorSpace_li80 === space)
  24055. throw A.wrapException(A.SassScriptException$0(string$.The_co + A.S(space) + ". Use the " + A.S(space) + "() function instead.", $name));
  24056. channels = rest;
  24057. } else
  24058. channels = componentList;
  24059. for (i = 0; i < channels.length; ++i) {
  24060. channel = channels[i];
  24061. t1 = false;
  24062. if (!channel.get$isSpecialNumber())
  24063. if (!(channel instanceof A.SassNumber0))
  24064. t1 = !(channel instanceof A.SassString0 && !channel._string0$_hasQuotes && channel._string0$_text.toLowerCase() === "none");
  24065. if (t1) {
  24066. t1 = _null;
  24067. if (space == null)
  24068. channelName = t1;
  24069. else {
  24070. t2 = space._space$_channels;
  24071. t2 = i < 3 ? t2[i] : _null;
  24072. if (!(t2 == null))
  24073. t1 = new A._parseChannels_closure1().call$1(t2.name);
  24074. channelName = t1;
  24075. }
  24076. if (channelName == null)
  24077. channelName = "channel " + (i + 1);
  24078. throw A.wrapException(A.SassScriptException$0("Expected " + channelName + " to be a number, was " + channel.toString$0(0) + ".", $name));
  24079. }
  24080. }
  24081. break $label0$0;
  24082. }
  24083. throw A.wrapException("unreachable");
  24084. }
  24085. t1 = alphaValue == null;
  24086. t2 = t1 ? _null : alphaValue.get$isSpecialNumber();
  24087. if (t2 === true) {
  24088. if (channels.length === 3 && B.Set_2Dcfy0.contains$1(0, space)) {
  24089. t1 = A.List_List$of(channels, true, type$.Value_2);
  24090. alphaValue.toString;
  24091. t1.push(alphaValue);
  24092. t1 = A._functionString0(functionName, t1);
  24093. } else
  24094. t1 = A._functionString0(functionName, A._setArrayType([input], type$.JSArray_Value_2));
  24095. return t1;
  24096. }
  24097. $label1$1: {
  24098. if (t1) {
  24099. t2 = 1;
  24100. break $label1$1;
  24101. }
  24102. if (alphaValue instanceof A.SassString0 && !alphaValue._string0$_hasQuotes && "none" === alphaValue._string0$_text) {
  24103. t2 = _null;
  24104. break $label1$1;
  24105. }
  24106. t2 = A._percentageOrUnitless0(alphaValue.assertNumber$1($name), 1, "alpha");
  24107. t2 = isNaN(t2) ? 0 : B.JSNumber_methods.clamp$2(t2, 0, 1);
  24108. break $label1$1;
  24109. }
  24110. if (space == null)
  24111. return A._functionString0(functionName, A._setArrayType([input], type$.JSArray_Value_2));
  24112. if (B.JSArray_methods.any$1(channels, new A._parseChannels_closure2())) {
  24113. if (channels.length === 3 && B.Set_2Dcfy0.contains$1(0, space)) {
  24114. t2 = A.List_List$of(channels, true, type$.Value_2);
  24115. if (!t1)
  24116. t2.push(alphaValue);
  24117. t1 = A._functionString0(functionName, t2);
  24118. } else
  24119. t1 = A._functionString0(functionName, A._setArrayType([input], type$.JSArray_Value_2));
  24120. return t1;
  24121. }
  24122. if (channels.length !== 3)
  24123. throw A.wrapException(A.SassScriptException$0("The " + space.toString$0(0) + " color space has 3 channels but " + input.toString$0(0) + " has " + channels.length + ".", $name));
  24124. t1 = channels[0];
  24125. t1 = t1 instanceof A.SassNumber0 ? t1 : _null;
  24126. t3 = channels[1];
  24127. t3 = t3 instanceof A.SassNumber0 ? t3 : _null;
  24128. t4 = channels[2];
  24129. t4 = t4 instanceof A.SassNumber0 ? t4 : _null;
  24130. return A._colorFromChannels0(space, t1, t3, t4, t2, true, space === B.RgbColorSpace_mlz0);
  24131. },
  24132. _parseSlashChannels0(input, $name) {
  24133. var _1_1, alphaValue, t1, components, _1_7, _1_9_isSet, _1_8, _1_9, initial, t2, _0_0, _0_1, channel3, alpha, _1_16, _1_16_isSet, _1_9_isSet0, t3, _null = null,
  24134. _1_0 = input.assertCommonListStyle$2$allowSlash($name, true);
  24135. $label0$0: {
  24136. _1_1 = _1_0.length;
  24137. alphaValue = _null;
  24138. t1 = false;
  24139. if (_1_1 === 2) {
  24140. components = _1_0[0];
  24141. alphaValue = _1_0[1];
  24142. t1 = input.get$separator(input) === B.ListSeparator_cQA0;
  24143. } else
  24144. components = _null;
  24145. if (t1) {
  24146. t1 = new A._Record_2(components, alphaValue);
  24147. break $label0$0;
  24148. }
  24149. t1 = input.get$separator(input);
  24150. if (t1 === B.ListSeparator_cQA0) {
  24151. t1 = _1_0.length;
  24152. A.throwExpression(A.SassScriptException$0(string$.Only_2 + t1 + " " + A.pluralize0("was", t1, "were") + " passed.", $name));
  24153. }
  24154. _1_7 = _1_1 >= 1;
  24155. _1_9_isSet = _1_7;
  24156. _1_8 = _null;
  24157. _1_9 = _null;
  24158. initial = _null;
  24159. t1 = false;
  24160. if (_1_9_isSet) {
  24161. _1_8 = B.JSArray_methods.sublist$2(_1_0, 0, _1_1 - 1);
  24162. initial = _1_8;
  24163. _1_9 = _1_0[_1_1 - 1];
  24164. t2 = _1_9;
  24165. if (t2 instanceof A.SassString0) {
  24166. type$.SassString_2._as(_1_9);
  24167. t1 = !_1_9._string0$_hasQuotes;
  24168. }
  24169. }
  24170. if (t1) {
  24171. if (_1_9_isSet)
  24172. t1 = _1_9;
  24173. else {
  24174. _1_9 = _1_0[_1_1 - 1];
  24175. t1 = _1_9;
  24176. }
  24177. _0_0 = type$.SassString_2._as(t1)._string0$_text.split("/");
  24178. $label1$1: {
  24179. _0_1 = _0_0.length;
  24180. if (_0_1 === 1) {
  24181. t1 = new A._Record_2(input, _null);
  24182. break $label1$1;
  24183. }
  24184. if (_0_1 === 2) {
  24185. channel3 = _0_0[0];
  24186. alpha = _0_0[1];
  24187. t1 = A.List_List$of(initial, true, type$.Value_2);
  24188. t1.push(A._parseNumberOrString0(channel3));
  24189. t1 = new A._Record_2(A.SassList$0(t1, B.ListSeparator_nbm0, false), A._parseNumberOrString0(alpha));
  24190. break $label1$1;
  24191. }
  24192. t1 = _null;
  24193. break $label1$1;
  24194. }
  24195. break $label0$0;
  24196. }
  24197. _1_16 = _null;
  24198. _1_16_isSet = false;
  24199. t1 = false;
  24200. if (_1_7) {
  24201. _1_9_isSet0 = true;
  24202. if (_1_9_isSet)
  24203. initial = _1_8;
  24204. else {
  24205. _1_8 = B.JSArray_methods.sublist$2(_1_0, 0, _1_1 - 1);
  24206. initial = _1_8;
  24207. }
  24208. if (_1_9_isSet)
  24209. t2 = _1_9;
  24210. else {
  24211. _1_9 = _1_0[_1_1 - 1];
  24212. t2 = _1_9;
  24213. _1_9_isSet = _1_9_isSet0;
  24214. }
  24215. _1_16_isSet = t2 instanceof A.SassNumber0;
  24216. if (_1_16_isSet) {
  24217. if (_1_9_isSet)
  24218. t1 = _1_9;
  24219. else {
  24220. _1_9 = _1_0[_1_1 - 1];
  24221. t1 = _1_9;
  24222. _1_9_isSet = _1_9_isSet0;
  24223. }
  24224. _1_16 = type$.SassNumber_2._as(t1).asSlash;
  24225. t1 = _1_16;
  24226. t1 = type$.Record_2_nullable_Object_and_nullable_Object._is(t1);
  24227. }
  24228. } else
  24229. initial = _null;
  24230. if (t1) {
  24231. if (_1_16_isSet)
  24232. t1 = _1_16;
  24233. else {
  24234. if (_1_9_isSet)
  24235. t1 = _1_9;
  24236. else {
  24237. _1_9 = _1_0[_1_1 - 1];
  24238. t1 = _1_9;
  24239. _1_9_isSet = true;
  24240. }
  24241. _1_16 = type$.SassNumber_2._as(t1).asSlash;
  24242. t1 = _1_16;
  24243. _1_16_isSet = true;
  24244. }
  24245. if (t1 == null)
  24246. t1 = type$.Record_2_nullable_Object_and_nullable_Object._as(t1);
  24247. if (_1_16_isSet)
  24248. t2 = _1_16;
  24249. else {
  24250. if (_1_9_isSet)
  24251. t2 = _1_9;
  24252. else {
  24253. _1_9 = _1_0[_1_1 - 1];
  24254. t2 = _1_9;
  24255. }
  24256. _1_16 = type$.SassNumber_2._as(t2).asSlash;
  24257. t2 = _1_16;
  24258. }
  24259. if (t2 == null)
  24260. t2 = type$.Record_2_nullable_Object_and_nullable_Object._as(t2);
  24261. t3 = A.List_List$of(initial, true, type$.Value_2);
  24262. t3.push(t1._0);
  24263. t2 = new A._Record_2(A.SassList$0(t3, B.ListSeparator_nbm0, false), t2._1);
  24264. t1 = t2;
  24265. break $label0$0;
  24266. }
  24267. t1 = new A._Record_2(input, _null);
  24268. break $label0$0;
  24269. }
  24270. return t1;
  24271. },
  24272. _parseNumberOrString0(text) {
  24273. var t1, expression, exception;
  24274. try {
  24275. t1 = A.ScssParser$0(text, null);
  24276. expression = t1._stylesheet0$_parseSingleProduction$1$1(t1.get$_stylesheet0$_number(), type$.NumberExpression_2);
  24277. t1 = A.SassNumber_SassNumber0(expression.value, expression.unit);
  24278. return t1;
  24279. } catch (exception) {
  24280. if (type$.SassFormatException_2._is(A.unwrapException(exception)))
  24281. return new A.SassString0(text, false);
  24282. else
  24283. throw exception;
  24284. }
  24285. },
  24286. _colorFromChannels0(space, channel0, channel1, channel2, alpha, clamp, fromRgbFunction) {
  24287. var t1, t2, whiteness, blackness, t3;
  24288. switch (space) {
  24289. case B.HslColorSpace_gsm0:
  24290. if (channel1 != null)
  24291. A._checkPercent0(channel1, "saturation");
  24292. if (channel2 != null)
  24293. A._checkPercent0(channel2, "lightness");
  24294. t1 = space._space$_channels;
  24295. return A.SassColor_SassColor$hsl0(A.NullableExtension_andThen0(channel0, new A._colorFromChannels_closure1()), A._channelFromValue0(t1[1], A._forcePercent0(channel1), clamp), A._channelFromValue0(t1[2], A._forcePercent0(channel2), clamp), alpha);
  24296. case B.HwbColorSpace_06z0:
  24297. t1 = channel1 == null;
  24298. if (!t1)
  24299. channel1.assertUnit$2("%", "whiteness");
  24300. t2 = channel2 == null;
  24301. if (!t2)
  24302. channel2.assertUnit$2("%", "blackness");
  24303. whiteness = t1 ? null : channel1._number1$_value;
  24304. blackness = t2 ? null : channel2._number1$_value;
  24305. if (whiteness != null && blackness != null && whiteness + blackness > 100) {
  24306. t1 = whiteness + blackness;
  24307. whiteness = whiteness / t1 * 100;
  24308. blackness = blackness / t1 * 100;
  24309. }
  24310. return A.SassColor_SassColor$hwb0(A.NullableExtension_andThen0(channel0, new A._colorFromChannels_closure2()), whiteness, blackness, alpha);
  24311. case B.RgbColorSpace_mlz0:
  24312. t1 = space._space$_channels;
  24313. t2 = A._channelFromValue0(t1[0], channel0, clamp);
  24314. t3 = A._channelFromValue0(t1[1], channel1, clamp);
  24315. t1 = A._channelFromValue0(t1[2], channel2, clamp);
  24316. return A.SassColor_SassColor$rgbInternal0(t2, t3, t1, alpha, fromRgbFunction ? B.C__ColorFormatEnum0 : null);
  24317. default:
  24318. t1 = space._space$_channels;
  24319. return A.SassColor_SassColor$forSpaceInternal0(space, A._channelFromValue0(t1[0], channel0, clamp), A._channelFromValue0(t1[1], channel1, clamp), A._channelFromValue0(t1[2], channel2, clamp), alpha);
  24320. }
  24321. },
  24322. _forcePercent0(number) {
  24323. var t1, _0_3;
  24324. $label0$0: {
  24325. if (number == null) {
  24326. t1 = null;
  24327. break $label0$0;
  24328. }
  24329. _0_3 = number.get$numeratorUnits(number);
  24330. if (_0_3.length === 1)
  24331. t1 = "%" === _0_3[0] && number.get$denominatorUnits(number).length <= 0;
  24332. else
  24333. t1 = false;
  24334. if (t1) {
  24335. t1 = number;
  24336. break $label0$0;
  24337. }
  24338. t1 = A.SassNumber_SassNumber0(number._number1$_value, "%");
  24339. break $label0$0;
  24340. }
  24341. return t1;
  24342. },
  24343. _channelFromValue0(channel, value, clamp) {
  24344. return A.NullableExtension_andThen0(value, new A._channelFromValue_closure0(channel, clamp));
  24345. },
  24346. _isNone0(value) {
  24347. return value instanceof A.SassString0 && !value._string0$_hasQuotes && value._string0$_text.toLowerCase() === "none";
  24348. },
  24349. _channelFunction0($name, space, getter, global, unit) {
  24350. return A.BuiltInCallable$function0($name, "$color", new A._channelFunction_closure0(getter, unit, global, $name, space), "sass:color");
  24351. },
  24352. _suggestScaleAndAdjust0(original, adjustment, channelName) {
  24353. var t2, oldValue, newValue, factor, t3, suggestion,
  24354. channel = channelName === "alpha" ? B.LinearChannel_omH0 : type$.LinearChannel_2._as(B.JSArray_methods.firstWhere$1(B.List_8aB0, new A._suggestScaleAndAdjust_closure0(channelName))),
  24355. t1 = channel === B.LinearChannel_omH0;
  24356. if (t1) {
  24357. t2 = original.alphaOrNull;
  24358. oldValue = t2 == null ? 0 : t2;
  24359. } else
  24360. oldValue = original.toSpace$1(B.HslColorSpace_gsm0).channel$1(0, channelName);
  24361. newValue = oldValue + adjustment;
  24362. if (adjustment !== 0) {
  24363. factor = A._Cell$();
  24364. t2 = channel.max;
  24365. if (newValue > t2)
  24366. factor.__late_helper$_value = 1;
  24367. else {
  24368. t3 = channel.min;
  24369. if (newValue < t3)
  24370. factor.__late_helper$_value = -1;
  24371. else if (adjustment > 0)
  24372. factor.__late_helper$_value = adjustment / (t2 - oldValue);
  24373. else
  24374. factor.__late_helper$_value = (newValue - oldValue) / (oldValue - t3);
  24375. }
  24376. suggestion = "Suggestion" + ("s:\n\ncolor.scale($color, $" + channelName + ": " + A.SassNumber_SassNumber0(factor._readLocal$0() * 100, "%").toString$0(0) + ")\n");
  24377. } else
  24378. suggestion = "Suggestion:\n\n";
  24379. return suggestion + ("color.adjust($color, $" + channelName + ": " + A.SassNumber_SassNumber0(adjustment, t1 ? null : "%").toString$0(0) + ")");
  24380. },
  24381. _missingChannelError0(color, channel) {
  24382. return A.throwExpression(A.SassScriptException$0(string$.Becaus + color.toString$0(0) + ").", channel));
  24383. },
  24384. _channelName0(value) {
  24385. var t1 = value.assertString$1("channel");
  24386. t1.assertQuoted$1("channel");
  24387. return t1._string0$_text;
  24388. },
  24389. _function12($name, $arguments, callback) {
  24390. return A.BuiltInCallable$function0($name, $arguments, callback, "sass:color");
  24391. },
  24392. global_closure44: function global_closure44() {
  24393. },
  24394. global_closure45: function global_closure45() {
  24395. },
  24396. global_closure46: function global_closure46() {
  24397. },
  24398. global_closure47: function global_closure47() {
  24399. },
  24400. global_closure48: function global_closure48() {
  24401. },
  24402. global_closure49: function global_closure49() {
  24403. },
  24404. global_closure50: function global_closure50() {
  24405. },
  24406. global_closure51: function global_closure51() {
  24407. },
  24408. global_closure52: function global_closure52() {
  24409. },
  24410. global_closure53: function global_closure53() {
  24411. },
  24412. global_closure54: function global_closure54() {
  24413. },
  24414. global_closure55: function global_closure55() {
  24415. },
  24416. global_closure56: function global_closure56() {
  24417. },
  24418. global_closure57: function global_closure57() {
  24419. },
  24420. global_closure58: function global_closure58() {
  24421. },
  24422. global_closure59: function global_closure59() {
  24423. },
  24424. global_closure60: function global_closure60() {
  24425. },
  24426. global_closure61: function global_closure61() {
  24427. },
  24428. global_closure62: function global_closure62() {
  24429. },
  24430. global_closure63: function global_closure63() {
  24431. },
  24432. global_closure64: function global_closure64() {
  24433. },
  24434. global_closure65: function global_closure65() {
  24435. },
  24436. global_closure66: function global_closure66() {
  24437. },
  24438. global_closure67: function global_closure67() {
  24439. },
  24440. global_closure68: function global_closure68() {
  24441. },
  24442. global_closure69: function global_closure69() {
  24443. },
  24444. global_closure70: function global_closure70() {
  24445. },
  24446. global_closure71: function global_closure71() {
  24447. },
  24448. global_closure72: function global_closure72() {
  24449. },
  24450. global_closure73: function global_closure73() {
  24451. },
  24452. global_closure74: function global_closure74() {
  24453. },
  24454. global_closure75: function global_closure75() {
  24455. },
  24456. global_closure76: function global_closure76() {
  24457. },
  24458. global_closure77: function global_closure77() {
  24459. },
  24460. global_closure78: function global_closure78() {
  24461. },
  24462. global_closure79: function global_closure79() {
  24463. },
  24464. global__closure0: function global__closure0() {
  24465. },
  24466. global_closure80: function global_closure80() {
  24467. },
  24468. global_closure81: function global_closure81() {
  24469. },
  24470. global_closure82: function global_closure82() {
  24471. },
  24472. global_closure83: function global_closure83() {
  24473. },
  24474. global_closure84: function global_closure84() {
  24475. },
  24476. global_closure85: function global_closure85() {
  24477. },
  24478. global_closure86: function global_closure86() {
  24479. },
  24480. module_closure27: function module_closure27() {
  24481. },
  24482. module_closure28: function module_closure28() {
  24483. },
  24484. module_closure29: function module_closure29() {
  24485. },
  24486. module_closure30: function module_closure30() {
  24487. },
  24488. module_closure31: function module_closure31() {
  24489. },
  24490. module_closure32: function module_closure32() {
  24491. },
  24492. module_closure33: function module_closure33() {
  24493. },
  24494. module_closure34: function module_closure34() {
  24495. },
  24496. module_closure35: function module_closure35() {
  24497. },
  24498. module_closure36: function module_closure36() {
  24499. },
  24500. module_closure37: function module_closure37() {
  24501. },
  24502. module_closure38: function module_closure38() {
  24503. },
  24504. module_closure39: function module_closure39() {
  24505. },
  24506. module_closure40: function module_closure40() {
  24507. },
  24508. module__closure6: function module__closure6() {
  24509. },
  24510. module_closure41: function module_closure41() {
  24511. },
  24512. module_closure42: function module_closure42() {
  24513. },
  24514. module_closure43: function module_closure43() {
  24515. },
  24516. module_closure44: function module_closure44() {
  24517. },
  24518. module_closure45: function module_closure45() {
  24519. },
  24520. module_closure46: function module_closure46() {
  24521. },
  24522. module_closure47: function module_closure47() {
  24523. },
  24524. module_closure48: function module_closure48() {
  24525. },
  24526. module__closure5: function module__closure5(t0) {
  24527. this.channelName = t0;
  24528. },
  24529. module_closure49: function module_closure49() {
  24530. },
  24531. module_closure_toXyzNoMissing0: function module_closure_toXyzNoMissing0() {
  24532. },
  24533. module_closure50: function module_closure50() {
  24534. },
  24535. _mix_closure0: function _mix_closure0() {
  24536. },
  24537. _complement_closure0: function _complement_closure0() {
  24538. },
  24539. _adjust_closure0: function _adjust_closure0() {
  24540. },
  24541. _scale_closure0: function _scale_closure0() {
  24542. },
  24543. _change_closure0: function _change_closure0() {
  24544. },
  24545. _ieHexStr_closure0: function _ieHexStr_closure0() {
  24546. },
  24547. _ieHexStr_closure_hexString0: function _ieHexStr_closure_hexString0() {
  24548. },
  24549. _updateComponents_closure1: function _updateComponents_closure1(t0) {
  24550. this.originalColor = t0;
  24551. },
  24552. _updateComponents_closure2: function _updateComponents_closure2(t0) {
  24553. this._box_0 = t0;
  24554. },
  24555. _changeColor_closure0: function _changeColor_closure0(t0) {
  24556. this.alphaArg = t0;
  24557. },
  24558. _adjustColor_closure0: function _adjustColor_closure0() {
  24559. },
  24560. _functionString_closure0: function _functionString_closure0() {
  24561. },
  24562. _removedColorFunction_closure0: function _removedColorFunction_closure0(t0, t1, t2) {
  24563. this.name = t0;
  24564. this.argument = t1;
  24565. this.negative = t2;
  24566. },
  24567. _rgb_closure0: function _rgb_closure0() {
  24568. },
  24569. _hsl_closure0: function _hsl_closure0() {
  24570. },
  24571. _parseChannels_closure1: function _parseChannels_closure1() {
  24572. },
  24573. _parseChannels_closure2: function _parseChannels_closure2() {
  24574. },
  24575. _colorFromChannels_closure1: function _colorFromChannels_closure1() {
  24576. },
  24577. _colorFromChannels_closure2: function _colorFromChannels_closure2() {
  24578. },
  24579. _channelFromValue_closure0: function _channelFromValue_closure0(t0, t1) {
  24580. this.channel = t0;
  24581. this.clamp = t1;
  24582. },
  24583. _channelFunction_closure0: function _channelFunction_closure0(t0, t1, t2, t3, t4) {
  24584. var _ = this;
  24585. _.getter = t0;
  24586. _.unit = t1;
  24587. _.global = t2;
  24588. _.name = t3;
  24589. _.space = t4;
  24590. },
  24591. _suggestScaleAndAdjust_closure0: function _suggestScaleAndAdjust_closure0(t0) {
  24592. this.channelName = t0;
  24593. },
  24594. _constructionSpace(options) {
  24595. var t1 = J.getInterceptor$x(options);
  24596. if (t1.get$space(options) != null) {
  24597. t1 = t1.get$space(options);
  24598. t1.toString;
  24599. return A.ColorSpace_fromName0(t1, null);
  24600. }
  24601. if (t1.get$red(options) != null)
  24602. return B.RgbColorSpace_mlz0;
  24603. if (t1.get$saturation(options) != null)
  24604. return B.HslColorSpace_gsm0;
  24605. if (t1.get$whiteness(options) != null)
  24606. return B.HwbColorSpace_06z0;
  24607. throw A.wrapException("No color space found");
  24608. },
  24609. _toSpace($self, space) {
  24610. return $self.toSpace$1(A.ColorSpace_fromName0(space == null ? $self._color0$_space.name : space, null));
  24611. },
  24612. _checkNullAlphaDeprecation(options) {
  24613. var t1 = J.getInterceptor$x(options),
  24614. t2 = t1.get$alpha(options);
  24615. if (!A._asBool($.$get$_isUndefined().call$1(t2)) && t1.get$alpha(options) == null && t1.get$space(options) == null)
  24616. A.warnForDeprecationFromApi(string$.Passin_, B.Deprecation_mBb);
  24617. },
  24618. colorClass_closure: function colorClass_closure() {
  24619. },
  24620. colorClass__closure: function colorClass__closure() {
  24621. },
  24622. colorClass__closure0: function colorClass__closure0() {
  24623. },
  24624. colorClass__closure1: function colorClass__closure1() {
  24625. },
  24626. colorClass__closure2: function colorClass__closure2() {
  24627. },
  24628. colorClass__closure3: function colorClass__closure3() {
  24629. },
  24630. colorClass__closure4: function colorClass__closure4() {
  24631. },
  24632. colorClass__closure5: function colorClass__closure5() {
  24633. },
  24634. colorClass__closure6: function colorClass__closure6() {
  24635. },
  24636. colorClass__closure7: function colorClass__closure7() {
  24637. },
  24638. colorClass__closure8: function colorClass__closure8() {
  24639. },
  24640. colorClass___closure: function colorClass___closure(t0) {
  24641. this.key = t0;
  24642. },
  24643. colorClass__closure_changedValue: function colorClass__closure_changedValue(t0, t1) {
  24644. this.color = t0;
  24645. this.options = t1;
  24646. },
  24647. colorClass__closure9: function colorClass__closure9() {
  24648. },
  24649. colorClass__closure10: function colorClass__closure10() {
  24650. },
  24651. colorClass__closure11: function colorClass__closure11() {
  24652. },
  24653. colorClass__closure12: function colorClass__closure12() {
  24654. },
  24655. colorClass__closure13: function colorClass__closure13() {
  24656. },
  24657. colorClass__closure14: function colorClass__closure14() {
  24658. },
  24659. colorClass__closure15: function colorClass__closure15() {
  24660. },
  24661. colorClass__closure16: function colorClass__closure16() {
  24662. },
  24663. colorClass__closure17: function colorClass__closure17() {
  24664. },
  24665. colorClass__closure18: function colorClass__closure18() {
  24666. },
  24667. colorClass__closure19: function colorClass__closure19() {
  24668. },
  24669. colorClass__closure20: function colorClass__closure20() {
  24670. },
  24671. colorClass__closure21: function colorClass__closure21() {
  24672. },
  24673. colorClass__closure22: function colorClass__closure22() {
  24674. },
  24675. _Channels: function _Channels() {
  24676. },
  24677. _ConstructionOptions: function _ConstructionOptions() {
  24678. },
  24679. _ChannelOptions: function _ChannelOptions() {
  24680. },
  24681. _ToGamutOptions: function _ToGamutOptions() {
  24682. },
  24683. _InterpolationOptions: function _InterpolationOptions() {
  24684. },
  24685. _NodeSassColor: function _NodeSassColor() {
  24686. },
  24687. legacyColorClass_closure: function legacyColorClass_closure() {
  24688. },
  24689. legacyColorClass__closure: function legacyColorClass__closure() {
  24690. },
  24691. legacyColorClass_closure0: function legacyColorClass_closure0() {
  24692. },
  24693. legacyColorClass_closure1: function legacyColorClass_closure1() {
  24694. },
  24695. legacyColorClass_closure2: function legacyColorClass_closure2() {
  24696. },
  24697. legacyColorClass_closure3: function legacyColorClass_closure3() {
  24698. },
  24699. legacyColorClass_closure4: function legacyColorClass_closure4() {
  24700. },
  24701. legacyColorClass_closure5: function legacyColorClass_closure5() {
  24702. },
  24703. legacyColorClass_closure6: function legacyColorClass_closure6() {
  24704. },
  24705. legacyColorClass_closure7: function legacyColorClass_closure7() {
  24706. },
  24707. SassColor_SassColor$rgb0(red, green, blue, alpha) {
  24708. return A.SassColor_SassColor$rgbInternal0(red, green, blue, alpha, null);
  24709. },
  24710. SassColor_SassColor$rgbInternal0(red, green, blue, alpha, format) {
  24711. var _null = null,
  24712. t1 = red == null ? _null : red,
  24713. t2 = green == null ? _null : green,
  24714. t3 = blue == null ? _null : blue;
  24715. return A.SassColor$_forSpace0(B.RgbColorSpace_mlz0, t1, t2, t3, alpha == null ? _null : alpha, format);
  24716. },
  24717. SassColor_SassColor$hsl0(hue, saturation, lightness, alpha) {
  24718. var _null = null,
  24719. t1 = hue == null ? _null : hue,
  24720. t2 = saturation == null ? _null : saturation,
  24721. t3 = lightness == null ? _null : lightness;
  24722. return A.SassColor_SassColor$forSpaceInternal0(B.HslColorSpace_gsm0, t1, t2, t3, alpha == null ? _null : alpha);
  24723. },
  24724. SassColor_SassColor$hwb0(hue, whiteness, blackness, alpha) {
  24725. var _null = null,
  24726. t1 = hue == null ? _null : hue,
  24727. t2 = whiteness == null ? _null : whiteness,
  24728. t3 = blackness == null ? _null : blackness;
  24729. return A.SassColor_SassColor$forSpaceInternal0(B.HwbColorSpace_06z0, t1, t2, t3, alpha == null ? _null : alpha);
  24730. },
  24731. SassColor_SassColor$forSpaceInternal0(space, channel0, channel1, channel2, alpha) {
  24732. var t1, t2, _null = null;
  24733. $label0$0: {
  24734. if (B.HslColorSpace_gsm0 === space) {
  24735. t1 = channel1 == null;
  24736. t2 = A.SassColor__normalizeHue0(channel0, !t1 && channel1 < 0 && !A.fuzzyEquals0(channel1, 0));
  24737. t2 = A.SassColor$_forSpace0(space, t2, t1 ? _null : Math.abs(channel1), channel2, alpha, _null);
  24738. t1 = t2;
  24739. break $label0$0;
  24740. }
  24741. if (B.HwbColorSpace_06z0 === space) {
  24742. t1 = A.SassColor$_forSpace0(space, A.SassColor__normalizeHue0(channel0, false), channel1, channel2, alpha, _null);
  24743. break $label0$0;
  24744. }
  24745. if (B.LchColorSpace_wv80 === space || B.OklchColorSpace_li80 === space) {
  24746. t1 = channel1 == null;
  24747. t2 = t1 ? _null : Math.abs(channel1);
  24748. t2 = A.SassColor$_forSpace0(space, channel0, t2, A.SassColor__normalizeHue0(channel2, !t1 && channel1 < 0 && !A.fuzzyEquals0(channel1, 0)), alpha, _null);
  24749. t1 = t2;
  24750. break $label0$0;
  24751. }
  24752. t1 = A.SassColor$_forSpace0(space, channel0, channel1, channel2, alpha, _null);
  24753. break $label0$0;
  24754. }
  24755. return t1;
  24756. },
  24757. SassColor$_forSpace0(_space, channel0OrNull, channel1OrNull, channel2OrNull, alpha, format) {
  24758. return new A.SassColor0(_space, channel0OrNull, channel1OrNull, channel2OrNull, format, A.NullableExtension_andThen0(alpha, new A.SassColor$_forSpace_closure0()));
  24759. },
  24760. SassColor__normalizeHue0(hue, invert) {
  24761. var t1, t2;
  24762. if (hue == null)
  24763. return hue;
  24764. t1 = B.JSNumber_methods.$mod(hue, 360);
  24765. t2 = invert ? 180 : 0;
  24766. return B.JSNumber_methods.$mod(t1 + 360 + t2, 360);
  24767. },
  24768. SassColor0: function SassColor0(t0, t1, t2, t3, t4, t5) {
  24769. var _ = this;
  24770. _._color0$_space = t0;
  24771. _.channel0OrNull = t1;
  24772. _.channel1OrNull = t2;
  24773. _.channel2OrNull = t3;
  24774. _.format = t4;
  24775. _.alphaOrNull = t5;
  24776. },
  24777. SassColor$_forSpace_closure0: function SassColor$_forSpace_closure0() {
  24778. },
  24779. _ColorFormatEnum0: function _ColorFormatEnum0() {
  24780. },
  24781. SpanColorFormat0: function SpanColorFormat0(t0) {
  24782. this._color0$_span = t0;
  24783. },
  24784. Combinator0: function Combinator0(t0, t1) {
  24785. this._combinator0$_text = t0;
  24786. this._name = t1;
  24787. },
  24788. ModifiableCssComment0: function ModifiableCssComment0(t0, t1) {
  24789. var _ = this;
  24790. _.text = t0;
  24791. _.span = t1;
  24792. _._node$_indexInParent = _._node$_parent = null;
  24793. _.isGroupEnd = false;
  24794. },
  24795. compile0(path, options) {
  24796. var color, ascii, logger, result, error, stackTrace, t1, color0, ascii0, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, exception, _null = null;
  24797. if (!A.isNodeJs())
  24798. A.jsThrow(new self.Error("The compile() method is only available in Node.js."));
  24799. t1 = options == null;
  24800. color0 = t1 ? _null : J.get$alertColor$x(options);
  24801. color = color0 == null ? A.hasTerminal0() : color0;
  24802. ascii0 = t1 ? _null : J.get$alertAscii$x(options);
  24803. ascii = ascii0 == null ? $._glyphs === B.C_AsciiGlyphSet : ascii0;
  24804. t2 = t1 ? _null : J.get$logger$x(options);
  24805. t3 = ascii;
  24806. if (t3 == null)
  24807. t3 = $._glyphs === B.C_AsciiGlyphSet;
  24808. logger = new A.JSToDartLogger(t2, new A.StderrLogger0(color), t3);
  24809. try {
  24810. t2 = t1 ? _null : J.get$loadPaths$x(options);
  24811. t3 = t1 ? _null : J.get$quietDeps$x(options);
  24812. if (t3 == null)
  24813. t3 = false;
  24814. t4 = A._parseOutputStyle0(t1 ? _null : J.get$style$x(options));
  24815. t5 = t1 ? _null : J.get$verbose$x(options);
  24816. if (t5 == null)
  24817. t5 = false;
  24818. t6 = t1 ? _null : J.get$charset$x(options);
  24819. if (t6 == null)
  24820. t6 = true;
  24821. t7 = t1 ? _null : J.get$sourceMap$x(options);
  24822. if (t7 == null)
  24823. t7 = false;
  24824. if (t1)
  24825. t8 = _null;
  24826. else {
  24827. t8 = J.get$importers$x(options);
  24828. t8 = t8 == null ? _null : J.map$1$1$ax(t8, A.compile___parseImporter$closure(), type$.Importer);
  24829. }
  24830. t9 = A._parseFunctions0(t1 ? _null : J.get$functions$x(options), false);
  24831. t10 = t1 ? _null : J.get$fatalDeprecations$x(options);
  24832. t10 = A.parseDeprecations(logger, t10, true);
  24833. t11 = t1 ? _null : J.get$silenceDeprecations$x(options);
  24834. t11 = A.parseDeprecations(logger, t11, false);
  24835. t12 = t1 ? _null : J.get$futureDeprecations$x(options);
  24836. result = A.compile(path, t6, t10, new A.CastList(t9, A._arrayInstanceType(t9)._eval$1("CastList<1,Callable>")), A.parseDeprecations(logger, t12, false), A.ImportCache$0(t8, t2, _null), _null, _null, logger, _null, t3, t11, t7, t4, _null, true, t5);
  24837. t1 = t1 ? _null : J.get$sourceMapIncludeSources$x(options);
  24838. if (t1 == null)
  24839. t1 = false;
  24840. t1 = A._convertResult(result, t1);
  24841. return t1;
  24842. } catch (exception) {
  24843. t1 = A.unwrapException(exception);
  24844. if (t1 instanceof A.SassException0) {
  24845. error = t1;
  24846. stackTrace = A.getTraceFromException(exception);
  24847. A.throwNodeException(error, ascii, color, stackTrace);
  24848. } else
  24849. throw exception;
  24850. }
  24851. },
  24852. compileString0(text, options) {
  24853. var logger, result, error, stackTrace, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15, exception, _null = null,
  24854. t1 = options == null,
  24855. color0 = t1 ? _null : J.get$alertColor$x(options),
  24856. color = color0 == null ? A.hasTerminal0() : color0,
  24857. ascii0 = t1 ? _null : J.get$alertAscii$x(options),
  24858. ascii = ascii0 == null ? $._glyphs === B.C_AsciiGlyphSet : ascii0,
  24859. t2 = t1 ? _null : J.get$logger$x(options),
  24860. t3 = ascii;
  24861. if (t3 == null)
  24862. t3 = $._glyphs === B.C_AsciiGlyphSet;
  24863. logger = new A.JSToDartLogger(t2, new A.StderrLogger0(color), t3);
  24864. try {
  24865. t2 = A.parseSyntax(t1 ? _null : J.get$syntax$x(options));
  24866. t3 = t1 ? _null : A.NullableExtension_andThen0(J.get$url$x(options), A.utils3__jsToDartUrl$closure());
  24867. t4 = t1 ? _null : J.get$loadPaths$x(options);
  24868. t5 = t1 ? _null : J.get$quietDeps$x(options);
  24869. if (t5 == null)
  24870. t5 = false;
  24871. t6 = A._parseOutputStyle0(t1 ? _null : J.get$style$x(options));
  24872. t7 = t1 ? _null : J.get$verbose$x(options);
  24873. if (t7 == null)
  24874. t7 = false;
  24875. t8 = t1 ? _null : J.get$charset$x(options);
  24876. if (t8 == null)
  24877. t8 = true;
  24878. t9 = t1 ? _null : J.get$sourceMap$x(options);
  24879. if (t9 == null)
  24880. t9 = false;
  24881. if (t1)
  24882. t10 = _null;
  24883. else {
  24884. t10 = J.get$importers$x(options);
  24885. t10 = t10 == null ? _null : J.map$1$1$ax(t10, A.compile___parseImporter$closure(), type$.Importer);
  24886. }
  24887. t11 = t1 ? _null : A.NullableExtension_andThen0(J.get$importer$x(options), A.compile___parseImporter$closure());
  24888. if (t11 == null)
  24889. t11 = (t1 ? _null : J.get$url$x(options)) == null ? new A.NoOpImporter0() : _null;
  24890. t12 = A._parseFunctions0(t1 ? _null : J.get$functions$x(options), false);
  24891. t13 = t1 ? _null : J.get$fatalDeprecations$x(options);
  24892. t13 = A.parseDeprecations(logger, t13, true);
  24893. t14 = t1 ? _null : J.get$silenceDeprecations$x(options);
  24894. t14 = A.parseDeprecations(logger, t14, false);
  24895. t15 = t1 ? _null : J.get$futureDeprecations$x(options);
  24896. result = A.compileString(text, t8, t13, new A.CastList(t12, A._arrayInstanceType(t12)._eval$1("CastList<1,Callable>")), A.parseDeprecations(logger, t15, false), A.ImportCache$0(t10, t4, _null), t11, _null, _null, logger, _null, t5, t14, t9, t6, t2, t3, true, t7);
  24897. t1 = t1 ? _null : J.get$sourceMapIncludeSources$x(options);
  24898. if (t1 == null)
  24899. t1 = false;
  24900. t1 = A._convertResult(result, t1);
  24901. return t1;
  24902. } catch (exception) {
  24903. t1 = A.unwrapException(exception);
  24904. if (t1 instanceof A.SassException0) {
  24905. error = t1;
  24906. stackTrace = A.getTraceFromException(exception);
  24907. A.throwNodeException(error, ascii, color, stackTrace);
  24908. } else
  24909. throw exception;
  24910. }
  24911. },
  24912. compileAsync1(path, options) {
  24913. var t1, color, ascii;
  24914. if (!A.isNodeJs())
  24915. A.jsThrow(new self.Error("The compileAsync() method is only available in Node.js."));
  24916. t1 = options == null;
  24917. color = t1 ? null : J.get$alertColor$x(options);
  24918. if (color == null)
  24919. color = A.hasTerminal0();
  24920. ascii = t1 ? null : J.get$alertAscii$x(options);
  24921. if (ascii == null)
  24922. ascii = $._glyphs === B.C_AsciiGlyphSet;
  24923. t1 = t1 ? null : J.get$logger$x(options);
  24924. return A._wrapAsyncSassExceptions(A.futureToPromise0(new A.compileAsync_closure(path, color, options, new A.JSToDartLogger(t1, new A.StderrLogger0(color), ascii)).call$0()), ascii, color);
  24925. },
  24926. compileStringAsync1(text, options) {
  24927. var ascii,
  24928. t1 = options == null,
  24929. color = t1 ? null : J.get$alertColor$x(options);
  24930. if (color == null)
  24931. color = A.hasTerminal0();
  24932. ascii = t1 ? null : J.get$alertAscii$x(options);
  24933. if (ascii == null)
  24934. ascii = $._glyphs === B.C_AsciiGlyphSet;
  24935. t1 = t1 ? null : J.get$logger$x(options);
  24936. return A._wrapAsyncSassExceptions(A.futureToPromise0(new A.compileStringAsync_closure(text, options, color, new A.JSToDartLogger(t1, new A.StderrLogger0(color), ascii)).call$0()), ascii, color);
  24937. },
  24938. _convertResult(result, includeSourceContents) {
  24939. var loadedUrls,
  24940. t1 = result._compile_result$_serialize,
  24941. t2 = t1._1,
  24942. sourceMap = t2 == null ? null : t2.toJson$1$includeSourceContents(includeSourceContents);
  24943. if (type$.Map_String_dynamic._is(sourceMap) && !sourceMap.containsKey$1("sources"))
  24944. sourceMap.$indexSet(0, "sources", A._setArrayType([], type$.JSArray_String));
  24945. loadedUrls = A.toJSArray(result._evaluate._0.map$1$1(0, A.utils3__dartToJSUrl$closure(), type$.nullable_Object));
  24946. t1 = t1._0;
  24947. return sourceMap == null ? {css: t1, loadedUrls: loadedUrls} : {css: t1, sourceMap: A.jsify0(sourceMap), loadedUrls: loadedUrls};
  24948. },
  24949. _wrapAsyncSassExceptions(promise, ascii, color) {
  24950. return J.then$2$x(promise, null, A.allowInterop(new A._wrapAsyncSassExceptions_closure(color, ascii)));
  24951. },
  24952. _parseOutputStyle0(style) {
  24953. var t1;
  24954. $label0$0: {
  24955. if (style == null || "expanded" === style) {
  24956. t1 = B.OutputStyle_00;
  24957. break $label0$0;
  24958. }
  24959. if ("compressed" === style) {
  24960. t1 = B.OutputStyle_10;
  24961. break $label0$0;
  24962. }
  24963. t1 = A.jsThrow(new self.Error('Unknown output style "' + A.S(style) + '".'));
  24964. }
  24965. return t1;
  24966. },
  24967. _parseAsyncImporter(importer) {
  24968. var t1, canonicalize, load, _0_0;
  24969. if (importer instanceof A.NodePackageImporter0)
  24970. return importer;
  24971. if (importer == null)
  24972. A.jsThrow(new self.Error("Importers may not be null."));
  24973. type$.JSImporter._as(importer);
  24974. t1 = J.getInterceptor$x(importer);
  24975. canonicalize = t1.get$canonicalize(importer);
  24976. load = t1.get$load(importer);
  24977. _0_0 = t1.get$findFileUrl(importer);
  24978. if (_0_0 != null)
  24979. if (canonicalize != null || load != null)
  24980. A.jsThrow(new self.Error(string$.An_impa));
  24981. else
  24982. return new A.JSToDartAsyncFileImporter(_0_0);
  24983. else if (canonicalize == null || load == null)
  24984. A.jsThrow(new self.Error(string$.An_impu));
  24985. else {
  24986. t1 = A._normalizeNonCanonicalSchemes(t1.get$nonCanonicalScheme(importer));
  24987. t1 = t1 == null ? B.Set_empty7 : A.Set_Set$unmodifiable(t1, type$.String);
  24988. t1.forEach$1(0, A.utils4__validateUrlScheme$closure());
  24989. return new A.JSToDartAsyncImporter(canonicalize, load, t1);
  24990. }
  24991. },
  24992. _parseImporter0(importer) {
  24993. var t1, canonicalize, load, _0_0;
  24994. if (importer instanceof A.NodePackageImporter0)
  24995. return importer;
  24996. if (importer == null)
  24997. A.jsThrow(new self.Error("Importers may not be null."));
  24998. type$.JSImporter._as(importer);
  24999. t1 = J.getInterceptor$x(importer);
  25000. canonicalize = t1.get$canonicalize(importer);
  25001. load = t1.get$load(importer);
  25002. _0_0 = t1.get$findFileUrl(importer);
  25003. if (_0_0 != null)
  25004. if (canonicalize != null || load != null)
  25005. A.jsThrow(new self.Error(string$.An_impa));
  25006. else
  25007. return new A.JSToDartFileImporter(_0_0);
  25008. else if (canonicalize == null || load == null)
  25009. A.jsThrow(new self.Error(string$.An_impu));
  25010. else {
  25011. t1 = A._normalizeNonCanonicalSchemes(t1.get$nonCanonicalScheme(importer));
  25012. t1 = t1 == null ? B.Set_empty7 : A.Set_Set$unmodifiable(t1, type$.String);
  25013. t1.forEach$1(0, A.utils4__validateUrlScheme$closure());
  25014. return new A.JSToDartImporter(canonicalize, load, t1);
  25015. }
  25016. },
  25017. _normalizeNonCanonicalSchemes(schemes) {
  25018. var t1;
  25019. $label0$0: {
  25020. if (typeof schemes == "string") {
  25021. t1 = A._setArrayType([schemes], type$.JSArray_String);
  25022. break $label0$0;
  25023. }
  25024. if (type$.List_dynamic._is(schemes)) {
  25025. t1 = J.cast$1$0$ax(schemes, type$.String);
  25026. break $label0$0;
  25027. }
  25028. if (schemes == null) {
  25029. t1 = null;
  25030. break $label0$0;
  25031. }
  25032. t1 = A.jsThrow(new self.Error('nonCanonicalScheme must be a string or list of strings, was "' + A.S(schemes) + '"'));
  25033. }
  25034. return t1;
  25035. },
  25036. _simplifyValue(value) {
  25037. var _0_1, t1, t2, _0_4, _0_3, _0_4_isSet, _0_5, _0_40, _0_8, first, _0_10, min, _null = null;
  25038. $label1$1: {
  25039. if (value instanceof A.SassCalculation0) {
  25040. _0_1 = value.name;
  25041. t1 = value.$arguments;
  25042. t2 = A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Object>");
  25043. _0_4 = A.List_List$of(new A.MappedListIterable(t1, A.compile___simplifyCalcArg$closure(), t2), true, t2._eval$1("ListIterable.E"));
  25044. $label0$0: {
  25045. _0_3 = "calc" === _0_1;
  25046. _0_4_isSet = _0_3;
  25047. _0_5 = _null;
  25048. _0_40 = _null;
  25049. if (_0_4_isSet) {
  25050. _0_5 = _0_4.length;
  25051. t1 = _0_5;
  25052. _0_40 = _0_4;
  25053. t1 = t1 === 1;
  25054. } else
  25055. t1 = false;
  25056. if (t1) {
  25057. _0_8 = (_0_4_isSet ? _0_40 : _0_4)[0];
  25058. first = _0_8;
  25059. type$.Value_2._as(first);
  25060. t1 = first;
  25061. break $label0$0;
  25062. }
  25063. if (_0_3)
  25064. A.throwExpression(A.ArgumentError$("calc() requires exactly one argument.", _null));
  25065. _0_10 = "clamp" === _0_1;
  25066. t1 = _0_10;
  25067. if (t1) {
  25068. if (_0_4_isSet)
  25069. t1 = _0_5;
  25070. else {
  25071. _0_5 = _0_4.length;
  25072. t1 = _0_5;
  25073. _0_40 = _0_4;
  25074. _0_4_isSet = true;
  25075. }
  25076. t1 = t1 === 3;
  25077. } else
  25078. t1 = false;
  25079. if (t1) {
  25080. if (_0_4_isSet)
  25081. t1 = _0_40;
  25082. else {
  25083. t1 = _0_4;
  25084. _0_40 = t1;
  25085. _0_4_isSet = true;
  25086. }
  25087. _0_8 = t1[0];
  25088. min = _0_8;
  25089. if (_0_4_isSet)
  25090. t1 = _0_40;
  25091. else {
  25092. t1 = _0_4;
  25093. _0_40 = t1;
  25094. _0_4_isSet = true;
  25095. }
  25096. value = t1[1];
  25097. t1 = A.SassCalculation_clamp0(min, value, (_0_4_isSet ? _0_40 : _0_4)[2]);
  25098. break $label0$0;
  25099. }
  25100. if (_0_10)
  25101. A.throwExpression(A.ArgumentError$("clamp() requires exactly 3 arguments.", _null));
  25102. if ("min" === _0_1) {
  25103. t1 = A.SassCalculation_min0(_0_4_isSet ? _0_40 : _0_4);
  25104. break $label0$0;
  25105. }
  25106. if ("max" === _0_1) {
  25107. t1 = A.SassCalculation_max0(_0_4_isSet ? _0_40 : _0_4);
  25108. break $label0$0;
  25109. }
  25110. t1 = A.throwExpression(A.ArgumentError$('"' + _0_1 + '" is not a recognized calculation type.', _null));
  25111. }
  25112. break $label1$1;
  25113. }
  25114. t1 = value;
  25115. break $label1$1;
  25116. }
  25117. return t1;
  25118. },
  25119. _simplifyCalcArg(value) {
  25120. var t1;
  25121. $label0$0: {
  25122. if (value instanceof A.SassCalculation0) {
  25123. t1 = A._simplifyValue(value);
  25124. break $label0$0;
  25125. }
  25126. if (value instanceof A.CalculationOperation0) {
  25127. t1 = A.SassCalculation_operateInternal0(value._calculation0$_operator, A._simplifyCalcArg(value._calculation0$_left), A._simplifyCalcArg(value._calculation0$_right), false, true);
  25128. break $label0$0;
  25129. }
  25130. t1 = value;
  25131. break $label0$0;
  25132. }
  25133. return t1;
  25134. },
  25135. _parseFunctions0(functions, asynch) {
  25136. var result;
  25137. if (functions == null)
  25138. return B.List_empty26;
  25139. result = A._setArrayType([], type$.JSArray_AsyncCallable_2);
  25140. A.jsForEach(functions, new A._parseFunctions_closure0(asynch, result));
  25141. return result;
  25142. },
  25143. compileAsync_closure: function compileAsync_closure(t0, t1, t2, t3) {
  25144. var _ = this;
  25145. _.path = t0;
  25146. _.color = t1;
  25147. _.options = t2;
  25148. _.logger = t3;
  25149. },
  25150. compileAsync__closure: function compileAsync__closure() {
  25151. },
  25152. compileStringAsync_closure: function compileStringAsync_closure(t0, t1, t2, t3) {
  25153. var _ = this;
  25154. _.text = t0;
  25155. _.options = t1;
  25156. _.color = t2;
  25157. _.logger = t3;
  25158. },
  25159. compileStringAsync__closure: function compileStringAsync__closure() {
  25160. },
  25161. compileStringAsync__closure0: function compileStringAsync__closure0() {
  25162. },
  25163. _wrapAsyncSassExceptions_closure: function _wrapAsyncSassExceptions_closure(t0, t1) {
  25164. this.color = t0;
  25165. this.ascii = t1;
  25166. },
  25167. _parseFunctions_closure0: function _parseFunctions_closure0(t0, t1) {
  25168. this.asynch = t0;
  25169. this.result = t1;
  25170. },
  25171. _parseFunctions__closure2: function _parseFunctions__closure2(t0, t1) {
  25172. this.callback = t0;
  25173. this.callable = t1;
  25174. },
  25175. _parseFunctions___closure6: function _parseFunctions___closure6(t0, t1) {
  25176. this.callback = t0;
  25177. this.$arguments = t1;
  25178. },
  25179. _parseFunctions__closure3: function _parseFunctions__closure3(t0, t1) {
  25180. this.callback = t0;
  25181. this.callable = t1;
  25182. },
  25183. _parseFunctions___closure5: function _parseFunctions___closure5(t0, t1) {
  25184. this.callback = t0;
  25185. this.$arguments = t1;
  25186. },
  25187. nodePackageImporterClass_closure: function nodePackageImporterClass_closure() {
  25188. },
  25189. nodePackageImporterClass__closure: function nodePackageImporterClass__closure() {
  25190. },
  25191. compile(path, charset, fatalDeprecations, functions, futureDeprecations, importCache, indentWidth, lineFeed, logger, nodeImporter, quietDeps, silenceDeprecations, sourceMap, style, syntax, useSpaces, verbose) {
  25192. var t3, t4, t0, stylesheet, result, _null = null,
  25193. t1 = type$.Deprecation_3,
  25194. t2 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
  25195. if (silenceDeprecations != null)
  25196. t2.addAll$1(0, silenceDeprecations);
  25197. t3 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
  25198. if (fatalDeprecations != null)
  25199. t3.addAll$1(0, fatalDeprecations);
  25200. t4 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
  25201. if (futureDeprecations != null)
  25202. t4.addAll$1(0, futureDeprecations);
  25203. logger = new A.DeprecationProcessingLogger0(A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.int), logger, t2, t3, t4, !verbose);
  25204. logger.validate$0();
  25205. t1 = nodeImporter == null;
  25206. if (t1)
  25207. t2 = syntax == null || syntax === A.Syntax_forPath0(path);
  25208. else
  25209. t2 = false;
  25210. if (t2) {
  25211. if (importCache == null)
  25212. importCache = A.ImportCache$none();
  25213. t2 = $.$get$FilesystemImporter_cwd0();
  25214. t3 = A.isNodeJs() ? self.process : _null;
  25215. if (!J.$eq$(t3 == null ? _null : J.get$platform$x(t3), "win32")) {
  25216. t3 = A.isNodeJs() ? self.process : _null;
  25217. t3 = J.$eq$(t3 == null ? _null : J.get$platform$x(t3), "darwin");
  25218. } else
  25219. t3 = true;
  25220. if (t3) {
  25221. t3 = $.$get$context();
  25222. t4 = A._realCasePath0(A.absolute(t3.normalize$1(path), _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null));
  25223. t0 = t4;
  25224. t4 = t3;
  25225. t3 = t0;
  25226. } else {
  25227. t3 = $.$get$context();
  25228. t4 = t3.canonicalize$1(0, path);
  25229. t0 = t4;
  25230. t4 = t3;
  25231. t3 = t0;
  25232. }
  25233. t4 = importCache.importCanonical$3$originalUrl(t2, t4.toUri$1(t3), t4.toUri$1(path));
  25234. t4.toString;
  25235. stylesheet = t4;
  25236. } else {
  25237. t2 = A.readFile0(path);
  25238. t3 = syntax == null ? A.Syntax_forPath0(path) : syntax;
  25239. stylesheet = A.Stylesheet_Stylesheet$parse0(t2, t3, $.$get$context().toUri$1(path));
  25240. }
  25241. result = A._compileStylesheet1(stylesheet, logger, importCache, nodeImporter, $.$get$FilesystemImporter_cwd0(), functions, style, useSpaces, indentWidth, lineFeed, quietDeps, sourceMap, charset);
  25242. logger.summarize$1$js(!t1);
  25243. return result;
  25244. },
  25245. compileString(source, charset, fatalDeprecations, functions, futureDeprecations, importCache, importer, indentWidth, lineFeed, logger, nodeImporter, quietDeps, silenceDeprecations, sourceMap, style, syntax, url, useSpaces, verbose) {
  25246. var t3, t4, stylesheet, result,
  25247. t1 = type$.Deprecation_3,
  25248. t2 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
  25249. if (silenceDeprecations != null)
  25250. t2.addAll$1(0, silenceDeprecations);
  25251. t3 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
  25252. if (fatalDeprecations != null)
  25253. t3.addAll$1(0, fatalDeprecations);
  25254. t4 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
  25255. if (futureDeprecations != null)
  25256. t4.addAll$1(0, futureDeprecations);
  25257. logger = new A.DeprecationProcessingLogger0(A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.int), logger, t2, t3, t4, !verbose);
  25258. logger.validate$0();
  25259. stylesheet = A.Stylesheet_Stylesheet$parse0(source, syntax == null ? B.Syntax_SCSS_scss0 : syntax, url);
  25260. if (importer == null)
  25261. t1 = A.isBrowser() ? new A.NoOpImporter0() : $.$get$FilesystemImporter_cwd0();
  25262. else
  25263. t1 = importer;
  25264. result = A._compileStylesheet1(stylesheet, logger, importCache, nodeImporter, t1, functions, style, useSpaces, indentWidth, lineFeed, quietDeps, sourceMap, charset);
  25265. logger.summarize$1$js(nodeImporter != null);
  25266. return result;
  25267. },
  25268. _compileStylesheet1(stylesheet, logger, importCache, nodeImporter, importer, functions, style, useSpaces, indentWidth, lineFeed, quietDeps, sourceMap, charset) {
  25269. var evaluateResult, serializeResult, resultSourceMap;
  25270. if (nodeImporter != null)
  25271. A.WarnForDeprecation_warnForDeprecation0(logger, B.Deprecation_2No, string$.The_le, null, null);
  25272. evaluateResult = A._EvaluateVisitor$1(functions, importCache, logger, nodeImporter, quietDeps, sourceMap).run$2(0, importer, stylesheet);
  25273. serializeResult = A.serialize0(evaluateResult._1, charset, indentWidth, false, lineFeed, logger, sourceMap, style, useSpaces);
  25274. resultSourceMap = serializeResult._1;
  25275. if (resultSourceMap != null && importCache != null)
  25276. A.mapInPlace0(resultSourceMap.urls, new A._compileStylesheet_closure1(stylesheet, importCache));
  25277. return new A.CompileResult0(evaluateResult, serializeResult);
  25278. },
  25279. _compileStylesheet_closure1: function _compileStylesheet_closure1(t0, t1) {
  25280. this.stylesheet = t0;
  25281. this.importCache = t1;
  25282. },
  25283. CompileOptions: function CompileOptions() {
  25284. },
  25285. CompileStringOptions: function CompileStringOptions() {
  25286. },
  25287. NodeCompileResult: function NodeCompileResult() {
  25288. },
  25289. CompileResult0: function CompileResult0(t0, t1) {
  25290. this._evaluate = t0;
  25291. this._compile_result$_serialize = t1;
  25292. },
  25293. initCompiler() {
  25294. return new A.Compiler();
  25295. },
  25296. initAsyncCompiler() {
  25297. return A.futureToPromise0(new A.initAsyncCompiler_closure().call$0());
  25298. },
  25299. Compiler: function Compiler() {
  25300. this._disposed = false;
  25301. },
  25302. AsyncCompiler: function AsyncCompiler(t0) {
  25303. this.compilations = t0;
  25304. this._disposed = false;
  25305. },
  25306. AsyncCompiler_addCompilation_closure: function AsyncCompiler_addCompilation_closure() {
  25307. },
  25308. compilerClass_closure: function compilerClass_closure() {
  25309. },
  25310. compilerClass__closure: function compilerClass__closure() {
  25311. },
  25312. compilerClass__closure0: function compilerClass__closure0() {
  25313. },
  25314. compilerClass__closure1: function compilerClass__closure1() {
  25315. },
  25316. compilerClass__closure2: function compilerClass__closure2() {
  25317. },
  25318. asyncCompilerClass_closure: function asyncCompilerClass_closure() {
  25319. },
  25320. asyncCompilerClass__closure: function asyncCompilerClass__closure() {
  25321. },
  25322. asyncCompilerClass__closure0: function asyncCompilerClass__closure0() {
  25323. },
  25324. asyncCompilerClass__closure1: function asyncCompilerClass__closure1() {
  25325. },
  25326. asyncCompilerClass__closure2: function asyncCompilerClass__closure2() {
  25327. },
  25328. asyncCompilerClass___closure: function asyncCompilerClass___closure(t0) {
  25329. this.self = t0;
  25330. },
  25331. initAsyncCompiler_closure: function initAsyncCompiler_closure() {
  25332. },
  25333. ComplexSassNumber0: function ComplexSassNumber0(t0, t1, t2, t3) {
  25334. var _ = this;
  25335. _._complex0$_numeratorUnits = t0;
  25336. _._complex0$_denominatorUnits = t1;
  25337. _._number1$_value = t2;
  25338. _.hashCache = null;
  25339. _.asSlash = t3;
  25340. },
  25341. ComplexSelector$0(leadingCombinators, components, span, lineBreak) {
  25342. var t1 = A.List_List$unmodifiable(leadingCombinators, type$.CssValue_Combinator_2),
  25343. t2 = A.List_List$unmodifiable(components, type$.ComplexSelectorComponent_2);
  25344. if (t1.length === 0 && t2.length === 0)
  25345. A.throwExpression(A.ArgumentError$(string$.leadin, null));
  25346. return new A.ComplexSelector0(t1, t2, lineBreak, span);
  25347. },
  25348. ComplexSelector0: function ComplexSelector0(t0, t1, t2, t3) {
  25349. var _ = this;
  25350. _.leadingCombinators = t0;
  25351. _.components = t1;
  25352. _.lineBreak = t2;
  25353. _._complex$__ComplexSelector_specificity_FI = $;
  25354. _.span = t3;
  25355. },
  25356. ComplexSelector_specificity_closure0: function ComplexSelector_specificity_closure0() {
  25357. },
  25358. ComplexSelectorComponent0: function ComplexSelectorComponent0(t0, t1, t2) {
  25359. this.selector = t0;
  25360. this.combinators = t1;
  25361. this.span = t2;
  25362. },
  25363. ComplexSelectorComponent_toString_closure0: function ComplexSelectorComponent_toString_closure0() {
  25364. },
  25365. CompoundSelector$0(components, span) {
  25366. var t1 = A.List_List$unmodifiable(components, type$.SimpleSelector_2);
  25367. if (t1.length === 0)
  25368. A.throwExpression(A.ArgumentError$("components may not be empty.", null));
  25369. return new A.CompoundSelector0(t1, span);
  25370. },
  25371. CompoundSelector0: function CompoundSelector0(t0, t1) {
  25372. var _ = this;
  25373. _.components = t0;
  25374. _._compound$__CompoundSelector_hasComplicatedSuperselectorSemantics_FI = _._compound$__CompoundSelector_specificity_FI = $;
  25375. _.span = t1;
  25376. },
  25377. CompoundSelector_specificity_closure0: function CompoundSelector_specificity_closure0() {
  25378. },
  25379. CompoundSelector_hasComplicatedSuperselectorSemantics_closure0: function CompoundSelector_hasComplicatedSuperselectorSemantics_closure0() {
  25380. },
  25381. Configuration0: function Configuration0(t0, t1) {
  25382. this._configuration0$_values = t0;
  25383. this._configuration0$__originalConfiguration = t1;
  25384. },
  25385. ExplicitConfiguration0: function ExplicitConfiguration0(t0, t1, t2) {
  25386. this.nodeWithSpan = t0;
  25387. this._configuration0$_values = t1;
  25388. this._configuration0$__originalConfiguration = t2;
  25389. },
  25390. ConfiguredValue0: function ConfiguredValue0(t0, t1, t2) {
  25391. this.value = t0;
  25392. this.configurationSpan = t1;
  25393. this.assignmentNode = t2;
  25394. },
  25395. ConfiguredVariable0: function ConfiguredVariable0(t0, t1, t2, t3) {
  25396. var _ = this;
  25397. _.name = t0;
  25398. _.expression = t1;
  25399. _.isGuarded = t2;
  25400. _.span = t3;
  25401. },
  25402. ContentBlock$0($arguments, children, span) {
  25403. var _s8_ = "@content",
  25404. t1 = A.stringReplaceAllUnchecked(_s8_, "_", "-"),
  25405. t2 = A.List_List$unmodifiable(children, type$.Statement_2),
  25406. t3 = B.JSArray_methods.any$1(t2, new A.ParentStatement_closure0());
  25407. return new A.ContentBlock0(t1, _s8_, $arguments, span, t2, t3);
  25408. },
  25409. ContentBlock0: function ContentBlock0(t0, t1, t2, t3, t4, t5) {
  25410. var _ = this;
  25411. _.name = t0;
  25412. _.originalName = t1;
  25413. _.$arguments = t2;
  25414. _.span = t3;
  25415. _.children = t4;
  25416. _.hasDeclarations = t5;
  25417. },
  25418. ContentRule0: function ContentRule0(t0, t1) {
  25419. this.$arguments = t0;
  25420. this.span = t1;
  25421. },
  25422. _disallowedFunctionNames_closure0: function _disallowedFunctionNames_closure0() {
  25423. },
  25424. CssParser0: function CssParser0(t0, t1, t2, t3) {
  25425. var _ = this;
  25426. _._stylesheet0$_isUseAllowed = true;
  25427. _._stylesheet0$_inExpression = _._stylesheet0$_inParentheses = _._stylesheet0$_inStyleRule = _._stylesheet0$_inUnknownAtRule = _._stylesheet0$_inControlDirective = _._stylesheet0$_inContentBlock = _._stylesheet0$_inMixin = false;
  25428. _._stylesheet0$_globalVariables = t0;
  25429. _.warnings = t1;
  25430. _.lastSilentComment = null;
  25431. _.scanner = t2;
  25432. _._parser1$_interpolationMap = t3;
  25433. },
  25434. DebugRule0: function DebugRule0(t0, t1) {
  25435. this.expression = t0;
  25436. this.span = t1;
  25437. },
  25438. ModifiableCssDeclaration$0($name, value, span, interleavedRules, parsedAsCustomProperty, trace, valueSpanForMap) {
  25439. var t3,
  25440. t1 = interleavedRules == null ? B.List_empty23 : A.List_List$unmodifiable(interleavedRules, type$.CssStyleRule_2),
  25441. t2 = valueSpanForMap == null ? value.span : valueSpanForMap;
  25442. if (parsedAsCustomProperty)
  25443. if (!J.startsWith$1$s($name.value, "--"))
  25444. A.throwExpression(A.ArgumentError$(string$.parsed, null));
  25445. else {
  25446. t3 = value.value;
  25447. if (!(t3 instanceof A.SassString0))
  25448. A.throwExpression(A.ArgumentError$(string$.If_par + value.toString$0(0) + "` of type " + A.getRuntimeTypeOfDartObject(t3).toString$0(0) + ").", null));
  25449. }
  25450. return new A.ModifiableCssDeclaration0($name, value, parsedAsCustomProperty, t1, trace, t2, span);
  25451. },
  25452. ModifiableCssDeclaration0: function ModifiableCssDeclaration0(t0, t1, t2, t3, t4, t5, t6) {
  25453. var _ = this;
  25454. _.name = t0;
  25455. _.value = t1;
  25456. _.parsedAsCustomProperty = t2;
  25457. _.interleavedRules = t3;
  25458. _.trace = t4;
  25459. _.valueSpanForMap = t5;
  25460. _.span = t6;
  25461. _._node$_indexInParent = _._node$_parent = null;
  25462. _.isGroupEnd = false;
  25463. },
  25464. Declaration$0($name, value, span) {
  25465. return new A.Declaration0($name, value, span, null, false);
  25466. },
  25467. Declaration$nested0($name, children, span, value) {
  25468. var t1 = A.List_List$unmodifiable(children, type$.Statement_2),
  25469. t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure0());
  25470. return new A.Declaration0($name, value, span, t1, t2);
  25471. },
  25472. Declaration0: function Declaration0(t0, t1, t2, t3, t4) {
  25473. var _ = this;
  25474. _.name = t0;
  25475. _.value = t1;
  25476. _.span = t2;
  25477. _.children = t3;
  25478. _.hasDeclarations = t4;
  25479. },
  25480. SupportsDeclaration0: function SupportsDeclaration0(t0, t1, t2) {
  25481. this.name = t0;
  25482. this.value = t1;
  25483. this.span = t2;
  25484. },
  25485. Deprecation_fromId0(id) {
  25486. return A.IterableExtension_firstWhereOrNull(B.List_31K, new A.Deprecation_fromId_closure0(id));
  25487. },
  25488. Deprecation_forVersion0(version) {
  25489. var t2, _i, deprecation, $self, t3,
  25490. t1 = A.LinkedHashSet_LinkedHashSet$_empty(type$.Deprecation_3);
  25491. for (t2 = A.VersionRange_VersionRange(true, version).get$allows(), _i = 0; _i < 24; ++_i) {
  25492. deprecation = B.List_31K[_i];
  25493. $self = deprecation._deprecation$_deprecatedIn;
  25494. t3 = $self == null ? null : A.Version___parse_tearOff($self);
  25495. t3 = t3 == null ? null : t2.call$1(t3);
  25496. if (t3 == null ? false : t3)
  25497. t1.add$1(0, deprecation);
  25498. }
  25499. return t1;
  25500. },
  25501. Deprecation0: function Deprecation0(t0, t1, t2, t3) {
  25502. var _ = this;
  25503. _.id = t0;
  25504. _._deprecation$_deprecatedIn = t1;
  25505. _.description = t2;
  25506. _._name = t3;
  25507. },
  25508. Deprecation_fromId_closure0: function Deprecation_fromId_closure0(t0) {
  25509. this.id = t0;
  25510. },
  25511. DeprecationProcessingLogger0: function DeprecationProcessingLogger0(t0, t1, t2, t3, t4, t5) {
  25512. var _ = this;
  25513. _._deprecation_processing$_warningCounts = t0;
  25514. _._deprecation_processing$_inner = t1;
  25515. _.silenceDeprecations = t2;
  25516. _.fatalDeprecations = t3;
  25517. _.futureDeprecations = t4;
  25518. _.limitRepetition = t5;
  25519. },
  25520. DeprecationProcessingLogger_summarize_closure1: function DeprecationProcessingLogger_summarize_closure1() {
  25521. },
  25522. DeprecationProcessingLogger_summarize_closure2: function DeprecationProcessingLogger_summarize_closure2() {
  25523. },
  25524. parseDeprecations(logger, deprecations, supportVersions) {
  25525. if (deprecations == null)
  25526. return null;
  25527. return new A.parseDeprecations_closure(deprecations, logger, supportVersions).call$0();
  25528. },
  25529. Deprecation1: function Deprecation1() {
  25530. },
  25531. deprecations_closure: function deprecations_closure(t0) {
  25532. this.deprecation = t0;
  25533. },
  25534. parseDeprecations_closure: function parseDeprecations_closure(t0, t1, t2) {
  25535. this.deprecations = t0;
  25536. this.logger = t1;
  25537. this.supportVersions = t2;
  25538. },
  25539. versionClass_closure: function versionClass_closure() {
  25540. },
  25541. versionClass__closure: function versionClass__closure() {
  25542. },
  25543. versionClass__closure0: function versionClass__closure0() {
  25544. },
  25545. DisplayP3ColorSpace0: function DisplayP3ColorSpace0(t0, t1) {
  25546. this.name = t0;
  25547. this._space$_channels = t1;
  25548. },
  25549. DynamicImport0: function DynamicImport0(t0, t1) {
  25550. this.urlString = t0;
  25551. this.span = t1;
  25552. },
  25553. EachRule$0(variables, list, children, span) {
  25554. var t1 = A.List_List$unmodifiable(variables, type$.String),
  25555. t2 = A.List_List$unmodifiable(children, type$.Statement_2),
  25556. t3 = B.JSArray_methods.any$1(t2, new A.ParentStatement_closure0());
  25557. return new A.EachRule0(t1, list, span, t2, t3);
  25558. },
  25559. EachRule0: function EachRule0(t0, t1, t2, t3, t4) {
  25560. var _ = this;
  25561. _.variables = t0;
  25562. _.list = t1;
  25563. _.span = t2;
  25564. _.children = t3;
  25565. _.hasDeclarations = t4;
  25566. },
  25567. EachRule_toString_closure0: function EachRule_toString_closure0() {
  25568. },
  25569. EmptyExtensionStore0: function EmptyExtensionStore0() {
  25570. },
  25571. Environment$0() {
  25572. var t1 = type$.String,
  25573. t2 = type$.Module_Callable_2,
  25574. t3 = type$.AstNode_2,
  25575. t4 = type$.int,
  25576. t5 = type$.Callable_2,
  25577. t6 = type$.JSArray_Map_String_Callable_2;
  25578. return new A.Environment0(A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), A.LinkedHashMap_LinkedHashMap$_empty(t1, t3), A.LinkedHashMap_LinkedHashMap$_empty(t2, t3), A.LinkedHashMap_LinkedHashMap$_empty(t2, t3), null, null, A._setArrayType([], type$.JSArray_Module_Callable_2), A._setArrayType([A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Value_2)], type$.JSArray_Map_String_Value_2), A._setArrayType([A.LinkedHashMap_LinkedHashMap$_empty(t1, t3)], type$.JSArray_Map_String_AstNode_2), A.LinkedHashMap_LinkedHashMap$_empty(t1, t4), A._setArrayType([A.LinkedHashMap_LinkedHashMap$_empty(t1, t5)], t6), A.LinkedHashMap_LinkedHashMap$_empty(t1, t4), A._setArrayType([A.LinkedHashMap_LinkedHashMap$_empty(t1, t5)], t6), A.LinkedHashMap_LinkedHashMap$_empty(t1, t4), null);
  25579. },
  25580. Environment$_0(_modules, _namespaceNodes, _globalModules, _importedModules, _forwardedModules, _nestedForwardedModules, _allModules, _variables, _variableNodes, _functions, _mixins, _content) {
  25581. var t1 = type$.String,
  25582. t2 = type$.int;
  25583. return new A.Environment0(_modules, _namespaceNodes, _globalModules, _importedModules, _forwardedModules, _nestedForwardedModules, _allModules, _variables, _variableNodes, A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _functions, A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _mixins, A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), _content);
  25584. },
  25585. _EnvironmentModule__EnvironmentModule1(environment, css, preModuleComments, extensionStore, forwarded) {
  25586. var t1, t2, t3, t4, t5, t6, module, result, t7;
  25587. if (forwarded == null)
  25588. forwarded = B.Set_empty4;
  25589. t1 = type$.dynamic;
  25590. t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  25591. for (t2 = type$.Module_Callable_2, t3 = type$.List_CssComment_2, t4 = A.MapExtensions_get_pairs0(preModuleComments, t2, t3), t4 = t4.get$iterator(t4), t5 = type$.CssComment_2; t4.moveNext$0();) {
  25592. t6 = t4.get$current(t4);
  25593. module = t6._0;
  25594. result = A.List_List$from(t6._1, false, t5);
  25595. result.fixed$length = Array;
  25596. result.immutable$list = Array;
  25597. t1.$indexSet(0, module, result);
  25598. }
  25599. t1 = A.ConstantMap_ConstantMap$from(t1, t2, t3);
  25600. t2 = A._EnvironmentModule__makeModulesByVariable1(forwarded);
  25601. t3 = A._EnvironmentModule__memberMap1(B.JSArray_methods.get$first(environment._environment0$_variables), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure11(), type$.Map_String_Value_2), type$.Value_2);
  25602. t4 = A._EnvironmentModule__memberMap1(B.JSArray_methods.get$first(environment._environment0$_variableNodes), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure12(), type$.Map_String_AstNode_2), type$.AstNode_2);
  25603. t5 = type$.Map_String_Callable_2;
  25604. t6 = type$.Callable_2;
  25605. t7 = A._EnvironmentModule__memberMap1(B.JSArray_methods.get$first(environment._environment0$_functions), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure13(), t5), t6);
  25606. t6 = A._EnvironmentModule__memberMap1(B.JSArray_methods.get$first(environment._environment0$_mixins), forwarded.map$1$1(0, new A._EnvironmentModule__EnvironmentModule_closure14(), t5), t6);
  25607. t5 = J.get$isNotEmpty$asx(css.get$children(css)) || preModuleComments.get$isNotEmpty(preModuleComments) || B.JSArray_methods.any$1(environment._environment0$_allModules, new A._EnvironmentModule__EnvironmentModule_closure15());
  25608. return A._EnvironmentModule$_1(environment, css, t1, extensionStore, t2, t3, t4, t7, t6, t5, !extensionStore.get$isEmpty(extensionStore) || B.JSArray_methods.any$1(environment._environment0$_allModules, new A._EnvironmentModule__EnvironmentModule_closure16()));
  25609. },
  25610. _EnvironmentModule__makeModulesByVariable1(forwarded) {
  25611. var modulesByVariable, t1, t2, t3, t4, t5;
  25612. if (forwarded.get$isEmpty(forwarded))
  25613. return B.Map_empty10;
  25614. modulesByVariable = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.Module_Callable_2);
  25615. for (t1 = forwarded.get$iterator(forwarded); t1.moveNext$0();) {
  25616. t2 = t1.get$current(t1);
  25617. if (t2 instanceof A._EnvironmentModule1) {
  25618. for (t3 = t2._environment0$_modulesByVariable, t3 = t3.get$values(t3), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  25619. t4 = t3.get$current(t3);
  25620. t5 = t4.get$variables();
  25621. A.setAll0(modulesByVariable, t5.get$keys(t5), t4);
  25622. }
  25623. A.setAll0(modulesByVariable, J.get$keys$z(B.JSArray_methods.get$first(t2._environment0$_environment._environment0$_variables)), t2);
  25624. } else {
  25625. t3 = t2.get$variables();
  25626. A.setAll0(modulesByVariable, t3.get$keys(t3), t2);
  25627. }
  25628. }
  25629. return modulesByVariable;
  25630. },
  25631. _EnvironmentModule__memberMap1(localMap, otherMaps, $V) {
  25632. var t1, t2, t3;
  25633. localMap = new A.PublicMemberMapView0(localMap, $V._eval$1("PublicMemberMapView0<0>"));
  25634. if (otherMaps.get$isEmpty(otherMaps))
  25635. return localMap;
  25636. t1 = A._setArrayType([], $V._eval$1("JSArray<Map<String,0>>"));
  25637. for (t2 = otherMaps.get$iterator(otherMaps); t2.moveNext$0();) {
  25638. t3 = t2.get$current(t2);
  25639. if (t3.get$isNotEmpty(t3))
  25640. t1.push(t3);
  25641. }
  25642. t1.push(localMap);
  25643. if (t1.length === 1)
  25644. return localMap;
  25645. return A.MergedMapView$0(t1, type$.String, $V);
  25646. },
  25647. _EnvironmentModule$_1(_environment, css, preModuleComments, extensionStore, _modulesByVariable, variables, variableNodes, functions, mixins, transitivelyContainsCss, transitivelyContainsExtensions) {
  25648. return new A._EnvironmentModule1(_environment._environment0$_allModules, variables, variableNodes, functions, mixins, extensionStore, css, preModuleComments, transitivelyContainsCss, transitivelyContainsExtensions, _environment, _modulesByVariable);
  25649. },
  25650. Environment0: function Environment0(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14) {
  25651. var _ = this;
  25652. _._environment0$_modules = t0;
  25653. _._environment0$_namespaceNodes = t1;
  25654. _._environment0$_globalModules = t2;
  25655. _._environment0$_importedModules = t3;
  25656. _._environment0$_forwardedModules = t4;
  25657. _._environment0$_nestedForwardedModules = t5;
  25658. _._environment0$_allModules = t6;
  25659. _._environment0$_variables = t7;
  25660. _._environment0$_variableNodes = t8;
  25661. _._environment0$_variableIndices = t9;
  25662. _._environment0$_functions = t10;
  25663. _._environment0$_functionIndices = t11;
  25664. _._environment0$_mixins = t12;
  25665. _._environment0$_mixinIndices = t13;
  25666. _._environment0$_content = t14;
  25667. _._environment0$_inMixin = false;
  25668. _._environment0$_inSemiGlobalScope = true;
  25669. _._environment0$_lastVariableIndex = _._environment0$_lastVariableName = null;
  25670. },
  25671. Environment__getVariableFromGlobalModule_closure0: function Environment__getVariableFromGlobalModule_closure0(t0) {
  25672. this.name = t0;
  25673. },
  25674. Environment_setVariable_closure2: function Environment_setVariable_closure2(t0, t1) {
  25675. this.$this = t0;
  25676. this.name = t1;
  25677. },
  25678. Environment_setVariable_closure3: function Environment_setVariable_closure3(t0) {
  25679. this.name = t0;
  25680. },
  25681. Environment_setVariable_closure4: function Environment_setVariable_closure4(t0, t1) {
  25682. this.$this = t0;
  25683. this.name = t1;
  25684. },
  25685. Environment__getFunctionFromGlobalModule_closure0: function Environment__getFunctionFromGlobalModule_closure0(t0) {
  25686. this.name = t0;
  25687. },
  25688. Environment__getMixinFromGlobalModule_closure0: function Environment__getMixinFromGlobalModule_closure0(t0) {
  25689. this.name = t0;
  25690. },
  25691. Environment_toModule_closure0: function Environment_toModule_closure0() {
  25692. },
  25693. Environment_toDummyModule_closure0: function Environment_toDummyModule_closure0() {
  25694. },
  25695. _EnvironmentModule1: function _EnvironmentModule1(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11) {
  25696. var _ = this;
  25697. _.upstream = t0;
  25698. _.variables = t1;
  25699. _.variableNodes = t2;
  25700. _.functions = t3;
  25701. _.mixins = t4;
  25702. _.extensionStore = t5;
  25703. _.css = t6;
  25704. _.preModuleComments = t7;
  25705. _.transitivelyContainsCss = t8;
  25706. _.transitivelyContainsExtensions = t9;
  25707. _._environment0$_environment = t10;
  25708. _._environment0$_modulesByVariable = t11;
  25709. },
  25710. _EnvironmentModule__EnvironmentModule_closure11: function _EnvironmentModule__EnvironmentModule_closure11() {
  25711. },
  25712. _EnvironmentModule__EnvironmentModule_closure12: function _EnvironmentModule__EnvironmentModule_closure12() {
  25713. },
  25714. _EnvironmentModule__EnvironmentModule_closure13: function _EnvironmentModule__EnvironmentModule_closure13() {
  25715. },
  25716. _EnvironmentModule__EnvironmentModule_closure14: function _EnvironmentModule__EnvironmentModule_closure14() {
  25717. },
  25718. _EnvironmentModule__EnvironmentModule_closure15: function _EnvironmentModule__EnvironmentModule_closure15() {
  25719. },
  25720. _EnvironmentModule__EnvironmentModule_closure16: function _EnvironmentModule__EnvironmentModule_closure16() {
  25721. },
  25722. ErrorRule0: function ErrorRule0(t0, t1) {
  25723. this.expression = t0;
  25724. this.span = t1;
  25725. },
  25726. _EvaluateVisitor$1(functions, importCache, logger, nodeImporter, quietDeps, sourceMap) {
  25727. var t4,
  25728. t1 = type$.Uri,
  25729. t2 = type$.Module_Callable_2,
  25730. t3 = A._setArrayType([], type$.JSArray_Record_2_String_and_AstNode_2);
  25731. if (importCache == null)
  25732. t4 = nodeImporter == null ? A.ImportCache$none() : null;
  25733. else
  25734. t4 = importCache;
  25735. t1 = new A._EvaluateVisitor1(t4, nodeImporter, A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.Callable_2), A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Configuration_2), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.AstNode_2), logger, A.LinkedHashSet_LinkedHashSet$_empty(type$.Record_2_String_and_SourceSpan), quietDeps, sourceMap, A.Environment$0(), A.LinkedHashSet_LinkedHashSet$_empty(t1), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.nullable_AstNode_2), t3, B.Configuration_Map_empty_null0);
  25736. t1._EvaluateVisitor$6$functions$importCache$logger$nodeImporter$quietDeps$sourceMap1(functions, importCache, logger, nodeImporter, quietDeps, sourceMap);
  25737. return t1;
  25738. },
  25739. _EvaluateVisitor1: function _EvaluateVisitor1(t0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15) {
  25740. var _ = this;
  25741. _._evaluate0$_importCache = t0;
  25742. _._nodeImporter = t1;
  25743. _._evaluate0$_builtInFunctions = t2;
  25744. _._evaluate0$_builtInModules = t3;
  25745. _._evaluate0$_modules = t4;
  25746. _._evaluate0$_moduleConfigurations = t5;
  25747. _._evaluate0$_moduleNodes = t6;
  25748. _._evaluate0$_logger = t7;
  25749. _._evaluate0$_warningsEmitted = t8;
  25750. _._evaluate0$_quietDeps = t9;
  25751. _._evaluate0$_sourceMap = t10;
  25752. _._evaluate0$_environment = t11;
  25753. _._evaluate0$_declarationName = _._evaluate0$__parent = _._evaluate0$_mediaQuerySources = _._evaluate0$_mediaQueries = _._evaluate0$_styleRuleIgnoringAtRoot = null;
  25754. _._evaluate0$_member = "root stylesheet";
  25755. _._evaluate0$_importSpan = _._evaluate0$_callableNode = _._evaluate0$_currentCallable = null;
  25756. _._evaluate0$_inSupportsDeclaration = _._evaluate0$_inKeyframes = _._evaluate0$_atRootExcludingStyleRule = _._evaluate0$_inUnknownAtRule = _._evaluate0$_inFunction = false;
  25757. _._evaluate0$_loadedUrls = t12;
  25758. _._evaluate0$_activeModules = t13;
  25759. _._evaluate0$_stack = t14;
  25760. _._evaluate0$_importer = null;
  25761. _._evaluate0$_inDependency = false;
  25762. _._evaluate0$__extensionStore = _._evaluate0$_preModuleComments = _._evaluate0$_outOfOrderImports = _._evaluate0$__endOfImports = _._evaluate0$__root = _._evaluate0$__stylesheet = null;
  25763. _._evaluate0$_configuration = t15;
  25764. },
  25765. _EvaluateVisitor_closure25: function _EvaluateVisitor_closure25(t0) {
  25766. this.$this = t0;
  25767. },
  25768. _EvaluateVisitor_closure26: function _EvaluateVisitor_closure26(t0) {
  25769. this.$this = t0;
  25770. },
  25771. _EvaluateVisitor_closure27: function _EvaluateVisitor_closure27(t0) {
  25772. this.$this = t0;
  25773. },
  25774. _EvaluateVisitor_closure28: function _EvaluateVisitor_closure28(t0) {
  25775. this.$this = t0;
  25776. },
  25777. _EvaluateVisitor_closure29: function _EvaluateVisitor_closure29(t0) {
  25778. this.$this = t0;
  25779. },
  25780. _EvaluateVisitor_closure30: function _EvaluateVisitor_closure30(t0) {
  25781. this.$this = t0;
  25782. },
  25783. _EvaluateVisitor_closure31: function _EvaluateVisitor_closure31(t0) {
  25784. this.$this = t0;
  25785. },
  25786. _EvaluateVisitor_closure32: function _EvaluateVisitor_closure32(t0) {
  25787. this.$this = t0;
  25788. },
  25789. _EvaluateVisitor_closure33: function _EvaluateVisitor_closure33(t0) {
  25790. this.$this = t0;
  25791. },
  25792. _EvaluateVisitor__closure10: function _EvaluateVisitor__closure10(t0, t1, t2) {
  25793. this.$this = t0;
  25794. this.name = t1;
  25795. this.module = t2;
  25796. },
  25797. _EvaluateVisitor_closure34: function _EvaluateVisitor_closure34(t0) {
  25798. this.$this = t0;
  25799. },
  25800. _EvaluateVisitor__closure9: function _EvaluateVisitor__closure9(t0, t1, t2) {
  25801. this.$this = t0;
  25802. this.name = t1;
  25803. this.module = t2;
  25804. },
  25805. _EvaluateVisitor_closure35: function _EvaluateVisitor_closure35(t0) {
  25806. this.$this = t0;
  25807. },
  25808. _EvaluateVisitor_closure36: function _EvaluateVisitor_closure36(t0) {
  25809. this.$this = t0;
  25810. },
  25811. _EvaluateVisitor__closure7: function _EvaluateVisitor__closure7(t0, t1, t2) {
  25812. this.values = t0;
  25813. this.span = t1;
  25814. this.callableNode = t2;
  25815. },
  25816. _EvaluateVisitor__closure8: function _EvaluateVisitor__closure8(t0) {
  25817. this.$this = t0;
  25818. },
  25819. _EvaluateVisitor_closure37: function _EvaluateVisitor_closure37(t0) {
  25820. this.$this = t0;
  25821. },
  25822. _EvaluateVisitor_run_closure1: function _EvaluateVisitor_run_closure1(t0, t1, t2) {
  25823. this.$this = t0;
  25824. this.node = t1;
  25825. this.importer = t2;
  25826. },
  25827. _EvaluateVisitor_run__closure1: function _EvaluateVisitor_run__closure1(t0, t1, t2) {
  25828. this.$this = t0;
  25829. this.importer = t1;
  25830. this.node = t2;
  25831. },
  25832. _EvaluateVisitor__loadModule_closure3: function _EvaluateVisitor__loadModule_closure3(t0, t1) {
  25833. this._box_1 = t0;
  25834. this.callback = t1;
  25835. },
  25836. _EvaluateVisitor__loadModule_closure4: function _EvaluateVisitor__loadModule_closure4(t0, t1, t2, t3, t4, t5, t6) {
  25837. var _ = this;
  25838. _.$this = t0;
  25839. _.url = t1;
  25840. _.nodeWithSpan = t2;
  25841. _.baseUrl = t3;
  25842. _.namesInErrors = t4;
  25843. _.configuration = t5;
  25844. _.callback = t6;
  25845. },
  25846. _EvaluateVisitor__loadModule__closure3: function _EvaluateVisitor__loadModule__closure3(t0, t1) {
  25847. this.$this = t0;
  25848. this.message = t1;
  25849. },
  25850. _EvaluateVisitor__loadModule__closure4: function _EvaluateVisitor__loadModule__closure4(t0, t1, t2) {
  25851. this._box_0 = t0;
  25852. this.callback = t1;
  25853. this.firstLoad = t2;
  25854. },
  25855. _EvaluateVisitor__execute_closure1: function _EvaluateVisitor__execute_closure1(t0, t1, t2, t3, t4, t5, t6) {
  25856. var _ = this;
  25857. _.$this = t0;
  25858. _.importer = t1;
  25859. _.stylesheet = t2;
  25860. _.extensionStore = t3;
  25861. _.configuration = t4;
  25862. _.css = t5;
  25863. _.preModuleComments = t6;
  25864. },
  25865. _EvaluateVisitor__combineCss_closure3: function _EvaluateVisitor__combineCss_closure3() {
  25866. },
  25867. _EvaluateVisitor__combineCss_closure4: function _EvaluateVisitor__combineCss_closure4(t0) {
  25868. this.selectors = t0;
  25869. },
  25870. _EvaluateVisitor__combineCss_visitModule1: function _EvaluateVisitor__combineCss_visitModule1(t0, t1, t2, t3, t4, t5) {
  25871. var _ = this;
  25872. _.$this = t0;
  25873. _.seen = t1;
  25874. _.clone = t2;
  25875. _.css = t3;
  25876. _.imports = t4;
  25877. _.sorted = t5;
  25878. },
  25879. _EvaluateVisitor__extendModules_closure3: function _EvaluateVisitor__extendModules_closure3(t0) {
  25880. this.originalSelectors = t0;
  25881. },
  25882. _EvaluateVisitor__extendModules_closure4: function _EvaluateVisitor__extendModules_closure4() {
  25883. },
  25884. _EvaluateVisitor_visitAtRootRule_closure3: function _EvaluateVisitor_visitAtRootRule_closure3(t0, t1) {
  25885. this.$this = t0;
  25886. this.node = t1;
  25887. },
  25888. _EvaluateVisitor_visitAtRootRule_closure4: function _EvaluateVisitor_visitAtRootRule_closure4(t0, t1) {
  25889. this.$this = t0;
  25890. this.node = t1;
  25891. },
  25892. _EvaluateVisitor__scopeForAtRoot_closure11: function _EvaluateVisitor__scopeForAtRoot_closure11(t0, t1, t2) {
  25893. this.$this = t0;
  25894. this.newParent = t1;
  25895. this.node = t2;
  25896. },
  25897. _EvaluateVisitor__scopeForAtRoot_closure12: function _EvaluateVisitor__scopeForAtRoot_closure12(t0, t1) {
  25898. this.$this = t0;
  25899. this.innerScope = t1;
  25900. },
  25901. _EvaluateVisitor__scopeForAtRoot_closure13: function _EvaluateVisitor__scopeForAtRoot_closure13(t0, t1) {
  25902. this.$this = t0;
  25903. this.innerScope = t1;
  25904. },
  25905. _EvaluateVisitor__scopeForAtRoot__closure1: function _EvaluateVisitor__scopeForAtRoot__closure1(t0, t1) {
  25906. this.innerScope = t0;
  25907. this.callback = t1;
  25908. },
  25909. _EvaluateVisitor__scopeForAtRoot_closure14: function _EvaluateVisitor__scopeForAtRoot_closure14(t0, t1) {
  25910. this.$this = t0;
  25911. this.innerScope = t1;
  25912. },
  25913. _EvaluateVisitor__scopeForAtRoot_closure15: function _EvaluateVisitor__scopeForAtRoot_closure15() {
  25914. },
  25915. _EvaluateVisitor__scopeForAtRoot_closure16: function _EvaluateVisitor__scopeForAtRoot_closure16(t0, t1) {
  25916. this.$this = t0;
  25917. this.innerScope = t1;
  25918. },
  25919. _EvaluateVisitor_visitContentRule_closure1: function _EvaluateVisitor_visitContentRule_closure1(t0, t1) {
  25920. this.$this = t0;
  25921. this.content = t1;
  25922. },
  25923. _EvaluateVisitor_visitDeclaration_closure1: function _EvaluateVisitor_visitDeclaration_closure1(t0, t1) {
  25924. this._box_0 = t0;
  25925. this.$this = t1;
  25926. },
  25927. _EvaluateVisitor_visitEachRule_closure5: function _EvaluateVisitor_visitEachRule_closure5(t0, t1, t2) {
  25928. this._box_0 = t0;
  25929. this.$this = t1;
  25930. this.nodeWithSpan = t2;
  25931. },
  25932. _EvaluateVisitor_visitEachRule_closure6: function _EvaluateVisitor_visitEachRule_closure6(t0, t1, t2) {
  25933. this._box_0 = t0;
  25934. this.$this = t1;
  25935. this.nodeWithSpan = t2;
  25936. },
  25937. _EvaluateVisitor_visitEachRule_closure7: function _EvaluateVisitor_visitEachRule_closure7(t0, t1, t2, t3) {
  25938. var _ = this;
  25939. _.$this = t0;
  25940. _.list = t1;
  25941. _.setVariables = t2;
  25942. _.node = t3;
  25943. },
  25944. _EvaluateVisitor_visitEachRule__closure1: function _EvaluateVisitor_visitEachRule__closure1(t0, t1, t2) {
  25945. this.$this = t0;
  25946. this.setVariables = t1;
  25947. this.node = t2;
  25948. },
  25949. _EvaluateVisitor_visitEachRule___closure1: function _EvaluateVisitor_visitEachRule___closure1(t0) {
  25950. this.$this = t0;
  25951. },
  25952. _EvaluateVisitor_visitAtRule_closure5: function _EvaluateVisitor_visitAtRule_closure5(t0) {
  25953. this.$this = t0;
  25954. },
  25955. _EvaluateVisitor_visitAtRule_closure6: function _EvaluateVisitor_visitAtRule_closure6(t0, t1, t2) {
  25956. this.$this = t0;
  25957. this.name = t1;
  25958. this.children = t2;
  25959. },
  25960. _EvaluateVisitor_visitAtRule__closure1: function _EvaluateVisitor_visitAtRule__closure1(t0, t1) {
  25961. this.$this = t0;
  25962. this.children = t1;
  25963. },
  25964. _EvaluateVisitor_visitAtRule_closure7: function _EvaluateVisitor_visitAtRule_closure7() {
  25965. },
  25966. _EvaluateVisitor_visitForRule_closure9: function _EvaluateVisitor_visitForRule_closure9(t0, t1) {
  25967. this.$this = t0;
  25968. this.node = t1;
  25969. },
  25970. _EvaluateVisitor_visitForRule_closure10: function _EvaluateVisitor_visitForRule_closure10(t0, t1) {
  25971. this.$this = t0;
  25972. this.node = t1;
  25973. },
  25974. _EvaluateVisitor_visitForRule_closure11: function _EvaluateVisitor_visitForRule_closure11(t0) {
  25975. this.fromNumber = t0;
  25976. },
  25977. _EvaluateVisitor_visitForRule_closure12: function _EvaluateVisitor_visitForRule_closure12(t0, t1) {
  25978. this.toNumber = t0;
  25979. this.fromNumber = t1;
  25980. },
  25981. _EvaluateVisitor_visitForRule_closure13: function _EvaluateVisitor_visitForRule_closure13(t0, t1, t2, t3, t4, t5) {
  25982. var _ = this;
  25983. _._box_0 = t0;
  25984. _.$this = t1;
  25985. _.node = t2;
  25986. _.from = t3;
  25987. _.direction = t4;
  25988. _.fromNumber = t5;
  25989. },
  25990. _EvaluateVisitor_visitForRule__closure1: function _EvaluateVisitor_visitForRule__closure1(t0) {
  25991. this.$this = t0;
  25992. },
  25993. _EvaluateVisitor_visitForwardRule_closure3: function _EvaluateVisitor_visitForwardRule_closure3(t0, t1) {
  25994. this.$this = t0;
  25995. this.node = t1;
  25996. },
  25997. _EvaluateVisitor_visitForwardRule_closure4: function _EvaluateVisitor_visitForwardRule_closure4(t0, t1) {
  25998. this.$this = t0;
  25999. this.node = t1;
  26000. },
  26001. _EvaluateVisitor__registerCommentsForModule_closure1: function _EvaluateVisitor__registerCommentsForModule_closure1() {
  26002. },
  26003. _EvaluateVisitor_visitIfRule_closure1: function _EvaluateVisitor_visitIfRule_closure1(t0) {
  26004. this.$this = t0;
  26005. },
  26006. _EvaluateVisitor_visitIfRule__closure1: function _EvaluateVisitor_visitIfRule__closure1(t0, t1) {
  26007. this.$this = t0;
  26008. this.clause = t1;
  26009. },
  26010. _EvaluateVisitor_visitIfRule___closure1: function _EvaluateVisitor_visitIfRule___closure1(t0) {
  26011. this.$this = t0;
  26012. },
  26013. _EvaluateVisitor__visitDynamicImport_closure1: function _EvaluateVisitor__visitDynamicImport_closure1(t0, t1) {
  26014. this.$this = t0;
  26015. this.$import = t1;
  26016. },
  26017. _EvaluateVisitor__visitDynamicImport__closure7: function _EvaluateVisitor__visitDynamicImport__closure7(t0) {
  26018. this.$this = t0;
  26019. },
  26020. _EvaluateVisitor__visitDynamicImport__closure8: function _EvaluateVisitor__visitDynamicImport__closure8() {
  26021. },
  26022. _EvaluateVisitor__visitDynamicImport__closure9: function _EvaluateVisitor__visitDynamicImport__closure9() {
  26023. },
  26024. _EvaluateVisitor__visitDynamicImport__closure10: function _EvaluateVisitor__visitDynamicImport__closure10(t0, t1, t2, t3, t4) {
  26025. var _ = this;
  26026. _._box_0 = t0;
  26027. _.$this = t1;
  26028. _.loadsUserDefinedModules = t2;
  26029. _.environment = t3;
  26030. _.children = t4;
  26031. },
  26032. _EvaluateVisitor__applyMixin_closure3: function _EvaluateVisitor__applyMixin_closure3(t0, t1, t2, t3) {
  26033. var _ = this;
  26034. _.$this = t0;
  26035. _.$arguments = t1;
  26036. _.mixin = t2;
  26037. _.nodeWithSpanWithoutContent = t3;
  26038. },
  26039. _EvaluateVisitor__applyMixin__closure4: function _EvaluateVisitor__applyMixin__closure4(t0, t1, t2, t3) {
  26040. var _ = this;
  26041. _.$this = t0;
  26042. _.$arguments = t1;
  26043. _.mixin = t2;
  26044. _.nodeWithSpanWithoutContent = t3;
  26045. },
  26046. _EvaluateVisitor__applyMixin_closure4: function _EvaluateVisitor__applyMixin_closure4(t0, t1, t2, t3) {
  26047. var _ = this;
  26048. _.$this = t0;
  26049. _.contentCallable = t1;
  26050. _.mixin = t2;
  26051. _.nodeWithSpanWithoutContent = t3;
  26052. },
  26053. _EvaluateVisitor__applyMixin__closure3: function _EvaluateVisitor__applyMixin__closure3(t0, t1, t2) {
  26054. this.$this = t0;
  26055. this.mixin = t1;
  26056. this.nodeWithSpanWithoutContent = t2;
  26057. },
  26058. _EvaluateVisitor__applyMixin___closure1: function _EvaluateVisitor__applyMixin___closure1(t0, t1, t2) {
  26059. this.$this = t0;
  26060. this.mixin = t1;
  26061. this.nodeWithSpanWithoutContent = t2;
  26062. },
  26063. _EvaluateVisitor__applyMixin____closure1: function _EvaluateVisitor__applyMixin____closure1(t0, t1) {
  26064. this.$this = t0;
  26065. this.statement = t1;
  26066. },
  26067. _EvaluateVisitor_visitIncludeRule_closure5: function _EvaluateVisitor_visitIncludeRule_closure5(t0, t1) {
  26068. this.$this = t0;
  26069. this.node = t1;
  26070. },
  26071. _EvaluateVisitor_visitIncludeRule_closure6: function _EvaluateVisitor_visitIncludeRule_closure6(t0) {
  26072. this.$this = t0;
  26073. },
  26074. _EvaluateVisitor_visitIncludeRule_closure7: function _EvaluateVisitor_visitIncludeRule_closure7(t0) {
  26075. this.node = t0;
  26076. },
  26077. _EvaluateVisitor_visitMediaRule_closure5: function _EvaluateVisitor_visitMediaRule_closure5(t0, t1) {
  26078. this.$this = t0;
  26079. this.queries = t1;
  26080. },
  26081. _EvaluateVisitor_visitMediaRule_closure6: function _EvaluateVisitor_visitMediaRule_closure6(t0, t1, t2, t3, t4) {
  26082. var _ = this;
  26083. _.$this = t0;
  26084. _.mergedQueries = t1;
  26085. _.queries = t2;
  26086. _.mergedSources = t3;
  26087. _.node = t4;
  26088. },
  26089. _EvaluateVisitor_visitMediaRule__closure1: function _EvaluateVisitor_visitMediaRule__closure1(t0, t1) {
  26090. this.$this = t0;
  26091. this.node = t1;
  26092. },
  26093. _EvaluateVisitor_visitMediaRule___closure1: function _EvaluateVisitor_visitMediaRule___closure1(t0, t1) {
  26094. this.$this = t0;
  26095. this.node = t1;
  26096. },
  26097. _EvaluateVisitor_visitMediaRule_closure7: function _EvaluateVisitor_visitMediaRule_closure7(t0) {
  26098. this.mergedSources = t0;
  26099. },
  26100. _EvaluateVisitor_visitStyleRule_closure7: function _EvaluateVisitor_visitStyleRule_closure7(t0, t1) {
  26101. this.$this = t0;
  26102. this.node = t1;
  26103. },
  26104. _EvaluateVisitor_visitStyleRule_closure8: function _EvaluateVisitor_visitStyleRule_closure8() {
  26105. },
  26106. _EvaluateVisitor_visitStyleRule_closure10: function _EvaluateVisitor_visitStyleRule_closure10(t0, t1, t2) {
  26107. this.$this = t0;
  26108. this.rule = t1;
  26109. this.node = t2;
  26110. },
  26111. _EvaluateVisitor_visitStyleRule__closure1: function _EvaluateVisitor_visitStyleRule__closure1(t0, t1) {
  26112. this.$this = t0;
  26113. this.node = t1;
  26114. },
  26115. _EvaluateVisitor_visitStyleRule_closure9: function _EvaluateVisitor_visitStyleRule_closure9() {
  26116. },
  26117. _EvaluateVisitor__warnForBogusCombinators_closure1: function _EvaluateVisitor__warnForBogusCombinators_closure1() {
  26118. },
  26119. _EvaluateVisitor_visitSupportsRule_closure3: function _EvaluateVisitor_visitSupportsRule_closure3(t0, t1) {
  26120. this.$this = t0;
  26121. this.node = t1;
  26122. },
  26123. _EvaluateVisitor_visitSupportsRule__closure1: function _EvaluateVisitor_visitSupportsRule__closure1(t0, t1) {
  26124. this.$this = t0;
  26125. this.node = t1;
  26126. },
  26127. _EvaluateVisitor_visitSupportsRule_closure4: function _EvaluateVisitor_visitSupportsRule_closure4() {
  26128. },
  26129. _EvaluateVisitor__visitSupportsCondition_closure1: function _EvaluateVisitor__visitSupportsCondition_closure1(t0, t1) {
  26130. this._box_0 = t0;
  26131. this.$this = t1;
  26132. },
  26133. _EvaluateVisitor_visitVariableDeclaration_closure5: function _EvaluateVisitor_visitVariableDeclaration_closure5(t0, t1, t2) {
  26134. this._box_0 = t0;
  26135. this.$this = t1;
  26136. this.node = t2;
  26137. },
  26138. _EvaluateVisitor_visitVariableDeclaration_closure6: function _EvaluateVisitor_visitVariableDeclaration_closure6(t0, t1) {
  26139. this.$this = t0;
  26140. this.node = t1;
  26141. },
  26142. _EvaluateVisitor_visitVariableDeclaration_closure7: function _EvaluateVisitor_visitVariableDeclaration_closure7(t0, t1, t2) {
  26143. this.$this = t0;
  26144. this.node = t1;
  26145. this.value = t2;
  26146. },
  26147. _EvaluateVisitor_visitUseRule_closure1: function _EvaluateVisitor_visitUseRule_closure1(t0, t1) {
  26148. this.$this = t0;
  26149. this.node = t1;
  26150. },
  26151. _EvaluateVisitor_visitWarnRule_closure1: function _EvaluateVisitor_visitWarnRule_closure1(t0, t1) {
  26152. this.$this = t0;
  26153. this.node = t1;
  26154. },
  26155. _EvaluateVisitor_visitWhileRule_closure1: function _EvaluateVisitor_visitWhileRule_closure1(t0, t1) {
  26156. this.$this = t0;
  26157. this.node = t1;
  26158. },
  26159. _EvaluateVisitor_visitWhileRule__closure1: function _EvaluateVisitor_visitWhileRule__closure1(t0) {
  26160. this.$this = t0;
  26161. },
  26162. _EvaluateVisitor_visitBinaryOperationExpression_closure1: function _EvaluateVisitor_visitBinaryOperationExpression_closure1(t0, t1) {
  26163. this.$this = t0;
  26164. this.node = t1;
  26165. },
  26166. _EvaluateVisitor__slash_recommendation1: function _EvaluateVisitor__slash_recommendation1() {
  26167. },
  26168. _EvaluateVisitor_visitVariableExpression_closure1: function _EvaluateVisitor_visitVariableExpression_closure1(t0, t1) {
  26169. this.$this = t0;
  26170. this.node = t1;
  26171. },
  26172. _EvaluateVisitor_visitUnaryOperationExpression_closure1: function _EvaluateVisitor_visitUnaryOperationExpression_closure1(t0, t1) {
  26173. this.node = t0;
  26174. this.operand = t1;
  26175. },
  26176. _EvaluateVisitor_visitListExpression_closure1: function _EvaluateVisitor_visitListExpression_closure1(t0) {
  26177. this.$this = t0;
  26178. },
  26179. _EvaluateVisitor_visitFunctionExpression_closure5: function _EvaluateVisitor_visitFunctionExpression_closure5(t0, t1) {
  26180. this.$this = t0;
  26181. this.node = t1;
  26182. },
  26183. _EvaluateVisitor_visitFunctionExpression_closure6: function _EvaluateVisitor_visitFunctionExpression_closure6() {
  26184. },
  26185. _EvaluateVisitor_visitFunctionExpression_closure7: function _EvaluateVisitor_visitFunctionExpression_closure7(t0, t1, t2) {
  26186. this._box_0 = t0;
  26187. this.$this = t1;
  26188. this.node = t2;
  26189. },
  26190. _EvaluateVisitor__checkCalculationArguments_check1: function _EvaluateVisitor__checkCalculationArguments_check1(t0, t1) {
  26191. this.$this = t0;
  26192. this.node = t1;
  26193. },
  26194. _EvaluateVisitor__visitCalculationExpression_closure1: function _EvaluateVisitor__visitCalculationExpression_closure1(t0, t1, t2, t3) {
  26195. var _ = this;
  26196. _._box_0 = t0;
  26197. _.$this = t1;
  26198. _.node = t2;
  26199. _.inLegacySassFunction = t3;
  26200. },
  26201. _EvaluateVisitor_visitInterpolatedFunctionExpression_closure1: function _EvaluateVisitor_visitInterpolatedFunctionExpression_closure1(t0, t1, t2) {
  26202. this.$this = t0;
  26203. this.node = t1;
  26204. this.$function = t2;
  26205. },
  26206. _EvaluateVisitor__runUserDefinedCallable_closure1: function _EvaluateVisitor__runUserDefinedCallable_closure1(t0, t1, t2, t3, t4, t5) {
  26207. var _ = this;
  26208. _.$this = t0;
  26209. _.callable = t1;
  26210. _.evaluated = t2;
  26211. _.nodeWithSpan = t3;
  26212. _.run = t4;
  26213. _.V = t5;
  26214. },
  26215. _EvaluateVisitor__runUserDefinedCallable__closure1: function _EvaluateVisitor__runUserDefinedCallable__closure1(t0, t1, t2, t3, t4, t5) {
  26216. var _ = this;
  26217. _.$this = t0;
  26218. _.evaluated = t1;
  26219. _.callable = t2;
  26220. _.nodeWithSpan = t3;
  26221. _.run = t4;
  26222. _.V = t5;
  26223. },
  26224. _EvaluateVisitor__runUserDefinedCallable___closure1: function _EvaluateVisitor__runUserDefinedCallable___closure1(t0, t1, t2, t3, t4, t5) {
  26225. var _ = this;
  26226. _.$this = t0;
  26227. _.evaluated = t1;
  26228. _.callable = t2;
  26229. _.nodeWithSpan = t3;
  26230. _.run = t4;
  26231. _.V = t5;
  26232. },
  26233. _EvaluateVisitor__runUserDefinedCallable____closure1: function _EvaluateVisitor__runUserDefinedCallable____closure1() {
  26234. },
  26235. _EvaluateVisitor__runFunctionCallable_closure1: function _EvaluateVisitor__runFunctionCallable_closure1(t0, t1) {
  26236. this.$this = t0;
  26237. this.callable = t1;
  26238. },
  26239. _EvaluateVisitor__runBuiltInCallable_closure5: function _EvaluateVisitor__runBuiltInCallable_closure5(t0, t1, t2) {
  26240. this._box_0 = t0;
  26241. this.evaluated = t1;
  26242. this.namedSet = t2;
  26243. },
  26244. _EvaluateVisitor__runBuiltInCallable_closure6: function _EvaluateVisitor__runBuiltInCallable_closure6(t0, t1) {
  26245. this._box_0 = t0;
  26246. this.evaluated = t1;
  26247. },
  26248. _EvaluateVisitor__runBuiltInCallable_closure7: function _EvaluateVisitor__runBuiltInCallable_closure7() {
  26249. },
  26250. _EvaluateVisitor__evaluateArguments_closure7: function _EvaluateVisitor__evaluateArguments_closure7() {
  26251. },
  26252. _EvaluateVisitor__evaluateArguments_closure8: function _EvaluateVisitor__evaluateArguments_closure8(t0, t1) {
  26253. this.$this = t0;
  26254. this.restNodeForSpan = t1;
  26255. },
  26256. _EvaluateVisitor__evaluateArguments_closure9: function _EvaluateVisitor__evaluateArguments_closure9(t0, t1, t2, t3) {
  26257. var _ = this;
  26258. _.$this = t0;
  26259. _.named = t1;
  26260. _.restNodeForSpan = t2;
  26261. _.namedNodes = t3;
  26262. },
  26263. _EvaluateVisitor__evaluateArguments_closure10: function _EvaluateVisitor__evaluateArguments_closure10() {
  26264. },
  26265. _EvaluateVisitor__evaluateMacroArguments_closure7: function _EvaluateVisitor__evaluateMacroArguments_closure7(t0) {
  26266. this.restArgs = t0;
  26267. },
  26268. _EvaluateVisitor__evaluateMacroArguments_closure8: function _EvaluateVisitor__evaluateMacroArguments_closure8(t0, t1, t2) {
  26269. this.$this = t0;
  26270. this.restNodeForSpan = t1;
  26271. this.restArgs = t2;
  26272. },
  26273. _EvaluateVisitor__evaluateMacroArguments_closure9: function _EvaluateVisitor__evaluateMacroArguments_closure9(t0, t1, t2, t3) {
  26274. var _ = this;
  26275. _.$this = t0;
  26276. _.named = t1;
  26277. _.restNodeForSpan = t2;
  26278. _.restArgs = t3;
  26279. },
  26280. _EvaluateVisitor__evaluateMacroArguments_closure10: function _EvaluateVisitor__evaluateMacroArguments_closure10(t0, t1, t2) {
  26281. this.$this = t0;
  26282. this.keywordRestNodeForSpan = t1;
  26283. this.keywordRestArgs = t2;
  26284. },
  26285. _EvaluateVisitor__addRestMap_closure1: function _EvaluateVisitor__addRestMap_closure1(t0, t1, t2, t3, t4, t5) {
  26286. var _ = this;
  26287. _.$this = t0;
  26288. _.values = t1;
  26289. _.convert = t2;
  26290. _.expressionNode = t3;
  26291. _.map = t4;
  26292. _.nodeWithSpan = t5;
  26293. },
  26294. _EvaluateVisitor__verifyArguments_closure1: function _EvaluateVisitor__verifyArguments_closure1(t0, t1, t2) {
  26295. this.$arguments = t0;
  26296. this.positional = t1;
  26297. this.named = t2;
  26298. },
  26299. _EvaluateVisitor_visitCssAtRule_closure3: function _EvaluateVisitor_visitCssAtRule_closure3(t0, t1) {
  26300. this.$this = t0;
  26301. this.node = t1;
  26302. },
  26303. _EvaluateVisitor_visitCssAtRule_closure4: function _EvaluateVisitor_visitCssAtRule_closure4() {
  26304. },
  26305. _EvaluateVisitor_visitCssKeyframeBlock_closure3: function _EvaluateVisitor_visitCssKeyframeBlock_closure3(t0, t1) {
  26306. this.$this = t0;
  26307. this.node = t1;
  26308. },
  26309. _EvaluateVisitor_visitCssKeyframeBlock_closure4: function _EvaluateVisitor_visitCssKeyframeBlock_closure4() {
  26310. },
  26311. _EvaluateVisitor_visitCssMediaRule_closure5: function _EvaluateVisitor_visitCssMediaRule_closure5(t0, t1) {
  26312. this.$this = t0;
  26313. this.node = t1;
  26314. },
  26315. _EvaluateVisitor_visitCssMediaRule_closure6: function _EvaluateVisitor_visitCssMediaRule_closure6(t0, t1, t2, t3) {
  26316. var _ = this;
  26317. _.$this = t0;
  26318. _.mergedQueries = t1;
  26319. _.node = t2;
  26320. _.mergedSources = t3;
  26321. },
  26322. _EvaluateVisitor_visitCssMediaRule__closure1: function _EvaluateVisitor_visitCssMediaRule__closure1(t0, t1) {
  26323. this.$this = t0;
  26324. this.node = t1;
  26325. },
  26326. _EvaluateVisitor_visitCssMediaRule___closure1: function _EvaluateVisitor_visitCssMediaRule___closure1(t0, t1) {
  26327. this.$this = t0;
  26328. this.node = t1;
  26329. },
  26330. _EvaluateVisitor_visitCssMediaRule_closure7: function _EvaluateVisitor_visitCssMediaRule_closure7(t0) {
  26331. this.mergedSources = t0;
  26332. },
  26333. _EvaluateVisitor_visitCssStyleRule_closure4: function _EvaluateVisitor_visitCssStyleRule_closure4(t0, t1, t2) {
  26334. this.$this = t0;
  26335. this.rule = t1;
  26336. this.node = t2;
  26337. },
  26338. _EvaluateVisitor_visitCssStyleRule__closure1: function _EvaluateVisitor_visitCssStyleRule__closure1(t0, t1) {
  26339. this.$this = t0;
  26340. this.node = t1;
  26341. },
  26342. _EvaluateVisitor_visitCssStyleRule_closure3: function _EvaluateVisitor_visitCssStyleRule_closure3() {
  26343. },
  26344. _EvaluateVisitor_visitCssSupportsRule_closure3: function _EvaluateVisitor_visitCssSupportsRule_closure3(t0, t1) {
  26345. this.$this = t0;
  26346. this.node = t1;
  26347. },
  26348. _EvaluateVisitor_visitCssSupportsRule__closure1: function _EvaluateVisitor_visitCssSupportsRule__closure1(t0, t1) {
  26349. this.$this = t0;
  26350. this.node = t1;
  26351. },
  26352. _EvaluateVisitor_visitCssSupportsRule_closure4: function _EvaluateVisitor_visitCssSupportsRule_closure4() {
  26353. },
  26354. _EvaluateVisitor__performInterpolationHelper_closure1: function _EvaluateVisitor__performInterpolationHelper_closure1(t0) {
  26355. this.interpolation = t0;
  26356. },
  26357. _EvaluateVisitor__serialize_closure1: function _EvaluateVisitor__serialize_closure1(t0, t1) {
  26358. this.value = t0;
  26359. this.quote = t1;
  26360. },
  26361. _EvaluateVisitor__expressionNode_closure1: function _EvaluateVisitor__expressionNode_closure1(t0, t1) {
  26362. this.$this = t0;
  26363. this.expression = t1;
  26364. },
  26365. _EvaluateVisitor__withoutSlash_recommendation1: function _EvaluateVisitor__withoutSlash_recommendation1() {
  26366. },
  26367. _EvaluateVisitor__stackFrame_closure1: function _EvaluateVisitor__stackFrame_closure1(t0) {
  26368. this.$this = t0;
  26369. },
  26370. _ImportedCssVisitor1: function _ImportedCssVisitor1(t0) {
  26371. this._evaluate0$_visitor = t0;
  26372. },
  26373. _ImportedCssVisitor_visitCssAtRule_closure1: function _ImportedCssVisitor_visitCssAtRule_closure1() {
  26374. },
  26375. _ImportedCssVisitor_visitCssMediaRule_closure1: function _ImportedCssVisitor_visitCssMediaRule_closure1(t0) {
  26376. this.hasBeenMerged = t0;
  26377. },
  26378. _ImportedCssVisitor_visitCssStyleRule_closure1: function _ImportedCssVisitor_visitCssStyleRule_closure1() {
  26379. },
  26380. _ImportedCssVisitor_visitCssSupportsRule_closure1: function _ImportedCssVisitor_visitCssSupportsRule_closure1() {
  26381. },
  26382. _EvaluationContext1: function _EvaluationContext1(t0, t1) {
  26383. this._evaluate0$_visitor = t0;
  26384. this._evaluate0$_defaultWarnNodeWithSpan = t1;
  26385. },
  26386. EveryCssVisitor0: function EveryCssVisitor0() {
  26387. },
  26388. EveryCssVisitor_visitCssAtRule_closure0: function EveryCssVisitor_visitCssAtRule_closure0(t0) {
  26389. this.$this = t0;
  26390. },
  26391. EveryCssVisitor_visitCssKeyframeBlock_closure0: function EveryCssVisitor_visitCssKeyframeBlock_closure0(t0) {
  26392. this.$this = t0;
  26393. },
  26394. EveryCssVisitor_visitCssMediaRule_closure0: function EveryCssVisitor_visitCssMediaRule_closure0(t0) {
  26395. this.$this = t0;
  26396. },
  26397. EveryCssVisitor_visitCssStyleRule_closure0: function EveryCssVisitor_visitCssStyleRule_closure0(t0) {
  26398. this.$this = t0;
  26399. },
  26400. EveryCssVisitor_visitCssStylesheet_closure0: function EveryCssVisitor_visitCssStylesheet_closure0(t0) {
  26401. this.$this = t0;
  26402. },
  26403. EveryCssVisitor_visitCssSupportsRule_closure0: function EveryCssVisitor_visitCssSupportsRule_closure0(t0) {
  26404. this.$this = t0;
  26405. },
  26406. throwNodeException(exception, ascii, color, trace) {
  26407. var wasAscii, jsException, t1, trace0;
  26408. trace = trace;
  26409. wasAscii = $._glyphs === B.C_AsciiGlyphSet;
  26410. $._glyphs = ascii ? B.C_AsciiGlyphSet : B.C_UnicodeGlyphSet;
  26411. try {
  26412. t1 = A.callConstructor($.$get$exceptionClass(), [exception, B.JSString_methods.replaceFirst$2(exception.toString$1$color(0, color), "Error: ", "")]);
  26413. jsException = type$._NodeException._as(t1);
  26414. trace0 = A.getTrace0(exception);
  26415. trace = trace0 == null ? trace : trace0;
  26416. if (trace != null)
  26417. A.attachJsStack(jsException, trace);
  26418. A.jsThrow(jsException);
  26419. } finally {
  26420. $._glyphs = wasAscii ? B.C_AsciiGlyphSet : B.C_UnicodeGlyphSet;
  26421. }
  26422. },
  26423. _NodeException: function _NodeException() {
  26424. },
  26425. exceptionClass_closure: function exceptionClass_closure() {
  26426. },
  26427. exceptionClass__closure: function exceptionClass__closure() {
  26428. },
  26429. exceptionClass__closure0: function exceptionClass__closure0() {
  26430. },
  26431. exceptionClass__closure1: function exceptionClass__closure1() {
  26432. },
  26433. SassException$0(message, span, loadedUrls) {
  26434. return new A.SassException0(loadedUrls == null ? B.Set_empty : A.Set_Set$unmodifiable(loadedUrls, type$.Uri), message, span);
  26435. },
  26436. MultiSpanSassException$0(message, span, primaryLabel, secondarySpans, loadedUrls) {
  26437. var t1 = A.ConstantMap_ConstantMap$from(secondarySpans, type$.FileSpan, type$.String);
  26438. return new A.MultiSpanSassException0(primaryLabel, t1, loadedUrls == null ? B.Set_empty : A.Set_Set$unmodifiable(loadedUrls, type$.Uri), message, span);
  26439. },
  26440. SassRuntimeException$0(message, span, trace, loadedUrls) {
  26441. return new A.SassRuntimeException0(trace, loadedUrls == null ? B.Set_empty : A.Set_Set$unmodifiable(loadedUrls, type$.Uri), message, span);
  26442. },
  26443. MultiSpanSassRuntimeException$0(message, span, primaryLabel, secondarySpans, trace, loadedUrls) {
  26444. var t1 = A.ConstantMap_ConstantMap$from(secondarySpans, type$.FileSpan, type$.String);
  26445. return new A.MultiSpanSassRuntimeException0(trace, primaryLabel, t1, loadedUrls == null ? B.Set_empty : A.Set_Set$unmodifiable(loadedUrls, type$.Uri), message, span);
  26446. },
  26447. SassFormatException$0(message, span, loadedUrls) {
  26448. return new A.SassFormatException0(loadedUrls == null ? B.Set_empty : A.Set_Set$unmodifiable(loadedUrls, type$.Uri), message, span);
  26449. },
  26450. MultiSpanSassFormatException$0(message, span, primaryLabel, secondarySpans, loadedUrls) {
  26451. var t1 = A.ConstantMap_ConstantMap$from(secondarySpans, type$.FileSpan, type$.String);
  26452. return new A.MultiSpanSassFormatException0(primaryLabel, t1, loadedUrls == null ? B.Set_empty : A.Set_Set$unmodifiable(loadedUrls, type$.Uri), message, span);
  26453. },
  26454. SassScriptException$0(message, argumentName) {
  26455. return new A.SassScriptException0(argumentName == null ? message : "$" + argumentName + ": " + message);
  26456. },
  26457. MultiSpanSassScriptException$0(message, primaryLabel, secondarySpans) {
  26458. var t1 = A.ConstantMap_ConstantMap$from(secondarySpans, type$.FileSpan, type$.String);
  26459. return new A.MultiSpanSassScriptException0(primaryLabel, t1, message);
  26460. },
  26461. SassException0: function SassException0(t0, t1, t2) {
  26462. this.loadedUrls = t0;
  26463. this._span_exception$_message = t1;
  26464. this._span = t2;
  26465. },
  26466. MultiSpanSassException0: function MultiSpanSassException0(t0, t1, t2, t3, t4) {
  26467. var _ = this;
  26468. _.primaryLabel = t0;
  26469. _.secondarySpans = t1;
  26470. _.loadedUrls = t2;
  26471. _._span_exception$_message = t3;
  26472. _._span = t4;
  26473. },
  26474. SassRuntimeException0: function SassRuntimeException0(t0, t1, t2, t3) {
  26475. var _ = this;
  26476. _.trace = t0;
  26477. _.loadedUrls = t1;
  26478. _._span_exception$_message = t2;
  26479. _._span = t3;
  26480. },
  26481. MultiSpanSassRuntimeException0: function MultiSpanSassRuntimeException0(t0, t1, t2, t3, t4, t5) {
  26482. var _ = this;
  26483. _.trace = t0;
  26484. _.primaryLabel = t1;
  26485. _.secondarySpans = t2;
  26486. _.loadedUrls = t3;
  26487. _._span_exception$_message = t4;
  26488. _._span = t5;
  26489. },
  26490. SassFormatException0: function SassFormatException0(t0, t1, t2) {
  26491. this.loadedUrls = t0;
  26492. this._span_exception$_message = t1;
  26493. this._span = t2;
  26494. },
  26495. MultiSpanSassFormatException0: function MultiSpanSassFormatException0(t0, t1, t2, t3, t4) {
  26496. var _ = this;
  26497. _.primaryLabel = t0;
  26498. _.secondarySpans = t1;
  26499. _.loadedUrls = t2;
  26500. _._span_exception$_message = t3;
  26501. _._span = t4;
  26502. },
  26503. SassScriptException0: function SassScriptException0(t0) {
  26504. this.message = t0;
  26505. },
  26506. MultiSpanSassScriptException0: function MultiSpanSassScriptException0(t0, t1, t2) {
  26507. this.primaryLabel = t0;
  26508. this.secondarySpans = t1;
  26509. this.message = t2;
  26510. },
  26511. Exports: function Exports() {
  26512. },
  26513. LoggerNamespace: function LoggerNamespace() {
  26514. },
  26515. Expression0: function Expression0() {
  26516. },
  26517. JSExpressionVisitor: function JSExpressionVisitor(t0) {
  26518. this._expression$_inner = t0;
  26519. },
  26520. JSExpressionVisitorObject: function JSExpressionVisitorObject() {
  26521. },
  26522. expressionToCalc0(expression) {
  26523. var t4,
  26524. t1 = A._setArrayType([B.C__MakeExpressionCalculationSafe0.visitBinaryOperationExpression$1(0, expression)], type$.JSArray_Expression_2),
  26525. t2 = expression.get$span(0),
  26526. t3 = type$.Expression_2;
  26527. t1 = A.List_List$unmodifiable(t1, t3);
  26528. t3 = A.ConstantMap_ConstantMap$from(B.Map_empty14, type$.String, t3);
  26529. t4 = expression.get$span(0);
  26530. return new A.FunctionExpression0(null, A.stringReplaceAllUnchecked("calc", "_", "-"), "calc", new A.ArgumentInvocation0(t1, t3, null, null, t2), t4);
  26531. },
  26532. _MakeExpressionCalculationSafe0: function _MakeExpressionCalculationSafe0() {
  26533. },
  26534. __MakeExpressionCalculationSafe_Object_ReplaceExpressionVisitor0: function __MakeExpressionCalculationSafe_Object_ReplaceExpressionVisitor0() {
  26535. },
  26536. ExtendRule0: function ExtendRule0(t0, t1, t2) {
  26537. this.selector = t0;
  26538. this.isOptional = t1;
  26539. this.span = t2;
  26540. },
  26541. Extension0: function Extension0(t0, t1, t2, t3, t4) {
  26542. var _ = this;
  26543. _.extender = t0;
  26544. _.target = t1;
  26545. _.mediaContext = t2;
  26546. _.isOptional = t3;
  26547. _.span = t4;
  26548. },
  26549. Extender0: function Extender0(t0, t1) {
  26550. this.selector = t0;
  26551. this.isOriginal = t1;
  26552. this._extension$_extension = null;
  26553. },
  26554. ExtensionStore__extendOrReplace0(selector, source, targets, mode, span) {
  26555. var t1, t2, t3, t4, t5, t6, t7, t8, _i, complex, compound, t9, t10, t11, _i0, simple, t12, _i1, t13, t14,
  26556. extender = A.ExtensionStore$_mode0(mode);
  26557. if (!selector.accept$1(B._IsInvisibleVisitor_true0))
  26558. extender._extension_store$_originals.addAll$1(0, selector.components);
  26559. for (t1 = targets.components, t2 = t1.length, t3 = source.components, t4 = t3.length, t5 = type$.ComplexSelector_2, t6 = type$.Extension_2, t7 = type$.SimpleSelector_2, t8 = type$.Map_ComplexSelector_Extension_2, _i = 0; _i < t2; ++_i) {
  26560. complex = t1[_i];
  26561. compound = complex.get$singleCompound();
  26562. if (compound == null)
  26563. throw A.wrapException(A.SassScriptException$0("Can't extend complex selector " + A.S(complex) + ".", null));
  26564. t9 = A.LinkedHashMap_LinkedHashMap$_empty(t7, t8);
  26565. for (t10 = compound.components, t11 = t10.length, _i0 = 0; _i0 < t11; ++_i0) {
  26566. simple = t10[_i0];
  26567. t12 = A.LinkedHashMap_LinkedHashMap$_empty(t5, t6);
  26568. for (_i1 = 0; _i1 < t4; ++_i1) {
  26569. complex = t3[_i1];
  26570. complex.get$specificity();
  26571. t13 = new A.Extender0(complex, false);
  26572. t14 = new A.Extension0(t13, simple, null, true, span);
  26573. t13._extension$_extension = t14;
  26574. t12.$indexSet(0, complex, t14);
  26575. }
  26576. t9.$indexSet(0, simple, t12);
  26577. }
  26578. selector = extender._extension_store$_extendList$2(selector, t9);
  26579. }
  26580. return selector;
  26581. },
  26582. ExtensionStore$0() {
  26583. var t1 = type$.SimpleSelector_2;
  26584. return new A.ExtensionStore0(A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Set_ModifiableBox_SelectorList_2), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Map_ComplexSelector_Extension_2), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.List_Extension_2), A.LinkedHashMap_LinkedHashMap$_empty(type$.ModifiableBox_SelectorList_2, type$.List_CssMediaQuery_2), new A.JsIdentityLinkedHashMap(type$.JsIdentityLinkedHashMap_SimpleSelector_int_2), new A._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_ComplexSelector_2), B.ExtendMode_normal_normal0);
  26585. },
  26586. ExtensionStore$_mode0(_mode) {
  26587. var t1 = type$.SimpleSelector_2;
  26588. return new A.ExtensionStore0(A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Set_ModifiableBox_SelectorList_2), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Map_ComplexSelector_Extension_2), A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.List_Extension_2), A.LinkedHashMap_LinkedHashMap$_empty(type$.ModifiableBox_SelectorList_2, type$.List_CssMediaQuery_2), new A.JsIdentityLinkedHashMap(type$.JsIdentityLinkedHashMap_SimpleSelector_int_2), new A._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_ComplexSelector_2), _mode);
  26589. },
  26590. ExtensionStore0: function ExtensionStore0(t0, t1, t2, t3, t4, t5, t6) {
  26591. var _ = this;
  26592. _._extension_store$_selectors = t0;
  26593. _._extension_store$_extensions = t1;
  26594. _._extension_store$_extensionsByExtender = t2;
  26595. _._extension_store$_mediaContexts = t3;
  26596. _._extension_store$_sourceSpecificity = t4;
  26597. _._extension_store$_originals = t5;
  26598. _._extension_store$_mode = t6;
  26599. },
  26600. ExtensionStore_extensionsWhereTarget_closure0: function ExtensionStore_extensionsWhereTarget_closure0() {
  26601. },
  26602. ExtensionStore__registerSelector_closure0: function ExtensionStore__registerSelector_closure0() {
  26603. },
  26604. ExtensionStore_addExtension_closure2: function ExtensionStore_addExtension_closure2() {
  26605. },
  26606. ExtensionStore_addExtension_closure3: function ExtensionStore_addExtension_closure3() {
  26607. },
  26608. ExtensionStore_addExtension_closure4: function ExtensionStore_addExtension_closure4(t0) {
  26609. this.complex = t0;
  26610. },
  26611. ExtensionStore__extendExistingExtensions_closure1: function ExtensionStore__extendExistingExtensions_closure1() {
  26612. },
  26613. ExtensionStore__extendExistingExtensions_closure2: function ExtensionStore__extendExistingExtensions_closure2() {
  26614. },
  26615. ExtensionStore_addExtensions_closure0: function ExtensionStore_addExtensions_closure0() {
  26616. },
  26617. ExtensionStore__extendComplex_closure0: function ExtensionStore__extendComplex_closure0(t0, t1, t2) {
  26618. this._box_0 = t0;
  26619. this.$this = t1;
  26620. this.complex = t2;
  26621. },
  26622. ExtensionStore__extendComplex__closure0: function ExtensionStore__extendComplex__closure0(t0, t1, t2) {
  26623. this._box_0 = t0;
  26624. this.$this = t1;
  26625. this.complex = t2;
  26626. },
  26627. ExtensionStore__extendCompound_closure2: function ExtensionStore__extendCompound_closure2() {
  26628. },
  26629. ExtensionStore__extendCompound_closure3: function ExtensionStore__extendCompound_closure3() {
  26630. },
  26631. ExtensionStore__extendCompound_closure4: function ExtensionStore__extendCompound_closure4(t0) {
  26632. this.original = t0;
  26633. },
  26634. ExtensionStore__extendSimple_withoutPseudo0: function ExtensionStore__extendSimple_withoutPseudo0(t0, t1, t2) {
  26635. this.$this = t0;
  26636. this.extensions = t1;
  26637. this.targetsUsed = t2;
  26638. },
  26639. ExtensionStore__extendSimple_closure1: function ExtensionStore__extendSimple_closure1(t0, t1) {
  26640. this.$this = t0;
  26641. this.withoutPseudo = t1;
  26642. },
  26643. ExtensionStore__extendSimple_closure2: function ExtensionStore__extendSimple_closure2() {
  26644. },
  26645. ExtensionStore__extendPseudo_closure4: function ExtensionStore__extendPseudo_closure4() {
  26646. },
  26647. ExtensionStore__extendPseudo_closure5: function ExtensionStore__extendPseudo_closure5() {
  26648. },
  26649. ExtensionStore__extendPseudo_closure6: function ExtensionStore__extendPseudo_closure6() {
  26650. },
  26651. ExtensionStore__extendPseudo_closure7: function ExtensionStore__extendPseudo_closure7(t0) {
  26652. this.pseudo = t0;
  26653. },
  26654. ExtensionStore__extendPseudo_closure8: function ExtensionStore__extendPseudo_closure8(t0, t1) {
  26655. this.pseudo = t0;
  26656. this.selector = t1;
  26657. },
  26658. ExtensionStore__trim_closure1: function ExtensionStore__trim_closure1(t0, t1) {
  26659. this._box_0 = t0;
  26660. this.complex1 = t1;
  26661. },
  26662. ExtensionStore__trim_closure2: function ExtensionStore__trim_closure2(t0, t1) {
  26663. this._box_0 = t0;
  26664. this.complex1 = t1;
  26665. },
  26666. ExtensionStore_clone_closure0: function ExtensionStore_clone_closure0(t0, t1, t2, t3) {
  26667. var _ = this;
  26668. _.$this = t0;
  26669. _.newSelectors = t1;
  26670. _.oldToNewSelectors = t2;
  26671. _.newMediaContexts = t3;
  26672. },
  26673. FiberClass: function FiberClass() {
  26674. },
  26675. Fiber: function Fiber() {
  26676. },
  26677. JSToDartFileImporter: function JSToDartFileImporter(t0) {
  26678. this._file0$_findFileUrl = t0;
  26679. },
  26680. JSToDartFileImporter_canonicalize_closure: function JSToDartFileImporter_canonicalize_closure(t0, t1) {
  26681. this.$this = t0;
  26682. this.url = t1;
  26683. },
  26684. FilesystemImporter0: function FilesystemImporter0(t0, t1) {
  26685. this._filesystem$_loadPath = t0;
  26686. this._filesystem$_loadPathDeprecated = t1;
  26687. },
  26688. FilesystemImporter_canonicalize_closure0: function FilesystemImporter_canonicalize_closure0() {
  26689. },
  26690. ForRule$0(variable, from, to, children, span, exclusive) {
  26691. var t1 = A.List_List$unmodifiable(children, type$.Statement_2),
  26692. t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure0());
  26693. return new A.ForRule0(variable, from, to, exclusive, span, t1, t2);
  26694. },
  26695. ForRule0: function ForRule0(t0, t1, t2, t3, t4, t5, t6) {
  26696. var _ = this;
  26697. _.variable = t0;
  26698. _.from = t1;
  26699. _.to = t2;
  26700. _.isExclusive = t3;
  26701. _.span = t4;
  26702. _.children = t5;
  26703. _.hasDeclarations = t6;
  26704. },
  26705. ForwardRule0: function ForwardRule0(t0, t1, t2, t3, t4, t5, t6, t7) {
  26706. var _ = this;
  26707. _.url = t0;
  26708. _.shownMixinsAndFunctions = t1;
  26709. _.shownVariables = t2;
  26710. _.hiddenMixinsAndFunctions = t3;
  26711. _.hiddenVariables = t4;
  26712. _.prefix = t5;
  26713. _.configuration = t6;
  26714. _.span = t7;
  26715. },
  26716. ForwardedModuleView_ifNecessary0(inner, rule, $T) {
  26717. var t2,
  26718. t1 = false;
  26719. if (rule.prefix == null)
  26720. if (rule.shownMixinsAndFunctions == null)
  26721. if (rule.shownVariables == null) {
  26722. t2 = rule.hiddenMixinsAndFunctions;
  26723. t2 = t2 == null ? null : t2._base.get$isEmpty(0);
  26724. if (t2 === true) {
  26725. t1 = rule.hiddenVariables;
  26726. t1 = t1 == null ? null : t1._base.get$isEmpty(0);
  26727. t1 = t1 === true;
  26728. }
  26729. }
  26730. if (t1)
  26731. return inner;
  26732. else
  26733. return A.ForwardedModuleView$0(inner, rule, $T);
  26734. },
  26735. ForwardedModuleView$0(_inner, _rule, $T) {
  26736. var t1 = _rule.prefix,
  26737. t2 = _rule.shownVariables,
  26738. t3 = _rule.hiddenVariables,
  26739. t4 = _rule.shownMixinsAndFunctions,
  26740. t5 = _rule.hiddenMixinsAndFunctions;
  26741. return new A.ForwardedModuleView0(_inner, _rule, A.ForwardedModuleView__forwardedMap0(_inner.get$variables(), t1, t2, t3, type$.Value_2), A.ForwardedModuleView__forwardedMap0(_inner.get$variableNodes(), t1, t2, t3, type$.AstNode_2), A.ForwardedModuleView__forwardedMap0(_inner.get$functions(_inner), t1, t4, t5, $T), A.ForwardedModuleView__forwardedMap0(_inner.get$mixins(), t1, t4, t5, $T), $T._eval$1("ForwardedModuleView0<0>"));
  26742. },
  26743. ForwardedModuleView__forwardedMap0(map, prefix, safelist, blocklist, $V) {
  26744. var t1 = prefix == null,
  26745. t2 = false;
  26746. if (t1)
  26747. if (safelist == null)
  26748. t2 = blocklist == null || blocklist._base.get$isEmpty(0);
  26749. if (t2)
  26750. return map;
  26751. if (!t1)
  26752. map = new A.PrefixedMapView0(map, prefix, $V._eval$1("PrefixedMapView0<0>"));
  26753. if (safelist != null)
  26754. map = new A.LimitedMapView0(map, safelist._base.intersection$1(new A.MapKeySet(map, type$.MapKeySet_nullable_Object)), type$.$env_1_1_String._bind$1($V)._eval$1("LimitedMapView0<1,2>"));
  26755. else if (blocklist != null && blocklist._base.get$isNotEmpty(0))
  26756. map = A.LimitedMapView$blocklist0(map, blocklist, type$.String, $V);
  26757. return map;
  26758. },
  26759. ForwardedModuleView0: function ForwardedModuleView0(t0, t1, t2, t3, t4, t5, t6) {
  26760. var _ = this;
  26761. _._forwarded_view0$_inner = t0;
  26762. _._forwarded_view0$_rule = t1;
  26763. _.variables = t2;
  26764. _.variableNodes = t3;
  26765. _.functions = t4;
  26766. _.mixins = t5;
  26767. _.$ti = t6;
  26768. },
  26769. FunctionExpression0: function FunctionExpression0(t0, t1, t2, t3, t4) {
  26770. var _ = this;
  26771. _.namespace = t0;
  26772. _.name = t1;
  26773. _.originalName = t2;
  26774. _.$arguments = t3;
  26775. _.span = t4;
  26776. },
  26777. JSFunction0: function JSFunction0() {
  26778. },
  26779. SupportsFunction0: function SupportsFunction0(t0, t1, t2) {
  26780. this.name = t0;
  26781. this.$arguments = t1;
  26782. this.span = t2;
  26783. },
  26784. functionClass_closure: function functionClass_closure() {
  26785. },
  26786. functionClass__closure: function functionClass__closure() {
  26787. },
  26788. functionClass__closure0: function functionClass__closure0() {
  26789. },
  26790. SassFunction0: function SassFunction0(t0) {
  26791. this.callable = t0;
  26792. },
  26793. FunctionRule$0($name, $arguments, children, span, comment) {
  26794. var t1 = A.stringReplaceAllUnchecked($name, "_", "-"),
  26795. t2 = A.List_List$unmodifiable(children, type$.Statement_2),
  26796. t3 = B.JSArray_methods.any$1(t2, new A.ParentStatement_closure0());
  26797. return new A.FunctionRule0(t1, $name, $arguments, span, t2, t3);
  26798. },
  26799. FunctionRule0: function FunctionRule0(t0, t1, t2, t3, t4, t5) {
  26800. var _ = this;
  26801. _.name = t0;
  26802. _.originalName = t1;
  26803. _.$arguments = t2;
  26804. _.span = t3;
  26805. _.children = t4;
  26806. _.hasDeclarations = t5;
  26807. },
  26808. unifyComplex0(complexes, span) {
  26809. var t2, trailingCombinator, leadingCombinator, unifiedBase, t3, t4, _0_6_isSet, _0_6, t5, newLeadingCombinator, base, _1_1, newTrailingCombinator, unifiedBase0, t6, t7, t8, _null = null,
  26810. t1 = J.getInterceptor$asx(complexes);
  26811. if (t1.get$length(complexes) === 1)
  26812. return complexes;
  26813. for (t2 = t1.get$iterator(complexes), trailingCombinator = _null, leadingCombinator = trailingCombinator, unifiedBase = leadingCombinator; t2.moveNext$0();) {
  26814. t3 = t2.get$current(t2);
  26815. if (t3.accept$1(B.C__IsUselessVisitor0))
  26816. return _null;
  26817. t4 = t3.components;
  26818. _0_6_isSet = t4.length === 1;
  26819. if (_0_6_isSet) {
  26820. _0_6 = t3.leadingCombinators;
  26821. t5 = _0_6.length === 1;
  26822. } else {
  26823. _0_6 = _null;
  26824. t5 = false;
  26825. }
  26826. if (t5) {
  26827. newLeadingCombinator = (_0_6_isSet ? _0_6 : t3.leadingCombinators)[0];
  26828. if (leadingCombinator == null)
  26829. leadingCombinator = newLeadingCombinator;
  26830. else if (!(leadingCombinator.$ti._is(newLeadingCombinator) && J.$eq$(newLeadingCombinator.value, leadingCombinator.value)))
  26831. return _null;
  26832. }
  26833. base = B.JSArray_methods.get$last(t4);
  26834. _1_1 = base.combinators;
  26835. if (_1_1.length === 1) {
  26836. newTrailingCombinator = _1_1[0];
  26837. if (trailingCombinator != null)
  26838. t3 = !(trailingCombinator.$ti._is(newTrailingCombinator) && J.$eq$(newTrailingCombinator.value, trailingCombinator.value));
  26839. else
  26840. t3 = false;
  26841. if (t3)
  26842. return _null;
  26843. trailingCombinator = newTrailingCombinator;
  26844. }
  26845. unifiedBase0 = base.selector;
  26846. if (unifiedBase == null)
  26847. unifiedBase = unifiedBase0;
  26848. else {
  26849. unifiedBase = A.unifyCompound0(unifiedBase, unifiedBase0);
  26850. if (unifiedBase == null)
  26851. return _null;
  26852. }
  26853. }
  26854. t2 = type$.JSArray_ComplexSelector_2;
  26855. t3 = A._setArrayType([], t2);
  26856. for (t4 = t1.get$iterator(complexes); t4.moveNext$0();) {
  26857. t5 = t4.get$current(t4);
  26858. t6 = t5.components;
  26859. t7 = t6.length;
  26860. if (t7 > 1) {
  26861. t8 = t5.leadingCombinators;
  26862. t3.push(A.ComplexSelector$0(t8, B.JSArray_methods.take$1(t6, t7 - 1), t5.span, t5.lineBreak));
  26863. }
  26864. }
  26865. t4 = leadingCombinator == null ? B.List_empty14 : A._setArrayType([leadingCombinator], type$.JSArray_CssValue_Combinator_2);
  26866. unifiedBase.toString;
  26867. t5 = trailingCombinator == null ? B.List_empty14 : A._setArrayType([trailingCombinator], type$.JSArray_CssValue_Combinator_2);
  26868. base = A.ComplexSelector$0(t4, A._setArrayType([new A.ComplexSelectorComponent0(unifiedBase, A.List_List$unmodifiable(t5, type$.CssValue_Combinator_2), span)], type$.JSArray_ComplexSelectorComponent_2), span, t1.any$1(complexes, new A.unifyComplex_closure0()));
  26869. if (t3.length === 0)
  26870. t1 = A._setArrayType([base], t2);
  26871. else {
  26872. t1 = A.List_List$of(A.IterableExtension_get_exceptLast0(t3), true, type$.ComplexSelector_2);
  26873. t1.push(B.JSArray_methods.get$last(t3).concatenate$2(base, span));
  26874. }
  26875. return A.weave0(t1, span, false);
  26876. },
  26877. unifyCompound0(compound1, compound2) {
  26878. var t1, t2, pseudoElementFound, _i, simple, unified,
  26879. result = compound1.components,
  26880. pseudoResult = A._setArrayType([], type$.JSArray_SimpleSelector_2);
  26881. for (t1 = compound2.components, t2 = t1.length, pseudoElementFound = false, _i = 0; _i < t2; ++_i) {
  26882. simple = t1[_i];
  26883. if (pseudoElementFound && simple instanceof A.PseudoSelector0) {
  26884. unified = simple.unify$1(pseudoResult);
  26885. if (unified == null)
  26886. return null;
  26887. pseudoResult = unified;
  26888. } else {
  26889. pseudoElementFound = B.JSBool_methods.$or(pseudoElementFound, simple instanceof A.PseudoSelector0 && !simple.isClass);
  26890. unified = simple.unify$1(result);
  26891. if (unified == null)
  26892. return null;
  26893. result = unified;
  26894. }
  26895. }
  26896. t1 = A.List_List$of(result, true, type$.SimpleSelector_2);
  26897. B.JSArray_methods.addAll$1(t1, pseudoResult);
  26898. return A.CompoundSelector$0(t1, compound1.span);
  26899. },
  26900. unifyUniversalAndElement0(selector1, selector2) {
  26901. var namespace, $name, t1,
  26902. _0_0 = A._namespaceAndName0(selector1, "selector1"),
  26903. namespace1 = _0_0._0,
  26904. name1 = _0_0._1,
  26905. _1_0 = A._namespaceAndName0(selector2, "selector2"),
  26906. namespace2 = _1_0._0,
  26907. name2 = _1_0._1;
  26908. if (namespace1 == namespace2 || namespace2 === "*")
  26909. namespace = namespace1;
  26910. else {
  26911. if (namespace1 !== "*")
  26912. return null;
  26913. namespace = namespace2;
  26914. }
  26915. if (name1 == name2 || name2 == null)
  26916. $name = name1;
  26917. else {
  26918. if (!(name1 == null || name1 === "*"))
  26919. return null;
  26920. $name = name2;
  26921. }
  26922. t1 = selector1.span;
  26923. return $name == null ? new A.UniversalSelector0(namespace, t1) : new A.TypeSelector0(new A.QualifiedName0($name, namespace), t1);
  26924. },
  26925. _namespaceAndName0(selector, $name) {
  26926. var t1, _0_4;
  26927. $label0$0: {
  26928. if (selector instanceof A.UniversalSelector0) {
  26929. t1 = new A._Record_2(selector.namespace, null);
  26930. break $label0$0;
  26931. }
  26932. if (selector instanceof A.TypeSelector0) {
  26933. _0_4 = selector.name;
  26934. t1 = new A._Record_2(_0_4.namespace, _0_4.name);
  26935. break $label0$0;
  26936. }
  26937. t1 = A.throwExpression(A.ArgumentError$value(selector, $name, string$.must_b));
  26938. }
  26939. return t1;
  26940. },
  26941. weave0(complexes, span, forceLineBreak) {
  26942. var complex, t2, prefixes, t3, t4, t5, t6, i, t7, t8, _i, t9, t10, _i0, parentPrefix, t11, t12,
  26943. t1 = J.getInterceptor$asx(complexes);
  26944. if (t1.get$length(complexes) === 1) {
  26945. complex = t1.$index(complexes, 0);
  26946. if (!forceLineBreak || complex.lineBreak)
  26947. return complexes;
  26948. return A._setArrayType([A.ComplexSelector$0(complex.leadingCombinators, complex.components, complex.span, true)], type$.JSArray_ComplexSelector_2);
  26949. }
  26950. t2 = type$.JSArray_ComplexSelector_2;
  26951. prefixes = A._setArrayType([t1.get$first(complexes)], t2);
  26952. for (t1 = t1.skip$1(complexes, 1), t3 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t3._eval$1("ListIterator<ListIterable.E>")), t4 = type$.ComplexSelectorComponent_2, t3 = t3._eval$1("ListIterable.E"); t1.moveNext$0();) {
  26953. t5 = t1.__internal$_current;
  26954. if (t5 == null)
  26955. t5 = t3._as(t5);
  26956. t6 = t5.components;
  26957. if (t6.length === 1) {
  26958. for (i = 0; i < prefixes.length; ++i)
  26959. prefixes[i] = prefixes[i].concatenate$3$forceLineBreak(t5, span, forceLineBreak);
  26960. continue;
  26961. }
  26962. t7 = A._setArrayType([], t2);
  26963. for (t8 = prefixes.length, _i = 0; _i < prefixes.length; prefixes.length === t8 || (0, A.throwConcurrentModificationError)(prefixes), ++_i) {
  26964. t9 = A._weaveParents0(prefixes[_i], t5, span);
  26965. if (t9 == null)
  26966. t9 = B.List_empty15;
  26967. t10 = t9.length;
  26968. _i0 = 0;
  26969. for (; _i0 < t9.length; t9.length === t10 || (0, A.throwConcurrentModificationError)(t9), ++_i0) {
  26970. parentPrefix = t9[_i0];
  26971. t11 = B.JSArray_methods.get$last(t6);
  26972. t12 = A.List_List$of(parentPrefix.components, true, t4);
  26973. t12.push(t11);
  26974. t11 = parentPrefix.lineBreak || forceLineBreak;
  26975. t7.push(A.ComplexSelector$0(parentPrefix.leadingCombinators, t12, span, t11));
  26976. }
  26977. }
  26978. prefixes = t7;
  26979. }
  26980. return prefixes;
  26981. },
  26982. _weaveParents0(prefix, base, span) {
  26983. var t1, queue1, queue2, trailingCombinators, _0_1, _0_3, _0_3_isSet, _0_30, rootish2, t2, rootish1, rootish, t3, rootish_case_0, t0, rootish_case_1, groups1, groups2, lcs, choices, t4, _i, group, t5, t6, t7, _i0, chunk, t8, t9, _null = null,
  26984. leadingCombinators = A._mergeLeadingCombinators0(prefix.leadingCombinators, base.leadingCombinators);
  26985. if (leadingCombinators == null)
  26986. return _null;
  26987. t1 = type$.ComplexSelectorComponent_2;
  26988. queue1 = A.QueueList_QueueList$from(prefix.components, t1);
  26989. queue2 = A.QueueList_QueueList$from(A.IterableExtension_get_exceptLast0(base.components), t1);
  26990. trailingCombinators = A._mergeTrailingCombinators0(queue1, queue2, span, _null);
  26991. if (trailingCombinators == null)
  26992. return _null;
  26993. $label0$0: {
  26994. _0_1 = A._firstIfRootish0(queue1);
  26995. _0_3 = A._firstIfRootish0(queue2);
  26996. _0_3_isSet = _0_1 != null;
  26997. _0_30 = _null;
  26998. rootish2 = _null;
  26999. t2 = false;
  27000. if (_0_3_isSet) {
  27001. rootish1 = _0_1 == null ? t1._as(_0_1) : _0_1;
  27002. t2 = _0_3 != null;
  27003. if (t2)
  27004. rootish2 = _0_3 == null ? t1._as(_0_3) : _0_3;
  27005. _0_30 = _0_3;
  27006. } else
  27007. rootish1 = _null;
  27008. if (t2) {
  27009. rootish = A.unifyCompound0(rootish1.selector, rootish2.selector);
  27010. if (rootish == null)
  27011. return _null;
  27012. t1 = rootish1.combinators;
  27013. t2 = rootish1.span;
  27014. t3 = type$.CssValue_Combinator_2;
  27015. queue1.addFirst$1(new A.ComplexSelectorComponent0(rootish, A.List_List$unmodifiable(t1, t3), t2));
  27016. queue2.addFirst$1(new A.ComplexSelectorComponent0(rootish, A.List_List$unmodifiable(rootish2.combinators, t3), t2));
  27017. break $label0$0;
  27018. }
  27019. t2 = _null;
  27020. t3 = false;
  27021. if (_0_1 != null) {
  27022. rootish_case_0 = _0_1;
  27023. if (_0_3_isSet)
  27024. t2 = _0_30;
  27025. else {
  27026. t2 = _0_3;
  27027. _0_30 = t2;
  27028. _0_3_isSet = true;
  27029. }
  27030. t2 = t2 == null;
  27031. t3 = t2 ? rootish_case_0 : _null;
  27032. t0 = t3;
  27033. t3 = t2;
  27034. t2 = t0;
  27035. }
  27036. if (!t3)
  27037. if (_0_1 == null) {
  27038. if (_0_3_isSet)
  27039. t3 = _0_30;
  27040. else {
  27041. t3 = _0_3;
  27042. _0_30 = t3;
  27043. _0_3_isSet = true;
  27044. }
  27045. t3 = t3 != null;
  27046. if (t3) {
  27047. rootish_case_1 = _0_3_isSet ? _0_30 : _0_3;
  27048. if (rootish_case_1 == null)
  27049. rootish_case_1 = t1._as(rootish_case_1);
  27050. t1 = rootish_case_1;
  27051. } else
  27052. t1 = t2;
  27053. t2 = t3;
  27054. } else {
  27055. t1 = t2;
  27056. t2 = false;
  27057. }
  27058. else {
  27059. t1 = t2;
  27060. t2 = true;
  27061. }
  27062. if (t2) {
  27063. queue1.addFirst$1(t1);
  27064. queue2.addFirst$1(t1);
  27065. }
  27066. }
  27067. groups1 = A._groupSelectors0(queue1);
  27068. groups2 = A._groupSelectors0(queue2);
  27069. t1 = type$.List_ComplexSelectorComponent_2;
  27070. lcs = A.longestCommonSubsequence0(groups2, groups1, new A._weaveParents_closure3(span), t1);
  27071. choices = A._setArrayType([], type$.JSArray_List_Iterable_ComplexSelectorComponent_2);
  27072. for (t2 = lcs.length, t3 = type$.JSArray_Iterable_ComplexSelectorComponent_2, t4 = type$.JSArray_ComplexSelectorComponent_2, _i = 0; _i < lcs.length; lcs.length === t2 || (0, A.throwConcurrentModificationError)(lcs), ++_i) {
  27073. group = lcs[_i];
  27074. t5 = A._setArrayType([], t3);
  27075. for (t6 = A._chunks0(groups1, groups2, new A._weaveParents_closure4(group), t1), t7 = t6.length, _i0 = 0; _i0 < t6.length; t6.length === t7 || (0, A.throwConcurrentModificationError)(t6), ++_i0) {
  27076. chunk = t6[_i0];
  27077. t8 = A._setArrayType([], t4);
  27078. for (t9 = B.JSArray_methods.get$iterator(chunk); t9.moveNext$0();)
  27079. B.JSArray_methods.addAll$1(t8, t9.get$current(0));
  27080. t5.push(t8);
  27081. }
  27082. choices.push(t5);
  27083. choices.push(A._setArrayType([group], t3));
  27084. groups1.removeFirst$0();
  27085. groups2.removeFirst$0();
  27086. }
  27087. t2 = A._setArrayType([], t3);
  27088. for (t1 = A._chunks0(groups1, groups2, new A._weaveParents_closure5(), t1), t3 = t1.length, _i = 0; _i < t1.length; t1.length === t3 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
  27089. chunk = t1[_i];
  27090. t5 = A._setArrayType([], t4);
  27091. for (t6 = B.JSArray_methods.get$iterator(chunk); t6.moveNext$0();)
  27092. B.JSArray_methods.addAll$1(t5, t6.get$current(0));
  27093. t2.push(t5);
  27094. }
  27095. choices.push(t2);
  27096. B.JSArray_methods.addAll$1(choices, trailingCombinators);
  27097. t1 = A._setArrayType([], type$.JSArray_ComplexSelector_2);
  27098. for (t2 = J.get$iterator$ax(A.paths0(new A.WhereIterable(choices, new A._weaveParents_closure6(), type$.WhereIterable_List_Iterable_ComplexSelectorComponent_2), type$.Iterable_ComplexSelectorComponent_2)), t3 = !prefix.lineBreak, t5 = base.lineBreak; t2.moveNext$0();) {
  27099. t6 = t2.get$current(t2);
  27100. t7 = A._setArrayType([], t4);
  27101. for (t6 = J.get$iterator$ax(t6); t6.moveNext$0();)
  27102. B.JSArray_methods.addAll$1(t7, t6.get$current(t6));
  27103. t1.push(A.ComplexSelector$0(leadingCombinators, t7, span, !t3 || t5));
  27104. }
  27105. return t1;
  27106. },
  27107. _firstIfRootish0(queue) {
  27108. var first, t1, t2, _i, simple, t3;
  27109. if (queue.get$length(0) >= 1) {
  27110. first = queue.$index(0, 0);
  27111. for (t1 = first.selector.components, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  27112. simple = t1[_i];
  27113. t3 = false;
  27114. if (simple instanceof A.PseudoSelector0)
  27115. if (simple.isClass)
  27116. t3 = $._rootishPseudoClasses0.contains$1(0, simple.normalizedName);
  27117. if (t3) {
  27118. queue.removeFirst$0();
  27119. return first;
  27120. }
  27121. }
  27122. }
  27123. return null;
  27124. },
  27125. _mergeLeadingCombinators0(combinators1, combinators2) {
  27126. var _0_4, t1, t2, _0_7_isSet, _0_7, t3, _0_4_isSet, _0_11, _0_11_isSet, combinators, _null = null;
  27127. $label0$0: {
  27128. _0_4 = combinators2;
  27129. t1 = _null;
  27130. t2 = type$.List_CssValue_Combinator_2;
  27131. _0_7_isSet = t2._is(combinators1);
  27132. _0_7 = _null;
  27133. if (_0_7_isSet) {
  27134. _0_7 = combinators1.length;
  27135. t3 = _0_7;
  27136. t3 = t3 > 1;
  27137. } else
  27138. t3 = false;
  27139. _0_4_isSet = true;
  27140. _0_11 = _null;
  27141. if (!t3) {
  27142. t3 = _0_4;
  27143. _0_11_isSet = t2._is(t3);
  27144. if (_0_11_isSet) {
  27145. t3 = _0_4;
  27146. _0_11 = (t3 == null ? t2._as(t3) : t3).length;
  27147. t3 = _0_11;
  27148. t3 = t3 > 1;
  27149. } else
  27150. t3 = false;
  27151. } else {
  27152. _0_11_isSet = false;
  27153. t3 = true;
  27154. }
  27155. if (t3)
  27156. break $label0$0;
  27157. if (t2._is(combinators1)) {
  27158. if (_0_7_isSet)
  27159. t3 = _0_7;
  27160. else {
  27161. _0_7 = combinators1.length;
  27162. t3 = _0_7;
  27163. }
  27164. t3 = t3 <= 0;
  27165. if (t3)
  27166. if (_0_4_isSet)
  27167. combinators = _0_4;
  27168. else {
  27169. combinators = combinators2;
  27170. _0_4 = combinators;
  27171. _0_4_isSet = true;
  27172. }
  27173. else
  27174. combinators = t1;
  27175. t1 = t3;
  27176. } else {
  27177. combinators = t1;
  27178. t1 = false;
  27179. }
  27180. if (!t1) {
  27181. t1 = false;
  27182. if (_0_4_isSet)
  27183. t3 = _0_4;
  27184. else {
  27185. t3 = combinators2;
  27186. _0_4 = t3;
  27187. _0_4_isSet = true;
  27188. }
  27189. if (t2._is(t3)) {
  27190. if (_0_11_isSet)
  27191. t1 = _0_11;
  27192. else {
  27193. t1 = _0_4_isSet ? _0_4 : combinators2;
  27194. _0_11 = (t1 == null ? t2._as(t1) : t1).length;
  27195. t1 = _0_11;
  27196. }
  27197. t1 = t1 <= 0;
  27198. }
  27199. combinators = combinators1;
  27200. } else
  27201. t1 = true;
  27202. if (t1) {
  27203. t1 = combinators;
  27204. break $label0$0;
  27205. }
  27206. t1 = B.C_ListEquality.equals$2(0, combinators1, combinators2) ? combinators1 : _null;
  27207. break $label0$0;
  27208. }
  27209. return t1;
  27210. },
  27211. _mergeTrailingCombinators0(components1, components2, span, result) {
  27212. var _0_1, t1, _1_1, t2, t3, _4_1, _4_3, _4_4_isSet, _4_5, _4_4, component1, component2, t4, t5, choices, _2_0, _4_9, _4_6, _4_7, followingComponents, nextComponents, _4_4_isSet0, _4_6_isSet, _4_7_isSet, _4_10_isSet, _4_10, _4_5_isSet, next, following, _3_0, siblingComponents_case_0, siblingComponents_case_1, combinator1, t6, combinator2, unified, t7, combinator_case_0, combinatorComponents_case_0, descendantComponents_case_0, t0, combinator_case_1, descendantComponents_case_1, combinatorComponents_case_1, _null = null;
  27213. if (result == null)
  27214. result = A.QueueList$(_null, type$.List_List_ComplexSelectorComponent_2);
  27215. $label0$0: {
  27216. _0_1 = components1.get$length(0);
  27217. if (_0_1 >= 1) {
  27218. t1 = components1.$index(0, _0_1 - 1).combinators;
  27219. break $label0$0;
  27220. }
  27221. t1 = B.List_empty14;
  27222. break $label0$0;
  27223. }
  27224. $label1$1: {
  27225. _1_1 = components2.get$length(0);
  27226. if (_1_1 >= 1) {
  27227. t2 = components2.$index(0, _1_1 - 1).combinators;
  27228. break $label1$1;
  27229. }
  27230. t2 = B.List_empty14;
  27231. break $label1$1;
  27232. }
  27233. t3 = t1.length;
  27234. if (t3 === 0 && t2.length === 0)
  27235. return result;
  27236. if (t3 > 1 || t2.length > 1)
  27237. return _null;
  27238. $label2$2: {
  27239. t3 = A.IterableExtension_get_firstOrNull(t1);
  27240. t3 = t3 == null ? _null : t3.value;
  27241. t2 = A.IterableExtension_get_firstOrNull(t2);
  27242. t2 = [t3, t2 == null ? _null : t2.value, components1, components2];
  27243. _4_1 = t2[0];
  27244. _4_3 = B.Combinator_y180 === _4_1;
  27245. _4_4_isSet = _4_3;
  27246. _4_5 = _null;
  27247. _4_4 = _null;
  27248. if (_4_4_isSet) {
  27249. _4_4 = t2[1];
  27250. _4_5 = B.Combinator_y180 === _4_4;
  27251. t3 = _4_5;
  27252. } else
  27253. t3 = false;
  27254. if (t3) {
  27255. component1 = components1.removeLast$0(0);
  27256. component2 = components2.removeLast$0(0);
  27257. t2 = component1.selector;
  27258. t3 = component2.selector;
  27259. if (A.compoundIsSuperselector0(t2, t3, _null))
  27260. result.addFirst$1(A._setArrayType([A._setArrayType([component2], type$.JSArray_ComplexSelectorComponent_2)], type$.JSArray_List_ComplexSelectorComponent_2));
  27261. else {
  27262. t4 = type$.JSArray_ComplexSelectorComponent_2;
  27263. t5 = type$.JSArray_List_ComplexSelectorComponent_2;
  27264. if (A.compoundIsSuperselector0(t3, t2, _null))
  27265. result.addFirst$1(A._setArrayType([A._setArrayType([component1], t4)], t5));
  27266. else {
  27267. choices = A._setArrayType([A._setArrayType([component1, component2], t4), A._setArrayType([component2, component1], t4)], t5);
  27268. _2_0 = A.unifyCompound0(t2, t3);
  27269. if (_2_0 != null)
  27270. choices.push(A._setArrayType([new A.ComplexSelectorComponent0(_2_0, A.List_List$unmodifiable(A._setArrayType([B.JSArray_methods.get$first(t1)], type$.JSArray_CssValue_Combinator_2), type$.CssValue_Combinator_2), span)], t4));
  27271. result.addFirst$1(choices);
  27272. }
  27273. }
  27274. break $label2$2;
  27275. }
  27276. _4_9 = _null;
  27277. _4_6 = _null;
  27278. _4_7 = _null;
  27279. followingComponents = _null;
  27280. nextComponents = _null;
  27281. if (_4_3) {
  27282. if (_4_4_isSet) {
  27283. t3 = _4_4;
  27284. _4_4_isSet0 = _4_4_isSet;
  27285. } else {
  27286. _4_4 = t2[1];
  27287. t3 = _4_4;
  27288. _4_4_isSet0 = true;
  27289. }
  27290. _4_9 = B.Combinator_gRV0 === t3;
  27291. _4_6_isSet = _4_9;
  27292. if (_4_6_isSet) {
  27293. _4_6 = t2[2];
  27294. _4_7 = t2[3];
  27295. nextComponents = _4_7;
  27296. followingComponents = _4_6;
  27297. }
  27298. t3 = _4_6_isSet;
  27299. _4_7_isSet = t3;
  27300. } else {
  27301. _4_4_isSet0 = _4_4_isSet;
  27302. _4_6_isSet = false;
  27303. _4_7_isSet = false;
  27304. t3 = false;
  27305. }
  27306. _4_10_isSet = !t3;
  27307. _4_10 = _null;
  27308. if (_4_10_isSet) {
  27309. _4_10 = B.Combinator_gRV0 === _4_1;
  27310. t3 = _4_10;
  27311. if (t3) {
  27312. if (_4_4_isSet) {
  27313. t3 = _4_5;
  27314. _4_5_isSet = _4_4_isSet;
  27315. _4_4_isSet = _4_4_isSet0;
  27316. } else {
  27317. if (_4_4_isSet0) {
  27318. t3 = _4_4;
  27319. _4_4_isSet = _4_4_isSet0;
  27320. } else {
  27321. _4_4 = t2[1];
  27322. t3 = _4_4;
  27323. _4_4_isSet = true;
  27324. }
  27325. _4_5 = B.Combinator_y180 === t3;
  27326. t3 = _4_5;
  27327. _4_5_isSet = true;
  27328. }
  27329. if (t3) {
  27330. if (_4_6_isSet)
  27331. nextComponents = _4_6;
  27332. else {
  27333. _4_6 = t2[2];
  27334. nextComponents = _4_6;
  27335. _4_6_isSet = true;
  27336. }
  27337. if (_4_7_isSet)
  27338. followingComponents = _4_7;
  27339. else {
  27340. _4_7 = t2[3];
  27341. followingComponents = _4_7;
  27342. _4_7_isSet = true;
  27343. }
  27344. }
  27345. } else {
  27346. _4_5_isSet = _4_4_isSet;
  27347. _4_4_isSet = _4_4_isSet0;
  27348. t3 = false;
  27349. }
  27350. } else {
  27351. _4_5_isSet = _4_4_isSet;
  27352. _4_4_isSet = _4_4_isSet0;
  27353. t3 = true;
  27354. }
  27355. if (t3) {
  27356. next = nextComponents.removeLast$0(0);
  27357. following = followingComponents.removeLast$0(0);
  27358. t1 = following.selector;
  27359. t2 = next.selector;
  27360. t3 = type$.JSArray_ComplexSelectorComponent_2;
  27361. t4 = type$.JSArray_List_ComplexSelectorComponent_2;
  27362. if (A.compoundIsSuperselector0(t1, t2, _null))
  27363. result.addFirst$1(A._setArrayType([A._setArrayType([next], t3)], t4));
  27364. else {
  27365. t4 = A._setArrayType([A._setArrayType([following, next], t3)], t4);
  27366. _3_0 = A.unifyCompound0(t1, t2);
  27367. if (_3_0 != null)
  27368. t4.push(A._setArrayType([new A.ComplexSelectorComponent0(_3_0, A.List_List$unmodifiable(next.combinators, type$.CssValue_Combinator_2), span)], t3));
  27369. result.addFirst$1(t4);
  27370. }
  27371. break $label2$2;
  27372. }
  27373. t3 = _null;
  27374. if (B.Combinator_8I80 === _4_1) {
  27375. _4_4_isSet0 = true;
  27376. if (_4_3)
  27377. t4 = _4_9;
  27378. else {
  27379. if (_4_4_isSet)
  27380. t4 = _4_4;
  27381. else {
  27382. _4_4 = t2[1];
  27383. t4 = _4_4;
  27384. _4_4_isSet = _4_4_isSet0;
  27385. }
  27386. _4_9 = B.Combinator_gRV0 === t4;
  27387. t4 = _4_9;
  27388. }
  27389. if (!t4)
  27390. if (_4_5_isSet)
  27391. t4 = _4_5;
  27392. else {
  27393. if (_4_4_isSet)
  27394. t4 = _4_4;
  27395. else {
  27396. _4_4 = t2[1];
  27397. t4 = _4_4;
  27398. _4_4_isSet = _4_4_isSet0;
  27399. }
  27400. _4_5 = B.Combinator_y180 === t4;
  27401. t4 = _4_5;
  27402. }
  27403. else
  27404. t4 = true;
  27405. if (t4) {
  27406. if (_4_7_isSet)
  27407. siblingComponents_case_0 = _4_7;
  27408. else {
  27409. _4_7 = t2[3];
  27410. siblingComponents_case_0 = _4_7;
  27411. _4_7_isSet = true;
  27412. }
  27413. t3 = siblingComponents_case_0;
  27414. }
  27415. } else
  27416. t4 = false;
  27417. if (!t4) {
  27418. if (_4_10_isSet)
  27419. t4 = _4_10;
  27420. else {
  27421. _4_10 = B.Combinator_gRV0 === _4_1;
  27422. t4 = _4_10;
  27423. }
  27424. if (!t4)
  27425. t4 = _4_3;
  27426. else
  27427. t4 = true;
  27428. if (t4) {
  27429. if (_4_4_isSet)
  27430. t4 = _4_4;
  27431. else {
  27432. _4_4 = t2[1];
  27433. t4 = _4_4;
  27434. _4_4_isSet = true;
  27435. }
  27436. t4 = B.Combinator_8I80 === t4;
  27437. if (t4) {
  27438. if (_4_6_isSet)
  27439. siblingComponents_case_1 = _4_6;
  27440. else {
  27441. _4_6 = t2[2];
  27442. siblingComponents_case_1 = _4_6;
  27443. _4_6_isSet = true;
  27444. }
  27445. t3 = siblingComponents_case_1;
  27446. }
  27447. } else
  27448. t4 = false;
  27449. } else
  27450. t4 = true;
  27451. if (t4) {
  27452. result.addFirst$1(A._setArrayType([A._setArrayType([t3.removeLast$0(0)], type$.JSArray_ComplexSelectorComponent_2)], type$.JSArray_List_ComplexSelectorComponent_2));
  27453. break $label2$2;
  27454. }
  27455. t3 = _4_1 == null;
  27456. t4 = !t3;
  27457. t5 = false;
  27458. if (t4) {
  27459. _4_4_isSet0 = true;
  27460. combinator1 = _4_1;
  27461. if (_4_4_isSet)
  27462. t6 = _4_4;
  27463. else {
  27464. _4_4 = t2[1];
  27465. t6 = _4_4;
  27466. _4_4_isSet = _4_4_isSet0;
  27467. }
  27468. if (t6 != null) {
  27469. if (_4_4_isSet)
  27470. combinator2 = _4_4;
  27471. else {
  27472. _4_4 = t2[1];
  27473. combinator2 = _4_4;
  27474. _4_4_isSet = _4_4_isSet0;
  27475. }
  27476. t5 = combinator1 === (combinator2 == null ? type$.Combinator_2._as(combinator2) : combinator2);
  27477. }
  27478. }
  27479. if (t5) {
  27480. unified = A.unifyCompound0(components1.removeLast$0(0).selector, components2.removeLast$0(0).selector);
  27481. if (unified == null)
  27482. return _null;
  27483. result.addFirst$1(A._setArrayType([A._setArrayType([new A.ComplexSelectorComponent0(unified, A.List_List$unmodifiable(A._setArrayType([B.JSArray_methods.get$first(t1)], type$.JSArray_CssValue_Combinator_2), type$.CssValue_Combinator_2), span)], type$.JSArray_ComplexSelectorComponent_2)], type$.JSArray_List_ComplexSelectorComponent_2));
  27484. break $label2$2;
  27485. }
  27486. t1 = _null;
  27487. t5 = _null;
  27488. t6 = _null;
  27489. t7 = false;
  27490. if (t4) {
  27491. combinator_case_0 = _4_1;
  27492. if (_4_4_isSet)
  27493. t4 = _4_4;
  27494. else {
  27495. _4_4 = t2[1];
  27496. t4 = _4_4;
  27497. _4_4_isSet = true;
  27498. }
  27499. t4 = t4 == null;
  27500. if (t4) {
  27501. if (_4_6_isSet)
  27502. combinatorComponents_case_0 = _4_6;
  27503. else {
  27504. _4_6 = t2[2];
  27505. combinatorComponents_case_0 = _4_6;
  27506. _4_6_isSet = true;
  27507. }
  27508. if (_4_7_isSet)
  27509. descendantComponents_case_0 = _4_7;
  27510. else {
  27511. _4_7 = t2[3];
  27512. descendantComponents_case_0 = _4_7;
  27513. _4_7_isSet = true;
  27514. }
  27515. t1 = descendantComponents_case_0;
  27516. t6 = t1;
  27517. t1 = combinator_case_0;
  27518. t5 = combinatorComponents_case_0;
  27519. }
  27520. t0 = t6;
  27521. t6 = t4;
  27522. t4 = t5;
  27523. t5 = t0;
  27524. } else {
  27525. t4 = t5;
  27526. t5 = t6;
  27527. t6 = t7;
  27528. }
  27529. if (!t6)
  27530. if (t3) {
  27531. if (_4_4_isSet)
  27532. t3 = _4_4;
  27533. else {
  27534. _4_4 = t2[1];
  27535. t3 = _4_4;
  27536. _4_4_isSet = true;
  27537. }
  27538. t3 = t3 != null;
  27539. if (t3) {
  27540. combinator_case_1 = _4_4_isSet ? _4_4 : t2[1];
  27541. if (combinator_case_1 == null)
  27542. combinator_case_1 = type$.Combinator_2._as(combinator_case_1);
  27543. descendantComponents_case_1 = _4_6_isSet ? _4_6 : t2[2];
  27544. combinatorComponents_case_1 = _4_7_isSet ? _4_7 : t2[3];
  27545. t1 = combinatorComponents_case_1;
  27546. t2 = descendantComponents_case_1;
  27547. t4 = t2;
  27548. t2 = t1;
  27549. t1 = combinator_case_1;
  27550. } else {
  27551. t2 = t4;
  27552. t4 = t5;
  27553. }
  27554. t0 = t4;
  27555. t4 = t3;
  27556. t3 = t0;
  27557. } else {
  27558. t3 = t5;
  27559. t2 = t4;
  27560. t4 = false;
  27561. }
  27562. else {
  27563. t3 = t5;
  27564. t2 = t4;
  27565. t4 = true;
  27566. }
  27567. if (t4) {
  27568. if (t1 === B.Combinator_8I80) {
  27569. t1 = A.IterableExtension_get_lastOrNull(t3);
  27570. t1 = t1 == null ? _null : A.compoundIsSuperselector0(t1.selector, t2.get$last(t2).selector, _null);
  27571. t1 = t1 === true;
  27572. } else
  27573. t1 = false;
  27574. if (t1)
  27575. t3.removeLast$0(0);
  27576. result.addFirst$1(A._setArrayType([A._setArrayType([t2.removeLast$0(0)], type$.JSArray_ComplexSelectorComponent_2)], type$.JSArray_List_ComplexSelectorComponent_2));
  27577. break $label2$2;
  27578. }
  27579. return _null;
  27580. }
  27581. return A._mergeTrailingCombinators0(components1, components2, span, result);
  27582. },
  27583. _mustUnify0(complex1, complex2) {
  27584. var t2, t3, t4,
  27585. t1 = A.LinkedHashSet_LinkedHashSet$_empty(type$.SimpleSelector_2);
  27586. for (t2 = J.get$iterator$ax(complex1); t2.moveNext$0();)
  27587. for (t3 = B.JSArray_methods.get$iterator(t2.get$current(t2).selector.components), t4 = new A.WhereIterator(t3, A.functions0___isUnique$closure()); t4.moveNext$0();)
  27588. t1.add$1(0, t3.get$current(0));
  27589. if (t1._collection$_length === 0)
  27590. return false;
  27591. return J.any$1$ax(complex2, new A._mustUnify_closure0(t1));
  27592. },
  27593. _isUnique0(simple) {
  27594. var t1;
  27595. if (!(simple instanceof A.IDSelector0))
  27596. t1 = simple instanceof A.PseudoSelector0 && !simple.isClass;
  27597. else
  27598. t1 = true;
  27599. return t1;
  27600. },
  27601. _chunks0(queue1, queue2, done, $T) {
  27602. var chunk2, _0_4, _0_5_isSet, _0_1, _0_7, _0_5, chunk, _0_5_isSet0, t2, _null = null,
  27603. t1 = $T._eval$1("JSArray<0>"),
  27604. chunk1 = A._setArrayType([], t1);
  27605. for (; !done.call$1(queue1);)
  27606. chunk1.push(queue1.removeFirst$0());
  27607. chunk2 = A._setArrayType([], t1);
  27608. for (; !done.call$1(queue2);)
  27609. chunk2.push(queue2.removeFirst$0());
  27610. $label0$0: {
  27611. _0_4 = chunk1.length <= 0;
  27612. _0_5_isSet = _0_4;
  27613. _0_1 = chunk1;
  27614. _0_7 = _null;
  27615. _0_5 = _null;
  27616. if (_0_5_isSet) {
  27617. _0_7 = chunk2.length <= 0;
  27618. t1 = _0_7;
  27619. _0_5 = chunk2;
  27620. } else
  27621. t1 = false;
  27622. if (t1) {
  27623. t1 = A._setArrayType([], $T._eval$1("JSArray<List<0>>"));
  27624. break $label0$0;
  27625. }
  27626. if (_0_4)
  27627. if (_0_5_isSet) {
  27628. chunk = _0_5;
  27629. _0_5_isSet0 = _0_5_isSet;
  27630. } else {
  27631. chunk = chunk2;
  27632. _0_5 = chunk;
  27633. _0_5_isSet0 = true;
  27634. }
  27635. else {
  27636. chunk = _null;
  27637. _0_5_isSet0 = _0_5_isSet;
  27638. }
  27639. if (!_0_4) {
  27640. if (_0_5_isSet)
  27641. t1 = _0_7;
  27642. else {
  27643. _0_7 = (_0_5_isSet0 ? _0_5 : chunk2).length <= 0;
  27644. t1 = _0_7;
  27645. }
  27646. chunk = _0_1;
  27647. } else
  27648. t1 = true;
  27649. if (t1) {
  27650. t1 = A._setArrayType([chunk], $T._eval$1("JSArray<List<0>>"));
  27651. break $label0$0;
  27652. }
  27653. t1 = A.List_List$of(chunk1, true, $T);
  27654. B.JSArray_methods.addAll$1(t1, chunk2);
  27655. t2 = A.List_List$of(chunk2, true, $T);
  27656. B.JSArray_methods.addAll$1(t2, chunk1);
  27657. t2 = A._setArrayType([t1, t2], $T._eval$1("JSArray<List<0>>"));
  27658. t1 = t2;
  27659. break $label0$0;
  27660. }
  27661. return t1;
  27662. },
  27663. paths0(choices, $T) {
  27664. return J.fold$2$ax(choices, A._setArrayType([A._setArrayType([], $T._eval$1("JSArray<0>"))], $T._eval$1("JSArray<List<0>>")), new A.paths_closure0($T));
  27665. },
  27666. _groupSelectors0(complex) {
  27667. var t2, t3, t4,
  27668. groups = A.QueueList$(null, type$.List_ComplexSelectorComponent_2),
  27669. t1 = type$.JSArray_ComplexSelectorComponent_2,
  27670. group = A._setArrayType([], t1);
  27671. for (t2 = complex.$ti, t3 = new A.ListIterator(complex, complex.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t2 = t2._eval$1("ListBase.E"); t3.moveNext$0();) {
  27672. t4 = t3.__internal$_current;
  27673. if (t4 == null)
  27674. t4 = t2._as(t4);
  27675. group.push(t4);
  27676. if (t4.combinators.length === 0) {
  27677. groups._queue_list$_add$1(group);
  27678. group = A._setArrayType([], t1);
  27679. }
  27680. }
  27681. if (group.length !== 0)
  27682. groups._queue_list$_add$1(group);
  27683. return groups;
  27684. },
  27685. listIsSuperselector0(list1, list2) {
  27686. return B.JSArray_methods.every$1(list2, new A.listIsSuperselector_closure0(list1));
  27687. },
  27688. _complexIsParentSuperselector0(complex1, complex2) {
  27689. var t1, base, t2;
  27690. if (J.get$length$asx(complex1) > J.get$length$asx(complex2))
  27691. return false;
  27692. t1 = $.$get$bogusSpan0();
  27693. base = new A.ComplexSelectorComponent0(A.CompoundSelector$0(A._setArrayType([new A.PlaceholderSelector0("<temp>", t1)], type$.JSArray_SimpleSelector_2), t1), A.List_List$unmodifiable(B.List_empty14, type$.CssValue_Combinator_2), t1);
  27694. t1 = type$.ComplexSelectorComponent_2;
  27695. t2 = A.List_List$of(complex1, true, t1);
  27696. t2.push(base);
  27697. t1 = A.List_List$of(complex2, true, t1);
  27698. t1.push(base);
  27699. return A.complexIsSuperselector0(t2, t1);
  27700. },
  27701. complexIsSuperselector0(complex1, complex2) {
  27702. var t1, t2, previousCombinator, i1, i2, remaining1, remaining2, component1, t3, t4, endOfSubselector, component2, t5, combinator1, _null = null;
  27703. if (B.JSArray_methods.get$last(complex1).combinators.length !== 0)
  27704. return false;
  27705. if (B.JSArray_methods.get$last(complex2).combinators.length !== 0)
  27706. return false;
  27707. for (t1 = A._arrayInstanceType(complex2), t2 = t1._precomputed1, t1 = t1._eval$1("SubListIterable<1>"), previousCombinator = _null, i1 = 0, i2 = 0; true; previousCombinator = combinator1) {
  27708. remaining1 = complex1.length - i1;
  27709. remaining2 = complex2.length - i2;
  27710. if (remaining1 === 0 || remaining2 === 0)
  27711. return false;
  27712. if (remaining1 > remaining2)
  27713. return false;
  27714. component1 = complex1[i1];
  27715. t3 = component1.combinators;
  27716. if (t3.length > 1)
  27717. return false;
  27718. if (remaining1 === 1)
  27719. if (B.JSArray_methods.any$1(complex2, new A.complexIsSuperselector_closure1()))
  27720. return false;
  27721. else {
  27722. t1 = component1.selector;
  27723. t2 = B.JSArray_methods.get$last(complex2).selector;
  27724. return A.compoundIsSuperselector0(t1, t2, t1.get$hasComplicatedSuperselectorSemantics() ? B.JSArray_methods.sublist$2(complex2, i2, complex2.length - 1) : _null);
  27725. }
  27726. for (t4 = component1.selector, endOfSubselector = i2; true;) {
  27727. component2 = complex2[endOfSubselector];
  27728. if (component2.combinators.length > 1)
  27729. return false;
  27730. t5 = component2.selector;
  27731. if (A.compoundIsSuperselector0(t4, t5, t4.get$hasComplicatedSuperselectorSemantics() ? B.JSArray_methods.sublist$2(complex2, i2, endOfSubselector) : _null))
  27732. break;
  27733. ++endOfSubselector;
  27734. if (endOfSubselector === complex2.length - 1)
  27735. return false;
  27736. }
  27737. t4 = new A.SubListIterable(complex2, 0, endOfSubselector, t1);
  27738. t4.SubListIterable$3(complex2, 0, endOfSubselector, t2);
  27739. if (!A._compatibleWithPreviousCombinator0(previousCombinator, t4.skip$1(0, i2)))
  27740. return false;
  27741. component2 = complex2[endOfSubselector];
  27742. combinator1 = A.IterableExtension_get_firstOrNull(t3);
  27743. if (!A._isSupercombinator0(combinator1, A.IterableExtension_get_firstOrNull(component2.combinators)))
  27744. return false;
  27745. ++i1;
  27746. i2 = endOfSubselector + 1;
  27747. if (complex1.length - i1 === 1) {
  27748. t3 = combinator1 == null;
  27749. if (J.$eq$(t3 ? _null : combinator1.value, B.Combinator_y180)) {
  27750. t3 = complex2.length - 1;
  27751. t4 = new A.SubListIterable(complex2, 0, t3, t1);
  27752. t4.SubListIterable$3(complex2, 0, t3, t2);
  27753. if (!t4.skip$1(0, i2).every$1(0, new A.complexIsSuperselector_closure2(combinator1)))
  27754. return false;
  27755. } else if (!t3)
  27756. if (complex2.length - i2 > 1)
  27757. return false;
  27758. }
  27759. }
  27760. },
  27761. _compatibleWithPreviousCombinator0(previous, parents) {
  27762. if (parents.get$isEmpty(parents))
  27763. return true;
  27764. if (previous == null)
  27765. return true;
  27766. if (previous.value !== B.Combinator_y180)
  27767. return false;
  27768. return parents.every$1(0, new A._compatibleWithPreviousCombinator_closure0());
  27769. },
  27770. _isSupercombinator0(combinator1, combinator2) {
  27771. var t2, t3,
  27772. t1 = true;
  27773. if (!J.$eq$(combinator1, combinator2)) {
  27774. t2 = combinator1 == null;
  27775. if (t2)
  27776. t3 = J.$eq$(combinator2 == null ? null : combinator2.value, B.Combinator_8I80);
  27777. else
  27778. t3 = false;
  27779. if (!t3)
  27780. if (J.$eq$(t2 ? null : combinator1.value, B.Combinator_y180))
  27781. t1 = J.$eq$(combinator2 == null ? null : combinator2.value, B.Combinator_gRV0);
  27782. else
  27783. t1 = false;
  27784. }
  27785. return t1;
  27786. },
  27787. compoundIsSuperselector0(compound1, compound2, parents) {
  27788. var t1, _0_1, _0_5, _0_5_isSet, _0_50, index1, pseudo2, index2, t2, t3, pseudo1, t4, t5, _i, simple1, _null = null;
  27789. if (!compound1.get$hasComplicatedSuperselectorSemantics() && !compound2.get$hasComplicatedSuperselectorSemantics()) {
  27790. t1 = compound1.components;
  27791. if (t1.length > compound2.components.length)
  27792. return false;
  27793. return B.JSArray_methods.every$1(t1, new A.compoundIsSuperselector_closure0(compound2));
  27794. }
  27795. _0_1 = A._findPseudoElementIndexed0(compound1);
  27796. _0_5 = A._findPseudoElementIndexed0(compound2);
  27797. t1 = type$.Record_2_nullable_Object_and_nullable_Object;
  27798. _0_5_isSet = t1._is(_0_1);
  27799. _0_50 = _null;
  27800. index1 = _null;
  27801. pseudo2 = _null;
  27802. index2 = _null;
  27803. t2 = false;
  27804. if (_0_5_isSet) {
  27805. t3 = _0_1 == null;
  27806. pseudo1 = (t3 ? t1._as(_0_1) : _0_1)._0;
  27807. index1 = (t3 ? t1._as(_0_1) : _0_1)._1;
  27808. t2 = t1._is(_0_5);
  27809. if (t2) {
  27810. t3 = _0_5 == null;
  27811. pseudo2 = (t3 ? t1._as(_0_5) : _0_5)._0;
  27812. index2 = (t3 ? t1._as(_0_5) : _0_5)._1;
  27813. }
  27814. t1 = t2;
  27815. _0_50 = _0_5;
  27816. } else {
  27817. t1 = t2;
  27818. pseudo1 = _null;
  27819. }
  27820. if (t1) {
  27821. if (pseudo1.isSuperselector$1(pseudo2)) {
  27822. t1 = compound1.components;
  27823. t2 = type$.int;
  27824. t3 = A._arrayInstanceType(t1)._precomputed1;
  27825. t4 = compound2.components;
  27826. t5 = A._arrayInstanceType(t4)._precomputed1;
  27827. t1 = A._compoundComponentsIsSuperselector0(A.SubListIterable$(t1, 0, A.checkNotNullable(index1, "count", t2), t3), A.SubListIterable$(t4, 0, A.checkNotNullable(index2, "count", t2), t5), parents) && A._compoundComponentsIsSuperselector0(A.SubListIterable$(t1, index1 + 1, _null, t3), A.SubListIterable$(t4, index2 + 1, _null, t5), parents);
  27828. } else
  27829. t1 = false;
  27830. return t1;
  27831. }
  27832. if (_0_1 == null)
  27833. t1 = (_0_5_isSet ? _0_50 : _0_5) != null;
  27834. else
  27835. t1 = true;
  27836. if (t1)
  27837. return false;
  27838. for (t1 = compound1.components, t2 = t1.length, t3 = compound2.components, _i = 0; _i < t2; ++_i) {
  27839. simple1 = t1[_i];
  27840. if (simple1 instanceof A.PseudoSelector0)
  27841. t4 = simple1.selector != null;
  27842. else
  27843. t4 = false;
  27844. if (t4) {
  27845. if (!A._selectorPseudoIsSuperselector0(simple1, compound2, parents))
  27846. return false;
  27847. } else if (!B.JSArray_methods.any$1(t3, simple1.get$isSuperselector()))
  27848. return false;
  27849. }
  27850. return true;
  27851. },
  27852. _findPseudoElementIndexed0(compound) {
  27853. var t1, t2, i, simple;
  27854. for (t1 = compound.components, t2 = t1.length, i = 0; i < t2; ++i) {
  27855. simple = t1[i];
  27856. if (simple instanceof A.PseudoSelector0 && !simple.isClass)
  27857. return new A._Record_2(simple, i);
  27858. }
  27859. return null;
  27860. },
  27861. _compoundComponentsIsSuperselector0(compound1, compound2, parents) {
  27862. var t1;
  27863. if (compound1.get$length(0) === 0)
  27864. return true;
  27865. if (compound2.get$length(0) === 0)
  27866. compound2 = A._setArrayType([new A.UniversalSelector0("*", $.$get$bogusSpan0())], type$.JSArray_SimpleSelector_2);
  27867. t1 = $.$get$bogusSpan0();
  27868. return A.compoundIsSuperselector0(A.CompoundSelector$0(compound1, t1), A.CompoundSelector$0(compound2, t1), parents);
  27869. },
  27870. _selectorPseudoIsSuperselector0(pseudo1, compound2, parents) {
  27871. var selector1 = pseudo1.selector;
  27872. if (selector1 == null)
  27873. throw A.wrapException(A.ArgumentError$("Selector " + pseudo1.toString$0(0) + " must have a selector argument.", null));
  27874. switch (pseudo1.normalizedName) {
  27875. case "is":
  27876. case "matches":
  27877. case "any":
  27878. case "where":
  27879. return A._selectorPseudoArgs0(compound2, pseudo1.name, true).any$1(0, new A._selectorPseudoIsSuperselector_closure6(selector1)) || B.JSArray_methods.any$1(selector1.components, new A._selectorPseudoIsSuperselector_closure7(parents, compound2));
  27880. case "has":
  27881. case "host":
  27882. case "host-context":
  27883. return A._selectorPseudoArgs0(compound2, pseudo1.name, true).any$1(0, new A._selectorPseudoIsSuperselector_closure8(selector1));
  27884. case "slotted":
  27885. return A._selectorPseudoArgs0(compound2, pseudo1.name, false).any$1(0, new A._selectorPseudoIsSuperselector_closure9(selector1));
  27886. case "not":
  27887. return B.JSArray_methods.every$1(selector1.components, new A._selectorPseudoIsSuperselector_closure10(compound2, pseudo1));
  27888. case "current":
  27889. return A._selectorPseudoArgs0(compound2, pseudo1.name, true).any$1(0, new A._selectorPseudoIsSuperselector_closure11(selector1));
  27890. case "nth-child":
  27891. case "nth-last-child":
  27892. return B.JSArray_methods.any$1(compound2.components, new A._selectorPseudoIsSuperselector_closure12(pseudo1, selector1));
  27893. default:
  27894. throw A.wrapException("unreachable");
  27895. }
  27896. },
  27897. _selectorPseudoArgs0(compound, $name, isClass) {
  27898. var t1 = type$.WhereTypeIterable_PseudoSelector_2;
  27899. return new A.NonNullsIterable(new A.MappedIterable(new A.WhereIterable(new A.WhereTypeIterable(compound.components, t1), new A._selectorPseudoArgs_closure1(isClass, $name), t1._eval$1("WhereIterable<Iterable.E>")), new A._selectorPseudoArgs_closure2(), t1._eval$1("MappedIterable<Iterable.E,SelectorList0?>")), type$.NonNullsIterable_SelectorList_2);
  27900. },
  27901. unifyComplex_closure0: function unifyComplex_closure0() {
  27902. },
  27903. _weaveParents_closure3: function _weaveParents_closure3(t0) {
  27904. this.span = t0;
  27905. },
  27906. _weaveParents_closure4: function _weaveParents_closure4(t0) {
  27907. this.group = t0;
  27908. },
  27909. _weaveParents_closure5: function _weaveParents_closure5() {
  27910. },
  27911. _weaveParents_closure6: function _weaveParents_closure6() {
  27912. },
  27913. _mustUnify_closure0: function _mustUnify_closure0(t0) {
  27914. this.uniqueSelectors = t0;
  27915. },
  27916. _mustUnify__closure0: function _mustUnify__closure0(t0) {
  27917. this.uniqueSelectors = t0;
  27918. },
  27919. paths_closure0: function paths_closure0(t0) {
  27920. this.T = t0;
  27921. },
  27922. paths__closure0: function paths__closure0(t0, t1) {
  27923. this.paths = t0;
  27924. this.T = t1;
  27925. },
  27926. paths___closure0: function paths___closure0(t0, t1) {
  27927. this.option = t0;
  27928. this.T = t1;
  27929. },
  27930. listIsSuperselector_closure0: function listIsSuperselector_closure0(t0) {
  27931. this.list1 = t0;
  27932. },
  27933. listIsSuperselector__closure0: function listIsSuperselector__closure0(t0) {
  27934. this.complex1 = t0;
  27935. },
  27936. complexIsSuperselector_closure1: function complexIsSuperselector_closure1() {
  27937. },
  27938. complexIsSuperselector_closure2: function complexIsSuperselector_closure2(t0) {
  27939. this.combinator1 = t0;
  27940. },
  27941. _compatibleWithPreviousCombinator_closure0: function _compatibleWithPreviousCombinator_closure0() {
  27942. },
  27943. compoundIsSuperselector_closure0: function compoundIsSuperselector_closure0(t0) {
  27944. this.compound2 = t0;
  27945. },
  27946. _selectorPseudoIsSuperselector_closure6: function _selectorPseudoIsSuperselector_closure6(t0) {
  27947. this.selector1 = t0;
  27948. },
  27949. _selectorPseudoIsSuperselector_closure7: function _selectorPseudoIsSuperselector_closure7(t0, t1) {
  27950. this.parents = t0;
  27951. this.compound2 = t1;
  27952. },
  27953. _selectorPseudoIsSuperselector_closure8: function _selectorPseudoIsSuperselector_closure8(t0) {
  27954. this.selector1 = t0;
  27955. },
  27956. _selectorPseudoIsSuperselector_closure9: function _selectorPseudoIsSuperselector_closure9(t0) {
  27957. this.selector1 = t0;
  27958. },
  27959. _selectorPseudoIsSuperselector_closure10: function _selectorPseudoIsSuperselector_closure10(t0, t1) {
  27960. this.compound2 = t0;
  27961. this.pseudo1 = t1;
  27962. },
  27963. _selectorPseudoIsSuperselector__closure0: function _selectorPseudoIsSuperselector__closure0(t0, t1) {
  27964. this.complex = t0;
  27965. this.pseudo1 = t1;
  27966. },
  27967. _selectorPseudoIsSuperselector___closure1: function _selectorPseudoIsSuperselector___closure1(t0) {
  27968. this.simple2 = t0;
  27969. },
  27970. _selectorPseudoIsSuperselector___closure2: function _selectorPseudoIsSuperselector___closure2(t0) {
  27971. this.simple2 = t0;
  27972. },
  27973. _selectorPseudoIsSuperselector_closure11: function _selectorPseudoIsSuperselector_closure11(t0) {
  27974. this.selector1 = t0;
  27975. },
  27976. _selectorPseudoIsSuperselector_closure12: function _selectorPseudoIsSuperselector_closure12(t0, t1) {
  27977. this.pseudo1 = t0;
  27978. this.selector1 = t1;
  27979. },
  27980. _selectorPseudoArgs_closure1: function _selectorPseudoArgs_closure1(t0, t1) {
  27981. this.isClass = t0;
  27982. this.name = t1;
  27983. },
  27984. _selectorPseudoArgs_closure2: function _selectorPseudoArgs_closure2() {
  27985. },
  27986. globalFunctions_closure0: function globalFunctions_closure0() {
  27987. },
  27988. GamutMapMethod_GamutMapMethod$fromName0($name) {
  27989. var t1;
  27990. $label0$0: {
  27991. if ("clip" === $name) {
  27992. t1 = B.ClipGamutMap_clip0;
  27993. break $label0$0;
  27994. }
  27995. if ("local-minde" === $name) {
  27996. t1 = B.LocalMindeGamutMap_Q7f0;
  27997. break $label0$0;
  27998. }
  27999. t1 = A.throwExpression(A.SassScriptException$0('Unknown gamut map method "' + $name + '".', null));
  28000. }
  28001. return t1;
  28002. },
  28003. GamutMapMethod0: function GamutMapMethod0() {
  28004. },
  28005. HslColorSpace0: function HslColorSpace0(t0, t1) {
  28006. this.name = t0;
  28007. this._space$_channels = t1;
  28008. },
  28009. HwbColorSpace0: function HwbColorSpace0(t0, t1) {
  28010. this.name = t0;
  28011. this._space$_channels = t1;
  28012. },
  28013. HwbColorSpace_convert_toRgb0: function HwbColorSpace_convert_toRgb0(t0, t1) {
  28014. this._box_0 = t0;
  28015. this.factor = t1;
  28016. },
  28017. IDSelector0: function IDSelector0(t0, t1) {
  28018. this.name = t0;
  28019. this.span = t1;
  28020. },
  28021. IDSelector_unify_closure0: function IDSelector_unify_closure0(t0) {
  28022. this.$this = t0;
  28023. },
  28024. IfExpression0: function IfExpression0(t0, t1) {
  28025. this.$arguments = t0;
  28026. this.span = t1;
  28027. },
  28028. IfClause$0(expression, children) {
  28029. var t1 = A.List_List$unmodifiable(children, type$.Statement_2);
  28030. return new A.IfClause0(expression, t1, B.JSArray_methods.any$1(t1, new A.IfRuleClause$__closure0()));
  28031. },
  28032. ElseClause$0(children) {
  28033. var t1 = A.List_List$unmodifiable(children, type$.Statement_2);
  28034. return new A.ElseClause0(t1, B.JSArray_methods.any$1(t1, new A.IfRuleClause$__closure0()));
  28035. },
  28036. IfRule0: function IfRule0(t0, t1, t2) {
  28037. this.clauses = t0;
  28038. this.lastClause = t1;
  28039. this.span = t2;
  28040. },
  28041. IfRule_toString_closure0: function IfRule_toString_closure0() {
  28042. },
  28043. IfRuleClause0: function IfRuleClause0() {
  28044. },
  28045. IfRuleClause$__closure0: function IfRuleClause$__closure0() {
  28046. },
  28047. IfRuleClause$___closure0: function IfRuleClause$___closure0() {
  28048. },
  28049. IfClause0: function IfClause0(t0, t1, t2) {
  28050. this.expression = t0;
  28051. this.children = t1;
  28052. this.hasDeclarations = t2;
  28053. },
  28054. ElseClause0: function ElseClause0(t0, t1) {
  28055. this.children = t0;
  28056. this.hasDeclarations = t1;
  28057. },
  28058. jsToDartList(list) {
  28059. return self.immutable.isOrderedMap(list) ? J.toArray$0$x(type$.ImmutableList._as(list)) : type$.List_dynamic._as(list);
  28060. },
  28061. dartMapToImmutableMap(dartMap) {
  28062. var t1, t2,
  28063. immutableMap = J.asMutable$0$x(new self.immutable.OrderedMap());
  28064. for (t1 = A.MapExtensions_get_pairs0(dartMap, type$.Object, type$.nullable_Object), t1 = t1.get$iterator(t1); t1.moveNext$0();) {
  28065. t2 = t1.get$current(t1);
  28066. immutableMap = J.$set$2$x(immutableMap, t2._0, t2._1);
  28067. }
  28068. return J.asImmutable$0$x(immutableMap);
  28069. },
  28070. immutableMapToDartMap(immutableMap) {
  28071. var dartMap = A.LinkedHashMap_LinkedHashMap$_empty(type$.Object, type$.nullable_Object);
  28072. J.forEach$1$ax(immutableMap, A.allowInterop(new A.immutableMapToDartMap_closure(dartMap)));
  28073. return dartMap;
  28074. },
  28075. ImmutableList0: function ImmutableList0() {
  28076. },
  28077. ImmutableMap0: function ImmutableMap0() {
  28078. },
  28079. immutableMapToDartMap_closure: function immutableMapToDartMap_closure(t0) {
  28080. this.dartMap = t0;
  28081. },
  28082. NodeImporter__addSassPath(includePaths) {
  28083. return new A._SyncStarIterable(A.NodeImporter__addSassPath$body(includePaths), type$._SyncStarIterable_String);
  28084. },
  28085. NodeImporter__addSassPath$body($async$includePaths) {
  28086. return function() {
  28087. var includePaths = $async$includePaths;
  28088. var $async$goto = 0, $async$handler = 2, $async$currentError, sassPath, t1;
  28089. return function $async$NodeImporter__addSassPath($async$iterator, $async$errorCode, $async$result) {
  28090. if ($async$errorCode === 1) {
  28091. $async$currentError = $async$result;
  28092. $async$goto = $async$handler;
  28093. }
  28094. while (true)
  28095. switch ($async$goto) {
  28096. case 0:
  28097. // Function start
  28098. $async$goto = 3;
  28099. return $async$iterator._yieldStar$1(includePaths);
  28100. case 3:
  28101. // after yield
  28102. sassPath = A.getEnvironmentVariable0("SASS_PATH");
  28103. if (sassPath == null) {
  28104. // goto return
  28105. $async$goto = 1;
  28106. break;
  28107. }
  28108. t1 = A.isNodeJs() ? self.process : null;
  28109. $async$goto = 4;
  28110. return $async$iterator._yieldStar$1(A._setArrayType(sassPath.split(J.$eq$(t1 == null ? null : J.get$platform$x(t1), "win32") ? ";" : ":"), type$.JSArray_String));
  28111. case 4:
  28112. // after yield
  28113. case 1:
  28114. // return
  28115. return 0;
  28116. case 2:
  28117. // rethrow
  28118. return $async$iterator._datum = $async$currentError, 3;
  28119. }
  28120. };
  28121. };
  28122. },
  28123. NodeImporter: function NodeImporter(t0, t1, t2) {
  28124. this._implementation$_options = t0;
  28125. this._includePaths = t1;
  28126. this._implementation$_importers = t2;
  28127. },
  28128. NodeImporter_load_closure: function NodeImporter_load_closure(t0, t1, t2, t3, t4) {
  28129. var _ = this;
  28130. _.$this = t0;
  28131. _.importer = t1;
  28132. _.forImport = t2;
  28133. _.url = t3;
  28134. _.previousString = t4;
  28135. },
  28136. NodeImporter__tryPath_closure: function NodeImporter__tryPath_closure(t0) {
  28137. this.path = t0;
  28138. },
  28139. NodeImporter__tryPath_closure0: function NodeImporter__tryPath_closure0() {
  28140. },
  28141. NodeImporter__callImporterAsync_closure: function NodeImporter__callImporterAsync_closure(t0, t1, t2, t3, t4, t5) {
  28142. var _ = this;
  28143. _.$this = t0;
  28144. _.importer = t1;
  28145. _.forImport = t2;
  28146. _.url = t3;
  28147. _.previousString = t4;
  28148. _.completer = t5;
  28149. },
  28150. ModifiableCssImport0: function ModifiableCssImport0(t0, t1, t2) {
  28151. var _ = this;
  28152. _.url = t0;
  28153. _.modifiers = t1;
  28154. _.span = t2;
  28155. _._node$_indexInParent = _._node$_parent = null;
  28156. _.isGroupEnd = false;
  28157. },
  28158. ImportCache$0(importers, loadPaths, packageConfig) {
  28159. var t1 = type$.nullable_Record_3_Importer_and_Uri_and_Uri_originalUrl_2,
  28160. t2 = type$.Record_3_Importer_and_Uri_and_bool_forImport_2,
  28161. t3 = type$.Uri;
  28162. return new A.ImportCache0(A.ImportCache__toImporters0(importers, loadPaths, packageConfig), A.LinkedHashMap_LinkedHashMap$_empty(type$.Record_2_Uri_and_bool_forImport, t1), A.LinkedHashMap_LinkedHashMap$_empty(t2, t1), A.LinkedHashMap_LinkedHashMap$_empty(t2, t3), A.LinkedHashMap_LinkedHashMap$_empty(t3, type$.nullable_Stylesheet_2), A.LinkedHashMap_LinkedHashMap$_empty(t3, type$.ImporterResult_2));
  28163. },
  28164. ImportCache$none() {
  28165. var t1 = type$.nullable_Record_3_Importer_and_Uri_and_Uri_originalUrl_2,
  28166. t2 = type$.Record_3_Importer_and_Uri_and_bool_forImport_2,
  28167. t3 = type$.Uri;
  28168. return new A.ImportCache0(B.List_empty25, A.LinkedHashMap_LinkedHashMap$_empty(type$.Record_2_Uri_and_bool_forImport, t1), A.LinkedHashMap_LinkedHashMap$_empty(t2, t1), A.LinkedHashMap_LinkedHashMap$_empty(t2, t3), A.LinkedHashMap_LinkedHashMap$_empty(t3, type$.nullable_Stylesheet_2), A.LinkedHashMap_LinkedHashMap$_empty(t3, type$.ImporterResult_2));
  28169. },
  28170. ImportCache__toImporters0(importers, loadPaths, packageConfig) {
  28171. var t1, t2, t3, t4, _i, path, _null = null,
  28172. sassPath = A.getEnvironmentVariable0("SASS_PATH");
  28173. if (A.isBrowser()) {
  28174. t1 = A._setArrayType([], type$.JSArray_Importer_2);
  28175. if (importers != null)
  28176. B.JSArray_methods.addAll$1(t1, importers);
  28177. return t1;
  28178. }
  28179. t1 = A._setArrayType([], type$.JSArray_Importer_2);
  28180. if (importers != null)
  28181. B.JSArray_methods.addAll$1(t1, importers);
  28182. if (loadPaths != null)
  28183. for (t2 = J.get$iterator$ax(loadPaths); t2.moveNext$0();) {
  28184. t3 = t2.get$current(t2);
  28185. t1.push(new A.FilesystemImporter0($.$get$context().absolute$15(t3, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null), false));
  28186. }
  28187. if (sassPath != null) {
  28188. t2 = A.isNodeJs() ? self.process : _null;
  28189. t3 = sassPath.split(J.$eq$(t2 == null ? _null : J.get$platform$x(t2), "win32") ? ";" : ":");
  28190. t4 = t3.length;
  28191. _i = 0;
  28192. for (; _i < t4; ++_i) {
  28193. path = t3[_i];
  28194. t1.push(new A.FilesystemImporter0($.$get$context().absolute$15(path, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null), false));
  28195. }
  28196. }
  28197. return t1;
  28198. },
  28199. ImportCache0: function ImportCache0(t0, t1, t2, t3, t4, t5) {
  28200. var _ = this;
  28201. _._import_cache$_importers = t0;
  28202. _._import_cache$_canonicalizeCache = t1;
  28203. _._import_cache$_perImporterCanonicalizeCache = t2;
  28204. _._import_cache$_nonCanonicalRelativeUrls = t3;
  28205. _._import_cache$_importCache = t4;
  28206. _._import_cache$_resultsCache = t5;
  28207. },
  28208. ImportCache_canonicalize_closure0: function ImportCache_canonicalize_closure0(t0, t1, t2, t3, t4, t5, t6) {
  28209. var _ = this;
  28210. _.$this = t0;
  28211. _.baseImporter = t1;
  28212. _.resolvedUrl = t2;
  28213. _.baseUrl = t3;
  28214. _.forImport = t4;
  28215. _.key = t5;
  28216. _.url = t6;
  28217. },
  28218. ImportCache__canonicalize_closure0: function ImportCache__canonicalize_closure0(t0, t1) {
  28219. this.importer = t0;
  28220. this.url = t1;
  28221. },
  28222. ImportCache_importCanonical_closure0: function ImportCache_importCanonical_closure0(t0, t1, t2, t3) {
  28223. var _ = this;
  28224. _.$this = t0;
  28225. _.importer = t1;
  28226. _.canonicalUrl = t2;
  28227. _.originalUrl = t3;
  28228. },
  28229. ImportCache_humanize_closure3: function ImportCache_humanize_closure3(t0) {
  28230. this.canonicalUrl = t0;
  28231. },
  28232. ImportCache_humanize_closure4: function ImportCache_humanize_closure4() {
  28233. },
  28234. ImportCache_humanize_closure5: function ImportCache_humanize_closure5() {
  28235. },
  28236. ImportCache_humanize_closure6: function ImportCache_humanize_closure6(t0) {
  28237. this.canonicalUrl = t0;
  28238. },
  28239. ImportRule0: function ImportRule0(t0, t1) {
  28240. this.imports = t0;
  28241. this.span = t1;
  28242. },
  28243. JSImporter: function JSImporter() {
  28244. },
  28245. JSImporterResult: function JSImporterResult() {
  28246. },
  28247. Importer0: function Importer0() {
  28248. },
  28249. NodeImporterResult0: function NodeImporterResult0() {
  28250. },
  28251. IncludeRule0: function IncludeRule0(t0, t1, t2, t3, t4, t5) {
  28252. var _ = this;
  28253. _.namespace = t0;
  28254. _.name = t1;
  28255. _.originalName = t2;
  28256. _.$arguments = t3;
  28257. _.content = t4;
  28258. _.span = t5;
  28259. },
  28260. InterpolatedFunctionExpression0: function InterpolatedFunctionExpression0(t0, t1, t2) {
  28261. this.name = t0;
  28262. this.$arguments = t1;
  28263. this.span = t2;
  28264. },
  28265. Interpolation$0(contents, spans, span) {
  28266. var t1 = new A.Interpolation0(A.List_List$unmodifiable(contents, type$.Object), A.List_List$unmodifiable(spans, type$.nullable_FileSpan), span);
  28267. t1.Interpolation$30(contents, spans, span);
  28268. return t1;
  28269. },
  28270. Interpolation0: function Interpolation0(t0, t1, t2) {
  28271. this.contents = t0;
  28272. this.spans = t1;
  28273. this.span = t2;
  28274. },
  28275. Interpolation_toString_closure0: function Interpolation_toString_closure0() {
  28276. },
  28277. SupportsInterpolation0: function SupportsInterpolation0(t0, t1) {
  28278. this.expression = t0;
  28279. this.span = t1;
  28280. },
  28281. InterpolationBuffer0: function InterpolationBuffer0(t0, t1, t2) {
  28282. this._interpolation_buffer0$_text = t0;
  28283. this._interpolation_buffer0$_contents = t1;
  28284. this._interpolation_buffer0$_spans = t2;
  28285. },
  28286. InterpolationMap$0(_interpolation, targetLocations) {
  28287. var t1 = A.List_List$unmodifiable(targetLocations, type$.SourceLocation),
  28288. t2 = _interpolation.contents.length,
  28289. expectedLocations = Math.max(0, t2 - 1);
  28290. if (t1.length !== expectedLocations)
  28291. A.throwExpression(A.ArgumentError$("InterpolationMap must have " + A.S(expectedLocations) + string$.x20targe + t2 + " components.", null));
  28292. return new A.InterpolationMap0(_interpolation, t1);
  28293. },
  28294. InterpolationMap0: function InterpolationMap0(t0, t1) {
  28295. this._interpolation_map$_interpolation = t0;
  28296. this._interpolation_map$_targetLocations = t1;
  28297. },
  28298. InterpolationMap_mapException_closure0: function InterpolationMap_mapException_closure0() {
  28299. },
  28300. InterpolationMethod$0(space, hue) {
  28301. var t1;
  28302. if (space.get$isPolarInternal())
  28303. t1 = hue == null ? B.HueInterpolationMethod_00 : hue;
  28304. else
  28305. t1 = null;
  28306. if (!space.get$isPolarInternal() && hue != null)
  28307. A.throwExpression(A.ArgumentError$(string$.Hue_in + space.toString$0(0) + ".", null));
  28308. return new A.InterpolationMethod0(space, t1);
  28309. },
  28310. InterpolationMethod_InterpolationMethod$fromValue0(value, $name) {
  28311. var t1, space, hueMethod,
  28312. list = value.assertCommonListStyle$2$allowSlash($name, false);
  28313. if (list.length === 0)
  28314. throw A.wrapException(A.SassScriptException$0(string$.Expecta, $name));
  28315. t1 = B.JSArray_methods.get$first(list).assertString$1($name);
  28316. t1.assertUnquoted$1($name);
  28317. space = A.ColorSpace_fromName0(t1._string0$_text, $name);
  28318. if (list.length === 1)
  28319. return A.InterpolationMethod$0(space, null);
  28320. hueMethod = A.HueInterpolationMethod_HueInterpolationMethod$_fromValue0(list[1], $name);
  28321. if (list.length === 2)
  28322. throw A.wrapException(A.SassScriptException$0('Expected unquoted string "hue" after ' + value.toString$0(0) + ".", $name));
  28323. else {
  28324. t1 = list[2].assertString$1($name);
  28325. t1.assertUnquoted$1($name);
  28326. if (t1._string0$_text.toLowerCase() !== "hue")
  28327. throw A.wrapException(A.SassScriptException$0(string$.Expectu + value.toString$0(0) + ", was " + A.S(list[2]) + ".", $name));
  28328. else if (list.length > 3)
  28329. throw A.wrapException(A.SassScriptException$0('Expected nothing after "hue" in ' + value.toString$0(0) + ".", $name));
  28330. else if (!space.get$isPolarInternal())
  28331. throw A.wrapException(A.SassScriptException$0('Hue interpolation method "' + hueMethod.toString$0(0) + string$.x20hue__ + space.toString$0(0) + ".", $name));
  28332. }
  28333. return A.InterpolationMethod$0(space, hueMethod);
  28334. },
  28335. HueInterpolationMethod_HueInterpolationMethod$_fromValue0(value, $name) {
  28336. var _0_0,
  28337. t1 = value.assertString$1($name);
  28338. t1.assertUnquoted$0();
  28339. _0_0 = t1._string0$_text.toLowerCase();
  28340. $label0$0: {
  28341. if ("shorter" === _0_0) {
  28342. t1 = B.HueInterpolationMethod_00;
  28343. break $label0$0;
  28344. }
  28345. if ("longer" === _0_0) {
  28346. t1 = B.HueInterpolationMethod_10;
  28347. break $label0$0;
  28348. }
  28349. if ("increasing" === _0_0) {
  28350. t1 = B.HueInterpolationMethod_20;
  28351. break $label0$0;
  28352. }
  28353. if ("decreasing" === _0_0) {
  28354. t1 = B.HueInterpolationMethod_30;
  28355. break $label0$0;
  28356. }
  28357. t1 = A.throwExpression(A.SassScriptException$0("Unknown hue interpolation method " + value.toString$0(0) + ".", $name));
  28358. }
  28359. return t1;
  28360. },
  28361. InterpolationMethod0: function InterpolationMethod0(t0, t1) {
  28362. this.space = t0;
  28363. this.hue = t1;
  28364. },
  28365. HueInterpolationMethod0: function HueInterpolationMethod0(t0) {
  28366. this._name = t0;
  28367. },
  28368. _realCasePath0(path) {
  28369. var prefix, _null = null,
  28370. t1 = A.isNodeJs() ? self.process : _null;
  28371. if (!J.$eq$(t1 == null ? _null : J.get$platform$x(t1), "win32")) {
  28372. t1 = A.isNodeJs() ? self.process : _null;
  28373. t1 = J.$eq$(t1 == null ? _null : J.get$platform$x(t1), "darwin");
  28374. } else
  28375. t1 = true;
  28376. if (!t1)
  28377. return path;
  28378. t1 = A.isNodeJs() ? self.process : _null;
  28379. if (J.$eq$(t1 == null ? _null : J.get$platform$x(t1), "win32")) {
  28380. prefix = B.JSString_methods.substring$2(path, 0, $.$get$context().style.rootLength$1(path));
  28381. t1 = prefix.length;
  28382. if (t1 !== 0 && A.CharacterExtension_get_isAlphabetic0(prefix.charCodeAt(0)))
  28383. path = prefix.toUpperCase() + B.JSString_methods.substring$1(path, t1);
  28384. }
  28385. return new A._realCasePath_helper0().call$1(path);
  28386. },
  28387. _realCasePath_helper0: function _realCasePath_helper0() {
  28388. },
  28389. _realCasePath_helper_closure0: function _realCasePath_helper_closure0(t0, t1, t2) {
  28390. this.helper = t0;
  28391. this.dirname = t1;
  28392. this.path = t2;
  28393. },
  28394. _realCasePath_helper__closure0: function _realCasePath_helper__closure0(t0) {
  28395. this.basename = t0;
  28396. },
  28397. IsCalculationSafeVisitor0: function IsCalculationSafeVisitor0() {
  28398. },
  28399. IsCalculationSafeVisitor_visitListExpression_closure0: function IsCalculationSafeVisitor_visitListExpression_closure0(t0) {
  28400. this.$this = t0;
  28401. },
  28402. printError0(message) {
  28403. var t1 = A.isNodeJs() ? self.process : null;
  28404. if (t1 != null) {
  28405. t1 = J.get$stderr$x(t1);
  28406. J.write$1$x(t1, A.S(message) + "\n");
  28407. } else {
  28408. t1 = self.console;
  28409. J.error$1$x(t1, message);
  28410. }
  28411. },
  28412. readFile0(path) {
  28413. var contents, sourceFile, t1, i;
  28414. if (!A.isNodeJs())
  28415. throw A.wrapException(A.UnsupportedError$("readFile() is only supported on Node.js"));
  28416. contents = A._asString(A._readFile0(path, "utf8"));
  28417. if (!B.JSString_methods.contains$1(contents, "\ufffd"))
  28418. return contents;
  28419. sourceFile = A.SourceFile$fromString(contents, $.$get$context().toUri$1(path));
  28420. for (t1 = contents.length, i = 0; i < t1; ++i) {
  28421. if (contents.charCodeAt(i) !== 65533)
  28422. continue;
  28423. throw A.wrapException(A.SassException$0("Invalid UTF-8.", A.FileLocation$_(sourceFile, i).pointSpan$0(), null));
  28424. }
  28425. return contents;
  28426. },
  28427. _readFile0(path, encoding) {
  28428. return A._systemErrorToFileSystemException0(new A._readFile_closure0(path, encoding));
  28429. },
  28430. fileExists0(path) {
  28431. if (!A.isNodeJs())
  28432. throw A.wrapException(A.UnsupportedError$(string$.fileEx));
  28433. return A._systemErrorToFileSystemException0(new A.fileExists_closure0(path));
  28434. },
  28435. dirExists0(path) {
  28436. if (!A.isNodeJs())
  28437. throw A.wrapException(A.UnsupportedError$("dirExists() is only supported on Node.js"));
  28438. return A._systemErrorToFileSystemException0(new A.dirExists_closure0(path));
  28439. },
  28440. listDir0(path) {
  28441. if (!A.isNodeJs())
  28442. throw A.wrapException(A.UnsupportedError$("listDir() is only supported on Node.js"));
  28443. return A._systemErrorToFileSystemException0(new A.listDir_closure0(false, path));
  28444. },
  28445. getEnvironmentVariable0($name) {
  28446. var t1 = A.isNodeJs() ? self.process : null,
  28447. env = t1 == null ? null : J.get$env$x(t1);
  28448. if (env == null)
  28449. t1 = null;
  28450. else
  28451. t1 = A._asStringQ(env[$name]);
  28452. return t1;
  28453. },
  28454. _systemErrorToFileSystemException0(callback) {
  28455. var error, t1, exception, t2;
  28456. try {
  28457. t1 = callback.call$0();
  28458. return t1;
  28459. } catch (exception) {
  28460. error = A.unwrapException(exception);
  28461. if (!type$.JsSystemError._is(error))
  28462. throw exception;
  28463. t1 = error;
  28464. t2 = J.getInterceptor$x(t1);
  28465. throw A.wrapException(new A.FileSystemException0(J.substring$2$s(t2.get$message(t1), (A.S(t2.get$code(t1)) + ": ").length, J.get$length$asx(t2.get$message(t1)) - (", " + A.S(t2.get$syscall(t1)) + " '" + A.S(t2.get$path(t1)) + "'").length), J.get$path$x(error)));
  28466. }
  28467. },
  28468. hasTerminal0() {
  28469. var t1 = A.isNodeJs() ? self.process : null;
  28470. return J.$eq$(t1 == null ? null : J.get$isTTY$x(J.get$stdout$x(t1)), true);
  28471. },
  28472. FileSystemException0: function FileSystemException0(t0, t1) {
  28473. this.message = t0;
  28474. this.path = t1;
  28475. },
  28476. _readFile_closure0: function _readFile_closure0(t0, t1) {
  28477. this.path = t0;
  28478. this.encoding = t1;
  28479. },
  28480. fileExists_closure0: function fileExists_closure0(t0) {
  28481. this.path = t0;
  28482. },
  28483. dirExists_closure0: function dirExists_closure0(t0) {
  28484. this.path = t0;
  28485. },
  28486. listDir_closure0: function listDir_closure0(t0, t1) {
  28487. this.recursive = t0;
  28488. this.path = t1;
  28489. },
  28490. listDir__closure1: function listDir__closure1(t0) {
  28491. this.path = t0;
  28492. },
  28493. listDir__closure2: function listDir__closure2() {
  28494. },
  28495. listDir_closure_list0: function listDir_closure_list0() {
  28496. },
  28497. listDir__list_closure0: function listDir__list_closure0(t0, t1) {
  28498. this.parent = t0;
  28499. this.list = t1;
  28500. },
  28501. main() {
  28502. J.set$compile$x(self.exports, A.allowInteropNamed("sass.compile", A.compile__compile$closure()));
  28503. J.set$compileString$x(self.exports, A.allowInteropNamed("sass.compileString", A.compile__compileString$closure()));
  28504. J.set$compileAsync$x(self.exports, A.allowInteropNamed("sass.compileAsync", A.compile__compileAsync$closure()));
  28505. J.set$compileStringAsync$x(self.exports, A.allowInteropNamed("sass.compileStringAsync", A.compile__compileStringAsync$closure()));
  28506. J.set$initCompiler$x(self.exports, A.allowInteropNamed("sass.initCompiler", A.compiler__initCompiler$closure()));
  28507. J.set$initAsyncCompiler$x(self.exports, A.allowInteropNamed("sass.initAsyncCompiler", A.compiler__initAsyncCompiler$closure()));
  28508. J.set$Compiler$x(self.exports, $.$get$compilerClass());
  28509. J.set$AsyncCompiler$x(self.exports, $.$get$asyncCompilerClass());
  28510. J.set$Value$x(self.exports, $.$get$valueClass());
  28511. J.set$SassBoolean$x(self.exports, $.$get$booleanClass());
  28512. J.set$SassArgumentList$x(self.exports, $.$get$argumentListClass());
  28513. J.set$SassCalculation$x(self.exports, $.$get$calculationClass());
  28514. J.set$CalculationOperation$x(self.exports, $.$get$calculationOperationClass());
  28515. J.set$CalculationInterpolation$x(self.exports, $.$get$calculationInterpolationClass());
  28516. J.set$SassColor$x(self.exports, $.$get$colorClass());
  28517. J.set$SassFunction$x(self.exports, $.$get$functionClass());
  28518. J.set$SassMixin$x(self.exports, $.$get$mixinClass());
  28519. J.set$SassList$x(self.exports, $.$get$listClass());
  28520. J.set$SassMap$x(self.exports, $.$get$mapClass());
  28521. J.set$SassNumber$x(self.exports, $.$get$numberClass());
  28522. J.set$SassString$x(self.exports, $.$get$stringClass());
  28523. J.set$sassNull$x(self.exports, B.C__SassNull0);
  28524. J.set$sassTrue$x(self.exports, B.SassBoolean_true0);
  28525. J.set$sassFalse$x(self.exports, B.SassBoolean_false0);
  28526. J.set$Exception$x(self.exports, $.$get$exceptionClass());
  28527. J.set$Logger$x(self.exports, {silent: {warn: A.allowInteropNamed("sass.Logger.silent.warn", new A.main_closure()), debug: A.allowInteropNamed("sass.Logger.silent.debug", new A.main_closure0())}});
  28528. J.set$NodePackageImporter$x(self.exports, $.$get$nodePackageImporterClass());
  28529. J.set$deprecations$x(self.exports, A.jsify($.$get$deprecations()));
  28530. J.set$Version$x(self.exports, $.$get$versionClass());
  28531. J.set$loadParserExports_$x(self.exports, A.allowInterop(A.parser0__loadParserExports$closure()));
  28532. J.set$info$x(self.exports, "dart-sass\t1.80.4\t(Sass Compiler)\t[Dart]\ndart2js\t3.5.4\t(Dart Compiler)\t[Dart]");
  28533. A.updateCanonicalizeContextPrototype();
  28534. A.updateSourceSpanPrototype();
  28535. J.set$render$x(self.exports, A.allowInteropNamed("sass.render", A.legacy__render$closure()));
  28536. J.set$renderSync$x(self.exports, A.allowInteropNamed("sass.renderSync", A.legacy__renderSync$closure()));
  28537. J.set$types$x(self.exports, {Boolean: $.$get$legacyBooleanClass(), Color: $.$get$legacyColorClass(), List: $.$get$legacyListClass(), Map: $.$get$legacyMapClass(), Null: $.$get$legacyNullClass(), Number: $.$get$legacyNumberClass(), String: $.$get$legacyStringClass(), Error: self.Error});
  28538. J.set$NULL$x(self.exports, B.C__SassNull0);
  28539. J.set$TRUE$x(self.exports, B.SassBoolean_true0);
  28540. J.set$FALSE$x(self.exports, B.SassBoolean_false0);
  28541. },
  28542. main_closure: function main_closure() {
  28543. },
  28544. main_closure0: function main_closure0() {
  28545. },
  28546. JSToDartLogger: function JSToDartLogger(t0, t1, t2) {
  28547. this._node = t0;
  28548. this._fallback = t1;
  28549. this._ascii = t2;
  28550. },
  28551. JSToDartLogger_internalWarn_closure: function JSToDartLogger_internalWarn_closure(t0, t1, t2, t3, t4) {
  28552. var _ = this;
  28553. _.$this = t0;
  28554. _.message = t1;
  28555. _.span = t2;
  28556. _.trace = t3;
  28557. _.deprecation = t4;
  28558. },
  28559. JSToDartLogger_debug_closure: function JSToDartLogger_debug_closure(t0, t1, t2) {
  28560. this.$this = t0;
  28561. this.message = t1;
  28562. this.span = t2;
  28563. },
  28564. ModifiableCssKeyframeBlock$0(selector, span) {
  28565. var t1 = A._setArrayType([], type$.JSArray_ModifiableCssNode_2);
  28566. return new A.ModifiableCssKeyframeBlock0(selector, span, new A.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode_2), t1);
  28567. },
  28568. ModifiableCssKeyframeBlock0: function ModifiableCssKeyframeBlock0(t0, t1, t2, t3) {
  28569. var _ = this;
  28570. _.selector = t0;
  28571. _.span = t1;
  28572. _.children = t2;
  28573. _._node$_children = t3;
  28574. _._node$_indexInParent = _._node$_parent = null;
  28575. _.isGroupEnd = false;
  28576. },
  28577. KeyframeSelectorParser0: function KeyframeSelectorParser0(t0, t1) {
  28578. this.scanner = t0;
  28579. this._parser1$_interpolationMap = t1;
  28580. },
  28581. KeyframeSelectorParser_parse_closure0: function KeyframeSelectorParser_parse_closure0(t0) {
  28582. this.$this = t0;
  28583. },
  28584. LabColorSpace0: function LabColorSpace0(t0, t1) {
  28585. this.name = t0;
  28586. this._space$_channels = t1;
  28587. },
  28588. LazyFileSpan0: function LazyFileSpan0(t0) {
  28589. this._lazy_file_span0$_builder = t0;
  28590. this._lazy_file_span0$_span = null;
  28591. },
  28592. LchColorSpace0: function LchColorSpace0(t0, t1) {
  28593. this.name = t0;
  28594. this._space$_channels = t1;
  28595. },
  28596. render(options, callback) {
  28597. var _0_0;
  28598. if (!A.isNodeJs())
  28599. A.jsThrow(new self.Error("The render() method is only available in Node.js."));
  28600. _0_0 = J.get$fiber$x(options);
  28601. if (_0_0 != null)
  28602. J.run$0$x(_0_0.call$1(A.allowInterop(new A.render_closure(callback, options))));
  28603. else
  28604. A._renderAsync(options).then$1$2$onError(0, new A.render_closure0(callback), new A.render_closure1(callback), type$.Null);
  28605. },
  28606. _renderAsync(options) {
  28607. var $async$goto = 0,
  28608. $async$completer = A._makeAsyncAwaitCompleter(type$.RenderResult),
  28609. $async$returnValue, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15, result, start, t1, file, t2, t3, t4, logger, _0_0;
  28610. var $async$_renderAsync = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  28611. if ($async$errorCode === 1)
  28612. return A._asyncRethrow($async$result, $async$completer);
  28613. while (true)
  28614. switch ($async$goto) {
  28615. case 0:
  28616. // Function start
  28617. start = new A.DateTime(Date.now(), 0, false);
  28618. t1 = J.getInterceptor$x(options);
  28619. file = A.NullableExtension_andThen0(t1.get$file(options), A.path__absolute$closure());
  28620. t2 = t1.get$logger(options);
  28621. t3 = A.hasTerminal0();
  28622. t4 = $._glyphs;
  28623. logger = new A.JSToDartLogger(t2, new A.StderrLogger0(t3), t4 === B.C_AsciiGlyphSet);
  28624. _0_0 = t1.get$data(options);
  28625. $async$goto = _0_0 != null ? 3 : 5;
  28626. break;
  28627. case 3:
  28628. // then
  28629. t2 = A._parseImporter(options, start);
  28630. t3 = A._parsePackageImportersAsync(options, start);
  28631. t4 = A._parseFunctions(options, start, true);
  28632. t5 = t1.get$indentedSyntax(options);
  28633. t5 = !J.$eq$(t5, false) && t5 != null ? B.Syntax_Sass_sass0 : null;
  28634. t6 = A._parseOutputStyle(t1.get$outputStyle(options));
  28635. t7 = J.$eq$(t1.get$indentType(options), "tab");
  28636. t8 = A._parseIndentWidth(t1.get$indentWidth(options));
  28637. t9 = A._parseLineFeed(t1.get$linefeed(options));
  28638. t10 = file == null ? "stdin" : $.$get$context().toUri$1(file).toString$0(0);
  28639. t11 = t1.get$quietDeps(options);
  28640. if (t11 == null)
  28641. t11 = false;
  28642. t12 = A.parseDeprecations(logger, t1.get$fatalDeprecations(options), true);
  28643. t13 = A.parseDeprecations(logger, t1.get$futureDeprecations(options), false);
  28644. t14 = A.parseDeprecations(logger, t1.get$silenceDeprecations(options), false);
  28645. t15 = t1.get$verbose(options);
  28646. if (t15 == null)
  28647. t15 = false;
  28648. t1 = t1.get$charset(options);
  28649. if (t1 == null)
  28650. t1 = true;
  28651. $async$goto = 6;
  28652. return A._asyncAwait(A.compileStringAsync0(_0_0, t1, t12, t4, t13, t3, null, t8, t9, logger, t2, t11, t14, A._enableSourceMaps(options), t6, t5, t10, !t7, t15), $async$_renderAsync);
  28653. case 6:
  28654. // returning from await.
  28655. result = $async$result;
  28656. // goto join
  28657. $async$goto = 4;
  28658. break;
  28659. case 5:
  28660. // else
  28661. $async$goto = file != null ? 7 : 9;
  28662. break;
  28663. case 7:
  28664. // then
  28665. t2 = A._parseImporter(options, start);
  28666. t3 = A._parsePackageImportersAsync(options, start);
  28667. t4 = A._parseFunctions(options, start, true);
  28668. t5 = t1.get$indentedSyntax(options);
  28669. t5 = !J.$eq$(t5, false) && t5 != null ? B.Syntax_Sass_sass0 : null;
  28670. t6 = A._parseOutputStyle(t1.get$outputStyle(options));
  28671. t7 = J.$eq$(t1.get$indentType(options), "tab");
  28672. t8 = A._parseIndentWidth(t1.get$indentWidth(options));
  28673. t9 = A._parseLineFeed(t1.get$linefeed(options));
  28674. t10 = t1.get$quietDeps(options);
  28675. if (t10 == null)
  28676. t10 = false;
  28677. t11 = A.parseDeprecations(logger, t1.get$fatalDeprecations(options), true);
  28678. t12 = A.parseDeprecations(logger, t1.get$futureDeprecations(options), false);
  28679. t13 = A.parseDeprecations(logger, t1.get$silenceDeprecations(options), false);
  28680. t14 = t1.get$verbose(options);
  28681. if (t14 == null)
  28682. t14 = false;
  28683. t1 = t1.get$charset(options);
  28684. if (t1 == null)
  28685. t1 = true;
  28686. $async$goto = 10;
  28687. return A._asyncAwait(A.compileAsync0(file, t1, t11, t4, t12, t3, t8, t9, logger, t2, t10, t13, A._enableSourceMaps(options), t6, t5, !t7, t14), $async$_renderAsync);
  28688. case 10:
  28689. // returning from await.
  28690. result = $async$result;
  28691. // goto join
  28692. $async$goto = 8;
  28693. break;
  28694. case 9:
  28695. // else
  28696. throw A.wrapException(A.ArgumentError$(string$.Either, null));
  28697. case 8:
  28698. // join
  28699. case 4:
  28700. // join
  28701. $async$returnValue = A._newRenderResult(options, result, start);
  28702. // goto return
  28703. $async$goto = 1;
  28704. break;
  28705. case 1:
  28706. // return
  28707. return A._asyncReturn($async$returnValue, $async$completer);
  28708. }
  28709. });
  28710. return A._asyncStartSync($async$_renderAsync, $async$completer);
  28711. },
  28712. renderSync(options) {
  28713. var start, result, file, logger, _0_0, data, error, stackTrace, error0, stackTrace0, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15, t16, exception, _null = null;
  28714. if (!A.isNodeJs())
  28715. A.jsThrow(new self.Error("The renderSync() method is only available in Node.js."));
  28716. try {
  28717. start = new A.DateTime(Date.now(), 0, false);
  28718. result = null;
  28719. t1 = J.getInterceptor$x(options);
  28720. file = A.NullableExtension_andThen0(t1.get$file(options), A.path__absolute$closure());
  28721. t2 = t1.get$logger(options);
  28722. t3 = A.hasTerminal0();
  28723. t4 = $._glyphs;
  28724. logger = new A.JSToDartLogger(t2, new A.StderrLogger0(t3), t4 === B.C_AsciiGlyphSet);
  28725. _0_0 = t1.get$data(options);
  28726. data = null;
  28727. if (_0_0 != null) {
  28728. data = _0_0;
  28729. t2 = data;
  28730. t3 = A._parseImporter(options, start);
  28731. t4 = A._parsePackageImporters(options, start);
  28732. t5 = A._parseFunctions(options, start, false);
  28733. t6 = t1.get$indentedSyntax(options);
  28734. t6 = !J.$eq$(t6, false) && t6 != null ? B.Syntax_Sass_sass0 : _null;
  28735. t7 = A._parseOutputStyle(t1.get$outputStyle(options));
  28736. t8 = J.$eq$(t1.get$indentType(options), "tab");
  28737. t9 = A._parseIndentWidth(t1.get$indentWidth(options));
  28738. t10 = A._parseLineFeed(t1.get$linefeed(options));
  28739. t11 = file == null ? "stdin" : $.$get$context().toUri$1(file).toString$0(0);
  28740. t12 = t1.get$quietDeps(options);
  28741. if (t12 == null)
  28742. t12 = false;
  28743. t13 = A.parseDeprecations(logger, t1.get$fatalDeprecations(options), true);
  28744. t14 = A.parseDeprecations(logger, t1.get$futureDeprecations(options), false);
  28745. t15 = A.parseDeprecations(logger, t1.get$silenceDeprecations(options), false);
  28746. t16 = t1.get$verbose(options);
  28747. if (t16 == null)
  28748. t16 = false;
  28749. t1 = t1.get$charset(options);
  28750. if (t1 == null)
  28751. t1 = true;
  28752. result = A.compileString(t2, t1, t13, new A.CastList(t5, A._arrayInstanceType(t5)._eval$1("CastList<1,Callable>")), t14, t4, _null, t9, t10, logger, t3, t12, t15, A._enableSourceMaps(options), t7, t6, t11, !t8, t16);
  28753. } else if (file != null) {
  28754. t2 = A._parseImporter(options, start);
  28755. t3 = A._parsePackageImporters(options, start);
  28756. t4 = A._parseFunctions(options, start, false);
  28757. t5 = t1.get$indentedSyntax(options);
  28758. t5 = !J.$eq$(t5, false) && t5 != null ? B.Syntax_Sass_sass0 : _null;
  28759. t6 = A._parseOutputStyle(t1.get$outputStyle(options));
  28760. t7 = J.$eq$(t1.get$indentType(options), "tab");
  28761. t8 = A._parseIndentWidth(t1.get$indentWidth(options));
  28762. t9 = A._parseLineFeed(t1.get$linefeed(options));
  28763. t10 = t1.get$quietDeps(options);
  28764. if (t10 == null)
  28765. t10 = false;
  28766. t11 = A.parseDeprecations(logger, t1.get$fatalDeprecations(options), true);
  28767. t12 = A.parseDeprecations(logger, t1.get$futureDeprecations(options), false);
  28768. t13 = A.parseDeprecations(logger, t1.get$silenceDeprecations(options), false);
  28769. t14 = t1.get$verbose(options);
  28770. if (t14 == null)
  28771. t14 = false;
  28772. t1 = t1.get$charset(options);
  28773. if (t1 == null)
  28774. t1 = true;
  28775. result = A.compile(file, t1, t11, new A.CastList(t4, A._arrayInstanceType(t4)._eval$1("CastList<1,Callable>")), t12, t3, t8, t9, logger, t2, t10, t13, A._enableSourceMaps(options), t6, t5, !t7, t14);
  28776. } else {
  28777. t1 = A.ArgumentError$(string$.Either, _null);
  28778. throw A.wrapException(t1);
  28779. }
  28780. t1 = A._newRenderResult(options, result, start);
  28781. return t1;
  28782. } catch (exception) {
  28783. t1 = A.unwrapException(exception);
  28784. if (t1 instanceof A.SassException0) {
  28785. error = t1;
  28786. stackTrace = A.getTraceFromException(exception);
  28787. A.jsThrow(A._wrapException(error, stackTrace));
  28788. } else {
  28789. error0 = t1;
  28790. stackTrace0 = A.getTraceFromException(exception);
  28791. t1 = J.toString$0$(error0);
  28792. t2 = A.getTrace0(error0);
  28793. A.jsThrow(A._newRenderError(t1, t2 == null ? stackTrace0 : t2, _null, _null, _null, 3));
  28794. }
  28795. }
  28796. },
  28797. _wrapException(exception, stackTrace) {
  28798. var t2, t3, t4, t5,
  28799. t1 = A.SourceSpanException.prototype.get$span.call(exception, 0),
  28800. _0_0 = t1.get$sourceUrl(t1);
  28801. $label0$0: {
  28802. if (_0_0 == null) {
  28803. t1 = "stdin";
  28804. break $label0$0;
  28805. }
  28806. if ("file" === _0_0.get$scheme()) {
  28807. t1 = $.$get$context().style.pathFromUri$1(A._parseUri(_0_0));
  28808. break $label0$0;
  28809. }
  28810. t1 = _0_0.toString$0(0);
  28811. break $label0$0;
  28812. }
  28813. t2 = B.JSString_methods.replaceFirst$2(exception.toString$0(0), "Error: ", "");
  28814. t3 = A.getTrace0(exception);
  28815. if (t3 == null)
  28816. t3 = stackTrace;
  28817. t4 = A.SourceSpanException.prototype.get$span.call(exception, 0);
  28818. t4 = t4.get$start(t4);
  28819. t4 = t4.file.getLine$1(t4.offset);
  28820. t5 = A.SourceSpanException.prototype.get$span.call(exception, 0);
  28821. t5 = t5.get$start(t5);
  28822. return A._newRenderError(t2, t3, t5.file.getColumn$1(t5.offset) + 1, t1, t4 + 1, 1);
  28823. },
  28824. _parseFunctions(options, start, asynch) {
  28825. var result,
  28826. functions = J.get$functions$x(options);
  28827. if (functions == null)
  28828. return B.List_empty26;
  28829. result = A._setArrayType([], type$.JSArray_AsyncCallable_2);
  28830. A.jsForEach(functions, new A._parseFunctions_closure(options, start, result, asynch));
  28831. return result;
  28832. },
  28833. _parseImporter(options, start) {
  28834. var t2, t3, contextOptions, _1_0, importers, _box_0 = {},
  28835. t1 = J.getInterceptor$x(options),
  28836. _0_0 = t1.get$importer(options);
  28837. $label0$0: {
  28838. if (_0_0 == null) {
  28839. t2 = A._setArrayType([], type$.JSArray_JSFunction);
  28840. break $label0$0;
  28841. }
  28842. if (type$.List_nullable_Object._is(_0_0)) {
  28843. t2 = J.cast$1$0$ax(_0_0, type$.JSFunction);
  28844. break $label0$0;
  28845. }
  28846. t2 = A._setArrayType([type$.JSFunction._as(_0_0)], type$.JSArray_JSFunction);
  28847. break $label0$0;
  28848. }
  28849. t3 = J.getInterceptor$asx(t2);
  28850. contextOptions = t3.get$isNotEmpty(t2) ? A._contextOptions(options, start) : new A.Object();
  28851. _1_0 = t1.get$fiber(options);
  28852. _box_0.fiber = null;
  28853. if (_1_0 != null) {
  28854. _box_0.fiber = _1_0;
  28855. t2 = t3.map$1$1(t2, new A._parseImporter_closure(_box_0), type$.JSFunction);
  28856. importers = A.List_List$of(t2, true, t2.$ti._eval$1("ListIterable.E"));
  28857. } else
  28858. importers = t2;
  28859. t1 = t1.get$includePaths(options);
  28860. if (t1 == null)
  28861. t1 = [];
  28862. t2 = type$.String;
  28863. return new A.NodeImporter(contextOptions, A.List_List$unmodifiable(A.NodeImporter__addSassPath(A.List_List$from(t1, true, t2)), t2), A.List_List$unmodifiable(J.cast$1$0$ax(importers, type$.dynamic), type$.JSFunction));
  28864. },
  28865. _parsePackageImportersAsync(options, start) {
  28866. var t2, t3, t4,
  28867. t1 = J.getInterceptor$x(options);
  28868. if (t1.get$pkgImporter(options) instanceof A.NodePackageImporter0) {
  28869. t1 = t1.get$pkgImporter(options);
  28870. t1.toString;
  28871. t2 = type$.nullable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl_2;
  28872. t3 = type$.Record_3_AsyncImporter_and_Uri_and_bool_forImport_2;
  28873. t4 = type$.Uri;
  28874. return new A.AsyncImportCache0(A.List_List$unmodifiable(A._setArrayType([t1], type$.JSArray_AsyncImporter), type$.AsyncImporter), A.LinkedHashMap_LinkedHashMap$_empty(type$.Record_2_Uri_and_bool_forImport, t2), A.LinkedHashMap_LinkedHashMap$_empty(t3, t2), A.LinkedHashMap_LinkedHashMap$_empty(t3, t4), A.LinkedHashMap_LinkedHashMap$_empty(t4, type$.nullable_Stylesheet_2), A.LinkedHashMap_LinkedHashMap$_empty(t4, type$.ImporterResult_2));
  28875. }
  28876. return null;
  28877. },
  28878. _parsePackageImporters(options, start) {
  28879. var t2, t3, t4,
  28880. t1 = J.getInterceptor$x(options);
  28881. if (t1.get$pkgImporter(options) instanceof A.NodePackageImporter0) {
  28882. t1 = t1.get$pkgImporter(options);
  28883. t1.toString;
  28884. t2 = type$.nullable_Record_3_Importer_and_Uri_and_Uri_originalUrl_2;
  28885. t3 = type$.Record_3_Importer_and_Uri_and_bool_forImport_2;
  28886. t4 = type$.Uri;
  28887. return new A.ImportCache0(A.List_List$unmodifiable(A._setArrayType([t1], type$.JSArray_Importer_2), type$.Importer), A.LinkedHashMap_LinkedHashMap$_empty(type$.Record_2_Uri_and_bool_forImport, t2), A.LinkedHashMap_LinkedHashMap$_empty(t3, t2), A.LinkedHashMap_LinkedHashMap$_empty(t3, t4), A.LinkedHashMap_LinkedHashMap$_empty(t4, type$.nullable_Stylesheet_2), A.LinkedHashMap_LinkedHashMap$_empty(t4, type$.ImporterResult_2));
  28888. }
  28889. return null;
  28890. },
  28891. _contextOptions(options, start) {
  28892. var includePaths, t3, t4, t5, t6, t7,
  28893. t1 = J.getInterceptor$x(options),
  28894. t2 = t1.get$includePaths(options);
  28895. if (t2 == null)
  28896. t2 = [];
  28897. includePaths = A.List_List$from(t2, true, type$.String);
  28898. t2 = t1.get$file(options);
  28899. t3 = t1.get$data(options);
  28900. t4 = A._setArrayType([A.current()], type$.JSArray_String);
  28901. B.JSArray_methods.addAll$1(t4, includePaths);
  28902. t5 = A.isNodeJs() ? self.process : null;
  28903. t4 = B.JSArray_methods.join$1(t4, J.$eq$(t5 == null ? null : J.get$platform$x(t5), "win32") ? ";" : ":");
  28904. t5 = J.$eq$(t1.get$indentType(options), "tab") ? 1 : 0;
  28905. t6 = A._parseIndentWidth(t1.get$indentWidth(options));
  28906. if (t6 == null)
  28907. t6 = 2;
  28908. t7 = A._parseLineFeed(t1.get$linefeed(options));
  28909. t1 = t1.get$file(options);
  28910. if (t1 == null)
  28911. t1 = "data";
  28912. return {file: t2, data: t3, includePaths: t4, precision: 10, style: 1, indentType: t5, indentWidth: t6, linefeed: t7.text, result: {stats: {start: start._value, entry: t1}}};
  28913. },
  28914. _parseOutputStyle(style) {
  28915. var t1;
  28916. $label0$0: {
  28917. if (style == null || "expanded" === style) {
  28918. t1 = B.OutputStyle_00;
  28919. break $label0$0;
  28920. }
  28921. if ("compressed" === style) {
  28922. t1 = B.OutputStyle_10;
  28923. break $label0$0;
  28924. }
  28925. t1 = A.jsThrow(new self.Error('Unknown output style "' + A.S(style) + '".'));
  28926. }
  28927. return t1;
  28928. },
  28929. _parseIndentWidth(width) {
  28930. var t1;
  28931. $label0$0: {
  28932. if (width == null) {
  28933. t1 = null;
  28934. break $label0$0;
  28935. }
  28936. if (A._isInt(width)) {
  28937. t1 = width;
  28938. break $label0$0;
  28939. }
  28940. t1 = A.int_parse(J.toString$0$(width), null);
  28941. break $label0$0;
  28942. }
  28943. return t1;
  28944. },
  28945. _parseLineFeed(str) {
  28946. var t1;
  28947. $label0$0: {
  28948. if ("cr" === str) {
  28949. t1 = B.LineFeed_89t;
  28950. break $label0$0;
  28951. }
  28952. if ("crlf" === str) {
  28953. t1 = B.LineFeed_A4L;
  28954. break $label0$0;
  28955. }
  28956. if ("lfcr" === str) {
  28957. t1 = B.LineFeed_75j;
  28958. break $label0$0;
  28959. }
  28960. t1 = B.LineFeed_LvD;
  28961. break $label0$0;
  28962. }
  28963. return t1;
  28964. },
  28965. _newRenderResult(options, result, start) {
  28966. var t2, sourceMapOption, sourceMapPath, t3, sourceMapDir, outFile, _0_0, t4, sourceMapDirUrl, i, source, t5, buffer, indices, url, t6, t7, t8, _null = null,
  28967. end = new A.DateTime(Date.now(), 0, false),
  28968. t1 = result._compile_result$_serialize,
  28969. css = t1._0,
  28970. sourceMapBytes = type$.Null._as(self.undefined);
  28971. if (A._enableSourceMaps(options)) {
  28972. t2 = J.getInterceptor$x(options);
  28973. sourceMapOption = t2.get$sourceMap(options);
  28974. if (typeof sourceMapOption == "string")
  28975. sourceMapPath = sourceMapOption;
  28976. else {
  28977. t3 = t2.get$outFile(options);
  28978. t3.toString;
  28979. sourceMapPath = J.$add$ansx(t3, ".map");
  28980. }
  28981. t3 = $.$get$context();
  28982. sourceMapDir = t3.dirname$1(sourceMapPath);
  28983. t1 = t1._1;
  28984. t1.toString;
  28985. t1.sourceRoot = t2.get$sourceMapRoot(options);
  28986. outFile = t2.get$outFile(options);
  28987. if (outFile == null) {
  28988. _0_0 = t2.get$file(options);
  28989. $label0$0: {
  28990. if (_0_0 != null) {
  28991. t4 = t3.toUri$1(t3.withoutExtension$1(_0_0) + ".css").toString$0(0);
  28992. break $label0$0;
  28993. }
  28994. t4 = t1.targetUrl = "stdin.css";
  28995. break $label0$0;
  28996. }
  28997. t1.targetUrl = t4;
  28998. } else
  28999. t1.targetUrl = t3.toUri$1(t3.relative$2$from(outFile, sourceMapDir)).toString$0(0);
  29000. sourceMapDirUrl = t3.toUri$1(sourceMapDir).toString$0(0);
  29001. for (t3 = t1.urls, i = 0; i < t3.length; ++i) {
  29002. source = t3[i];
  29003. if (source === "stdin")
  29004. continue;
  29005. t4 = $.$get$url();
  29006. t5 = t4.style;
  29007. if (t5.rootLength$1(source) <= 0 || t5.isRootRelative$1(source))
  29008. continue;
  29009. t3[i] = t4.relative$2$from(source, sourceMapDirUrl);
  29010. }
  29011. t3 = t2.get$sourceMapContents(options);
  29012. sourceMapBytes = self.Buffer.from(B.C_JsonCodec.encode$2$toEncodable(t1.toJson$1$includeSourceContents(!J.$eq$(t3, false) && t3 != null), _null), "utf8");
  29013. t1 = t2.get$omitSourceMapUrl(options);
  29014. if (!(!J.$eq$(t1, false) && t1 != null)) {
  29015. t1 = t2.get$sourceMapEmbed(options);
  29016. if (!J.$eq$(t1, false) && t1 != null) {
  29017. buffer = new A.StringBuffer("");
  29018. indices = A._setArrayType([-1], type$.JSArray_int);
  29019. A.UriData__writeUri("application/json", _null, _null, buffer, indices);
  29020. indices.push(buffer._contents.length);
  29021. t1 = buffer._contents += ";base64,";
  29022. indices.push(t1.length - 1);
  29023. t1 = B.C_Base64Encoder.startChunkedConversion$1(new A._StringSinkConversionSink(buffer));
  29024. t2 = sourceMapBytes.length;
  29025. A.RangeError_checkValidRange(0, t2, t2);
  29026. t1._convert$_add$4(sourceMapBytes, 0, t2, true);
  29027. t1 = buffer._contents;
  29028. url = new A.UriData(t1.charCodeAt(0) == 0 ? t1 : t1, indices, _null).get$uri();
  29029. } else {
  29030. if (outFile == null)
  29031. t1 = sourceMapPath;
  29032. else {
  29033. t1 = $.$get$context();
  29034. t1 = t1.relative$2$from(sourceMapPath, t1.dirname$1(outFile));
  29035. }
  29036. url = $.$get$context().toUri$1(t1);
  29037. }
  29038. t1 = url.toString$0(0);
  29039. css += "\n\n/*# sourceMappingURL=" + A.stringReplaceAllUnchecked(t1, "*/", "%2A/") + " */";
  29040. }
  29041. }
  29042. t1 = self.Buffer.from(css, "utf8");
  29043. t2 = J.get$file$x(options);
  29044. if (t2 == null)
  29045. t2 = "data";
  29046. t3 = start._value;
  29047. t4 = end._value;
  29048. t5 = B.JSInt_methods._tdivFast$1(A.Duration$(end._microsecond - start._microsecond, t4 - t3)._duration, 1000);
  29049. t6 = A._setArrayType([], type$.JSArray_String);
  29050. for (t7 = result._evaluate._0, t7 = t7.get$iterator(t7); t7.moveNext$0();) {
  29051. t8 = t7.get$current(t7);
  29052. t6.push(t8.get$scheme() === "file" ? $.$get$context().style.pathFromUri$1(A._parseUri(t8)) : t8.toString$0(0));
  29053. }
  29054. return {css: t1, map: sourceMapBytes, stats: {entry: t2, start: t3, end: t4, duration: t5, includedFiles: t6}};
  29055. },
  29056. _enableSourceMaps(options) {
  29057. var t2,
  29058. t1 = J.getInterceptor$x(options);
  29059. if (typeof t1.get$sourceMap(options) != "string") {
  29060. t2 = t1.get$sourceMap(options);
  29061. t1 = !J.$eq$(t2, false) && t2 != null && t1.get$outFile(options) != null;
  29062. } else
  29063. t1 = true;
  29064. return t1;
  29065. },
  29066. _newRenderError(message, stackTrace, column, file, line, $status) {
  29067. var error = new self.Error(message);
  29068. error.formatted = "Error: " + message;
  29069. if (line != null)
  29070. error.line = line;
  29071. if (column != null)
  29072. error.column = column;
  29073. if (file != null)
  29074. error.file = file;
  29075. error.status = $status;
  29076. A.attachJsStack(error, stackTrace);
  29077. return error;
  29078. },
  29079. render_closure: function render_closure(t0, t1) {
  29080. this.callback = t0;
  29081. this.options = t1;
  29082. },
  29083. render_closure0: function render_closure0(t0) {
  29084. this.callback = t0;
  29085. },
  29086. render_closure1: function render_closure1(t0) {
  29087. this.callback = t0;
  29088. },
  29089. _parseFunctions_closure: function _parseFunctions_closure(t0, t1, t2, t3) {
  29090. var _ = this;
  29091. _.options = t0;
  29092. _.start = t1;
  29093. _.result = t2;
  29094. _.asynch = t3;
  29095. },
  29096. _parseFunctions__closure: function _parseFunctions__closure(t0, t1, t2) {
  29097. this._box_0 = t0;
  29098. this.callback = t1;
  29099. this.context = t2;
  29100. },
  29101. _parseFunctions___closure2: function _parseFunctions___closure2(t0) {
  29102. this.currentFiber = t0;
  29103. },
  29104. _parseFunctions____closure: function _parseFunctions____closure(t0, t1) {
  29105. this.currentFiber = t0;
  29106. this.result = t1;
  29107. },
  29108. _parseFunctions___closure3: function _parseFunctions___closure3(t0, t1, t2) {
  29109. this.callback = t0;
  29110. this.context = t1;
  29111. this.jsArguments = t2;
  29112. },
  29113. _parseFunctions___closure4: function _parseFunctions___closure4(t0) {
  29114. this._box_0 = t0;
  29115. },
  29116. _parseFunctions__closure0: function _parseFunctions__closure0(t0, t1) {
  29117. this.callback = t0;
  29118. this.context = t1;
  29119. },
  29120. _parseFunctions___closure1: function _parseFunctions___closure1(t0, t1, t2) {
  29121. this.callback = t0;
  29122. this.context = t1;
  29123. this.$arguments = t2;
  29124. },
  29125. _parseFunctions__closure1: function _parseFunctions__closure1(t0, t1) {
  29126. this.callback = t0;
  29127. this.context = t1;
  29128. },
  29129. _parseFunctions___closure: function _parseFunctions___closure(t0) {
  29130. this.completer = t0;
  29131. },
  29132. _parseFunctions___closure0: function _parseFunctions___closure0(t0, t1, t2) {
  29133. this.callback = t0;
  29134. this.context = t1;
  29135. this.jsArguments = t2;
  29136. },
  29137. _parseImporter_closure: function _parseImporter_closure(t0) {
  29138. this._box_0 = t0;
  29139. },
  29140. _parseImporter__closure: function _parseImporter__closure(t0, t1) {
  29141. this._box_0 = t0;
  29142. this.importer = t1;
  29143. },
  29144. _parseImporter___closure: function _parseImporter___closure(t0) {
  29145. this.currentFiber = t0;
  29146. },
  29147. _parseImporter____closure: function _parseImporter____closure(t0, t1) {
  29148. this.currentFiber = t0;
  29149. this.result = t1;
  29150. },
  29151. _parseImporter___closure0: function _parseImporter___closure0(t0) {
  29152. this._box_0 = t0;
  29153. },
  29154. LimitedMapView$blocklist0(_map, blocklist, $K, $V) {
  29155. var t2, key,
  29156. t1 = A.LinkedHashSet_LinkedHashSet$_empty($K);
  29157. for (t2 = J.get$iterator$ax(_map.get$keys(_map)); t2.moveNext$0();) {
  29158. key = t2.get$current(t2);
  29159. if (!blocklist.contains$1(0, key))
  29160. t1.add$1(0, key);
  29161. }
  29162. return new A.LimitedMapView0(_map, t1, $K._eval$1("@<0>")._bind$1($V)._eval$1("LimitedMapView0<1,2>"));
  29163. },
  29164. LimitedMapView0: function LimitedMapView0(t0, t1, t2) {
  29165. this._limited_map_view0$_map = t0;
  29166. this._limited_map_view0$_keys = t1;
  29167. this.$ti = t2;
  29168. },
  29169. ListExpression0: function ListExpression0(t0, t1, t2, t3) {
  29170. var _ = this;
  29171. _.contents = t0;
  29172. _.separator = t1;
  29173. _.hasBrackets = t2;
  29174. _.span = t3;
  29175. },
  29176. ListExpression_toString_closure0: function ListExpression_toString_closure0(t0) {
  29177. this.$this = t0;
  29178. },
  29179. _function11($name, $arguments, callback) {
  29180. return A.BuiltInCallable$function0($name, $arguments, callback, "sass:list");
  29181. },
  29182. _length_closure2: function _length_closure2() {
  29183. },
  29184. _nth_closure0: function _nth_closure0() {
  29185. },
  29186. _setNth_closure0: function _setNth_closure0() {
  29187. },
  29188. _join_closure0: function _join_closure0() {
  29189. },
  29190. _append_closure2: function _append_closure2() {
  29191. },
  29192. _zip_closure0: function _zip_closure0() {
  29193. },
  29194. _zip__closure2: function _zip__closure2() {
  29195. },
  29196. _zip__closure3: function _zip__closure3(t0) {
  29197. this._box_0 = t0;
  29198. },
  29199. _zip__closure4: function _zip__closure4(t0) {
  29200. this._box_0 = t0;
  29201. },
  29202. _index_closure2: function _index_closure2() {
  29203. },
  29204. _separator_closure0: function _separator_closure0() {
  29205. },
  29206. _isBracketed_closure0: function _isBracketed_closure0() {
  29207. },
  29208. _slash_closure0: function _slash_closure0() {
  29209. },
  29210. SelectorList$0(components, span) {
  29211. var t1 = A.List_List$unmodifiable(components, type$.ComplexSelector_2);
  29212. if (t1.length === 0)
  29213. A.throwExpression(A.ArgumentError$("components may not be empty.", null));
  29214. return new A.SelectorList0(t1, span);
  29215. },
  29216. SelectorList_SelectorList$parse0(contents, allowParent, interpolationMap, plainCss) {
  29217. return new A.SelectorParser0(allowParent, plainCss, A.SpanScanner$(contents, null), interpolationMap).parse$0(0);
  29218. },
  29219. SelectorList0: function SelectorList0(t0, t1) {
  29220. this.components = t0;
  29221. this.span = t1;
  29222. },
  29223. SelectorList_asSassList_closure0: function SelectorList_asSassList_closure0() {
  29224. },
  29225. SelectorList_nestWithin_closure0: function SelectorList_nestWithin_closure0(t0, t1, t2, t3) {
  29226. var _ = this;
  29227. _.$this = t0;
  29228. _.preserveParentSelectors = t1;
  29229. _.implicitParent = t2;
  29230. _.parent = t3;
  29231. },
  29232. SelectorList_nestWithin__closure1: function SelectorList_nestWithin__closure1(t0) {
  29233. this.complex = t0;
  29234. },
  29235. SelectorList_nestWithin__closure2: function SelectorList_nestWithin__closure2(t0) {
  29236. this.complex = t0;
  29237. },
  29238. SelectorList__nestWithinCompound_closure2: function SelectorList__nestWithinCompound_closure2() {
  29239. },
  29240. SelectorList__nestWithinCompound_closure3: function SelectorList__nestWithinCompound_closure3(t0) {
  29241. this.parent = t0;
  29242. },
  29243. SelectorList__nestWithinCompound_closure4: function SelectorList__nestWithinCompound_closure4(t0, t1, t2) {
  29244. this.parentSelector = t0;
  29245. this.resolvedSimples = t1;
  29246. this.component = t2;
  29247. },
  29248. SelectorList_withAdditionalCombinators_closure0: function SelectorList_withAdditionalCombinators_closure0(t0) {
  29249. this.combinators = t0;
  29250. },
  29251. _ParentSelectorVisitor0: function _ParentSelectorVisitor0() {
  29252. },
  29253. __ParentSelectorVisitor_Object_SelectorSearchVisitor0: function __ParentSelectorVisitor_Object_SelectorSearchVisitor0() {
  29254. },
  29255. listClass_closure: function listClass_closure() {
  29256. },
  29257. listClass__closure: function listClass__closure() {
  29258. },
  29259. listClass__closure0: function listClass__closure0() {
  29260. },
  29261. _ConstructorOptions: function _ConstructorOptions() {
  29262. },
  29263. _NodeSassList: function _NodeSassList() {
  29264. },
  29265. legacyListClass_closure: function legacyListClass_closure() {
  29266. },
  29267. legacyListClass__closure: function legacyListClass__closure() {
  29268. },
  29269. legacyListClass_closure0: function legacyListClass_closure0() {
  29270. },
  29271. legacyListClass_closure1: function legacyListClass_closure1() {
  29272. },
  29273. legacyListClass_closure2: function legacyListClass_closure2() {
  29274. },
  29275. legacyListClass_closure3: function legacyListClass_closure3() {
  29276. },
  29277. legacyListClass_closure4: function legacyListClass_closure4() {
  29278. },
  29279. SassList$0(contents, _separator, brackets) {
  29280. var t1 = new A.SassList0(A.List_List$unmodifiable(contents, type$.Value_2), _separator, brackets);
  29281. t1.SassList$3$brackets0(contents, _separator, brackets);
  29282. return t1;
  29283. },
  29284. SassList0: function SassList0(t0, t1, t2) {
  29285. this._list1$_contents = t0;
  29286. this._list1$_separator = t1;
  29287. this._list1$_hasBrackets = t2;
  29288. },
  29289. SassList_isBlank_closure0: function SassList_isBlank_closure0() {
  29290. },
  29291. ListSeparator0: function ListSeparator0(t0, t1, t2) {
  29292. this._list1$_name = t0;
  29293. this.separator = t1;
  29294. this._name = t2;
  29295. },
  29296. LmsColorSpace0: function LmsColorSpace0(t0, t1) {
  29297. this.name = t0;
  29298. this._space$_channels = t1;
  29299. },
  29300. LocalMindeGamutMap0: function LocalMindeGamutMap0(t0) {
  29301. this.name = t0;
  29302. },
  29303. JSLogger: function JSLogger() {
  29304. },
  29305. WarnOptions: function WarnOptions() {
  29306. },
  29307. DebugOptions: function DebugOptions() {
  29308. },
  29309. WarnForDeprecation_warnForDeprecation0(_this, deprecation, message, span, trace) {
  29310. if (_this instanceof A.LoggerWithDeprecationType)
  29311. _this.internalWarn$4$deprecation$span$trace(message, deprecation, span, trace);
  29312. else
  29313. _this.warn$4$deprecation$span$trace(0, message, true, span, trace);
  29314. },
  29315. LoggerWithDeprecationType: function LoggerWithDeprecationType() {
  29316. },
  29317. LoudComment0: function LoudComment0(t0) {
  29318. this.text = t0;
  29319. },
  29320. MapExpression0: function MapExpression0(t0, t1) {
  29321. this.pairs = t0;
  29322. this.span = t1;
  29323. },
  29324. _modify0(map, keys, modify, addNesting) {
  29325. var keyIterator = J.get$iterator$ax(keys);
  29326. return keyIterator.moveNext$0() ? new A._modify_modifyNestedMap0(keyIterator, modify, addNesting).call$1(map) : modify.call$1(map);
  29327. },
  29328. _deepMergeImpl0(map1, map2) {
  29329. var t2, t3, result, t4, key, value, _1_1, _1_3, _1_3_isSet, _1_30, resultMap, valueMap, merged,
  29330. t1 = map1._map0$_contents;
  29331. if (t1.get$isEmpty(t1))
  29332. return map2;
  29333. t2 = map2._map0$_contents;
  29334. if (t2.get$isEmpty(t2))
  29335. return map1;
  29336. t3 = type$.Value_2;
  29337. result = A.LinkedHashMap_LinkedHashMap$of(t1, t3, t3);
  29338. for (t1 = A.MapExtensions_get_pairs0(t2, t3, t3), t1 = t1.get$iterator(t1), t2 = type$.SassMap_2; t1.moveNext$0();) {
  29339. t4 = t1.get$current(t1);
  29340. key = t4._0;
  29341. value = t4._1;
  29342. t4 = result.$index(0, key);
  29343. _1_1 = t4 == null ? null : t4.tryMap$0();
  29344. _1_3 = value.tryMap$0();
  29345. _1_3_isSet = _1_1 != null;
  29346. _1_30 = null;
  29347. t4 = false;
  29348. if (_1_3_isSet) {
  29349. resultMap = _1_1 == null ? t2._as(_1_1) : _1_1;
  29350. t4 = _1_3 != null;
  29351. _1_30 = _1_3;
  29352. } else
  29353. resultMap = null;
  29354. if (t4) {
  29355. valueMap = _1_3_isSet ? _1_30 : _1_3;
  29356. merged = A._deepMergeImpl0(resultMap, valueMap == null ? t2._as(valueMap) : valueMap);
  29357. if (merged === resultMap)
  29358. continue;
  29359. result.$indexSet(0, key, merged);
  29360. } else
  29361. result.$indexSet(0, key, value);
  29362. }
  29363. return new A.SassMap0(A.ConstantMap_ConstantMap$from(result, t3, t3));
  29364. },
  29365. _function10($name, $arguments, callback) {
  29366. return A.BuiltInCallable$function0($name, $arguments, callback, "sass:map");
  29367. },
  29368. _get_closure0: function _get_closure0() {
  29369. },
  29370. _set_closure1: function _set_closure1() {
  29371. },
  29372. _set__closure2: function _set__closure2(t0) {
  29373. this.$arguments = t0;
  29374. },
  29375. _set_closure2: function _set_closure2() {
  29376. },
  29377. _set__closure1: function _set__closure1(t0) {
  29378. this._box_0 = t0;
  29379. },
  29380. _merge_closure1: function _merge_closure1() {
  29381. },
  29382. _merge_closure2: function _merge_closure2() {
  29383. },
  29384. _merge__closure0: function _merge__closure0(t0) {
  29385. this.map2 = t0;
  29386. },
  29387. _deepMerge_closure0: function _deepMerge_closure0() {
  29388. },
  29389. _deepRemove_closure0: function _deepRemove_closure0() {
  29390. },
  29391. _deepRemove__closure0: function _deepRemove__closure0(t0) {
  29392. this.keys = t0;
  29393. },
  29394. _remove_closure1: function _remove_closure1() {
  29395. },
  29396. _remove_closure2: function _remove_closure2() {
  29397. },
  29398. _keys_closure0: function _keys_closure0() {
  29399. },
  29400. _values_closure0: function _values_closure0() {
  29401. },
  29402. _hasKey_closure0: function _hasKey_closure0() {
  29403. },
  29404. _modify_modifyNestedMap0: function _modify_modifyNestedMap0(t0, t1, t2) {
  29405. this.keyIterator = t0;
  29406. this.modify = t1;
  29407. this.addNesting = t2;
  29408. },
  29409. MapExtensions_get_pairs0(_this, $K, $V) {
  29410. return _this.get$entries(_this).map$1$1(0, new A.MapExtensions_get_pairs_closure0($K, $V), $K._eval$1("@<0>")._bind$1($V)._eval$1("+(1,2)"));
  29411. },
  29412. MapExtensions_get_pairs_closure0: function MapExtensions_get_pairs_closure0(t0, t1) {
  29413. this.K = t0;
  29414. this.V = t1;
  29415. },
  29416. mapClass_closure: function mapClass_closure() {
  29417. },
  29418. mapClass__closure: function mapClass__closure() {
  29419. },
  29420. mapClass__closure0: function mapClass__closure0() {
  29421. },
  29422. mapClass__closure1: function mapClass__closure1() {
  29423. },
  29424. _NodeSassMap: function _NodeSassMap() {
  29425. },
  29426. legacyMapClass_closure: function legacyMapClass_closure() {
  29427. },
  29428. legacyMapClass__closure: function legacyMapClass__closure() {
  29429. },
  29430. legacyMapClass__closure0: function legacyMapClass__closure0() {
  29431. },
  29432. legacyMapClass_closure0: function legacyMapClass_closure0() {
  29433. },
  29434. legacyMapClass_closure1: function legacyMapClass_closure1() {
  29435. },
  29436. legacyMapClass_closure2: function legacyMapClass_closure2() {
  29437. },
  29438. legacyMapClass_closure3: function legacyMapClass_closure3() {
  29439. },
  29440. legacyMapClass_closure4: function legacyMapClass_closure4() {
  29441. },
  29442. SassMap0: function SassMap0(t0) {
  29443. this._map0$_contents = t0;
  29444. },
  29445. _singleArgumentMathFunc0($name, mathFunc) {
  29446. return A.BuiltInCallable$function0($name, "$number", new A._singleArgumentMathFunc_closure0(mathFunc), "sass:math");
  29447. },
  29448. _numberFunction0($name, transform) {
  29449. return A.BuiltInCallable$function0($name, "$number", new A._numberFunction_closure0(transform), "sass:math");
  29450. },
  29451. _function9($name, $arguments, callback) {
  29452. return A.BuiltInCallable$function0($name, $arguments, callback, "sass:math");
  29453. },
  29454. global_closure43: function global_closure43() {
  29455. },
  29456. module_closure26: function module_closure26() {
  29457. },
  29458. _ceil_closure0: function _ceil_closure0() {
  29459. },
  29460. _clamp_closure0: function _clamp_closure0() {
  29461. },
  29462. _floor_closure0: function _floor_closure0() {
  29463. },
  29464. _max_closure0: function _max_closure0() {
  29465. },
  29466. _min_closure0: function _min_closure0() {
  29467. },
  29468. _round_closure0: function _round_closure0() {
  29469. },
  29470. _hypot_closure0: function _hypot_closure0() {
  29471. },
  29472. _hypot__closure0: function _hypot__closure0() {
  29473. },
  29474. _log_closure0: function _log_closure0() {
  29475. },
  29476. _pow_closure0: function _pow_closure0() {
  29477. },
  29478. _atan2_closure0: function _atan2_closure0() {
  29479. },
  29480. _compatible_closure0: function _compatible_closure0() {
  29481. },
  29482. _isUnitless_closure0: function _isUnitless_closure0() {
  29483. },
  29484. _unit_closure0: function _unit_closure0() {
  29485. },
  29486. _percentage_closure0: function _percentage_closure0() {
  29487. },
  29488. _randomFunction_closure0: function _randomFunction_closure0() {
  29489. },
  29490. _div_closure0: function _div_closure0() {
  29491. },
  29492. _singleArgumentMathFunc_closure0: function _singleArgumentMathFunc_closure0(t0) {
  29493. this.mathFunc = t0;
  29494. },
  29495. _numberFunction_closure0: function _numberFunction_closure0(t0) {
  29496. this.transform = t0;
  29497. },
  29498. CssMediaQuery$type0(type, conditions, modifier) {
  29499. return new A.CssMediaQuery0(modifier, type, true, conditions == null ? B.List_empty : A.List_List$unmodifiable(conditions, type$.String));
  29500. },
  29501. CssMediaQuery$condition0(conditions, conjunction) {
  29502. var t1 = A.List_List$unmodifiable(conditions, type$.String);
  29503. if (t1.length > 1 && conjunction == null)
  29504. A.throwExpression(A.ArgumentError$(string$.If_con, null));
  29505. return new A.CssMediaQuery0(null, null, conjunction !== false, t1);
  29506. },
  29507. CssMediaQuery0: function CssMediaQuery0(t0, t1, t2, t3) {
  29508. var _ = this;
  29509. _.modifier = t0;
  29510. _.type = t1;
  29511. _.conjunction = t2;
  29512. _.conditions = t3;
  29513. },
  29514. _SingletonCssMediaQueryMergeResult0: function _SingletonCssMediaQueryMergeResult0(t0) {
  29515. this._name = t0;
  29516. },
  29517. MediaQuerySuccessfulMergeResult0: function MediaQuerySuccessfulMergeResult0(t0) {
  29518. this.query = t0;
  29519. },
  29520. MediaQueryParser0: function MediaQueryParser0(t0, t1) {
  29521. this.scanner = t0;
  29522. this._parser1$_interpolationMap = t1;
  29523. },
  29524. MediaQueryParser_parse_closure0: function MediaQueryParser_parse_closure0(t0) {
  29525. this.$this = t0;
  29526. },
  29527. ModifiableCssMediaRule$0(queries, span) {
  29528. var t1 = A.List_List$unmodifiable(queries, type$.CssMediaQuery_2),
  29529. t2 = A._setArrayType([], type$.JSArray_ModifiableCssNode_2);
  29530. if (J.get$isEmpty$asx(queries))
  29531. A.throwExpression(A.ArgumentError$value(queries, "queries", "may not be empty."));
  29532. return new A.ModifiableCssMediaRule0(t1, span, new A.UnmodifiableListView(t2, type$.UnmodifiableListView_ModifiableCssNode_2), t2);
  29533. },
  29534. ModifiableCssMediaRule0: function ModifiableCssMediaRule0(t0, t1, t2, t3) {
  29535. var _ = this;
  29536. _.queries = t0;
  29537. _.span = t1;
  29538. _.children = t2;
  29539. _._node$_children = t3;
  29540. _._node$_indexInParent = _._node$_parent = null;
  29541. _.isGroupEnd = false;
  29542. },
  29543. MediaRule$0(query, children, span) {
  29544. var t1 = A.List_List$unmodifiable(children, type$.Statement_2),
  29545. t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure0());
  29546. return new A.MediaRule0(query, span, t1, t2);
  29547. },
  29548. MediaRule0: function MediaRule0(t0, t1, t2, t3) {
  29549. var _ = this;
  29550. _.query = t0;
  29551. _.span = t1;
  29552. _.children = t2;
  29553. _.hasDeclarations = t3;
  29554. },
  29555. MergedExtension_merge0(left, right) {
  29556. var t2, t3, t4,
  29557. t1 = left.extender.selector;
  29558. if (!t1.$eq(0, right.extender.selector) || !left.target.$eq(0, right.target))
  29559. throw A.wrapException(A.ArgumentError$(left.toString$0(0) + " and " + right.toString$0(0) + " aren't the same extension.", null));
  29560. t2 = left.mediaContext;
  29561. t3 = t2 == null;
  29562. if (!t3) {
  29563. t4 = right.mediaContext;
  29564. t4 = t4 != null && !B.C_ListEquality.equals$2(0, t2, t4);
  29565. } else
  29566. t4 = false;
  29567. if (t4)
  29568. throw A.wrapException(A.SassException$0("From " + left.span.message$1(0, "") + string$.x0aYou_m, right.span, null));
  29569. if (right.isOptional && right.mediaContext == null)
  29570. return left;
  29571. if (left.isOptional && t3)
  29572. return right;
  29573. if (t3)
  29574. t2 = right.mediaContext;
  29575. t1.get$specificity();
  29576. t1 = new A.Extender0(t1, false);
  29577. return t1._extension$_extension = new A.MergedExtension0(left, right, t1, left.target, t2, true, left.span);
  29578. },
  29579. MergedExtension0: function MergedExtension0(t0, t1, t2, t3, t4, t5, t6) {
  29580. var _ = this;
  29581. _.left = t0;
  29582. _.right = t1;
  29583. _.extender = t2;
  29584. _.target = t3;
  29585. _.mediaContext = t4;
  29586. _.isOptional = t5;
  29587. _.span = t6;
  29588. },
  29589. MergedMapView$0(maps, $K, $V) {
  29590. var t1 = $K._eval$1("@<0>")._bind$1($V);
  29591. t1 = new A.MergedMapView0(A.LinkedHashMap_LinkedHashMap$_empty($K, t1._eval$1("Map<1,2>")), t1._eval$1("MergedMapView0<1,2>"));
  29592. t1.MergedMapView$10(maps, $K, $V);
  29593. return t1;
  29594. },
  29595. MergedMapView0: function MergedMapView0(t0, t1) {
  29596. this._merged_map_view$_mapsByKey = t0;
  29597. this.$ti = t1;
  29598. },
  29599. _function6($name, $arguments, callback) {
  29600. return A.BuiltInCallable$function0($name, $arguments, callback, "sass:meta");
  29601. },
  29602. _shared_closure3: function _shared_closure3() {
  29603. },
  29604. _shared_closure4: function _shared_closure4() {
  29605. },
  29606. _shared_closure5: function _shared_closure5() {
  29607. },
  29608. _shared_closure6: function _shared_closure6() {
  29609. },
  29610. moduleFunctions_closure2: function moduleFunctions_closure2() {
  29611. },
  29612. moduleFunctions_closure3: function moduleFunctions_closure3() {
  29613. },
  29614. moduleFunctions__closure0: function moduleFunctions__closure0() {
  29615. },
  29616. moduleFunctions_closure4: function moduleFunctions_closure4() {
  29617. },
  29618. mixinClass_closure: function mixinClass_closure() {
  29619. },
  29620. mixinClass__closure: function mixinClass__closure() {
  29621. },
  29622. mixinClass__closure0: function mixinClass__closure0() {
  29623. },
  29624. SassMixin0: function SassMixin0(t0) {
  29625. this.callable = t0;
  29626. },
  29627. MixinRule$0($name, $arguments, children, span, comment) {
  29628. var t1 = A.stringReplaceAllUnchecked($name, "_", "-"),
  29629. t2 = A.List_List$unmodifiable(children, type$.Statement_2),
  29630. t3 = B.JSArray_methods.any$1(t2, new A.ParentStatement_closure0());
  29631. return new A.MixinRule0(t1, $name, $arguments, span, t2, t3);
  29632. },
  29633. MixinRule0: function MixinRule0(t0, t1, t2, t3, t4, t5) {
  29634. var _ = this;
  29635. _._mixin_rule$__MixinRule_hasContent_FI = $;
  29636. _.name = t0;
  29637. _.originalName = t1;
  29638. _.$arguments = t2;
  29639. _.span = t3;
  29640. _.children = t4;
  29641. _.hasDeclarations = t5;
  29642. },
  29643. _HasContentVisitor0: function _HasContentVisitor0() {
  29644. },
  29645. __HasContentVisitor_Object_StatementSearchVisitor0: function __HasContentVisitor_Object_StatementSearchVisitor0() {
  29646. },
  29647. ExtendMode0: function ExtendMode0(t0, t1) {
  29648. this.name = t0;
  29649. this._name = t1;
  29650. },
  29651. JSModule0: function JSModule0() {
  29652. },
  29653. JSModuleRequire0: function JSModuleRequire0() {
  29654. },
  29655. MultiSpan0: function MultiSpan0(t0, t1, t2) {
  29656. this._multi_span0$_primary = t0;
  29657. this.primaryLabel = t1;
  29658. this.secondarySpans = t2;
  29659. },
  29660. SupportsNegation0: function SupportsNegation0(t0, t1) {
  29661. this.condition = t0;
  29662. this.span = t1;
  29663. },
  29664. NoOpImporter0: function NoOpImporter0() {
  29665. },
  29666. NoSourceMapBuffer0: function NoSourceMapBuffer0(t0) {
  29667. this._no_source_map_buffer0$_buffer = t0;
  29668. },
  29669. _FakeAstNode0: function _FakeAstNode0(t0) {
  29670. this._node0$_callback = t0;
  29671. },
  29672. CssNode0: function CssNode0() {
  29673. },
  29674. CssParentNode0: function CssParentNode0() {
  29675. },
  29676. _IsInvisibleVisitor1: function _IsInvisibleVisitor1(t0, t1) {
  29677. this.includeBogus = t0;
  29678. this.includeComments = t1;
  29679. },
  29680. __IsInvisibleVisitor_Object_EveryCssVisitor0: function __IsInvisibleVisitor_Object_EveryCssVisitor0() {
  29681. },
  29682. ModifiableCssNode0: function ModifiableCssNode0() {
  29683. },
  29684. ModifiableCssNode_hasFollowingSibling_closure0: function ModifiableCssNode_hasFollowingSibling_closure0() {
  29685. },
  29686. ModifiableCssParentNode0: function ModifiableCssParentNode0() {
  29687. },
  29688. NodePackageImporter0: function NodePackageImporter0() {
  29689. this._node_package$__NodePackageImporter__entryPointDirectory_F = $;
  29690. },
  29691. NodePackageImporter__nodePackageExportsResolve_closure3: function NodePackageImporter__nodePackageExportsResolve_closure3() {
  29692. },
  29693. NodePackageImporter__nodePackageExportsResolve_closure4: function NodePackageImporter__nodePackageExportsResolve_closure4() {
  29694. },
  29695. NodePackageImporter__nodePackageExportsResolve_closure5: function NodePackageImporter__nodePackageExportsResolve_closure5() {
  29696. },
  29697. NodePackageImporter__nodePackageExportsResolve_closure6: function NodePackageImporter__nodePackageExportsResolve_closure6(t0, t1, t2) {
  29698. this.$this = t0;
  29699. this.exports = t1;
  29700. this.packageRoot = t2;
  29701. },
  29702. NodePackageImporter__nodePackageExportsResolve__closure1: function NodePackageImporter__nodePackageExportsResolve__closure1(t0, t1, t2) {
  29703. this.$this = t0;
  29704. this.variant = t1;
  29705. this.packageRoot = t2;
  29706. },
  29707. NodePackageImporter__nodePackageExportsResolve__closure2: function NodePackageImporter__nodePackageExportsResolve__closure2() {
  29708. },
  29709. NodePackageImporter__getMainExport_closure0: function NodePackageImporter__getMainExport_closure0() {
  29710. },
  29711. NullExpression$(span) {
  29712. return new A.NullExpression0(span);
  29713. },
  29714. NullExpression0: function NullExpression0(t0) {
  29715. this.span = t0;
  29716. },
  29717. legacyNullClass_closure: function legacyNullClass_closure() {
  29718. },
  29719. legacyNullClass__closure: function legacyNullClass__closure() {
  29720. },
  29721. _SassNull0: function _SassNull0() {
  29722. },
  29723. NumberExpression0: function NumberExpression0(t0, t1, t2) {
  29724. this.value = t0;
  29725. this.unit = t1;
  29726. this.span = t2;
  29727. },
  29728. numberClass_closure: function numberClass_closure() {
  29729. },
  29730. numberClass__closure: function numberClass__closure() {
  29731. },
  29732. numberClass__closure0: function numberClass__closure0() {
  29733. },
  29734. numberClass__closure1: function numberClass__closure1() {
  29735. },
  29736. numberClass__closure2: function numberClass__closure2() {
  29737. },
  29738. numberClass__closure3: function numberClass__closure3() {
  29739. },
  29740. numberClass__closure4: function numberClass__closure4() {
  29741. },
  29742. numberClass__closure5: function numberClass__closure5() {
  29743. },
  29744. numberClass__closure6: function numberClass__closure6() {
  29745. },
  29746. numberClass__closure7: function numberClass__closure7() {
  29747. },
  29748. numberClass__closure8: function numberClass__closure8() {
  29749. },
  29750. numberClass__closure9: function numberClass__closure9() {
  29751. },
  29752. numberClass__closure10: function numberClass__closure10() {
  29753. },
  29754. numberClass__closure11: function numberClass__closure11() {
  29755. },
  29756. numberClass__closure12: function numberClass__closure12() {
  29757. },
  29758. numberClass__closure13: function numberClass__closure13() {
  29759. },
  29760. numberClass__closure14: function numberClass__closure14() {
  29761. },
  29762. numberClass__closure15: function numberClass__closure15() {
  29763. },
  29764. numberClass__closure16: function numberClass__closure16() {
  29765. },
  29766. numberClass__closure17: function numberClass__closure17() {
  29767. },
  29768. numberClass__closure18: function numberClass__closure18() {
  29769. },
  29770. numberClass__closure19: function numberClass__closure19() {
  29771. },
  29772. _ConstructorOptions0: function _ConstructorOptions0() {
  29773. },
  29774. _parseNumber(value, unit) {
  29775. var invalidUnit, operands, t1, numerator, denominator, numeratorUnits, denominatorUnits;
  29776. if (unit == null || unit.length === 0)
  29777. return A.SassNumber_SassNumber0(value, null);
  29778. if (!J.contains$1$asx(unit, "*") && !B.JSString_methods.contains$1(unit, "/"))
  29779. return A.SassNumber_SassNumber0(value, unit);
  29780. invalidUnit = new A.ArgumentError(true, unit, "unit", "is invalid.");
  29781. operands = unit.split("/");
  29782. t1 = operands.length;
  29783. if (t1 > 2)
  29784. throw A.wrapException(invalidUnit);
  29785. numerator = operands[0];
  29786. denominator = t1 === 1 ? null : operands[1];
  29787. t1 = type$.JSArray_String;
  29788. numeratorUnits = numerator.length === 0 ? A._setArrayType([], t1) : A._setArrayType(numerator.split("*"), t1);
  29789. if (B.JSArray_methods.any$1(numeratorUnits, new A._parseNumber_closure()))
  29790. throw A.wrapException(invalidUnit);
  29791. denominatorUnits = denominator == null ? A._setArrayType([], t1) : A._setArrayType(denominator.split("*"), t1);
  29792. if (B.JSArray_methods.any$1(denominatorUnits, new A._parseNumber_closure0()))
  29793. throw A.wrapException(invalidUnit);
  29794. return A.SassNumber_SassNumber$withUnits0(value, denominatorUnits, numeratorUnits);
  29795. },
  29796. _NodeSassNumber: function _NodeSassNumber() {
  29797. },
  29798. legacyNumberClass_closure: function legacyNumberClass_closure() {
  29799. },
  29800. legacyNumberClass_closure0: function legacyNumberClass_closure0() {
  29801. },
  29802. legacyNumberClass_closure1: function legacyNumberClass_closure1() {
  29803. },
  29804. legacyNumberClass_closure2: function legacyNumberClass_closure2() {
  29805. },
  29806. legacyNumberClass_closure3: function legacyNumberClass_closure3() {
  29807. },
  29808. _parseNumber_closure: function _parseNumber_closure() {
  29809. },
  29810. _parseNumber_closure0: function _parseNumber_closure0() {
  29811. },
  29812. conversionFactor0(unit1, unit2) {
  29813. var _0_0;
  29814. if (unit1 === unit2)
  29815. return 1;
  29816. _0_0 = B.Map_gQqJO.$index(0, unit1);
  29817. if (_0_0 != null)
  29818. return _0_0.$index(0, unit2);
  29819. return null;
  29820. },
  29821. SassNumber_SassNumber0(value, unit) {
  29822. return unit == null ? new A.UnitlessSassNumber0(value, null) : new A.SingleUnitSassNumber0(unit, value, null);
  29823. },
  29824. SassNumber_SassNumber$withUnits0(value, denominatorUnits, numeratorUnits) {
  29825. var _0_8_isSet, _0_8, _0_10, _0_10_isSet, _0_7, unit, t2, _0_7_isSet, t3, _0_4_isSet, _0_7_isSet0, numerators, denominators, unsimplifiedDenominators, valueDouble, _i, denominator, simplifiedAway, i, factor, _1_2, _1_7_isSet, _1_7, _null = null,
  29826. _0_3 = numeratorUnits == null,
  29827. t1 = _0_3,
  29828. _0_6_isSet = !t1,
  29829. _0_6 = _null,
  29830. _0_4 = _null;
  29831. if (_0_6_isSet) {
  29832. _0_4 = J.get$length$asx(numeratorUnits == null ? type$.List_String._as(numeratorUnits) : numeratorUnits);
  29833. t1 = _0_4;
  29834. _0_6 = t1 <= 0;
  29835. _0_8_isSet = _0_6;
  29836. } else
  29837. _0_8_isSet = true;
  29838. _0_8 = _null;
  29839. _0_10 = _null;
  29840. if (_0_8_isSet) {
  29841. _0_8 = denominatorUnits == null;
  29842. t1 = _0_8;
  29843. _0_10_isSet = !t1;
  29844. if (_0_10_isSet) {
  29845. _0_10 = J.get$length$asx(denominatorUnits == null ? type$.List_String._as(denominatorUnits) : denominatorUnits) <= 0;
  29846. t1 = _0_10;
  29847. } else
  29848. t1 = true;
  29849. _0_7 = denominatorUnits;
  29850. } else {
  29851. _0_7 = _null;
  29852. _0_10_isSet = false;
  29853. t1 = false;
  29854. }
  29855. if (t1)
  29856. return new A.UnitlessSassNumber0(value, _null);
  29857. t1 = type$.List_String;
  29858. unit = _null;
  29859. t2 = false;
  29860. if (t1._is(numeratorUnits)) {
  29861. _0_7_isSet = true;
  29862. if (_0_6_isSet) {
  29863. t3 = _0_4;
  29864. _0_4_isSet = _0_6_isSet;
  29865. } else {
  29866. _0_4 = J.get$length$asx(numeratorUnits);
  29867. t3 = _0_4;
  29868. _0_4_isSet = true;
  29869. }
  29870. if (t3 === 1) {
  29871. unit = J.$index$asx(numeratorUnits, 0);
  29872. if (_0_8_isSet) {
  29873. t2 = _0_8;
  29874. _0_7_isSet0 = _0_8_isSet;
  29875. } else {
  29876. _0_8 = denominatorUnits == null;
  29877. t2 = _0_8;
  29878. _0_7_isSet0 = _0_7_isSet;
  29879. _0_7 = denominatorUnits;
  29880. _0_8_isSet = true;
  29881. }
  29882. if (!t2)
  29883. if (_0_10_isSet) {
  29884. t2 = _0_10;
  29885. _0_7_isSet = _0_7_isSet0;
  29886. } else {
  29887. if (_0_7_isSet0) {
  29888. t2 = _0_7;
  29889. _0_7_isSet = _0_7_isSet0;
  29890. } else {
  29891. t2 = denominatorUnits;
  29892. _0_7 = t2;
  29893. }
  29894. _0_10 = J.get$length$asx(t2 == null ? t1._as(t2) : t2) <= 0;
  29895. t2 = _0_10;
  29896. _0_10_isSet = true;
  29897. }
  29898. else {
  29899. _0_7_isSet = _0_7_isSet0;
  29900. t2 = true;
  29901. }
  29902. } else
  29903. _0_7_isSet = _0_8_isSet;
  29904. } else {
  29905. _0_7_isSet = _0_8_isSet;
  29906. _0_4_isSet = _0_6_isSet;
  29907. }
  29908. if (t2)
  29909. return new A.SingleUnitSassNumber0(unit, value, _null);
  29910. t2 = numeratorUnits == null;
  29911. t3 = false;
  29912. if (!t2) {
  29913. _0_7_isSet0 = true;
  29914. numerators = numeratorUnits;
  29915. if (_0_8_isSet)
  29916. t3 = _0_8;
  29917. else {
  29918. if (_0_7_isSet)
  29919. t3 = _0_7;
  29920. else {
  29921. t3 = denominatorUnits;
  29922. _0_7_isSet = _0_7_isSet0;
  29923. _0_7 = t3;
  29924. }
  29925. _0_8 = t3 == null;
  29926. t3 = _0_8;
  29927. }
  29928. if (!t3)
  29929. if (_0_10_isSet)
  29930. t3 = _0_10;
  29931. else {
  29932. if (_0_7_isSet)
  29933. t3 = _0_7;
  29934. else {
  29935. t3 = denominatorUnits;
  29936. _0_7_isSet = _0_7_isSet0;
  29937. _0_7 = t3;
  29938. }
  29939. _0_10 = J.get$length$asx(t3 == null ? t1._as(t3) : t3) <= 0;
  29940. t3 = _0_10;
  29941. }
  29942. else
  29943. t3 = true;
  29944. } else
  29945. numerators = _null;
  29946. if (t3)
  29947. return new A.ComplexSassNumber0(A.List_List$unmodifiable(numerators, type$.String), B.List_empty, value, _null);
  29948. if (!_0_3)
  29949. if (_0_6_isSet)
  29950. t2 = _0_6;
  29951. else {
  29952. if (_0_4_isSet)
  29953. t2 = _0_4;
  29954. else {
  29955. _0_4 = J.get$length$asx(t2 ? t1._as(numeratorUnits) : numeratorUnits);
  29956. t2 = _0_4;
  29957. }
  29958. _0_6 = t2 <= 0;
  29959. t2 = _0_6;
  29960. }
  29961. else
  29962. t2 = true;
  29963. denominators = _null;
  29964. if (t2) {
  29965. if (_0_7_isSet)
  29966. t2 = _0_7;
  29967. else {
  29968. t2 = denominatorUnits;
  29969. _0_7 = t2;
  29970. _0_7_isSet = true;
  29971. }
  29972. t2 = t2 != null;
  29973. if (t2) {
  29974. denominators = _0_7_isSet ? _0_7 : denominatorUnits;
  29975. if (denominators == null)
  29976. denominators = t1._as(denominators);
  29977. }
  29978. t1 = t2;
  29979. } else
  29980. t1 = false;
  29981. if (t1)
  29982. return new A.ComplexSassNumber0(B.List_empty, A.List_List$unmodifiable(denominators, type$.String), value, _null);
  29983. numeratorUnits.toString;
  29984. numerators = J.toList$0$ax(numeratorUnits);
  29985. denominatorUnits.toString;
  29986. unsimplifiedDenominators = J.toList$0$ax(denominatorUnits);
  29987. denominators = A._setArrayType([], type$.JSArray_String);
  29988. for (t1 = unsimplifiedDenominators.length, valueDouble = value, _i = 0; _i < unsimplifiedDenominators.length; unsimplifiedDenominators.length === t1 || (0, A.throwConcurrentModificationError)(unsimplifiedDenominators), ++_i) {
  29989. denominator = unsimplifiedDenominators[_i];
  29990. i = 0;
  29991. while (true) {
  29992. if (!(i < numerators.length)) {
  29993. simplifiedAway = false;
  29994. break;
  29995. }
  29996. c$0: {
  29997. factor = A.conversionFactor0(denominator, numerators[i]);
  29998. if (factor == null)
  29999. break c$0;
  30000. valueDouble *= factor;
  30001. B.JSArray_methods.removeAt$1(numerators, i);
  30002. simplifiedAway = true;
  30003. break;
  30004. }
  30005. ++i;
  30006. }
  30007. if (!simplifiedAway)
  30008. denominators.push(denominator);
  30009. }
  30010. $label0$1: {
  30011. _1_2 = numerators.length;
  30012. t1 = _1_2;
  30013. _1_7_isSet = t1 <= 0;
  30014. if (_1_7_isSet) {
  30015. _1_7 = denominators.length <= 0;
  30016. t1 = _1_7;
  30017. } else {
  30018. _1_7 = _null;
  30019. t1 = false;
  30020. }
  30021. if (t1) {
  30022. t1 = new A.UnitlessSassNumber0(valueDouble, _null);
  30023. break $label0$1;
  30024. }
  30025. t1 = false;
  30026. if (_1_2 === 1) {
  30027. unit = numerators[0];
  30028. t1 = _1_7_isSet ? _1_7 : denominators.length <= 0;
  30029. } else
  30030. unit = _null;
  30031. if (t1) {
  30032. t1 = new A.SingleUnitSassNumber0(unit, valueDouble, _null);
  30033. break $label0$1;
  30034. }
  30035. t1 = type$.String;
  30036. t1 = new A.ComplexSassNumber0(A.List_List$unmodifiable(numerators, t1), A.List_List$unmodifiable(denominators, t1), valueDouble, _null);
  30037. break $label0$1;
  30038. }
  30039. return t1;
  30040. },
  30041. SassNumber0: function SassNumber0() {
  30042. },
  30043. SassNumber__coerceOrConvertValue_compatibilityException0: function SassNumber__coerceOrConvertValue_compatibilityException0(t0, t1, t2, t3, t4, t5, t6) {
  30044. var _ = this;
  30045. _.$this = t0;
  30046. _.other = t1;
  30047. _.otherName = t2;
  30048. _.otherHasUnits = t3;
  30049. _.name = t4;
  30050. _.newNumerators = t5;
  30051. _.newDenominators = t6;
  30052. },
  30053. SassNumber__coerceOrConvertValue_closure3: function SassNumber__coerceOrConvertValue_closure3(t0, t1) {
  30054. this._box_0 = t0;
  30055. this.newNumerator = t1;
  30056. },
  30057. SassNumber__coerceOrConvertValue_closure4: function SassNumber__coerceOrConvertValue_closure4(t0) {
  30058. this.compatibilityException = t0;
  30059. },
  30060. SassNumber__coerceOrConvertValue_closure5: function SassNumber__coerceOrConvertValue_closure5(t0, t1) {
  30061. this._box_0 = t0;
  30062. this.newDenominator = t1;
  30063. },
  30064. SassNumber__coerceOrConvertValue_closure6: function SassNumber__coerceOrConvertValue_closure6(t0) {
  30065. this.compatibilityException = t0;
  30066. },
  30067. SassNumber_plus_closure0: function SassNumber_plus_closure0() {
  30068. },
  30069. SassNumber_minus_closure0: function SassNumber_minus_closure0() {
  30070. },
  30071. SassNumber_multiplyUnits_closure3: function SassNumber_multiplyUnits_closure3(t0, t1) {
  30072. this._box_0 = t0;
  30073. this.numerator = t1;
  30074. },
  30075. SassNumber_multiplyUnits_closure4: function SassNumber_multiplyUnits_closure4(t0, t1) {
  30076. this.newNumerators = t0;
  30077. this.numerator = t1;
  30078. },
  30079. SassNumber_multiplyUnits_closure5: function SassNumber_multiplyUnits_closure5(t0, t1) {
  30080. this._box_0 = t0;
  30081. this.numerator = t1;
  30082. },
  30083. SassNumber_multiplyUnits_closure6: function SassNumber_multiplyUnits_closure6(t0, t1) {
  30084. this.newNumerators = t0;
  30085. this.numerator = t1;
  30086. },
  30087. SassNumber__areAnyConvertible_closure0: function SassNumber__areAnyConvertible_closure0(t0) {
  30088. this.units2 = t0;
  30089. },
  30090. SassNumber__canonicalizeUnitList_closure0: function SassNumber__canonicalizeUnitList_closure0() {
  30091. },
  30092. SassNumber__canonicalMultiplier_closure0: function SassNumber__canonicalMultiplier_closure0(t0) {
  30093. this.$this = t0;
  30094. },
  30095. SassNumber_unitSuggestion_closure1: function SassNumber_unitSuggestion_closure1() {
  30096. },
  30097. SassNumber_unitSuggestion_closure2: function SassNumber_unitSuggestion_closure2() {
  30098. },
  30099. OklabColorSpace0: function OklabColorSpace0(t0, t1) {
  30100. this.name = t0;
  30101. this._space$_channels = t1;
  30102. },
  30103. OklchColorSpace0: function OklchColorSpace0(t0, t1) {
  30104. this.name = t0;
  30105. this._space$_channels = t1;
  30106. },
  30107. SupportsOperation$0(left, right, operator, span) {
  30108. var lowerOperator = operator.toLowerCase();
  30109. if (lowerOperator !== "and" && lowerOperator !== "or")
  30110. A.throwExpression(A.ArgumentError$value(operator, "operator", 'may only be "and" or "or".'));
  30111. return new A.SupportsOperation0(left, right, operator, span);
  30112. },
  30113. SupportsOperation0: function SupportsOperation0(t0, t1, t2, t3) {
  30114. var _ = this;
  30115. _.left = t0;
  30116. _.right = t1;
  30117. _.operator = t2;
  30118. _.span = t3;
  30119. },
  30120. ParcelWatcherSubscription0: function ParcelWatcherSubscription0() {
  30121. },
  30122. ParcelWatcherEvent0: function ParcelWatcherEvent0() {
  30123. },
  30124. ParcelWatcher0: function ParcelWatcher0() {
  30125. },
  30126. ParentSelector0: function ParentSelector0(t0, t1) {
  30127. this.suffix = t0;
  30128. this.span = t1;
  30129. },
  30130. ParentStatement0: function ParentStatement0() {
  30131. },
  30132. ParentStatement_closure0: function ParentStatement_closure0() {
  30133. },
  30134. ParentStatement__closure0: function ParentStatement__closure0() {
  30135. },
  30136. ParenthesizedExpression0: function ParenthesizedExpression0(t0, t1) {
  30137. this.expression = t0;
  30138. this.span = t1;
  30139. },
  30140. loadParserExports() {
  30141. A._updateAstPrototypes();
  30142. return {parse: A.allowInterop(A.parser0___parse$closure()), parseIdentifier: A.allowInterop(A.parser0___parseIdentifier$closure()), toCssIdentifier: A.allowInterop(A.parser0___toCssIdentifier$closure()), createExpressionVisitor: A.allowInterop(new A.loadParserExports_closure()), createStatementVisitor: A.allowInterop(new A.loadParserExports_closure0())};
  30143. },
  30144. _updateAstPrototypes() {
  30145. var t2, t3, string, _i, t4,
  30146. file = A.SourceFile$fromString("", null),
  30147. t1 = type$.JSClass;
  30148. J.get$$prototype$x(t1._as(file.constructor)).getText = A.allowInteropCaptureThisNamed("getText", new A._updateAstPrototypes_closure());
  30149. A.defineGetter(J.get$$prototype$x(t1._as(file.constructor)), "codeUnits", new A._updateAstPrototypes_closure0(), null);
  30150. t2 = $.$get$_interpolation();
  30151. A.defineGetter(J.get$$prototype$x(t1._as(t2.constructor)), "asPlain", new A._updateAstPrototypes_closure1(), null);
  30152. t3 = $.$get$bogusSpan0();
  30153. J.get$$prototype$x(t1._as(self.Object.getPrototypeOf(J.get$$prototype$x(t1._as(new A.ExtendRule0(t2, false, t3).constructor))).constructor)).accept = A.allowInteropCaptureThisNamed("accept", new A._updateAstPrototypes_closure2());
  30154. string = new A.StringExpression0(t2, false);
  30155. J.get$$prototype$x(t1._as(self.Object.getPrototypeOf(J.get$$prototype$x(t1._as(string.constructor))).constructor)).accept = A.allowInteropCaptureThisNamed("accept", new A._updateAstPrototypes_closure3());
  30156. A._addSupportsConditionToInterpolation();
  30157. for (t2 = [string, new A.BinaryOperationExpression0(B.BinaryOperator_u150, string, string, false), new A.SupportsExpression0(new A.SupportsAnything0(t2, t3)), new A.LoudComment0(t2)], _i = 0; _i < 4; ++_i) {
  30158. t3 = J.get$$prototype$x(t1._as(t2[_i].constructor));
  30159. t4 = {get: A.allowInteropCaptureThis(new A._updateAstPrototypes_closure4()), enumerable: false};
  30160. self.Object.defineProperty(t3, "span", t4);
  30161. }
  30162. },
  30163. _addSupportsConditionToInterpolation() {
  30164. var t3, _i, $function, t4,
  30165. t1 = $.$get$_interpolation(),
  30166. t2 = $.$get$bogusSpan0(),
  30167. anything = new A.SupportsAnything0(t1, t2);
  30168. for (t3 = $.$get$_expression(), t2 = [anything, new A.SupportsDeclaration0(t3, t3, t2), new A.SupportsFunction0(t1, t1, t2), new A.SupportsInterpolation0(t3, t2), new A.SupportsNegation0(anything, t2), A.SupportsOperation$0(anything, anything, "and", t2)], t3 = type$.JSClass, _i = 0; _i < 6; ++_i) {
  30169. t1 = J.get$$prototype$x(t3._as(t2[_i].constructor));
  30170. $function = A.allowInteropCaptureThis(new A._addSupportsConditionToInterpolation_closure());
  30171. t4 = {value: "toInterpolation", enumerable: false};
  30172. self.Object.defineProperty($function, "name", t4);
  30173. A._hideDartProperties($function);
  30174. t1.toInterpolation = $function;
  30175. }
  30176. },
  30177. _parse(css, syntax, path) {
  30178. var t1;
  30179. $label0$0: {
  30180. if ("scss" === syntax) {
  30181. t1 = B.Syntax_SCSS_scss0;
  30182. break $label0$0;
  30183. }
  30184. if ("sass" === syntax) {
  30185. t1 = B.Syntax_Sass_sass0;
  30186. break $label0$0;
  30187. }
  30188. if ("css" === syntax) {
  30189. t1 = B.Syntax_CSS_css0;
  30190. break $label0$0;
  30191. }
  30192. t1 = A.throwExpression(A.UnsupportedError$('Unknown syntax "' + syntax + '"'));
  30193. }
  30194. return A.Stylesheet_Stylesheet$parse0(css, t1, A.NullableExtension_andThen0(path, A.path__toUri$closure()));
  30195. },
  30196. _parseIdentifier(identifier) {
  30197. var t1, exception;
  30198. try {
  30199. t1 = new A.Parser1(A.SpanScanner$(identifier, null), null)._parser1$_parseIdentifier$0();
  30200. return t1;
  30201. } catch (exception) {
  30202. if (type$.SassFormatException_2._is(A.unwrapException(exception)))
  30203. return null;
  30204. else
  30205. throw exception;
  30206. }
  30207. },
  30208. _toCssIdentifier(text) {
  30209. return A.StringExtension_toCssIdentifier(text);
  30210. },
  30211. ParserExports: function ParserExports() {
  30212. },
  30213. loadParserExports_closure: function loadParserExports_closure() {
  30214. },
  30215. loadParserExports_closure0: function loadParserExports_closure0() {
  30216. },
  30217. _updateAstPrototypes_closure: function _updateAstPrototypes_closure() {
  30218. },
  30219. _updateAstPrototypes_closure0: function _updateAstPrototypes_closure0() {
  30220. },
  30221. _updateAstPrototypes_closure1: function _updateAstPrototypes_closure1() {
  30222. },
  30223. _updateAstPrototypes_closure2: function _updateAstPrototypes_closure2() {
  30224. },
  30225. _updateAstPrototypes_closure3: function _updateAstPrototypes_closure3() {
  30226. },
  30227. _updateAstPrototypes_closure4: function _updateAstPrototypes_closure4() {
  30228. },
  30229. _addSupportsConditionToInterpolation_closure: function _addSupportsConditionToInterpolation_closure() {
  30230. },
  30231. Parser_isIdentifier0(text) {
  30232. var exception;
  30233. try {
  30234. new A.Parser1(A.SpanScanner$(text, null), null)._parser1$_parseIdentifier$0();
  30235. return true;
  30236. } catch (exception) {
  30237. if (type$.SassFormatException_2._is(A.unwrapException(exception)))
  30238. return false;
  30239. else
  30240. throw exception;
  30241. }
  30242. },
  30243. Parser1: function Parser1(t0, t1) {
  30244. this.scanner = t0;
  30245. this._parser1$_interpolationMap = t1;
  30246. },
  30247. Parser__parseIdentifier_closure0: function Parser__parseIdentifier_closure0(t0) {
  30248. this.$this = t0;
  30249. },
  30250. Parser_escape_closure0: function Parser_escape_closure0() {
  30251. },
  30252. Parser_scanIdentChar_matches0: function Parser_scanIdentChar_matches0(t0, t1) {
  30253. this.caseSensitive = t0;
  30254. this.char = t1;
  30255. },
  30256. Parser_spanFrom_closure0: function Parser_spanFrom_closure0(t0, t1) {
  30257. this.$this = t0;
  30258. this.span = t1;
  30259. },
  30260. PlaceholderSelector0: function PlaceholderSelector0(t0, t1) {
  30261. this.name = t0;
  30262. this.span = t1;
  30263. },
  30264. PlainCssCallable0: function PlainCssCallable0(t0) {
  30265. this.name = t0;
  30266. },
  30267. PrefixedMapView0: function PrefixedMapView0(t0, t1, t2) {
  30268. this._prefixed_map_view0$_map = t0;
  30269. this._prefixed_map_view0$_prefix = t1;
  30270. this.$ti = t2;
  30271. },
  30272. _PrefixedKeys0: function _PrefixedKeys0(t0) {
  30273. this._prefixed_map_view0$_view = t0;
  30274. },
  30275. _PrefixedKeys_iterator_closure0: function _PrefixedKeys_iterator_closure0(t0) {
  30276. this.$this = t0;
  30277. },
  30278. ProphotoRgbColorSpace0: function ProphotoRgbColorSpace0(t0, t1) {
  30279. this.name = t0;
  30280. this._space$_channels = t1;
  30281. },
  30282. PseudoSelector$0($name, span, argument, element, selector) {
  30283. var t1 = !element,
  30284. t2 = t1 && !A.PseudoSelector__isFakePseudoElement0($name);
  30285. return new A.PseudoSelector0($name, A.unvendor0($name), t2, t1, argument, selector, span);
  30286. },
  30287. PseudoSelector__isFakePseudoElement0($name) {
  30288. switch ($name.charCodeAt(0)) {
  30289. case 97:
  30290. case 65:
  30291. return A.equalsIgnoreCase0($name, "after");
  30292. case 98:
  30293. case 66:
  30294. return A.equalsIgnoreCase0($name, "before");
  30295. case 102:
  30296. case 70:
  30297. return A.equalsIgnoreCase0($name, "first-line") || A.equalsIgnoreCase0($name, "first-letter");
  30298. default:
  30299. return false;
  30300. }
  30301. },
  30302. PseudoSelector0: function PseudoSelector0(t0, t1, t2, t3, t4, t5, t6) {
  30303. var _ = this;
  30304. _.name = t0;
  30305. _.normalizedName = t1;
  30306. _.isClass = t2;
  30307. _.isSyntacticClass = t3;
  30308. _.argument = t4;
  30309. _.selector = t5;
  30310. _._pseudo$__PseudoSelector_specificity_FI = $;
  30311. _.span = t6;
  30312. },
  30313. PseudoSelector_specificity_closure0: function PseudoSelector_specificity_closure0(t0) {
  30314. this.$this = t0;
  30315. },
  30316. PseudoSelector_specificity__closure1: function PseudoSelector_specificity__closure1() {
  30317. },
  30318. PseudoSelector_specificity__closure2: function PseudoSelector_specificity__closure2() {
  30319. },
  30320. PseudoSelector_unify_closure0: function PseudoSelector_unify_closure0() {
  30321. },
  30322. PublicMemberMapView0: function PublicMemberMapView0(t0, t1) {
  30323. this._public_member_map_view0$_inner = t0;
  30324. this.$ti = t1;
  30325. },
  30326. QualifiedName0: function QualifiedName0(t0, t1) {
  30327. this.name = t0;
  30328. this.namespace = t1;
  30329. },
  30330. Rec2020ColorSpace0: function Rec2020ColorSpace0(t0, t1) {
  30331. this.name = t0;
  30332. this._space$_channels = t1;
  30333. },
  30334. createJSClass($name, $constructor) {
  30335. return type$.JSClass._as(A.allowInteropCaptureThisNamed($name, $constructor));
  30336. },
  30337. JSClassExtension_injectSuperclass(_this, superclass) {
  30338. var t1 = J.getInterceptor$x(superclass),
  30339. t2 = J.getInterceptor$x(_this);
  30340. self.Object.setPrototypeOf(t1.get$$prototype(superclass), J.get$$prototype$x(type$.JSClass._as(self.Object.getPrototypeOf(t2.get$$prototype(_this)).constructor)));
  30341. self.Object.setPrototypeOf(t2.get$$prototype(_this), self.Object.create(t1.get$$prototype(superclass)));
  30342. },
  30343. JSClassExtension_setCustomInspect(_this, inspect) {
  30344. if (self.util == null)
  30345. return;
  30346. J.get$$prototype$x(_this)[self.util.inspect.custom] = A.allowInteropCaptureThis(new A.JSClassExtension_setCustomInspect_closure(inspect));
  30347. },
  30348. JSClassExtension_get_defineStaticMethod(_this) {
  30349. return new A.JSClassExtension_get_defineStaticMethod_closure(_this);
  30350. },
  30351. JSClassExtension_get_defineMethod(_this) {
  30352. return new A.JSClassExtension_get_defineMethod_closure(_this);
  30353. },
  30354. JSClassExtension_defineMethods(_this, methods) {
  30355. methods.forEach$1(0, A.JSClassExtension_get_defineMethod(_this));
  30356. },
  30357. JSClassExtension_get_defineGetter(_this) {
  30358. return new A.JSClassExtension_get_defineGetter_closure(_this);
  30359. },
  30360. JSClass0: function JSClass0() {
  30361. },
  30362. JSClassExtension_setCustomInspect_closure: function JSClassExtension_setCustomInspect_closure(t0) {
  30363. this.inspect = t0;
  30364. },
  30365. JSClassExtension_get_defineStaticMethod_closure: function JSClassExtension_get_defineStaticMethod_closure(t0) {
  30366. this._this = t0;
  30367. },
  30368. JSClassExtension_get_defineMethod_closure: function JSClassExtension_get_defineMethod_closure(t0) {
  30369. this._this = t0;
  30370. },
  30371. JSClassExtension_get_defineGetter_closure: function JSClassExtension_get_defineGetter_closure(t0) {
  30372. this._this = t0;
  30373. },
  30374. RenderContext0: function RenderContext0() {
  30375. },
  30376. RenderContextOptions0: function RenderContextOptions0() {
  30377. },
  30378. RenderContextResult0: function RenderContextResult0() {
  30379. },
  30380. RenderContextResultStats0: function RenderContextResultStats0() {
  30381. },
  30382. RenderOptions: function RenderOptions() {
  30383. },
  30384. RenderResult: function RenderResult() {
  30385. },
  30386. RenderResultStats: function RenderResultStats() {
  30387. },
  30388. ReplaceExpressionVisitor0: function ReplaceExpressionVisitor0() {
  30389. },
  30390. ReplaceExpressionVisitor_visitListExpression_closure0: function ReplaceExpressionVisitor_visitListExpression_closure0(t0) {
  30391. this.$this = t0;
  30392. },
  30393. ReplaceExpressionVisitor_visitArgumentInvocation_closure0: function ReplaceExpressionVisitor_visitArgumentInvocation_closure0(t0) {
  30394. this.$this = t0;
  30395. },
  30396. ReplaceExpressionVisitor_visitInterpolation_closure0: function ReplaceExpressionVisitor_visitInterpolation_closure0(t0) {
  30397. this.$this = t0;
  30398. },
  30399. ImporterResult$(contents, sourceMapUrl, syntax) {
  30400. if ((sourceMapUrl == null ? null : sourceMapUrl.get$scheme()) === "")
  30401. A.throwExpression(A.ArgumentError$value(sourceMapUrl, "sourceMapUrl", "must be absolute"));
  30402. return new A.ImporterResult0(contents, sourceMapUrl, syntax);
  30403. },
  30404. ImporterResult0: function ImporterResult0(t0, t1, t2) {
  30405. this.contents = t0;
  30406. this._result$_sourceMapUrl = t1;
  30407. this.syntax = t2;
  30408. },
  30409. ReturnRule0: function ReturnRule0(t0, t1) {
  30410. this.expression = t0;
  30411. this.span = t1;
  30412. },
  30413. RgbColorSpace0: function RgbColorSpace0(t0, t1) {
  30414. this.name = t0;
  30415. this._space$_channels = t1;
  30416. },
  30417. SassParser0: function SassParser0(t0, t1, t2, t3) {
  30418. var _ = this;
  30419. _._sass0$_currentIndentation = 0;
  30420. _._sass0$_spaces = _._sass0$_nextIndentationEnd = _._sass0$_nextIndentation = null;
  30421. _._stylesheet0$_isUseAllowed = true;
  30422. _._stylesheet0$_inExpression = _._stylesheet0$_inParentheses = _._stylesheet0$_inStyleRule = _._stylesheet0$_inUnknownAtRule = _._stylesheet0$_inControlDirective = _._stylesheet0$_inContentBlock = _._stylesheet0$_inMixin = false;
  30423. _._stylesheet0$_globalVariables = t0;
  30424. _.warnings = t1;
  30425. _.lastSilentComment = null;
  30426. _.scanner = t2;
  30427. _._parser1$_interpolationMap = t3;
  30428. },
  30429. SassParser_styleRuleSelector_closure0: function SassParser_styleRuleSelector_closure0() {
  30430. },
  30431. SassParser_children_closure0: function SassParser_children_closure0(t0, t1, t2) {
  30432. this.$this = t0;
  30433. this.child = t1;
  30434. this.children = t2;
  30435. },
  30436. SassParser__peekIndentation_closure1: function SassParser__peekIndentation_closure1() {
  30437. },
  30438. SassParser__peekIndentation_closure2: function SassParser__peekIndentation_closure2() {
  30439. },
  30440. _translateReturnValue(val) {
  30441. if (val instanceof A._Future)
  30442. return A.futureToPromise(val, type$.dynamic);
  30443. else
  30444. return val;
  30445. },
  30446. main2() {
  30447. new Uint8Array(0);
  30448. A.main();
  30449. J.set$cli_pkg_main_0_$x(self.exports, A._wrapMain(A.sass__main$closure()));
  30450. },
  30451. _wrapMain(main) {
  30452. if (type$.dynamic_Function._is(main))
  30453. return A.allowInterop(new A._wrapMain_closure(main));
  30454. else
  30455. return A.allowInterop(new A._wrapMain_closure0(main));
  30456. },
  30457. _Exports: function _Exports() {
  30458. },
  30459. _wrapMain_closure: function _wrapMain_closure(t0) {
  30460. this.main = t0;
  30461. },
  30462. _wrapMain_closure0: function _wrapMain_closure0(t0) {
  30463. this.main = t0;
  30464. },
  30465. ScssParser$0(contents, url) {
  30466. return new A.ScssParser0(A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration_2), A._setArrayType([], type$.JSArray_Record_3_nullable_Deprecation_deprecation_and_String_message_and_FileSpan_span_2), A.SpanScanner$(contents, url), null);
  30467. },
  30468. ScssParser0: function ScssParser0(t0, t1, t2, t3) {
  30469. var _ = this;
  30470. _._stylesheet0$_isUseAllowed = true;
  30471. _._stylesheet0$_inExpression = _._stylesheet0$_inParentheses = _._stylesheet0$_inStyleRule = _._stylesheet0$_inUnknownAtRule = _._stylesheet0$_inControlDirective = _._stylesheet0$_inContentBlock = _._stylesheet0$_inMixin = false;
  30472. _._stylesheet0$_globalVariables = t0;
  30473. _.warnings = t1;
  30474. _.lastSilentComment = null;
  30475. _.scanner = t2;
  30476. _._parser1$_interpolationMap = t3;
  30477. },
  30478. Selector0: function Selector0() {
  30479. },
  30480. _IsInvisibleVisitor2: function _IsInvisibleVisitor2(t0) {
  30481. this.includeBogus = t0;
  30482. },
  30483. _IsBogusVisitor0: function _IsBogusVisitor0(t0) {
  30484. this.includeLeadingCombinator = t0;
  30485. },
  30486. _IsBogusVisitor_visitComplexSelector_closure0: function _IsBogusVisitor_visitComplexSelector_closure0(t0) {
  30487. this.$this = t0;
  30488. },
  30489. _IsUselessVisitor0: function _IsUselessVisitor0() {
  30490. },
  30491. _IsUselessVisitor_visitComplexSelector_closure0: function _IsUselessVisitor_visitComplexSelector_closure0(t0) {
  30492. this.$this = t0;
  30493. },
  30494. __IsBogusVisitor_Object_AnySelectorVisitor0: function __IsBogusVisitor_Object_AnySelectorVisitor0() {
  30495. },
  30496. __IsInvisibleVisitor_Object_AnySelectorVisitor0: function __IsInvisibleVisitor_Object_AnySelectorVisitor0() {
  30497. },
  30498. __IsUselessVisitor_Object_AnySelectorVisitor0: function __IsUselessVisitor_Object_AnySelectorVisitor0() {
  30499. },
  30500. SelectorExpression0: function SelectorExpression0(t0) {
  30501. this.span = t0;
  30502. },
  30503. _prependParent0(compound) {
  30504. var _0_3, _0_4, _0_40, t2, _0_4_isSet, t3, rest, _null = null,
  30505. t1 = A.EvaluationContext_currentOrNull0(),
  30506. span = (t1 == null ? A.throwExpression(A.StateError$(string$.No_Sass)) : t1).get$currentCallableSpan(),
  30507. _0_0 = compound.components;
  30508. $label0$0: {
  30509. _0_3 = _0_0.length >= 1;
  30510. _0_4 = _null;
  30511. if (_0_3) {
  30512. _0_40 = _0_0[0];
  30513. t1 = _0_40;
  30514. _0_4 = t1;
  30515. t1 = t1 instanceof A.UniversalSelector0;
  30516. } else
  30517. t1 = false;
  30518. t2 = _null;
  30519. if (t1) {
  30520. t1 = t2;
  30521. break $label0$0;
  30522. }
  30523. t1 = false;
  30524. if (_0_3) {
  30525. _0_4_isSet = true;
  30526. t3 = _0_4;
  30527. if (t3 instanceof A.TypeSelector0) {
  30528. t1 = _0_4;
  30529. t1 = type$.TypeSelector_2._as(t1).name.namespace != null;
  30530. }
  30531. } else
  30532. _0_4_isSet = _0_3;
  30533. if (t1) {
  30534. t1 = t2;
  30535. break $label0$0;
  30536. }
  30537. if (_0_3) {
  30538. if (_0_4_isSet)
  30539. t1 = _0_4;
  30540. else {
  30541. _0_4 = _0_0[0];
  30542. t1 = _0_4;
  30543. _0_4_isSet = true;
  30544. }
  30545. t1 = t1 instanceof A.TypeSelector0;
  30546. } else
  30547. t1 = false;
  30548. if (t1) {
  30549. t1 = _0_4_isSet ? _0_4 : _0_0[0];
  30550. type$.TypeSelector_2._as(t1);
  30551. rest = B.JSArray_methods.sublist$1(_0_0, 1);
  30552. t1 = A._setArrayType([new A.ParentSelector0(t1.name.name, span)], type$.JSArray_SimpleSelector_2);
  30553. B.JSArray_methods.addAll$1(t1, rest);
  30554. t1 = A.CompoundSelector$0(t1, span);
  30555. break $label0$0;
  30556. }
  30557. t1 = A._setArrayType([new A.ParentSelector0(_null, span)], type$.JSArray_SimpleSelector_2);
  30558. B.JSArray_methods.addAll$1(t1, _0_0);
  30559. t1 = A.CompoundSelector$0(t1, span);
  30560. break $label0$0;
  30561. }
  30562. return t1;
  30563. },
  30564. _function8($name, $arguments, callback) {
  30565. return A.BuiltInCallable$function0($name, $arguments, callback, "sass:selector");
  30566. },
  30567. _nest_closure0: function _nest_closure0() {
  30568. },
  30569. _nest__closure1: function _nest__closure1(t0) {
  30570. this._box_0 = t0;
  30571. },
  30572. _nest__closure2: function _nest__closure2() {
  30573. },
  30574. _append_closure1: function _append_closure1() {
  30575. },
  30576. _append__closure1: function _append__closure1() {
  30577. },
  30578. _append__closure2: function _append__closure2(t0) {
  30579. this.span = t0;
  30580. },
  30581. _append___closure0: function _append___closure0(t0, t1) {
  30582. this.parent = t0;
  30583. this.span = t1;
  30584. },
  30585. _extend_closure0: function _extend_closure0() {
  30586. },
  30587. _replace_closure0: function _replace_closure0() {
  30588. },
  30589. _unify_closure0: function _unify_closure0() {
  30590. },
  30591. _isSuperselector_closure0: function _isSuperselector_closure0() {
  30592. },
  30593. _simpleSelectors_closure0: function _simpleSelectors_closure0() {
  30594. },
  30595. _simpleSelectors__closure0: function _simpleSelectors__closure0() {
  30596. },
  30597. _parse_closure0: function _parse_closure0() {
  30598. },
  30599. SelectorParser0: function SelectorParser0(t0, t1, t2, t3) {
  30600. var _ = this;
  30601. _._selector$_allowParent = t0;
  30602. _._selector$_plainCss = t1;
  30603. _.scanner = t2;
  30604. _._parser1$_interpolationMap = t3;
  30605. },
  30606. SelectorParser_parse_closure0: function SelectorParser_parse_closure0(t0) {
  30607. this.$this = t0;
  30608. },
  30609. SelectorParser_parseCompoundSelector_closure0: function SelectorParser_parseCompoundSelector_closure0(t0) {
  30610. this.$this = t0;
  30611. },
  30612. SelectorSearchVisitor0: function SelectorSearchVisitor0() {
  30613. },
  30614. SelectorSearchVisitor_visitComplexSelector_closure0: function SelectorSearchVisitor_visitComplexSelector_closure0(t0) {
  30615. this.$this = t0;
  30616. },
  30617. SelectorSearchVisitor_visitCompoundSelector_closure0: function SelectorSearchVisitor_visitCompoundSelector_closure0(t0) {
  30618. this.$this = t0;
  30619. },
  30620. serialize0(node, charset, indentWidth, inspect, lineFeed, logger, sourceMap, style, useSpaces) {
  30621. var t1, css, t2, prefix,
  30622. visitor = A._SerializeVisitor$0(indentWidth == null ? 2 : indentWidth, inspect, lineFeed, logger, true, sourceMap, style, useSpaces);
  30623. node.accept$1(visitor);
  30624. t1 = visitor._serialize0$_buffer;
  30625. css = t1.toString$0(0);
  30626. if (charset) {
  30627. t2 = new A.CodeUnits(css);
  30628. t2 = t2.any$1(t2, new A.serialize_closure0());
  30629. } else
  30630. t2 = false;
  30631. if (t2)
  30632. prefix = style === B.OutputStyle_10 ? "\ufeff" : '@charset "UTF-8";\n';
  30633. else
  30634. prefix = "";
  30635. t1 = sourceMap ? t1.buildSourceMap$1$prefix(prefix) : null;
  30636. return new A._Record_2_sourceMap(prefix + css, t1);
  30637. },
  30638. serializeValue0(value, inspect, quote) {
  30639. var _null = null,
  30640. visitor = A._SerializeVisitor$0(_null, inspect, _null, _null, quote, false, _null, true);
  30641. value.accept$1(visitor);
  30642. return visitor._serialize0$_buffer.toString$0(0);
  30643. },
  30644. serializeSelector0(selector, inspect) {
  30645. var _null = null,
  30646. visitor = A._SerializeVisitor$0(_null, true, _null, _null, true, false, _null, true);
  30647. selector.accept$1(visitor);
  30648. return visitor._serialize0$_buffer.toString$0(0);
  30649. },
  30650. _SerializeVisitor$0(indentWidth, inspect, lineFeed, logger, quote, sourceMap, style, useSpaces) {
  30651. var t1 = sourceMap ? new A.SourceMapBuffer0(new A.StringBuffer(""), A._setArrayType([], type$.JSArray_Entry)) : new A.NoSourceMapBuffer0(new A.StringBuffer("")),
  30652. t2 = style == null ? B.OutputStyle_00 : style,
  30653. t3 = useSpaces ? 32 : 9,
  30654. t4 = indentWidth == null ? 2 : indentWidth,
  30655. t5 = lineFeed == null ? B.LineFeed_LvD : lineFeed,
  30656. t6 = logger == null ? B.StderrLogger_false0 : logger;
  30657. A.RangeError_checkValueInInterval(t4, 0, 10, "indentWidth");
  30658. return new A._SerializeVisitor0(t1, t2, inspect, quote, t3, t4, t5, t6);
  30659. },
  30660. serialize_closure0: function serialize_closure0() {
  30661. },
  30662. _SerializeVisitor0: function _SerializeVisitor0(t0, t1, t2, t3, t4, t5, t6, t7) {
  30663. var _ = this;
  30664. _._serialize0$_buffer = t0;
  30665. _._serialize0$_indentation = 0;
  30666. _._serialize0$_style = t1;
  30667. _._serialize0$_inspect = t2;
  30668. _._serialize0$_quote = t3;
  30669. _._serialize0$_indentCharacter = t4;
  30670. _._serialize0$_indentWidth = t5;
  30671. _._lineFeed = t6;
  30672. _._serialize0$_logger = t7;
  30673. },
  30674. _SerializeVisitor_visitCssComment_closure0: function _SerializeVisitor_visitCssComment_closure0(t0, t1) {
  30675. this.$this = t0;
  30676. this.node = t1;
  30677. },
  30678. _SerializeVisitor_visitCssAtRule_closure0: function _SerializeVisitor_visitCssAtRule_closure0(t0, t1) {
  30679. this.$this = t0;
  30680. this.node = t1;
  30681. },
  30682. _SerializeVisitor_visitCssMediaRule_closure0: function _SerializeVisitor_visitCssMediaRule_closure0(t0, t1) {
  30683. this.$this = t0;
  30684. this.node = t1;
  30685. },
  30686. _SerializeVisitor_visitCssImport_closure0: function _SerializeVisitor_visitCssImport_closure0(t0, t1) {
  30687. this.$this = t0;
  30688. this.node = t1;
  30689. },
  30690. _SerializeVisitor_visitCssImport__closure0: function _SerializeVisitor_visitCssImport__closure0(t0, t1) {
  30691. this.$this = t0;
  30692. this.node = t1;
  30693. },
  30694. _SerializeVisitor_visitCssKeyframeBlock_closure0: function _SerializeVisitor_visitCssKeyframeBlock_closure0(t0, t1) {
  30695. this.$this = t0;
  30696. this.node = t1;
  30697. },
  30698. _SerializeVisitor_visitCssStyleRule_closure0: function _SerializeVisitor_visitCssStyleRule_closure0(t0, t1) {
  30699. this.$this = t0;
  30700. this.node = t1;
  30701. },
  30702. _SerializeVisitor_visitCssSupportsRule_closure0: function _SerializeVisitor_visitCssSupportsRule_closure0(t0, t1) {
  30703. this.$this = t0;
  30704. this.node = t1;
  30705. },
  30706. _SerializeVisitor_visitCssDeclaration_closure1: function _SerializeVisitor_visitCssDeclaration_closure1(t0, t1) {
  30707. this.$this = t0;
  30708. this.node = t1;
  30709. },
  30710. _SerializeVisitor_visitCssDeclaration_closure2: function _SerializeVisitor_visitCssDeclaration_closure2(t0, t1) {
  30711. this.$this = t0;
  30712. this.node = t1;
  30713. },
  30714. _SerializeVisitor_visitList_closure2: function _SerializeVisitor_visitList_closure2() {
  30715. },
  30716. _SerializeVisitor_visitList_closure3: function _SerializeVisitor_visitList_closure3(t0, t1) {
  30717. this.$this = t0;
  30718. this.value = t1;
  30719. },
  30720. _SerializeVisitor_visitList_closure4: function _SerializeVisitor_visitList_closure4(t0) {
  30721. this.$this = t0;
  30722. },
  30723. _SerializeVisitor_visitMap_closure0: function _SerializeVisitor_visitMap_closure0(t0) {
  30724. this.$this = t0;
  30725. },
  30726. _SerializeVisitor_visitSelectorList_closure0: function _SerializeVisitor_visitSelectorList_closure0() {
  30727. },
  30728. _SerializeVisitor__write_closure0: function _SerializeVisitor__write_closure0(t0, t1) {
  30729. this.$this = t0;
  30730. this.value = t1;
  30731. },
  30732. _SerializeVisitor__visitChildren_closure1: function _SerializeVisitor__visitChildren_closure1(t0, t1) {
  30733. this.$this = t0;
  30734. this.child = t1;
  30735. },
  30736. _SerializeVisitor__visitChildren_closure2: function _SerializeVisitor__visitChildren_closure2(t0, t1) {
  30737. this.$this = t0;
  30738. this.child = t1;
  30739. },
  30740. OutputStyle0: function OutputStyle0(t0) {
  30741. this._name = t0;
  30742. },
  30743. LineFeed0: function LineFeed0(t0, t1, t2) {
  30744. this.name = t0;
  30745. this.text = t1;
  30746. this._name = t2;
  30747. },
  30748. ShadowedModuleView_ifNecessary0(inner, functions, mixins, variables, $T) {
  30749. return A.ShadowedModuleView__needsBlocklist0(inner.get$variables(), variables) || A.ShadowedModuleView__needsBlocklist0(inner.get$functions(inner), functions) || A.ShadowedModuleView__needsBlocklist0(inner.get$mixins(), mixins) ? new A.ShadowedModuleView0(inner, A.ShadowedModuleView__shadowedMap0(inner.get$variables(), variables, type$.Value_2), A.ShadowedModuleView__shadowedMap0(inner.get$variableNodes(), variables, type$.AstNode_2), A.ShadowedModuleView__shadowedMap0(inner.get$functions(inner), functions, $T), A.ShadowedModuleView__shadowedMap0(inner.get$mixins(), mixins, $T), $T._eval$1("ShadowedModuleView0<0>")) : null;
  30750. },
  30751. ShadowedModuleView__shadowedMap0(map, blocklist, $V) {
  30752. var t1 = A.ShadowedModuleView__needsBlocklist0(map, blocklist);
  30753. return !t1 ? map : A.LimitedMapView$blocklist0(map, blocklist, type$.String, $V);
  30754. },
  30755. ShadowedModuleView__needsBlocklist0(map, blocklist) {
  30756. return map.get$isNotEmpty(map) && blocklist.any$1(0, map.get$containsKey());
  30757. },
  30758. ShadowedModuleView0: function ShadowedModuleView0(t0, t1, t2, t3, t4, t5) {
  30759. var _ = this;
  30760. _._shadowed_view0$_inner = t0;
  30761. _.variables = t1;
  30762. _.variableNodes = t2;
  30763. _.functions = t3;
  30764. _.mixins = t4;
  30765. _.$ti = t5;
  30766. },
  30767. SilentComment0: function SilentComment0(t0, t1) {
  30768. this.text = t0;
  30769. this.span = t1;
  30770. },
  30771. SimpleSelector0: function SimpleSelector0() {
  30772. },
  30773. SimpleSelector_isSuperselector_closure0: function SimpleSelector_isSuperselector_closure0(t0) {
  30774. this.$this = t0;
  30775. },
  30776. SimpleSelector_isSuperselector__closure0: function SimpleSelector_isSuperselector__closure0(t0) {
  30777. this.$this = t0;
  30778. },
  30779. SingleUnitSassNumber0: function SingleUnitSassNumber0(t0, t1, t2) {
  30780. var _ = this;
  30781. _._single_unit$_unit = t0;
  30782. _._number1$_value = t1;
  30783. _.hashCache = null;
  30784. _.asSlash = t2;
  30785. },
  30786. SingleUnitSassNumber__coerceToUnit_closure0: function SingleUnitSassNumber__coerceToUnit_closure0(t0, t1) {
  30787. this.$this = t0;
  30788. this.unit = t1;
  30789. },
  30790. SingleUnitSassNumber__coerceValueToUnit_closure0: function SingleUnitSassNumber__coerceValueToUnit_closure0(t0) {
  30791. this.$this = t0;
  30792. },
  30793. SingleUnitSassNumber_multiplyUnits_closure1: function SingleUnitSassNumber_multiplyUnits_closure1(t0, t1) {
  30794. this._box_0 = t0;
  30795. this.$this = t1;
  30796. },
  30797. SingleUnitSassNumber_multiplyUnits_closure2: function SingleUnitSassNumber_multiplyUnits_closure2(t0, t1) {
  30798. this._box_0 = t0;
  30799. this.$this = t1;
  30800. },
  30801. SourceInterpolationVisitor: function SourceInterpolationVisitor(t0) {
  30802. this.buffer = t0;
  30803. },
  30804. SourceMapBuffer0: function SourceMapBuffer0(t0, t1) {
  30805. var _ = this;
  30806. _._source_map_buffer0$_buffer = t0;
  30807. _._source_map_buffer0$_entries = t1;
  30808. _._source_map_buffer0$_column = _._source_map_buffer0$_line = 0;
  30809. _._source_map_buffer0$_inSpan = false;
  30810. },
  30811. SourceMapBuffer_buildSourceMap_closure0: function SourceMapBuffer_buildSourceMap_closure0(t0, t1) {
  30812. this._box_0 = t0;
  30813. this.prefixLength = t1;
  30814. },
  30815. updateSourceSpanPrototype() {
  30816. var t3, t4, _i, t5,
  30817. span = A.SourceFile$fromString("", null).span$1(0, 0),
  30818. t1 = type$.SourceSpan,
  30819. t2 = type$.String;
  30820. for (t1 = [span, new A.MultiSpan0(span, "", A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_empty(t1, t2), t1, t2)), new A.LazyFileSpan0(new A.updateSourceSpanPrototype_closure(span))], t3 = type$.JSClass, t4 = type$.Function, _i = 0; _i < 3; ++_i) {
  30821. t5 = t3._as(t1[_i].constructor);
  30822. A.LinkedHashMap_LinkedHashMap$_literal(["start", new A.updateSourceSpanPrototype_closure0(), "end", new A.updateSourceSpanPrototype_closure1(), "url", new A.updateSourceSpanPrototype_closure2(), "text", new A.updateSourceSpanPrototype_closure3(), "context", new A.updateSourceSpanPrototype_closure4()], t2, t4).forEach$1(0, A.JSClassExtension_get_defineGetter(t5));
  30823. }
  30824. t1 = t3._as(A.FileLocation$_(span.file, span._file$_start).constructor);
  30825. A.LinkedHashMap_LinkedHashMap$_literal(["line", new A.updateSourceSpanPrototype_closure5(), "column", new A.updateSourceSpanPrototype_closure6()], t2, t4).forEach$1(0, A.JSClassExtension_get_defineGetter(t1));
  30826. },
  30827. updateSourceSpanPrototype_closure: function updateSourceSpanPrototype_closure(t0) {
  30828. this.span = t0;
  30829. },
  30830. updateSourceSpanPrototype_closure0: function updateSourceSpanPrototype_closure0() {
  30831. },
  30832. updateSourceSpanPrototype_closure1: function updateSourceSpanPrototype_closure1() {
  30833. },
  30834. updateSourceSpanPrototype_closure2: function updateSourceSpanPrototype_closure2() {
  30835. },
  30836. updateSourceSpanPrototype__closure: function updateSourceSpanPrototype__closure() {
  30837. },
  30838. updateSourceSpanPrototype_closure3: function updateSourceSpanPrototype_closure3() {
  30839. },
  30840. updateSourceSpanPrototype_closure4: function updateSourceSpanPrototype_closure4() {
  30841. },
  30842. updateSourceSpanPrototype_closure5: function updateSourceSpanPrototype_closure5() {
  30843. },
  30844. updateSourceSpanPrototype_closure6: function updateSourceSpanPrototype_closure6() {
  30845. },
  30846. ColorSpace_fromName0($name, argumentName) {
  30847. var t1,
  30848. _0_0 = $name.toLowerCase();
  30849. $label0$0: {
  30850. if ("rgb" === _0_0) {
  30851. t1 = B.RgbColorSpace_mlz0;
  30852. break $label0$0;
  30853. }
  30854. if ("hwb" === _0_0) {
  30855. t1 = B.HwbColorSpace_06z0;
  30856. break $label0$0;
  30857. }
  30858. if ("hsl" === _0_0) {
  30859. t1 = B.HslColorSpace_gsm0;
  30860. break $label0$0;
  30861. }
  30862. if ("srgb" === _0_0) {
  30863. t1 = B.SrgbColorSpace_AD40;
  30864. break $label0$0;
  30865. }
  30866. if ("srgb-linear" === _0_0) {
  30867. t1 = B.SrgbLinearColorSpace_sEs0;
  30868. break $label0$0;
  30869. }
  30870. if ("display-p3" === _0_0) {
  30871. t1 = B.DisplayP3ColorSpace_NQk0;
  30872. break $label0$0;
  30873. }
  30874. if ("a98-rgb" === _0_0) {
  30875. t1 = B.A98RgbColorSpace_bdu0;
  30876. break $label0$0;
  30877. }
  30878. if ("prophoto-rgb" === _0_0) {
  30879. t1 = B.ProphotoRgbColorSpace_KiG0;
  30880. break $label0$0;
  30881. }
  30882. if ("rec2020" === _0_0) {
  30883. t1 = B.Rec2020ColorSpace_2jN0;
  30884. break $label0$0;
  30885. }
  30886. if ("xyz" === _0_0 || "xyz-d65" === _0_0) {
  30887. t1 = B.XyzD65ColorSpace_4CA0;
  30888. break $label0$0;
  30889. }
  30890. if ("xyz-d50" === _0_0) {
  30891. t1 = B.XyzD50ColorSpace_2No0;
  30892. break $label0$0;
  30893. }
  30894. if ("lab" === _0_0) {
  30895. t1 = B.LabColorSpace_IF20;
  30896. break $label0$0;
  30897. }
  30898. if ("lch" === _0_0) {
  30899. t1 = B.LchColorSpace_wv80;
  30900. break $label0$0;
  30901. }
  30902. if ("oklab" === _0_0) {
  30903. t1 = B.OklabColorSpace_yrt0;
  30904. break $label0$0;
  30905. }
  30906. if ("oklch" === _0_0) {
  30907. t1 = B.OklchColorSpace_li80;
  30908. break $label0$0;
  30909. }
  30910. t1 = A.throwExpression(A.SassScriptException$0('Unknown color space "' + $name + '".', argumentName));
  30911. }
  30912. return t1;
  30913. },
  30914. ColorSpace0: function ColorSpace0() {
  30915. },
  30916. SrgbColorSpace0: function SrgbColorSpace0(t0, t1) {
  30917. this.name = t0;
  30918. this._space$_channels = t1;
  30919. },
  30920. SrgbLinearColorSpace0: function SrgbLinearColorSpace0(t0, t1) {
  30921. this.name = t0;
  30922. this._space$_channels = t1;
  30923. },
  30924. Statement0: function Statement0() {
  30925. },
  30926. JSStatementVisitor: function JSStatementVisitor(t0) {
  30927. this._statement$_inner = t0;
  30928. },
  30929. JSStatementVisitorObject: function JSStatementVisitorObject() {
  30930. },
  30931. StatementSearchVisitor0: function StatementSearchVisitor0() {
  30932. },
  30933. StatementSearchVisitor_visitIfRule_closure1: function StatementSearchVisitor_visitIfRule_closure1(t0) {
  30934. this.$this = t0;
  30935. },
  30936. StatementSearchVisitor_visitIfRule__closure2: function StatementSearchVisitor_visitIfRule__closure2(t0) {
  30937. this.$this = t0;
  30938. },
  30939. StatementSearchVisitor_visitIfRule_closure2: function StatementSearchVisitor_visitIfRule_closure2(t0) {
  30940. this.$this = t0;
  30941. },
  30942. StatementSearchVisitor_visitIfRule__closure1: function StatementSearchVisitor_visitIfRule__closure1(t0) {
  30943. this.$this = t0;
  30944. },
  30945. StatementSearchVisitor_visitChildren_closure0: function StatementSearchVisitor_visitChildren_closure0(t0) {
  30946. this.$this = t0;
  30947. },
  30948. StaticImport0: function StaticImport0(t0, t1, t2) {
  30949. this.url = t0;
  30950. this.modifiers = t1;
  30951. this.span = t2;
  30952. },
  30953. StderrLogger0: function StderrLogger0(t0) {
  30954. this.color = t0;
  30955. },
  30956. StringExpression_quoteText0(text) {
  30957. var t1,
  30958. quote = A.StringExpression__bestQuote0(A._setArrayType([text], type$.JSArray_String)),
  30959. buffer = new A.StringBuffer("");
  30960. buffer._contents = "" + A.Primitives_stringFromCharCode(quote);
  30961. A.StringExpression__quoteInnerText0(text, quote, buffer, true);
  30962. t1 = A.Primitives_stringFromCharCode(quote);
  30963. t1 = buffer._contents += t1;
  30964. return t1.charCodeAt(0) == 0 ? t1 : t1;
  30965. },
  30966. StringExpression__quoteInnerText0(text, quote, buffer, $static) {
  30967. var t1, t2, i, _1_0, _0_0, t3, t4, t5, t0;
  30968. for (t1 = text.length, t2 = t1 - 1, i = 0; i < t1; ++i) {
  30969. _1_0 = text.charCodeAt(i);
  30970. if (_1_0 === 10 || _1_0 === 13 || _1_0 === 12) {
  30971. buffer.writeCharCode$1(92);
  30972. buffer.writeCharCode$1(97);
  30973. if (i !== t2) {
  30974. _0_0 = text.charCodeAt(i + 1);
  30975. t3 = true;
  30976. if (!(_0_0 === 32 || _0_0 === 9 || _0_0 === 10 || _0_0 === 13 || _0_0 === 12))
  30977. if (!(_0_0 >= 48 && _0_0 <= 57))
  30978. if (!(_0_0 >= 97 && _0_0 <= 102))
  30979. t3 = _0_0 >= 65 && _0_0 <= 70;
  30980. if (t3)
  30981. buffer.writeCharCode$1(32);
  30982. }
  30983. continue;
  30984. }
  30985. t3 = 92 === _1_0;
  30986. if (t3)
  30987. t4 = _1_0;
  30988. else
  30989. t4 = null;
  30990. if (!t3) {
  30991. t3 = false;
  30992. t5 = _1_0 === quote;
  30993. if (t5)
  30994. t4 = _1_0;
  30995. if (!t5)
  30996. if (35 === _1_0)
  30997. if ($static)
  30998. if (i < t2) {
  30999. t3 = text.charCodeAt(i + 1) === 123;
  31000. if (t3)
  31001. t4 = _1_0;
  31002. t0 = t4;
  31003. t4 = t3;
  31004. t3 = t0;
  31005. } else {
  31006. t0 = t4;
  31007. t4 = t3;
  31008. t3 = t0;
  31009. }
  31010. else {
  31011. t0 = t4;
  31012. t4 = t3;
  31013. t3 = t0;
  31014. }
  31015. else {
  31016. t0 = t4;
  31017. t4 = t3;
  31018. t3 = t0;
  31019. }
  31020. else {
  31021. t3 = t4;
  31022. t4 = true;
  31023. }
  31024. } else {
  31025. t3 = t4;
  31026. t4 = true;
  31027. }
  31028. if (t4) {
  31029. buffer.writeCharCode$1(92);
  31030. buffer.writeCharCode$1(t3);
  31031. continue;
  31032. }
  31033. buffer.writeCharCode$1(_1_0);
  31034. }
  31035. },
  31036. StringExpression__bestQuote0(strings) {
  31037. var t1, t2, t3, containsDoubleQuote, t4, t5;
  31038. for (t1 = J.get$iterator$ax(strings), t2 = type$.CodeUnits, t3 = t2._eval$1("ListIterator<ListBase.E>"), t2 = t2._eval$1("ListBase.E"), containsDoubleQuote = false; t1.moveNext$0();)
  31039. for (t4 = new A.CodeUnits(t1.get$current(t1)), t4 = new A.ListIterator(t4, t4.get$length(0), t3); t4.moveNext$0();) {
  31040. t5 = t4.__internal$_current;
  31041. if (t5 == null)
  31042. t5 = t2._as(t5);
  31043. if (t5 === 39)
  31044. return 34;
  31045. if (t5 === 34)
  31046. containsDoubleQuote = true;
  31047. }
  31048. return containsDoubleQuote ? 39 : 34;
  31049. },
  31050. StringExpression0: function StringExpression0(t0, t1) {
  31051. this.text = t0;
  31052. this.hasQuotes = t1;
  31053. },
  31054. _codepointForIndex0(index, lengthInCodepoints, allowNegative) {
  31055. var result;
  31056. if (index === 0)
  31057. return 0;
  31058. if (index > 0)
  31059. return Math.min(index - 1, lengthInCodepoints);
  31060. result = lengthInCodepoints + index;
  31061. if (result < 0 && !allowNegative)
  31062. return 0;
  31063. return result;
  31064. },
  31065. _function7($name, $arguments, callback) {
  31066. return A.BuiltInCallable$function0($name, $arguments, callback, "sass:string");
  31067. },
  31068. module_closure25: function module_closure25() {
  31069. },
  31070. module__closure3: function module__closure3(t0) {
  31071. this.string = t0;
  31072. },
  31073. module__closure4: function module__closure4(t0) {
  31074. this.string = t0;
  31075. },
  31076. _unquote_closure0: function _unquote_closure0() {
  31077. },
  31078. _quote_closure0: function _quote_closure0() {
  31079. },
  31080. _length_closure1: function _length_closure1() {
  31081. },
  31082. _insert_closure0: function _insert_closure0() {
  31083. },
  31084. _index_closure1: function _index_closure1() {
  31085. },
  31086. _slice_closure0: function _slice_closure0() {
  31087. },
  31088. _toUpperCase_closure0: function _toUpperCase_closure0() {
  31089. },
  31090. _toLowerCase_closure0: function _toLowerCase_closure0() {
  31091. },
  31092. _uniqueId_closure0: function _uniqueId_closure0() {
  31093. },
  31094. StringExtension_toCssIdentifier(_this) {
  31095. var t1, doubleDash, _2_0, character, _3_0,
  31096. _s52_ = "The U+0000 can't be represented as a CSS identifier.",
  31097. _s65_ = "An individual surrogate can't be represented as a CSS identifier.",
  31098. buffer = new A.StringBuffer(""),
  31099. scanner = A.SpanScanner$(_this, null),
  31100. writeEscape = new A.StringExtension_toCssIdentifier_writeEscape(buffer, scanner),
  31101. consumeSurrogatePair = new A.StringExtension_toCssIdentifier_consumeSurrogatePair(scanner, writeEscape, buffer);
  31102. if (scanner.scanChar$1(45)) {
  31103. if (scanner._string_scanner$_position === scanner.string.length)
  31104. return "\\2d";
  31105. t1 = A.Primitives_stringFromCharCode(45);
  31106. buffer._contents += t1;
  31107. doubleDash = scanner.scanChar$1(45);
  31108. if (doubleDash) {
  31109. t1 = A.Primitives_stringFromCharCode(45);
  31110. buffer._contents += t1;
  31111. }
  31112. } else
  31113. doubleDash = false;
  31114. if (!doubleDash)
  31115. $label0$0: {
  31116. _2_0 = scanner.peekChar$0();
  31117. if (_2_0 == null)
  31118. scanner.error$1(0, "The empty string can't be represented as a CSS identifier.");
  31119. if (0 === _2_0)
  31120. scanner.error$1(0, _s52_);
  31121. if (A._isInt(_2_0)) {
  31122. t1 = _2_0 >>> 10 === 54;
  31123. character = _2_0;
  31124. } else {
  31125. character = null;
  31126. t1 = false;
  31127. }
  31128. if (t1) {
  31129. consumeSurrogatePair.call$1(character);
  31130. break $label0$0;
  31131. }
  31132. if (_2_0 >>> 10 === 55)
  31133. scanner.error$2$length(0, _s65_, 1);
  31134. if (_2_0 === 95 || A.CharacterExtension_get_isAlphabetic0(_2_0) || _2_0 >= 128)
  31135. t1 = !(_2_0 >= 57344 && _2_0 <= 63743);
  31136. else
  31137. t1 = false;
  31138. if (t1) {
  31139. t1 = A.Primitives_stringFromCharCode(scanner.readChar$0());
  31140. buffer._contents += t1;
  31141. break $label0$0;
  31142. }
  31143. writeEscape.call$1(scanner.readChar$0());
  31144. }
  31145. for (; true;) {
  31146. _3_0 = scanner.peekChar$0();
  31147. if (_3_0 == null)
  31148. break;
  31149. if (0 === _3_0)
  31150. scanner.error$1(0, _s52_);
  31151. t1 = _3_0 >>> 10 === 54;
  31152. if (t1) {
  31153. consumeSurrogatePair.call$1(_3_0);
  31154. continue;
  31155. }
  31156. if (_3_0 >>> 10 === 55)
  31157. scanner.error$2$length(0, _s65_, 1);
  31158. if (_3_0 !== 95) {
  31159. if (!(_3_0 >= 97 && _3_0 <= 122))
  31160. t1 = _3_0 >= 65 && _3_0 <= 90;
  31161. else
  31162. t1 = true;
  31163. t1 = t1 || _3_0 >= 128;
  31164. } else
  31165. t1 = true;
  31166. if (!t1)
  31167. t1 = _3_0 >= 48 && _3_0 <= 57 || _3_0 === 45;
  31168. else
  31169. t1 = true;
  31170. if (t1)
  31171. t1 = !(_3_0 >= 57344 && _3_0 <= 63743);
  31172. else
  31173. t1 = false;
  31174. if (t1) {
  31175. t1 = A.Primitives_stringFromCharCode(scanner.readChar$0());
  31176. buffer._contents += t1;
  31177. continue;
  31178. }
  31179. writeEscape.call$1(scanner.readChar$0());
  31180. }
  31181. t1 = buffer._contents;
  31182. return t1.charCodeAt(0) == 0 ? t1 : t1;
  31183. },
  31184. StringExtension_toCssIdentifier_writeEscape: function StringExtension_toCssIdentifier_writeEscape(t0, t1) {
  31185. this.buffer = t0;
  31186. this.scanner = t1;
  31187. },
  31188. StringExtension_toCssIdentifier_consumeSurrogatePair: function StringExtension_toCssIdentifier_consumeSurrogatePair(t0, t1, t2) {
  31189. this.scanner = t0;
  31190. this.writeEscape = t1;
  31191. this.buffer = t2;
  31192. },
  31193. stringClass_closure: function stringClass_closure() {
  31194. },
  31195. stringClass__closure: function stringClass__closure() {
  31196. },
  31197. stringClass__closure0: function stringClass__closure0() {
  31198. },
  31199. stringClass__closure1: function stringClass__closure1() {
  31200. },
  31201. stringClass__closure2: function stringClass__closure2() {
  31202. },
  31203. stringClass__closure3: function stringClass__closure3() {
  31204. },
  31205. _ConstructorOptions1: function _ConstructorOptions1() {
  31206. },
  31207. _NodeSassString: function _NodeSassString() {
  31208. },
  31209. legacyStringClass_closure: function legacyStringClass_closure() {
  31210. },
  31211. legacyStringClass_closure0: function legacyStringClass_closure0() {
  31212. },
  31213. legacyStringClass_closure1: function legacyStringClass_closure1() {
  31214. },
  31215. SassString$0(_text, quotes) {
  31216. return new A.SassString0(_text, quotes);
  31217. },
  31218. SassString0: function SassString0(t0, t1) {
  31219. var _ = this;
  31220. _._string0$_text = t0;
  31221. _._string0$_hasQuotes = t1;
  31222. _._string0$__SassString__sassLength_FI = $;
  31223. _._string0$_hashCache = null;
  31224. },
  31225. ModifiableCssStyleRule$0(_selector, span, fromPlainCss, originalSelector) {
  31226. var t1 = A._setArrayType([], type$.JSArray_ModifiableCssNode_2);
  31227. return new A.ModifiableCssStyleRule0(_selector, originalSelector, span, fromPlainCss, new A.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode_2), t1);
  31228. },
  31229. ModifiableCssStyleRule0: function ModifiableCssStyleRule0(t0, t1, t2, t3, t4, t5) {
  31230. var _ = this;
  31231. _._style_rule0$_selector = t0;
  31232. _.originalSelector = t1;
  31233. _.span = t2;
  31234. _.fromPlainCss = t3;
  31235. _.children = t4;
  31236. _._node$_children = t5;
  31237. _._node$_indexInParent = _._node$_parent = null;
  31238. _.isGroupEnd = false;
  31239. },
  31240. StyleRule$0(selector, children, span) {
  31241. var t1 = A.List_List$unmodifiable(children, type$.Statement_2),
  31242. t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure0());
  31243. return new A.StyleRule0(selector, span, t1, t2);
  31244. },
  31245. StyleRule0: function StyleRule0(t0, t1, t2, t3) {
  31246. var _ = this;
  31247. _.selector = t0;
  31248. _.span = t1;
  31249. _.children = t2;
  31250. _.hasDeclarations = t3;
  31251. },
  31252. CssStylesheet0: function CssStylesheet0(t0, t1) {
  31253. this.children = t0;
  31254. this.span = t1;
  31255. },
  31256. ModifiableCssStylesheet$0(span) {
  31257. var t1 = A._setArrayType([], type$.JSArray_ModifiableCssNode_2);
  31258. return new A.ModifiableCssStylesheet0(span, new A.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode_2), t1);
  31259. },
  31260. ModifiableCssStylesheet0: function ModifiableCssStylesheet0(t0, t1, t2) {
  31261. var _ = this;
  31262. _.span = t0;
  31263. _.children = t1;
  31264. _._node$_children = t2;
  31265. _._node$_indexInParent = _._node$_parent = null;
  31266. _.isGroupEnd = false;
  31267. },
  31268. StylesheetParser0: function StylesheetParser0() {
  31269. },
  31270. StylesheetParser_parse_closure0: function StylesheetParser_parse_closure0(t0) {
  31271. this.$this = t0;
  31272. },
  31273. StylesheetParser_parse__closure1: function StylesheetParser_parse__closure1(t0) {
  31274. this.$this = t0;
  31275. },
  31276. StylesheetParser_parse__closure2: function StylesheetParser_parse__closure2() {
  31277. },
  31278. StylesheetParser_parseArgumentDeclaration_closure0: function StylesheetParser_parseArgumentDeclaration_closure0(t0) {
  31279. this.$this = t0;
  31280. },
  31281. StylesheetParser__parseSingleProduction_closure0: function StylesheetParser__parseSingleProduction_closure0(t0, t1, t2) {
  31282. this.$this = t0;
  31283. this.production = t1;
  31284. this.T = t2;
  31285. },
  31286. StylesheetParser_parseSignature_closure: function StylesheetParser_parseSignature_closure(t0, t1) {
  31287. this.$this = t0;
  31288. this.requireParens = t1;
  31289. },
  31290. StylesheetParser__statement_closure0: function StylesheetParser__statement_closure0(t0) {
  31291. this.$this = t0;
  31292. },
  31293. StylesheetParser_variableDeclarationWithoutNamespace_closure1: function StylesheetParser_variableDeclarationWithoutNamespace_closure1(t0, t1) {
  31294. this.$this = t0;
  31295. this.start = t1;
  31296. },
  31297. StylesheetParser_variableDeclarationWithoutNamespace_closure2: function StylesheetParser_variableDeclarationWithoutNamespace_closure2(t0) {
  31298. this.declaration = t0;
  31299. },
  31300. StylesheetParser__styleRule_closure0: function StylesheetParser__styleRule_closure0(t0, t1, t2, t3) {
  31301. var _ = this;
  31302. _._box_0 = t0;
  31303. _.$this = t1;
  31304. _.wasInStyleRule = t2;
  31305. _.start = t3;
  31306. },
  31307. StylesheetParser__tryDeclarationChildren_closure0: function StylesheetParser__tryDeclarationChildren_closure0(t0, t1) {
  31308. this.name = t0;
  31309. this.value = t1;
  31310. },
  31311. StylesheetParser__atRootRule_closure1: function StylesheetParser__atRootRule_closure1(t0) {
  31312. this.query = t0;
  31313. },
  31314. StylesheetParser__atRootRule_closure2: function StylesheetParser__atRootRule_closure2() {
  31315. },
  31316. StylesheetParser__eachRule_closure0: function StylesheetParser__eachRule_closure0(t0, t1, t2, t3) {
  31317. var _ = this;
  31318. _.$this = t0;
  31319. _.wasInControlDirective = t1;
  31320. _.variables = t2;
  31321. _.list = t3;
  31322. },
  31323. StylesheetParser__functionRule_closure0: function StylesheetParser__functionRule_closure0(t0, t1, t2) {
  31324. this.name = t0;
  31325. this.$arguments = t1;
  31326. this.precedingComment = t2;
  31327. },
  31328. StylesheetParser__forRule_closure1: function StylesheetParser__forRule_closure1(t0, t1) {
  31329. this._box_0 = t0;
  31330. this.$this = t1;
  31331. },
  31332. StylesheetParser__forRule_closure2: function StylesheetParser__forRule_closure2(t0, t1, t2, t3, t4, t5) {
  31333. var _ = this;
  31334. _._box_0 = t0;
  31335. _.$this = t1;
  31336. _.wasInControlDirective = t2;
  31337. _.variable = t3;
  31338. _.from = t4;
  31339. _.to = t5;
  31340. },
  31341. StylesheetParser__memberList_closure0: function StylesheetParser__memberList_closure0(t0, t1, t2) {
  31342. this.$this = t0;
  31343. this.variables = t1;
  31344. this.identifiers = t2;
  31345. },
  31346. StylesheetParser__includeRule_closure0: function StylesheetParser__includeRule_closure0(t0) {
  31347. this.contentArguments_ = t0;
  31348. },
  31349. StylesheetParser_mediaRule_closure0: function StylesheetParser_mediaRule_closure0(t0) {
  31350. this.query = t0;
  31351. },
  31352. StylesheetParser__mixinRule_closure0: function StylesheetParser__mixinRule_closure0(t0, t1, t2, t3) {
  31353. var _ = this;
  31354. _.$this = t0;
  31355. _.name = t1;
  31356. _.$arguments = t2;
  31357. _.precedingComment = t3;
  31358. },
  31359. StylesheetParser_mozDocumentRule_closure0: function StylesheetParser_mozDocumentRule_closure0(t0, t1, t2, t3) {
  31360. var _ = this;
  31361. _._box_0 = t0;
  31362. _.$this = t1;
  31363. _.name = t2;
  31364. _.value = t3;
  31365. },
  31366. StylesheetParser_supportsRule_closure0: function StylesheetParser_supportsRule_closure0(t0) {
  31367. this.condition = t0;
  31368. },
  31369. StylesheetParser__whileRule_closure0: function StylesheetParser__whileRule_closure0(t0, t1, t2) {
  31370. this.$this = t0;
  31371. this.wasInControlDirective = t1;
  31372. this.condition = t2;
  31373. },
  31374. StylesheetParser_unknownAtRule_closure0: function StylesheetParser_unknownAtRule_closure0(t0, t1) {
  31375. this._box_0 = t0;
  31376. this.name = t1;
  31377. },
  31378. StylesheetParser__expression_resetState0: function StylesheetParser__expression_resetState0(t0, t1, t2) {
  31379. this._box_0 = t0;
  31380. this.$this = t1;
  31381. this.start = t2;
  31382. },
  31383. StylesheetParser__expression_resolveOneOperation0: function StylesheetParser__expression_resolveOneOperation0(t0, t1) {
  31384. this._box_0 = t0;
  31385. this.$this = t1;
  31386. },
  31387. StylesheetParser__expression_resolveOperations0: function StylesheetParser__expression_resolveOperations0(t0, t1) {
  31388. this._box_0 = t0;
  31389. this.resolveOneOperation = t1;
  31390. },
  31391. StylesheetParser__expression_addSingleExpression0: function StylesheetParser__expression_addSingleExpression0(t0, t1, t2, t3) {
  31392. var _ = this;
  31393. _._box_0 = t0;
  31394. _.$this = t1;
  31395. _.resetState = t2;
  31396. _.resolveOperations = t3;
  31397. },
  31398. StylesheetParser__expression_addOperator0: function StylesheetParser__expression_addOperator0(t0, t1, t2) {
  31399. this._box_0 = t0;
  31400. this.$this = t1;
  31401. this.resolveOneOperation = t2;
  31402. },
  31403. StylesheetParser__expression_resolveSpaceExpressions0: function StylesheetParser__expression_resolveSpaceExpressions0(t0, t1, t2) {
  31404. this._box_0 = t0;
  31405. this.$this = t1;
  31406. this.resolveOperations = t2;
  31407. },
  31408. StylesheetParser_expressionUntilComma_closure0: function StylesheetParser_expressionUntilComma_closure0(t0) {
  31409. this.$this = t0;
  31410. },
  31411. StylesheetParser__isHexColor_closure0: function StylesheetParser__isHexColor_closure0() {
  31412. },
  31413. StylesheetParser__unicodeRange_closure1: function StylesheetParser__unicodeRange_closure1() {
  31414. },
  31415. StylesheetParser__unicodeRange_closure2: function StylesheetParser__unicodeRange_closure2() {
  31416. },
  31417. StylesheetParser_namespacedExpression_closure0: function StylesheetParser_namespacedExpression_closure0(t0, t1) {
  31418. this.$this = t0;
  31419. this.start = t1;
  31420. },
  31421. StylesheetParser_trySpecialFunction_closure0: function StylesheetParser_trySpecialFunction_closure0() {
  31422. },
  31423. StylesheetParser__expressionUntilComparison_closure0: function StylesheetParser__expressionUntilComparison_closure0(t0) {
  31424. this.$this = t0;
  31425. },
  31426. StylesheetParser__publicIdentifier_closure0: function StylesheetParser__publicIdentifier_closure0(t0, t1) {
  31427. this.$this = t0;
  31428. this.start = t1;
  31429. },
  31430. Stylesheet$internal0(children, span, parseTimeWarnings, plainCss) {
  31431. var t1 = A._setArrayType([], type$.JSArray_UseRule_2),
  31432. t2 = A._setArrayType([], type$.JSArray_ForwardRule_2),
  31433. t3 = A.List_List$unmodifiable(children, type$.Statement_2),
  31434. t4 = B.JSArray_methods.any$1(t3, new A.ParentStatement_closure0());
  31435. t1 = new A.Stylesheet0(span, plainCss, t1, t2, new A.UnmodifiableListView(parseTimeWarnings, type$.UnmodifiableListView_Record_3_nullable_Deprecation_deprecation_and_String_message_and_FileSpan_span_2), t3, t4);
  31436. t1.Stylesheet$internal$4$plainCss0(children, span, parseTimeWarnings, plainCss);
  31437. return t1;
  31438. },
  31439. Stylesheet_Stylesheet$parse0(contents, syntax, url) {
  31440. var error, stackTrace, url0, t1, exception, t2;
  31441. try {
  31442. switch (syntax) {
  31443. case B.Syntax_Sass_sass0:
  31444. t1 = new A.SassParser0(A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration_2), A._setArrayType([], type$.JSArray_Record_3_nullable_Deprecation_deprecation_and_String_message_and_FileSpan_span_2), A.SpanScanner$(contents, url), null).parse$0(0);
  31445. return t1;
  31446. case B.Syntax_SCSS_scss0:
  31447. t1 = A.ScssParser$0(contents, url).parse$0(0);
  31448. return t1;
  31449. case B.Syntax_CSS_css0:
  31450. t1 = new A.CssParser0(A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.VariableDeclaration_2), A._setArrayType([], type$.JSArray_Record_3_nullable_Deprecation_deprecation_and_String_message_and_FileSpan_span_2), A.SpanScanner$(contents, url), null).parse$0(0);
  31451. return t1;
  31452. }
  31453. } catch (exception) {
  31454. t1 = A.unwrapException(exception);
  31455. if (t1 instanceof A.SassException0) {
  31456. error = t1;
  31457. stackTrace = A.getTraceFromException(exception);
  31458. t1 = error;
  31459. t2 = J.getInterceptor$z(t1);
  31460. t1 = A.SourceSpanException.prototype.get$span.call(t2, t1);
  31461. url0 = t1.get$sourceUrl(t1);
  31462. if (url0 == null || J.toString$0$(url0) === "stdin")
  31463. throw exception;
  31464. t1 = type$.Uri;
  31465. throw A.wrapException(A.throwWithTrace0(error.withLoadedUrls$1(A.Set_Set$unmodifiable(A.LinkedHashSet_LinkedHashSet$_literal([url0], t1), t1)), error, stackTrace));
  31466. } else
  31467. throw exception;
  31468. }
  31469. },
  31470. Stylesheet0: function Stylesheet0(t0, t1, t2, t3, t4, t5, t6) {
  31471. var _ = this;
  31472. _.span = t0;
  31473. _.plainCss = t1;
  31474. _._stylesheet1$_uses = t2;
  31475. _._stylesheet1$_forwards = t3;
  31476. _.parseTimeWarnings = t4;
  31477. _.children = t5;
  31478. _.hasDeclarations = t6;
  31479. },
  31480. SupportsExpression0: function SupportsExpression0(t0) {
  31481. this.condition = t0;
  31482. },
  31483. ModifiableCssSupportsRule$0(condition, span) {
  31484. var t1 = A._setArrayType([], type$.JSArray_ModifiableCssNode_2);
  31485. return new A.ModifiableCssSupportsRule0(condition, span, new A.UnmodifiableListView(t1, type$.UnmodifiableListView_ModifiableCssNode_2), t1);
  31486. },
  31487. ModifiableCssSupportsRule0: function ModifiableCssSupportsRule0(t0, t1, t2, t3) {
  31488. var _ = this;
  31489. _.condition = t0;
  31490. _.span = t1;
  31491. _.children = t2;
  31492. _._node$_children = t3;
  31493. _._node$_indexInParent = _._node$_parent = null;
  31494. _.isGroupEnd = false;
  31495. },
  31496. SupportsRule$0(condition, children, span) {
  31497. var t1 = A.List_List$unmodifiable(children, type$.Statement_2),
  31498. t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure0());
  31499. return new A.SupportsRule0(condition, span, t1, t2);
  31500. },
  31501. SupportsRule0: function SupportsRule0(t0, t1, t2, t3) {
  31502. var _ = this;
  31503. _.condition = t0;
  31504. _.span = t1;
  31505. _.children = t2;
  31506. _.hasDeclarations = t3;
  31507. },
  31508. JSToDartImporter: function JSToDartImporter(t0, t1, t2) {
  31509. this._sync$_canonicalize = t0;
  31510. this._sync$_load = t1;
  31511. this._sync$_nonCanonicalSchemes = t2;
  31512. },
  31513. JSToDartImporter_canonicalize_closure: function JSToDartImporter_canonicalize_closure(t0, t1) {
  31514. this.$this = t0;
  31515. this.url = t1;
  31516. },
  31517. JSToDartImporter_load_closure: function JSToDartImporter_load_closure(t0, t1) {
  31518. this.$this = t0;
  31519. this.url = t1;
  31520. },
  31521. Syntax_forPath0(path) {
  31522. var t1,
  31523. _0_0 = A.ParsedPath_ParsedPath$parse(path, $.$get$context().style)._splitExtension$1(1)[1];
  31524. $label0$0: {
  31525. if (".sass" === _0_0) {
  31526. t1 = B.Syntax_Sass_sass0;
  31527. break $label0$0;
  31528. }
  31529. if (".css" === _0_0) {
  31530. t1 = B.Syntax_CSS_css0;
  31531. break $label0$0;
  31532. }
  31533. t1 = B.Syntax_SCSS_scss0;
  31534. break $label0$0;
  31535. }
  31536. return t1;
  31537. },
  31538. Syntax0: function Syntax0(t0, t1) {
  31539. this._syntax0$_name = t0;
  31540. this._name = t1;
  31541. },
  31542. TypeSelector0: function TypeSelector0(t0, t1) {
  31543. this.name = t0;
  31544. this.span = t1;
  31545. },
  31546. Types: function Types() {
  31547. },
  31548. UnaryOperationExpression0: function UnaryOperationExpression0(t0, t1, t2) {
  31549. this.operator = t0;
  31550. this.operand = t1;
  31551. this.span = t2;
  31552. },
  31553. UnaryOperator0: function UnaryOperator0(t0, t1, t2) {
  31554. this.name = t0;
  31555. this.operator = t1;
  31556. this._name = t2;
  31557. },
  31558. UnitlessSassNumber0: function UnitlessSassNumber0(t0, t1) {
  31559. this._number1$_value = t0;
  31560. this.hashCache = null;
  31561. this.asSlash = t1;
  31562. },
  31563. UniversalSelector0: function UniversalSelector0(t0, t1) {
  31564. this.namespace = t0;
  31565. this.span = t1;
  31566. },
  31567. UnprefixedMapView0: function UnprefixedMapView0(t0, t1, t2) {
  31568. this._unprefixed_map_view0$_map = t0;
  31569. this._unprefixed_map_view0$_prefix = t1;
  31570. this.$ti = t2;
  31571. },
  31572. _UnprefixedKeys0: function _UnprefixedKeys0(t0) {
  31573. this._unprefixed_map_view0$_view = t0;
  31574. },
  31575. _UnprefixedKeys_iterator_closure1: function _UnprefixedKeys_iterator_closure1(t0) {
  31576. this.$this = t0;
  31577. },
  31578. _UnprefixedKeys_iterator_closure2: function _UnprefixedKeys_iterator_closure2(t0) {
  31579. this.$this = t0;
  31580. },
  31581. JSUrl0: function JSUrl0() {
  31582. },
  31583. UseRule0: function UseRule0(t0, t1, t2, t3) {
  31584. var _ = this;
  31585. _.url = t0;
  31586. _.namespace = t1;
  31587. _.configuration = t2;
  31588. _.span = t3;
  31589. },
  31590. UserDefinedCallable0: function UserDefinedCallable0(t0, t1, t2, t3) {
  31591. var _ = this;
  31592. _.declaration = t0;
  31593. _.environment = t1;
  31594. _.inDependency = t2;
  31595. _.$ti = t3;
  31596. },
  31597. fromImport0() {
  31598. var t1 = type$.nullable_CanonicalizeContext_2._as($.Zone__current.$index(0, B.Symbol__canonicalizeContext));
  31599. t1 = t1 == null ? null : t1._canonicalize_context$_fromImport;
  31600. return t1 === true;
  31601. },
  31602. canonicalizeContext0() {
  31603. var t1,
  31604. _0_0 = $.Zone__current.$index(0, B.Symbol__canonicalizeContext);
  31605. $label0$0: {
  31606. if (_0_0 == null)
  31607. A.throwExpression(A.StateError$(string$.canoni));
  31608. if (_0_0 instanceof A.CanonicalizeContext0) {
  31609. t1 = _0_0;
  31610. break $label0$0;
  31611. }
  31612. t1 = A.throwExpression(A.StateError$(string$.Unexpe + A.S(_0_0) + "."));
  31613. }
  31614. return t1;
  31615. },
  31616. inImportRule(callback, $T) {
  31617. var t1,
  31618. _0_0 = $.Zone__current.$index(0, B.Symbol__canonicalizeContext);
  31619. $label0$0: {
  31620. if (_0_0 == null) {
  31621. t1 = type$.nullable_Object;
  31622. t1 = A.runZoned(callback, A.LinkedHashMap_LinkedHashMap$_literal([B.Symbol__canonicalizeContext, new A.CanonicalizeContext0(true, null)], t1, t1), $T);
  31623. break $label0$0;
  31624. }
  31625. if (_0_0 instanceof A.CanonicalizeContext0) {
  31626. t1 = _0_0.withFromImport$2(true, callback);
  31627. break $label0$0;
  31628. }
  31629. t1 = A.throwExpression(A.StateError$(string$.Unexpe + A.S(_0_0) + "."));
  31630. }
  31631. return t1;
  31632. },
  31633. resolveImportPath0(path) {
  31634. var t1,
  31635. extension = A.ParsedPath_ParsedPath$parse(path, $.$get$context().style)._splitExtension$1(1)[1];
  31636. if (extension === ".sass" || extension === ".scss" || extension === ".css") {
  31637. t1 = A.fromImport0() ? new A.resolveImportPath_closure1(path, extension).call$0() : null;
  31638. return t1 == null ? A._exactlyOne0(A._tryPath0(path)) : t1;
  31639. }
  31640. t1 = A.fromImport0() ? new A.resolveImportPath_closure2(path).call$0() : null;
  31641. if (t1 == null)
  31642. t1 = A._exactlyOne0(A._tryPathWithExtensions0(path));
  31643. return t1 == null ? A._tryPathAsDirectory0(path) : t1;
  31644. },
  31645. _tryPathWithExtensions0(path) {
  31646. var result = A._tryPath0(path + ".sass");
  31647. B.JSArray_methods.addAll$1(result, A._tryPath0(path + ".scss"));
  31648. return result.length !== 0 ? result : A._tryPath0(path + ".css");
  31649. },
  31650. _tryPath0(path) {
  31651. var t1 = $.$get$context(),
  31652. partial = A.join(t1.dirname$1(path), "_" + A.ParsedPath_ParsedPath$parse(path, t1.style).get$basename(), null);
  31653. t1 = A._setArrayType([], type$.JSArray_String);
  31654. if (A.fileExists0(partial))
  31655. t1.push(partial);
  31656. if (A.fileExists0(path))
  31657. t1.push(path);
  31658. return t1;
  31659. },
  31660. _tryPathAsDirectory0(path) {
  31661. var t1;
  31662. if (!A.dirExists0(path))
  31663. return null;
  31664. t1 = A.fromImport0() ? new A._tryPathAsDirectory_closure0(path).call$0() : null;
  31665. return t1 == null ? A._exactlyOne0(A._tryPathWithExtensions0(A.join(path, "index", null))) : t1;
  31666. },
  31667. _exactlyOne0(paths) {
  31668. var _0_1, t1, path;
  31669. $label0$0: {
  31670. _0_1 = paths.length;
  31671. if (_0_1 <= 0) {
  31672. t1 = null;
  31673. break $label0$0;
  31674. }
  31675. if (_0_1 === 1) {
  31676. path = paths[0];
  31677. t1 = path;
  31678. break $label0$0;
  31679. }
  31680. t1 = A.throwExpression(string$.It_s_n + B.JSArray_methods.map$1$1(paths, new A._exactlyOne_closure0(), type$.String).join$1(0, "\n"));
  31681. }
  31682. return t1;
  31683. },
  31684. resolveImportPath_closure1: function resolveImportPath_closure1(t0, t1) {
  31685. this.path = t0;
  31686. this.extension = t1;
  31687. },
  31688. resolveImportPath_closure2: function resolveImportPath_closure2(t0) {
  31689. this.path = t0;
  31690. },
  31691. _tryPathAsDirectory_closure0: function _tryPathAsDirectory_closure0(t0) {
  31692. this.path = t0;
  31693. },
  31694. _exactlyOne_closure0: function _exactlyOne_closure0() {
  31695. },
  31696. jsThrow(error) {
  31697. return type$.Never._as($.$get$_jsThrow().call$1(error));
  31698. },
  31699. attachJsStack(error, trace) {
  31700. var traceString = trace.toString$0(0),
  31701. firstRealLine = B.JSString_methods.indexOf$1(traceString, "\n at");
  31702. if (firstRealLine !== -1)
  31703. traceString = B.JSString_methods.substring$1(traceString, firstRealLine + 1);
  31704. error.stack = "Error: " + A.S(J.get$message$x(error)) + "\n" + traceString;
  31705. },
  31706. jsForEach(object, callback) {
  31707. var t1, t2;
  31708. for (t1 = J.get$iterator$ax(self.Object.keys(object)); t1.moveNext$0();) {
  31709. t2 = t1.get$current(t1);
  31710. callback.call$2(t2, object[t2]);
  31711. }
  31712. },
  31713. jsType(value) {
  31714. var typeOf = A._asString(new self.Function("value", "return typeof value").call$1(value));
  31715. return typeOf !== "object" ? typeOf : A._asString(new self.Function("value", ' if (value && value.constructor && value.constructor.name) {\n return value.constructor.name;\n }\n return "object";\n ').call$1(value));
  31716. },
  31717. defineGetter(object, $name, get, value) {
  31718. self.Object.defineProperty(object, $name, get == null ? {value: value, enumerable: false} : {get: A.allowInteropCaptureThis(get), enumerable: false});
  31719. },
  31720. allowInteropNamed($name, $function) {
  31721. $function = A.allowInterop($function);
  31722. A.defineGetter($function, "name", null, $name);
  31723. A._hideDartProperties($function);
  31724. return $function;
  31725. },
  31726. allowInteropCaptureThisNamed($name, $function) {
  31727. $function = A.allowInteropCaptureThis($function);
  31728. A.defineGetter($function, "name", null, $name);
  31729. A._hideDartProperties($function);
  31730. return $function;
  31731. },
  31732. _hideDartProperties(object) {
  31733. var t1, t2, t3, t4;
  31734. for (t1 = J.cast$1$0$ax(self.Object.getOwnPropertyNames(object), type$.String), t2 = A._instanceType(t1), t1 = new A.ListIterator(t1, t1.get$length(t1), t2._eval$1("ListIterator<ListBase.E>")), t2 = t2._eval$1("ListBase.E"); t1.moveNext$0();) {
  31735. t3 = t1.__internal$_current;
  31736. if (t3 == null)
  31737. t3 = t2._as(t3);
  31738. if (B.JSString_methods.startsWith$1(t3, "_")) {
  31739. t4 = {value: object[t3], enumerable: false};
  31740. self.Object.defineProperty(object, t3, t4);
  31741. }
  31742. }
  31743. },
  31744. futureToPromise0(future) {
  31745. return new self.Promise(A.allowInterop(new A.futureToPromise_closure0(future)));
  31746. },
  31747. jsToDartUrl(url) {
  31748. return A.Uri_parse(J.toString$0$(url));
  31749. },
  31750. dartToJSUrl(url) {
  31751. return new self.URL(url.toString$0(0));
  31752. },
  31753. toJSArray(iterable) {
  31754. var t1, t2,
  31755. array = new self.Array();
  31756. for (t1 = J.get$iterator$ax(iterable), t2 = J.getInterceptor$x(array); t1.moveNext$0();)
  31757. t2.push$1(array, t1.get$current(t1));
  31758. return array;
  31759. },
  31760. objectToMap(object) {
  31761. var map = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.nullable_Object);
  31762. A.jsForEach(object, new A.objectToMap_closure(map));
  31763. return map;
  31764. },
  31765. jsToDartSeparator(separator) {
  31766. var t1;
  31767. $label0$0: {
  31768. if (" " === separator) {
  31769. t1 = B.ListSeparator_nbm0;
  31770. break $label0$0;
  31771. }
  31772. if ("," === separator) {
  31773. t1 = B.ListSeparator_ECn0;
  31774. break $label0$0;
  31775. }
  31776. if ("/" === separator) {
  31777. t1 = B.ListSeparator_cQA0;
  31778. break $label0$0;
  31779. }
  31780. if (separator == null) {
  31781. t1 = B.ListSeparator_undecided_null_undecided0;
  31782. break $label0$0;
  31783. }
  31784. t1 = A.jsThrow(new self.Error('Unknown separator "' + separator + '".'));
  31785. }
  31786. return t1;
  31787. },
  31788. parseSyntax(syntax) {
  31789. var t1;
  31790. $label0$0: {
  31791. if (syntax == null || "scss" === syntax) {
  31792. t1 = B.Syntax_SCSS_scss0;
  31793. break $label0$0;
  31794. }
  31795. if ("indented" === syntax) {
  31796. t1 = B.Syntax_Sass_sass0;
  31797. break $label0$0;
  31798. }
  31799. if ("css" === syntax) {
  31800. t1 = B.Syntax_CSS_css0;
  31801. break $label0$0;
  31802. }
  31803. t1 = A.jsThrow(new self.Error('Unknown syntax "' + A.S(syntax) + '".'));
  31804. }
  31805. return t1;
  31806. },
  31807. entrypointFilename() {
  31808. var _1_0, _1_5_isSet, _1_5, t2, path,
  31809. t1 = self.require.main,
  31810. _0_0 = t1 == null ? null : J.get$filename$x(t1);
  31811. if (_0_0 != null)
  31812. return _0_0;
  31813. else {
  31814. _1_0 = J.get$argv$x(self.process);
  31815. t1 = J.getInterceptor$asx(_1_0);
  31816. _1_5_isSet = t1.get$length(_1_0) >= 2;
  31817. if (_1_5_isSet) {
  31818. _1_5 = t1.$index(_1_0, 1);
  31819. t2 = typeof _1_5 == "string";
  31820. } else {
  31821. _1_5 = null;
  31822. t2 = false;
  31823. }
  31824. if (t2) {
  31825. path = A._asString(_1_5_isSet ? _1_5 : t1.$index(_1_0, 1));
  31826. return J.resolve$1$x(J.createRequire$1$x(self.nodeModule, path), path);
  31827. } else
  31828. return null;
  31829. }
  31830. },
  31831. _PropertyDescriptor0: function _PropertyDescriptor0() {
  31832. },
  31833. futureToPromise_closure0: function futureToPromise_closure0(t0) {
  31834. this.future = t0;
  31835. },
  31836. futureToPromise__closure0: function futureToPromise__closure0(t0) {
  31837. this.resolve = t0;
  31838. },
  31839. futureToPromise__closure1: function futureToPromise__closure1(t0) {
  31840. this.reject = t0;
  31841. },
  31842. objectToMap_closure: function objectToMap_closure(t0) {
  31843. this.map = t0;
  31844. },
  31845. _RequireMain0: function _RequireMain0() {
  31846. },
  31847. toSentence0(iter, conjunction) {
  31848. if (iter.get$length(iter) === 1)
  31849. return J.toString$0$(iter.get$first(iter));
  31850. return A.IterableExtension_get_exceptLast0(iter).join$1(0, ", ") + (" " + conjunction + " " + A.S(iter.get$last(iter)));
  31851. },
  31852. indent0(string, indentation) {
  31853. return new A.MappedListIterable(A._setArrayType(string.split("\n"), type$.JSArray_String), new A.indent_closure0(indentation), type$.MappedListIterable_String_String).join$1(0, "\n");
  31854. },
  31855. pluralize0($name, number, plural) {
  31856. if (number === 1)
  31857. return $name;
  31858. if (plural != null)
  31859. return plural;
  31860. return $name + "s";
  31861. },
  31862. trimAscii0(string, excludeEscape) {
  31863. var t1,
  31864. start = A._firstNonWhitespace0(string);
  31865. if (start == null)
  31866. t1 = "";
  31867. else {
  31868. t1 = A._lastNonWhitespace0(string, true);
  31869. t1.toString;
  31870. t1 = B.JSString_methods.substring$2(string, start, t1 + 1);
  31871. }
  31872. return t1;
  31873. },
  31874. trimAsciiRight0(string, excludeEscape) {
  31875. var end = A._lastNonWhitespace0(string, excludeEscape);
  31876. return end == null ? "" : B.JSString_methods.substring$2(string, 0, end + 1);
  31877. },
  31878. _firstNonWhitespace0(string) {
  31879. var t1, i, t2;
  31880. for (t1 = string.length, i = 0; i < t1; ++i) {
  31881. t2 = string.charCodeAt(i);
  31882. if (!(t2 === 32 || t2 === 9 || t2 === 10 || t2 === 13 || t2 === 12))
  31883. return i;
  31884. }
  31885. return null;
  31886. },
  31887. _lastNonWhitespace0(string, excludeEscape) {
  31888. var i, i0, codeUnit;
  31889. for (i = string.length - 1, i0 = i; i0 >= 0; --i0) {
  31890. codeUnit = string.charCodeAt(i0);
  31891. if (!(codeUnit === 32 || codeUnit === 9 || codeUnit === 10 || codeUnit === 13 || codeUnit === 12))
  31892. if (excludeEscape && i0 !== 0 && i0 !== i && codeUnit === 92)
  31893. return i0 + 1;
  31894. else
  31895. return i0;
  31896. }
  31897. return null;
  31898. },
  31899. isPublic0(member) {
  31900. var start = member.charCodeAt(0);
  31901. return start !== 45 && start !== 95;
  31902. },
  31903. flattenVertically0(iterable, $T) {
  31904. var result,
  31905. t1 = iterable.$ti._eval$1("@<ListIterable.E>")._bind$1($T._eval$1("QueueList<0>"))._eval$1("MappedListIterable<1,2>"),
  31906. queues = A.List_List$of(new A.MappedListIterable(iterable, new A.flattenVertically_closure1($T), t1), true, t1._eval$1("ListIterable.E"));
  31907. if (queues.length === 1)
  31908. return B.JSArray_methods.get$first(queues);
  31909. result = A._setArrayType([], $T._eval$1("JSArray<0>"));
  31910. for (; queues.length !== 0;) {
  31911. if (!!queues.fixed$length)
  31912. A.throwExpression(A.UnsupportedError$("removeWhere"));
  31913. B.JSArray_methods._removeWhere$2(queues, new A.flattenVertically_closure2(result, $T), true);
  31914. }
  31915. return result;
  31916. },
  31917. codepointIndexToCodeUnitIndex0(string, codepointIndex) {
  31918. var codeUnitIndex, i, codeUnitIndex0;
  31919. for (codeUnitIndex = 0, i = 0; i < codepointIndex; ++i) {
  31920. codeUnitIndex0 = codeUnitIndex + 1;
  31921. codeUnitIndex = string.charCodeAt(codeUnitIndex) >>> 10 === 54 ? codeUnitIndex0 + 1 : codeUnitIndex0;
  31922. }
  31923. return codeUnitIndex;
  31924. },
  31925. codeUnitIndexToCodepointIndex0(string, codeUnitIndex) {
  31926. var codepointIndex, i;
  31927. for (codepointIndex = 0, i = 0; i < codeUnitIndex; i = (string.charCodeAt(i) >>> 10 === 54 ? i + 1 : i) + 1)
  31928. ++codepointIndex;
  31929. return codepointIndex;
  31930. },
  31931. frameForSpan0(span, member, url) {
  31932. var t2, t3,
  31933. t1 = url == null ? span.get$sourceUrl(span) : url;
  31934. if (t1 == null)
  31935. t1 = $.$get$_noSourceUrl0();
  31936. t2 = span.get$start(span);
  31937. t2 = t2.file.getLine$1(t2.offset);
  31938. t3 = span.get$start(span);
  31939. return new A.Frame(t1, t2 + 1, t3.file.getColumn$1(t3.offset) + 1, member);
  31940. },
  31941. declarationName0(span) {
  31942. var text = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(span.file._decodedChars, span._file$_start, span._end), 0, null);
  31943. return A.trimAsciiRight0(B.JSString_methods.substring$2(text, 0, B.JSString_methods.indexOf$1(text, ":")), false);
  31944. },
  31945. unvendor0($name) {
  31946. var i,
  31947. t1 = $name.length;
  31948. if (t1 < 2)
  31949. return $name;
  31950. if ($name.charCodeAt(0) !== 45)
  31951. return $name;
  31952. if ($name.charCodeAt(1) === 45)
  31953. return $name;
  31954. for (i = 2; i < t1; ++i)
  31955. if ($name.charCodeAt(i) === 45)
  31956. return B.JSString_methods.substring$1($name, i + 1);
  31957. return $name;
  31958. },
  31959. equalsIgnoreCase0(string1, string2) {
  31960. var t1, i;
  31961. if (string1 === string2)
  31962. return true;
  31963. if (string1 == null)
  31964. return false;
  31965. t1 = string1.length;
  31966. if (t1 !== string2.length)
  31967. return false;
  31968. for (i = 0; i < t1; ++i)
  31969. if (!A.characterEqualsIgnoreCase0(string1.charCodeAt(i), string2.charCodeAt(i)))
  31970. return false;
  31971. return true;
  31972. },
  31973. startsWithIgnoreCase0(string, prefix) {
  31974. var i,
  31975. t1 = prefix.length;
  31976. if (string.length < t1)
  31977. return false;
  31978. for (i = 0; i < t1; ++i)
  31979. if (!A.characterEqualsIgnoreCase0(string.charCodeAt(i), prefix.charCodeAt(i)))
  31980. return false;
  31981. return true;
  31982. },
  31983. mapInPlace0(list, $function) {
  31984. var i;
  31985. for (i = 0; i < list.length; ++i)
  31986. list[i] = $function.call$1(list[i]);
  31987. },
  31988. longestCommonSubsequence0(list1, list2, select, $T) {
  31989. var t1, _i, selections, i, i0, j, selection, j0,
  31990. _length = list1.get$length(0) + 1,
  31991. lengths = J.JSArray_JSArray$allocateFixed(_length, type$.List_int);
  31992. for (t1 = type$.int, _i = 0; _i < _length; ++_i)
  31993. lengths[_i] = A.List_List$filled(((list2._queue_list$_tail - list2._queue_list$_head & J.get$length$asx(list2._queue_list$_table) - 1) >>> 0) + 1, 0, false, t1);
  31994. _length = list1.get$length(0);
  31995. selections = J.JSArray_JSArray$allocateFixed(_length, $T._eval$1("List<0?>"));
  31996. for (t1 = $T._eval$1("0?"), _i = 0; _i < _length; ++_i)
  31997. selections[_i] = A.List_List$filled((list2._queue_list$_tail - list2._queue_list$_head & J.get$length$asx(list2._queue_list$_table) - 1) >>> 0, null, false, t1);
  31998. for (i = 0; i < (list1._queue_list$_tail - list1._queue_list$_head & J.get$length$asx(list1._queue_list$_table) - 1) >>> 0; i = i0)
  31999. for (i0 = i + 1, j = 0; j < (list2._queue_list$_tail - list2._queue_list$_head & J.get$length$asx(list2._queue_list$_table) - 1) >>> 0; j = j0) {
  32000. selection = select.call$2(list1.$index(0, i), list2.$index(0, j));
  32001. selections[i][j] = selection;
  32002. t1 = lengths[i0];
  32003. j0 = j + 1;
  32004. t1[j0] = selection == null ? Math.max(t1[j], lengths[i][j0]) : lengths[i][j] + 1;
  32005. }
  32006. return new A.longestCommonSubsequence_backtrack0(selections, lengths, $T).call$2(list1.get$length(0) - 1, list2.get$length(0) - 1);
  32007. },
  32008. removeFirstWhere0(list, test, orElse) {
  32009. var i;
  32010. for (i = 0; i < list.length; ++i) {
  32011. if (!test.call$1(list[i]))
  32012. continue;
  32013. B.JSArray_methods.removeAt$1(list, i);
  32014. return;
  32015. }
  32016. orElse.call$0();
  32017. },
  32018. mapAddAll20(destination, source, K1, K2, $V) {
  32019. source.forEach$1(0, new A.mapAddAll2_closure0(destination, K1, K2, $V));
  32020. },
  32021. setAll0(map, keys, value) {
  32022. var t1;
  32023. for (t1 = J.get$iterator$ax(keys); t1.moveNext$0();)
  32024. map.$indexSet(0, t1.get$current(t1), value);
  32025. },
  32026. rotateSlice0(list, start, end) {
  32027. var i, next,
  32028. element = list.$index(0, end - 1);
  32029. for (i = start; i < end; ++i, element = next) {
  32030. next = list.$index(0, i);
  32031. list.$indexSet(0, i, element);
  32032. }
  32033. },
  32034. mapAsync0(iterable, callback, $E, $F) {
  32035. return A.mapAsync$body0(iterable, callback, $E, $F, $F._eval$1("Iterable<0>"));
  32036. },
  32037. mapAsync$body0(iterable, callback, $E, $F, $async$type) {
  32038. var $async$goto = 0,
  32039. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  32040. $async$returnValue, t2, _i, t1, $async$temp1;
  32041. var $async$mapAsync0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  32042. if ($async$errorCode === 1)
  32043. return A._asyncRethrow($async$result, $async$completer);
  32044. while (true)
  32045. switch ($async$goto) {
  32046. case 0:
  32047. // Function start
  32048. t1 = A._setArrayType([], $F._eval$1("JSArray<0>"));
  32049. t2 = iterable.length, _i = 0;
  32050. case 3:
  32051. // for condition
  32052. if (!(_i < t2)) {
  32053. // goto after for
  32054. $async$goto = 5;
  32055. break;
  32056. }
  32057. $async$temp1 = t1;
  32058. $async$goto = 6;
  32059. return A._asyncAwait(callback.call$1(iterable[_i]), $async$mapAsync0);
  32060. case 6:
  32061. // returning from await.
  32062. $async$temp1.push($async$result);
  32063. case 4:
  32064. // for update
  32065. ++_i;
  32066. // goto for condition
  32067. $async$goto = 3;
  32068. break;
  32069. case 5:
  32070. // after for
  32071. $async$returnValue = t1;
  32072. // goto return
  32073. $async$goto = 1;
  32074. break;
  32075. case 1:
  32076. // return
  32077. return A._asyncReturn($async$returnValue, $async$completer);
  32078. }
  32079. });
  32080. return A._asyncStartSync($async$mapAsync0, $async$completer);
  32081. },
  32082. putIfAbsentAsync0(map, key, ifAbsent, $K, $V) {
  32083. return A.putIfAbsentAsync$body0(map, key, ifAbsent, $K, $V, $V);
  32084. },
  32085. putIfAbsentAsync$body0(map, key, ifAbsent, $K, $V, $async$type) {
  32086. var $async$goto = 0,
  32087. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  32088. $async$returnValue, t1, value;
  32089. var $async$putIfAbsentAsync0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  32090. if ($async$errorCode === 1)
  32091. return A._asyncRethrow($async$result, $async$completer);
  32092. while (true)
  32093. switch ($async$goto) {
  32094. case 0:
  32095. // Function start
  32096. if (map.containsKey$1(key)) {
  32097. t1 = map.$index(0, key);
  32098. $async$returnValue = t1 == null ? $V._as(t1) : t1;
  32099. // goto return
  32100. $async$goto = 1;
  32101. break;
  32102. }
  32103. $async$goto = 3;
  32104. return A._asyncAwait(ifAbsent.call$0(), $async$putIfAbsentAsync0);
  32105. case 3:
  32106. // returning from await.
  32107. value = $async$result;
  32108. map.$indexSet(0, key, value);
  32109. $async$returnValue = value;
  32110. // goto return
  32111. $async$goto = 1;
  32112. break;
  32113. case 1:
  32114. // return
  32115. return A._asyncReturn($async$returnValue, $async$completer);
  32116. }
  32117. });
  32118. return A._asyncStartSync($async$putIfAbsentAsync0, $async$completer);
  32119. },
  32120. copyMapOfMap0(map, K1, K2, $V) {
  32121. var t3, key, child,
  32122. t1 = K2._eval$1("@<0>")._bind$1($V)._eval$1("Map<1,2>"),
  32123. t2 = A.LinkedHashMap_LinkedHashMap$_empty(K1, t1);
  32124. for (t1 = A.MapExtensions_get_pairs0(map, K1, t1), t1 = t1.get$iterator(t1); t1.moveNext$0();) {
  32125. t3 = t1.get$current(t1);
  32126. key = t3._0;
  32127. child = t3._1;
  32128. t3 = A.LinkedHashMap_LinkedHashMap(null, null, null, K2, $V);
  32129. t3.addAll$1(0, child);
  32130. t2.$indexSet(0, key, t3);
  32131. }
  32132. return t2;
  32133. },
  32134. copyMapOfList0(map, $K, $E) {
  32135. var t3,
  32136. t1 = $E._eval$1("List<0>"),
  32137. t2 = A.LinkedHashMap_LinkedHashMap$_empty($K, t1);
  32138. for (t1 = A.MapExtensions_get_pairs0(map, $K, t1), t1 = t1.get$iterator(t1); t1.moveNext$0();) {
  32139. t3 = t1.get$current(t1);
  32140. t2.$indexSet(0, t3._0, J.toList$0$ax(t3._1));
  32141. }
  32142. return t2;
  32143. },
  32144. consumeEscapedCharacter0(scanner) {
  32145. var _1_0, value, i, next, t1;
  32146. scanner.expectChar$1(92);
  32147. _1_0 = scanner.peekChar$0();
  32148. if (_1_0 == null)
  32149. return 65533;
  32150. if (_1_0 === 10 || _1_0 === 13 || _1_0 === 12)
  32151. scanner.error$1(0, "Expected escape sequence.");
  32152. if (A.CharacterExtension_get_isHex0(_1_0)) {
  32153. for (value = 0, i = 0; i < 6; ++i) {
  32154. next = scanner.peekChar$0();
  32155. if (next != null) {
  32156. t1 = true;
  32157. if (!(next >= 48 && next <= 57))
  32158. if (!(next >= 97 && next <= 102))
  32159. t1 = next >= 65 && next <= 70;
  32160. t1 = !t1;
  32161. } else
  32162. t1 = true;
  32163. if (t1)
  32164. break;
  32165. value = (value << 4 >>> 0) + A.asHex0(scanner.readChar$0());
  32166. }
  32167. t1 = scanner.peekChar$0();
  32168. if (t1 === 32 || t1 === 9 || t1 === 10 || t1 === 13 || t1 === 12)
  32169. scanner.readChar$0();
  32170. $label0$1: {
  32171. if (0 !== value)
  32172. t1 = value >= 55296 && value <= 57343 || value >= 1114111;
  32173. else
  32174. t1 = true;
  32175. if (t1) {
  32176. t1 = 65533;
  32177. break $label0$1;
  32178. }
  32179. t1 = value;
  32180. break $label0$1;
  32181. }
  32182. return t1;
  32183. }
  32184. return scanner.readChar$0();
  32185. },
  32186. throwWithTrace0(error, originalError, trace) {
  32187. var t1 = A.getTrace0(originalError);
  32188. A.attachTrace0(error, t1 == null ? trace : t1);
  32189. throw A.wrapException(error);
  32190. },
  32191. attachTrace0(error, trace) {
  32192. var t1;
  32193. if (typeof error == "string" || typeof error == "number" || A._isBool(error))
  32194. return;
  32195. if (trace.toString$0(0).length === 0)
  32196. return;
  32197. t1 = $.$get$_traces0();
  32198. A.Expando__checkType(error);
  32199. if (t1._jsWeakMap.get(error) == null)
  32200. t1.$indexSet(0, error, trace);
  32201. },
  32202. getTrace0(error) {
  32203. var t1;
  32204. if (typeof error == "string" || typeof error == "number" || A._isBool(error))
  32205. t1 = null;
  32206. else {
  32207. t1 = $.$get$_traces0();
  32208. A.Expando__checkType(error);
  32209. t1 = t1._jsWeakMap.get(error);
  32210. }
  32211. return t1;
  32212. },
  32213. parseSignature(signature, requireParens) {
  32214. var error, stackTrace, t1, exception, t2;
  32215. try {
  32216. t1 = A.ScssParser$0(signature, null).parseSignature$1$requireParens(requireParens);
  32217. return t1;
  32218. } catch (exception) {
  32219. t1 = A.unwrapException(exception);
  32220. if (type$.SassFormatException_2._is(t1)) {
  32221. error = t1;
  32222. stackTrace = A.getTraceFromException(exception);
  32223. t1 = error._span_exception$_message;
  32224. t2 = J.get$span$z(error);
  32225. A.throwWithTrace0(new A.SassFormatException0(B.Set_empty, 'Invalid signature "' + signature + '": ' + t1, t2), error, stackTrace);
  32226. } else
  32227. throw exception;
  32228. }
  32229. },
  32230. indent_closure0: function indent_closure0(t0) {
  32231. this.indentation = t0;
  32232. },
  32233. flattenVertically_closure1: function flattenVertically_closure1(t0) {
  32234. this.T = t0;
  32235. },
  32236. flattenVertically_closure2: function flattenVertically_closure2(t0, t1) {
  32237. this.result = t0;
  32238. this.T = t1;
  32239. },
  32240. longestCommonSubsequence_backtrack0: function longestCommonSubsequence_backtrack0(t0, t1, t2) {
  32241. this.selections = t0;
  32242. this.lengths = t1;
  32243. this.T = t2;
  32244. },
  32245. mapAddAll2_closure0: function mapAddAll2_closure0(t0, t1, t2, t3) {
  32246. var _ = this;
  32247. _.destination = t0;
  32248. _.K1 = t1;
  32249. _.K2 = t2;
  32250. _.V = t3;
  32251. },
  32252. CssValue0: function CssValue0(t0, t1, t2) {
  32253. this.value = t0;
  32254. this.span = t1;
  32255. this.$ti = t2;
  32256. },
  32257. ValueExpression0: function ValueExpression0(t0, t1) {
  32258. this.value = t0;
  32259. this.span = t1;
  32260. },
  32261. valueClass_closure: function valueClass_closure() {
  32262. },
  32263. valueClass__closure: function valueClass__closure() {
  32264. },
  32265. valueClass__closure0: function valueClass__closure0() {
  32266. },
  32267. valueClass__closure1: function valueClass__closure1() {
  32268. },
  32269. valueClass__closure2: function valueClass__closure2() {
  32270. },
  32271. valueClass__closure3: function valueClass__closure3() {
  32272. },
  32273. valueClass__closure4: function valueClass__closure4() {
  32274. },
  32275. valueClass__closure5: function valueClass__closure5() {
  32276. },
  32277. valueClass__closure6: function valueClass__closure6() {
  32278. },
  32279. valueClass__closure7: function valueClass__closure7() {
  32280. },
  32281. valueClass__closure8: function valueClass__closure8() {
  32282. },
  32283. valueClass__closure9: function valueClass__closure9() {
  32284. },
  32285. valueClass__closure10: function valueClass__closure10() {
  32286. },
  32287. valueClass__closure11: function valueClass__closure11() {
  32288. },
  32289. valueClass__closure12: function valueClass__closure12() {
  32290. },
  32291. valueClass__closure13: function valueClass__closure13() {
  32292. },
  32293. valueClass__closure14: function valueClass__closure14() {
  32294. },
  32295. valueClass__closure15: function valueClass__closure15() {
  32296. },
  32297. valueClass__closure16: function valueClass__closure16() {
  32298. },
  32299. valueClass__closure17: function valueClass__closure17() {
  32300. },
  32301. valueClass__closure18: function valueClass__closure18() {
  32302. },
  32303. SassApiValue_assertSelector0(_this, allowParent, $name) {
  32304. var error, stackTrace, t1, exception,
  32305. string = _this._value$_selectorString$1($name);
  32306. try {
  32307. t1 = A.SelectorList_SelectorList$parse0(string, allowParent, null, false);
  32308. return t1;
  32309. } catch (exception) {
  32310. t1 = A.unwrapException(exception);
  32311. if (type$.SassFormatException_2._is(t1)) {
  32312. error = t1;
  32313. stackTrace = A.getTraceFromException(exception);
  32314. t1 = B.JSString_methods.replaceFirst$2(J.toString$0$(error), "Error: ", "");
  32315. A.throwWithTrace0(new A.SassScriptException0($name == null ? t1 : "$" + $name + ": " + t1), error, stackTrace);
  32316. } else
  32317. throw exception;
  32318. }
  32319. },
  32320. SassApiValue_assertCompoundSelector0(_this, $name) {
  32321. var error, stackTrace, t1, exception,
  32322. allowParent = false,
  32323. string = _this._value$_selectorString$1($name);
  32324. try {
  32325. t1 = new A.SelectorParser0(allowParent, false, A.SpanScanner$(string, null), null).parseCompoundSelector$0();
  32326. return t1;
  32327. } catch (exception) {
  32328. t1 = A.unwrapException(exception);
  32329. if (type$.SassFormatException_2._is(t1)) {
  32330. error = t1;
  32331. stackTrace = A.getTraceFromException(exception);
  32332. t1 = B.JSString_methods.replaceFirst$2(J.toString$0$(error), "Error: ", "");
  32333. A.throwWithTrace0(new A.SassScriptException0("$" + $name + ": " + t1), error, stackTrace);
  32334. } else
  32335. throw exception;
  32336. }
  32337. },
  32338. Value0: function Value0() {
  32339. },
  32340. VariableExpression0: function VariableExpression0(t0, t1, t2) {
  32341. this.namespace = t0;
  32342. this.name = t1;
  32343. this.span = t2;
  32344. },
  32345. VariableDeclaration$0($name, expression, span, comment, global, guarded, namespace) {
  32346. if (namespace != null && global)
  32347. A.throwExpression(A.ArgumentError$(string$.Other_, null));
  32348. return new A.VariableDeclaration0(namespace, $name, expression, guarded, global, span);
  32349. },
  32350. VariableDeclaration0: function VariableDeclaration0(t0, t1, t2, t3, t4, t5) {
  32351. var _ = this;
  32352. _.namespace = t0;
  32353. _.name = t1;
  32354. _.expression = t2;
  32355. _.isGuarded = t3;
  32356. _.isGlobal = t4;
  32357. _.span = t5;
  32358. },
  32359. WarnRule0: function WarnRule0(t0, t1) {
  32360. this.expression = t0;
  32361. this.span = t1;
  32362. },
  32363. WhileRule$0(condition, children, span) {
  32364. var t1 = A.List_List$unmodifiable(children, type$.Statement_2),
  32365. t2 = B.JSArray_methods.any$1(t1, new A.ParentStatement_closure0());
  32366. return new A.WhileRule0(condition, span, t1, t2);
  32367. },
  32368. WhileRule0: function WhileRule0(t0, t1, t2, t3) {
  32369. var _ = this;
  32370. _.condition = t0;
  32371. _.span = t1;
  32372. _.children = t2;
  32373. _.hasDeclarations = t3;
  32374. },
  32375. XyzD50ColorSpace0: function XyzD50ColorSpace0(t0, t1) {
  32376. this.name = t0;
  32377. this._space$_channels = t1;
  32378. },
  32379. XyzD65ColorSpace0: function XyzD65ColorSpace0(t0, t1) {
  32380. this.name = t0;
  32381. this._space$_channels = t1;
  32382. },
  32383. AsyncCallable_AsyncCallable$fromSignature(signature, callback, requireParens) {
  32384. var _0_0 = A.parseSignature(signature, requireParens);
  32385. return new A.AsyncBuiltInCallable0(_0_0._0, _0_0._1, callback, false);
  32386. },
  32387. Callable_Callable$fromSignature(signature, callback, requireParens) {
  32388. var _0_0 = A.parseSignature(signature, requireParens);
  32389. return new A.BuiltInCallable0(_0_0._0, A._setArrayType([new A._Record_2(_0_0._1, callback)], type$.JSArray_Record_2_ArgumentDeclaration_and_Value_Function_List_Value_2), false);
  32390. },
  32391. printString(string) {
  32392. if (typeof dartPrint == "function") {
  32393. dartPrint(string);
  32394. return;
  32395. }
  32396. if (typeof console == "object" && typeof console.log != "undefined") {
  32397. console.log(string);
  32398. return;
  32399. }
  32400. if (typeof print == "function") {
  32401. print(string);
  32402. return;
  32403. }
  32404. throw "Unable to print message: " + String(string);
  32405. },
  32406. mergeMaps(map1, map2, $K, $V) {
  32407. var result = A.LinkedHashMap_LinkedHashMap$of(map1, $K, $V);
  32408. result.addAll$1(0, map2);
  32409. return result;
  32410. },
  32411. groupBy(values, key, $S, $T) {
  32412. var t1, t2, _i, element, t3, t4,
  32413. map = A.LinkedHashMap_LinkedHashMap$_empty($T, $S._eval$1("List<0>"));
  32414. for (t1 = values.length, t2 = $S._eval$1("JSArray<0>"), _i = 0; _i < values.length; values.length === t1 || (0, A.throwConcurrentModificationError)(values), ++_i) {
  32415. element = values[_i];
  32416. t3 = key.call$1(element);
  32417. t4 = map.$index(0, t3);
  32418. if (t4 == null) {
  32419. t4 = A._setArrayType([], t2);
  32420. map.$indexSet(0, t3, t4);
  32421. t3 = t4;
  32422. } else
  32423. t3 = t4;
  32424. J.add$1$ax(t3, element);
  32425. }
  32426. return map;
  32427. },
  32428. minBy(values, orderBy) {
  32429. var t1, t2, minValue, minOrderBy, element, elementOrderBy;
  32430. for (t1 = values.$ti, t2 = new A.MappedIterator(J.get$iterator$ax(values.__internal$_iterable), values._f, t1._eval$1("MappedIterator<1,2>")), t1 = t1._rest[1], minValue = null, minOrderBy = null; t2.moveNext$0();) {
  32431. element = t2.__internal$_current;
  32432. if (element == null)
  32433. element = t1._as(element);
  32434. elementOrderBy = orderBy.call$1(element);
  32435. if (minOrderBy == null || A.defaultCompare(elementOrderBy, minOrderBy) < 0) {
  32436. minOrderBy = elementOrderBy;
  32437. minValue = element;
  32438. }
  32439. }
  32440. return minValue;
  32441. },
  32442. IterableExtension_firstWhereOrNull(_this, test) {
  32443. var t1, element;
  32444. for (t1 = J.get$iterator$ax(_this); t1.moveNext$0();) {
  32445. element = t1.get$current(t1);
  32446. if (test.call$1(element))
  32447. return element;
  32448. }
  32449. return null;
  32450. },
  32451. IterableExtension_get_firstOrNull(_this) {
  32452. var iterator = J.get$iterator$ax(_this);
  32453. if (iterator.moveNext$0())
  32454. return iterator.get$current(iterator);
  32455. return null;
  32456. },
  32457. IterableExtension_get_lastOrNull(_this) {
  32458. if (_this.get$length(0) === 0)
  32459. return null;
  32460. return _this.get$last(_this);
  32461. },
  32462. IterableExtension_get_singleOrNull(_this) {
  32463. var result,
  32464. iterator = J.get$iterator$ax(_this);
  32465. if (iterator.moveNext$0()) {
  32466. result = iterator.get$current(iterator);
  32467. if (!iterator.moveNext$0())
  32468. return result;
  32469. }
  32470. return null;
  32471. },
  32472. IterableIntegerExtension_get_maxOrNull(_this) {
  32473. var value, newValue,
  32474. iterator = _this.get$iterator(_this);
  32475. if (iterator.moveNext$0()) {
  32476. value = iterator.get$current(iterator);
  32477. for (; iterator.moveNext$0();) {
  32478. newValue = iterator.get$current(iterator);
  32479. if (newValue > value)
  32480. value = newValue;
  32481. }
  32482. return value;
  32483. }
  32484. return null;
  32485. },
  32486. IterableIntegerExtension_get_max(_this) {
  32487. var t1 = A.IterableIntegerExtension_get_maxOrNull(_this);
  32488. return t1 == null ? A.throwExpression(A.StateError$("No element")) : t1;
  32489. },
  32490. IterableIntegerExtension_get_sum(_this) {
  32491. var t1, t2, result, t3;
  32492. for (t1 = _this.$ti, t2 = new A.MappedIterator(J.get$iterator$ax(_this.__internal$_iterable), _this._f, t1._eval$1("MappedIterator<1,2>")), t1 = t1._rest[1], result = 0; t2.moveNext$0();) {
  32493. t3 = t2.__internal$_current;
  32494. result += t3 == null ? t1._as(t3) : t3;
  32495. }
  32496. return result;
  32497. },
  32498. ListExtensions_mapIndexed(_this, convert, $E, $R) {
  32499. return new A._SyncStarIterable(A.ListExtensions_mapIndexed$body(_this, convert, $E, $R), $R._eval$1("_SyncStarIterable<0>"));
  32500. },
  32501. ListExtensions_mapIndexed$body($async$_this, $async$convert, $async$$E, $async$$R) {
  32502. return function() {
  32503. var _this = $async$_this,
  32504. convert = $async$convert,
  32505. $E = $async$$E,
  32506. $R = $async$$R;
  32507. var $async$goto = 0, $async$handler = 1, $async$currentError, t1, index;
  32508. return function $async$ListExtensions_mapIndexed($async$iterator, $async$errorCode, $async$result) {
  32509. if ($async$errorCode === 1) {
  32510. $async$currentError = $async$result;
  32511. $async$goto = $async$handler;
  32512. }
  32513. while (true)
  32514. switch ($async$goto) {
  32515. case 0:
  32516. // Function start
  32517. t1 = _this.length, index = 0;
  32518. case 2:
  32519. // for condition
  32520. if (!(index < t1)) {
  32521. // goto after for
  32522. $async$goto = 4;
  32523. break;
  32524. }
  32525. $async$goto = 5;
  32526. return $async$iterator._async$_current = convert.call$2(index, _this[index]), 1;
  32527. case 5:
  32528. // after yield
  32529. case 3:
  32530. // for update
  32531. ++index;
  32532. // goto for condition
  32533. $async$goto = 2;
  32534. break;
  32535. case 4:
  32536. // after for
  32537. // implicit return
  32538. return 0;
  32539. case 1:
  32540. // rethrow
  32541. return $async$iterator._datum = $async$currentError, 3;
  32542. }
  32543. };
  32544. };
  32545. },
  32546. ListExtensions_elementAtOrNull(_this, index) {
  32547. var t1 = J.getInterceptor$asx(_this);
  32548. return index < t1.get$length(_this) ? t1.$index(_this, index) : null;
  32549. },
  32550. defaultCompare(value1, value2) {
  32551. return J.compareTo$1$ns(type$.Comparable_nullable_Object._as(value1), value2);
  32552. },
  32553. current() {
  32554. var exception, t1, path, lastIndex, uri = null;
  32555. try {
  32556. uri = A.Uri_base();
  32557. } catch (exception) {
  32558. if (type$.Exception._is(A.unwrapException(exception))) {
  32559. t1 = $._current;
  32560. if (t1 != null)
  32561. return t1;
  32562. throw exception;
  32563. } else
  32564. throw exception;
  32565. }
  32566. if (J.$eq$(uri, $._currentUriBase)) {
  32567. t1 = $._current;
  32568. t1.toString;
  32569. return t1;
  32570. }
  32571. $._currentUriBase = uri;
  32572. if ($.$get$Style_platform() === $.$get$Style_url())
  32573. t1 = $._current = J.resolve$1$x(uri, ".").toString$0(0);
  32574. else {
  32575. path = uri.toFilePath$0();
  32576. lastIndex = path.length - 1;
  32577. t1 = $._current = lastIndex === 0 ? path : B.JSString_methods.substring$2(path, 0, lastIndex);
  32578. }
  32579. return t1;
  32580. },
  32581. absolute(part1, part2, part3, part4, part5, part6, part7, part8, part9, part10, part11, part12, part13, part14, part15) {
  32582. return $.$get$context().absolute$15(part1, part2, part3, part4, part5, part6, part7, part8, part9, part10, part11, part12, part13, part14, part15);
  32583. },
  32584. join(part1, part2, part3) {
  32585. var _null = null;
  32586. return $.$get$context().join$16(0, part1, part2, part3, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null);
  32587. },
  32588. toUri(path) {
  32589. return $.$get$context().toUri$1(path);
  32590. },
  32591. prettyUri(uri) {
  32592. var t1 = $.$get$context();
  32593. uri.toString;
  32594. return t1.prettyUri$1(uri);
  32595. },
  32596. isAlphabetic(char) {
  32597. var t1;
  32598. if (!(char >= 65 && char <= 90))
  32599. t1 = char >= 97 && char <= 122;
  32600. else
  32601. t1 = true;
  32602. return t1;
  32603. },
  32604. driveLetterEnd(path, index) {
  32605. var t2, t3, _null = null,
  32606. t1 = path.length,
  32607. index0 = index + 2;
  32608. if (t1 < index0)
  32609. return _null;
  32610. if (!A.isAlphabetic(path.charCodeAt(index)))
  32611. return _null;
  32612. t2 = index + 1;
  32613. if (path.charCodeAt(t2) !== 58) {
  32614. t3 = index + 4;
  32615. if (t1 < t3)
  32616. return _null;
  32617. if (B.JSString_methods.substring$2(path, t2, t3).toLowerCase() !== "%3a")
  32618. return _null;
  32619. index = index0;
  32620. }
  32621. t2 = index + 2;
  32622. if (t1 === t2)
  32623. return t2;
  32624. if (path.charCodeAt(t2) !== 47)
  32625. return _null;
  32626. return index + 3;
  32627. },
  32628. main0(args) {
  32629. var $async$goto = 0,
  32630. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  32631. t1;
  32632. var $async$main0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  32633. if ($async$errorCode === 1)
  32634. return A._asyncRethrow($async$result, $async$completer);
  32635. while (true)
  32636. switch ($async$goto) {
  32637. case 0:
  32638. // Function start
  32639. A.printError("sass --embedded is unavailable in pure JS mode.");
  32640. t1 = A.isNodeJs() ? self.process : null;
  32641. if (t1 != null)
  32642. J.set$exitCode$x(t1, 1);
  32643. // implicit return
  32644. return A._asyncReturn(null, $async$completer);
  32645. }
  32646. });
  32647. return A._asyncStartSync($async$main0, $async$completer);
  32648. },
  32649. EvaluationContext_currentOrNull() {
  32650. var t1,
  32651. _0_0 = $.Zone__current.$index(0, B.Symbol__evaluationContext);
  32652. $label0$0: {
  32653. if (type$.EvaluationContext._is(_0_0)) {
  32654. t1 = _0_0;
  32655. break $label0$0;
  32656. }
  32657. t1 = null;
  32658. break $label0$0;
  32659. }
  32660. return t1;
  32661. },
  32662. warn(message) {
  32663. var t1,
  32664. _0_0 = A.EvaluationContext_currentOrNull();
  32665. $label0$0: {
  32666. if (_0_0 != null) {
  32667. t1 = _0_0.warn$2(0, message, null);
  32668. break $label0$0;
  32669. }
  32670. t1 = B.StderrLogger_false.warn$1(0, message);
  32671. break $label0$0;
  32672. }
  32673. return t1;
  32674. },
  32675. warnForDeprecation(message, deprecation) {
  32676. var t1,
  32677. _0_0 = A.EvaluationContext_currentOrNull();
  32678. $label0$0: {
  32679. if (_0_0 != null) {
  32680. t1 = _0_0.warn$2(0, message, deprecation);
  32681. break $label0$0;
  32682. }
  32683. t1 = A.WarnForDeprecation_warnForDeprecation(B.StderrLogger_false, deprecation, message, null, null);
  32684. break $label0$0;
  32685. }
  32686. return t1;
  32687. },
  32688. compileStylesheets(options, graph, sourcesToDestinations, ifModified) {
  32689. var $async$goto = 0,
  32690. $async$completer = A._makeAsyncAwaitCompleter(type$.bool),
  32691. $async$returnValue, t2, _1_4, source, t3, _i, t4, printedError, errorWithStackTrace, code, error, stackTrace, buffer, t1, $async$temp1;
  32692. var $async$compileStylesheets = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  32693. if ($async$errorCode === 1)
  32694. return A._asyncRethrow($async$result, $async$completer);
  32695. while (true)
  32696. switch ($async$goto) {
  32697. case 0:
  32698. // Function start
  32699. t1 = type$.nullable_String;
  32700. t1 = A.List_List$of(A.MapExtensions_get_pairs(sourcesToDestinations, t1, t1), true, type$.Record_2_nullable_String_and_nullable_String);
  32701. t2 = t1.length;
  32702. $async$goto = t2 === 1 ? 4 : 5;
  32703. break;
  32704. case 4:
  32705. // then
  32706. _1_4 = t1[0];
  32707. source = _1_4._0;
  32708. $async$temp1 = A;
  32709. $async$goto = 6;
  32710. return A._asyncAwait(A.compileStylesheet(options, graph, source, _1_4._1, ifModified), $async$compileStylesheets);
  32711. case 6:
  32712. // returning from await.
  32713. t1 = $async$temp1._setArrayType([$async$result], type$.JSArray_nullable_Record_3_int_and_String_and_nullable_String);
  32714. // goto break $label0$0
  32715. $async$goto = 3;
  32716. break;
  32717. case 5:
  32718. // join
  32719. t3 = A._setArrayType([], type$.JSArray_Future_nullable_Record_3_int_and_String_and_nullable_String);
  32720. for (_i = 0; _i < t2; ++_i) {
  32721. t4 = t1[_i];
  32722. t3.push(A.compileStylesheet(options, graph, t4._0, t4._1, ifModified));
  32723. }
  32724. $async$goto = 7;
  32725. return A._asyncAwait(A.Future_wait(t3, A._asBool(options._options.$index(0, "stop-on-error")), type$.nullable_Record_3_int_and_String_and_nullable_String), $async$compileStylesheets);
  32726. case 7:
  32727. // returning from await.
  32728. t1 = $async$result;
  32729. // goto break $label0$0
  32730. $async$goto = 3;
  32731. break;
  32732. case 3:
  32733. // break $label0$0
  32734. for (t1 = J.get$iterator$ax(t1), printedError = false; t1.moveNext$0();) {
  32735. errorWithStackTrace = t1.get$current(t1);
  32736. if (errorWithStackTrace == null)
  32737. continue;
  32738. code = errorWithStackTrace._0;
  32739. error = errorWithStackTrace._1;
  32740. stackTrace = errorWithStackTrace._2;
  32741. t2 = self.process;
  32742. if (t2 == null)
  32743. t2 = null;
  32744. else {
  32745. t2 = J.get$release$x(t2);
  32746. t2 = t2 == null ? null : J.get$name$x(t2);
  32747. }
  32748. t2 = J.$eq$(t2, "node") ? self.process : null;
  32749. t2 = t2 == null ? null : J.get$exitCode$x(t2);
  32750. if (t2 == null)
  32751. t2 = 0;
  32752. t2 = Math.max(t2, code);
  32753. t3 = self.process;
  32754. if (t3 == null)
  32755. t3 = null;
  32756. else {
  32757. t3 = J.get$release$x(t3);
  32758. t3 = t3 == null ? null : J.get$name$x(t3);
  32759. }
  32760. t3 = J.$eq$(t3, "node") ? self.process : null;
  32761. if (t3 != null)
  32762. J.set$exitCode$x(t3, t2);
  32763. buffer = new A.StringBuffer("");
  32764. t2 = (printedError ? buffer._contents = "" + "\n" : "") + error;
  32765. buffer._contents = t2;
  32766. if (stackTrace != null) {
  32767. t2 += "\n";
  32768. buffer._contents = t2;
  32769. t2 += "\n";
  32770. buffer._contents = t2;
  32771. buffer._contents = t2 + stackTrace;
  32772. }
  32773. A.printError(buffer);
  32774. printedError = true;
  32775. }
  32776. $async$returnValue = !printedError;
  32777. // goto return
  32778. $async$goto = 1;
  32779. break;
  32780. case 1:
  32781. // return
  32782. return A._asyncReturn($async$returnValue, $async$completer);
  32783. }
  32784. });
  32785. return A._asyncStartSync($async$compileStylesheets, $async$completer);
  32786. },
  32787. CharacterExtension_get_isAlphabetic(_this) {
  32788. var t1;
  32789. if (!(_this >= 97 && _this <= 122))
  32790. t1 = _this >= 65 && _this <= 90;
  32791. else
  32792. t1 = true;
  32793. return t1;
  32794. },
  32795. CharacterExtension_get_isHex(_this) {
  32796. var t1 = true;
  32797. if (!(_this >= 48 && _this <= 57))
  32798. if (!(_this >= 97 && _this <= 102))
  32799. t1 = _this >= 65 && _this <= 70;
  32800. return t1;
  32801. },
  32802. asHex(character) {
  32803. var t1;
  32804. $label0$0: {
  32805. if (character <= 57) {
  32806. t1 = character - 48;
  32807. break $label0$0;
  32808. }
  32809. if (character <= 70) {
  32810. t1 = 10 + character - 65;
  32811. break $label0$0;
  32812. }
  32813. t1 = 10 + character - 97;
  32814. break $label0$0;
  32815. }
  32816. return t1;
  32817. },
  32818. hexCharFor(number) {
  32819. return number < 10 ? 48 + number : 87 + number;
  32820. },
  32821. opposite(character) {
  32822. var t1;
  32823. $label0$0: {
  32824. if (40 === character) {
  32825. t1 = 41;
  32826. break $label0$0;
  32827. }
  32828. if (123 === character) {
  32829. t1 = 125;
  32830. break $label0$0;
  32831. }
  32832. if (91 === character) {
  32833. t1 = 93;
  32834. break $label0$0;
  32835. }
  32836. t1 = A.throwExpression(A.ArgumentError$('"' + A.String_String$fromCharCode(character) + "\" isn't a brace-like character.", null));
  32837. }
  32838. return t1;
  32839. },
  32840. characterEqualsIgnoreCase(character1, character2) {
  32841. var upperCase1;
  32842. if (character1 === character2)
  32843. return true;
  32844. if ((character1 ^ character2) >>> 0 !== 32)
  32845. return false;
  32846. upperCase1 = (character1 & 4294967263) >>> 0;
  32847. return upperCase1 >= 65 && upperCase1 <= 90;
  32848. },
  32849. IterableExtension_search(_this, callback) {
  32850. var t1, _0_0;
  32851. for (t1 = J.get$iterator$ax(_this); t1.moveNext$0();) {
  32852. _0_0 = callback.call$1(t1.get$current(t1));
  32853. if (_0_0 != null)
  32854. return _0_0;
  32855. }
  32856. return null;
  32857. },
  32858. IterableExtension_get_exceptLast(_this) {
  32859. var t1 = J.getInterceptor$asx(_this),
  32860. size = t1.get$length(_this) - 1;
  32861. if (size < 0)
  32862. throw A.wrapException(A.StateError$("Iterable may not be empty"));
  32863. return t1.take$1(_this, size);
  32864. },
  32865. NullableExtension_andThen(_this, fn) {
  32866. return _this == null ? null : fn.call$1(_this);
  32867. },
  32868. SetExtension_removeNull(_this, $T) {
  32869. _this.remove$1(0, null);
  32870. return A.Set_castFrom(_this, _this.get$_newSimilarSet(), A._instanceType(_this)._precomputed1, $T);
  32871. },
  32872. fuzzyEquals(number1, number2) {
  32873. var t1;
  32874. if (number1 === number2)
  32875. return true;
  32876. if (Math.abs(number1 - number2) <= $.$get$_epsilon()) {
  32877. t1 = $.$get$_inverseEpsilon();
  32878. t1 = B.JSNumber_methods.round$0(number1 * t1) === B.JSNumber_methods.round$0(number2 * t1);
  32879. } else
  32880. t1 = false;
  32881. return t1;
  32882. },
  32883. fuzzyEqualsNullable(number1, number2) {
  32884. var t1;
  32885. if (number1 == number2)
  32886. return true;
  32887. if (number1 == null || number2 == null)
  32888. return false;
  32889. if (Math.abs(number1 - number2) <= $.$get$_epsilon()) {
  32890. t1 = $.$get$_inverseEpsilon();
  32891. t1 = B.JSNumber_methods.round$0(number1 * t1) === B.JSNumber_methods.round$0(number2 * t1);
  32892. } else
  32893. t1 = false;
  32894. return t1;
  32895. },
  32896. fuzzyHashCode(number) {
  32897. if (!isFinite(number))
  32898. return B.JSNumber_methods.get$hashCode(number);
  32899. return B.JSInt_methods.get$hashCode(B.JSNumber_methods.round$0(number * $.$get$_inverseEpsilon()));
  32900. },
  32901. fuzzyLessThan(number1, number2) {
  32902. return number1 < number2 && !A.fuzzyEquals(number1, number2);
  32903. },
  32904. fuzzyLessThanOrEquals(number1, number2) {
  32905. return number1 < number2 || A.fuzzyEquals(number1, number2);
  32906. },
  32907. fuzzyGreaterThan(number1, number2) {
  32908. return number1 > number2 && !A.fuzzyEquals(number1, number2);
  32909. },
  32910. fuzzyGreaterThanOrEquals(number1, number2) {
  32911. return number1 > number2 || A.fuzzyEquals(number1, number2);
  32912. },
  32913. fuzzyIsInt(number) {
  32914. if (number == 1 / 0 || number == -1 / 0 || isNaN(number))
  32915. return false;
  32916. return A.fuzzyEquals(number, B.JSNumber_methods.round$0(number));
  32917. },
  32918. fuzzyAsInt(number) {
  32919. var rounded;
  32920. if (number == 1 / 0 || number == -1 / 0 || isNaN(number))
  32921. return null;
  32922. rounded = B.JSNumber_methods.round$0(number);
  32923. return A.fuzzyEquals(number, rounded) ? rounded : null;
  32924. },
  32925. fuzzyRound(number) {
  32926. var t1;
  32927. if (number > 0) {
  32928. t1 = B.JSNumber_methods.$mod(number, 1);
  32929. return t1 < 0.5 && !A.fuzzyEquals(t1, 0.5) ? B.JSNumber_methods.floor$0(number) : B.JSNumber_methods.ceil$0(number);
  32930. } else {
  32931. t1 = B.JSNumber_methods.$mod(number, 1);
  32932. return t1 < 0.5 || A.fuzzyEquals(t1, 0.5) ? B.JSNumber_methods.floor$0(number) : B.JSNumber_methods.ceil$0(number);
  32933. }
  32934. },
  32935. fuzzyCheckRange(number, min, max) {
  32936. if (A.fuzzyEquals(number, min))
  32937. return min;
  32938. if (A.fuzzyEquals(number, max))
  32939. return max;
  32940. if (number > min && number < max)
  32941. return number;
  32942. return null;
  32943. },
  32944. fuzzyAssertRange(number, min, max, $name) {
  32945. var result = A.fuzzyCheckRange(number, min, max);
  32946. if (result != null)
  32947. return result;
  32948. throw A.wrapException(A.RangeError$range(number, min, max, $name, "must be between " + min + " and " + max));
  32949. },
  32950. moduloLikeSass(num1, num2) {
  32951. var result;
  32952. if (num1 == 1 / 0 || num1 == -1 / 0)
  32953. return 0 / 0;
  32954. if (num2 == 1 / 0 || num2 == -1 / 0)
  32955. return A.DoubleWithSignedZero_get_signIncludingZero(num1) === J.get$sign$in(num2) ? num1 : 0 / 0;
  32956. if (num2 > 0)
  32957. return B.JSNumber_methods.$mod(num1, num2);
  32958. if (num2 === 0)
  32959. return 0 / 0;
  32960. result = B.JSNumber_methods.$mod(num1, num2);
  32961. return result === 0 ? 0 : result + num2;
  32962. },
  32963. sqrt(number) {
  32964. number.assertNoUnits$1("number");
  32965. return A.SassNumber_SassNumber(Math.sqrt(number._number$_value), null);
  32966. },
  32967. sin(number) {
  32968. return A.SassNumber_SassNumber(Math.sin(number.coerceValueToUnit$2("rad", "number")), null);
  32969. },
  32970. cos(number) {
  32971. return A.SassNumber_SassNumber(Math.cos(number.coerceValueToUnit$2("rad", "number")), null);
  32972. },
  32973. tan(number) {
  32974. return A.SassNumber_SassNumber(Math.tan(number.coerceValueToUnit$2("rad", "number")), null);
  32975. },
  32976. atan(number) {
  32977. number.assertNoUnits$1("number");
  32978. return A.SassNumber_SassNumber$withUnits(Math.atan(number._number$_value) * 57.29577951308232, null, A._setArrayType(["deg"], type$.JSArray_String));
  32979. },
  32980. asin(number) {
  32981. number.assertNoUnits$1("number");
  32982. return A.SassNumber_SassNumber$withUnits(Math.asin(number._number$_value) * 57.29577951308232, null, A._setArrayType(["deg"], type$.JSArray_String));
  32983. },
  32984. acos(number) {
  32985. number.assertNoUnits$1("number");
  32986. return A.SassNumber_SassNumber$withUnits(Math.acos(number._number$_value) * 57.29577951308232, null, A._setArrayType(["deg"], type$.JSArray_String));
  32987. },
  32988. log(number, base) {
  32989. if (base != null)
  32990. return A.SassNumber_SassNumber(Math.log(number._number$_value) / Math.log(base._number$_value), null);
  32991. return A.SassNumber_SassNumber(Math.log(number._number$_value), null);
  32992. },
  32993. pow0(base, exponent) {
  32994. base.assertNoUnits$1("base");
  32995. exponent.assertNoUnits$1("exponent");
  32996. return A.SassNumber_SassNumber(Math.pow(base._number$_value, exponent._number$_value), null);
  32997. },
  32998. DoubleWithSignedZero_get_signIncludingZero(_this) {
  32999. if (_this === -0.0)
  33000. return -1;
  33001. if (_this === 0)
  33002. return 1;
  33003. return J.get$sign$in(_this);
  33004. },
  33005. SpanExtensions_trimLeft(_this) {
  33006. var t1, start = 0;
  33007. while (true) {
  33008. t1 = _this.get$text().charCodeAt(start);
  33009. if (!(t1 === 32 || t1 === 9 || t1 === 10 || t1 === 13 || t1 === 12))
  33010. break;
  33011. ++start;
  33012. }
  33013. return A.FileSpanExtension_subspan(_this, start, null);
  33014. },
  33015. SpanExtensions_trimRight(_this) {
  33016. var t1,
  33017. end = _this.get$text().length - 1;
  33018. while (true) {
  33019. t1 = _this.get$text().charCodeAt(end);
  33020. if (!(t1 === 32 || t1 === 9 || t1 === 10 || t1 === 13 || t1 === 12))
  33021. break;
  33022. --end;
  33023. }
  33024. return A.FileSpanExtension_subspan(_this, 0, end + 1);
  33025. },
  33026. SpanExtensions_initialIdentifier(_this) {
  33027. var i,
  33028. scanner = A.StringScanner$(_this.get$text(), null, null);
  33029. for (i = 0; false; ++i)
  33030. scanner.readChar$0();
  33031. A._scanIdentifier(scanner);
  33032. return A.FileSpanExtension_subspan(_this, 0, scanner._string_scanner$_position);
  33033. },
  33034. SpanExtensions_withoutInitialIdentifier(_this) {
  33035. var scanner = A.StringScanner$(_this.get$text(), null, null);
  33036. A._scanIdentifier(scanner);
  33037. return A.FileSpanExtension_subspan(_this, scanner._string_scanner$_position, null);
  33038. },
  33039. _scanIdentifier(scanner) {
  33040. var t1, _0_0, t2;
  33041. for (t1 = scanner.string.length; scanner._string_scanner$_position !== t1;) {
  33042. _0_0 = scanner.peekChar$0();
  33043. if (92 === _0_0) {
  33044. A.consumeEscapedCharacter(scanner);
  33045. continue;
  33046. }
  33047. if (A._isInt(_0_0)) {
  33048. if (_0_0 !== 95) {
  33049. if (!(_0_0 >= 97 && _0_0 <= 122))
  33050. t2 = _0_0 >= 65 && _0_0 <= 90;
  33051. else
  33052. t2 = true;
  33053. t2 = t2 || _0_0 >= 128;
  33054. } else
  33055. t2 = true;
  33056. if (!t2)
  33057. t2 = _0_0 >= 48 && _0_0 <= 57 || _0_0 === 45;
  33058. else
  33059. t2 = true;
  33060. } else
  33061. t2 = false;
  33062. if (t2) {
  33063. scanner.readChar$0();
  33064. continue;
  33065. }
  33066. break;
  33067. }
  33068. },
  33069. hueToRgb(m1, m2, hue) {
  33070. var t1;
  33071. if (hue < 0)
  33072. ++hue;
  33073. if (hue > 1)
  33074. --hue;
  33075. $label0$0: {
  33076. if (hue < 0.16666666666666666) {
  33077. t1 = m1 + (m2 - m1) * hue * 6;
  33078. break $label0$0;
  33079. }
  33080. if (hue < 0.5) {
  33081. t1 = m2;
  33082. break $label0$0;
  33083. }
  33084. if (hue < 0.6666666666666666) {
  33085. t1 = m1 + (m2 - m1) * (0.6666666666666666 - hue) * 6;
  33086. break $label0$0;
  33087. }
  33088. t1 = m1;
  33089. break $label0$0;
  33090. }
  33091. return t1;
  33092. },
  33093. srgbAndDisplayP3ToLinear(channel) {
  33094. var abs = Math.abs(channel);
  33095. return abs <= 0.04045 ? channel / 12.92 : J.get$sign$in(channel) * Math.pow((abs + 0.055) / 1.055, 2.4);
  33096. },
  33097. srgbAndDisplayP3FromLinear(channel) {
  33098. var abs = Math.abs(channel);
  33099. return abs <= 0.0031308 ? channel * 12.92 : J.get$sign$in(channel) * (1.055 * Math.pow(abs, 0.4166666666666667) - 0.055);
  33100. },
  33101. labToLch(dest, lightness, a, b, alpha, missingChroma, missingHue) {
  33102. var t3, t4, chroma, hue,
  33103. t1 = a == null,
  33104. t2 = t1 ? 0 : a;
  33105. t2 = Math.pow(t2, 2);
  33106. t3 = b == null;
  33107. t4 = t3 ? 0 : b;
  33108. chroma = Math.sqrt(t2 + Math.pow(t4, 2));
  33109. if (missingHue || A.fuzzyEquals(chroma, 0))
  33110. hue = null;
  33111. else {
  33112. t2 = t3 ? 0 : b;
  33113. t1 = t1 ? 0 : a;
  33114. hue = Math.atan2(t2, t1) * 180 / 3.141592653589793;
  33115. }
  33116. t1 = missingChroma ? null : chroma;
  33117. return A.SassColor_SassColor$forSpaceInternal(dest, lightness, t1, hue == null || hue >= 0 ? hue : hue + 360, alpha);
  33118. },
  33119. encodeVlq(value) {
  33120. var res, signBit, digit, t1;
  33121. if (value < $.$get$minInt32() || value > $.$get$maxInt32())
  33122. throw A.wrapException(A.ArgumentError$("expected 32 bit int, got: " + value, null));
  33123. res = A._setArrayType([], type$.JSArray_String);
  33124. if (value < 0) {
  33125. value = -value;
  33126. signBit = 1;
  33127. } else
  33128. signBit = 0;
  33129. value = value << 1 | signBit;
  33130. do {
  33131. digit = value & 31;
  33132. value = value >>> 5;
  33133. t1 = value > 0;
  33134. res.push(string$.ABCDEF[t1 ? digit | 32 : digit]);
  33135. } while (t1);
  33136. return res;
  33137. },
  33138. isAllTheSame(iter) {
  33139. var firstValue, t1, t2, value;
  33140. if (iter.get$length(0) === 0)
  33141. return true;
  33142. firstValue = iter.get$first(0);
  33143. for (t1 = A.SubListIterable$(iter, 1, null, iter.$ti._eval$1("ListIterable.E")), t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListIterable.E>")), t2 = t2._eval$1("ListIterable.E"); t1.moveNext$0();) {
  33144. value = t1.__internal$_current;
  33145. if (!J.$eq$(value == null ? t2._as(value) : value, firstValue))
  33146. return false;
  33147. }
  33148. return true;
  33149. },
  33150. replaceFirstNull(list, element) {
  33151. var index = B.JSArray_methods.indexOf$1(list, null);
  33152. if (index < 0)
  33153. throw A.wrapException(A.ArgumentError$(A.S(list) + " contains no null elements.", null));
  33154. list[index] = element;
  33155. },
  33156. replaceWithNull(list, element) {
  33157. var index = B.JSArray_methods.indexOf$1(list, element);
  33158. if (index < 0)
  33159. throw A.wrapException(A.ArgumentError$(A.S(list) + " contains no elements matching " + element.toString$0(0) + ".", null));
  33160. list[index] = null;
  33161. },
  33162. countCodeUnits(string, codeUnit) {
  33163. var t1, t2, count, t3;
  33164. for (t1 = new A.CodeUnits(string), t2 = type$.CodeUnits, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t2 = t2._eval$1("ListBase.E"), count = 0; t1.moveNext$0();) {
  33165. t3 = t1.__internal$_current;
  33166. if ((t3 == null ? t2._as(t3) : t3) === codeUnit)
  33167. ++count;
  33168. }
  33169. return count;
  33170. },
  33171. findLineStart(context, text, column) {
  33172. var beginningOfLine, index, lineStart;
  33173. if (text.length === 0)
  33174. for (beginningOfLine = 0; true;) {
  33175. index = B.JSString_methods.indexOf$2(context, "\n", beginningOfLine);
  33176. if (index === -1)
  33177. return context.length - beginningOfLine >= column ? beginningOfLine : null;
  33178. if (index - beginningOfLine >= column)
  33179. return beginningOfLine;
  33180. beginningOfLine = index + 1;
  33181. }
  33182. index = B.JSString_methods.indexOf$1(context, text);
  33183. for (; index !== -1;) {
  33184. lineStart = index === 0 ? 0 : B.JSString_methods.lastIndexOf$2(context, "\n", index - 1) + 1;
  33185. if (column === index - lineStart)
  33186. return lineStart;
  33187. index = B.JSString_methods.indexOf$2(context, text, index + 1);
  33188. }
  33189. return null;
  33190. },
  33191. validateErrorArgs(string, match, position, $length) {
  33192. var t2,
  33193. t1 = position != null;
  33194. if (t1)
  33195. if (position < 0)
  33196. throw A.wrapException(A.RangeError$("position must be greater than or equal to 0."));
  33197. else if (position > string.length)
  33198. throw A.wrapException(A.RangeError$("position must be less than or equal to the string length."));
  33199. t2 = $length != null;
  33200. if (t2 && $length < 0)
  33201. throw A.wrapException(A.RangeError$("length must be greater than or equal to 0."));
  33202. if (t1 && t2 && position + $length > string.length)
  33203. throw A.wrapException(A.RangeError$("position plus length must not go beyond the end of the string."));
  33204. },
  33205. CharacterExtension_get_isAlphabetic0(_this) {
  33206. var t1;
  33207. if (!(_this >= 97 && _this <= 122))
  33208. t1 = _this >= 65 && _this <= 90;
  33209. else
  33210. t1 = true;
  33211. return t1;
  33212. },
  33213. CharacterExtension_get_isHex0(_this) {
  33214. var t1 = true;
  33215. if (!(_this >= 48 && _this <= 57))
  33216. if (!(_this >= 97 && _this <= 102))
  33217. t1 = _this >= 65 && _this <= 70;
  33218. return t1;
  33219. },
  33220. combineSurrogates(highSurrogate, lowSurrogate) {
  33221. return 65536 + ((highSurrogate & 1023) << 10) + (lowSurrogate & 1023);
  33222. },
  33223. asHex0(character) {
  33224. var t1;
  33225. $label0$0: {
  33226. if (character <= 57) {
  33227. t1 = character - 48;
  33228. break $label0$0;
  33229. }
  33230. if (character <= 70) {
  33231. t1 = 10 + character - 65;
  33232. break $label0$0;
  33233. }
  33234. t1 = 10 + character - 97;
  33235. break $label0$0;
  33236. }
  33237. return t1;
  33238. },
  33239. hexCharFor0(number) {
  33240. return number < 10 ? 48 + number : 87 + number;
  33241. },
  33242. opposite0(character) {
  33243. var t1;
  33244. $label0$0: {
  33245. if (40 === character) {
  33246. t1 = 41;
  33247. break $label0$0;
  33248. }
  33249. if (123 === character) {
  33250. t1 = 125;
  33251. break $label0$0;
  33252. }
  33253. if (91 === character) {
  33254. t1 = 93;
  33255. break $label0$0;
  33256. }
  33257. t1 = A.throwExpression(A.ArgumentError$('"' + A.String_String$fromCharCode(character) + "\" isn't a brace-like character.", null));
  33258. }
  33259. return t1;
  33260. },
  33261. characterEqualsIgnoreCase0(character1, character2) {
  33262. var upperCase1;
  33263. if (character1 === character2)
  33264. return true;
  33265. if ((character1 ^ character2) >>> 0 !== 32)
  33266. return false;
  33267. upperCase1 = (character1 & 4294967263) >>> 0;
  33268. return upperCase1 >= 65 && upperCase1 <= 90;
  33269. },
  33270. EvaluationContext_currentOrNull0() {
  33271. var t1,
  33272. _0_0 = $.Zone__current.$index(0, B.Symbol__evaluationContext);
  33273. $label0$0: {
  33274. if (type$.EvaluationContext_2._is(_0_0)) {
  33275. t1 = _0_0;
  33276. break $label0$0;
  33277. }
  33278. t1 = null;
  33279. break $label0$0;
  33280. }
  33281. return t1;
  33282. },
  33283. EvaluationContext__currentOrNull() {
  33284. var _0_0 = $.Zone__current.$index(0, B.Symbol__evaluationContext);
  33285. if (type$.EvaluationContext_2._is(_0_0))
  33286. return _0_0;
  33287. else
  33288. return null;
  33289. },
  33290. warn0(message) {
  33291. var t1,
  33292. _0_0 = A.EvaluationContext_currentOrNull0();
  33293. $label0$0: {
  33294. if (_0_0 != null) {
  33295. t1 = _0_0.warn$2(0, message, null);
  33296. break $label0$0;
  33297. }
  33298. t1 = B.StderrLogger_false0.warn$1(0, message);
  33299. break $label0$0;
  33300. }
  33301. return t1;
  33302. },
  33303. warnForDeprecation0(message, deprecation) {
  33304. var t1,
  33305. _0_0 = A.EvaluationContext_currentOrNull0();
  33306. $label0$0: {
  33307. if (_0_0 != null) {
  33308. t1 = _0_0.warn$2(0, message, deprecation);
  33309. break $label0$0;
  33310. }
  33311. t1 = A.WarnForDeprecation_warnForDeprecation0(B.StderrLogger_false0, deprecation, message, null, null);
  33312. break $label0$0;
  33313. }
  33314. return t1;
  33315. },
  33316. warnForDeprecationFromApi(message, deprecation) {
  33317. var _0_0 = A.EvaluationContext__currentOrNull();
  33318. if (_0_0 != null)
  33319. _0_0.warn$2(0, message, deprecation);
  33320. else
  33321. A.WarnForDeprecation_warnForDeprecation0(new A.StderrLogger0(false), deprecation, message, null, null);
  33322. },
  33323. IterableExtension_search0(_this, callback) {
  33324. var t1, _0_0;
  33325. for (t1 = J.get$iterator$ax(_this); t1.moveNext$0();) {
  33326. _0_0 = callback.call$1(t1.get$current(t1));
  33327. if (_0_0 != null)
  33328. return _0_0;
  33329. }
  33330. return null;
  33331. },
  33332. IterableExtension_get_exceptLast0(_this) {
  33333. var t1 = J.getInterceptor$asx(_this),
  33334. size = t1.get$length(_this) - 1;
  33335. if (size < 0)
  33336. throw A.wrapException(A.StateError$("Iterable may not be empty"));
  33337. return t1.take$1(_this, size);
  33338. },
  33339. NullableExtension_andThen0(_this, fn) {
  33340. return _this == null ? null : fn.call$1(_this);
  33341. },
  33342. fuzzyEquals0(number1, number2) {
  33343. var t1;
  33344. if (number1 === number2)
  33345. return true;
  33346. if (Math.abs(number1 - number2) <= $.$get$_epsilon0()) {
  33347. t1 = $.$get$_inverseEpsilon0();
  33348. t1 = B.JSNumber_methods.round$0(number1 * t1) === B.JSNumber_methods.round$0(number2 * t1);
  33349. } else
  33350. t1 = false;
  33351. return t1;
  33352. },
  33353. fuzzyEqualsNullable0(number1, number2) {
  33354. var t1;
  33355. if (number1 == number2)
  33356. return true;
  33357. if (number1 == null || number2 == null)
  33358. return false;
  33359. if (Math.abs(number1 - number2) <= $.$get$_epsilon0()) {
  33360. t1 = $.$get$_inverseEpsilon0();
  33361. t1 = B.JSNumber_methods.round$0(number1 * t1) === B.JSNumber_methods.round$0(number2 * t1);
  33362. } else
  33363. t1 = false;
  33364. return t1;
  33365. },
  33366. fuzzyHashCode0(number) {
  33367. if (!isFinite(number))
  33368. return B.JSNumber_methods.get$hashCode(number);
  33369. return B.JSInt_methods.get$hashCode(B.JSNumber_methods.round$0(number * $.$get$_inverseEpsilon0()));
  33370. },
  33371. fuzzyLessThan0(number1, number2) {
  33372. return number1 < number2 && !A.fuzzyEquals0(number1, number2);
  33373. },
  33374. fuzzyLessThanOrEquals0(number1, number2) {
  33375. return number1 < number2 || A.fuzzyEquals0(number1, number2);
  33376. },
  33377. fuzzyGreaterThan0(number1, number2) {
  33378. return number1 > number2 && !A.fuzzyEquals0(number1, number2);
  33379. },
  33380. fuzzyGreaterThanOrEquals0(number1, number2) {
  33381. return number1 > number2 || A.fuzzyEquals0(number1, number2);
  33382. },
  33383. fuzzyIsInt0(number) {
  33384. if (number == 1 / 0 || number == -1 / 0 || isNaN(number))
  33385. return false;
  33386. return A.fuzzyEquals0(number, B.JSNumber_methods.round$0(number));
  33387. },
  33388. fuzzyAsInt0(number) {
  33389. var rounded;
  33390. if (number == 1 / 0 || number == -1 / 0 || isNaN(number))
  33391. return null;
  33392. rounded = B.JSNumber_methods.round$0(number);
  33393. return A.fuzzyEquals0(number, rounded) ? rounded : null;
  33394. },
  33395. fuzzyRound0(number) {
  33396. var t1;
  33397. if (number > 0) {
  33398. t1 = B.JSNumber_methods.$mod(number, 1);
  33399. return t1 < 0.5 && !A.fuzzyEquals0(t1, 0.5) ? B.JSNumber_methods.floor$0(number) : B.JSNumber_methods.ceil$0(number);
  33400. } else {
  33401. t1 = B.JSNumber_methods.$mod(number, 1);
  33402. return t1 < 0.5 || A.fuzzyEquals0(t1, 0.5) ? B.JSNumber_methods.floor$0(number) : B.JSNumber_methods.ceil$0(number);
  33403. }
  33404. },
  33405. fuzzyCheckRange0(number, min, max) {
  33406. if (A.fuzzyEquals0(number, min))
  33407. return min;
  33408. if (A.fuzzyEquals0(number, max))
  33409. return max;
  33410. if (number > min && number < max)
  33411. return number;
  33412. return null;
  33413. },
  33414. fuzzyAssertRange0(number, min, max, $name) {
  33415. var result = A.fuzzyCheckRange0(number, min, max);
  33416. if (result != null)
  33417. return result;
  33418. throw A.wrapException(A.RangeError$range(number, min, max, $name, "must be between " + min + " and " + max));
  33419. },
  33420. moduloLikeSass0(num1, num2) {
  33421. var result;
  33422. if (num1 == 1 / 0 || num1 == -1 / 0)
  33423. return 0 / 0;
  33424. if (num2 == 1 / 0 || num2 == -1 / 0)
  33425. return A.DoubleWithSignedZero_get_signIncludingZero0(num1) === J.get$sign$in(num2) ? num1 : 0 / 0;
  33426. if (num2 > 0)
  33427. return B.JSNumber_methods.$mod(num1, num2);
  33428. if (num2 === 0)
  33429. return 0 / 0;
  33430. result = B.JSNumber_methods.$mod(num1, num2);
  33431. return result === 0 ? 0 : result + num2;
  33432. },
  33433. sqrt0(number) {
  33434. number.assertNoUnits$1("number");
  33435. return A.SassNumber_SassNumber0(Math.sqrt(number._number1$_value), null);
  33436. },
  33437. sin0(number) {
  33438. return A.SassNumber_SassNumber0(Math.sin(number.coerceValueToUnit$2("rad", "number")), null);
  33439. },
  33440. cos0(number) {
  33441. return A.SassNumber_SassNumber0(Math.cos(number.coerceValueToUnit$2("rad", "number")), null);
  33442. },
  33443. tan0(number) {
  33444. return A.SassNumber_SassNumber0(Math.tan(number.coerceValueToUnit$2("rad", "number")), null);
  33445. },
  33446. atan0(number) {
  33447. number.assertNoUnits$1("number");
  33448. return A.SassNumber_SassNumber$withUnits0(Math.atan(number._number1$_value) * 57.29577951308232, null, A._setArrayType(["deg"], type$.JSArray_String));
  33449. },
  33450. asin0(number) {
  33451. number.assertNoUnits$1("number");
  33452. return A.SassNumber_SassNumber$withUnits0(Math.asin(number._number1$_value) * 57.29577951308232, null, A._setArrayType(["deg"], type$.JSArray_String));
  33453. },
  33454. acos0(number) {
  33455. number.assertNoUnits$1("number");
  33456. return A.SassNumber_SassNumber$withUnits0(Math.acos(number._number1$_value) * 57.29577951308232, null, A._setArrayType(["deg"], type$.JSArray_String));
  33457. },
  33458. log0(number, base) {
  33459. if (base != null)
  33460. return A.SassNumber_SassNumber0(Math.log(number._number1$_value) / Math.log(base._number1$_value), null);
  33461. return A.SassNumber_SassNumber0(Math.log(number._number1$_value), null);
  33462. },
  33463. pow1(base, exponent) {
  33464. base.assertNoUnits$1("base");
  33465. exponent.assertNoUnits$1("exponent");
  33466. return A.SassNumber_SassNumber0(Math.pow(base._number1$_value, exponent._number1$_value), null);
  33467. },
  33468. DoubleWithSignedZero_get_signIncludingZero0(_this) {
  33469. if (_this === -0.0)
  33470. return -1;
  33471. if (_this === 0)
  33472. return 1;
  33473. return J.get$sign$in(_this);
  33474. },
  33475. main1(args) {
  33476. return A.main$body(args);
  33477. },
  33478. main$body(args) {
  33479. var $async$goto = 0,
  33480. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  33481. $async$returnValue, $async$handler = 2, $async$currentError, options, t1, graph, error, error0, stackTrace, buffer, t2, exception, $async$exception, $async$temp1;
  33482. var $async$main1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  33483. if ($async$errorCode === 1) {
  33484. $async$currentError = $async$result;
  33485. $async$goto = $async$handler;
  33486. }
  33487. while (true)
  33488. switch ($async$goto) {
  33489. case 0:
  33490. // Function start
  33491. if (args.length >= 1 && "--embedded" === args[0]) {
  33492. A.main0(B.JSArray_methods.sublist$1(args, 1));
  33493. // goto return
  33494. $async$goto = 1;
  33495. break;
  33496. }
  33497. options = null;
  33498. $async$handler = 4;
  33499. options = A.ExecutableOptions_ExecutableOptions$parse(args);
  33500. t2 = options._options;
  33501. $._glyphs = !(t2.wasParsed$1("unicode") ? A._asBool(t2.$index(0, "unicode")) : $._glyphs !== B.C_AsciiGlyphSet) ? B.C_AsciiGlyphSet : B.C_UnicodeGlyphSet;
  33502. $async$goto = A._asBool(options._options.$index(0, "version")) ? 7 : 8;
  33503. break;
  33504. case 7:
  33505. // then
  33506. $async$temp1 = A;
  33507. $async$goto = 9;
  33508. return A._asyncAwait(A._loadVersion(), $async$main1);
  33509. case 9:
  33510. // returning from await.
  33511. $async$temp1.print($async$result);
  33512. t1 = A.isNodeJs() ? self.process : null;
  33513. if (t1 != null)
  33514. J.set$exitCode$x(t1, 0);
  33515. // goto return
  33516. $async$goto = 1;
  33517. break;
  33518. case 8:
  33519. // join
  33520. $async$goto = options.get$interactive() ? 10 : 11;
  33521. break;
  33522. case 10:
  33523. // then
  33524. $async$goto = 12;
  33525. return A._asyncAwait(A.repl(options), $async$main1);
  33526. case 12:
  33527. // returning from await.
  33528. // goto return
  33529. $async$goto = 1;
  33530. break;
  33531. case 11:
  33532. // join
  33533. J.get$silenceDeprecations$x(options);
  33534. J.get$futureDeprecations$x(options);
  33535. J.get$fatalDeprecations$x(options);
  33536. t1 = A.List_List$of(options.get$pkgImporters(), true, type$.Importer_2);
  33537. J.add$1$ax(t1, $.$get$FilesystemImporter_noLoadPath());
  33538. t2 = type$.Uri;
  33539. graph = new A.StylesheetGraph(A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.StylesheetNode), A.ImportCache$(t1, type$.List_String._as(options._options.$index(0, "load-path"))), A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.DateTime));
  33540. $async$goto = A._asBool(options._options.$index(0, "watch")) ? 13 : 14;
  33541. break;
  33542. case 13:
  33543. // then
  33544. $async$goto = 15;
  33545. return A._asyncAwait(A.watch(options, graph), $async$main1);
  33546. case 15:
  33547. // returning from await.
  33548. // goto return
  33549. $async$goto = 1;
  33550. break;
  33551. case 14:
  33552. // join
  33553. t1 = options;
  33554. t2 = options;
  33555. t2._ensureSources$0();
  33556. t2 = t2._sourcesToDestinations;
  33557. t2.toString;
  33558. $async$goto = 16;
  33559. return A._asyncAwait(A.compileStylesheets(t1, graph, t2, A._asBool(options._options.$index(0, "update"))), $async$main1);
  33560. case 16:
  33561. // returning from await.
  33562. $async$handler = 2;
  33563. // goto after finally
  33564. $async$goto = 6;
  33565. break;
  33566. case 4:
  33567. // catch
  33568. $async$handler = 3;
  33569. $async$exception = $async$currentError;
  33570. t1 = A.unwrapException($async$exception);
  33571. if (t1 instanceof A.UsageException) {
  33572. error = t1;
  33573. A.print(error.message + "\n");
  33574. A.print("Usage: sass <input.scss> [output.css]\n sass <input.scss>:<output.css> <input/>:<output/> <dir/>\n");
  33575. t1 = $.$get$ExecutableOptions__parser();
  33576. A.print(new A._Usage(t1._optionsAndSeparators, new A.StringBuffer(""), t1.usageLineLength).generate$0());
  33577. t1 = A.isNodeJs() ? self.process : null;
  33578. if (t1 != null)
  33579. J.set$exitCode$x(t1, 64);
  33580. } else {
  33581. error0 = t1;
  33582. stackTrace = A.getTraceFromException($async$exception);
  33583. buffer = new A.StringBuffer("");
  33584. t1 = options;
  33585. t1 = t1 == null ? null : t1.get$color();
  33586. if (t1 === true)
  33587. buffer._contents += "\x1b[31m\x1b[1m";
  33588. buffer._contents += "Unexpected exception:";
  33589. t1 = options;
  33590. t1 = t1 == null ? null : t1.get$color();
  33591. if (t1 === true)
  33592. buffer._contents += "\x1b[0m";
  33593. buffer._contents += "\n";
  33594. t1 = buffer;
  33595. t2 = A.S(error0) + "\n";
  33596. t1._contents += t2;
  33597. buffer._contents += "\n";
  33598. buffer._contents += "\n";
  33599. t2 = buffer;
  33600. t1 = A.getTrace(error0);
  33601. t1 = B.JSString_methods.trimRight$0(A.Trace_Trace$from(t1 == null ? stackTrace : t1).get$terse().toString$0(0));
  33602. t2._contents += t1;
  33603. A.printError(buffer);
  33604. t1 = A.isNodeJs() ? self.process : null;
  33605. if (t1 != null)
  33606. J.set$exitCode$x(t1, 255);
  33607. }
  33608. // goto after finally
  33609. $async$goto = 6;
  33610. break;
  33611. case 3:
  33612. // uncaught
  33613. // goto rethrow
  33614. $async$goto = 2;
  33615. break;
  33616. case 6:
  33617. // after finally
  33618. case 1:
  33619. // return
  33620. return A._asyncReturn($async$returnValue, $async$completer);
  33621. case 2:
  33622. // rethrow
  33623. return A._asyncRethrow($async$currentError, $async$completer);
  33624. }
  33625. });
  33626. return A._asyncStartSync($async$main1, $async$completer);
  33627. },
  33628. _loadVersion() {
  33629. var $async$goto = 0,
  33630. $async$completer = A._makeAsyncAwaitCompleter(type$.String),
  33631. $async$returnValue;
  33632. var $async$_loadVersion = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  33633. if ($async$errorCode === 1)
  33634. return A._asyncRethrow($async$result, $async$completer);
  33635. while (true)
  33636. switch ($async$goto) {
  33637. case 0:
  33638. // Function start
  33639. $async$returnValue = "1.80.4 compiled with dart2js 3.5.4";
  33640. // goto return
  33641. $async$goto = 1;
  33642. break;
  33643. case 1:
  33644. // return
  33645. return A._asyncReturn($async$returnValue, $async$completer);
  33646. }
  33647. });
  33648. return A._asyncStartSync($async$_loadVersion, $async$completer);
  33649. },
  33650. SpanExtensions_trimLeft0(_this) {
  33651. var t1, start = 0;
  33652. while (true) {
  33653. t1 = _this.get$text().charCodeAt(start);
  33654. if (!(t1 === 32 || t1 === 9 || t1 === 10 || t1 === 13 || t1 === 12))
  33655. break;
  33656. ++start;
  33657. }
  33658. return A.FileSpanExtension_subspan(_this, start, null);
  33659. },
  33660. SpanExtensions_trimRight0(_this) {
  33661. var t1,
  33662. end = _this.get$text().length - 1;
  33663. while (true) {
  33664. t1 = _this.get$text().charCodeAt(end);
  33665. if (!(t1 === 32 || t1 === 9 || t1 === 10 || t1 === 13 || t1 === 12))
  33666. break;
  33667. --end;
  33668. }
  33669. return A.FileSpanExtension_subspan(_this, 0, end + 1);
  33670. },
  33671. SpanExtensions_initialIdentifier0(_this) {
  33672. var i,
  33673. scanner = A.StringScanner$(_this.get$text(), null, null);
  33674. for (i = 0; false; ++i)
  33675. scanner.readChar$0();
  33676. A._scanIdentifier0(scanner);
  33677. return A.FileSpanExtension_subspan(_this, 0, scanner._string_scanner$_position);
  33678. },
  33679. SpanExtensions_withoutInitialIdentifier0(_this) {
  33680. var scanner = A.StringScanner$(_this.get$text(), null, null);
  33681. A._scanIdentifier0(scanner);
  33682. return A.FileSpanExtension_subspan(_this, scanner._string_scanner$_position, null);
  33683. },
  33684. SpanExtensions_between(_this, other) {
  33685. if (!J.$eq$(_this.get$sourceUrl(_this), other.get$sourceUrl(other)))
  33686. throw A.wrapException(A.ArgumentError$(_this.toString$0(0) + " and " + other.toString$0(0) + " are in different files.", null));
  33687. else if (_this.get$end(_this).offset > other.get$start(other).offset)
  33688. throw A.wrapException(A.ArgumentError$(_this.toString$0(0) + " isn't before " + other.toString$0(0) + ".", null));
  33689. return _this.get$file(_this).span$2(0, _this.get$end(_this).offset, other.get$start(other).offset);
  33690. },
  33691. SpanExtensions_before(_this, inner) {
  33692. if (!J.$eq$(_this.get$sourceUrl(_this), inner.get$sourceUrl(inner)))
  33693. throw A.wrapException(A.ArgumentError$(_this.toString$0(0) + " and " + inner.toString$0(0) + " are in different files.", null));
  33694. else if (inner.get$start(inner).offset < _this.get$start(_this).offset || inner.get$end(inner).offset > _this.get$end(_this).offset)
  33695. throw A.wrapException(A.ArgumentError$(inner.toString$0(0) + " isn't inside " + _this.toString$0(0) + ".", null));
  33696. return _this.get$file(_this).span$2(0, _this.get$start(_this).offset, inner.get$start(inner).offset);
  33697. },
  33698. SpanExtensions_after(_this, inner) {
  33699. if (!J.$eq$(_this.get$sourceUrl(_this), inner.get$sourceUrl(inner)))
  33700. throw A.wrapException(A.ArgumentError$(_this.toString$0(0) + " and " + inner.toString$0(0) + " are in different files.", null));
  33701. else if (inner.get$start(inner).offset < _this.get$start(_this).offset || inner.get$end(inner).offset > _this.get$end(_this).offset)
  33702. throw A.wrapException(A.ArgumentError$(inner.toString$0(0) + " isn't inside " + _this.toString$0(0) + ".", null));
  33703. return _this.get$file(_this).span$2(0, inner.get$end(inner).offset, _this.get$end(_this).offset);
  33704. },
  33705. _scanIdentifier0(scanner) {
  33706. var t1, _0_0, t2;
  33707. for (t1 = scanner.string.length; scanner._string_scanner$_position !== t1;) {
  33708. _0_0 = scanner.peekChar$0();
  33709. if (92 === _0_0) {
  33710. A.consumeEscapedCharacter0(scanner);
  33711. continue;
  33712. }
  33713. if (A._isInt(_0_0)) {
  33714. if (_0_0 !== 95) {
  33715. if (!(_0_0 >= 97 && _0_0 <= 122))
  33716. t2 = _0_0 >= 65 && _0_0 <= 90;
  33717. else
  33718. t2 = true;
  33719. t2 = t2 || _0_0 >= 128;
  33720. } else
  33721. t2 = true;
  33722. if (!t2)
  33723. t2 = _0_0 >= 48 && _0_0 <= 57 || _0_0 === 45;
  33724. else
  33725. t2 = true;
  33726. } else
  33727. t2 = false;
  33728. if (t2) {
  33729. scanner.readChar$0();
  33730. continue;
  33731. }
  33732. break;
  33733. }
  33734. },
  33735. validateUrlScheme(scheme) {
  33736. var t1 = $.$get$_urlSchemeRegExp();
  33737. if (!t1._nativeRegExp.test(scheme))
  33738. A.jsThrow(new self.Error('"' + scheme + '" isn\'t a valid URL scheme (for example "file").'));
  33739. },
  33740. hueToRgb0(m1, m2, hue) {
  33741. var t1;
  33742. if (hue < 0)
  33743. ++hue;
  33744. if (hue > 1)
  33745. --hue;
  33746. $label0$0: {
  33747. if (hue < 0.16666666666666666) {
  33748. t1 = m1 + (m2 - m1) * hue * 6;
  33749. break $label0$0;
  33750. }
  33751. if (hue < 0.5) {
  33752. t1 = m2;
  33753. break $label0$0;
  33754. }
  33755. if (hue < 0.6666666666666666) {
  33756. t1 = m1 + (m2 - m1) * (0.6666666666666666 - hue) * 6;
  33757. break $label0$0;
  33758. }
  33759. t1 = m1;
  33760. break $label0$0;
  33761. }
  33762. return t1;
  33763. },
  33764. srgbAndDisplayP3ToLinear0(channel) {
  33765. var abs = Math.abs(channel);
  33766. return abs <= 0.04045 ? channel / 12.92 : J.get$sign$in(channel) * Math.pow((abs + 0.055) / 1.055, 2.4);
  33767. },
  33768. srgbAndDisplayP3FromLinear0(channel) {
  33769. var abs = Math.abs(channel);
  33770. return abs <= 0.0031308 ? channel * 12.92 : J.get$sign$in(channel) * (1.055 * Math.pow(abs, 0.4166666666666667) - 0.055);
  33771. },
  33772. labToLch0(dest, lightness, a, b, alpha, missingChroma, missingHue) {
  33773. var t3, t4, chroma, hue,
  33774. t1 = a == null,
  33775. t2 = t1 ? 0 : a;
  33776. t2 = Math.pow(t2, 2);
  33777. t3 = b == null;
  33778. t4 = t3 ? 0 : b;
  33779. chroma = Math.sqrt(t2 + Math.pow(t4, 2));
  33780. if (missingHue || A.fuzzyEquals0(chroma, 0))
  33781. hue = null;
  33782. else {
  33783. t2 = t3 ? 0 : b;
  33784. t1 = t1 ? 0 : a;
  33785. hue = Math.atan2(t2, t1) * 180 / 3.141592653589793;
  33786. }
  33787. t1 = missingChroma ? null : chroma;
  33788. return A.SassColor_SassColor$forSpaceInternal0(dest, lightness, t1, hue == null || hue >= 0 ? hue : hue + 360, alpha);
  33789. },
  33790. unwrapValue(object) {
  33791. var value;
  33792. if (object != null) {
  33793. if (object instanceof A.Value0)
  33794. return object;
  33795. value = object.dartValue;
  33796. if (value != null && value instanceof A.Value0)
  33797. return value;
  33798. if (object instanceof self.Error)
  33799. throw A.wrapException(object);
  33800. }
  33801. throw A.wrapException(A.S(object) + " must be a Sass value type.");
  33802. },
  33803. wrapValue(value) {
  33804. var t1;
  33805. $label0$0: {
  33806. if (value instanceof A.SassColor0) {
  33807. t1 = A.callConstructor($.$get$legacyColorClass(), [null, null, null, null, value]);
  33808. break $label0$0;
  33809. }
  33810. if (value instanceof A.SassList0) {
  33811. t1 = A.callConstructor($.$get$legacyListClass(), [null, null, value]);
  33812. break $label0$0;
  33813. }
  33814. if (value instanceof A.SassMap0) {
  33815. t1 = A.callConstructor($.$get$legacyMapClass(), [null, value]);
  33816. break $label0$0;
  33817. }
  33818. if (value instanceof A.SassNumber0) {
  33819. t1 = A.callConstructor($.$get$legacyNumberClass(), [null, null, value]);
  33820. break $label0$0;
  33821. }
  33822. if (value instanceof A.SassString0) {
  33823. t1 = A.callConstructor($.$get$legacyStringClass(), [null, value]);
  33824. break $label0$0;
  33825. }
  33826. t1 = value;
  33827. break $label0$0;
  33828. }
  33829. return t1;
  33830. }
  33831. },
  33832. B = {};
  33833. var holders = [A, J, B];
  33834. var $ = {};
  33835. A.JS_CONST.prototype = {};
  33836. J.Interceptor.prototype = {
  33837. $eq(receiver, other) {
  33838. return receiver === other;
  33839. },
  33840. get$hashCode(receiver) {
  33841. return A.Primitives_objectHashCode(receiver);
  33842. },
  33843. toString$0(receiver) {
  33844. return "Instance of '" + A.Primitives_objectTypeName(receiver) + "'";
  33845. },
  33846. noSuchMethod$1(receiver, invocation) {
  33847. throw A.wrapException(A.NoSuchMethodError_NoSuchMethodError$withInvocation(receiver, invocation));
  33848. },
  33849. get$runtimeType(receiver) {
  33850. return A.createRuntimeType(A._instanceTypeFromConstructor(this));
  33851. }
  33852. };
  33853. J.JSBool.prototype = {
  33854. toString$0(receiver) {
  33855. return String(receiver);
  33856. },
  33857. $or(receiver, other) {
  33858. return other || receiver;
  33859. },
  33860. get$hashCode(receiver) {
  33861. return receiver ? 519018 : 218159;
  33862. },
  33863. get$runtimeType(receiver) {
  33864. return A.createRuntimeType(type$.bool);
  33865. },
  33866. $isTrustedGetRuntimeType: 1,
  33867. $isbool: 1
  33868. };
  33869. J.JSNull.prototype = {
  33870. $eq(receiver, other) {
  33871. return null == other;
  33872. },
  33873. toString$0(receiver) {
  33874. return "null";
  33875. },
  33876. get$hashCode(receiver) {
  33877. return 0;
  33878. },
  33879. get$runtimeType(receiver) {
  33880. return A.createRuntimeType(type$.Null);
  33881. },
  33882. $isTrustedGetRuntimeType: 1,
  33883. $isNull: 1
  33884. };
  33885. J.JavaScriptObject.prototype = {};
  33886. J.LegacyJavaScriptObject.prototype = {
  33887. get$hashCode(receiver) {
  33888. return 0;
  33889. },
  33890. toString$0(receiver) {
  33891. return String(receiver);
  33892. },
  33893. $isPromise: 1,
  33894. $isJsSystemError: 1,
  33895. $isImmutableList: 1,
  33896. $isParcelWatcherSubscription: 1,
  33897. $isParcelWatcherEvent: 1,
  33898. $is_ConstructionOptions: 1,
  33899. $is_ChannelOptions: 1,
  33900. $is_ToGamutOptions: 1,
  33901. $is_InterpolationOptions: 1,
  33902. $is_NodeSassColor: 1,
  33903. $isCompileOptions: 1,
  33904. $isCompileStringOptions: 1,
  33905. $isNodeCompileResult: 1,
  33906. $isDeprecation1: 1,
  33907. $is_NodeException: 1,
  33908. $isJSExpressionVisitorObject: 1,
  33909. $isFiber: 1,
  33910. $isJSFunction0: 1,
  33911. $isImmutableList0: 1,
  33912. $isImmutableMap0: 1,
  33913. $isJSImporter: 1,
  33914. $isJSImporterResult: 1,
  33915. $isNodeImporterResult0: 1,
  33916. $is_ConstructorOptions: 1,
  33917. $is_NodeSassList: 1,
  33918. $isWarnOptions: 1,
  33919. $isDebugOptions: 1,
  33920. $is_NodeSassMap: 1,
  33921. $is_ConstructorOptions0: 1,
  33922. $is_NodeSassNumber: 1,
  33923. $isParserExports: 1,
  33924. $isJSClass0: 1,
  33925. $isRenderContextOptions0: 1,
  33926. $isRenderOptions: 1,
  33927. $isRenderResult: 1,
  33928. $isJSStatementVisitorObject: 1,
  33929. $is_ConstructorOptions1: 1,
  33930. $is_NodeSassString: 1,
  33931. $isJSUrl0: 1,
  33932. get$isTTY(obj) {
  33933. return obj.isTTY;
  33934. },
  33935. get$write(obj) {
  33936. return obj.write;
  33937. },
  33938. write$1(receiver, p0) {
  33939. return receiver.write(p0);
  33940. },
  33941. createInterface$1(receiver, p0) {
  33942. return receiver.createInterface(p0);
  33943. },
  33944. on$2(receiver, p0, p1) {
  33945. return receiver.on(p0, p1);
  33946. },
  33947. get$close(obj) {
  33948. return obj.close;
  33949. },
  33950. close$0(receiver) {
  33951. return receiver.close();
  33952. },
  33953. setPrompt$1(receiver, p0) {
  33954. return receiver.setPrompt(p0);
  33955. },
  33956. get$length(obj) {
  33957. return obj.length;
  33958. },
  33959. toString$0(receiver) {
  33960. return receiver.toString();
  33961. },
  33962. get$debug(obj) {
  33963. return obj.debug;
  33964. },
  33965. debug$2(receiver, p0, p1) {
  33966. return receiver.debug(p0, p1);
  33967. },
  33968. get$error(obj) {
  33969. return obj.error;
  33970. },
  33971. error$1(receiver, p0) {
  33972. return receiver.error(p0);
  33973. },
  33974. error$2(receiver, p0, p1) {
  33975. return receiver.error(p0, p1);
  33976. },
  33977. log$1(receiver, p0) {
  33978. return receiver.log(p0);
  33979. },
  33980. get$warn(obj) {
  33981. return obj.warn;
  33982. },
  33983. warn$1(receiver, p0) {
  33984. return receiver.warn(p0);
  33985. },
  33986. warn$2(receiver, p0, p1) {
  33987. return receiver.warn(p0, p1);
  33988. },
  33989. existsSync$1(receiver, p0) {
  33990. return receiver.existsSync(p0);
  33991. },
  33992. mkdirSync$1(receiver, p0) {
  33993. return receiver.mkdirSync(p0);
  33994. },
  33995. readdirSync$1(receiver, p0) {
  33996. return receiver.readdirSync(p0);
  33997. },
  33998. readFileSync$2(receiver, p0, p1) {
  33999. return receiver.readFileSync(p0, p1);
  34000. },
  34001. statSync$1(receiver, p0) {
  34002. return receiver.statSync(p0);
  34003. },
  34004. unlinkSync$1(receiver, p0) {
  34005. return receiver.unlinkSync(p0);
  34006. },
  34007. watch$2(receiver, p0, p1) {
  34008. return receiver.watch(p0, p1);
  34009. },
  34010. writeFileSync$2(receiver, p0, p1) {
  34011. return receiver.writeFileSync(p0, p1);
  34012. },
  34013. get$path(obj) {
  34014. return obj.path;
  34015. },
  34016. isDirectory$0(receiver) {
  34017. return receiver.isDirectory();
  34018. },
  34019. isFile$0(receiver) {
  34020. return receiver.isFile();
  34021. },
  34022. get$mtime(obj) {
  34023. return obj.mtime;
  34024. },
  34025. then$1$1(receiver, p0) {
  34026. return receiver.then(p0);
  34027. },
  34028. then$2(receiver, p0, p1) {
  34029. return receiver.then(p0, p1);
  34030. },
  34031. getTime$0(receiver) {
  34032. return receiver.getTime();
  34033. },
  34034. get$message(obj) {
  34035. return obj.message;
  34036. },
  34037. message$1(receiver, p0) {
  34038. return receiver.message(p0);
  34039. },
  34040. get$filename(obj) {
  34041. return obj.filename;
  34042. },
  34043. get$id(obj) {
  34044. return obj.id;
  34045. },
  34046. get$code(obj) {
  34047. return obj.code;
  34048. },
  34049. get$syscall(obj) {
  34050. return obj.syscall;
  34051. },
  34052. get$argv(obj) {
  34053. return obj.argv;
  34054. },
  34055. get$env(obj) {
  34056. return obj.env;
  34057. },
  34058. get$exitCode(obj) {
  34059. return obj.exitCode;
  34060. },
  34061. set$exitCode(obj, v) {
  34062. return obj.exitCode = v;
  34063. },
  34064. get$platform(obj) {
  34065. return obj.platform;
  34066. },
  34067. get$release(obj) {
  34068. return obj.release;
  34069. },
  34070. get$stderr(obj) {
  34071. return obj.stderr;
  34072. },
  34073. get$stdin(obj) {
  34074. return obj.stdin;
  34075. },
  34076. get$stdout(obj) {
  34077. return obj.stdout;
  34078. },
  34079. get$name(obj) {
  34080. return obj.name;
  34081. },
  34082. push$1(receiver, p0) {
  34083. return receiver.push(p0);
  34084. },
  34085. call$0(receiver) {
  34086. return receiver.call();
  34087. },
  34088. call$1(receiver, p0) {
  34089. return receiver.call(p0);
  34090. },
  34091. call$2(receiver, p0, p1) {
  34092. return receiver.call(p0, p1);
  34093. },
  34094. call$3$1(receiver, p0) {
  34095. return receiver.call(p0);
  34096. },
  34097. call$2$1(receiver, p0) {
  34098. return receiver.call(p0);
  34099. },
  34100. call$1$1(receiver, p0) {
  34101. return receiver.call(p0);
  34102. },
  34103. call$3(receiver, p0, p1, p2) {
  34104. return receiver.call(p0, p1, p2);
  34105. },
  34106. call$3$3(receiver, p0, p1, p2) {
  34107. return receiver.call(p0, p1, p2);
  34108. },
  34109. call$2$2(receiver, p0, p1) {
  34110. return receiver.call(p0, p1);
  34111. },
  34112. call$2$0(receiver) {
  34113. return receiver.call();
  34114. },
  34115. call$1$0(receiver) {
  34116. return receiver.call();
  34117. },
  34118. call$1$2(receiver, p0, p1) {
  34119. return receiver.call(p0, p1);
  34120. },
  34121. call$2$3(receiver, p0, p1, p2) {
  34122. return receiver.call(p0, p1, p2);
  34123. },
  34124. apply$2(receiver, p0, p1) {
  34125. return receiver.apply(p0, p1);
  34126. },
  34127. toArray$0(receiver) {
  34128. return receiver.toArray();
  34129. },
  34130. asMutable$0(receiver) {
  34131. return receiver.asMutable();
  34132. },
  34133. asImmutable$0(receiver) {
  34134. return receiver.asImmutable();
  34135. },
  34136. $set$2(receiver, p0, p1) {
  34137. return receiver.set(p0, p1);
  34138. },
  34139. forEach$1(receiver, p0) {
  34140. return receiver.forEach(p0);
  34141. },
  34142. get$file(obj) {
  34143. return obj.file;
  34144. },
  34145. get$contents(obj) {
  34146. return obj.contents;
  34147. },
  34148. get$options(obj) {
  34149. return obj.options;
  34150. },
  34151. get$data(obj) {
  34152. return obj.data;
  34153. },
  34154. get$includePaths(obj) {
  34155. return obj.includePaths;
  34156. },
  34157. get$style(obj) {
  34158. return obj.style;
  34159. },
  34160. get$indentType(obj) {
  34161. return obj.indentType;
  34162. },
  34163. get$indentWidth(obj) {
  34164. return obj.indentWidth;
  34165. },
  34166. get$linefeed(obj) {
  34167. return obj.linefeed;
  34168. },
  34169. set$context(obj, v) {
  34170. return obj.context = v;
  34171. },
  34172. createRequire$1(receiver, p0) {
  34173. return receiver.createRequire(p0);
  34174. },
  34175. resolve$1(receiver, p0) {
  34176. return receiver.resolve(p0);
  34177. },
  34178. unsubscribe$0(receiver) {
  34179. return receiver.unsubscribe();
  34180. },
  34181. get$type(obj) {
  34182. return obj.type;
  34183. },
  34184. get$$prototype(obj) {
  34185. return obj.prototype;
  34186. },
  34187. get$red(obj) {
  34188. return obj.red;
  34189. },
  34190. get$green(obj) {
  34191. return obj.green;
  34192. },
  34193. get$blue(obj) {
  34194. return obj.blue;
  34195. },
  34196. get$hue(obj) {
  34197. return obj.hue;
  34198. },
  34199. get$saturation(obj) {
  34200. return obj.saturation;
  34201. },
  34202. get$lightness(obj) {
  34203. return obj.lightness;
  34204. },
  34205. get$whiteness(obj) {
  34206. return obj.whiteness;
  34207. },
  34208. get$blackness(obj) {
  34209. return obj.blackness;
  34210. },
  34211. get$alpha(obj) {
  34212. return obj.alpha;
  34213. },
  34214. get$a(obj) {
  34215. return obj.a;
  34216. },
  34217. get$b(obj) {
  34218. return obj.b;
  34219. },
  34220. get$x(obj) {
  34221. return obj.x;
  34222. },
  34223. get$y(obj) {
  34224. return obj.y;
  34225. },
  34226. get$z(obj) {
  34227. return obj.z;
  34228. },
  34229. get$chroma(obj) {
  34230. return obj.chroma;
  34231. },
  34232. get$space(obj) {
  34233. return obj.space;
  34234. },
  34235. get$method(obj) {
  34236. return obj.method;
  34237. },
  34238. get$weight(obj) {
  34239. return obj.weight;
  34240. },
  34241. get$dartValue(obj) {
  34242. return obj.dartValue;
  34243. },
  34244. set$dartValue(obj, v) {
  34245. return obj.dartValue = v;
  34246. },
  34247. get$alertAscii(obj) {
  34248. return obj.alertAscii;
  34249. },
  34250. get$alertColor(obj) {
  34251. return obj.alertColor;
  34252. },
  34253. get$loadPaths(obj) {
  34254. return obj.loadPaths;
  34255. },
  34256. get$quietDeps(obj) {
  34257. return obj.quietDeps;
  34258. },
  34259. get$verbose(obj) {
  34260. return obj.verbose;
  34261. },
  34262. get$charset(obj) {
  34263. return obj.charset;
  34264. },
  34265. get$sourceMap(obj) {
  34266. return obj.sourceMap;
  34267. },
  34268. get$sourceMapIncludeSources(obj) {
  34269. return obj.sourceMapIncludeSources;
  34270. },
  34271. get$logger(obj) {
  34272. return obj.logger;
  34273. },
  34274. get$importers(obj) {
  34275. return obj.importers;
  34276. },
  34277. get$functions(obj) {
  34278. return obj.functions;
  34279. },
  34280. get$fatalDeprecations(obj) {
  34281. return obj.fatalDeprecations;
  34282. },
  34283. get$silenceDeprecations(obj) {
  34284. return obj.silenceDeprecations;
  34285. },
  34286. get$futureDeprecations(obj) {
  34287. return obj.futureDeprecations;
  34288. },
  34289. get$syntax(obj) {
  34290. return obj.syntax;
  34291. },
  34292. get$url(obj) {
  34293. return obj.url;
  34294. },
  34295. get$importer(obj) {
  34296. return obj.importer;
  34297. },
  34298. get$_dartException(obj) {
  34299. return obj._dartException;
  34300. },
  34301. set$renderSync(obj, v) {
  34302. return obj.renderSync = v;
  34303. },
  34304. set$compileString(obj, v) {
  34305. return obj.compileString = v;
  34306. },
  34307. set$compileStringAsync(obj, v) {
  34308. return obj.compileStringAsync = v;
  34309. },
  34310. set$compile(obj, v) {
  34311. return obj.compile = v;
  34312. },
  34313. set$compileAsync(obj, v) {
  34314. return obj.compileAsync = v;
  34315. },
  34316. set$initCompiler(obj, v) {
  34317. return obj.initCompiler = v;
  34318. },
  34319. set$initAsyncCompiler(obj, v) {
  34320. return obj.initAsyncCompiler = v;
  34321. },
  34322. set$Compiler(obj, v) {
  34323. return obj.Compiler = v;
  34324. },
  34325. set$AsyncCompiler(obj, v) {
  34326. return obj.AsyncCompiler = v;
  34327. },
  34328. set$info(obj, v) {
  34329. return obj.info = v;
  34330. },
  34331. set$Exception(obj, v) {
  34332. return obj.Exception = v;
  34333. },
  34334. set$Logger(obj, v) {
  34335. return obj.Logger = v;
  34336. },
  34337. set$NodePackageImporter(obj, v) {
  34338. return obj.NodePackageImporter = v;
  34339. },
  34340. set$deprecations(obj, v) {
  34341. return obj.deprecations = v;
  34342. },
  34343. set$Version(obj, v) {
  34344. return obj.Version = v;
  34345. },
  34346. set$Value(obj, v) {
  34347. return obj.Value = v;
  34348. },
  34349. set$SassArgumentList(obj, v) {
  34350. return obj.SassArgumentList = v;
  34351. },
  34352. set$SassCalculation(obj, v) {
  34353. return obj.SassCalculation = v;
  34354. },
  34355. set$CalculationOperation(obj, v) {
  34356. return obj.CalculationOperation = v;
  34357. },
  34358. set$CalculationInterpolation(obj, v) {
  34359. return obj.CalculationInterpolation = v;
  34360. },
  34361. set$SassBoolean(obj, v) {
  34362. return obj.SassBoolean = v;
  34363. },
  34364. set$SassColor(obj, v) {
  34365. return obj.SassColor = v;
  34366. },
  34367. set$SassFunction(obj, v) {
  34368. return obj.SassFunction = v;
  34369. },
  34370. set$SassMixin(obj, v) {
  34371. return obj.SassMixin = v;
  34372. },
  34373. set$SassList(obj, v) {
  34374. return obj.SassList = v;
  34375. },
  34376. set$SassMap(obj, v) {
  34377. return obj.SassMap = v;
  34378. },
  34379. set$SassNumber(obj, v) {
  34380. return obj.SassNumber = v;
  34381. },
  34382. set$SassString(obj, v) {
  34383. return obj.SassString = v;
  34384. },
  34385. set$sassNull(obj, v) {
  34386. return obj.sassNull = v;
  34387. },
  34388. set$sassTrue(obj, v) {
  34389. return obj.sassTrue = v;
  34390. },
  34391. set$sassFalse(obj, v) {
  34392. return obj.sassFalse = v;
  34393. },
  34394. set$render(obj, v) {
  34395. return obj.render = v;
  34396. },
  34397. set$types(obj, v) {
  34398. return obj.types = v;
  34399. },
  34400. set$NULL(obj, v) {
  34401. return obj.NULL = v;
  34402. },
  34403. set$TRUE(obj, v) {
  34404. return obj.TRUE = v;
  34405. },
  34406. set$FALSE(obj, v) {
  34407. return obj.FALSE = v;
  34408. },
  34409. set$loadParserExports_(obj, v) {
  34410. return obj.loadParserExports_ = v;
  34411. },
  34412. visitBinaryOperationExpression$1(receiver, p0) {
  34413. return receiver.visitBinaryOperationExpression(p0);
  34414. },
  34415. visitBooleanExpression$1(receiver, p0) {
  34416. return receiver.visitBooleanExpression(p0);
  34417. },
  34418. visitColorExpression$1(receiver, p0) {
  34419. return receiver.visitColorExpression(p0);
  34420. },
  34421. visitInterpolatedFunctionExpression$1(receiver, p0) {
  34422. return receiver.visitInterpolatedFunctionExpression(p0);
  34423. },
  34424. visitFunctionExpression$1(receiver, p0) {
  34425. return receiver.visitFunctionExpression(p0);
  34426. },
  34427. visitIfExpression$1(receiver, p0) {
  34428. return receiver.visitIfExpression(p0);
  34429. },
  34430. visitListExpression$1(receiver, p0) {
  34431. return receiver.visitListExpression(p0);
  34432. },
  34433. visitMapExpression$1(receiver, p0) {
  34434. return receiver.visitMapExpression(p0);
  34435. },
  34436. visitNullExpression$1(receiver, p0) {
  34437. return receiver.visitNullExpression(p0);
  34438. },
  34439. visitNumberExpression$1(receiver, p0) {
  34440. return receiver.visitNumberExpression(p0);
  34441. },
  34442. visitParenthesizedExpression$1(receiver, p0) {
  34443. return receiver.visitParenthesizedExpression(p0);
  34444. },
  34445. visitSelectorExpression$1(receiver, p0) {
  34446. return receiver.visitSelectorExpression(p0);
  34447. },
  34448. visitStringExpression$1(receiver, p0) {
  34449. return receiver.visitStringExpression(p0);
  34450. },
  34451. visitSupportsExpression$1(receiver, p0) {
  34452. return receiver.visitSupportsExpression(p0);
  34453. },
  34454. visitUnaryOperationExpression$1(receiver, p0) {
  34455. return receiver.visitUnaryOperationExpression(p0);
  34456. },
  34457. visitValueExpression$1(receiver, p0) {
  34458. return receiver.visitValueExpression(p0);
  34459. },
  34460. visitVariableExpression$1(receiver, p0) {
  34461. return receiver.visitVariableExpression(p0);
  34462. },
  34463. get$current(obj) {
  34464. return obj.current;
  34465. },
  34466. yield$0(receiver) {
  34467. return receiver.yield();
  34468. },
  34469. run$1$1(receiver, p0) {
  34470. return receiver.run(p0);
  34471. },
  34472. run$1(receiver, p0) {
  34473. return receiver.run(p0);
  34474. },
  34475. run$0(receiver) {
  34476. return receiver.run();
  34477. },
  34478. get$canonicalize(obj) {
  34479. return obj.canonicalize;
  34480. },
  34481. canonicalize$1(receiver, p0) {
  34482. return receiver.canonicalize(p0);
  34483. },
  34484. get$load(obj) {
  34485. return obj.load;
  34486. },
  34487. load$1(receiver, p0) {
  34488. return receiver.load(p0);
  34489. },
  34490. get$findFileUrl(obj) {
  34491. return obj.findFileUrl;
  34492. },
  34493. get$nonCanonicalScheme(obj) {
  34494. return obj.nonCanonicalScheme;
  34495. },
  34496. get$sourceMapUrl(obj) {
  34497. return obj.sourceMapUrl;
  34498. },
  34499. get$separator(obj) {
  34500. return obj.separator;
  34501. },
  34502. get$brackets(obj) {
  34503. return obj.brackets;
  34504. },
  34505. get$numeratorUnits(obj) {
  34506. return obj.numeratorUnits;
  34507. },
  34508. get$denominatorUnits(obj) {
  34509. return obj.denominatorUnits;
  34510. },
  34511. get$pkgImporter(obj) {
  34512. return obj.pkgImporter;
  34513. },
  34514. get$indentedSyntax(obj) {
  34515. return obj.indentedSyntax;
  34516. },
  34517. get$omitSourceMapUrl(obj) {
  34518. return obj.omitSourceMapUrl;
  34519. },
  34520. get$outFile(obj) {
  34521. return obj.outFile;
  34522. },
  34523. get$outputStyle(obj) {
  34524. return obj.outputStyle;
  34525. },
  34526. get$fiber(obj) {
  34527. return obj.fiber;
  34528. },
  34529. get$sourceMapContents(obj) {
  34530. return obj.sourceMapContents;
  34531. },
  34532. get$sourceMapEmbed(obj) {
  34533. return obj.sourceMapEmbed;
  34534. },
  34535. get$sourceMapRoot(obj) {
  34536. return obj.sourceMapRoot;
  34537. },
  34538. set$cli_pkg_main_0_(obj, v) {
  34539. return obj.cli_pkg_main_0_ = v;
  34540. },
  34541. visitAtRootRule$1(receiver, p0) {
  34542. return receiver.visitAtRootRule(p0);
  34543. },
  34544. visitAtRule$1(receiver, p0) {
  34545. return receiver.visitAtRule(p0);
  34546. },
  34547. get$visitContentBlock(obj) {
  34548. return obj.visitContentBlock;
  34549. },
  34550. visitContentBlock$1(receiver, p0) {
  34551. return receiver.visitContentBlock(p0);
  34552. },
  34553. visitContentRule$1(receiver, p0) {
  34554. return receiver.visitContentRule(p0);
  34555. },
  34556. visitDebugRule$1(receiver, p0) {
  34557. return receiver.visitDebugRule(p0);
  34558. },
  34559. visitDeclaration$1(receiver, p0) {
  34560. return receiver.visitDeclaration(p0);
  34561. },
  34562. visitEachRule$1(receiver, p0) {
  34563. return receiver.visitEachRule(p0);
  34564. },
  34565. visitErrorRule$1(receiver, p0) {
  34566. return receiver.visitErrorRule(p0);
  34567. },
  34568. visitExtendRule$1(receiver, p0) {
  34569. return receiver.visitExtendRule(p0);
  34570. },
  34571. visitForRule$1(receiver, p0) {
  34572. return receiver.visitForRule(p0);
  34573. },
  34574. visitForwardRule$1(receiver, p0) {
  34575. return receiver.visitForwardRule(p0);
  34576. },
  34577. visitFunctionRule$1(receiver, p0) {
  34578. return receiver.visitFunctionRule(p0);
  34579. },
  34580. visitIfRule$1(receiver, p0) {
  34581. return receiver.visitIfRule(p0);
  34582. },
  34583. visitImportRule$1(receiver, p0) {
  34584. return receiver.visitImportRule(p0);
  34585. },
  34586. visitIncludeRule$1(receiver, p0) {
  34587. return receiver.visitIncludeRule(p0);
  34588. },
  34589. visitLoudComment$1(receiver, p0) {
  34590. return receiver.visitLoudComment(p0);
  34591. },
  34592. visitMediaRule$1(receiver, p0) {
  34593. return receiver.visitMediaRule(p0);
  34594. },
  34595. visitMixinRule$1(receiver, p0) {
  34596. return receiver.visitMixinRule(p0);
  34597. },
  34598. visitReturnRule$1(receiver, p0) {
  34599. return receiver.visitReturnRule(p0);
  34600. },
  34601. visitSilentComment$1(receiver, p0) {
  34602. return receiver.visitSilentComment(p0);
  34603. },
  34604. visitStyleRule$1(receiver, p0) {
  34605. return receiver.visitStyleRule(p0);
  34606. },
  34607. visitStylesheet$1(receiver, p0) {
  34608. return receiver.visitStylesheet(p0);
  34609. },
  34610. visitSupportsRule$1(receiver, p0) {
  34611. return receiver.visitSupportsRule(p0);
  34612. },
  34613. visitUseRule$1(receiver, p0) {
  34614. return receiver.visitUseRule(p0);
  34615. },
  34616. visitVariableDeclaration$1(receiver, p0) {
  34617. return receiver.visitVariableDeclaration(p0);
  34618. },
  34619. visitWarnRule$1(receiver, p0) {
  34620. return receiver.visitWarnRule(p0);
  34621. },
  34622. visitWhileRule$1(receiver, p0) {
  34623. return receiver.visitWhileRule(p0);
  34624. },
  34625. get$quotes(obj) {
  34626. return obj.quotes;
  34627. }
  34628. };
  34629. J.PlainJavaScriptObject.prototype = {};
  34630. J.UnknownJavaScriptObject.prototype = {};
  34631. J.JavaScriptFunction.prototype = {
  34632. toString$0(receiver) {
  34633. var dartClosure = receiver[$.$get$DART_CLOSURE_PROPERTY_NAME()];
  34634. if (dartClosure == null)
  34635. return this.super$LegacyJavaScriptObject$toString(receiver);
  34636. return "JavaScript function for " + A.S(J.toString$0$(dartClosure));
  34637. },
  34638. $isFunction: 1
  34639. };
  34640. J.JavaScriptBigInt.prototype = {
  34641. get$hashCode(receiver) {
  34642. return 0;
  34643. },
  34644. toString$0(receiver) {
  34645. return String(receiver);
  34646. }
  34647. };
  34648. J.JavaScriptSymbol.prototype = {
  34649. get$hashCode(receiver) {
  34650. return 0;
  34651. },
  34652. toString$0(receiver) {
  34653. return String(receiver);
  34654. }
  34655. };
  34656. J.JSArray.prototype = {
  34657. cast$1$0(receiver, $R) {
  34658. return new A.CastList(receiver, A._arrayInstanceType(receiver)._eval$1("@<1>")._bind$1($R)._eval$1("CastList<1,2>"));
  34659. },
  34660. add$1(receiver, value) {
  34661. if (!!receiver.fixed$length)
  34662. A.throwExpression(A.UnsupportedError$("add"));
  34663. receiver.push(value);
  34664. },
  34665. removeAt$1(receiver, index) {
  34666. var t1;
  34667. if (!!receiver.fixed$length)
  34668. A.throwExpression(A.UnsupportedError$("removeAt"));
  34669. t1 = receiver.length;
  34670. if (index >= t1)
  34671. throw A.wrapException(A.RangeError$value(index, null, null));
  34672. return receiver.splice(index, 1)[0];
  34673. },
  34674. insert$2(receiver, index, value) {
  34675. var t1;
  34676. if (!!receiver.fixed$length)
  34677. A.throwExpression(A.UnsupportedError$("insert"));
  34678. t1 = receiver.length;
  34679. if (index > t1)
  34680. throw A.wrapException(A.RangeError$value(index, null, null));
  34681. receiver.splice(index, 0, value);
  34682. },
  34683. insertAll$2(receiver, index, iterable) {
  34684. var insertionLength, end;
  34685. if (!!receiver.fixed$length)
  34686. A.throwExpression(A.UnsupportedError$("insertAll"));
  34687. A.RangeError_checkValueInInterval(index, 0, receiver.length, "index");
  34688. if (!type$.EfficientLengthIterable_dynamic._is(iterable))
  34689. iterable = J.toList$0$ax(iterable);
  34690. insertionLength = J.get$length$asx(iterable);
  34691. receiver.length = receiver.length + insertionLength;
  34692. end = index + insertionLength;
  34693. this.setRange$4(receiver, end, receiver.length, receiver, index);
  34694. this.setRange$3(receiver, index, end, iterable);
  34695. },
  34696. removeLast$0(receiver) {
  34697. if (!!receiver.fixed$length)
  34698. A.throwExpression(A.UnsupportedError$("removeLast"));
  34699. if (receiver.length === 0)
  34700. throw A.wrapException(A.diagnoseIndexError(receiver, -1));
  34701. return receiver.pop();
  34702. },
  34703. _removeWhere$2(receiver, test, removeMatching) {
  34704. var i, element, t1, retained = [],
  34705. end = receiver.length;
  34706. for (i = 0; i < end; ++i) {
  34707. element = receiver[i];
  34708. if (!test.call$1(element))
  34709. retained.push(element);
  34710. if (receiver.length !== end)
  34711. throw A.wrapException(A.ConcurrentModificationError$(receiver));
  34712. }
  34713. t1 = retained.length;
  34714. if (t1 === end)
  34715. return;
  34716. this.set$length(receiver, t1);
  34717. for (i = 0; i < retained.length; ++i)
  34718. receiver[i] = retained[i];
  34719. },
  34720. where$1(receiver, f) {
  34721. return new A.WhereIterable(receiver, f, A._arrayInstanceType(receiver)._eval$1("WhereIterable<1>"));
  34722. },
  34723. expand$1$1(receiver, f, $T) {
  34724. return new A.ExpandIterable(receiver, f, A._arrayInstanceType(receiver)._eval$1("@<1>")._bind$1($T)._eval$1("ExpandIterable<1,2>"));
  34725. },
  34726. addAll$1(receiver, collection) {
  34727. var t1;
  34728. if (!!receiver.fixed$length)
  34729. A.throwExpression(A.UnsupportedError$("addAll"));
  34730. if (Array.isArray(collection)) {
  34731. this._addAllFromArray$1(receiver, collection);
  34732. return;
  34733. }
  34734. for (t1 = J.get$iterator$ax(collection); t1.moveNext$0();)
  34735. receiver.push(t1.get$current(t1));
  34736. },
  34737. _addAllFromArray$1(receiver, array) {
  34738. var i,
  34739. len = array.length;
  34740. if (len === 0)
  34741. return;
  34742. if (receiver === array)
  34743. throw A.wrapException(A.ConcurrentModificationError$(receiver));
  34744. for (i = 0; i < len; ++i)
  34745. receiver.push(array[i]);
  34746. },
  34747. clear$0(receiver) {
  34748. if (!!receiver.fixed$length)
  34749. A.throwExpression(A.UnsupportedError$("clear"));
  34750. receiver.length = 0;
  34751. },
  34752. forEach$1(receiver, f) {
  34753. var i,
  34754. end = receiver.length;
  34755. for (i = 0; i < end; ++i) {
  34756. f.call$1(receiver[i]);
  34757. if (receiver.length !== end)
  34758. throw A.wrapException(A.ConcurrentModificationError$(receiver));
  34759. }
  34760. },
  34761. map$1$1(receiver, f, $T) {
  34762. return new A.MappedListIterable(receiver, f, A._arrayInstanceType(receiver)._eval$1("@<1>")._bind$1($T)._eval$1("MappedListIterable<1,2>"));
  34763. },
  34764. join$1(receiver, separator) {
  34765. var i,
  34766. list = A.List_List$filled(receiver.length, "", false, type$.String);
  34767. for (i = 0; i < receiver.length; ++i)
  34768. list[i] = A.S(receiver[i]);
  34769. return list.join(separator);
  34770. },
  34771. join$0(receiver) {
  34772. return this.join$1(receiver, "");
  34773. },
  34774. take$1(receiver, n) {
  34775. return A.SubListIterable$(receiver, 0, A.checkNotNullable(n, "count", type$.int), A._arrayInstanceType(receiver)._precomputed1);
  34776. },
  34777. skip$1(receiver, n) {
  34778. return A.SubListIterable$(receiver, n, null, A._arrayInstanceType(receiver)._precomputed1);
  34779. },
  34780. fold$1$2(receiver, initialValue, combine) {
  34781. var value, i,
  34782. $length = receiver.length;
  34783. for (value = initialValue, i = 0; i < $length; ++i) {
  34784. value = combine.call$2(value, receiver[i]);
  34785. if (receiver.length !== $length)
  34786. throw A.wrapException(A.ConcurrentModificationError$(receiver));
  34787. }
  34788. return value;
  34789. },
  34790. fold$2(receiver, initialValue, combine) {
  34791. return this.fold$1$2(receiver, initialValue, combine, type$.dynamic);
  34792. },
  34793. firstWhere$1(receiver, test) {
  34794. var i, element,
  34795. end = receiver.length;
  34796. for (i = 0; i < end; ++i) {
  34797. element = receiver[i];
  34798. if (test.call$1(element))
  34799. return element;
  34800. if (receiver.length !== end)
  34801. throw A.wrapException(A.ConcurrentModificationError$(receiver));
  34802. }
  34803. throw A.wrapException(A.IterableElementError_noElement());
  34804. },
  34805. elementAt$1(receiver, index) {
  34806. return receiver[index];
  34807. },
  34808. sublist$2(receiver, start, end) {
  34809. var end0 = receiver.length;
  34810. if (start > end0)
  34811. throw A.wrapException(A.RangeError$range(start, 0, end0, "start", null));
  34812. if (end == null)
  34813. end = end0;
  34814. else if (end < start || end > end0)
  34815. throw A.wrapException(A.RangeError$range(end, start, end0, "end", null));
  34816. if (start === end)
  34817. return A._setArrayType([], A._arrayInstanceType(receiver));
  34818. return A._setArrayType(receiver.slice(start, end), A._arrayInstanceType(receiver));
  34819. },
  34820. sublist$1(receiver, start) {
  34821. return this.sublist$2(receiver, start, null);
  34822. },
  34823. getRange$2(receiver, start, end) {
  34824. A.RangeError_checkValidRange(start, end, receiver.length);
  34825. return A.SubListIterable$(receiver, start, end, A._arrayInstanceType(receiver)._precomputed1);
  34826. },
  34827. get$first(receiver) {
  34828. if (receiver.length > 0)
  34829. return receiver[0];
  34830. throw A.wrapException(A.IterableElementError_noElement());
  34831. },
  34832. get$last(receiver) {
  34833. var t1 = receiver.length;
  34834. if (t1 > 0)
  34835. return receiver[t1 - 1];
  34836. throw A.wrapException(A.IterableElementError_noElement());
  34837. },
  34838. get$single(receiver) {
  34839. var t1 = receiver.length;
  34840. if (t1 === 1)
  34841. return receiver[0];
  34842. if (t1 === 0)
  34843. throw A.wrapException(A.IterableElementError_noElement());
  34844. throw A.wrapException(A.IterableElementError_tooMany());
  34845. },
  34846. removeRange$2(receiver, start, end) {
  34847. if (!!receiver.fixed$length)
  34848. A.throwExpression(A.UnsupportedError$("removeRange"));
  34849. A.RangeError_checkValidRange(start, end, receiver.length);
  34850. receiver.splice(start, end - start);
  34851. },
  34852. setRange$4(receiver, start, end, iterable, skipCount) {
  34853. var $length, otherList, otherStart, t1, i;
  34854. if (!!receiver.immutable$list)
  34855. A.throwExpression(A.UnsupportedError$("setRange"));
  34856. A.RangeError_checkValidRange(start, end, receiver.length);
  34857. $length = end - start;
  34858. if ($length === 0)
  34859. return;
  34860. A.RangeError_checkNotNegative(skipCount, "skipCount");
  34861. if (type$.List_dynamic._is(iterable)) {
  34862. otherList = iterable;
  34863. otherStart = skipCount;
  34864. } else {
  34865. otherList = J.skip$1$ax(iterable, skipCount).toList$1$growable(0, false);
  34866. otherStart = 0;
  34867. }
  34868. t1 = J.getInterceptor$asx(otherList);
  34869. if (otherStart + $length > t1.get$length(otherList))
  34870. throw A.wrapException(A.IterableElementError_tooFew());
  34871. if (otherStart < start)
  34872. for (i = $length - 1; i >= 0; --i)
  34873. receiver[start + i] = t1.$index(otherList, otherStart + i);
  34874. else
  34875. for (i = 0; i < $length; ++i)
  34876. receiver[start + i] = t1.$index(otherList, otherStart + i);
  34877. },
  34878. setRange$3(receiver, start, end, iterable) {
  34879. return this.setRange$4(receiver, start, end, iterable, 0);
  34880. },
  34881. fillRange$3(receiver, start, end, fillValue) {
  34882. var i;
  34883. if (!!receiver.immutable$list)
  34884. A.throwExpression(A.UnsupportedError$("fill range"));
  34885. A.RangeError_checkValidRange(start, end, receiver.length);
  34886. A._arrayInstanceType(receiver)._precomputed1._as(fillValue);
  34887. for (i = start; i < end; ++i)
  34888. receiver[i] = fillValue;
  34889. },
  34890. any$1(receiver, test) {
  34891. var i,
  34892. end = receiver.length;
  34893. for (i = 0; i < end; ++i) {
  34894. if (test.call$1(receiver[i]))
  34895. return true;
  34896. if (receiver.length !== end)
  34897. throw A.wrapException(A.ConcurrentModificationError$(receiver));
  34898. }
  34899. return false;
  34900. },
  34901. every$1(receiver, test) {
  34902. var i,
  34903. end = receiver.length;
  34904. for (i = 0; i < end; ++i) {
  34905. if (!test.call$1(receiver[i]))
  34906. return false;
  34907. if (receiver.length !== end)
  34908. throw A.wrapException(A.ConcurrentModificationError$(receiver));
  34909. }
  34910. return true;
  34911. },
  34912. get$reversed(receiver) {
  34913. return new A.ReversedListIterable(receiver, A._arrayInstanceType(receiver)._eval$1("ReversedListIterable<1>"));
  34914. },
  34915. sort$1(receiver, compare) {
  34916. var len, a, b, undefineds, i;
  34917. if (!!receiver.immutable$list)
  34918. A.throwExpression(A.UnsupportedError$("sort"));
  34919. len = receiver.length;
  34920. if (len < 2)
  34921. return;
  34922. if (compare == null)
  34923. compare = J._interceptors_JSArray__compareAny$closure();
  34924. if (len === 2) {
  34925. a = receiver[0];
  34926. b = receiver[1];
  34927. if (compare.call$2(a, b) > 0) {
  34928. receiver[0] = b;
  34929. receiver[1] = a;
  34930. }
  34931. return;
  34932. }
  34933. undefineds = 0;
  34934. if (A._arrayInstanceType(receiver)._precomputed1._is(null))
  34935. for (i = 0; i < receiver.length; ++i)
  34936. if (receiver[i] === void 0) {
  34937. receiver[i] = null;
  34938. ++undefineds;
  34939. }
  34940. receiver.sort(A.convertDartClosureToJS(compare, 2));
  34941. if (undefineds > 0)
  34942. this._replaceSomeNullsWithUndefined$1(receiver, undefineds);
  34943. },
  34944. sort$0(receiver) {
  34945. return this.sort$1(receiver, null);
  34946. },
  34947. _replaceSomeNullsWithUndefined$1(receiver, count) {
  34948. var i0,
  34949. i = receiver.length;
  34950. for (; i0 = i - 1, i > 0; i = i0)
  34951. if (receiver[i0] === null) {
  34952. receiver[i0] = void 0;
  34953. --count;
  34954. if (count === 0)
  34955. break;
  34956. }
  34957. },
  34958. indexOf$1(receiver, element) {
  34959. var i,
  34960. $length = receiver.length;
  34961. if (0 >= $length)
  34962. return -1;
  34963. for (i = 0; i < $length; ++i)
  34964. if (J.$eq$(receiver[i], element))
  34965. return i;
  34966. return -1;
  34967. },
  34968. contains$1(receiver, other) {
  34969. var i;
  34970. for (i = 0; i < receiver.length; ++i)
  34971. if (J.$eq$(receiver[i], other))
  34972. return true;
  34973. return false;
  34974. },
  34975. get$isEmpty(receiver) {
  34976. return receiver.length === 0;
  34977. },
  34978. get$isNotEmpty(receiver) {
  34979. return receiver.length !== 0;
  34980. },
  34981. toString$0(receiver) {
  34982. return A.Iterable_iterableToFullString(receiver, "[", "]");
  34983. },
  34984. toList$1$growable(receiver, growable) {
  34985. var t1 = A._setArrayType(receiver.slice(0), A._arrayInstanceType(receiver));
  34986. return t1;
  34987. },
  34988. toList$0(receiver) {
  34989. return this.toList$1$growable(receiver, true);
  34990. },
  34991. toSet$0(receiver) {
  34992. return A.LinkedHashSet_LinkedHashSet$from(receiver, A._arrayInstanceType(receiver)._precomputed1);
  34993. },
  34994. get$iterator(receiver) {
  34995. return new J.ArrayIterator(receiver, receiver.length, A._arrayInstanceType(receiver)._eval$1("ArrayIterator<1>"));
  34996. },
  34997. get$hashCode(receiver) {
  34998. return A.Primitives_objectHashCode(receiver);
  34999. },
  35000. get$length(receiver) {
  35001. return receiver.length;
  35002. },
  35003. set$length(receiver, newLength) {
  35004. if (!!receiver.fixed$length)
  35005. A.throwExpression(A.UnsupportedError$("set length"));
  35006. if (newLength < 0)
  35007. throw A.wrapException(A.RangeError$range(newLength, 0, null, "newLength", null));
  35008. if (newLength > receiver.length)
  35009. A._arrayInstanceType(receiver)._precomputed1._as(null);
  35010. receiver.length = newLength;
  35011. },
  35012. $index(receiver, index) {
  35013. if (!(index >= 0 && index < receiver.length))
  35014. throw A.wrapException(A.diagnoseIndexError(receiver, index));
  35015. return receiver[index];
  35016. },
  35017. $indexSet(receiver, index, value) {
  35018. if (!!receiver.immutable$list)
  35019. A.throwExpression(A.UnsupportedError$("indexed set"));
  35020. if (!(index >= 0 && index < receiver.length))
  35021. throw A.wrapException(A.diagnoseIndexError(receiver, index));
  35022. receiver[index] = value;
  35023. },
  35024. $add(receiver, other) {
  35025. var t1 = A.List_List$of(receiver, true, A._arrayInstanceType(receiver)._precomputed1);
  35026. this.addAll$1(t1, other);
  35027. return t1;
  35028. },
  35029. indexWhere$1(receiver, test) {
  35030. var i;
  35031. if (0 >= receiver.length)
  35032. return -1;
  35033. for (i = 0; i < receiver.length; ++i)
  35034. if (test.call$1(receiver[i]))
  35035. return i;
  35036. return -1;
  35037. },
  35038. $isEfficientLengthIterable: 1,
  35039. $isIterable: 1,
  35040. $isList: 1
  35041. };
  35042. J.JSUnmodifiableArray.prototype = {};
  35043. J.ArrayIterator.prototype = {
  35044. get$current(_) {
  35045. var t1 = this._current;
  35046. return t1 == null ? this.$ti._precomputed1._as(t1) : t1;
  35047. },
  35048. moveNext$0() {
  35049. var t2, _this = this,
  35050. t1 = _this._iterable,
  35051. $length = t1.length;
  35052. if (_this._length !== $length)
  35053. throw A.wrapException(A.throwConcurrentModificationError(t1));
  35054. t2 = _this._index;
  35055. if (t2 >= $length) {
  35056. _this._current = null;
  35057. return false;
  35058. }
  35059. _this._current = t1[t2];
  35060. _this._index = t2 + 1;
  35061. return true;
  35062. }
  35063. };
  35064. J.JSNumber.prototype = {
  35065. compareTo$1(receiver, b) {
  35066. var bIsNegative;
  35067. if (receiver < b)
  35068. return -1;
  35069. else if (receiver > b)
  35070. return 1;
  35071. else if (receiver === b) {
  35072. if (receiver === 0) {
  35073. bIsNegative = this.get$isNegative(b);
  35074. if (this.get$isNegative(receiver) === bIsNegative)
  35075. return 0;
  35076. if (this.get$isNegative(receiver))
  35077. return -1;
  35078. return 1;
  35079. }
  35080. return 0;
  35081. } else if (isNaN(receiver)) {
  35082. if (isNaN(b))
  35083. return 0;
  35084. return 1;
  35085. } else
  35086. return -1;
  35087. },
  35088. get$isNegative(receiver) {
  35089. return receiver === 0 ? 1 / receiver < 0 : receiver < 0;
  35090. },
  35091. get$sign(receiver) {
  35092. var t1;
  35093. if (receiver > 0)
  35094. t1 = 1;
  35095. else
  35096. t1 = receiver < 0 ? -1 : receiver;
  35097. return t1;
  35098. },
  35099. ceil$0(receiver) {
  35100. var truncated, d;
  35101. if (receiver >= 0) {
  35102. if (receiver <= 2147483647) {
  35103. truncated = receiver | 0;
  35104. return receiver === truncated ? truncated : truncated + 1;
  35105. }
  35106. } else if (receiver >= -2147483648)
  35107. return receiver | 0;
  35108. d = Math.ceil(receiver);
  35109. if (isFinite(d))
  35110. return d;
  35111. throw A.wrapException(A.UnsupportedError$("" + receiver + ".ceil()"));
  35112. },
  35113. floor$0(receiver) {
  35114. var truncated, d;
  35115. if (receiver >= 0) {
  35116. if (receiver <= 2147483647)
  35117. return receiver | 0;
  35118. } else if (receiver >= -2147483648) {
  35119. truncated = receiver | 0;
  35120. return receiver === truncated ? truncated : truncated - 1;
  35121. }
  35122. d = Math.floor(receiver);
  35123. if (isFinite(d))
  35124. return d;
  35125. throw A.wrapException(A.UnsupportedError$("" + receiver + ".floor()"));
  35126. },
  35127. round$0(receiver) {
  35128. if (receiver > 0) {
  35129. if (receiver !== 1 / 0)
  35130. return Math.round(receiver);
  35131. } else if (receiver > -1 / 0)
  35132. return 0 - Math.round(0 - receiver);
  35133. throw A.wrapException(A.UnsupportedError$("" + receiver + ".round()"));
  35134. },
  35135. clamp$2(receiver, lowerLimit, upperLimit) {
  35136. if (this.compareTo$1(lowerLimit, upperLimit) > 0)
  35137. throw A.wrapException(A.argumentErrorValue(lowerLimit));
  35138. if (this.compareTo$1(receiver, lowerLimit) < 0)
  35139. return lowerLimit;
  35140. if (this.compareTo$1(receiver, upperLimit) > 0)
  35141. return upperLimit;
  35142. return receiver;
  35143. },
  35144. toRadixString$1(receiver, radix) {
  35145. var result, match, exponent, t1;
  35146. if (radix < 2 || radix > 36)
  35147. throw A.wrapException(A.RangeError$range(radix, 2, 36, "radix", null));
  35148. result = receiver.toString(radix);
  35149. if (result.charCodeAt(result.length - 1) !== 41)
  35150. return result;
  35151. match = /^([\da-z]+)(?:\.([\da-z]+))?\(e\+(\d+)\)$/.exec(result);
  35152. if (match == null)
  35153. A.throwExpression(A.UnsupportedError$("Unexpected toString result: " + result));
  35154. result = match[1];
  35155. exponent = +match[3];
  35156. t1 = match[2];
  35157. if (t1 != null) {
  35158. result += t1;
  35159. exponent -= t1.length;
  35160. }
  35161. return result + B.JSString_methods.$mul("0", exponent);
  35162. },
  35163. toString$0(receiver) {
  35164. if (receiver === 0 && 1 / receiver < 0)
  35165. return "-0.0";
  35166. else
  35167. return "" + receiver;
  35168. },
  35169. get$hashCode(receiver) {
  35170. var absolute, floorLog2, factor, scaled,
  35171. intValue = receiver | 0;
  35172. if (receiver === intValue)
  35173. return intValue & 536870911;
  35174. absolute = Math.abs(receiver);
  35175. floorLog2 = Math.log(absolute) / 0.6931471805599453 | 0;
  35176. factor = Math.pow(2, floorLog2);
  35177. scaled = absolute < 1 ? absolute / factor : factor / absolute;
  35178. return ((scaled * 9007199254740992 | 0) + (scaled * 3542243181176521 | 0)) * 599197 + floorLog2 * 1259 & 536870911;
  35179. },
  35180. $mod(receiver, other) {
  35181. var result = receiver % other;
  35182. if (result === 0)
  35183. return 0;
  35184. if (result > 0)
  35185. return result;
  35186. if (other < 0)
  35187. return result - other;
  35188. else
  35189. return result + other;
  35190. },
  35191. $tdiv(receiver, other) {
  35192. if ((receiver | 0) === receiver)
  35193. if (other >= 1 || other < -1)
  35194. return receiver / other | 0;
  35195. return this._tdivSlow$1(receiver, other);
  35196. },
  35197. _tdivFast$1(receiver, other) {
  35198. return (receiver | 0) === receiver ? receiver / other | 0 : this._tdivSlow$1(receiver, other);
  35199. },
  35200. _tdivSlow$1(receiver, other) {
  35201. var quotient = receiver / other;
  35202. if (quotient >= -2147483648 && quotient <= 2147483647)
  35203. return quotient | 0;
  35204. if (quotient > 0) {
  35205. if (quotient !== 1 / 0)
  35206. return Math.floor(quotient);
  35207. } else if (quotient > -1 / 0)
  35208. return Math.ceil(quotient);
  35209. throw A.wrapException(A.UnsupportedError$("Result of truncating division is " + A.S(quotient) + ": " + A.S(receiver) + " ~/ " + other));
  35210. },
  35211. _shrOtherPositive$1(receiver, other) {
  35212. var t1;
  35213. if (receiver > 0)
  35214. t1 = this._shrBothPositive$1(receiver, other);
  35215. else {
  35216. t1 = other > 31 ? 31 : other;
  35217. t1 = receiver >> t1 >>> 0;
  35218. }
  35219. return t1;
  35220. },
  35221. _shrReceiverPositive$1(receiver, other) {
  35222. if (0 > other)
  35223. throw A.wrapException(A.argumentErrorValue(other));
  35224. return this._shrBothPositive$1(receiver, other);
  35225. },
  35226. _shrBothPositive$1(receiver, other) {
  35227. return other > 31 ? 0 : receiver >>> other;
  35228. },
  35229. get$runtimeType(receiver) {
  35230. return A.createRuntimeType(type$.num);
  35231. },
  35232. $isComparable: 1,
  35233. $isdouble: 1,
  35234. $isnum: 1
  35235. };
  35236. J.JSInt.prototype = {
  35237. get$sign(receiver) {
  35238. var t1;
  35239. if (receiver > 0)
  35240. t1 = 1;
  35241. else
  35242. t1 = receiver < 0 ? -1 : receiver;
  35243. return t1;
  35244. },
  35245. get$runtimeType(receiver) {
  35246. return A.createRuntimeType(type$.int);
  35247. },
  35248. $isTrustedGetRuntimeType: 1,
  35249. $isint: 1
  35250. };
  35251. J.JSNumNotInt.prototype = {
  35252. get$runtimeType(receiver) {
  35253. return A.createRuntimeType(type$.double);
  35254. },
  35255. $isTrustedGetRuntimeType: 1
  35256. };
  35257. J.JSString.prototype = {
  35258. codeUnitAt$1(receiver, index) {
  35259. if (index < 0)
  35260. throw A.wrapException(A.diagnoseIndexError(receiver, index));
  35261. if (index >= receiver.length)
  35262. A.throwExpression(A.diagnoseIndexError(receiver, index));
  35263. return receiver.charCodeAt(index);
  35264. },
  35265. allMatches$2(receiver, string, start) {
  35266. var t1 = string.length;
  35267. if (start > t1)
  35268. throw A.wrapException(A.RangeError$range(start, 0, t1, null, null));
  35269. return new A._StringAllMatchesIterable(string, receiver, start);
  35270. },
  35271. allMatches$1(receiver, string) {
  35272. return this.allMatches$2(receiver, string, 0);
  35273. },
  35274. matchAsPrefix$2(receiver, string, start) {
  35275. var t1, i, _null = null;
  35276. if (start < 0 || start > string.length)
  35277. throw A.wrapException(A.RangeError$range(start, 0, string.length, _null, _null));
  35278. t1 = receiver.length;
  35279. if (start + t1 > string.length)
  35280. return _null;
  35281. for (i = 0; i < t1; ++i)
  35282. if (string.charCodeAt(start + i) !== receiver.charCodeAt(i))
  35283. return _null;
  35284. return new A.StringMatch(start, receiver);
  35285. },
  35286. $add(receiver, other) {
  35287. return receiver + other;
  35288. },
  35289. endsWith$1(receiver, other) {
  35290. var otherLength = other.length,
  35291. t1 = receiver.length;
  35292. if (otherLength > t1)
  35293. return false;
  35294. return other === this.substring$1(receiver, t1 - otherLength);
  35295. },
  35296. replaceFirst$2(receiver, from, to) {
  35297. A.RangeError_checkValueInInterval(0, 0, receiver.length, "startIndex");
  35298. return A.stringReplaceFirstUnchecked(receiver, from, to, 0);
  35299. },
  35300. split$1(receiver, pattern) {
  35301. if (typeof pattern == "string")
  35302. return A._setArrayType(receiver.split(pattern), type$.JSArray_String);
  35303. else if (pattern instanceof A.JSSyntaxRegExp && pattern.get$_nativeAnchoredVersion().exec("").length - 2 === 0)
  35304. return A._setArrayType(receiver.split(pattern._nativeRegExp), type$.JSArray_String);
  35305. else
  35306. return this._defaultSplit$1(receiver, pattern);
  35307. },
  35308. replaceRange$3(receiver, start, end, replacement) {
  35309. var e = A.RangeError_checkValidRange(start, end, receiver.length);
  35310. return A.stringReplaceRangeUnchecked(receiver, start, e, replacement);
  35311. },
  35312. _defaultSplit$1(receiver, pattern) {
  35313. var t1, start, $length, match, matchStart, matchEnd,
  35314. result = A._setArrayType([], type$.JSArray_String);
  35315. for (t1 = J.allMatches$1$s(pattern, receiver), t1 = t1.get$iterator(t1), start = 0, $length = 1; t1.moveNext$0();) {
  35316. match = t1.get$current(t1);
  35317. matchStart = match.get$start(match);
  35318. matchEnd = match.get$end(match);
  35319. $length = matchEnd - matchStart;
  35320. if ($length === 0 && start === matchStart)
  35321. continue;
  35322. result.push(this.substring$2(receiver, start, matchStart));
  35323. start = matchEnd;
  35324. }
  35325. if (start < receiver.length || $length > 0)
  35326. result.push(this.substring$1(receiver, start));
  35327. return result;
  35328. },
  35329. startsWith$2(receiver, pattern, index) {
  35330. var endIndex;
  35331. if (index < 0 || index > receiver.length)
  35332. throw A.wrapException(A.RangeError$range(index, 0, receiver.length, null, null));
  35333. if (typeof pattern == "string") {
  35334. endIndex = index + pattern.length;
  35335. if (endIndex > receiver.length)
  35336. return false;
  35337. return pattern === receiver.substring(index, endIndex);
  35338. }
  35339. return J.matchAsPrefix$2$s(pattern, receiver, index) != null;
  35340. },
  35341. startsWith$1(receiver, pattern) {
  35342. return this.startsWith$2(receiver, pattern, 0);
  35343. },
  35344. substring$2(receiver, start, end) {
  35345. return receiver.substring(start, A.RangeError_checkValidRange(start, end, receiver.length));
  35346. },
  35347. substring$1(receiver, start) {
  35348. return this.substring$2(receiver, start, null);
  35349. },
  35350. trim$0(receiver) {
  35351. var startIndex, t1, endIndex0,
  35352. result = receiver.trim(),
  35353. endIndex = result.length;
  35354. if (endIndex === 0)
  35355. return result;
  35356. if (result.charCodeAt(0) === 133) {
  35357. startIndex = J.JSString__skipLeadingWhitespace(result, 1);
  35358. if (startIndex === endIndex)
  35359. return "";
  35360. } else
  35361. startIndex = 0;
  35362. t1 = endIndex - 1;
  35363. endIndex0 = result.charCodeAt(t1) === 133 ? J.JSString__skipTrailingWhitespace(result, t1) : endIndex;
  35364. if (startIndex === 0 && endIndex0 === endIndex)
  35365. return result;
  35366. return result.substring(startIndex, endIndex0);
  35367. },
  35368. trimLeft$0(receiver) {
  35369. var result = receiver.trimStart();
  35370. if (result.length === 0)
  35371. return result;
  35372. if (result.charCodeAt(0) !== 133)
  35373. return result;
  35374. return result.substring(J.JSString__skipLeadingWhitespace(result, 1));
  35375. },
  35376. trimRight$0(receiver) {
  35377. var t1,
  35378. result = receiver.trimEnd(),
  35379. endIndex = result.length;
  35380. if (endIndex === 0)
  35381. return result;
  35382. t1 = endIndex - 1;
  35383. if (result.charCodeAt(t1) !== 133)
  35384. return result;
  35385. return result.substring(0, J.JSString__skipTrailingWhitespace(result, t1));
  35386. },
  35387. $mul(receiver, times) {
  35388. var s, result;
  35389. if (0 >= times)
  35390. return "";
  35391. if (times === 1 || receiver.length === 0)
  35392. return receiver;
  35393. if (times !== times >>> 0)
  35394. throw A.wrapException(B.C_OutOfMemoryError);
  35395. for (s = receiver, result = ""; true;) {
  35396. if ((times & 1) === 1)
  35397. result = s + result;
  35398. times = times >>> 1;
  35399. if (times === 0)
  35400. break;
  35401. s += s;
  35402. }
  35403. return result;
  35404. },
  35405. padLeft$2(receiver, width, padding) {
  35406. var delta = width - receiver.length;
  35407. if (delta <= 0)
  35408. return receiver;
  35409. return this.$mul(padding, delta) + receiver;
  35410. },
  35411. padRight$1(receiver, width) {
  35412. var delta = width - receiver.length;
  35413. if (delta <= 0)
  35414. return receiver;
  35415. return receiver + this.$mul(" ", delta);
  35416. },
  35417. indexOf$2(receiver, pattern, start) {
  35418. var t1;
  35419. if (start < 0 || start > receiver.length)
  35420. throw A.wrapException(A.RangeError$range(start, 0, receiver.length, null, null));
  35421. t1 = receiver.indexOf(pattern, start);
  35422. return t1;
  35423. },
  35424. indexOf$1(receiver, pattern) {
  35425. return this.indexOf$2(receiver, pattern, 0);
  35426. },
  35427. lastIndexOf$2(receiver, pattern, start) {
  35428. var t1, t2, i;
  35429. if (start == null)
  35430. start = receiver.length;
  35431. else if (start < 0 || start > receiver.length)
  35432. throw A.wrapException(A.RangeError$range(start, 0, receiver.length, null, null));
  35433. if (typeof pattern == "string") {
  35434. t1 = pattern.length;
  35435. t2 = receiver.length;
  35436. if (start + t1 > t2)
  35437. start = t2 - t1;
  35438. return receiver.lastIndexOf(pattern, start);
  35439. }
  35440. for (t1 = J.getInterceptor$s(pattern), i = start; i >= 0; --i)
  35441. if (t1.matchAsPrefix$2(pattern, receiver, i) != null)
  35442. return i;
  35443. return -1;
  35444. },
  35445. lastIndexOf$1(receiver, pattern) {
  35446. return this.lastIndexOf$2(receiver, pattern, null);
  35447. },
  35448. contains$2(receiver, other, startIndex) {
  35449. var t1 = receiver.length;
  35450. if (startIndex > t1)
  35451. throw A.wrapException(A.RangeError$range(startIndex, 0, t1, null, null));
  35452. return A.stringContainsUnchecked(receiver, other, startIndex);
  35453. },
  35454. contains$1(receiver, other) {
  35455. return this.contains$2(receiver, other, 0);
  35456. },
  35457. compareTo$1(receiver, other) {
  35458. var t1;
  35459. if (receiver === other)
  35460. t1 = 0;
  35461. else
  35462. t1 = receiver < other ? -1 : 1;
  35463. return t1;
  35464. },
  35465. toString$0(receiver) {
  35466. return receiver;
  35467. },
  35468. get$hashCode(receiver) {
  35469. var t1, hash, i;
  35470. for (t1 = receiver.length, hash = 0, i = 0; i < t1; ++i) {
  35471. hash = hash + receiver.charCodeAt(i) & 536870911;
  35472. hash = hash + ((hash & 524287) << 10) & 536870911;
  35473. hash ^= hash >> 6;
  35474. }
  35475. hash = hash + ((hash & 67108863) << 3) & 536870911;
  35476. hash ^= hash >> 11;
  35477. return hash + ((hash & 16383) << 15) & 536870911;
  35478. },
  35479. get$runtimeType(receiver) {
  35480. return A.createRuntimeType(type$.String);
  35481. },
  35482. get$length(receiver) {
  35483. return receiver.length;
  35484. },
  35485. $isTrustedGetRuntimeType: 1,
  35486. $isComparable: 1,
  35487. $isString: 1
  35488. };
  35489. A._CastIterableBase.prototype = {
  35490. get$iterator(_) {
  35491. return new A.CastIterator(J.get$iterator$ax(this.get$_source()), A._instanceType(this)._eval$1("CastIterator<1,2>"));
  35492. },
  35493. get$length(_) {
  35494. return J.get$length$asx(this.get$_source());
  35495. },
  35496. get$isEmpty(_) {
  35497. return J.get$isEmpty$asx(this.get$_source());
  35498. },
  35499. get$isNotEmpty(_) {
  35500. return J.get$isNotEmpty$asx(this.get$_source());
  35501. },
  35502. skip$1(_, count) {
  35503. var t1 = A._instanceType(this);
  35504. return A.CastIterable_CastIterable(J.skip$1$ax(this.get$_source(), count), t1._precomputed1, t1._rest[1]);
  35505. },
  35506. take$1(_, count) {
  35507. var t1 = A._instanceType(this);
  35508. return A.CastIterable_CastIterable(J.take$1$ax(this.get$_source(), count), t1._precomputed1, t1._rest[1]);
  35509. },
  35510. elementAt$1(_, index) {
  35511. return A._instanceType(this)._rest[1]._as(J.elementAt$1$ax(this.get$_source(), index));
  35512. },
  35513. get$first(_) {
  35514. return A._instanceType(this)._rest[1]._as(J.get$first$ax(this.get$_source()));
  35515. },
  35516. get$last(_) {
  35517. return A._instanceType(this)._rest[1]._as(J.get$last$ax(this.get$_source()));
  35518. },
  35519. get$single(_) {
  35520. return A._instanceType(this)._rest[1]._as(J.get$single$ax(this.get$_source()));
  35521. },
  35522. contains$1(_, other) {
  35523. return J.contains$1$asx(this.get$_source(), other);
  35524. },
  35525. toString$0(_) {
  35526. return J.toString$0$(this.get$_source());
  35527. }
  35528. };
  35529. A.CastIterator.prototype = {
  35530. moveNext$0() {
  35531. return this._source.moveNext$0();
  35532. },
  35533. get$current(_) {
  35534. var t1 = this._source;
  35535. return this.$ti._rest[1]._as(t1.get$current(t1));
  35536. }
  35537. };
  35538. A.CastIterable.prototype = {
  35539. get$_source() {
  35540. return this._source;
  35541. }
  35542. };
  35543. A._EfficientLengthCastIterable.prototype = {$isEfficientLengthIterable: 1};
  35544. A._CastListBase.prototype = {
  35545. $index(_, index) {
  35546. return this.$ti._rest[1]._as(J.$index$asx(this._source, index));
  35547. },
  35548. $indexSet(_, index, value) {
  35549. J.$indexSet$ax(this._source, index, this.$ti._precomputed1._as(value));
  35550. },
  35551. set$length(_, $length) {
  35552. J.set$length$asx(this._source, $length);
  35553. },
  35554. add$1(_, value) {
  35555. J.add$1$ax(this._source, this.$ti._precomputed1._as(value));
  35556. },
  35557. addAll$1(_, values) {
  35558. var t1 = this.$ti;
  35559. J.addAll$1$ax(this._source, A.CastIterable_CastIterable(values, t1._rest[1], t1._precomputed1));
  35560. },
  35561. sort$1(_, compare) {
  35562. var t1 = compare == null ? null : new A._CastListBase_sort_closure(this, compare);
  35563. J.sort$1$ax(this._source, t1);
  35564. },
  35565. getRange$2(_, start, end) {
  35566. var t1 = this.$ti;
  35567. return A.CastIterable_CastIterable(J.getRange$2$ax(this._source, start, end), t1._precomputed1, t1._rest[1]);
  35568. },
  35569. setRange$4(_, start, end, iterable, skipCount) {
  35570. var t1 = this.$ti;
  35571. J.setRange$4$ax(this._source, start, end, A.CastIterable_CastIterable(iterable, t1._rest[1], t1._precomputed1), skipCount);
  35572. },
  35573. removeRange$2(_, start, end) {
  35574. J.removeRange$2$ax(this._source, start, end);
  35575. },
  35576. fillRange$3(_, start, end, fillValue) {
  35577. J.fillRange$3$ax(this._source, start, end, this.$ti._precomputed1._as(fillValue));
  35578. },
  35579. $isEfficientLengthIterable: 1,
  35580. $isList: 1
  35581. };
  35582. A._CastListBase_sort_closure.prototype = {
  35583. call$2(v1, v2) {
  35584. var t1 = this.$this.$ti._rest[1];
  35585. return this.compare.call$2(t1._as(v1), t1._as(v2));
  35586. },
  35587. $signature() {
  35588. return this.$this.$ti._eval$1("int(1,1)");
  35589. }
  35590. };
  35591. A.CastList.prototype = {
  35592. cast$1$0(_, $R) {
  35593. return new A.CastList(this._source, this.$ti._eval$1("@<1>")._bind$1($R)._eval$1("CastList<1,2>"));
  35594. },
  35595. get$_source() {
  35596. return this._source;
  35597. }
  35598. };
  35599. A.CastSet.prototype = {
  35600. add$1(_, value) {
  35601. return this._source.add$1(0, this.$ti._precomputed1._as(value));
  35602. },
  35603. addAll$1(_, elements) {
  35604. var t1 = this.$ti;
  35605. this._source.addAll$1(0, A.CastIterable_CastIterable(elements, t1._rest[1], t1._precomputed1));
  35606. },
  35607. difference$1(other) {
  35608. var _this = this;
  35609. if (_this._emptySet != null)
  35610. return _this._conditionalAdd$2(other, false);
  35611. return new A.CastSet(_this._source.difference$1(other), null, _this.$ti);
  35612. },
  35613. _conditionalAdd$2(other, otherContains) {
  35614. var t3, castElement,
  35615. emptySet = this._emptySet,
  35616. t1 = this.$ti,
  35617. t2 = t1._rest[1],
  35618. result = emptySet == null ? A.LinkedHashSet_LinkedHashSet(t2) : emptySet.call$1$0(t2);
  35619. for (t2 = this._source, t2 = t2.get$iterator(t2), t3 = other._source, t1 = t1._rest[1]; t2.moveNext$0();) {
  35620. castElement = t1._as(t2.get$current(t2));
  35621. if (otherContains === t3.contains$1(0, castElement))
  35622. result.add$1(0, castElement);
  35623. }
  35624. return result;
  35625. },
  35626. toSet$0(_) {
  35627. var emptySet = this._emptySet,
  35628. t1 = this.$ti._rest[1],
  35629. result = emptySet == null ? A.LinkedHashSet_LinkedHashSet(t1) : emptySet.call$1$0(t1);
  35630. result.addAll$1(0, this);
  35631. return result;
  35632. },
  35633. $isEfficientLengthIterable: 1,
  35634. $isSet: 1,
  35635. get$_source() {
  35636. return this._source;
  35637. }
  35638. };
  35639. A.CastMap.prototype = {
  35640. cast$2$0(_, RK, RV) {
  35641. return new A.CastMap(this._source, this.$ti._eval$1("@<1,2>")._bind$1(RK)._bind$1(RV)._eval$1("CastMap<1,2,3,4>"));
  35642. },
  35643. containsKey$1(key) {
  35644. return this._source.containsKey$1(key);
  35645. },
  35646. $index(_, key) {
  35647. return this.$ti._eval$1("4?")._as(this._source.$index(0, key));
  35648. },
  35649. $indexSet(_, key, value) {
  35650. var t1 = this.$ti;
  35651. this._source.$indexSet(0, t1._precomputed1._as(key), t1._rest[1]._as(value));
  35652. },
  35653. addAll$1(_, other) {
  35654. this._source.addAll$1(0, new A.CastMap(other, this.$ti._eval$1("CastMap<3,4,1,2>")));
  35655. },
  35656. remove$1(_, key) {
  35657. return this.$ti._eval$1("4?")._as(this._source.remove$1(0, key));
  35658. },
  35659. forEach$1(_, f) {
  35660. this._source.forEach$1(0, new A.CastMap_forEach_closure(this, f));
  35661. },
  35662. get$keys(_) {
  35663. var t1 = this._source,
  35664. t2 = this.$ti;
  35665. return A.CastIterable_CastIterable(t1.get$keys(t1), t2._precomputed1, t2._rest[2]);
  35666. },
  35667. get$values(_) {
  35668. var t1 = this._source,
  35669. t2 = this.$ti;
  35670. return A.CastIterable_CastIterable(t1.get$values(t1), t2._rest[1], t2._rest[3]);
  35671. },
  35672. get$length(_) {
  35673. var t1 = this._source;
  35674. return t1.get$length(t1);
  35675. },
  35676. get$isEmpty(_) {
  35677. var t1 = this._source;
  35678. return t1.get$isEmpty(t1);
  35679. },
  35680. get$isNotEmpty(_) {
  35681. var t1 = this._source;
  35682. return t1.get$isNotEmpty(t1);
  35683. },
  35684. get$entries(_) {
  35685. var t1 = this._source;
  35686. return t1.get$entries(t1).map$1$1(0, new A.CastMap_entries_closure(this), this.$ti._eval$1("MapEntry<3,4>"));
  35687. }
  35688. };
  35689. A.CastMap_forEach_closure.prototype = {
  35690. call$2(key, value) {
  35691. var t1 = this.$this.$ti;
  35692. this.f.call$2(t1._rest[2]._as(key), t1._rest[3]._as(value));
  35693. },
  35694. $signature() {
  35695. return this.$this.$ti._eval$1("~(1,2)");
  35696. }
  35697. };
  35698. A.CastMap_entries_closure.prototype = {
  35699. call$1(e) {
  35700. var t1 = this.$this.$ti;
  35701. return new A.MapEntry(t1._rest[2]._as(e.key), t1._rest[3]._as(e.value), t1._eval$1("MapEntry<3,4>"));
  35702. },
  35703. $signature() {
  35704. return this.$this.$ti._eval$1("MapEntry<3,4>(MapEntry<1,2>)");
  35705. }
  35706. };
  35707. A.LateError.prototype = {
  35708. toString$0(_) {
  35709. return "LateInitializationError: " + this._message;
  35710. }
  35711. };
  35712. A.ReachabilityError.prototype = {
  35713. toString$0(_) {
  35714. return "ReachabilityError: " + this._message;
  35715. }
  35716. };
  35717. A.CodeUnits.prototype = {
  35718. get$length(_) {
  35719. return this._string.length;
  35720. },
  35721. $index(_, i) {
  35722. return this._string.charCodeAt(i);
  35723. }
  35724. };
  35725. A.nullFuture_closure.prototype = {
  35726. call$0() {
  35727. return A.Future_Future$value(null, type$.Null);
  35728. },
  35729. $signature: 2
  35730. };
  35731. A.SentinelValue.prototype = {};
  35732. A.EfficientLengthIterable.prototype = {};
  35733. A.ListIterable.prototype = {
  35734. get$iterator(_) {
  35735. var _this = this;
  35736. return new A.ListIterator(_this, _this.get$length(_this), A._instanceType(_this)._eval$1("ListIterator<ListIterable.E>"));
  35737. },
  35738. get$isEmpty(_) {
  35739. return this.get$length(this) === 0;
  35740. },
  35741. get$first(_) {
  35742. if (this.get$length(this) === 0)
  35743. throw A.wrapException(A.IterableElementError_noElement());
  35744. return this.elementAt$1(0, 0);
  35745. },
  35746. get$last(_) {
  35747. var _this = this;
  35748. if (_this.get$length(_this) === 0)
  35749. throw A.wrapException(A.IterableElementError_noElement());
  35750. return _this.elementAt$1(0, _this.get$length(_this) - 1);
  35751. },
  35752. get$single(_) {
  35753. var _this = this;
  35754. if (_this.get$length(_this) === 0)
  35755. throw A.wrapException(A.IterableElementError_noElement());
  35756. if (_this.get$length(_this) > 1)
  35757. throw A.wrapException(A.IterableElementError_tooMany());
  35758. return _this.elementAt$1(0, 0);
  35759. },
  35760. contains$1(_, element) {
  35761. var i, _this = this,
  35762. $length = _this.get$length(_this);
  35763. for (i = 0; i < $length; ++i) {
  35764. if (J.$eq$(_this.elementAt$1(0, i), element))
  35765. return true;
  35766. if ($length !== _this.get$length(_this))
  35767. throw A.wrapException(A.ConcurrentModificationError$(_this));
  35768. }
  35769. return false;
  35770. },
  35771. every$1(_, test) {
  35772. var i, _this = this,
  35773. $length = _this.get$length(_this);
  35774. for (i = 0; i < $length; ++i) {
  35775. if (!test.call$1(_this.elementAt$1(0, i)))
  35776. return false;
  35777. if ($length !== _this.get$length(_this))
  35778. throw A.wrapException(A.ConcurrentModificationError$(_this));
  35779. }
  35780. return true;
  35781. },
  35782. any$1(_, test) {
  35783. var i, _this = this,
  35784. $length = _this.get$length(_this);
  35785. for (i = 0; i < $length; ++i) {
  35786. if (test.call$1(_this.elementAt$1(0, i)))
  35787. return true;
  35788. if ($length !== _this.get$length(_this))
  35789. throw A.wrapException(A.ConcurrentModificationError$(_this));
  35790. }
  35791. return false;
  35792. },
  35793. join$1(_, separator) {
  35794. var first, t1, i, _this = this,
  35795. $length = _this.get$length(_this);
  35796. if (separator.length !== 0) {
  35797. if ($length === 0)
  35798. return "";
  35799. first = A.S(_this.elementAt$1(0, 0));
  35800. if ($length !== _this.get$length(_this))
  35801. throw A.wrapException(A.ConcurrentModificationError$(_this));
  35802. for (t1 = first, i = 1; i < $length; ++i) {
  35803. t1 = t1 + separator + A.S(_this.elementAt$1(0, i));
  35804. if ($length !== _this.get$length(_this))
  35805. throw A.wrapException(A.ConcurrentModificationError$(_this));
  35806. }
  35807. return t1.charCodeAt(0) == 0 ? t1 : t1;
  35808. } else {
  35809. for (i = 0, t1 = ""; i < $length; ++i) {
  35810. t1 += A.S(_this.elementAt$1(0, i));
  35811. if ($length !== _this.get$length(_this))
  35812. throw A.wrapException(A.ConcurrentModificationError$(_this));
  35813. }
  35814. return t1.charCodeAt(0) == 0 ? t1 : t1;
  35815. }
  35816. },
  35817. join$0(_) {
  35818. return this.join$1(0, "");
  35819. },
  35820. where$1(_, test) {
  35821. return this.super$Iterable$where(0, test);
  35822. },
  35823. map$1$1(_, toElement, $T) {
  35824. return new A.MappedListIterable(this, toElement, A._instanceType(this)._eval$1("@<ListIterable.E>")._bind$1($T)._eval$1("MappedListIterable<1,2>"));
  35825. },
  35826. reduce$1(_, combine) {
  35827. var value, i, _this = this,
  35828. $length = _this.get$length(_this);
  35829. if ($length === 0)
  35830. throw A.wrapException(A.IterableElementError_noElement());
  35831. value = _this.elementAt$1(0, 0);
  35832. for (i = 1; i < $length; ++i) {
  35833. value = combine.call$2(value, _this.elementAt$1(0, i));
  35834. if ($length !== _this.get$length(_this))
  35835. throw A.wrapException(A.ConcurrentModificationError$(_this));
  35836. }
  35837. return value;
  35838. },
  35839. fold$1$2(_, initialValue, combine) {
  35840. var value, i, _this = this,
  35841. $length = _this.get$length(_this);
  35842. for (value = initialValue, i = 0; i < $length; ++i) {
  35843. value = combine.call$2(value, _this.elementAt$1(0, i));
  35844. if ($length !== _this.get$length(_this))
  35845. throw A.wrapException(A.ConcurrentModificationError$(_this));
  35846. }
  35847. return value;
  35848. },
  35849. fold$2(_, initialValue, combine) {
  35850. return this.fold$1$2(0, initialValue, combine, type$.dynamic);
  35851. },
  35852. skip$1(_, count) {
  35853. return A.SubListIterable$(this, count, null, A._instanceType(this)._eval$1("ListIterable.E"));
  35854. },
  35855. take$1(_, count) {
  35856. return A.SubListIterable$(this, 0, A.checkNotNullable(count, "count", type$.int), A._instanceType(this)._eval$1("ListIterable.E"));
  35857. },
  35858. toList$1$growable(_, growable) {
  35859. return A.List_List$of(this, true, A._instanceType(this)._eval$1("ListIterable.E"));
  35860. },
  35861. toList$0(_) {
  35862. return this.toList$1$growable(0, true);
  35863. },
  35864. toSet$0(_) {
  35865. var i, _this = this,
  35866. result = A.LinkedHashSet_LinkedHashSet(A._instanceType(_this)._eval$1("ListIterable.E"));
  35867. for (i = 0; i < _this.get$length(_this); ++i)
  35868. result.add$1(0, _this.elementAt$1(0, i));
  35869. return result;
  35870. }
  35871. };
  35872. A.SubListIterable.prototype = {
  35873. SubListIterable$3(_iterable, _start, _endOrLength, $E) {
  35874. var endOrLength,
  35875. t1 = this._start;
  35876. A.RangeError_checkNotNegative(t1, "start");
  35877. endOrLength = this._endOrLength;
  35878. if (endOrLength != null) {
  35879. A.RangeError_checkNotNegative(endOrLength, "end");
  35880. if (t1 > endOrLength)
  35881. throw A.wrapException(A.RangeError$range(t1, 0, endOrLength, "start", null));
  35882. }
  35883. },
  35884. get$_endIndex() {
  35885. var $length = J.get$length$asx(this.__internal$_iterable),
  35886. endOrLength = this._endOrLength;
  35887. if (endOrLength == null || endOrLength > $length)
  35888. return $length;
  35889. return endOrLength;
  35890. },
  35891. get$_startIndex() {
  35892. var $length = J.get$length$asx(this.__internal$_iterable),
  35893. t1 = this._start;
  35894. if (t1 > $length)
  35895. return $length;
  35896. return t1;
  35897. },
  35898. get$length(_) {
  35899. var endOrLength,
  35900. $length = J.get$length$asx(this.__internal$_iterable),
  35901. t1 = this._start;
  35902. if (t1 >= $length)
  35903. return 0;
  35904. endOrLength = this._endOrLength;
  35905. if (endOrLength == null || endOrLength >= $length)
  35906. return $length - t1;
  35907. return endOrLength - t1;
  35908. },
  35909. elementAt$1(_, index) {
  35910. var _this = this,
  35911. realIndex = _this.get$_startIndex() + index;
  35912. if (index < 0 || realIndex >= _this.get$_endIndex())
  35913. throw A.wrapException(A.IndexError$withLength(index, _this.get$length(0), _this, null, "index"));
  35914. return J.elementAt$1$ax(_this.__internal$_iterable, realIndex);
  35915. },
  35916. skip$1(_, count) {
  35917. var newStart, endOrLength, _this = this;
  35918. A.RangeError_checkNotNegative(count, "count");
  35919. newStart = _this._start + count;
  35920. endOrLength = _this._endOrLength;
  35921. if (endOrLength != null && newStart >= endOrLength)
  35922. return new A.EmptyIterable(_this.$ti._eval$1("EmptyIterable<1>"));
  35923. return A.SubListIterable$(_this.__internal$_iterable, newStart, endOrLength, _this.$ti._precomputed1);
  35924. },
  35925. take$1(_, count) {
  35926. var endOrLength, t1, newEnd, _this = this;
  35927. A.RangeError_checkNotNegative(count, "count");
  35928. endOrLength = _this._endOrLength;
  35929. t1 = _this._start;
  35930. newEnd = t1 + count;
  35931. if (endOrLength == null)
  35932. return A.SubListIterable$(_this.__internal$_iterable, t1, newEnd, _this.$ti._precomputed1);
  35933. else {
  35934. if (endOrLength < newEnd)
  35935. return _this;
  35936. return A.SubListIterable$(_this.__internal$_iterable, t1, newEnd, _this.$ti._precomputed1);
  35937. }
  35938. },
  35939. toList$1$growable(_, growable) {
  35940. var $length, result, i, _this = this,
  35941. start = _this._start,
  35942. t1 = _this.__internal$_iterable,
  35943. t2 = J.getInterceptor$asx(t1),
  35944. end = t2.get$length(t1),
  35945. endOrLength = _this._endOrLength;
  35946. if (endOrLength != null && endOrLength < end)
  35947. end = endOrLength;
  35948. $length = end - start;
  35949. if ($length <= 0) {
  35950. t1 = _this.$ti._precomputed1;
  35951. return growable ? J.JSArray_JSArray$growable(0, t1) : J.JSArray_JSArray$fixed(0, t1);
  35952. }
  35953. result = A.List_List$filled($length, t2.elementAt$1(t1, start), growable, _this.$ti._precomputed1);
  35954. for (i = 1; i < $length; ++i) {
  35955. result[i] = t2.elementAt$1(t1, start + i);
  35956. if (t2.get$length(t1) < end)
  35957. throw A.wrapException(A.ConcurrentModificationError$(_this));
  35958. }
  35959. return result;
  35960. },
  35961. toList$0(_) {
  35962. return this.toList$1$growable(0, true);
  35963. }
  35964. };
  35965. A.ListIterator.prototype = {
  35966. get$current(_) {
  35967. var t1 = this.__internal$_current;
  35968. return t1 == null ? this.$ti._precomputed1._as(t1) : t1;
  35969. },
  35970. moveNext$0() {
  35971. var t3, _this = this,
  35972. t1 = _this.__internal$_iterable,
  35973. t2 = J.getInterceptor$asx(t1),
  35974. $length = t2.get$length(t1);
  35975. if (_this.__internal$_length !== $length)
  35976. throw A.wrapException(A.ConcurrentModificationError$(t1));
  35977. t3 = _this.__internal$_index;
  35978. if (t3 >= $length) {
  35979. _this.__internal$_current = null;
  35980. return false;
  35981. }
  35982. _this.__internal$_current = t2.elementAt$1(t1, t3);
  35983. ++_this.__internal$_index;
  35984. return true;
  35985. }
  35986. };
  35987. A.MappedIterable.prototype = {
  35988. get$iterator(_) {
  35989. return new A.MappedIterator(J.get$iterator$ax(this.__internal$_iterable), this._f, A._instanceType(this)._eval$1("MappedIterator<1,2>"));
  35990. },
  35991. get$length(_) {
  35992. return J.get$length$asx(this.__internal$_iterable);
  35993. },
  35994. get$isEmpty(_) {
  35995. return J.get$isEmpty$asx(this.__internal$_iterable);
  35996. },
  35997. get$first(_) {
  35998. return this._f.call$1(J.get$first$ax(this.__internal$_iterable));
  35999. },
  36000. get$last(_) {
  36001. return this._f.call$1(J.get$last$ax(this.__internal$_iterable));
  36002. },
  36003. get$single(_) {
  36004. return this._f.call$1(J.get$single$ax(this.__internal$_iterable));
  36005. },
  36006. elementAt$1(_, index) {
  36007. return this._f.call$1(J.elementAt$1$ax(this.__internal$_iterable, index));
  36008. }
  36009. };
  36010. A.EfficientLengthMappedIterable.prototype = {$isEfficientLengthIterable: 1};
  36011. A.MappedIterator.prototype = {
  36012. moveNext$0() {
  36013. var _this = this,
  36014. t1 = _this._iterator;
  36015. if (t1.moveNext$0()) {
  36016. _this.__internal$_current = _this._f.call$1(t1.get$current(t1));
  36017. return true;
  36018. }
  36019. _this.__internal$_current = null;
  36020. return false;
  36021. },
  36022. get$current(_) {
  36023. var t1 = this.__internal$_current;
  36024. return t1 == null ? this.$ti._rest[1]._as(t1) : t1;
  36025. }
  36026. };
  36027. A.MappedListIterable.prototype = {
  36028. get$length(_) {
  36029. return J.get$length$asx(this._source);
  36030. },
  36031. elementAt$1(_, index) {
  36032. return this._f.call$1(J.elementAt$1$ax(this._source, index));
  36033. }
  36034. };
  36035. A.WhereIterable.prototype = {
  36036. get$iterator(_) {
  36037. return new A.WhereIterator(J.get$iterator$ax(this.__internal$_iterable), this._f);
  36038. },
  36039. map$1$1(_, toElement, $T) {
  36040. return new A.MappedIterable(this, toElement, this.$ti._eval$1("@<1>")._bind$1($T)._eval$1("MappedIterable<1,2>"));
  36041. }
  36042. };
  36043. A.WhereIterator.prototype = {
  36044. moveNext$0() {
  36045. var t1, t2;
  36046. for (t1 = this._iterator, t2 = this._f; t1.moveNext$0();)
  36047. if (t2.call$1(t1.get$current(t1)))
  36048. return true;
  36049. return false;
  36050. },
  36051. get$current(_) {
  36052. var t1 = this._iterator;
  36053. return t1.get$current(t1);
  36054. }
  36055. };
  36056. A.ExpandIterable.prototype = {
  36057. get$iterator(_) {
  36058. return new A.ExpandIterator(J.get$iterator$ax(this.__internal$_iterable), this._f, B.C_EmptyIterator, this.$ti._eval$1("ExpandIterator<1,2>"));
  36059. }
  36060. };
  36061. A.ExpandIterator.prototype = {
  36062. get$current(_) {
  36063. var t1 = this.__internal$_current;
  36064. return t1 == null ? this.$ti._rest[1]._as(t1) : t1;
  36065. },
  36066. moveNext$0() {
  36067. var t2, t3, _this = this,
  36068. t1 = _this._currentExpansion;
  36069. if (t1 == null)
  36070. return false;
  36071. for (t2 = _this._iterator, t3 = _this._f; !t1.moveNext$0();) {
  36072. _this.__internal$_current = null;
  36073. if (t2.moveNext$0()) {
  36074. _this._currentExpansion = null;
  36075. t1 = J.get$iterator$ax(t3.call$1(t2.get$current(t2)));
  36076. _this._currentExpansion = t1;
  36077. } else
  36078. return false;
  36079. }
  36080. t1 = _this._currentExpansion;
  36081. _this.__internal$_current = t1.get$current(t1);
  36082. return true;
  36083. }
  36084. };
  36085. A.TakeIterable.prototype = {
  36086. get$iterator(_) {
  36087. return new A.TakeIterator(J.get$iterator$ax(this.__internal$_iterable), this._takeCount, A._instanceType(this)._eval$1("TakeIterator<1>"));
  36088. }
  36089. };
  36090. A.EfficientLengthTakeIterable.prototype = {
  36091. get$length(_) {
  36092. var iterableLength = J.get$length$asx(this.__internal$_iterable),
  36093. t1 = this._takeCount;
  36094. if (iterableLength > t1)
  36095. return t1;
  36096. return iterableLength;
  36097. },
  36098. $isEfficientLengthIterable: 1
  36099. };
  36100. A.TakeIterator.prototype = {
  36101. moveNext$0() {
  36102. if (--this._remaining >= 0)
  36103. return this._iterator.moveNext$0();
  36104. this._remaining = -1;
  36105. return false;
  36106. },
  36107. get$current(_) {
  36108. var t1;
  36109. if (this._remaining < 0) {
  36110. this.$ti._precomputed1._as(null);
  36111. return null;
  36112. }
  36113. t1 = this._iterator;
  36114. return t1.get$current(t1);
  36115. }
  36116. };
  36117. A.SkipIterable.prototype = {
  36118. skip$1(_, count) {
  36119. A.ArgumentError_checkNotNull(count, "count");
  36120. A.RangeError_checkNotNegative(count, "count");
  36121. return new A.SkipIterable(this.__internal$_iterable, this._skipCount + count, A._instanceType(this)._eval$1("SkipIterable<1>"));
  36122. },
  36123. get$iterator(_) {
  36124. return new A.SkipIterator(J.get$iterator$ax(this.__internal$_iterable), this._skipCount);
  36125. }
  36126. };
  36127. A.EfficientLengthSkipIterable.prototype = {
  36128. get$length(_) {
  36129. var $length = J.get$length$asx(this.__internal$_iterable) - this._skipCount;
  36130. if ($length >= 0)
  36131. return $length;
  36132. return 0;
  36133. },
  36134. skip$1(_, count) {
  36135. A.ArgumentError_checkNotNull(count, "count");
  36136. A.RangeError_checkNotNegative(count, "count");
  36137. return new A.EfficientLengthSkipIterable(this.__internal$_iterable, this._skipCount + count, this.$ti);
  36138. },
  36139. $isEfficientLengthIterable: 1
  36140. };
  36141. A.SkipIterator.prototype = {
  36142. moveNext$0() {
  36143. var t1, i;
  36144. for (t1 = this._iterator, i = 0; i < this._skipCount; ++i)
  36145. t1.moveNext$0();
  36146. this._skipCount = 0;
  36147. return t1.moveNext$0();
  36148. },
  36149. get$current(_) {
  36150. var t1 = this._iterator;
  36151. return t1.get$current(t1);
  36152. }
  36153. };
  36154. A.SkipWhileIterable.prototype = {
  36155. get$iterator(_) {
  36156. return new A.SkipWhileIterator(J.get$iterator$ax(this.__internal$_iterable), this._f);
  36157. }
  36158. };
  36159. A.SkipWhileIterator.prototype = {
  36160. moveNext$0() {
  36161. var t1, t2, _this = this;
  36162. if (!_this._hasSkipped) {
  36163. _this._hasSkipped = true;
  36164. for (t1 = _this._iterator, t2 = _this._f; t1.moveNext$0();)
  36165. if (!t2.call$1(t1.get$current(t1)))
  36166. return true;
  36167. }
  36168. return _this._iterator.moveNext$0();
  36169. },
  36170. get$current(_) {
  36171. var t1 = this._iterator;
  36172. return t1.get$current(t1);
  36173. }
  36174. };
  36175. A.EmptyIterable.prototype = {
  36176. get$iterator(_) {
  36177. return B.C_EmptyIterator;
  36178. },
  36179. get$isEmpty(_) {
  36180. return true;
  36181. },
  36182. get$length(_) {
  36183. return 0;
  36184. },
  36185. get$first(_) {
  36186. throw A.wrapException(A.IterableElementError_noElement());
  36187. },
  36188. get$last(_) {
  36189. throw A.wrapException(A.IterableElementError_noElement());
  36190. },
  36191. get$single(_) {
  36192. throw A.wrapException(A.IterableElementError_noElement());
  36193. },
  36194. elementAt$1(_, index) {
  36195. throw A.wrapException(A.RangeError$range(index, 0, 0, "index", null));
  36196. },
  36197. contains$1(_, element) {
  36198. return false;
  36199. },
  36200. every$1(_, test) {
  36201. return true;
  36202. },
  36203. any$1(_, test) {
  36204. return false;
  36205. },
  36206. join$1(_, separator) {
  36207. return "";
  36208. },
  36209. where$1(_, test) {
  36210. return this;
  36211. },
  36212. map$1$1(_, toElement, $T) {
  36213. return new A.EmptyIterable($T._eval$1("EmptyIterable<0>"));
  36214. },
  36215. skip$1(_, count) {
  36216. A.RangeError_checkNotNegative(count, "count");
  36217. return this;
  36218. },
  36219. take$1(_, count) {
  36220. A.RangeError_checkNotNegative(count, "count");
  36221. return this;
  36222. },
  36223. toList$1$growable(_, growable) {
  36224. var t1 = J.JSArray_JSArray$growable(0, this.$ti._precomputed1);
  36225. return t1;
  36226. },
  36227. toList$0(_) {
  36228. return this.toList$1$growable(0, true);
  36229. },
  36230. toSet$0(_) {
  36231. return A.LinkedHashSet_LinkedHashSet(this.$ti._precomputed1);
  36232. }
  36233. };
  36234. A.EmptyIterator.prototype = {
  36235. moveNext$0() {
  36236. return false;
  36237. },
  36238. get$current(_) {
  36239. throw A.wrapException(A.IterableElementError_noElement());
  36240. }
  36241. };
  36242. A.FollowedByIterable.prototype = {
  36243. get$iterator(_) {
  36244. return new A.FollowedByIterator(J.get$iterator$ax(this.__internal$_first), this._second);
  36245. },
  36246. get$length(_) {
  36247. var t1 = this._second;
  36248. return J.get$length$asx(this.__internal$_first) + t1.get$length(t1);
  36249. },
  36250. get$isEmpty(_) {
  36251. var t1;
  36252. if (J.get$isEmpty$asx(this.__internal$_first)) {
  36253. t1 = this._second;
  36254. t1 = t1.get$isEmpty(t1);
  36255. } else
  36256. t1 = false;
  36257. return t1;
  36258. },
  36259. get$isNotEmpty(_) {
  36260. var t1;
  36261. if (!J.get$isNotEmpty$asx(this.__internal$_first)) {
  36262. t1 = this._second;
  36263. t1 = t1.get$isNotEmpty(t1);
  36264. } else
  36265. t1 = true;
  36266. return t1;
  36267. },
  36268. contains$1(_, value) {
  36269. var t1;
  36270. if (!J.contains$1$asx(this.__internal$_first, value)) {
  36271. t1 = this._second;
  36272. t1 = t1.contains$1(t1, value);
  36273. } else
  36274. t1 = true;
  36275. return t1;
  36276. },
  36277. get$first(_) {
  36278. var t1,
  36279. iterator = J.get$iterator$ax(this.__internal$_first);
  36280. if (iterator.moveNext$0())
  36281. return iterator.get$current(iterator);
  36282. t1 = this._second;
  36283. return t1.get$first(t1);
  36284. },
  36285. get$last(_) {
  36286. var last,
  36287. t1 = this._second,
  36288. iterator = t1.get$iterator(t1);
  36289. if (iterator.moveNext$0()) {
  36290. last = iterator.get$current(iterator);
  36291. for (; iterator.moveNext$0();)
  36292. last = iterator.get$current(iterator);
  36293. return last;
  36294. }
  36295. return J.get$last$ax(this.__internal$_first);
  36296. }
  36297. };
  36298. A.EfficientLengthFollowedByIterable.prototype = {
  36299. elementAt$1(_, index) {
  36300. var t1 = this.__internal$_first,
  36301. t2 = J.getInterceptor$asx(t1),
  36302. firstLength = t2.get$length(t1);
  36303. if (index < firstLength)
  36304. return t2.elementAt$1(t1, index);
  36305. t1 = this._second;
  36306. return t1.elementAt$1(t1, index - firstLength);
  36307. },
  36308. get$first(_) {
  36309. var t1 = this.__internal$_first,
  36310. t2 = J.getInterceptor$asx(t1);
  36311. if (t2.get$isNotEmpty(t1))
  36312. return t2.get$first(t1);
  36313. t1 = this._second;
  36314. return t1.get$first(t1);
  36315. },
  36316. get$last(_) {
  36317. var t1 = this._second;
  36318. if (t1.get$isNotEmpty(t1))
  36319. return t1.get$last(t1);
  36320. return J.get$last$ax(this.__internal$_first);
  36321. },
  36322. $isEfficientLengthIterable: 1
  36323. };
  36324. A.FollowedByIterator.prototype = {
  36325. moveNext$0() {
  36326. var t1, _this = this;
  36327. if (_this._currentIterator.moveNext$0())
  36328. return true;
  36329. t1 = _this._nextIterable;
  36330. if (t1 != null) {
  36331. t1 = t1.get$iterator(t1);
  36332. _this._currentIterator = t1;
  36333. _this._nextIterable = null;
  36334. return t1.moveNext$0();
  36335. }
  36336. return false;
  36337. },
  36338. get$current(_) {
  36339. var t1 = this._currentIterator;
  36340. return t1.get$current(t1);
  36341. }
  36342. };
  36343. A.WhereTypeIterable.prototype = {
  36344. get$iterator(_) {
  36345. return new A.WhereTypeIterator(J.get$iterator$ax(this._source), this.$ti._eval$1("WhereTypeIterator<1>"));
  36346. }
  36347. };
  36348. A.WhereTypeIterator.prototype = {
  36349. moveNext$0() {
  36350. var t1, t2;
  36351. for (t1 = this._source, t2 = this.$ti._precomputed1; t1.moveNext$0();)
  36352. if (t2._is(t1.get$current(t1)))
  36353. return true;
  36354. return false;
  36355. },
  36356. get$current(_) {
  36357. var t1 = this._source;
  36358. return this.$ti._precomputed1._as(t1.get$current(t1));
  36359. }
  36360. };
  36361. A.NonNullsIterable.prototype = {
  36362. get$_firstNonNull() {
  36363. var t1, element;
  36364. for (t1 = J.get$iterator$ax(this._source); t1.moveNext$0();) {
  36365. element = t1.get$current(t1);
  36366. if (element != null)
  36367. return element;
  36368. }
  36369. return null;
  36370. },
  36371. get$isEmpty(_) {
  36372. return this.get$_firstNonNull() == null;
  36373. },
  36374. get$isNotEmpty(_) {
  36375. return this.get$_firstNonNull() != null;
  36376. },
  36377. get$first(_) {
  36378. var t1 = this.get$_firstNonNull();
  36379. return t1 == null ? A.throwExpression(A.IterableElementError_noElement()) : t1;
  36380. },
  36381. get$iterator(_) {
  36382. return new A.NonNullsIterator(J.get$iterator$ax(this._source));
  36383. }
  36384. };
  36385. A.NonNullsIterator.prototype = {
  36386. moveNext$0() {
  36387. var t1, next;
  36388. this.__internal$_current = null;
  36389. for (t1 = this._source; t1.moveNext$0();) {
  36390. next = t1.get$current(t1);
  36391. if (next != null) {
  36392. this.__internal$_current = next;
  36393. return true;
  36394. }
  36395. }
  36396. return false;
  36397. },
  36398. get$current(_) {
  36399. var t1 = this.__internal$_current;
  36400. return t1 == null ? A.throwExpression(A.IterableElementError_noElement()) : t1;
  36401. }
  36402. };
  36403. A.FixedLengthListMixin.prototype = {
  36404. set$length(receiver, newLength) {
  36405. throw A.wrapException(A.UnsupportedError$("Cannot change the length of a fixed-length list"));
  36406. },
  36407. add$1(receiver, value) {
  36408. throw A.wrapException(A.UnsupportedError$("Cannot add to a fixed-length list"));
  36409. },
  36410. addAll$1(receiver, iterable) {
  36411. throw A.wrapException(A.UnsupportedError$("Cannot add to a fixed-length list"));
  36412. },
  36413. removeRange$2(receiver, start, end) {
  36414. throw A.wrapException(A.UnsupportedError$("Cannot remove from a fixed-length list"));
  36415. }
  36416. };
  36417. A.UnmodifiableListMixin.prototype = {
  36418. $indexSet(_, index, value) {
  36419. throw A.wrapException(A.UnsupportedError$("Cannot modify an unmodifiable list"));
  36420. },
  36421. set$length(_, newLength) {
  36422. throw A.wrapException(A.UnsupportedError$("Cannot change the length of an unmodifiable list"));
  36423. },
  36424. add$1(_, value) {
  36425. throw A.wrapException(A.UnsupportedError$("Cannot add to an unmodifiable list"));
  36426. },
  36427. addAll$1(_, iterable) {
  36428. throw A.wrapException(A.UnsupportedError$("Cannot add to an unmodifiable list"));
  36429. },
  36430. sort$1(_, compare) {
  36431. throw A.wrapException(A.UnsupportedError$("Cannot modify an unmodifiable list"));
  36432. },
  36433. setRange$4(_, start, end, iterable, skipCount) {
  36434. throw A.wrapException(A.UnsupportedError$("Cannot modify an unmodifiable list"));
  36435. },
  36436. removeRange$2(_, start, end) {
  36437. throw A.wrapException(A.UnsupportedError$("Cannot remove from an unmodifiable list"));
  36438. },
  36439. fillRange$3(_, start, end, fillValue) {
  36440. throw A.wrapException(A.UnsupportedError$("Cannot modify an unmodifiable list"));
  36441. }
  36442. };
  36443. A.UnmodifiableListBase.prototype = {};
  36444. A.ReversedListIterable.prototype = {
  36445. get$length(_) {
  36446. return J.get$length$asx(this._source);
  36447. },
  36448. elementAt$1(_, index) {
  36449. var t1 = this._source,
  36450. t2 = J.getInterceptor$asx(t1);
  36451. return t2.elementAt$1(t1, t2.get$length(t1) - 1 - index);
  36452. }
  36453. };
  36454. A.Symbol.prototype = {
  36455. get$hashCode(_) {
  36456. var hash = this._hashCode;
  36457. if (hash != null)
  36458. return hash;
  36459. hash = 664597 * B.JSString_methods.get$hashCode(this.__internal$_name) & 536870911;
  36460. this._hashCode = hash;
  36461. return hash;
  36462. },
  36463. toString$0(_) {
  36464. return 'Symbol("' + this.__internal$_name + '")';
  36465. },
  36466. $eq(_, other) {
  36467. if (other == null)
  36468. return false;
  36469. return other instanceof A.Symbol && this.__internal$_name === other.__internal$_name;
  36470. },
  36471. $isSymbol0: 1
  36472. };
  36473. A.__CastListBase__CastIterableBase_ListMixin.prototype = {};
  36474. A._Record_1.prototype = {$recipe: "+(1)", $shape: 1};
  36475. A._Record_2.prototype = {$recipe: "+(1,2)", $shape: 2};
  36476. A._Record_2_forImport.prototype = {$recipe: "+forImport(1,2)", $shape: 3};
  36477. A._Record_2_imports_modules.prototype = {$recipe: "+imports,modules(1,2)", $shape: 5};
  36478. A._Record_2_loadedUrls_stylesheet.prototype = {$recipe: "+loadedUrls,stylesheet(1,2)", $shape: 6};
  36479. A._Record_2_sourceMap.prototype = {$recipe: "+sourceMap(1,2)", $shape: 4};
  36480. A._Record_3.prototype = {$recipe: "+(1,2,3)", $shape: 7};
  36481. A._Record_3_deprecation_message_span.prototype = {
  36482. get$message(_) {
  36483. return this._1;
  36484. },
  36485. $recipe: "+deprecation,message,span(1,2,3)",
  36486. $shape: 11
  36487. };
  36488. A._Record_3_forImport.prototype = {$recipe: "+forImport(1,2,3)", $shape: 8};
  36489. A._Record_3_importer_isDependency.prototype = {$recipe: "+importer,isDependency(1,2,3)", $shape: 10};
  36490. A._Record_3_originalUrl.prototype = {$recipe: "+originalUrl(1,2,3)", $shape: 9};
  36491. A._Record_5_named_namedNodes_positional_positionalNodes_separator.prototype = {$recipe: "+named,namedNodes,positional,positionalNodes,separator(1,2,3,4,5)", $shape: 13};
  36492. A.ConstantMapView.prototype = {};
  36493. A.ConstantMap.prototype = {
  36494. cast$2$0(_, RK, RV) {
  36495. var t1 = A._instanceType(this);
  36496. return A.Map_castFrom(this, t1._precomputed1, t1._rest[1], RK, RV);
  36497. },
  36498. get$isEmpty(_) {
  36499. return this.get$length(this) === 0;
  36500. },
  36501. get$isNotEmpty(_) {
  36502. return this.get$length(this) !== 0;
  36503. },
  36504. toString$0(_) {
  36505. return A.MapBase_mapToString(this);
  36506. },
  36507. $indexSet(_, key, value) {
  36508. A.ConstantMap__throwUnmodifiable();
  36509. },
  36510. remove$1(_, key) {
  36511. A.ConstantMap__throwUnmodifiable();
  36512. },
  36513. addAll$1(_, other) {
  36514. A.ConstantMap__throwUnmodifiable();
  36515. },
  36516. get$entries(_) {
  36517. return new A._SyncStarIterable(this.entries$body$ConstantMap(0), A._instanceType(this)._eval$1("_SyncStarIterable<MapEntry<1,2>>"));
  36518. },
  36519. entries$body$ConstantMap($async$_) {
  36520. var $async$self = this;
  36521. return function() {
  36522. var _ = $async$_;
  36523. var $async$goto = 0, $async$handler = 1, $async$currentError, t1, t2, key;
  36524. return function $async$get$entries($async$iterator, $async$errorCode, $async$result) {
  36525. if ($async$errorCode === 1) {
  36526. $async$currentError = $async$result;
  36527. $async$goto = $async$handler;
  36528. }
  36529. while (true)
  36530. switch ($async$goto) {
  36531. case 0:
  36532. // Function start
  36533. t1 = $async$self.get$keys($async$self), t1 = t1.get$iterator(t1), t2 = A._instanceType($async$self)._eval$1("MapEntry<1,2>");
  36534. case 2:
  36535. // for condition
  36536. if (!t1.moveNext$0()) {
  36537. // goto after for
  36538. $async$goto = 3;
  36539. break;
  36540. }
  36541. key = t1.get$current(t1);
  36542. $async$goto = 4;
  36543. return $async$iterator._async$_current = new A.MapEntry(key, $async$self.$index(0, key), t2), 1;
  36544. case 4:
  36545. // after yield
  36546. // goto for condition
  36547. $async$goto = 2;
  36548. break;
  36549. case 3:
  36550. // after for
  36551. // implicit return
  36552. return 0;
  36553. case 1:
  36554. // rethrow
  36555. return $async$iterator._datum = $async$currentError, 3;
  36556. }
  36557. };
  36558. };
  36559. },
  36560. $isMap: 1
  36561. };
  36562. A.ConstantStringMap.prototype = {
  36563. get$length(_) {
  36564. return this._values.length;
  36565. },
  36566. get$_keys() {
  36567. var keys = this.$keys;
  36568. if (keys == null) {
  36569. keys = Object.keys(this._jsIndex);
  36570. this.$keys = keys;
  36571. }
  36572. return keys;
  36573. },
  36574. containsKey$1(key) {
  36575. if (typeof key != "string")
  36576. return false;
  36577. if ("__proto__" === key)
  36578. return false;
  36579. return this._jsIndex.hasOwnProperty(key);
  36580. },
  36581. $index(_, key) {
  36582. if (!this.containsKey$1(key))
  36583. return null;
  36584. return this._values[this._jsIndex[key]];
  36585. },
  36586. forEach$1(_, f) {
  36587. var t1, i,
  36588. keys = this.get$_keys(),
  36589. values = this._values;
  36590. for (t1 = keys.length, i = 0; i < t1; ++i)
  36591. f.call$2(keys[i], values[i]);
  36592. },
  36593. get$keys(_) {
  36594. return new A._KeysOrValues(this.get$_keys(), this.$ti._eval$1("_KeysOrValues<1>"));
  36595. },
  36596. get$values(_) {
  36597. return new A._KeysOrValues(this._values, this.$ti._eval$1("_KeysOrValues<2>"));
  36598. }
  36599. };
  36600. A._KeysOrValues.prototype = {
  36601. get$length(_) {
  36602. return this._elements.length;
  36603. },
  36604. get$isEmpty(_) {
  36605. return 0 === this._elements.length;
  36606. },
  36607. get$isNotEmpty(_) {
  36608. return 0 !== this._elements.length;
  36609. },
  36610. get$iterator(_) {
  36611. var t1 = this._elements;
  36612. return new A._KeysOrValuesOrElementsIterator(t1, t1.length, this.$ti._eval$1("_KeysOrValuesOrElementsIterator<1>"));
  36613. }
  36614. };
  36615. A._KeysOrValuesOrElementsIterator.prototype = {
  36616. get$current(_) {
  36617. var t1 = this.__js_helper$_current;
  36618. return t1 == null ? this.$ti._precomputed1._as(t1) : t1;
  36619. },
  36620. moveNext$0() {
  36621. var _this = this,
  36622. t1 = _this.__js_helper$_index;
  36623. if (t1 >= _this.__js_helper$_length) {
  36624. _this.__js_helper$_current = null;
  36625. return false;
  36626. }
  36627. _this.__js_helper$_current = _this._elements[t1];
  36628. _this.__js_helper$_index = t1 + 1;
  36629. return true;
  36630. }
  36631. };
  36632. A.ConstantSet.prototype = {
  36633. add$1(_, value) {
  36634. A.ConstantSet__throwUnmodifiable();
  36635. },
  36636. addAll$1(_, elements) {
  36637. A.ConstantSet__throwUnmodifiable();
  36638. },
  36639. remove$1(_, value) {
  36640. A.ConstantSet__throwUnmodifiable();
  36641. }
  36642. };
  36643. A.ConstantStringSet.prototype = {
  36644. get$length(_) {
  36645. return this.__js_helper$_length;
  36646. },
  36647. get$isEmpty(_) {
  36648. return this.__js_helper$_length === 0;
  36649. },
  36650. get$isNotEmpty(_) {
  36651. return this.__js_helper$_length !== 0;
  36652. },
  36653. get$iterator(_) {
  36654. var t1, _this = this,
  36655. keys = _this.$keys;
  36656. if (keys == null) {
  36657. keys = Object.keys(_this._jsIndex);
  36658. _this.$keys = keys;
  36659. }
  36660. t1 = keys;
  36661. return new A._KeysOrValuesOrElementsIterator(t1, t1.length, _this.$ti._eval$1("_KeysOrValuesOrElementsIterator<1>"));
  36662. },
  36663. contains$1(_, key) {
  36664. if (typeof key != "string")
  36665. return false;
  36666. if ("__proto__" === key)
  36667. return false;
  36668. return this._jsIndex.hasOwnProperty(key);
  36669. },
  36670. toSet$0(_) {
  36671. return A.LinkedHashSet_LinkedHashSet$of(this, this.$ti._precomputed1);
  36672. }
  36673. };
  36674. A.GeneralConstantSet.prototype = {
  36675. get$length(_) {
  36676. return this._elements.length;
  36677. },
  36678. get$isEmpty(_) {
  36679. return this._elements.length === 0;
  36680. },
  36681. get$isNotEmpty(_) {
  36682. return this._elements.length !== 0;
  36683. },
  36684. get$iterator(_) {
  36685. var t1 = this._elements;
  36686. return new A._KeysOrValuesOrElementsIterator(t1, t1.length, this.$ti._eval$1("_KeysOrValuesOrElementsIterator<1>"));
  36687. },
  36688. _getMap$0() {
  36689. var t1, t2, _i, key, _this = this,
  36690. backingMap = _this.$map;
  36691. if (backingMap == null) {
  36692. backingMap = new A.JsConstantLinkedHashMap(_this.$ti._eval$1("JsConstantLinkedHashMap<1,1>"));
  36693. for (t1 = _this._elements, t2 = t1.length, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
  36694. key = t1[_i];
  36695. backingMap.$indexSet(0, key, key);
  36696. }
  36697. _this.$map = backingMap;
  36698. }
  36699. return backingMap;
  36700. },
  36701. contains$1(_, key) {
  36702. return this._getMap$0().containsKey$1(key);
  36703. },
  36704. toSet$0(_) {
  36705. return A.LinkedHashSet_LinkedHashSet$of(this, this.$ti._precomputed1);
  36706. }
  36707. };
  36708. A.Instantiation.prototype = {
  36709. Instantiation$1(_genericClosure) {
  36710. if (false)
  36711. A.instantiatedGenericFunctionType(0, 0);
  36712. },
  36713. $eq(_, other) {
  36714. if (other == null)
  36715. return false;
  36716. return other instanceof A.Instantiation && this._genericClosure.$eq(0, other._genericClosure) && A.getRuntimeTypeOfClosure(this) === A.getRuntimeTypeOfClosure(other);
  36717. },
  36718. get$hashCode(_) {
  36719. return A.Object_hash(this._genericClosure, A.getRuntimeTypeOfClosure(this), B.C_SentinelValue, B.C_SentinelValue);
  36720. },
  36721. toString$0(_) {
  36722. var t1 = B.JSArray_methods.join$1(this.get$_types(), ", ");
  36723. return this._genericClosure.toString$0(0) + " with " + ("<" + t1 + ">");
  36724. }
  36725. };
  36726. A.Instantiation1.prototype = {
  36727. get$_types() {
  36728. return [A.createRuntimeType(this.$ti._precomputed1)];
  36729. },
  36730. call$0() {
  36731. return this._genericClosure.call$1$0(this.$ti._rest[0]);
  36732. },
  36733. call$2(a0, a1) {
  36734. return this._genericClosure.call$1$2(a0, a1, this.$ti._rest[0]);
  36735. },
  36736. call$3(a0, a1, a2) {
  36737. return this._genericClosure.call$1$3(a0, a1, a2, this.$ti._rest[0]);
  36738. },
  36739. call$4(a0, a1, a2, a3) {
  36740. return this._genericClosure.call$1$4(a0, a1, a2, a3, this.$ti._rest[0]);
  36741. },
  36742. $signature() {
  36743. return A.instantiatedGenericFunctionType(A.closureFunctionType(this._genericClosure), this.$ti);
  36744. }
  36745. };
  36746. A.JSInvocationMirror.prototype = {
  36747. get$memberName() {
  36748. var t1 = this.__js_helper$_memberName;
  36749. if (t1 instanceof A.Symbol)
  36750. return t1;
  36751. return this.__js_helper$_memberName = new A.Symbol(t1);
  36752. },
  36753. get$positionalArguments() {
  36754. var t1, t2, argumentCount, list, index, _this = this;
  36755. if (_this.__js_helper$_kind === 1)
  36756. return B.List_empty6;
  36757. t1 = _this._arguments;
  36758. t2 = J.getInterceptor$asx(t1);
  36759. argumentCount = t2.get$length(t1) - J.get$length$asx(_this._namedArgumentNames) - _this._typeArgumentCount;
  36760. if (argumentCount === 0)
  36761. return B.List_empty6;
  36762. list = [];
  36763. for (index = 0; index < argumentCount; ++index)
  36764. list.push(t2.$index(t1, index));
  36765. return J.JSArray_markUnmodifiableList(list);
  36766. },
  36767. get$namedArguments() {
  36768. var t1, t2, namedArgumentCount, t3, t4, namedArgumentsStartIndex, map, i, _this = this;
  36769. if (_this.__js_helper$_kind !== 0)
  36770. return B.Map_empty3;
  36771. t1 = _this._namedArgumentNames;
  36772. t2 = J.getInterceptor$asx(t1);
  36773. namedArgumentCount = t2.get$length(t1);
  36774. t3 = _this._arguments;
  36775. t4 = J.getInterceptor$asx(t3);
  36776. namedArgumentsStartIndex = t4.get$length(t3) - namedArgumentCount - _this._typeArgumentCount;
  36777. if (namedArgumentCount === 0)
  36778. return B.Map_empty3;
  36779. map = new A.JsLinkedHashMap(type$.JsLinkedHashMap_Symbol_dynamic);
  36780. for (i = 0; i < namedArgumentCount; ++i)
  36781. map.$indexSet(0, new A.Symbol(t2.$index(t1, i)), t4.$index(t3, namedArgumentsStartIndex + i));
  36782. return new A.ConstantMapView(map, type$.ConstantMapView_Symbol_dynamic);
  36783. }
  36784. };
  36785. A.Primitives_functionNoSuchMethod_closure.prototype = {
  36786. call$2($name, argument) {
  36787. var t1 = this._box_0;
  36788. t1.names = t1.names + "$" + $name;
  36789. this.namedArgumentList.push($name);
  36790. this.$arguments.push(argument);
  36791. ++t1.argumentCount;
  36792. },
  36793. $signature: 111
  36794. };
  36795. A.TypeErrorDecoder.prototype = {
  36796. matchTypeError$1(message) {
  36797. var result, t1, _this = this,
  36798. match = new RegExp(_this._pattern).exec(message);
  36799. if (match == null)
  36800. return null;
  36801. result = Object.create(null);
  36802. t1 = _this._arguments;
  36803. if (t1 !== -1)
  36804. result.arguments = match[t1 + 1];
  36805. t1 = _this._argumentsExpr;
  36806. if (t1 !== -1)
  36807. result.argumentsExpr = match[t1 + 1];
  36808. t1 = _this._expr;
  36809. if (t1 !== -1)
  36810. result.expr = match[t1 + 1];
  36811. t1 = _this._method;
  36812. if (t1 !== -1)
  36813. result.method = match[t1 + 1];
  36814. t1 = _this._receiver;
  36815. if (t1 !== -1)
  36816. result.receiver = match[t1 + 1];
  36817. return result;
  36818. }
  36819. };
  36820. A.NullError.prototype = {
  36821. toString$0(_) {
  36822. return "Null check operator used on a null value";
  36823. }
  36824. };
  36825. A.JsNoSuchMethodError.prototype = {
  36826. toString$0(_) {
  36827. var t2, _this = this,
  36828. _s38_ = "NoSuchMethodError: method not found: '",
  36829. t1 = _this._method;
  36830. if (t1 == null)
  36831. return "NoSuchMethodError: " + _this.__js_helper$_message;
  36832. t2 = _this._receiver;
  36833. if (t2 == null)
  36834. return _s38_ + t1 + "' (" + _this.__js_helper$_message + ")";
  36835. return _s38_ + t1 + "' on '" + t2 + "' (" + _this.__js_helper$_message + ")";
  36836. }
  36837. };
  36838. A.UnknownJsTypeError.prototype = {
  36839. toString$0(_) {
  36840. var t1 = this.__js_helper$_message;
  36841. return t1.length === 0 ? "Error" : "Error: " + t1;
  36842. }
  36843. };
  36844. A.NullThrownFromJavaScriptException.prototype = {
  36845. toString$0(_) {
  36846. return "Throw of null ('" + (this._irritant === null ? "null" : "undefined") + "' from JavaScript)";
  36847. },
  36848. $isException: 1
  36849. };
  36850. A.ExceptionAndStackTrace.prototype = {};
  36851. A._StackTrace.prototype = {
  36852. toString$0(_) {
  36853. var trace,
  36854. t1 = this._trace;
  36855. if (t1 != null)
  36856. return t1;
  36857. t1 = this._exception;
  36858. trace = t1 !== null && typeof t1 === "object" ? t1.stack : null;
  36859. return this._trace = trace == null ? "" : trace;
  36860. },
  36861. $isStackTrace: 1
  36862. };
  36863. A.Closure.prototype = {
  36864. toString$0(_) {
  36865. var $constructor = this.constructor,
  36866. $name = $constructor == null ? null : $constructor.name;
  36867. return "Closure '" + A.unminifyOrTag($name == null ? "unknown" : $name) + "'";
  36868. },
  36869. $isFunction: 1,
  36870. get$$call() {
  36871. return this;
  36872. },
  36873. "call*": "call$1",
  36874. $requiredArgCount: 1,
  36875. $defaultValues: null
  36876. };
  36877. A.Closure0Args.prototype = {"call*": "call$0", $requiredArgCount: 0};
  36878. A.Closure2Args.prototype = {"call*": "call$2", $requiredArgCount: 2};
  36879. A.TearOffClosure.prototype = {};
  36880. A.StaticClosure.prototype = {
  36881. toString$0(_) {
  36882. var $name = this.$static_name;
  36883. if ($name == null)
  36884. return "Closure of unknown static method";
  36885. return "Closure '" + A.unminifyOrTag($name) + "'";
  36886. }
  36887. };
  36888. A.BoundClosure.prototype = {
  36889. $eq(_, other) {
  36890. if (other == null)
  36891. return false;
  36892. if (this === other)
  36893. return true;
  36894. if (!(other instanceof A.BoundClosure))
  36895. return false;
  36896. return this.$_target === other.$_target && this._receiver === other._receiver;
  36897. },
  36898. get$hashCode(_) {
  36899. return (A.objectHashCode(this._receiver) ^ A.Primitives_objectHashCode(this.$_target)) >>> 0;
  36900. },
  36901. toString$0(_) {
  36902. return "Closure '" + this.$_name + "' of " + ("Instance of '" + A.Primitives_objectTypeName(this._receiver) + "'");
  36903. }
  36904. };
  36905. A._CyclicInitializationError.prototype = {
  36906. toString$0(_) {
  36907. return "Reading static variable '" + this.variableName + "' during its initialization";
  36908. }
  36909. };
  36910. A.RuntimeError.prototype = {
  36911. toString$0(_) {
  36912. return "RuntimeError: " + this.message;
  36913. },
  36914. get$message(receiver) {
  36915. return this.message;
  36916. }
  36917. };
  36918. A._Required.prototype = {};
  36919. A.JsLinkedHashMap.prototype = {
  36920. get$length(_) {
  36921. return this.__js_helper$_length;
  36922. },
  36923. get$isEmpty(_) {
  36924. return this.__js_helper$_length === 0;
  36925. },
  36926. get$isNotEmpty(_) {
  36927. return this.__js_helper$_length !== 0;
  36928. },
  36929. get$keys(_) {
  36930. return new A.LinkedHashMapKeyIterable(this, A._instanceType(this)._eval$1("LinkedHashMapKeyIterable<1>"));
  36931. },
  36932. get$values(_) {
  36933. var t1 = A._instanceType(this);
  36934. return A.MappedIterable_MappedIterable(new A.LinkedHashMapKeyIterable(this, t1._eval$1("LinkedHashMapKeyIterable<1>")), new A.JsLinkedHashMap_values_closure(this), t1._precomputed1, t1._rest[1]);
  36935. },
  36936. containsKey$1(key) {
  36937. var strings, nums;
  36938. if (typeof key == "string") {
  36939. strings = this.__js_helper$_strings;
  36940. if (strings == null)
  36941. return false;
  36942. return strings[key] != null;
  36943. } else if (typeof key == "number" && (key & 0x3fffffff) === key) {
  36944. nums = this.__js_helper$_nums;
  36945. if (nums == null)
  36946. return false;
  36947. return nums[key] != null;
  36948. } else
  36949. return this.internalContainsKey$1(key);
  36950. },
  36951. internalContainsKey$1(key) {
  36952. var rest = this.__js_helper$_rest;
  36953. if (rest == null)
  36954. return false;
  36955. return this.internalFindBucketIndex$2(rest[this.internalComputeHashCode$1(key)], key) >= 0;
  36956. },
  36957. addAll$1(_, other) {
  36958. other.forEach$1(0, new A.JsLinkedHashMap_addAll_closure(this));
  36959. },
  36960. $index(_, key) {
  36961. var strings, cell, t1, nums, _null = null;
  36962. if (typeof key == "string") {
  36963. strings = this.__js_helper$_strings;
  36964. if (strings == null)
  36965. return _null;
  36966. cell = strings[key];
  36967. t1 = cell == null ? _null : cell.hashMapCellValue;
  36968. return t1;
  36969. } else if (typeof key == "number" && (key & 0x3fffffff) === key) {
  36970. nums = this.__js_helper$_nums;
  36971. if (nums == null)
  36972. return _null;
  36973. cell = nums[key];
  36974. t1 = cell == null ? _null : cell.hashMapCellValue;
  36975. return t1;
  36976. } else
  36977. return this.internalGet$1(key);
  36978. },
  36979. internalGet$1(key) {
  36980. var bucket, index,
  36981. rest = this.__js_helper$_rest;
  36982. if (rest == null)
  36983. return null;
  36984. bucket = rest[this.internalComputeHashCode$1(key)];
  36985. index = this.internalFindBucketIndex$2(bucket, key);
  36986. if (index < 0)
  36987. return null;
  36988. return bucket[index].hashMapCellValue;
  36989. },
  36990. $indexSet(_, key, value) {
  36991. var strings, nums, _this = this;
  36992. if (typeof key == "string") {
  36993. strings = _this.__js_helper$_strings;
  36994. _this.__js_helper$_addHashTableEntry$3(strings == null ? _this.__js_helper$_strings = _this._newHashTable$0() : strings, key, value);
  36995. } else if (typeof key == "number" && (key & 0x3fffffff) === key) {
  36996. nums = _this.__js_helper$_nums;
  36997. _this.__js_helper$_addHashTableEntry$3(nums == null ? _this.__js_helper$_nums = _this._newHashTable$0() : nums, key, value);
  36998. } else
  36999. _this.internalSet$2(key, value);
  37000. },
  37001. internalSet$2(key, value) {
  37002. var hash, bucket, index, _this = this,
  37003. rest = _this.__js_helper$_rest;
  37004. if (rest == null)
  37005. rest = _this.__js_helper$_rest = _this._newHashTable$0();
  37006. hash = _this.internalComputeHashCode$1(key);
  37007. bucket = rest[hash];
  37008. if (bucket == null)
  37009. rest[hash] = [_this.__js_helper$_newLinkedCell$2(key, value)];
  37010. else {
  37011. index = _this.internalFindBucketIndex$2(bucket, key);
  37012. if (index >= 0)
  37013. bucket[index].hashMapCellValue = value;
  37014. else
  37015. bucket.push(_this.__js_helper$_newLinkedCell$2(key, value));
  37016. }
  37017. },
  37018. putIfAbsent$2(key, ifAbsent) {
  37019. var t1, value, _this = this;
  37020. if (_this.containsKey$1(key)) {
  37021. t1 = _this.$index(0, key);
  37022. return t1 == null ? A._instanceType(_this)._rest[1]._as(t1) : t1;
  37023. }
  37024. value = ifAbsent.call$0();
  37025. _this.$indexSet(0, key, value);
  37026. return value;
  37027. },
  37028. remove$1(_, key) {
  37029. var _this = this;
  37030. if (typeof key == "string")
  37031. return _this.__js_helper$_removeHashTableEntry$2(_this.__js_helper$_strings, key);
  37032. else if (typeof key == "number" && (key & 0x3fffffff) === key)
  37033. return _this.__js_helper$_removeHashTableEntry$2(_this.__js_helper$_nums, key);
  37034. else
  37035. return _this.internalRemove$1(key);
  37036. },
  37037. internalRemove$1(key) {
  37038. var hash, bucket, index, cell, _this = this,
  37039. rest = _this.__js_helper$_rest;
  37040. if (rest == null)
  37041. return null;
  37042. hash = _this.internalComputeHashCode$1(key);
  37043. bucket = rest[hash];
  37044. index = _this.internalFindBucketIndex$2(bucket, key);
  37045. if (index < 0)
  37046. return null;
  37047. cell = bucket.splice(index, 1)[0];
  37048. _this.__js_helper$_unlinkCell$1(cell);
  37049. if (bucket.length === 0)
  37050. delete rest[hash];
  37051. return cell.hashMapCellValue;
  37052. },
  37053. clear$0(_) {
  37054. var _this = this;
  37055. if (_this.__js_helper$_length > 0) {
  37056. _this.__js_helper$_strings = _this.__js_helper$_nums = _this.__js_helper$_rest = _this.__js_helper$_first = _this.__js_helper$_last = null;
  37057. _this.__js_helper$_length = 0;
  37058. _this.__js_helper$_modified$0();
  37059. }
  37060. },
  37061. forEach$1(_, action) {
  37062. var _this = this,
  37063. cell = _this.__js_helper$_first,
  37064. modifications = _this.__js_helper$_modifications;
  37065. for (; cell != null;) {
  37066. action.call$2(cell.hashMapCellKey, cell.hashMapCellValue);
  37067. if (modifications !== _this.__js_helper$_modifications)
  37068. throw A.wrapException(A.ConcurrentModificationError$(_this));
  37069. cell = cell.__js_helper$_next;
  37070. }
  37071. },
  37072. __js_helper$_addHashTableEntry$3(table, key, value) {
  37073. var cell = table[key];
  37074. if (cell == null)
  37075. table[key] = this.__js_helper$_newLinkedCell$2(key, value);
  37076. else
  37077. cell.hashMapCellValue = value;
  37078. },
  37079. __js_helper$_removeHashTableEntry$2(table, key) {
  37080. var cell;
  37081. if (table == null)
  37082. return null;
  37083. cell = table[key];
  37084. if (cell == null)
  37085. return null;
  37086. this.__js_helper$_unlinkCell$1(cell);
  37087. delete table[key];
  37088. return cell.hashMapCellValue;
  37089. },
  37090. __js_helper$_modified$0() {
  37091. this.__js_helper$_modifications = this.__js_helper$_modifications + 1 & 1073741823;
  37092. },
  37093. __js_helper$_newLinkedCell$2(key, value) {
  37094. var t1, _this = this,
  37095. cell = new A.LinkedHashMapCell(key, value);
  37096. if (_this.__js_helper$_first == null)
  37097. _this.__js_helper$_first = _this.__js_helper$_last = cell;
  37098. else {
  37099. t1 = _this.__js_helper$_last;
  37100. t1.toString;
  37101. cell.__js_helper$_previous = t1;
  37102. _this.__js_helper$_last = t1.__js_helper$_next = cell;
  37103. }
  37104. ++_this.__js_helper$_length;
  37105. _this.__js_helper$_modified$0();
  37106. return cell;
  37107. },
  37108. __js_helper$_unlinkCell$1(cell) {
  37109. var _this = this,
  37110. previous = cell.__js_helper$_previous,
  37111. next = cell.__js_helper$_next;
  37112. if (previous == null)
  37113. _this.__js_helper$_first = next;
  37114. else
  37115. previous.__js_helper$_next = next;
  37116. if (next == null)
  37117. _this.__js_helper$_last = previous;
  37118. else
  37119. next.__js_helper$_previous = previous;
  37120. --_this.__js_helper$_length;
  37121. _this.__js_helper$_modified$0();
  37122. },
  37123. internalComputeHashCode$1(key) {
  37124. return J.get$hashCode$(key) & 1073741823;
  37125. },
  37126. internalFindBucketIndex$2(bucket, key) {
  37127. var $length, i;
  37128. if (bucket == null)
  37129. return -1;
  37130. $length = bucket.length;
  37131. for (i = 0; i < $length; ++i)
  37132. if (J.$eq$(bucket[i].hashMapCellKey, key))
  37133. return i;
  37134. return -1;
  37135. },
  37136. toString$0(_) {
  37137. return A.MapBase_mapToString(this);
  37138. },
  37139. _newHashTable$0() {
  37140. var table = Object.create(null);
  37141. table["<non-identifier-key>"] = table;
  37142. delete table["<non-identifier-key>"];
  37143. return table;
  37144. }
  37145. };
  37146. A.JsLinkedHashMap_values_closure.prototype = {
  37147. call$1(each) {
  37148. var t1 = this.$this,
  37149. t2 = t1.$index(0, each);
  37150. return t2 == null ? A._instanceType(t1)._rest[1]._as(t2) : t2;
  37151. },
  37152. $signature() {
  37153. return A._instanceType(this.$this)._eval$1("2(1)");
  37154. }
  37155. };
  37156. A.JsLinkedHashMap_addAll_closure.prototype = {
  37157. call$2(key, value) {
  37158. this.$this.$indexSet(0, key, value);
  37159. },
  37160. $signature() {
  37161. return A._instanceType(this.$this)._eval$1("~(1,2)");
  37162. }
  37163. };
  37164. A.LinkedHashMapCell.prototype = {};
  37165. A.LinkedHashMapKeyIterable.prototype = {
  37166. get$length(_) {
  37167. return this.__js_helper$_map.__js_helper$_length;
  37168. },
  37169. get$isEmpty(_) {
  37170. return this.__js_helper$_map.__js_helper$_length === 0;
  37171. },
  37172. get$iterator(_) {
  37173. var t1 = this.__js_helper$_map,
  37174. t2 = new A.LinkedHashMapKeyIterator(t1, t1.__js_helper$_modifications);
  37175. t2.__js_helper$_cell = t1.__js_helper$_first;
  37176. return t2;
  37177. },
  37178. contains$1(_, element) {
  37179. return this.__js_helper$_map.containsKey$1(element);
  37180. }
  37181. };
  37182. A.LinkedHashMapKeyIterator.prototype = {
  37183. get$current(_) {
  37184. return this.__js_helper$_current;
  37185. },
  37186. moveNext$0() {
  37187. var cell, _this = this,
  37188. t1 = _this.__js_helper$_map;
  37189. if (_this.__js_helper$_modifications !== t1.__js_helper$_modifications)
  37190. throw A.wrapException(A.ConcurrentModificationError$(t1));
  37191. cell = _this.__js_helper$_cell;
  37192. if (cell == null) {
  37193. _this.__js_helper$_current = null;
  37194. return false;
  37195. } else {
  37196. _this.__js_helper$_current = cell.hashMapCellKey;
  37197. _this.__js_helper$_cell = cell.__js_helper$_next;
  37198. return true;
  37199. }
  37200. }
  37201. };
  37202. A.JsIdentityLinkedHashMap.prototype = {
  37203. internalComputeHashCode$1(key) {
  37204. return A.objectHashCode(key) & 1073741823;
  37205. },
  37206. internalFindBucketIndex$2(bucket, key) {
  37207. var $length, i, t1;
  37208. if (bucket == null)
  37209. return -1;
  37210. $length = bucket.length;
  37211. for (i = 0; i < $length; ++i) {
  37212. t1 = bucket[i].hashMapCellKey;
  37213. if (t1 == null ? key == null : t1 === key)
  37214. return i;
  37215. }
  37216. return -1;
  37217. }
  37218. };
  37219. A.JsConstantLinkedHashMap.prototype = {
  37220. internalComputeHashCode$1(key) {
  37221. return A.constantHashCode(key) & 1073741823;
  37222. },
  37223. internalFindBucketIndex$2(bucket, key) {
  37224. var $length, i;
  37225. if (bucket == null)
  37226. return -1;
  37227. $length = bucket.length;
  37228. for (i = 0; i < $length; ++i)
  37229. if (J.$eq$(bucket[i].hashMapCellKey, key))
  37230. return i;
  37231. return -1;
  37232. }
  37233. };
  37234. A.initHooks_closure.prototype = {
  37235. call$1(o) {
  37236. return this.getTag(o);
  37237. },
  37238. $signature: 110
  37239. };
  37240. A.initHooks_closure0.prototype = {
  37241. call$2(o, tag) {
  37242. return this.getUnknownTag(o, tag);
  37243. },
  37244. $signature: 592
  37245. };
  37246. A.initHooks_closure1.prototype = {
  37247. call$1(tag) {
  37248. return this.prototypeForTag(tag);
  37249. },
  37250. $signature: 236
  37251. };
  37252. A._Record.prototype = {
  37253. toString$0(_) {
  37254. return this._toString$1(false);
  37255. },
  37256. _toString$1(safe) {
  37257. var t2, separator, i, key, value,
  37258. keys = this._fieldKeys$0(),
  37259. values = this._getFieldValues$0(),
  37260. t1 = (safe ? "" + "Record " : "") + "(";
  37261. for (t2 = keys.length, separator = "", i = 0; i < t2; ++i, separator = ", ") {
  37262. t1 += separator;
  37263. key = keys[i];
  37264. if (typeof key == "string")
  37265. t1 = t1 + key + ": ";
  37266. value = values[i];
  37267. t1 = safe ? t1 + A.Primitives_safeToString(value) : t1 + A.S(value);
  37268. }
  37269. t1 += ")";
  37270. return t1.charCodeAt(0) == 0 ? t1 : t1;
  37271. },
  37272. _fieldKeys$0() {
  37273. var t1,
  37274. shapeTag = this.$shape;
  37275. for (; $._Record__computedFieldKeys.length <= shapeTag;)
  37276. $._Record__computedFieldKeys.push(null);
  37277. t1 = $._Record__computedFieldKeys[shapeTag];
  37278. if (t1 == null) {
  37279. t1 = this._computeFieldKeys$0();
  37280. $._Record__computedFieldKeys[shapeTag] = t1;
  37281. }
  37282. return t1;
  37283. },
  37284. _computeFieldKeys$0() {
  37285. var i, names, last,
  37286. recipe = this.$recipe,
  37287. position = recipe.indexOf("("),
  37288. joinedNames = recipe.substring(1, position),
  37289. fields = recipe.substring(position),
  37290. arity = fields === "()" ? 0 : fields.replace(/[^,]/g, "").length + 1,
  37291. t1 = type$.Object,
  37292. result = J.JSArray_JSArray$allocateGrowable(arity, t1);
  37293. for (i = 0; i < arity; ++i)
  37294. result[i] = i;
  37295. if (joinedNames !== "") {
  37296. names = joinedNames.split(",");
  37297. i = names.length;
  37298. for (last = arity; i > 0;) {
  37299. --last;
  37300. --i;
  37301. result[last] = names[i];
  37302. }
  37303. }
  37304. return A.List_List$unmodifiable(result, t1);
  37305. }
  37306. };
  37307. A._Record2.prototype = {
  37308. _getFieldValues$0() {
  37309. return [this._0, this._1];
  37310. },
  37311. $eq(_, other) {
  37312. if (other == null)
  37313. return false;
  37314. return other instanceof A._Record2 && this.$shape === other.$shape && J.$eq$(this._0, other._0) && J.$eq$(this._1, other._1);
  37315. },
  37316. get$hashCode(_) {
  37317. return A.Object_hash(this.$shape, this._0, this._1, B.C_SentinelValue);
  37318. }
  37319. };
  37320. A._Record1.prototype = {
  37321. _getFieldValues$0() {
  37322. return [this._0];
  37323. },
  37324. $eq(_, other) {
  37325. if (other == null)
  37326. return false;
  37327. return other instanceof A._Record1 && this.$shape === other.$shape && J.$eq$(this._0, other._0);
  37328. },
  37329. get$hashCode(_) {
  37330. return A.Object_hash(this.$shape, this._0, B.C_SentinelValue, B.C_SentinelValue);
  37331. }
  37332. };
  37333. A._Record3.prototype = {
  37334. _getFieldValues$0() {
  37335. return [this._0, this._1, this._2];
  37336. },
  37337. $eq(_, other) {
  37338. var _this = this;
  37339. if (other == null)
  37340. return false;
  37341. return other instanceof A._Record3 && _this.$shape === other.$shape && J.$eq$(_this._0, other._0) && J.$eq$(_this._1, other._1) && J.$eq$(_this._2, other._2);
  37342. },
  37343. get$hashCode(_) {
  37344. var _this = this;
  37345. return A.Object_hash(_this.$shape, _this._0, _this._1, _this._2);
  37346. }
  37347. };
  37348. A._RecordN.prototype = {
  37349. _getFieldValues$0() {
  37350. return this._values;
  37351. },
  37352. $eq(_, other) {
  37353. if (other == null)
  37354. return false;
  37355. return other instanceof A._RecordN && this.$shape === other.$shape && A._RecordN__equalValues(this._values, other._values);
  37356. },
  37357. get$hashCode(_) {
  37358. return A.Object_hash(this.$shape, A.Object_hashAll(this._values), B.C_SentinelValue, B.C_SentinelValue);
  37359. }
  37360. };
  37361. A.JSSyntaxRegExp.prototype = {
  37362. toString$0(_) {
  37363. return "RegExp/" + this.pattern + "/" + this._nativeRegExp.flags;
  37364. },
  37365. get$_nativeGlobalVersion() {
  37366. var _this = this,
  37367. t1 = _this._nativeGlobalRegExp;
  37368. if (t1 != null)
  37369. return t1;
  37370. t1 = _this._nativeRegExp;
  37371. return _this._nativeGlobalRegExp = A.JSSyntaxRegExp_makeNative(_this.pattern, t1.multiline, !t1.ignoreCase, t1.unicode, t1.dotAll, true);
  37372. },
  37373. get$_nativeAnchoredVersion() {
  37374. var _this = this,
  37375. t1 = _this._nativeAnchoredRegExp;
  37376. if (t1 != null)
  37377. return t1;
  37378. t1 = _this._nativeRegExp;
  37379. return _this._nativeAnchoredRegExp = A.JSSyntaxRegExp_makeNative(_this.pattern + "|()", t1.multiline, !t1.ignoreCase, t1.unicode, t1.dotAll, true);
  37380. },
  37381. firstMatch$1(string) {
  37382. var m = this._nativeRegExp.exec(string);
  37383. if (m == null)
  37384. return null;
  37385. return new A._MatchImplementation(m);
  37386. },
  37387. allMatches$2(_, string, start) {
  37388. var t1 = string.length;
  37389. if (start > t1)
  37390. throw A.wrapException(A.RangeError$range(start, 0, t1, null, null));
  37391. return new A._AllMatchesIterable(this, string, start);
  37392. },
  37393. allMatches$1(_, string) {
  37394. return this.allMatches$2(0, string, 0);
  37395. },
  37396. _execGlobal$2(string, start) {
  37397. var match,
  37398. regexp = this.get$_nativeGlobalVersion();
  37399. regexp.lastIndex = start;
  37400. match = regexp.exec(string);
  37401. if (match == null)
  37402. return null;
  37403. return new A._MatchImplementation(match);
  37404. },
  37405. _execAnchored$2(string, start) {
  37406. var match,
  37407. regexp = this.get$_nativeAnchoredVersion();
  37408. regexp.lastIndex = start;
  37409. match = regexp.exec(string);
  37410. if (match == null)
  37411. return null;
  37412. if (match.pop() != null)
  37413. return null;
  37414. return new A._MatchImplementation(match);
  37415. },
  37416. matchAsPrefix$2(_, string, start) {
  37417. if (start < 0 || start > string.length)
  37418. throw A.wrapException(A.RangeError$range(start, 0, string.length, null, null));
  37419. return this._execAnchored$2(string, start);
  37420. }
  37421. };
  37422. A._MatchImplementation.prototype = {
  37423. get$start(_) {
  37424. return this._match.index;
  37425. },
  37426. get$end(_) {
  37427. var t1 = this._match;
  37428. return t1.index + t1[0].length;
  37429. },
  37430. namedGroup$1($name) {
  37431. var result,
  37432. groups = this._match.groups;
  37433. if (groups != null) {
  37434. result = groups[$name];
  37435. if (result != null || $name in groups)
  37436. return result;
  37437. }
  37438. throw A.wrapException(A.ArgumentError$value($name, "name", "Not a capture group name"));
  37439. },
  37440. $isMatch: 1,
  37441. $isRegExpMatch: 1
  37442. };
  37443. A._AllMatchesIterable.prototype = {
  37444. get$iterator(_) {
  37445. return new A._AllMatchesIterator(this._re, this.__js_helper$_string, this.__js_helper$_start);
  37446. }
  37447. };
  37448. A._AllMatchesIterator.prototype = {
  37449. get$current(_) {
  37450. var t1 = this.__js_helper$_current;
  37451. return t1 == null ? type$.RegExpMatch._as(t1) : t1;
  37452. },
  37453. moveNext$0() {
  37454. var t1, t2, t3, match, nextIndex, t4, _this = this,
  37455. string = _this.__js_helper$_string;
  37456. if (string == null)
  37457. return false;
  37458. t1 = _this._nextIndex;
  37459. t2 = string.length;
  37460. if (t1 <= t2) {
  37461. t3 = _this._regExp;
  37462. match = t3._execGlobal$2(string, t1);
  37463. if (match != null) {
  37464. _this.__js_helper$_current = match;
  37465. nextIndex = match.get$end(0);
  37466. if (match._match.index === nextIndex) {
  37467. t1 = false;
  37468. if (t3._nativeRegExp.unicode) {
  37469. t3 = _this._nextIndex;
  37470. t4 = t3 + 1;
  37471. if (t4 < t2) {
  37472. t2 = string.charCodeAt(t3);
  37473. if (t2 >= 55296 && t2 <= 56319) {
  37474. t1 = string.charCodeAt(t4);
  37475. t1 = t1 >= 56320 && t1 <= 57343;
  37476. }
  37477. }
  37478. }
  37479. nextIndex = (t1 ? nextIndex + 1 : nextIndex) + 1;
  37480. }
  37481. _this._nextIndex = nextIndex;
  37482. return true;
  37483. }
  37484. }
  37485. _this.__js_helper$_string = _this.__js_helper$_current = null;
  37486. return false;
  37487. }
  37488. };
  37489. A.StringMatch.prototype = {
  37490. get$end(_) {
  37491. return this.start + this.pattern.length;
  37492. },
  37493. $isMatch: 1,
  37494. get$start(receiver) {
  37495. return this.start;
  37496. }
  37497. };
  37498. A._StringAllMatchesIterable.prototype = {
  37499. get$iterator(_) {
  37500. return new A._StringAllMatchesIterator(this._input, this._pattern, this.__js_helper$_index);
  37501. },
  37502. get$first(_) {
  37503. var t1 = this._pattern,
  37504. index = this._input.indexOf(t1, this.__js_helper$_index);
  37505. if (index >= 0)
  37506. return new A.StringMatch(index, t1);
  37507. throw A.wrapException(A.IterableElementError_noElement());
  37508. }
  37509. };
  37510. A._StringAllMatchesIterator.prototype = {
  37511. moveNext$0() {
  37512. var index, end, _this = this,
  37513. t1 = _this.__js_helper$_index,
  37514. t2 = _this._pattern,
  37515. t3 = t2.length,
  37516. t4 = _this._input,
  37517. t5 = t4.length;
  37518. if (t1 + t3 > t5) {
  37519. _this.__js_helper$_current = null;
  37520. return false;
  37521. }
  37522. index = t4.indexOf(t2, t1);
  37523. if (index < 0) {
  37524. _this.__js_helper$_index = t5 + 1;
  37525. _this.__js_helper$_current = null;
  37526. return false;
  37527. }
  37528. end = index + t3;
  37529. _this.__js_helper$_current = new A.StringMatch(index, t2);
  37530. _this.__js_helper$_index = end === _this.__js_helper$_index ? end + 1 : end;
  37531. return true;
  37532. },
  37533. get$current(_) {
  37534. var t1 = this.__js_helper$_current;
  37535. t1.toString;
  37536. return t1;
  37537. }
  37538. };
  37539. A._Cell.prototype = {
  37540. readLocal$1$0() {
  37541. var t1 = this.__late_helper$_value;
  37542. if (t1 === this)
  37543. A.throwExpression(new A.LateError("Local '' has not been initialized."));
  37544. return t1;
  37545. },
  37546. readLocal$0() {
  37547. return this.readLocal$1$0(type$.dynamic);
  37548. },
  37549. _readLocal$0() {
  37550. var t1 = this.__late_helper$_value;
  37551. if (t1 === this)
  37552. throw A.wrapException(new A.LateError("Local '' has not been initialized."));
  37553. return t1;
  37554. }
  37555. };
  37556. A.NativeByteBuffer.prototype = {
  37557. get$runtimeType(receiver) {
  37558. return B.Type_ByteBuffer_EOZ;
  37559. },
  37560. $isTrustedGetRuntimeType: 1,
  37561. $isByteBuffer: 1
  37562. };
  37563. A.NativeTypedData.prototype = {
  37564. _invalidPosition$3(receiver, position, $length, $name) {
  37565. var t1 = A.RangeError$range(position, 0, $length, $name, null);
  37566. throw A.wrapException(t1);
  37567. },
  37568. _checkPosition$3(receiver, position, $length, $name) {
  37569. if (position >>> 0 !== position || position > $length)
  37570. this._invalidPosition$3(receiver, position, $length, $name);
  37571. }
  37572. };
  37573. A.NativeByteData.prototype = {
  37574. get$runtimeType(receiver) {
  37575. return B.Type_ByteData_mF8;
  37576. },
  37577. $isTrustedGetRuntimeType: 1,
  37578. $isByteData: 1
  37579. };
  37580. A.NativeTypedArray.prototype = {
  37581. get$length(receiver) {
  37582. return receiver.length;
  37583. },
  37584. _setRangeFast$4(receiver, start, end, source, skipCount) {
  37585. var count, sourceLength,
  37586. targetLength = receiver.length;
  37587. this._checkPosition$3(receiver, start, targetLength, "start");
  37588. this._checkPosition$3(receiver, end, targetLength, "end");
  37589. if (start > end)
  37590. throw A.wrapException(A.RangeError$range(start, 0, end, null, null));
  37591. count = end - start;
  37592. if (skipCount < 0)
  37593. throw A.wrapException(A.ArgumentError$(skipCount, null));
  37594. sourceLength = source.length;
  37595. if (sourceLength - skipCount < count)
  37596. throw A.wrapException(A.StateError$("Not enough elements"));
  37597. if (skipCount !== 0 || sourceLength !== count)
  37598. source = source.subarray(skipCount, skipCount + count);
  37599. receiver.set(source, start);
  37600. },
  37601. $isJavaScriptIndexingBehavior: 1
  37602. };
  37603. A.NativeTypedArrayOfDouble.prototype = {
  37604. $index(receiver, index) {
  37605. A._checkValidIndex(index, receiver, receiver.length);
  37606. return receiver[index];
  37607. },
  37608. $indexSet(receiver, index, value) {
  37609. A._checkValidIndex(index, receiver, receiver.length);
  37610. receiver[index] = value;
  37611. },
  37612. setRange$4(receiver, start, end, iterable, skipCount) {
  37613. if (type$.NativeTypedArrayOfDouble._is(iterable)) {
  37614. this._setRangeFast$4(receiver, start, end, iterable, skipCount);
  37615. return;
  37616. }
  37617. this.super$ListBase$setRange(receiver, start, end, iterable, skipCount);
  37618. },
  37619. $isEfficientLengthIterable: 1,
  37620. $isIterable: 1,
  37621. $isList: 1
  37622. };
  37623. A.NativeTypedArrayOfInt.prototype = {
  37624. $indexSet(receiver, index, value) {
  37625. A._checkValidIndex(index, receiver, receiver.length);
  37626. receiver[index] = value;
  37627. },
  37628. setRange$4(receiver, start, end, iterable, skipCount) {
  37629. if (type$.NativeTypedArrayOfInt._is(iterable)) {
  37630. this._setRangeFast$4(receiver, start, end, iterable, skipCount);
  37631. return;
  37632. }
  37633. this.super$ListBase$setRange(receiver, start, end, iterable, skipCount);
  37634. },
  37635. $isEfficientLengthIterable: 1,
  37636. $isIterable: 1,
  37637. $isList: 1
  37638. };
  37639. A.NativeFloat32List.prototype = {
  37640. get$runtimeType(receiver) {
  37641. return B.Type_Float32List_Ymk;
  37642. },
  37643. sublist$2(receiver, start, end) {
  37644. return new Float32Array(receiver.subarray(start, A._checkValidRange(start, end, receiver.length)));
  37645. },
  37646. sublist$1(receiver, start) {
  37647. return this.sublist$2(receiver, start, null);
  37648. },
  37649. $isTrustedGetRuntimeType: 1,
  37650. $isFloat32List: 1
  37651. };
  37652. A.NativeFloat64List.prototype = {
  37653. get$runtimeType(receiver) {
  37654. return B.Type_Float64List_Ymk;
  37655. },
  37656. sublist$2(receiver, start, end) {
  37657. return new Float64Array(receiver.subarray(start, A._checkValidRange(start, end, receiver.length)));
  37658. },
  37659. sublist$1(receiver, start) {
  37660. return this.sublist$2(receiver, start, null);
  37661. },
  37662. $isTrustedGetRuntimeType: 1,
  37663. $isFloat64List: 1
  37664. };
  37665. A.NativeInt16List.prototype = {
  37666. get$runtimeType(receiver) {
  37667. return B.Type_Int16List_cot;
  37668. },
  37669. $index(receiver, index) {
  37670. A._checkValidIndex(index, receiver, receiver.length);
  37671. return receiver[index];
  37672. },
  37673. sublist$2(receiver, start, end) {
  37674. return new Int16Array(receiver.subarray(start, A._checkValidRange(start, end, receiver.length)));
  37675. },
  37676. sublist$1(receiver, start) {
  37677. return this.sublist$2(receiver, start, null);
  37678. },
  37679. $isTrustedGetRuntimeType: 1,
  37680. $isInt16List: 1
  37681. };
  37682. A.NativeInt32List.prototype = {
  37683. get$runtimeType(receiver) {
  37684. return B.Type_Int32List_m1p;
  37685. },
  37686. $index(receiver, index) {
  37687. A._checkValidIndex(index, receiver, receiver.length);
  37688. return receiver[index];
  37689. },
  37690. sublist$2(receiver, start, end) {
  37691. return new Int32Array(receiver.subarray(start, A._checkValidRange(start, end, receiver.length)));
  37692. },
  37693. sublist$1(receiver, start) {
  37694. return this.sublist$2(receiver, start, null);
  37695. },
  37696. $isTrustedGetRuntimeType: 1,
  37697. $isInt32List: 1
  37698. };
  37699. A.NativeInt8List.prototype = {
  37700. get$runtimeType(receiver) {
  37701. return B.Type_Int8List_woc;
  37702. },
  37703. $index(receiver, index) {
  37704. A._checkValidIndex(index, receiver, receiver.length);
  37705. return receiver[index];
  37706. },
  37707. sublist$2(receiver, start, end) {
  37708. return new Int8Array(receiver.subarray(start, A._checkValidRange(start, end, receiver.length)));
  37709. },
  37710. sublist$1(receiver, start) {
  37711. return this.sublist$2(receiver, start, null);
  37712. },
  37713. $isTrustedGetRuntimeType: 1,
  37714. $isInt8List: 1
  37715. };
  37716. A.NativeUint16List.prototype = {
  37717. get$runtimeType(receiver) {
  37718. return B.Type_Uint16List_2mh;
  37719. },
  37720. $index(receiver, index) {
  37721. A._checkValidIndex(index, receiver, receiver.length);
  37722. return receiver[index];
  37723. },
  37724. sublist$2(receiver, start, end) {
  37725. return new Uint16Array(receiver.subarray(start, A._checkValidRange(start, end, receiver.length)));
  37726. },
  37727. sublist$1(receiver, start) {
  37728. return this.sublist$2(receiver, start, null);
  37729. },
  37730. $isTrustedGetRuntimeType: 1,
  37731. $isUint16List: 1
  37732. };
  37733. A.NativeUint32List.prototype = {
  37734. get$runtimeType(receiver) {
  37735. return B.Type_Uint32List_2mh;
  37736. },
  37737. $index(receiver, index) {
  37738. A._checkValidIndex(index, receiver, receiver.length);
  37739. return receiver[index];
  37740. },
  37741. sublist$2(receiver, start, end) {
  37742. return new Uint32Array(receiver.subarray(start, A._checkValidRange(start, end, receiver.length)));
  37743. },
  37744. sublist$1(receiver, start) {
  37745. return this.sublist$2(receiver, start, null);
  37746. },
  37747. $isTrustedGetRuntimeType: 1,
  37748. $isUint32List: 1
  37749. };
  37750. A.NativeUint8ClampedList.prototype = {
  37751. get$runtimeType(receiver) {
  37752. return B.Type_Uint8ClampedList_9Bb;
  37753. },
  37754. get$length(receiver) {
  37755. return receiver.length;
  37756. },
  37757. $index(receiver, index) {
  37758. A._checkValidIndex(index, receiver, receiver.length);
  37759. return receiver[index];
  37760. },
  37761. sublist$2(receiver, start, end) {
  37762. return new Uint8ClampedArray(receiver.subarray(start, A._checkValidRange(start, end, receiver.length)));
  37763. },
  37764. sublist$1(receiver, start) {
  37765. return this.sublist$2(receiver, start, null);
  37766. },
  37767. $isTrustedGetRuntimeType: 1,
  37768. $isUint8ClampedList: 1
  37769. };
  37770. A.NativeUint8List.prototype = {
  37771. get$runtimeType(receiver) {
  37772. return B.Type_Uint8List_CSc;
  37773. },
  37774. get$length(receiver) {
  37775. return receiver.length;
  37776. },
  37777. $index(receiver, index) {
  37778. A._checkValidIndex(index, receiver, receiver.length);
  37779. return receiver[index];
  37780. },
  37781. sublist$2(receiver, start, end) {
  37782. return new Uint8Array(receiver.subarray(start, A._checkValidRange(start, end, receiver.length)));
  37783. },
  37784. sublist$1(receiver, start) {
  37785. return this.sublist$2(receiver, start, null);
  37786. },
  37787. $isTrustedGetRuntimeType: 1,
  37788. $isNativeUint8List: 1,
  37789. $isUint8List: 1
  37790. };
  37791. A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin.prototype = {};
  37792. A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin.prototype = {};
  37793. A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin.prototype = {};
  37794. A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin.prototype = {};
  37795. A.Rti.prototype = {
  37796. _eval$1(recipe) {
  37797. return A._Universe_evalInEnvironment(init.typeUniverse, this, recipe);
  37798. },
  37799. _bind$1(typeOrTuple) {
  37800. return A._Universe_bind(init.typeUniverse, this, typeOrTuple);
  37801. }
  37802. };
  37803. A._FunctionParameters.prototype = {};
  37804. A._Type.prototype = {
  37805. toString$0(_) {
  37806. return A._rtiToString(this._rti, null);
  37807. }
  37808. };
  37809. A._Error.prototype = {
  37810. toString$0(_) {
  37811. return this.__rti$_message;
  37812. }
  37813. };
  37814. A._TypeError.prototype = {
  37815. get$message(_) {
  37816. return this.__rti$_message;
  37817. },
  37818. $isTypeError: 1
  37819. };
  37820. A._AsyncRun__initializeScheduleImmediate_internalCallback.prototype = {
  37821. call$1(_) {
  37822. var t1 = this._box_0,
  37823. f = t1.storedCallback;
  37824. t1.storedCallback = null;
  37825. f.call$0();
  37826. },
  37827. $signature: 58
  37828. };
  37829. A._AsyncRun__initializeScheduleImmediate_closure.prototype = {
  37830. call$1(callback) {
  37831. var t1, t2;
  37832. this._box_0.storedCallback = callback;
  37833. t1 = this.div;
  37834. t2 = this.span;
  37835. t1.firstChild ? t1.removeChild(t2) : t1.appendChild(t2);
  37836. },
  37837. $signature: 35
  37838. };
  37839. A._AsyncRun__scheduleImmediateJsOverride_internalCallback.prototype = {
  37840. call$0() {
  37841. this.callback.call$0();
  37842. },
  37843. $signature: 1
  37844. };
  37845. A._AsyncRun__scheduleImmediateWithSetImmediate_internalCallback.prototype = {
  37846. call$0() {
  37847. this.callback.call$0();
  37848. },
  37849. $signature: 1
  37850. };
  37851. A._TimerImpl.prototype = {
  37852. _TimerImpl$2(milliseconds, callback) {
  37853. if (self.setTimeout != null)
  37854. this._handle = self.setTimeout(A.convertDartClosureToJS(new A._TimerImpl_internalCallback(this, callback), 0), milliseconds);
  37855. else
  37856. throw A.wrapException(A.UnsupportedError$("`setTimeout()` not found."));
  37857. },
  37858. _TimerImpl$periodic$2(milliseconds, callback) {
  37859. if (self.setTimeout != null)
  37860. this._handle = self.setInterval(A.convertDartClosureToJS(new A._TimerImpl$periodic_closure(this, milliseconds, Date.now(), callback), 0), milliseconds);
  37861. else
  37862. throw A.wrapException(A.UnsupportedError$("Periodic timer."));
  37863. },
  37864. cancel$0() {
  37865. if (self.setTimeout != null) {
  37866. var t1 = this._handle;
  37867. if (t1 == null)
  37868. return;
  37869. if (this._once)
  37870. self.clearTimeout(t1);
  37871. else
  37872. self.clearInterval(t1);
  37873. this._handle = null;
  37874. } else
  37875. throw A.wrapException(A.UnsupportedError$("Canceling a timer."));
  37876. }
  37877. };
  37878. A._TimerImpl_internalCallback.prototype = {
  37879. call$0() {
  37880. var t1 = this.$this;
  37881. t1._handle = null;
  37882. t1._tick = 1;
  37883. this.callback.call$0();
  37884. },
  37885. $signature: 0
  37886. };
  37887. A._TimerImpl$periodic_closure.prototype = {
  37888. call$0() {
  37889. var duration, _this = this,
  37890. t1 = _this.$this,
  37891. tick = t1._tick + 1,
  37892. t2 = _this.milliseconds;
  37893. if (t2 > 0) {
  37894. duration = Date.now() - _this.start;
  37895. if (duration > (tick + 1) * t2)
  37896. tick = B.JSInt_methods.$tdiv(duration, t2);
  37897. }
  37898. t1._tick = tick;
  37899. _this.callback.call$1(t1);
  37900. },
  37901. $signature: 1
  37902. };
  37903. A._AsyncAwaitCompleter.prototype = {
  37904. complete$1(value) {
  37905. var t1, _this = this;
  37906. if (value == null)
  37907. value = _this.$ti._precomputed1._as(value);
  37908. if (!_this.isSync)
  37909. _this._future._asyncComplete$1(value);
  37910. else {
  37911. t1 = _this._future;
  37912. if (_this.$ti._eval$1("Future<1>")._is(value))
  37913. t1._chainFuture$1(value);
  37914. else
  37915. t1._completeWithValue$1(value);
  37916. }
  37917. },
  37918. completeError$2(e, st) {
  37919. var t1 = this._future;
  37920. if (this.isSync)
  37921. t1._completeError$2(e, st);
  37922. else
  37923. t1._asyncCompleteError$2(e, st);
  37924. }
  37925. };
  37926. A._awaitOnObject_closure.prototype = {
  37927. call$1(result) {
  37928. return this.bodyFunction.call$2(0, result);
  37929. },
  37930. $signature: 70
  37931. };
  37932. A._awaitOnObject_closure0.prototype = {
  37933. call$2(error, stackTrace) {
  37934. this.bodyFunction.call$2(1, new A.ExceptionAndStackTrace(error, stackTrace));
  37935. },
  37936. $signature: 296
  37937. };
  37938. A._wrapJsFunctionForAsync_closure.prototype = {
  37939. call$2(errorCode, result) {
  37940. this.$protected(errorCode, result);
  37941. },
  37942. $signature: 544
  37943. };
  37944. A._SyncStarIterator.prototype = {
  37945. get$current(_) {
  37946. return this._async$_current;
  37947. },
  37948. _resumeBody$2(errorCode, errorValue) {
  37949. var body, t1, exception;
  37950. errorCode = errorCode;
  37951. errorValue = errorValue;
  37952. body = this._body;
  37953. for (; true;)
  37954. try {
  37955. t1 = body(this, errorCode, errorValue);
  37956. return t1;
  37957. } catch (exception) {
  37958. errorValue = exception;
  37959. errorCode = 1;
  37960. }
  37961. },
  37962. moveNext$0() {
  37963. var nestedIterator, exception, value, suspendedBodies, _this = this, errorValue = null, errorCode = 0;
  37964. for (; true;) {
  37965. nestedIterator = _this._nestedIterator;
  37966. if (nestedIterator != null)
  37967. try {
  37968. if (nestedIterator.moveNext$0()) {
  37969. _this._async$_current = J.get$current$x(nestedIterator);
  37970. return true;
  37971. } else
  37972. _this._nestedIterator = null;
  37973. } catch (exception) {
  37974. errorValue = exception;
  37975. errorCode = 1;
  37976. _this._nestedIterator = null;
  37977. }
  37978. value = _this._resumeBody$2(errorCode, errorValue);
  37979. if (1 === value)
  37980. return true;
  37981. if (0 === value) {
  37982. _this._async$_current = null;
  37983. suspendedBodies = _this._suspendedBodies;
  37984. if (suspendedBodies == null || suspendedBodies.length === 0) {
  37985. _this._body = A._SyncStarIterator__terminatedBody;
  37986. return false;
  37987. }
  37988. _this._body = suspendedBodies.pop();
  37989. errorCode = 0;
  37990. errorValue = null;
  37991. continue;
  37992. }
  37993. if (2 === value) {
  37994. errorCode = 0;
  37995. errorValue = null;
  37996. continue;
  37997. }
  37998. if (3 === value) {
  37999. errorValue = _this._datum;
  38000. _this._datum = null;
  38001. suspendedBodies = _this._suspendedBodies;
  38002. if (suspendedBodies == null || suspendedBodies.length === 0) {
  38003. _this._async$_current = null;
  38004. _this._body = A._SyncStarIterator__terminatedBody;
  38005. throw errorValue;
  38006. return false;
  38007. }
  38008. _this._body = suspendedBodies.pop();
  38009. errorCode = 1;
  38010. continue;
  38011. }
  38012. throw A.wrapException(A.StateError$("sync*"));
  38013. }
  38014. return false;
  38015. },
  38016. _yieldStar$1(iterable) {
  38017. var t1, t2, _this = this;
  38018. if (iterable instanceof A._SyncStarIterable) {
  38019. t1 = iterable._outerHelper();
  38020. t2 = _this._suspendedBodies;
  38021. if (t2 == null)
  38022. t2 = _this._suspendedBodies = [];
  38023. t2.push(_this._body);
  38024. _this._body = t1;
  38025. return 2;
  38026. } else {
  38027. _this._nestedIterator = J.get$iterator$ax(iterable);
  38028. return 2;
  38029. }
  38030. }
  38031. };
  38032. A._SyncStarIterable.prototype = {
  38033. get$iterator(_) {
  38034. return new A._SyncStarIterator(this._outerHelper());
  38035. }
  38036. };
  38037. A.AsyncError.prototype = {
  38038. toString$0(_) {
  38039. return A.S(this.error);
  38040. },
  38041. $isError: 1,
  38042. get$stackTrace() {
  38043. return this.stackTrace;
  38044. }
  38045. };
  38046. A.Future_wait_handleError.prototype = {
  38047. call$2(theError, theStackTrace) {
  38048. var _this = this,
  38049. t1 = _this._box_0,
  38050. t2 = --t1.remaining;
  38051. if (t1.values != null) {
  38052. t1.values = null;
  38053. t1.error = theError;
  38054. t1.stackTrace = theStackTrace;
  38055. if (t2 === 0 || _this.eagerError)
  38056. _this._future._completeError$2(theError, theStackTrace);
  38057. } else if (t2 === 0 && !_this.eagerError) {
  38058. t2 = t1.error;
  38059. t2.toString;
  38060. t1 = t1.stackTrace;
  38061. t1.toString;
  38062. _this._future._completeError$2(t2, t1);
  38063. }
  38064. },
  38065. $signature: 68
  38066. };
  38067. A.Future_wait_closure.prototype = {
  38068. call$1(value) {
  38069. var t1, value0, t3, t4, _i, t5, _this = this,
  38070. t2 = _this._box_0,
  38071. remainingResults = --t2.remaining,
  38072. valueList = t2.values;
  38073. if (valueList != null) {
  38074. J.$indexSet$ax(valueList, _this.pos, value);
  38075. if (J.$eq$(remainingResults, 0)) {
  38076. t2 = _this.T;
  38077. t1 = A._setArrayType([], t2._eval$1("JSArray<0>"));
  38078. for (t3 = valueList, t4 = t3.length, _i = 0; _i < t3.length; t3.length === t4 || (0, A.throwConcurrentModificationError)(t3), ++_i) {
  38079. value0 = t3[_i];
  38080. t5 = value0;
  38081. if (t5 == null)
  38082. t5 = t2._as(t5);
  38083. J.add$1$ax(t1, t5);
  38084. }
  38085. _this._future._completeWithValue$1(t1);
  38086. }
  38087. } else if (J.$eq$(remainingResults, 0) && !_this.eagerError) {
  38088. t1 = t2.error;
  38089. t1.toString;
  38090. t2 = t2.stackTrace;
  38091. t2.toString;
  38092. _this._future._completeError$2(t1, t2);
  38093. }
  38094. },
  38095. $signature() {
  38096. return this.T._eval$1("Null(0)");
  38097. }
  38098. };
  38099. A._Completer.prototype = {
  38100. completeError$2(error, stackTrace) {
  38101. var replacement;
  38102. A.checkNotNullable(error, "error", type$.Object);
  38103. if ((this.future._state & 30) !== 0)
  38104. throw A.wrapException(A.StateError$("Future already completed"));
  38105. replacement = $.Zone__current.errorCallback$2(error, stackTrace);
  38106. if (replacement != null) {
  38107. error = replacement.error;
  38108. stackTrace = replacement.stackTrace;
  38109. } else if (stackTrace == null)
  38110. stackTrace = A.AsyncError_defaultStackTrace(error);
  38111. this._completeError$2(error, stackTrace);
  38112. },
  38113. completeError$1(error) {
  38114. return this.completeError$2(error, null);
  38115. }
  38116. };
  38117. A._AsyncCompleter.prototype = {
  38118. complete$1(value) {
  38119. var t1 = this.future;
  38120. if ((t1._state & 30) !== 0)
  38121. throw A.wrapException(A.StateError$("Future already completed"));
  38122. t1._asyncComplete$1(value);
  38123. },
  38124. complete$0() {
  38125. return this.complete$1(null);
  38126. },
  38127. _completeError$2(error, stackTrace) {
  38128. this.future._asyncCompleteError$2(error, stackTrace);
  38129. }
  38130. };
  38131. A._SyncCompleter.prototype = {
  38132. complete$1(value) {
  38133. var t1 = this.future;
  38134. if ((t1._state & 30) !== 0)
  38135. throw A.wrapException(A.StateError$("Future already completed"));
  38136. t1._complete$1(value);
  38137. },
  38138. _completeError$2(error, stackTrace) {
  38139. this.future._completeError$2(error, stackTrace);
  38140. }
  38141. };
  38142. A._FutureListener.prototype = {
  38143. matchesErrorTest$1(asyncError) {
  38144. if ((this.state & 15) !== 6)
  38145. return true;
  38146. return this.result._zone.runUnary$2$2(this.callback, asyncError.error, type$.bool, type$.Object);
  38147. },
  38148. handleError$1(asyncError) {
  38149. var exception,
  38150. errorCallback = this.errorCallback,
  38151. result = null,
  38152. t1 = type$.dynamic,
  38153. t2 = type$.Object,
  38154. t3 = asyncError.error,
  38155. t4 = this.result._zone;
  38156. if (type$.dynamic_Function_Object_StackTrace._is(errorCallback))
  38157. result = t4.runBinary$3$3(errorCallback, t3, asyncError.stackTrace, t1, t2, type$.StackTrace);
  38158. else
  38159. result = t4.runUnary$2$2(errorCallback, t3, t1, t2);
  38160. try {
  38161. t1 = result;
  38162. return t1;
  38163. } catch (exception) {
  38164. if (type$.TypeError._is(A.unwrapException(exception))) {
  38165. if ((this.state & 1) !== 0)
  38166. throw A.wrapException(A.ArgumentError$("The error handler of Future.then must return a value of the returned future's type", "onError"));
  38167. throw A.wrapException(A.ArgumentError$("The error handler of Future.catchError must return a value of the future's type", "onError"));
  38168. } else
  38169. throw exception;
  38170. }
  38171. }
  38172. };
  38173. A._Future.prototype = {
  38174. _setChained$1(source) {
  38175. this._state = this._state & 1 | 4;
  38176. this._resultOrListeners = source;
  38177. },
  38178. then$1$2$onError(_, f, onError, $R) {
  38179. var result, t1,
  38180. currentZone = $.Zone__current;
  38181. if (currentZone === B.C__RootZone) {
  38182. if (onError != null && !type$.dynamic_Function_Object_StackTrace._is(onError) && !type$.dynamic_Function_Object._is(onError))
  38183. throw A.wrapException(A.ArgumentError$value(onError, "onError", string$.Error_));
  38184. } else {
  38185. f = currentZone.registerUnaryCallback$2$1(f, $R._eval$1("0/"), this.$ti._precomputed1);
  38186. if (onError != null)
  38187. onError = A._registerErrorHandler(onError, currentZone);
  38188. }
  38189. result = new A._Future($.Zone__current, $R._eval$1("_Future<0>"));
  38190. t1 = onError == null ? 1 : 3;
  38191. this._addListener$1(new A._FutureListener(result, t1, f, onError, this.$ti._eval$1("@<1>")._bind$1($R)._eval$1("_FutureListener<1,2>")));
  38192. return result;
  38193. },
  38194. then$1$1(_, f, $R) {
  38195. return this.then$1$2$onError(0, f, null, $R);
  38196. },
  38197. _thenAwait$1$2(f, onError, $E) {
  38198. var result = new A._Future($.Zone__current, $E._eval$1("_Future<0>"));
  38199. this._addListener$1(new A._FutureListener(result, 19, f, onError, this.$ti._eval$1("@<1>")._bind$1($E)._eval$1("_FutureListener<1,2>")));
  38200. return result;
  38201. },
  38202. catchError$1(onError) {
  38203. var t1 = this.$ti,
  38204. t2 = $.Zone__current,
  38205. result = new A._Future(t2, t1);
  38206. if (t2 !== B.C__RootZone)
  38207. onError = A._registerErrorHandler(onError, t2);
  38208. this._addListener$1(new A._FutureListener(result, 2, null, onError, t1._eval$1("_FutureListener<1,1>")));
  38209. return result;
  38210. },
  38211. whenComplete$1(action) {
  38212. var t1 = this.$ti,
  38213. t2 = $.Zone__current,
  38214. result = new A._Future(t2, t1);
  38215. if (t2 !== B.C__RootZone)
  38216. action = t2.registerCallback$1$1(action, type$.dynamic);
  38217. this._addListener$1(new A._FutureListener(result, 8, action, null, t1._eval$1("_FutureListener<1,1>")));
  38218. return result;
  38219. },
  38220. _setErrorObject$1(error) {
  38221. this._state = this._state & 1 | 16;
  38222. this._resultOrListeners = error;
  38223. },
  38224. _cloneResult$1(source) {
  38225. this._state = source._state & 30 | this._state & 1;
  38226. this._resultOrListeners = source._resultOrListeners;
  38227. },
  38228. _addListener$1(listener) {
  38229. var _this = this,
  38230. t1 = _this._state;
  38231. if (t1 <= 3) {
  38232. listener._nextListener = _this._resultOrListeners;
  38233. _this._resultOrListeners = listener;
  38234. } else {
  38235. if ((t1 & 4) !== 0) {
  38236. t1 = _this._resultOrListeners;
  38237. if ((t1._state & 24) === 0) {
  38238. t1._addListener$1(listener);
  38239. return;
  38240. }
  38241. _this._cloneResult$1(t1);
  38242. }
  38243. _this._zone.scheduleMicrotask$1(new A._Future__addListener_closure(_this, listener));
  38244. }
  38245. },
  38246. _prependListeners$1(listeners) {
  38247. var t1, existingListeners, next, cursor, next0, _this = this, _box_0 = {};
  38248. _box_0.listeners = listeners;
  38249. if (listeners == null)
  38250. return;
  38251. t1 = _this._state;
  38252. if (t1 <= 3) {
  38253. existingListeners = _this._resultOrListeners;
  38254. _this._resultOrListeners = listeners;
  38255. if (existingListeners != null) {
  38256. next = listeners._nextListener;
  38257. for (cursor = listeners; next != null; cursor = next, next = next0)
  38258. next0 = next._nextListener;
  38259. cursor._nextListener = existingListeners;
  38260. }
  38261. } else {
  38262. if ((t1 & 4) !== 0) {
  38263. t1 = _this._resultOrListeners;
  38264. if ((t1._state & 24) === 0) {
  38265. t1._prependListeners$1(listeners);
  38266. return;
  38267. }
  38268. _this._cloneResult$1(t1);
  38269. }
  38270. _box_0.listeners = _this._reverseListeners$1(listeners);
  38271. _this._zone.scheduleMicrotask$1(new A._Future__prependListeners_closure(_box_0, _this));
  38272. }
  38273. },
  38274. _removeListeners$0() {
  38275. var current = this._resultOrListeners;
  38276. this._resultOrListeners = null;
  38277. return this._reverseListeners$1(current);
  38278. },
  38279. _reverseListeners$1(listeners) {
  38280. var current, prev, next;
  38281. for (current = listeners, prev = null; current != null; prev = current, current = next) {
  38282. next = current._nextListener;
  38283. current._nextListener = prev;
  38284. }
  38285. return prev;
  38286. },
  38287. _chainForeignFuture$1(source) {
  38288. var e, s, exception, _this = this;
  38289. _this._state ^= 2;
  38290. try {
  38291. source.then$1$2$onError(0, new A._Future__chainForeignFuture_closure(_this), new A._Future__chainForeignFuture_closure0(_this), type$.Null);
  38292. } catch (exception) {
  38293. e = A.unwrapException(exception);
  38294. s = A.getTraceFromException(exception);
  38295. A.scheduleMicrotask(new A._Future__chainForeignFuture_closure1(_this, e, s));
  38296. }
  38297. },
  38298. _complete$1(value) {
  38299. var listeners, _this = this,
  38300. t1 = _this.$ti;
  38301. if (t1._eval$1("Future<1>")._is(value))
  38302. if (t1._is(value))
  38303. A._Future__chainCoreFutureSync(value, _this);
  38304. else
  38305. _this._chainForeignFuture$1(value);
  38306. else {
  38307. listeners = _this._removeListeners$0();
  38308. _this._state = 8;
  38309. _this._resultOrListeners = value;
  38310. A._Future__propagateToListeners(_this, listeners);
  38311. }
  38312. },
  38313. _completeWithValue$1(value) {
  38314. var _this = this,
  38315. listeners = _this._removeListeners$0();
  38316. _this._state = 8;
  38317. _this._resultOrListeners = value;
  38318. A._Future__propagateToListeners(_this, listeners);
  38319. },
  38320. _completeError$2(error, stackTrace) {
  38321. var listeners = this._removeListeners$0();
  38322. this._setErrorObject$1(A.AsyncError$(error, stackTrace));
  38323. A._Future__propagateToListeners(this, listeners);
  38324. },
  38325. _asyncComplete$1(value) {
  38326. if (this.$ti._eval$1("Future<1>")._is(value)) {
  38327. this._chainFuture$1(value);
  38328. return;
  38329. }
  38330. this._asyncCompleteWithValue$1(value);
  38331. },
  38332. _asyncCompleteWithValue$1(value) {
  38333. this._state ^= 2;
  38334. this._zone.scheduleMicrotask$1(new A._Future__asyncCompleteWithValue_closure(this, value));
  38335. },
  38336. _chainFuture$1(value) {
  38337. if (this.$ti._is(value)) {
  38338. A._Future__chainCoreFutureAsync(value, this);
  38339. return;
  38340. }
  38341. this._chainForeignFuture$1(value);
  38342. },
  38343. _asyncCompleteError$2(error, stackTrace) {
  38344. this._state ^= 2;
  38345. this._zone.scheduleMicrotask$1(new A._Future__asyncCompleteError_closure(this, error, stackTrace));
  38346. },
  38347. $isFuture: 1
  38348. };
  38349. A._Future__addListener_closure.prototype = {
  38350. call$0() {
  38351. A._Future__propagateToListeners(this.$this, this.listener);
  38352. },
  38353. $signature: 0
  38354. };
  38355. A._Future__prependListeners_closure.prototype = {
  38356. call$0() {
  38357. A._Future__propagateToListeners(this.$this, this._box_0.listeners);
  38358. },
  38359. $signature: 0
  38360. };
  38361. A._Future__chainForeignFuture_closure.prototype = {
  38362. call$1(value) {
  38363. var error, stackTrace, exception,
  38364. t1 = this.$this;
  38365. t1._state ^= 2;
  38366. try {
  38367. t1._completeWithValue$1(t1.$ti._precomputed1._as(value));
  38368. } catch (exception) {
  38369. error = A.unwrapException(exception);
  38370. stackTrace = A.getTraceFromException(exception);
  38371. t1._completeError$2(error, stackTrace);
  38372. }
  38373. },
  38374. $signature: 58
  38375. };
  38376. A._Future__chainForeignFuture_closure0.prototype = {
  38377. call$2(error, stackTrace) {
  38378. this.$this._completeError$2(error, stackTrace);
  38379. },
  38380. $signature: 54
  38381. };
  38382. A._Future__chainForeignFuture_closure1.prototype = {
  38383. call$0() {
  38384. this.$this._completeError$2(this.e, this.s);
  38385. },
  38386. $signature: 0
  38387. };
  38388. A._Future__chainCoreFutureAsync_closure.prototype = {
  38389. call$0() {
  38390. A._Future__chainCoreFutureSync(this._box_0.source, this.target);
  38391. },
  38392. $signature: 0
  38393. };
  38394. A._Future__asyncCompleteWithValue_closure.prototype = {
  38395. call$0() {
  38396. this.$this._completeWithValue$1(this.value);
  38397. },
  38398. $signature: 0
  38399. };
  38400. A._Future__asyncCompleteError_closure.prototype = {
  38401. call$0() {
  38402. this.$this._completeError$2(this.error, this.stackTrace);
  38403. },
  38404. $signature: 0
  38405. };
  38406. A._Future__propagateToListeners_handleWhenCompleteCallback.prototype = {
  38407. call$0() {
  38408. var e, s, t1, exception, t2, originalSource, _this = this, completeResult = null;
  38409. try {
  38410. t1 = _this._box_0.listener;
  38411. completeResult = t1.result._zone.run$1$1(0, t1.callback, type$.dynamic);
  38412. } catch (exception) {
  38413. e = A.unwrapException(exception);
  38414. s = A.getTraceFromException(exception);
  38415. t1 = _this.hasError && _this._box_1.source._resultOrListeners.error === e;
  38416. t2 = _this._box_0;
  38417. if (t1)
  38418. t2.listenerValueOrError = _this._box_1.source._resultOrListeners;
  38419. else
  38420. t2.listenerValueOrError = A.AsyncError$(e, s);
  38421. t2.listenerHasError = true;
  38422. return;
  38423. }
  38424. if (completeResult instanceof A._Future && (completeResult._state & 24) !== 0) {
  38425. if ((completeResult._state & 16) !== 0) {
  38426. t1 = _this._box_0;
  38427. t1.listenerValueOrError = completeResult._resultOrListeners;
  38428. t1.listenerHasError = true;
  38429. }
  38430. return;
  38431. }
  38432. if (completeResult instanceof A._Future) {
  38433. originalSource = _this._box_1.source;
  38434. t1 = _this._box_0;
  38435. t1.listenerValueOrError = J.then$1$1$x(completeResult, new A._Future__propagateToListeners_handleWhenCompleteCallback_closure(originalSource), type$.dynamic);
  38436. t1.listenerHasError = false;
  38437. }
  38438. },
  38439. $signature: 0
  38440. };
  38441. A._Future__propagateToListeners_handleWhenCompleteCallback_closure.prototype = {
  38442. call$1(_) {
  38443. return this.originalSource;
  38444. },
  38445. $signature: 564
  38446. };
  38447. A._Future__propagateToListeners_handleValueCallback.prototype = {
  38448. call$0() {
  38449. var e, s, t1, t2, t3, exception;
  38450. try {
  38451. t1 = this._box_0;
  38452. t2 = t1.listener;
  38453. t3 = t2.$ti;
  38454. t1.listenerValueOrError = t2.result._zone.runUnary$2$2(t2.callback, this.sourceResult, t3._eval$1("2/"), t3._precomputed1);
  38455. } catch (exception) {
  38456. e = A.unwrapException(exception);
  38457. s = A.getTraceFromException(exception);
  38458. t1 = this._box_0;
  38459. t1.listenerValueOrError = A.AsyncError$(e, s);
  38460. t1.listenerHasError = true;
  38461. }
  38462. },
  38463. $signature: 0
  38464. };
  38465. A._Future__propagateToListeners_handleError.prototype = {
  38466. call$0() {
  38467. var asyncError, e, s, t1, exception, t2, _this = this;
  38468. try {
  38469. asyncError = _this._box_1.source._resultOrListeners;
  38470. t1 = _this._box_0;
  38471. if (t1.listener.matchesErrorTest$1(asyncError) && t1.listener.errorCallback != null) {
  38472. t1.listenerValueOrError = t1.listener.handleError$1(asyncError);
  38473. t1.listenerHasError = false;
  38474. }
  38475. } catch (exception) {
  38476. e = A.unwrapException(exception);
  38477. s = A.getTraceFromException(exception);
  38478. t1 = _this._box_1.source._resultOrListeners;
  38479. t2 = _this._box_0;
  38480. if (t1.error === e)
  38481. t2.listenerValueOrError = t1;
  38482. else
  38483. t2.listenerValueOrError = A.AsyncError$(e, s);
  38484. t2.listenerHasError = true;
  38485. }
  38486. },
  38487. $signature: 0
  38488. };
  38489. A._AsyncCallbackEntry.prototype = {};
  38490. A.Stream.prototype = {
  38491. get$isBroadcast() {
  38492. return false;
  38493. },
  38494. get$length(_) {
  38495. var t1 = {},
  38496. future = new A._Future($.Zone__current, type$._Future_int);
  38497. t1.count = 0;
  38498. this.listen$4$cancelOnError$onDone$onError(0, new A.Stream_length_closure(t1, this), true, new A.Stream_length_closure0(t1, future), future.get$_completeError());
  38499. return future;
  38500. }
  38501. };
  38502. A.Stream_Stream$fromFuture_closure.prototype = {
  38503. call$1(value) {
  38504. var t1 = this.controller;
  38505. t1._async$_add$1(value);
  38506. t1._closeUnchecked$0();
  38507. },
  38508. $signature() {
  38509. return this.T._eval$1("Null(0)");
  38510. }
  38511. };
  38512. A.Stream_Stream$fromFuture_closure0.prototype = {
  38513. call$2(error, stackTrace) {
  38514. var t1 = this.controller;
  38515. t1._addError$2(error, stackTrace);
  38516. t1._closeUnchecked$0();
  38517. },
  38518. $signature: 579
  38519. };
  38520. A.Stream_length_closure.prototype = {
  38521. call$1(_) {
  38522. ++this._box_0.count;
  38523. },
  38524. $signature() {
  38525. return A._instanceType(this.$this)._eval$1("~(Stream.T)");
  38526. }
  38527. };
  38528. A.Stream_length_closure0.prototype = {
  38529. call$0() {
  38530. this.future._complete$1(this._box_0.count);
  38531. },
  38532. $signature: 0
  38533. };
  38534. A._StreamController.prototype = {
  38535. get$stream() {
  38536. return new A._ControllerStream(this, A._instanceType(this)._eval$1("_ControllerStream<1>"));
  38537. },
  38538. get$_pendingEvents() {
  38539. if ((this._state & 8) === 0)
  38540. return this._varData;
  38541. return this._varData._varData;
  38542. },
  38543. _ensurePendingEvents$0() {
  38544. var events, state, _this = this;
  38545. if ((_this._state & 8) === 0) {
  38546. events = _this._varData;
  38547. return events == null ? _this._varData = new A._PendingEvents() : events;
  38548. }
  38549. state = _this._varData;
  38550. events = state._varData;
  38551. return events == null ? state._varData = new A._PendingEvents() : events;
  38552. },
  38553. get$_subscription() {
  38554. var varData = this._varData;
  38555. return (this._state & 8) !== 0 ? varData._varData : varData;
  38556. },
  38557. _badEventState$0() {
  38558. if ((this._state & 4) !== 0)
  38559. return new A.StateError("Cannot add event after closing");
  38560. return new A.StateError("Cannot add event while adding a stream");
  38561. },
  38562. addStream$2$cancelOnError(source, cancelOnError) {
  38563. var t2, t3, t4, _this = this,
  38564. t1 = _this._state;
  38565. if (t1 >= 4)
  38566. throw A.wrapException(_this._badEventState$0());
  38567. if ((t1 & 2) !== 0) {
  38568. t1 = new A._Future($.Zone__current, type$._Future_dynamic);
  38569. t1._asyncComplete$1(null);
  38570. return t1;
  38571. }
  38572. t1 = _this._varData;
  38573. t2 = cancelOnError === true;
  38574. t3 = new A._Future($.Zone__current, type$._Future_dynamic);
  38575. t4 = t2 ? A._AddStreamState_makeErrorHandler(_this) : _this.get$_addError();
  38576. t4 = source.listen$4$cancelOnError$onDone$onError(0, _this.get$_async$_add(), t2, _this.get$_close(), t4);
  38577. t2 = _this._state;
  38578. if ((t2 & 1) !== 0 ? (_this.get$_subscription()._state & 4) !== 0 : (t2 & 2) === 0)
  38579. t4.pause$0(0);
  38580. _this._varData = new A._StreamControllerAddStreamState(t1, t3, t4);
  38581. _this._state |= 8;
  38582. return t3;
  38583. },
  38584. _ensureDoneFuture$0() {
  38585. var t1 = this._doneFuture;
  38586. if (t1 == null)
  38587. t1 = this._doneFuture = (this._state & 2) !== 0 ? $.$get$Future__nullFuture() : new A._Future($.Zone__current, type$._Future_void);
  38588. return t1;
  38589. },
  38590. add$1(_, value) {
  38591. if (this._state >= 4)
  38592. throw A.wrapException(this._badEventState$0());
  38593. this._async$_add$1(value);
  38594. },
  38595. addError$2(error, stackTrace) {
  38596. var replacement;
  38597. A.checkNotNullable(error, "error", type$.Object);
  38598. if (this._state >= 4)
  38599. throw A.wrapException(this._badEventState$0());
  38600. replacement = $.Zone__current.errorCallback$2(error, stackTrace);
  38601. if (replacement != null) {
  38602. error = replacement.error;
  38603. stackTrace = replacement.stackTrace;
  38604. } else if (stackTrace == null)
  38605. stackTrace = A.AsyncError_defaultStackTrace(error);
  38606. this._addError$2(error, stackTrace);
  38607. },
  38608. addError$1(error) {
  38609. return this.addError$2(error, null);
  38610. },
  38611. close$0(_) {
  38612. var _this = this,
  38613. t1 = _this._state;
  38614. if ((t1 & 4) !== 0)
  38615. return _this._ensureDoneFuture$0();
  38616. if (t1 >= 4)
  38617. throw A.wrapException(_this._badEventState$0());
  38618. _this._closeUnchecked$0();
  38619. return _this._ensureDoneFuture$0();
  38620. },
  38621. _closeUnchecked$0() {
  38622. var t1 = this._state |= 4;
  38623. if ((t1 & 1) !== 0)
  38624. this._sendDone$0();
  38625. else if ((t1 & 3) === 0)
  38626. this._ensurePendingEvents$0().add$1(0, B.C__DelayedDone);
  38627. },
  38628. _async$_add$1(value) {
  38629. var t1 = this._state;
  38630. if ((t1 & 1) !== 0)
  38631. this._sendData$1(value);
  38632. else if ((t1 & 3) === 0)
  38633. this._ensurePendingEvents$0().add$1(0, new A._DelayedData(value));
  38634. },
  38635. _addError$2(error, stackTrace) {
  38636. var t1 = this._state;
  38637. if ((t1 & 1) !== 0)
  38638. this._sendError$2(error, stackTrace);
  38639. else if ((t1 & 3) === 0)
  38640. this._ensurePendingEvents$0().add$1(0, new A._DelayedError(error, stackTrace));
  38641. },
  38642. _close$0() {
  38643. var addState = this._varData;
  38644. this._varData = addState._varData;
  38645. this._state &= 4294967287;
  38646. addState.addStreamFuture._asyncComplete$1(null);
  38647. },
  38648. _subscribe$4(onData, onError, onDone, cancelOnError) {
  38649. var subscription, pendingEvents, t1, addState, _this = this;
  38650. if ((_this._state & 3) !== 0)
  38651. throw A.wrapException(A.StateError$("Stream has already been listened to."));
  38652. subscription = A._ControllerSubscription$(_this, onData, onError, onDone, cancelOnError, A._instanceType(_this)._precomputed1);
  38653. pendingEvents = _this.get$_pendingEvents();
  38654. t1 = _this._state |= 1;
  38655. if ((t1 & 8) !== 0) {
  38656. addState = _this._varData;
  38657. addState._varData = subscription;
  38658. addState.addSubscription.resume$0(0);
  38659. } else
  38660. _this._varData = subscription;
  38661. subscription._setPendingEvents$1(pendingEvents);
  38662. subscription._guardCallback$1(new A._StreamController__subscribe_closure(_this));
  38663. return subscription;
  38664. },
  38665. _recordCancel$1(subscription) {
  38666. var onCancel, cancelResult, e, s, exception, result0, t1, _this = this, result = null;
  38667. if ((_this._state & 8) !== 0)
  38668. result = _this._varData.cancel$0();
  38669. _this._varData = null;
  38670. _this._state = _this._state & 4294967286 | 2;
  38671. onCancel = _this.onCancel;
  38672. if (onCancel != null)
  38673. if (result == null)
  38674. try {
  38675. cancelResult = onCancel.call$0();
  38676. if (cancelResult instanceof A._Future)
  38677. result = cancelResult;
  38678. } catch (exception) {
  38679. e = A.unwrapException(exception);
  38680. s = A.getTraceFromException(exception);
  38681. result0 = new A._Future($.Zone__current, type$._Future_void);
  38682. result0._asyncCompleteError$2(e, s);
  38683. result = result0;
  38684. }
  38685. else
  38686. result = result.whenComplete$1(onCancel);
  38687. t1 = new A._StreamController__recordCancel_complete(_this);
  38688. if (result != null)
  38689. result = result.whenComplete$1(t1);
  38690. else
  38691. t1.call$0();
  38692. return result;
  38693. },
  38694. _recordPause$1(subscription) {
  38695. if ((this._state & 8) !== 0)
  38696. this._varData.addSubscription.pause$0(0);
  38697. A._runGuarded(this.onPause);
  38698. },
  38699. _recordResume$1(subscription) {
  38700. if ((this._state & 8) !== 0)
  38701. this._varData.addSubscription.resume$0(0);
  38702. A._runGuarded(this.onResume);
  38703. },
  38704. $isEventSink: 1,
  38705. set$onPause(val) {
  38706. return this.onPause = val;
  38707. },
  38708. set$onResume(val) {
  38709. return this.onResume = val;
  38710. },
  38711. set$onCancel(val) {
  38712. return this.onCancel = val;
  38713. }
  38714. };
  38715. A._StreamController__subscribe_closure.prototype = {
  38716. call$0() {
  38717. A._runGuarded(this.$this.onListen);
  38718. },
  38719. $signature: 0
  38720. };
  38721. A._StreamController__recordCancel_complete.prototype = {
  38722. call$0() {
  38723. var doneFuture = this.$this._doneFuture;
  38724. if (doneFuture != null && (doneFuture._state & 30) === 0)
  38725. doneFuture._asyncComplete$1(null);
  38726. },
  38727. $signature: 0
  38728. };
  38729. A._SyncStreamControllerDispatch.prototype = {
  38730. _sendData$1(data) {
  38731. this.get$_subscription()._async$_add$1(data);
  38732. },
  38733. _sendError$2(error, stackTrace) {
  38734. this.get$_subscription()._addError$2(error, stackTrace);
  38735. },
  38736. _sendDone$0() {
  38737. this.get$_subscription()._close$0();
  38738. }
  38739. };
  38740. A._AsyncStreamControllerDispatch.prototype = {
  38741. _sendData$1(data) {
  38742. this.get$_subscription()._addPending$1(new A._DelayedData(data));
  38743. },
  38744. _sendError$2(error, stackTrace) {
  38745. this.get$_subscription()._addPending$1(new A._DelayedError(error, stackTrace));
  38746. },
  38747. _sendDone$0() {
  38748. this.get$_subscription()._addPending$1(B.C__DelayedDone);
  38749. }
  38750. };
  38751. A._AsyncStreamController.prototype = {};
  38752. A._SyncStreamController.prototype = {};
  38753. A._ControllerStream.prototype = {
  38754. get$hashCode(_) {
  38755. return (A.Primitives_objectHashCode(this._controller) ^ 892482866) >>> 0;
  38756. },
  38757. $eq(_, other) {
  38758. if (other == null)
  38759. return false;
  38760. if (this === other)
  38761. return true;
  38762. return other instanceof A._ControllerStream && other._controller === this._controller;
  38763. }
  38764. };
  38765. A._ControllerSubscription.prototype = {
  38766. _async$_onCancel$0() {
  38767. return this._controller._recordCancel$1(this);
  38768. },
  38769. _async$_onPause$0() {
  38770. this._controller._recordPause$1(this);
  38771. },
  38772. _async$_onResume$0() {
  38773. this._controller._recordResume$1(this);
  38774. }
  38775. };
  38776. A._AddStreamState.prototype = {
  38777. cancel$0() {
  38778. var cancel = this.addSubscription.cancel$0();
  38779. return cancel.whenComplete$1(new A._AddStreamState_cancel_closure(this));
  38780. }
  38781. };
  38782. A._AddStreamState_makeErrorHandler_closure.prototype = {
  38783. call$2(e, s) {
  38784. var t1 = this.controller;
  38785. t1._addError$2(e, s);
  38786. t1._close$0();
  38787. },
  38788. $signature: 54
  38789. };
  38790. A._AddStreamState_cancel_closure.prototype = {
  38791. call$0() {
  38792. this.$this.addStreamFuture._asyncComplete$1(null);
  38793. },
  38794. $signature: 1
  38795. };
  38796. A._StreamControllerAddStreamState.prototype = {};
  38797. A._BufferingStreamSubscription.prototype = {
  38798. _setPendingEvents$1(pendingEvents) {
  38799. var _this = this;
  38800. if (pendingEvents == null)
  38801. return;
  38802. _this._pending = pendingEvents;
  38803. if (pendingEvents.lastPendingEvent != null) {
  38804. _this._state = (_this._state | 128) >>> 0;
  38805. pendingEvents.schedule$1(_this);
  38806. }
  38807. },
  38808. pause$1(_, resumeSignal) {
  38809. var t2, t3, _this = this,
  38810. t1 = _this._state;
  38811. if ((t1 & 8) !== 0)
  38812. return;
  38813. t2 = (t1 + 256 | 4) >>> 0;
  38814. _this._state = t2;
  38815. if (t1 < 256) {
  38816. t3 = _this._pending;
  38817. if (t3 != null)
  38818. if (t3._state === 1)
  38819. t3._state = 3;
  38820. }
  38821. if ((t1 & 4) === 0 && (t2 & 64) === 0)
  38822. _this._guardCallback$1(_this.get$_async$_onPause());
  38823. },
  38824. pause$0(_) {
  38825. return this.pause$1(0, null);
  38826. },
  38827. resume$0(_) {
  38828. var _this = this,
  38829. t1 = _this._state;
  38830. if ((t1 & 8) !== 0)
  38831. return;
  38832. if (t1 >= 256) {
  38833. t1 = _this._state = t1 - 256;
  38834. if (t1 < 256)
  38835. if ((t1 & 128) !== 0 && _this._pending.lastPendingEvent != null)
  38836. _this._pending.schedule$1(_this);
  38837. else {
  38838. t1 = (t1 & 4294967291) >>> 0;
  38839. _this._state = t1;
  38840. if ((t1 & 64) === 0)
  38841. _this._guardCallback$1(_this.get$_async$_onResume());
  38842. }
  38843. }
  38844. },
  38845. cancel$0() {
  38846. var _this = this,
  38847. t1 = (_this._state & 4294967279) >>> 0;
  38848. _this._state = t1;
  38849. if ((t1 & 8) === 0)
  38850. _this._cancel$0();
  38851. t1 = _this._cancelFuture;
  38852. return t1 == null ? $.$get$Future__nullFuture() : t1;
  38853. },
  38854. _cancel$0() {
  38855. var t2, _this = this,
  38856. t1 = _this._state = (_this._state | 8) >>> 0;
  38857. if ((t1 & 128) !== 0) {
  38858. t2 = _this._pending;
  38859. if (t2._state === 1)
  38860. t2._state = 3;
  38861. }
  38862. if ((t1 & 64) === 0)
  38863. _this._pending = null;
  38864. _this._cancelFuture = _this._async$_onCancel$0();
  38865. },
  38866. _async$_add$1(data) {
  38867. var t1 = this._state;
  38868. if ((t1 & 8) !== 0)
  38869. return;
  38870. if (t1 < 64)
  38871. this._sendData$1(data);
  38872. else
  38873. this._addPending$1(new A._DelayedData(data));
  38874. },
  38875. _addError$2(error, stackTrace) {
  38876. var t1 = this._state;
  38877. if ((t1 & 8) !== 0)
  38878. return;
  38879. if (t1 < 64)
  38880. this._sendError$2(error, stackTrace);
  38881. else
  38882. this._addPending$1(new A._DelayedError(error, stackTrace));
  38883. },
  38884. _close$0() {
  38885. var _this = this,
  38886. t1 = _this._state;
  38887. if ((t1 & 8) !== 0)
  38888. return;
  38889. t1 = (t1 | 2) >>> 0;
  38890. _this._state = t1;
  38891. if (t1 < 64)
  38892. _this._sendDone$0();
  38893. else
  38894. _this._addPending$1(B.C__DelayedDone);
  38895. },
  38896. _async$_onPause$0() {
  38897. },
  38898. _async$_onResume$0() {
  38899. },
  38900. _async$_onCancel$0() {
  38901. return null;
  38902. },
  38903. _addPending$1($event) {
  38904. var t1, _this = this,
  38905. pending = _this._pending;
  38906. if (pending == null)
  38907. pending = _this._pending = new A._PendingEvents();
  38908. pending.add$1(0, $event);
  38909. t1 = _this._state;
  38910. if ((t1 & 128) === 0) {
  38911. t1 = (t1 | 128) >>> 0;
  38912. _this._state = t1;
  38913. if (t1 < 256)
  38914. pending.schedule$1(_this);
  38915. }
  38916. },
  38917. _sendData$1(data) {
  38918. var _this = this,
  38919. t1 = _this._state;
  38920. _this._state = (t1 | 64) >>> 0;
  38921. _this._zone.runUnaryGuarded$1$2(_this._onData, data, A._instanceType(_this)._eval$1("_BufferingStreamSubscription.T"));
  38922. _this._state = (_this._state & 4294967231) >>> 0;
  38923. _this._checkState$1((t1 & 4) !== 0);
  38924. },
  38925. _sendError$2(error, stackTrace) {
  38926. var cancelFuture, _this = this,
  38927. t1 = _this._state,
  38928. t2 = new A._BufferingStreamSubscription__sendError_sendError(_this, error, stackTrace);
  38929. if ((t1 & 1) !== 0) {
  38930. _this._state = (t1 | 16) >>> 0;
  38931. _this._cancel$0();
  38932. cancelFuture = _this._cancelFuture;
  38933. if (cancelFuture != null && cancelFuture !== $.$get$Future__nullFuture())
  38934. cancelFuture.whenComplete$1(t2);
  38935. else
  38936. t2.call$0();
  38937. } else {
  38938. t2.call$0();
  38939. _this._checkState$1((t1 & 4) !== 0);
  38940. }
  38941. },
  38942. _sendDone$0() {
  38943. var cancelFuture, _this = this,
  38944. t1 = new A._BufferingStreamSubscription__sendDone_sendDone(_this);
  38945. _this._cancel$0();
  38946. _this._state = (_this._state | 16) >>> 0;
  38947. cancelFuture = _this._cancelFuture;
  38948. if (cancelFuture != null && cancelFuture !== $.$get$Future__nullFuture())
  38949. cancelFuture.whenComplete$1(t1);
  38950. else
  38951. t1.call$0();
  38952. },
  38953. _guardCallback$1(callback) {
  38954. var _this = this,
  38955. t1 = _this._state;
  38956. _this._state = (t1 | 64) >>> 0;
  38957. callback.call$0();
  38958. _this._state = (_this._state & 4294967231) >>> 0;
  38959. _this._checkState$1((t1 & 4) !== 0);
  38960. },
  38961. _checkState$1(wasInputPaused) {
  38962. var t2, isInputPaused, _this = this,
  38963. t1 = _this._state;
  38964. if ((t1 & 128) !== 0 && _this._pending.lastPendingEvent == null) {
  38965. t1 = _this._state = (t1 & 4294967167) >>> 0;
  38966. t2 = false;
  38967. if ((t1 & 4) !== 0)
  38968. if (t1 < 256) {
  38969. t2 = _this._pending;
  38970. t2 = t2 == null ? null : t2.lastPendingEvent == null;
  38971. t2 = t2 !== false;
  38972. }
  38973. if (t2) {
  38974. t1 = (t1 & 4294967291) >>> 0;
  38975. _this._state = t1;
  38976. }
  38977. }
  38978. for (; true; wasInputPaused = isInputPaused) {
  38979. if ((t1 & 8) !== 0) {
  38980. _this._pending = null;
  38981. return;
  38982. }
  38983. isInputPaused = (t1 & 4) !== 0;
  38984. if (wasInputPaused === isInputPaused)
  38985. break;
  38986. _this._state = (t1 ^ 64) >>> 0;
  38987. if (isInputPaused)
  38988. _this._async$_onPause$0();
  38989. else
  38990. _this._async$_onResume$0();
  38991. t1 = (_this._state & 4294967231) >>> 0;
  38992. _this._state = t1;
  38993. }
  38994. if ((t1 & 128) !== 0 && t1 < 256)
  38995. _this._pending.schedule$1(_this);
  38996. },
  38997. $isStreamSubscription: 1
  38998. };
  38999. A._BufferingStreamSubscription__sendError_sendError.prototype = {
  39000. call$0() {
  39001. var onError, t3, t4,
  39002. t1 = this.$this,
  39003. t2 = t1._state;
  39004. if ((t2 & 8) !== 0 && (t2 & 16) === 0)
  39005. return;
  39006. t1._state = (t2 | 64) >>> 0;
  39007. onError = t1._onError;
  39008. t2 = this.error;
  39009. t3 = type$.Object;
  39010. t4 = t1._zone;
  39011. if (type$.void_Function_Object_StackTrace._is(onError))
  39012. t4.runBinaryGuarded$2$3(onError, t2, this.stackTrace, t3, type$.StackTrace);
  39013. else
  39014. t4.runUnaryGuarded$1$2(onError, t2, t3);
  39015. t1._state = (t1._state & 4294967231) >>> 0;
  39016. },
  39017. $signature: 0
  39018. };
  39019. A._BufferingStreamSubscription__sendDone_sendDone.prototype = {
  39020. call$0() {
  39021. var t1 = this.$this,
  39022. t2 = t1._state;
  39023. if ((t2 & 16) === 0)
  39024. return;
  39025. t1._state = (t2 | 74) >>> 0;
  39026. t1._zone.runGuarded$1(t1._onDone);
  39027. t1._state = (t1._state & 4294967231) >>> 0;
  39028. },
  39029. $signature: 0
  39030. };
  39031. A._StreamImpl.prototype = {
  39032. listen$4$cancelOnError$onDone$onError(_, onData, cancelOnError, onDone, onError) {
  39033. return this._controller._subscribe$4(onData, onError, onDone, cancelOnError === true);
  39034. },
  39035. listen$1(_, onData) {
  39036. return this.listen$4$cancelOnError$onDone$onError(0, onData, null, null, null);
  39037. },
  39038. listen$3$onDone$onError(_, onData, onDone, onError) {
  39039. return this.listen$4$cancelOnError$onDone$onError(0, onData, null, onDone, onError);
  39040. }
  39041. };
  39042. A._DelayedEvent.prototype = {
  39043. get$next() {
  39044. return this.next;
  39045. },
  39046. set$next(val) {
  39047. return this.next = val;
  39048. }
  39049. };
  39050. A._DelayedData.prototype = {
  39051. perform$1(dispatch) {
  39052. dispatch._sendData$1(this.value);
  39053. }
  39054. };
  39055. A._DelayedError.prototype = {
  39056. perform$1(dispatch) {
  39057. dispatch._sendError$2(this.error, this.stackTrace);
  39058. }
  39059. };
  39060. A._DelayedDone.prototype = {
  39061. perform$1(dispatch) {
  39062. dispatch._sendDone$0();
  39063. },
  39064. get$next() {
  39065. return null;
  39066. },
  39067. set$next(_) {
  39068. throw A.wrapException(A.StateError$("No events after a done."));
  39069. }
  39070. };
  39071. A._PendingEvents.prototype = {
  39072. schedule$1(dispatch) {
  39073. var _this = this,
  39074. t1 = _this._state;
  39075. if (t1 === 1)
  39076. return;
  39077. if (t1 >= 1) {
  39078. _this._state = 1;
  39079. return;
  39080. }
  39081. A.scheduleMicrotask(new A._PendingEvents_schedule_closure(_this, dispatch));
  39082. _this._state = 1;
  39083. },
  39084. add$1(_, $event) {
  39085. var _this = this,
  39086. lastEvent = _this.lastPendingEvent;
  39087. if (lastEvent == null)
  39088. _this.firstPendingEvent = _this.lastPendingEvent = $event;
  39089. else {
  39090. lastEvent.set$next($event);
  39091. _this.lastPendingEvent = $event;
  39092. }
  39093. }
  39094. };
  39095. A._PendingEvents_schedule_closure.prototype = {
  39096. call$0() {
  39097. var $event, nextEvent,
  39098. t1 = this.$this,
  39099. oldState = t1._state;
  39100. t1._state = 0;
  39101. if (oldState === 3)
  39102. return;
  39103. $event = t1.firstPendingEvent;
  39104. nextEvent = $event.get$next();
  39105. t1.firstPendingEvent = nextEvent;
  39106. if (nextEvent == null)
  39107. t1.lastPendingEvent = null;
  39108. $event.perform$1(this.dispatch);
  39109. },
  39110. $signature: 0
  39111. };
  39112. A._StreamIterator.prototype = {
  39113. get$current(_) {
  39114. if (this._async$_hasValue)
  39115. return this._stateData;
  39116. return null;
  39117. },
  39118. moveNext$0() {
  39119. var future, _this = this,
  39120. subscription = _this._subscription;
  39121. if (subscription != null) {
  39122. if (_this._async$_hasValue) {
  39123. future = new A._Future($.Zone__current, type$._Future_bool);
  39124. _this._stateData = future;
  39125. _this._async$_hasValue = false;
  39126. subscription.resume$0(0);
  39127. return future;
  39128. }
  39129. throw A.wrapException(A.StateError$("Already waiting for next."));
  39130. }
  39131. return _this._initializeOrDone$0();
  39132. },
  39133. _initializeOrDone$0() {
  39134. var future, subscription, _this = this,
  39135. stateData = _this._stateData;
  39136. if (stateData != null) {
  39137. future = new A._Future($.Zone__current, type$._Future_bool);
  39138. _this._stateData = future;
  39139. subscription = stateData.listen$4$cancelOnError$onDone$onError(0, _this.get$_onData(), true, _this.get$_onDone(), _this.get$_onError());
  39140. if (_this._stateData != null)
  39141. _this._subscription = subscription;
  39142. return future;
  39143. }
  39144. return $.$get$Future__falseFuture();
  39145. },
  39146. cancel$0() {
  39147. var _this = this,
  39148. subscription = _this._subscription,
  39149. stateData = _this._stateData;
  39150. _this._stateData = null;
  39151. if (subscription != null) {
  39152. _this._subscription = null;
  39153. if (!_this._async$_hasValue)
  39154. stateData._asyncComplete$1(false);
  39155. else
  39156. _this._async$_hasValue = false;
  39157. return subscription.cancel$0();
  39158. }
  39159. return $.$get$Future__nullFuture();
  39160. },
  39161. _onData$1(data) {
  39162. var moveNextFuture, t1, _this = this;
  39163. if (_this._subscription == null)
  39164. return;
  39165. moveNextFuture = _this._stateData;
  39166. _this._stateData = data;
  39167. _this._async$_hasValue = true;
  39168. moveNextFuture._complete$1(true);
  39169. if (_this._async$_hasValue) {
  39170. t1 = _this._subscription;
  39171. if (t1 != null)
  39172. t1.pause$0(0);
  39173. }
  39174. },
  39175. _onError$2(error, stackTrace) {
  39176. var _this = this,
  39177. subscription = _this._subscription,
  39178. moveNextFuture = _this._stateData;
  39179. _this._stateData = _this._subscription = null;
  39180. if (subscription != null)
  39181. moveNextFuture._completeError$2(error, stackTrace);
  39182. else
  39183. moveNextFuture._asyncCompleteError$2(error, stackTrace);
  39184. },
  39185. _onDone$0() {
  39186. var _this = this,
  39187. subscription = _this._subscription,
  39188. moveNextFuture = _this._stateData;
  39189. _this._stateData = _this._subscription = null;
  39190. if (subscription != null)
  39191. moveNextFuture._completeWithValue$1(false);
  39192. else
  39193. moveNextFuture._asyncCompleteWithValue$1(false);
  39194. }
  39195. };
  39196. A._ForwardingStream.prototype = {
  39197. get$isBroadcast() {
  39198. return this._async$_source.get$isBroadcast();
  39199. },
  39200. listen$4$cancelOnError$onDone$onError(_, onData, cancelOnError, onDone, onError) {
  39201. var t1 = this.$ti,
  39202. t2 = $.Zone__current,
  39203. t3 = cancelOnError === true ? 1 : 0,
  39204. t4 = onError != null ? 32 : 0,
  39205. t5 = A._BufferingStreamSubscription__registerDataHandler(t2, onData, t1._rest[1]),
  39206. t6 = A._BufferingStreamSubscription__registerErrorHandler(t2, onError),
  39207. t7 = onDone == null ? A.async___nullDoneHandler$closure() : onDone;
  39208. t1 = new A._ForwardingStreamSubscription(this, t5, t6, t2.registerCallback$1$1(t7, type$.void), t2, t3 | t4, t1._eval$1("_ForwardingStreamSubscription<1,2>"));
  39209. t1._subscription = this._async$_source.listen$3$onDone$onError(0, t1.get$_handleData(), t1.get$_handleDone(), t1.get$_handleError());
  39210. return t1;
  39211. },
  39212. listen$1(_, onData) {
  39213. return this.listen$4$cancelOnError$onDone$onError(0, onData, null, null, null);
  39214. },
  39215. listen$3$onDone$onError(_, onData, onDone, onError) {
  39216. return this.listen$4$cancelOnError$onDone$onError(0, onData, null, onDone, onError);
  39217. }
  39218. };
  39219. A._ForwardingStreamSubscription.prototype = {
  39220. _async$_add$1(data) {
  39221. if ((this._state & 2) !== 0)
  39222. return;
  39223. this.super$_BufferingStreamSubscription$_add(data);
  39224. },
  39225. _addError$2(error, stackTrace) {
  39226. if ((this._state & 2) !== 0)
  39227. return;
  39228. this.super$_BufferingStreamSubscription$_addError(error, stackTrace);
  39229. },
  39230. _async$_onPause$0() {
  39231. var t1 = this._subscription;
  39232. if (t1 != null)
  39233. t1.pause$0(0);
  39234. },
  39235. _async$_onResume$0() {
  39236. var t1 = this._subscription;
  39237. if (t1 != null)
  39238. t1.resume$0(0);
  39239. },
  39240. _async$_onCancel$0() {
  39241. var subscription = this._subscription;
  39242. if (subscription != null) {
  39243. this._subscription = null;
  39244. return subscription.cancel$0();
  39245. }
  39246. return null;
  39247. },
  39248. _handleData$1(data) {
  39249. this._stream._handleData$2(data, this);
  39250. },
  39251. _handleError$2(error, stackTrace) {
  39252. this._addError$2(error, stackTrace);
  39253. },
  39254. _handleDone$0() {
  39255. this._close$0();
  39256. }
  39257. };
  39258. A._ExpandStream.prototype = {
  39259. _handleData$2(inputEvent, sink) {
  39260. var value, e, s, t1, exception, error, stackTrace, replacement;
  39261. try {
  39262. for (t1 = J.get$iterator$ax(this._expand.call$1(inputEvent)); t1.moveNext$0();) {
  39263. value = t1.get$current(t1);
  39264. sink._async$_add$1(value);
  39265. }
  39266. } catch (exception) {
  39267. e = A.unwrapException(exception);
  39268. s = A.getTraceFromException(exception);
  39269. error = e;
  39270. stackTrace = s;
  39271. replacement = $.Zone__current.errorCallback$2(error, stackTrace);
  39272. if (replacement != null) {
  39273. error = replacement.error;
  39274. stackTrace = replacement.stackTrace;
  39275. }
  39276. sink._addError$2(error, stackTrace);
  39277. }
  39278. }
  39279. };
  39280. A._ZoneFunction.prototype = {};
  39281. A._ZoneSpecification.prototype = {$isZoneSpecification: 1};
  39282. A._ZoneDelegate.prototype = {$isZoneDelegate: 1};
  39283. A._Zone.prototype = {
  39284. _processUncaughtError$3(zone, error, stackTrace) {
  39285. var handler, parentDelegate, parentZone, currentZone, e, s, t1, exception,
  39286. implementation = this.get$_handleUncaughtError(),
  39287. implZone = implementation.zone;
  39288. if (implZone === B.C__RootZone) {
  39289. A._rootHandleError(error, stackTrace);
  39290. return;
  39291. }
  39292. handler = implementation.$function;
  39293. parentDelegate = implZone.get$_parentDelegate();
  39294. t1 = J.get$parent$z(implZone);
  39295. t1.toString;
  39296. parentZone = t1;
  39297. currentZone = $.Zone__current;
  39298. try {
  39299. $.Zone__current = parentZone;
  39300. handler.call$5(implZone, parentDelegate, zone, error, stackTrace);
  39301. $.Zone__current = currentZone;
  39302. } catch (exception) {
  39303. e = A.unwrapException(exception);
  39304. s = A.getTraceFromException(exception);
  39305. $.Zone__current = currentZone;
  39306. t1 = error === e ? stackTrace : s;
  39307. parentZone._processUncaughtError$3(implZone, e, t1);
  39308. }
  39309. },
  39310. $isZone: 1
  39311. };
  39312. A._CustomZone.prototype = {
  39313. get$_delegate() {
  39314. var t1 = this._delegateCache;
  39315. return t1 == null ? this._delegateCache = new A._ZoneDelegate(this) : t1;
  39316. },
  39317. get$_parentDelegate() {
  39318. return this.parent.get$_delegate();
  39319. },
  39320. get$errorZone() {
  39321. return this._handleUncaughtError.zone;
  39322. },
  39323. runGuarded$1(f) {
  39324. var e, s, exception;
  39325. try {
  39326. this.run$1$1(0, f, type$.void);
  39327. } catch (exception) {
  39328. e = A.unwrapException(exception);
  39329. s = A.getTraceFromException(exception);
  39330. this._processUncaughtError$3(this, e, s);
  39331. }
  39332. },
  39333. runUnaryGuarded$1$2(f, arg, $T) {
  39334. var e, s, exception;
  39335. try {
  39336. this.runUnary$2$2(f, arg, type$.void, $T);
  39337. } catch (exception) {
  39338. e = A.unwrapException(exception);
  39339. s = A.getTraceFromException(exception);
  39340. this._processUncaughtError$3(this, e, s);
  39341. }
  39342. },
  39343. runBinaryGuarded$2$3(f, arg1, arg2, T1, T2) {
  39344. var e, s, exception;
  39345. try {
  39346. this.runBinary$3$3(f, arg1, arg2, type$.void, T1, T2);
  39347. } catch (exception) {
  39348. e = A.unwrapException(exception);
  39349. s = A.getTraceFromException(exception);
  39350. this._processUncaughtError$3(this, e, s);
  39351. }
  39352. },
  39353. bindCallback$1$1(f, $R) {
  39354. return new A._CustomZone_bindCallback_closure(this, this.registerCallback$1$1(f, $R), $R);
  39355. },
  39356. bindUnaryCallback$2$1(f, $R, $T) {
  39357. return new A._CustomZone_bindUnaryCallback_closure(this, this.registerUnaryCallback$2$1(f, $R, $T), $T, $R);
  39358. },
  39359. bindCallbackGuarded$1(f) {
  39360. return new A._CustomZone_bindCallbackGuarded_closure(this, this.registerCallback$1$1(f, type$.void));
  39361. },
  39362. $index(_, key) {
  39363. var value,
  39364. t1 = this._async$_map,
  39365. result = t1.$index(0, key);
  39366. if (result != null || t1.containsKey$1(key))
  39367. return result;
  39368. value = this.parent.$index(0, key);
  39369. if (value != null)
  39370. t1.$indexSet(0, key, value);
  39371. return value;
  39372. },
  39373. handleUncaughtError$2(error, stackTrace) {
  39374. this._processUncaughtError$3(this, error, stackTrace);
  39375. },
  39376. fork$2$specification$zoneValues(specification, zoneValues) {
  39377. var implementation = this._fork,
  39378. t1 = implementation.zone;
  39379. return implementation.$function.call$5(t1, t1.get$_parentDelegate(), this, specification, zoneValues);
  39380. },
  39381. run$1$1(_, f) {
  39382. var implementation = this._run,
  39383. t1 = implementation.zone;
  39384. return implementation.$function.call$4(t1, t1.get$_parentDelegate(), this, f);
  39385. },
  39386. runUnary$2$2(f, arg) {
  39387. var implementation = this._runUnary,
  39388. t1 = implementation.zone;
  39389. return implementation.$function.call$5(t1, t1.get$_parentDelegate(), this, f, arg);
  39390. },
  39391. runBinary$3$3(f, arg1, arg2) {
  39392. var implementation = this._runBinary,
  39393. t1 = implementation.zone;
  39394. return implementation.$function.call$6(t1, t1.get$_parentDelegate(), this, f, arg1, arg2);
  39395. },
  39396. registerCallback$1$1(callback) {
  39397. var implementation = this._registerCallback,
  39398. t1 = implementation.zone;
  39399. return implementation.$function.call$4(t1, t1.get$_parentDelegate(), this, callback);
  39400. },
  39401. registerUnaryCallback$2$1(callback) {
  39402. var implementation = this._registerUnaryCallback,
  39403. t1 = implementation.zone;
  39404. return implementation.$function.call$4(t1, t1.get$_parentDelegate(), this, callback);
  39405. },
  39406. registerBinaryCallback$3$1(callback) {
  39407. var implementation = this._registerBinaryCallback,
  39408. t1 = implementation.zone;
  39409. return implementation.$function.call$4(t1, t1.get$_parentDelegate(), this, callback);
  39410. },
  39411. errorCallback$2(error, stackTrace) {
  39412. var implementation, implementationZone;
  39413. A.checkNotNullable(error, "error", type$.Object);
  39414. implementation = this._errorCallback;
  39415. implementationZone = implementation.zone;
  39416. if (implementationZone === B.C__RootZone)
  39417. return null;
  39418. return implementation.$function.call$5(implementationZone, implementationZone.get$_parentDelegate(), this, error, stackTrace);
  39419. },
  39420. scheduleMicrotask$1(f) {
  39421. var implementation = this._scheduleMicrotask,
  39422. t1 = implementation.zone;
  39423. return implementation.$function.call$4(t1, t1.get$_parentDelegate(), this, f);
  39424. },
  39425. createTimer$2(duration, f) {
  39426. var implementation = this._createTimer,
  39427. t1 = implementation.zone;
  39428. return implementation.$function.call$5(t1, t1.get$_parentDelegate(), this, duration, f);
  39429. },
  39430. print$1(line) {
  39431. var implementation = this._print,
  39432. t1 = implementation.zone;
  39433. return implementation.$function.call$4(t1, t1.get$_parentDelegate(), this, line);
  39434. },
  39435. get$_run() {
  39436. return this._run;
  39437. },
  39438. get$_runUnary() {
  39439. return this._runUnary;
  39440. },
  39441. get$_runBinary() {
  39442. return this._runBinary;
  39443. },
  39444. get$_registerCallback() {
  39445. return this._registerCallback;
  39446. },
  39447. get$_registerUnaryCallback() {
  39448. return this._registerUnaryCallback;
  39449. },
  39450. get$_registerBinaryCallback() {
  39451. return this._registerBinaryCallback;
  39452. },
  39453. get$_errorCallback() {
  39454. return this._errorCallback;
  39455. },
  39456. get$_scheduleMicrotask() {
  39457. return this._scheduleMicrotask;
  39458. },
  39459. get$_createTimer() {
  39460. return this._createTimer;
  39461. },
  39462. get$_createPeriodicTimer() {
  39463. return this._createPeriodicTimer;
  39464. },
  39465. get$_print() {
  39466. return this._print;
  39467. },
  39468. get$_fork() {
  39469. return this._fork;
  39470. },
  39471. get$_handleUncaughtError() {
  39472. return this._handleUncaughtError;
  39473. },
  39474. get$parent(receiver) {
  39475. return this.parent;
  39476. },
  39477. get$_async$_map() {
  39478. return this._async$_map;
  39479. }
  39480. };
  39481. A._CustomZone_bindCallback_closure.prototype = {
  39482. call$0() {
  39483. return this.$this.run$1$1(0, this.registered, this.R);
  39484. },
  39485. $signature() {
  39486. return this.R._eval$1("0()");
  39487. }
  39488. };
  39489. A._CustomZone_bindUnaryCallback_closure.prototype = {
  39490. call$1(arg) {
  39491. var _this = this;
  39492. return _this.$this.runUnary$2$2(_this.registered, arg, _this.R, _this.T);
  39493. },
  39494. $signature() {
  39495. return this.R._eval$1("@<0>")._bind$1(this.T)._eval$1("1(2)");
  39496. }
  39497. };
  39498. A._CustomZone_bindCallbackGuarded_closure.prototype = {
  39499. call$0() {
  39500. return this.$this.runGuarded$1(this.registered);
  39501. },
  39502. $signature: 0
  39503. };
  39504. A._rootHandleError_closure.prototype = {
  39505. call$0() {
  39506. A.Error_throwWithStackTrace(this.error, this.stackTrace);
  39507. },
  39508. $signature: 0
  39509. };
  39510. A._RootZone.prototype = {
  39511. get$_run() {
  39512. return B._ZoneFunction__RootZone__rootRun;
  39513. },
  39514. get$_runUnary() {
  39515. return B._ZoneFunction__RootZone__rootRunUnary;
  39516. },
  39517. get$_runBinary() {
  39518. return B._ZoneFunction__RootZone__rootRunBinary;
  39519. },
  39520. get$_registerCallback() {
  39521. return B._ZoneFunction__RootZone__rootRegisterCallback;
  39522. },
  39523. get$_registerUnaryCallback() {
  39524. return B._ZoneFunction_QOa;
  39525. },
  39526. get$_registerBinaryCallback() {
  39527. return B._ZoneFunction_qxw;
  39528. },
  39529. get$_errorCallback() {
  39530. return B._ZoneFunction__RootZone__rootErrorCallback;
  39531. },
  39532. get$_scheduleMicrotask() {
  39533. return B._ZoneFunction__RootZone__rootScheduleMicrotask;
  39534. },
  39535. get$_createTimer() {
  39536. return B._ZoneFunction__RootZone__rootCreateTimer;
  39537. },
  39538. get$_createPeriodicTimer() {
  39539. return B._ZoneFunction_kWM;
  39540. },
  39541. get$_print() {
  39542. return B._ZoneFunction__RootZone__rootPrint;
  39543. },
  39544. get$_fork() {
  39545. return B._ZoneFunction__RootZone__rootFork;
  39546. },
  39547. get$_handleUncaughtError() {
  39548. return B._ZoneFunction_NIe;
  39549. },
  39550. get$parent(_) {
  39551. return null;
  39552. },
  39553. get$_async$_map() {
  39554. return $.$get$_RootZone__rootMap();
  39555. },
  39556. get$_delegate() {
  39557. var t1 = $._RootZone__rootDelegate;
  39558. return t1 == null ? $._RootZone__rootDelegate = new A._ZoneDelegate(this) : t1;
  39559. },
  39560. get$_parentDelegate() {
  39561. var t1 = $._RootZone__rootDelegate;
  39562. return t1 == null ? $._RootZone__rootDelegate = new A._ZoneDelegate(this) : t1;
  39563. },
  39564. get$errorZone() {
  39565. return this;
  39566. },
  39567. runGuarded$1(f) {
  39568. var e, s, exception;
  39569. try {
  39570. if (B.C__RootZone === $.Zone__current) {
  39571. f.call$0();
  39572. return;
  39573. }
  39574. A._rootRun(null, null, this, f);
  39575. } catch (exception) {
  39576. e = A.unwrapException(exception);
  39577. s = A.getTraceFromException(exception);
  39578. A._rootHandleError(e, s);
  39579. }
  39580. },
  39581. runUnaryGuarded$1$2(f, arg) {
  39582. var e, s, exception;
  39583. try {
  39584. if (B.C__RootZone === $.Zone__current) {
  39585. f.call$1(arg);
  39586. return;
  39587. }
  39588. A._rootRunUnary(null, null, this, f, arg);
  39589. } catch (exception) {
  39590. e = A.unwrapException(exception);
  39591. s = A.getTraceFromException(exception);
  39592. A._rootHandleError(e, s);
  39593. }
  39594. },
  39595. runBinaryGuarded$2$3(f, arg1, arg2) {
  39596. var e, s, exception;
  39597. try {
  39598. if (B.C__RootZone === $.Zone__current) {
  39599. f.call$2(arg1, arg2);
  39600. return;
  39601. }
  39602. A._rootRunBinary(null, null, this, f, arg1, arg2);
  39603. } catch (exception) {
  39604. e = A.unwrapException(exception);
  39605. s = A.getTraceFromException(exception);
  39606. A._rootHandleError(e, s);
  39607. }
  39608. },
  39609. bindCallback$1$1(f, $R) {
  39610. return new A._RootZone_bindCallback_closure(this, f, $R);
  39611. },
  39612. bindUnaryCallback$2$1(f, $R, $T) {
  39613. return new A._RootZone_bindUnaryCallback_closure(this, f, $T, $R);
  39614. },
  39615. bindCallbackGuarded$1(f) {
  39616. return new A._RootZone_bindCallbackGuarded_closure(this, f);
  39617. },
  39618. $index(_, key) {
  39619. return null;
  39620. },
  39621. handleUncaughtError$2(error, stackTrace) {
  39622. A._rootHandleError(error, stackTrace);
  39623. },
  39624. fork$2$specification$zoneValues(specification, zoneValues) {
  39625. return A._rootFork(null, null, this, specification, zoneValues);
  39626. },
  39627. run$1$1(_, f) {
  39628. if ($.Zone__current === B.C__RootZone)
  39629. return f.call$0();
  39630. return A._rootRun(null, null, this, f);
  39631. },
  39632. runUnary$2$2(f, arg) {
  39633. if ($.Zone__current === B.C__RootZone)
  39634. return f.call$1(arg);
  39635. return A._rootRunUnary(null, null, this, f, arg);
  39636. },
  39637. runBinary$3$3(f, arg1, arg2) {
  39638. if ($.Zone__current === B.C__RootZone)
  39639. return f.call$2(arg1, arg2);
  39640. return A._rootRunBinary(null, null, this, f, arg1, arg2);
  39641. },
  39642. registerCallback$1$1(f) {
  39643. return f;
  39644. },
  39645. registerUnaryCallback$2$1(f) {
  39646. return f;
  39647. },
  39648. registerBinaryCallback$3$1(f) {
  39649. return f;
  39650. },
  39651. errorCallback$2(error, stackTrace) {
  39652. return null;
  39653. },
  39654. scheduleMicrotask$1(f) {
  39655. A._rootScheduleMicrotask(null, null, this, f);
  39656. },
  39657. createTimer$2(duration, f) {
  39658. return A.Timer__createTimer(duration, f);
  39659. },
  39660. print$1(line) {
  39661. A.printString(line);
  39662. }
  39663. };
  39664. A._RootZone_bindCallback_closure.prototype = {
  39665. call$0() {
  39666. return this.$this.run$1$1(0, this.f, this.R);
  39667. },
  39668. $signature() {
  39669. return this.R._eval$1("0()");
  39670. }
  39671. };
  39672. A._RootZone_bindUnaryCallback_closure.prototype = {
  39673. call$1(arg) {
  39674. var _this = this;
  39675. return _this.$this.runUnary$2$2(_this.f, arg, _this.R, _this.T);
  39676. },
  39677. $signature() {
  39678. return this.R._eval$1("@<0>")._bind$1(this.T)._eval$1("1(2)");
  39679. }
  39680. };
  39681. A._RootZone_bindCallbackGuarded_closure.prototype = {
  39682. call$0() {
  39683. return this.$this.runGuarded$1(this.f);
  39684. },
  39685. $signature: 0
  39686. };
  39687. A._HashMap.prototype = {
  39688. get$length(_) {
  39689. return this._collection$_length;
  39690. },
  39691. get$isEmpty(_) {
  39692. return this._collection$_length === 0;
  39693. },
  39694. get$isNotEmpty(_) {
  39695. return this._collection$_length !== 0;
  39696. },
  39697. get$keys(_) {
  39698. return new A._HashMapKeyIterable(this, A._instanceType(this)._eval$1("_HashMapKeyIterable<1>"));
  39699. },
  39700. get$values(_) {
  39701. var t1 = A._instanceType(this);
  39702. return A.MappedIterable_MappedIterable(new A._HashMapKeyIterable(this, t1._eval$1("_HashMapKeyIterable<1>")), new A._HashMap_values_closure(this), t1._precomputed1, t1._rest[1]);
  39703. },
  39704. containsKey$1(key) {
  39705. var strings, nums;
  39706. if (typeof key == "string" && key !== "__proto__") {
  39707. strings = this._strings;
  39708. return strings == null ? false : strings[key] != null;
  39709. } else if (typeof key == "number" && (key & 1073741823) === key) {
  39710. nums = this._nums;
  39711. return nums == null ? false : nums[key] != null;
  39712. } else
  39713. return this._containsKey$1(key);
  39714. },
  39715. _containsKey$1(key) {
  39716. var rest = this._collection$_rest;
  39717. if (rest == null)
  39718. return false;
  39719. return this._findBucketIndex$2(this._getBucket$2(rest, key), key) >= 0;
  39720. },
  39721. addAll$1(_, other) {
  39722. other.forEach$1(0, new A._HashMap_addAll_closure(this));
  39723. },
  39724. $index(_, key) {
  39725. var strings, t1, nums;
  39726. if (typeof key == "string" && key !== "__proto__") {
  39727. strings = this._strings;
  39728. t1 = strings == null ? null : A._HashMap__getTableEntry(strings, key);
  39729. return t1;
  39730. } else if (typeof key == "number" && (key & 1073741823) === key) {
  39731. nums = this._nums;
  39732. t1 = nums == null ? null : A._HashMap__getTableEntry(nums, key);
  39733. return t1;
  39734. } else
  39735. return this._get$1(key);
  39736. },
  39737. _get$1(key) {
  39738. var bucket, index,
  39739. rest = this._collection$_rest;
  39740. if (rest == null)
  39741. return null;
  39742. bucket = this._getBucket$2(rest, key);
  39743. index = this._findBucketIndex$2(bucket, key);
  39744. return index < 0 ? null : bucket[index + 1];
  39745. },
  39746. $indexSet(_, key, value) {
  39747. var strings, nums, _this = this;
  39748. if (typeof key == "string" && key !== "__proto__") {
  39749. strings = _this._strings;
  39750. _this._addHashTableEntry$3(strings == null ? _this._strings = A._HashMap__newHashTable() : strings, key, value);
  39751. } else if (typeof key == "number" && (key & 1073741823) === key) {
  39752. nums = _this._nums;
  39753. _this._addHashTableEntry$3(nums == null ? _this._nums = A._HashMap__newHashTable() : nums, key, value);
  39754. } else
  39755. _this._set$2(key, value);
  39756. },
  39757. _set$2(key, value) {
  39758. var hash, bucket, index, _this = this,
  39759. rest = _this._collection$_rest;
  39760. if (rest == null)
  39761. rest = _this._collection$_rest = A._HashMap__newHashTable();
  39762. hash = _this._computeHashCode$1(key);
  39763. bucket = rest[hash];
  39764. if (bucket == null) {
  39765. A._HashMap__setTableEntry(rest, hash, [key, value]);
  39766. ++_this._collection$_length;
  39767. _this._collection$_keys = null;
  39768. } else {
  39769. index = _this._findBucketIndex$2(bucket, key);
  39770. if (index >= 0)
  39771. bucket[index + 1] = value;
  39772. else {
  39773. bucket.push(key, value);
  39774. ++_this._collection$_length;
  39775. _this._collection$_keys = null;
  39776. }
  39777. }
  39778. },
  39779. remove$1(_, key) {
  39780. var _this = this;
  39781. if (typeof key == "string" && key !== "__proto__")
  39782. return _this._removeHashTableEntry$2(_this._strings, key);
  39783. else if (typeof key == "number" && (key & 1073741823) === key)
  39784. return _this._removeHashTableEntry$2(_this._nums, key);
  39785. else
  39786. return _this._remove$1(key);
  39787. },
  39788. _remove$1(key) {
  39789. var hash, bucket, index, result, _this = this,
  39790. rest = _this._collection$_rest;
  39791. if (rest == null)
  39792. return null;
  39793. hash = _this._computeHashCode$1(key);
  39794. bucket = rest[hash];
  39795. index = _this._findBucketIndex$2(bucket, key);
  39796. if (index < 0)
  39797. return null;
  39798. --_this._collection$_length;
  39799. _this._collection$_keys = null;
  39800. result = bucket.splice(index, 2)[1];
  39801. if (0 === bucket.length)
  39802. delete rest[hash];
  39803. return result;
  39804. },
  39805. forEach$1(_, action) {
  39806. var $length, t1, i, key, t2, _this = this,
  39807. keys = _this._computeKeys$0();
  39808. for ($length = keys.length, t1 = A._instanceType(_this)._rest[1], i = 0; i < $length; ++i) {
  39809. key = keys[i];
  39810. t2 = _this.$index(0, key);
  39811. action.call$2(key, t2 == null ? t1._as(t2) : t2);
  39812. if (keys !== _this._collection$_keys)
  39813. throw A.wrapException(A.ConcurrentModificationError$(_this));
  39814. }
  39815. },
  39816. _computeKeys$0() {
  39817. var strings, index, names, entries, i, nums, rest, bucket, $length, i0, _this = this,
  39818. result = _this._collection$_keys;
  39819. if (result != null)
  39820. return result;
  39821. result = A.List_List$filled(_this._collection$_length, null, false, type$.dynamic);
  39822. strings = _this._strings;
  39823. index = 0;
  39824. if (strings != null) {
  39825. names = Object.getOwnPropertyNames(strings);
  39826. entries = names.length;
  39827. for (i = 0; i < entries; ++i) {
  39828. result[index] = names[i];
  39829. ++index;
  39830. }
  39831. }
  39832. nums = _this._nums;
  39833. if (nums != null) {
  39834. names = Object.getOwnPropertyNames(nums);
  39835. entries = names.length;
  39836. for (i = 0; i < entries; ++i) {
  39837. result[index] = +names[i];
  39838. ++index;
  39839. }
  39840. }
  39841. rest = _this._collection$_rest;
  39842. if (rest != null) {
  39843. names = Object.getOwnPropertyNames(rest);
  39844. entries = names.length;
  39845. for (i = 0; i < entries; ++i) {
  39846. bucket = rest[names[i]];
  39847. $length = bucket.length;
  39848. for (i0 = 0; i0 < $length; i0 += 2) {
  39849. result[index] = bucket[i0];
  39850. ++index;
  39851. }
  39852. }
  39853. }
  39854. return _this._collection$_keys = result;
  39855. },
  39856. _addHashTableEntry$3(table, key, value) {
  39857. if (table[key] == null) {
  39858. ++this._collection$_length;
  39859. this._collection$_keys = null;
  39860. }
  39861. A._HashMap__setTableEntry(table, key, value);
  39862. },
  39863. _removeHashTableEntry$2(table, key) {
  39864. var value;
  39865. if (table != null && table[key] != null) {
  39866. value = A._HashMap__getTableEntry(table, key);
  39867. delete table[key];
  39868. --this._collection$_length;
  39869. this._collection$_keys = null;
  39870. return value;
  39871. } else
  39872. return null;
  39873. },
  39874. _computeHashCode$1(key) {
  39875. return J.get$hashCode$(key) & 1073741823;
  39876. },
  39877. _getBucket$2(table, key) {
  39878. return table[this._computeHashCode$1(key)];
  39879. },
  39880. _findBucketIndex$2(bucket, key) {
  39881. var $length, i;
  39882. if (bucket == null)
  39883. return -1;
  39884. $length = bucket.length;
  39885. for (i = 0; i < $length; i += 2)
  39886. if (J.$eq$(bucket[i], key))
  39887. return i;
  39888. return -1;
  39889. }
  39890. };
  39891. A._HashMap_values_closure.prototype = {
  39892. call$1(each) {
  39893. var t1 = this.$this,
  39894. t2 = t1.$index(0, each);
  39895. return t2 == null ? A._instanceType(t1)._rest[1]._as(t2) : t2;
  39896. },
  39897. $signature() {
  39898. return A._instanceType(this.$this)._eval$1("2(1)");
  39899. }
  39900. };
  39901. A._HashMap_addAll_closure.prototype = {
  39902. call$2(key, value) {
  39903. this.$this.$indexSet(0, key, value);
  39904. },
  39905. $signature() {
  39906. return A._instanceType(this.$this)._eval$1("~(1,2)");
  39907. }
  39908. };
  39909. A._IdentityHashMap.prototype = {
  39910. _computeHashCode$1(key) {
  39911. return A.objectHashCode(key) & 1073741823;
  39912. },
  39913. _findBucketIndex$2(bucket, key) {
  39914. var $length, i, t1;
  39915. if (bucket == null)
  39916. return -1;
  39917. $length = bucket.length;
  39918. for (i = 0; i < $length; i += 2) {
  39919. t1 = bucket[i];
  39920. if (t1 == null ? key == null : t1 === key)
  39921. return i;
  39922. }
  39923. return -1;
  39924. }
  39925. };
  39926. A._HashMapKeyIterable.prototype = {
  39927. get$length(_) {
  39928. return this._map._collection$_length;
  39929. },
  39930. get$isEmpty(_) {
  39931. return this._map._collection$_length === 0;
  39932. },
  39933. get$isNotEmpty(_) {
  39934. return this._map._collection$_length !== 0;
  39935. },
  39936. get$iterator(_) {
  39937. var t1 = this._map;
  39938. return new A._HashMapKeyIterator(t1, t1._computeKeys$0(), this.$ti._eval$1("_HashMapKeyIterator<1>"));
  39939. },
  39940. contains$1(_, element) {
  39941. return this._map.containsKey$1(element);
  39942. }
  39943. };
  39944. A._HashMapKeyIterator.prototype = {
  39945. get$current(_) {
  39946. var t1 = this._collection$_current;
  39947. return t1 == null ? this.$ti._precomputed1._as(t1) : t1;
  39948. },
  39949. moveNext$0() {
  39950. var _this = this,
  39951. keys = _this._collection$_keys,
  39952. offset = _this._offset,
  39953. t1 = _this._map;
  39954. if (keys !== t1._collection$_keys)
  39955. throw A.wrapException(A.ConcurrentModificationError$(t1));
  39956. else if (offset >= keys.length) {
  39957. _this._collection$_current = null;
  39958. return false;
  39959. } else {
  39960. _this._collection$_current = keys[offset];
  39961. _this._offset = offset + 1;
  39962. return true;
  39963. }
  39964. }
  39965. };
  39966. A._LinkedCustomHashMap.prototype = {
  39967. $index(_, key) {
  39968. if (!this._validKey.call$1(key))
  39969. return null;
  39970. return this.super$JsLinkedHashMap$internalGet(key);
  39971. },
  39972. $indexSet(_, key, value) {
  39973. this.super$JsLinkedHashMap$internalSet(key, value);
  39974. },
  39975. containsKey$1(key) {
  39976. if (!this._validKey.call$1(key))
  39977. return false;
  39978. return this.super$JsLinkedHashMap$internalContainsKey(key);
  39979. },
  39980. remove$1(_, key) {
  39981. if (!this._validKey.call$1(key))
  39982. return null;
  39983. return this.super$JsLinkedHashMap$internalRemove(key);
  39984. },
  39985. internalComputeHashCode$1(key) {
  39986. return this._hashCode.call$1(key) & 1073741823;
  39987. },
  39988. internalFindBucketIndex$2(bucket, key) {
  39989. var $length, t1, i;
  39990. if (bucket == null)
  39991. return -1;
  39992. $length = bucket.length;
  39993. for (t1 = this._equals, i = 0; i < $length; ++i)
  39994. if (t1.call$2(bucket[i].hashMapCellKey, key))
  39995. return i;
  39996. return -1;
  39997. }
  39998. };
  39999. A._LinkedCustomHashMap_closure.prototype = {
  40000. call$1(v) {
  40001. return this.K._is(v);
  40002. },
  40003. $signature: 180
  40004. };
  40005. A._LinkedHashSet.prototype = {
  40006. _newSet$0() {
  40007. return new A._LinkedHashSet(A._instanceType(this)._eval$1("_LinkedHashSet<1>"));
  40008. },
  40009. _newSimilarSet$1$0($R) {
  40010. return new A._LinkedHashSet($R._eval$1("_LinkedHashSet<0>"));
  40011. },
  40012. _newSimilarSet$0() {
  40013. return this._newSimilarSet$1$0(type$.dynamic);
  40014. },
  40015. get$iterator(_) {
  40016. var _this = this,
  40017. t1 = new A._LinkedHashSetIterator(_this, _this._modifications, A._instanceType(_this)._eval$1("_LinkedHashSetIterator<1>"));
  40018. t1._cell = _this._first;
  40019. return t1;
  40020. },
  40021. get$length(_) {
  40022. return this._collection$_length;
  40023. },
  40024. get$isEmpty(_) {
  40025. return this._collection$_length === 0;
  40026. },
  40027. get$isNotEmpty(_) {
  40028. return this._collection$_length !== 0;
  40029. },
  40030. contains$1(_, object) {
  40031. var strings, nums;
  40032. if (typeof object == "string" && object !== "__proto__") {
  40033. strings = this._strings;
  40034. if (strings == null)
  40035. return false;
  40036. return strings[object] != null;
  40037. } else if (typeof object == "number" && (object & 1073741823) === object) {
  40038. nums = this._nums;
  40039. if (nums == null)
  40040. return false;
  40041. return nums[object] != null;
  40042. } else
  40043. return this._contains$1(object);
  40044. },
  40045. _contains$1(object) {
  40046. var rest = this._collection$_rest;
  40047. if (rest == null)
  40048. return false;
  40049. return this._findBucketIndex$2(rest[this._computeHashCode$1(object)], object) >= 0;
  40050. },
  40051. get$first(_) {
  40052. var first = this._first;
  40053. if (first == null)
  40054. throw A.wrapException(A.StateError$("No elements"));
  40055. return first._element;
  40056. },
  40057. get$last(_) {
  40058. var last = this._last;
  40059. if (last == null)
  40060. throw A.wrapException(A.StateError$("No elements"));
  40061. return last._element;
  40062. },
  40063. add$1(_, element) {
  40064. var strings, nums, _this = this;
  40065. if (typeof element == "string" && element !== "__proto__") {
  40066. strings = _this._strings;
  40067. return _this._addHashTableEntry$2(strings == null ? _this._strings = A._LinkedHashSet__newHashTable() : strings, element);
  40068. } else if (typeof element == "number" && (element & 1073741823) === element) {
  40069. nums = _this._nums;
  40070. return _this._addHashTableEntry$2(nums == null ? _this._nums = A._LinkedHashSet__newHashTable() : nums, element);
  40071. } else
  40072. return _this._add$1(element);
  40073. },
  40074. _add$1(element) {
  40075. var hash, bucket, _this = this,
  40076. rest = _this._collection$_rest;
  40077. if (rest == null)
  40078. rest = _this._collection$_rest = A._LinkedHashSet__newHashTable();
  40079. hash = _this._computeHashCode$1(element);
  40080. bucket = rest[hash];
  40081. if (bucket == null)
  40082. rest[hash] = [_this._newLinkedCell$1(element)];
  40083. else {
  40084. if (_this._findBucketIndex$2(bucket, element) >= 0)
  40085. return false;
  40086. bucket.push(_this._newLinkedCell$1(element));
  40087. }
  40088. return true;
  40089. },
  40090. remove$1(_, object) {
  40091. var _this = this;
  40092. if (typeof object == "string" && object !== "__proto__")
  40093. return _this._removeHashTableEntry$2(_this._strings, object);
  40094. else if (typeof object == "number" && (object & 1073741823) === object)
  40095. return _this._removeHashTableEntry$2(_this._nums, object);
  40096. else
  40097. return _this._remove$1(object);
  40098. },
  40099. _remove$1(object) {
  40100. var hash, bucket, index, cell, _this = this,
  40101. rest = _this._collection$_rest;
  40102. if (rest == null)
  40103. return false;
  40104. hash = _this._computeHashCode$1(object);
  40105. bucket = rest[hash];
  40106. index = _this._findBucketIndex$2(bucket, object);
  40107. if (index < 0)
  40108. return false;
  40109. cell = bucket.splice(index, 1)[0];
  40110. if (0 === bucket.length)
  40111. delete rest[hash];
  40112. _this._unlinkCell$1(cell);
  40113. return true;
  40114. },
  40115. _addHashTableEntry$2(table, element) {
  40116. if (table[element] != null)
  40117. return false;
  40118. table[element] = this._newLinkedCell$1(element);
  40119. return true;
  40120. },
  40121. _removeHashTableEntry$2(table, element) {
  40122. var cell;
  40123. if (table == null)
  40124. return false;
  40125. cell = table[element];
  40126. if (cell == null)
  40127. return false;
  40128. this._unlinkCell$1(cell);
  40129. delete table[element];
  40130. return true;
  40131. },
  40132. _modified$0() {
  40133. this._modifications = this._modifications + 1 & 1073741823;
  40134. },
  40135. _newLinkedCell$1(element) {
  40136. var t1, _this = this,
  40137. cell = new A._LinkedHashSetCell(element);
  40138. if (_this._first == null)
  40139. _this._first = _this._last = cell;
  40140. else {
  40141. t1 = _this._last;
  40142. t1.toString;
  40143. cell._previous = t1;
  40144. _this._last = t1._next = cell;
  40145. }
  40146. ++_this._collection$_length;
  40147. _this._modified$0();
  40148. return cell;
  40149. },
  40150. _unlinkCell$1(cell) {
  40151. var _this = this,
  40152. previous = cell._previous,
  40153. next = cell._next;
  40154. if (previous == null)
  40155. _this._first = next;
  40156. else
  40157. previous._next = next;
  40158. if (next == null)
  40159. _this._last = previous;
  40160. else
  40161. next._previous = previous;
  40162. --_this._collection$_length;
  40163. _this._modified$0();
  40164. },
  40165. _computeHashCode$1(element) {
  40166. return J.get$hashCode$(element) & 1073741823;
  40167. },
  40168. _findBucketIndex$2(bucket, element) {
  40169. var $length, i;
  40170. if (bucket == null)
  40171. return -1;
  40172. $length = bucket.length;
  40173. for (i = 0; i < $length; ++i)
  40174. if (J.$eq$(bucket[i]._element, element))
  40175. return i;
  40176. return -1;
  40177. }
  40178. };
  40179. A._LinkedIdentityHashSet.prototype = {
  40180. _newSet$0() {
  40181. return new A._LinkedIdentityHashSet(this.$ti);
  40182. },
  40183. _newSimilarSet$1$0($R) {
  40184. return new A._LinkedIdentityHashSet($R._eval$1("_LinkedIdentityHashSet<0>"));
  40185. },
  40186. _newSimilarSet$0() {
  40187. return this._newSimilarSet$1$0(type$.dynamic);
  40188. },
  40189. _computeHashCode$1(key) {
  40190. return A.objectHashCode(key) & 1073741823;
  40191. },
  40192. _findBucketIndex$2(bucket, element) {
  40193. var $length, i, t1;
  40194. if (bucket == null)
  40195. return -1;
  40196. $length = bucket.length;
  40197. for (i = 0; i < $length; ++i) {
  40198. t1 = bucket[i]._element;
  40199. if (t1 == null ? element == null : t1 === element)
  40200. return i;
  40201. }
  40202. return -1;
  40203. }
  40204. };
  40205. A._LinkedHashSetCell.prototype = {};
  40206. A._LinkedHashSetIterator.prototype = {
  40207. get$current(_) {
  40208. var t1 = this._collection$_current;
  40209. return t1 == null ? this.$ti._precomputed1._as(t1) : t1;
  40210. },
  40211. moveNext$0() {
  40212. var _this = this,
  40213. cell = _this._cell,
  40214. t1 = _this._set;
  40215. if (_this._modifications !== t1._modifications)
  40216. throw A.wrapException(A.ConcurrentModificationError$(t1));
  40217. else if (cell == null) {
  40218. _this._collection$_current = null;
  40219. return false;
  40220. } else {
  40221. _this._collection$_current = cell._element;
  40222. _this._cell = cell._next;
  40223. return true;
  40224. }
  40225. }
  40226. };
  40227. A.UnmodifiableListView.prototype = {
  40228. cast$1$0(_, $R) {
  40229. return new A.UnmodifiableListView(J.cast$1$0$ax(this._collection$_source, $R), $R._eval$1("UnmodifiableListView<0>"));
  40230. },
  40231. get$length(_) {
  40232. return J.get$length$asx(this._collection$_source);
  40233. },
  40234. $index(_, index) {
  40235. return J.elementAt$1$ax(this._collection$_source, index);
  40236. }
  40237. };
  40238. A.HashMap_HashMap$from_closure.prototype = {
  40239. call$2(k, v) {
  40240. this.result.$indexSet(0, this.K._as(k), this.V._as(v));
  40241. },
  40242. $signature: 193
  40243. };
  40244. A.LinkedHashMap_LinkedHashMap$from_closure.prototype = {
  40245. call$2(k, v) {
  40246. this.result.$indexSet(0, this.K._as(k), this.V._as(v));
  40247. },
  40248. $signature: 193
  40249. };
  40250. A.ListBase.prototype = {
  40251. get$iterator(receiver) {
  40252. return new A.ListIterator(receiver, this.get$length(receiver), A.instanceType(receiver)._eval$1("ListIterator<ListBase.E>"));
  40253. },
  40254. elementAt$1(receiver, index) {
  40255. return this.$index(receiver, index);
  40256. },
  40257. forEach$1(receiver, action) {
  40258. var i,
  40259. $length = this.get$length(receiver);
  40260. for (i = 0; i < $length; ++i) {
  40261. action.call$1(this.$index(receiver, i));
  40262. if ($length !== this.get$length(receiver))
  40263. throw A.wrapException(A.ConcurrentModificationError$(receiver));
  40264. }
  40265. },
  40266. get$isEmpty(receiver) {
  40267. return this.get$length(receiver) === 0;
  40268. },
  40269. get$isNotEmpty(receiver) {
  40270. return !this.get$isEmpty(receiver);
  40271. },
  40272. get$first(receiver) {
  40273. if (this.get$length(receiver) === 0)
  40274. throw A.wrapException(A.IterableElementError_noElement());
  40275. return this.$index(receiver, 0);
  40276. },
  40277. get$last(receiver) {
  40278. if (this.get$length(receiver) === 0)
  40279. throw A.wrapException(A.IterableElementError_noElement());
  40280. return this.$index(receiver, this.get$length(receiver) - 1);
  40281. },
  40282. get$single(receiver) {
  40283. if (this.get$length(receiver) === 0)
  40284. throw A.wrapException(A.IterableElementError_noElement());
  40285. if (this.get$length(receiver) > 1)
  40286. throw A.wrapException(A.IterableElementError_tooMany());
  40287. return this.$index(receiver, 0);
  40288. },
  40289. contains$1(receiver, element) {
  40290. var i,
  40291. $length = this.get$length(receiver);
  40292. for (i = 0; i < $length; ++i) {
  40293. if (J.$eq$(this.$index(receiver, i), element))
  40294. return true;
  40295. if ($length !== this.get$length(receiver))
  40296. throw A.wrapException(A.ConcurrentModificationError$(receiver));
  40297. }
  40298. return false;
  40299. },
  40300. every$1(receiver, test) {
  40301. var i,
  40302. $length = this.get$length(receiver);
  40303. for (i = 0; i < $length; ++i) {
  40304. if (!test.call$1(this.$index(receiver, i)))
  40305. return false;
  40306. if ($length !== this.get$length(receiver))
  40307. throw A.wrapException(A.ConcurrentModificationError$(receiver));
  40308. }
  40309. return true;
  40310. },
  40311. any$1(receiver, test) {
  40312. var i,
  40313. $length = this.get$length(receiver);
  40314. for (i = 0; i < $length; ++i) {
  40315. if (test.call$1(this.$index(receiver, i)))
  40316. return true;
  40317. if ($length !== this.get$length(receiver))
  40318. throw A.wrapException(A.ConcurrentModificationError$(receiver));
  40319. }
  40320. return false;
  40321. },
  40322. lastWhere$2$orElse(receiver, test, orElse) {
  40323. var i, element,
  40324. $length = this.get$length(receiver);
  40325. for (i = $length - 1; i >= 0; --i) {
  40326. element = this.$index(receiver, i);
  40327. if (test.call$1(element))
  40328. return element;
  40329. if ($length !== this.get$length(receiver))
  40330. throw A.wrapException(A.ConcurrentModificationError$(receiver));
  40331. }
  40332. if (orElse != null)
  40333. return orElse.call$0();
  40334. throw A.wrapException(A.IterableElementError_noElement());
  40335. },
  40336. join$1(receiver, separator) {
  40337. var t1;
  40338. if (this.get$length(receiver) === 0)
  40339. return "";
  40340. t1 = A.StringBuffer__writeAll("", receiver, separator);
  40341. return t1.charCodeAt(0) == 0 ? t1 : t1;
  40342. },
  40343. where$1(receiver, test) {
  40344. return new A.WhereIterable(receiver, test, A.instanceType(receiver)._eval$1("WhereIterable<ListBase.E>"));
  40345. },
  40346. map$1$1(receiver, f, $T) {
  40347. return new A.MappedListIterable(receiver, f, A.instanceType(receiver)._eval$1("@<ListBase.E>")._bind$1($T)._eval$1("MappedListIterable<1,2>"));
  40348. },
  40349. expand$1$1(receiver, f, $T) {
  40350. return new A.ExpandIterable(receiver, f, A.instanceType(receiver)._eval$1("@<ListBase.E>")._bind$1($T)._eval$1("ExpandIterable<1,2>"));
  40351. },
  40352. skip$1(receiver, count) {
  40353. return A.SubListIterable$(receiver, count, null, A.instanceType(receiver)._eval$1("ListBase.E"));
  40354. },
  40355. take$1(receiver, count) {
  40356. return A.SubListIterable$(receiver, 0, A.checkNotNullable(count, "count", type$.int), A.instanceType(receiver)._eval$1("ListBase.E"));
  40357. },
  40358. toList$1$growable(receiver, growable) {
  40359. var t1, first, result, i, _this = this;
  40360. if (_this.get$isEmpty(receiver)) {
  40361. t1 = J.JSArray_JSArray$growable(0, A.instanceType(receiver)._eval$1("ListBase.E"));
  40362. return t1;
  40363. }
  40364. first = _this.$index(receiver, 0);
  40365. result = A.List_List$filled(_this.get$length(receiver), first, true, A.instanceType(receiver)._eval$1("ListBase.E"));
  40366. for (i = 1; i < _this.get$length(receiver); ++i)
  40367. result[i] = _this.$index(receiver, i);
  40368. return result;
  40369. },
  40370. toList$0(receiver) {
  40371. return this.toList$1$growable(receiver, true);
  40372. },
  40373. toSet$0(receiver) {
  40374. var i,
  40375. result = A.LinkedHashSet_LinkedHashSet(A.instanceType(receiver)._eval$1("ListBase.E"));
  40376. for (i = 0; i < this.get$length(receiver); ++i)
  40377. result.add$1(0, this.$index(receiver, i));
  40378. return result;
  40379. },
  40380. add$1(receiver, element) {
  40381. var t1 = this.get$length(receiver);
  40382. this.set$length(receiver, t1 + 1);
  40383. this.$indexSet(receiver, t1, element);
  40384. },
  40385. addAll$1(receiver, iterable) {
  40386. var t1,
  40387. i = this.get$length(receiver);
  40388. for (t1 = iterable.get$iterator(iterable); t1.moveNext$0();) {
  40389. this.add$1(receiver, t1.get$current(t1));
  40390. ++i;
  40391. }
  40392. },
  40393. _closeGap$2(receiver, start, end) {
  40394. var i, _this = this,
  40395. $length = _this.get$length(receiver),
  40396. size = end - start;
  40397. for (i = end; i < $length; ++i)
  40398. _this.$indexSet(receiver, i - size, _this.$index(receiver, i));
  40399. _this.set$length(receiver, $length - size);
  40400. },
  40401. cast$1$0(receiver, $R) {
  40402. return new A.CastList(receiver, A.instanceType(receiver)._eval$1("@<ListBase.E>")._bind$1($R)._eval$1("CastList<1,2>"));
  40403. },
  40404. sort$1(receiver, compare) {
  40405. var t1 = compare == null ? A.collection_ListBase__compareAny$closure() : compare;
  40406. A.Sort__doSort(receiver, 0, this.get$length(receiver) - 1, t1);
  40407. },
  40408. sublist$2(receiver, start, end) {
  40409. var listLength = this.get$length(receiver);
  40410. A.RangeError_checkValidRange(start, listLength, listLength);
  40411. return A.List_List$from(this.getRange$2(receiver, start, listLength), true, A.instanceType(receiver)._eval$1("ListBase.E"));
  40412. },
  40413. sublist$1(receiver, start) {
  40414. return this.sublist$2(receiver, start, null);
  40415. },
  40416. getRange$2(receiver, start, end) {
  40417. A.RangeError_checkValidRange(start, end, this.get$length(receiver));
  40418. return A.SubListIterable$(receiver, start, end, A.instanceType(receiver)._eval$1("ListBase.E"));
  40419. },
  40420. removeRange$2(receiver, start, end) {
  40421. A.RangeError_checkValidRange(start, end, this.get$length(receiver));
  40422. if (end > start)
  40423. this._closeGap$2(receiver, start, end);
  40424. },
  40425. fillRange$3(receiver, start, end, fill) {
  40426. var i,
  40427. value = fill == null ? A.instanceType(receiver)._eval$1("ListBase.E")._as(fill) : fill;
  40428. A.RangeError_checkValidRange(start, end, this.get$length(receiver));
  40429. for (i = start; i < end; ++i)
  40430. this.$indexSet(receiver, i, value);
  40431. },
  40432. setRange$4(receiver, start, end, iterable, skipCount) {
  40433. var $length, otherStart, otherList, t1, i;
  40434. A.RangeError_checkValidRange(start, end, this.get$length(receiver));
  40435. $length = end - start;
  40436. if ($length === 0)
  40437. return;
  40438. A.RangeError_checkNotNegative(skipCount, "skipCount");
  40439. if (A.instanceType(receiver)._eval$1("List<ListBase.E>")._is(iterable)) {
  40440. otherStart = skipCount;
  40441. otherList = iterable;
  40442. } else {
  40443. otherList = J.skip$1$ax(iterable, skipCount).toList$1$growable(0, false);
  40444. otherStart = 0;
  40445. }
  40446. t1 = J.getInterceptor$asx(otherList);
  40447. if (otherStart + $length > t1.get$length(otherList))
  40448. throw A.wrapException(A.IterableElementError_tooFew());
  40449. if (otherStart < start)
  40450. for (i = $length - 1; i >= 0; --i)
  40451. this.$indexSet(receiver, start + i, t1.$index(otherList, otherStart + i));
  40452. else
  40453. for (i = 0; i < $length; ++i)
  40454. this.$indexSet(receiver, start + i, t1.$index(otherList, otherStart + i));
  40455. },
  40456. indexOf$1(receiver, element) {
  40457. var i;
  40458. for (i = 0; i < this.get$length(receiver); ++i)
  40459. if (J.$eq$(this.$index(receiver, i), element))
  40460. return i;
  40461. return -1;
  40462. },
  40463. get$reversed(receiver) {
  40464. return new A.ReversedListIterable(receiver, A.instanceType(receiver)._eval$1("ReversedListIterable<ListBase.E>"));
  40465. },
  40466. toString$0(receiver) {
  40467. return A.Iterable_iterableToFullString(receiver, "[", "]");
  40468. },
  40469. $isEfficientLengthIterable: 1,
  40470. $isIterable: 1,
  40471. $isList: 1
  40472. };
  40473. A.MapBase.prototype = {
  40474. cast$2$0(_, RK, RV) {
  40475. var t1 = A._instanceType(this);
  40476. return A.Map_castFrom(this, t1._eval$1("MapBase.K"), t1._eval$1("MapBase.V"), RK, RV);
  40477. },
  40478. forEach$1(_, action) {
  40479. var t1, t2, key, t3, _this = this;
  40480. for (t1 = J.get$iterator$ax(_this.get$keys(_this)), t2 = A._instanceType(_this)._eval$1("MapBase.V"); t1.moveNext$0();) {
  40481. key = t1.get$current(t1);
  40482. t3 = _this.$index(0, key);
  40483. action.call$2(key, t3 == null ? t2._as(t3) : t3);
  40484. }
  40485. },
  40486. addAll$1(_, other) {
  40487. other.forEach$1(0, new A.MapBase_addAll_closure(this));
  40488. },
  40489. get$entries(_) {
  40490. var _this = this;
  40491. return J.map$1$1$ax(_this.get$keys(_this), new A.MapBase_entries_closure(_this), A._instanceType(_this)._eval$1("MapEntry<MapBase.K,MapBase.V>"));
  40492. },
  40493. removeWhere$1(_, test) {
  40494. var t2, key, t3, _i, _this = this,
  40495. t1 = A._instanceType(_this),
  40496. keysToRemove = A._setArrayType([], t1._eval$1("JSArray<MapBase.K>"));
  40497. for (t2 = J.get$iterator$ax(_this.get$keys(_this)), t1 = t1._eval$1("MapBase.V"); t2.moveNext$0();) {
  40498. key = t2.get$current(t2);
  40499. t3 = _this.$index(0, key);
  40500. if (test.call$2(key, t3 == null ? t1._as(t3) : t3))
  40501. keysToRemove.push(key);
  40502. }
  40503. for (t1 = keysToRemove.length, _i = 0; _i < keysToRemove.length; keysToRemove.length === t1 || (0, A.throwConcurrentModificationError)(keysToRemove), ++_i)
  40504. _this.remove$1(0, keysToRemove[_i]);
  40505. },
  40506. containsKey$1(key) {
  40507. return J.contains$1$asx(this.get$keys(this), key);
  40508. },
  40509. get$length(_) {
  40510. return J.get$length$asx(this.get$keys(this));
  40511. },
  40512. get$isEmpty(_) {
  40513. return J.get$isEmpty$asx(this.get$keys(this));
  40514. },
  40515. get$isNotEmpty(_) {
  40516. return J.get$isNotEmpty$asx(this.get$keys(this));
  40517. },
  40518. get$values(_) {
  40519. return new A._MapBaseValueIterable(this, A._instanceType(this)._eval$1("_MapBaseValueIterable<MapBase.K,MapBase.V>"));
  40520. },
  40521. toString$0(_) {
  40522. return A.MapBase_mapToString(this);
  40523. },
  40524. $isMap: 1
  40525. };
  40526. A.MapBase_addAll_closure.prototype = {
  40527. call$2(key, value) {
  40528. this.$this.$indexSet(0, key, value);
  40529. },
  40530. $signature() {
  40531. return A._instanceType(this.$this)._eval$1("~(MapBase.K,MapBase.V)");
  40532. }
  40533. };
  40534. A.MapBase_entries_closure.prototype = {
  40535. call$1(key) {
  40536. var t1 = this.$this,
  40537. t2 = t1.$index(0, key);
  40538. if (t2 == null)
  40539. t2 = A._instanceType(t1)._eval$1("MapBase.V")._as(t2);
  40540. return new A.MapEntry(key, t2, A._instanceType(t1)._eval$1("MapEntry<MapBase.K,MapBase.V>"));
  40541. },
  40542. $signature() {
  40543. return A._instanceType(this.$this)._eval$1("MapEntry<MapBase.K,MapBase.V>(MapBase.K)");
  40544. }
  40545. };
  40546. A.MapBase_mapToString_closure.prototype = {
  40547. call$2(k, v) {
  40548. var t2,
  40549. t1 = this._box_0;
  40550. if (!t1.first)
  40551. this.result._contents += ", ";
  40552. t1.first = false;
  40553. t1 = this.result;
  40554. t2 = A.S(k);
  40555. t2 = t1._contents += t2;
  40556. t1._contents = t2 + ": ";
  40557. t2 = A.S(v);
  40558. t1._contents += t2;
  40559. },
  40560. $signature: 213
  40561. };
  40562. A.UnmodifiableMapBase.prototype = {};
  40563. A._MapBaseValueIterable.prototype = {
  40564. get$length(_) {
  40565. var t1 = this._map;
  40566. return t1.get$length(t1);
  40567. },
  40568. get$isEmpty(_) {
  40569. var t1 = this._map;
  40570. return t1.get$isEmpty(t1);
  40571. },
  40572. get$isNotEmpty(_) {
  40573. var t1 = this._map;
  40574. return t1.get$isNotEmpty(t1);
  40575. },
  40576. get$first(_) {
  40577. var t1 = this._map;
  40578. t1 = t1.$index(0, J.get$first$ax(t1.get$keys(t1)));
  40579. return t1 == null ? this.$ti._rest[1]._as(t1) : t1;
  40580. },
  40581. get$single(_) {
  40582. var t1 = this._map;
  40583. t1 = t1.$index(0, J.get$single$ax(t1.get$keys(t1)));
  40584. return t1 == null ? this.$ti._rest[1]._as(t1) : t1;
  40585. },
  40586. get$last(_) {
  40587. var t1 = this._map;
  40588. t1 = t1.$index(0, J.get$last$ax(t1.get$keys(t1)));
  40589. return t1 == null ? this.$ti._rest[1]._as(t1) : t1;
  40590. },
  40591. get$iterator(_) {
  40592. var t1 = this._map;
  40593. return new A._MapBaseValueIterator(J.get$iterator$ax(t1.get$keys(t1)), t1, this.$ti._eval$1("_MapBaseValueIterator<1,2>"));
  40594. }
  40595. };
  40596. A._MapBaseValueIterator.prototype = {
  40597. moveNext$0() {
  40598. var _this = this,
  40599. t1 = _this._collection$_keys;
  40600. if (t1.moveNext$0()) {
  40601. _this._collection$_current = _this._map.$index(0, t1.get$current(t1));
  40602. return true;
  40603. }
  40604. _this._collection$_current = null;
  40605. return false;
  40606. },
  40607. get$current(_) {
  40608. var t1 = this._collection$_current;
  40609. return t1 == null ? this.$ti._rest[1]._as(t1) : t1;
  40610. }
  40611. };
  40612. A._UnmodifiableMapMixin.prototype = {
  40613. $indexSet(_, key, value) {
  40614. throw A.wrapException(A.UnsupportedError$("Cannot modify unmodifiable map"));
  40615. },
  40616. addAll$1(_, other) {
  40617. throw A.wrapException(A.UnsupportedError$("Cannot modify unmodifiable map"));
  40618. },
  40619. remove$1(_, key) {
  40620. throw A.wrapException(A.UnsupportedError$("Cannot modify unmodifiable map"));
  40621. }
  40622. };
  40623. A.MapView.prototype = {
  40624. cast$2$0(_, RK, RV) {
  40625. return this._map.cast$2$0(0, RK, RV);
  40626. },
  40627. $index(_, key) {
  40628. return this._map.$index(0, key);
  40629. },
  40630. $indexSet(_, key, value) {
  40631. this._map.$indexSet(0, key, value);
  40632. },
  40633. addAll$1(_, other) {
  40634. this._map.addAll$1(0, other);
  40635. },
  40636. containsKey$1(key) {
  40637. return this._map.containsKey$1(key);
  40638. },
  40639. forEach$1(_, action) {
  40640. this._map.forEach$1(0, action);
  40641. },
  40642. get$isEmpty(_) {
  40643. var t1 = this._map;
  40644. return t1.get$isEmpty(t1);
  40645. },
  40646. get$isNotEmpty(_) {
  40647. var t1 = this._map;
  40648. return t1.get$isNotEmpty(t1);
  40649. },
  40650. get$length(_) {
  40651. var t1 = this._map;
  40652. return t1.get$length(t1);
  40653. },
  40654. get$keys(_) {
  40655. var t1 = this._map;
  40656. return t1.get$keys(t1);
  40657. },
  40658. remove$1(_, key) {
  40659. return this._map.remove$1(0, key);
  40660. },
  40661. toString$0(_) {
  40662. return this._map.toString$0(0);
  40663. },
  40664. get$values(_) {
  40665. var t1 = this._map;
  40666. return t1.get$values(t1);
  40667. },
  40668. get$entries(_) {
  40669. var t1 = this._map;
  40670. return t1.get$entries(t1);
  40671. },
  40672. $isMap: 1
  40673. };
  40674. A.UnmodifiableMapView.prototype = {
  40675. cast$2$0(_, RK, RV) {
  40676. return new A.UnmodifiableMapView(this._map.cast$2$0(0, RK, RV), RK._eval$1("@<0>")._bind$1(RV)._eval$1("UnmodifiableMapView<1,2>"));
  40677. }
  40678. };
  40679. A.ListQueue.prototype = {
  40680. get$iterator(_) {
  40681. var _this = this;
  40682. return new A._ListQueueIterator(_this, _this._tail, _this._modificationCount, _this._head, _this.$ti._eval$1("_ListQueueIterator<1>"));
  40683. },
  40684. get$isEmpty(_) {
  40685. return this._head === this._tail;
  40686. },
  40687. get$length(_) {
  40688. return (this._tail - this._head & this._table.length - 1) >>> 0;
  40689. },
  40690. get$first(_) {
  40691. var _this = this,
  40692. t1 = _this._head;
  40693. if (t1 === _this._tail)
  40694. throw A.wrapException(A.IterableElementError_noElement());
  40695. t1 = _this._table[t1];
  40696. return t1 == null ? _this.$ti._precomputed1._as(t1) : t1;
  40697. },
  40698. get$last(_) {
  40699. var _this = this,
  40700. t1 = _this._head,
  40701. t2 = _this._tail;
  40702. if (t1 === t2)
  40703. throw A.wrapException(A.IterableElementError_noElement());
  40704. t1 = _this._table;
  40705. t1 = t1[(t2 - 1 & t1.length - 1) >>> 0];
  40706. return t1 == null ? _this.$ti._precomputed1._as(t1) : t1;
  40707. },
  40708. get$single(_) {
  40709. var t1, _this = this;
  40710. if (_this._head === _this._tail)
  40711. throw A.wrapException(A.IterableElementError_noElement());
  40712. if (_this.get$length(0) > 1)
  40713. throw A.wrapException(A.IterableElementError_tooMany());
  40714. t1 = _this._table[_this._head];
  40715. return t1 == null ? _this.$ti._precomputed1._as(t1) : t1;
  40716. },
  40717. elementAt$1(_, index) {
  40718. var t1, _this = this;
  40719. A.IndexError_check(index, _this.get$length(0), _this, null, null);
  40720. t1 = _this._table;
  40721. t1 = t1[(_this._head + index & t1.length - 1) >>> 0];
  40722. return t1 == null ? _this.$ti._precomputed1._as(t1) : t1;
  40723. },
  40724. toList$1$growable(_, growable) {
  40725. var t1, list, t2, t3, i, t4, _this = this,
  40726. mask = _this._table.length - 1,
  40727. $length = (_this._tail - _this._head & mask) >>> 0;
  40728. if ($length === 0) {
  40729. t1 = J.JSArray_JSArray$growable(0, _this.$ti._precomputed1);
  40730. return t1;
  40731. }
  40732. t1 = _this.$ti._precomputed1;
  40733. list = A.List_List$filled($length, _this.get$first(0), true, t1);
  40734. for (t2 = _this._table, t3 = _this._head, i = 0; i < $length; ++i) {
  40735. t4 = t2[(t3 + i & mask) >>> 0];
  40736. list[i] = t4 == null ? t1._as(t4) : t4;
  40737. }
  40738. return list;
  40739. },
  40740. toList$0(_) {
  40741. return this.toList$1$growable(0, true);
  40742. },
  40743. addAll$1(_, elements) {
  40744. var addCount, $length, t2, t3, t4, newTable, endSpace, preSpace, _i, _this = this,
  40745. t1 = _this.$ti;
  40746. if (t1._eval$1("List<1>")._is(elements)) {
  40747. addCount = elements.length;
  40748. $length = _this.get$length(0);
  40749. t2 = $length + addCount;
  40750. t3 = _this._table;
  40751. t4 = t3.length;
  40752. if (t2 >= t4) {
  40753. newTable = A.List_List$filled(A.ListQueue__nextPowerOf2(t2 + (t2 >>> 1)), null, false, t1._eval$1("1?"));
  40754. _this._tail = _this._collection$_writeToList$1(newTable);
  40755. _this._table = newTable;
  40756. _this._head = 0;
  40757. B.JSArray_methods.setRange$4(newTable, $length, t2, elements, 0);
  40758. _this._tail += addCount;
  40759. } else {
  40760. t1 = _this._tail;
  40761. endSpace = t4 - t1;
  40762. if (addCount < endSpace) {
  40763. B.JSArray_methods.setRange$4(t3, t1, t1 + addCount, elements, 0);
  40764. _this._tail += addCount;
  40765. } else {
  40766. preSpace = addCount - endSpace;
  40767. B.JSArray_methods.setRange$4(t3, t1, t1 + endSpace, elements, 0);
  40768. B.JSArray_methods.setRange$4(_this._table, 0, preSpace, elements, endSpace);
  40769. _this._tail = preSpace;
  40770. }
  40771. }
  40772. ++_this._modificationCount;
  40773. } else
  40774. for (t1 = elements.length, _i = 0; _i < elements.length; elements.length === t1 || (0, A.throwConcurrentModificationError)(elements), ++_i)
  40775. _this._add$1(elements[_i]);
  40776. },
  40777. clear$0(_) {
  40778. var t2, t3, _this = this,
  40779. i = _this._head,
  40780. t1 = _this._tail;
  40781. if (i !== t1) {
  40782. for (t2 = _this._table, t3 = t2.length - 1; i !== t1; i = (i + 1 & t3) >>> 0)
  40783. t2[i] = null;
  40784. _this._head = _this._tail = 0;
  40785. ++_this._modificationCount;
  40786. }
  40787. },
  40788. toString$0(_) {
  40789. return A.Iterable_iterableToFullString(this, "{", "}");
  40790. },
  40791. addFirst$1(value) {
  40792. var _this = this,
  40793. t1 = _this._head,
  40794. t2 = _this._table;
  40795. t1 = _this._head = (t1 - 1 & t2.length - 1) >>> 0;
  40796. t2[t1] = value;
  40797. if (t1 === _this._tail)
  40798. _this._grow$0();
  40799. ++_this._modificationCount;
  40800. },
  40801. removeFirst$0() {
  40802. var t2, result, _this = this,
  40803. t1 = _this._head;
  40804. if (t1 === _this._tail)
  40805. throw A.wrapException(A.IterableElementError_noElement());
  40806. ++_this._modificationCount;
  40807. t2 = _this._table;
  40808. result = t2[t1];
  40809. if (result == null)
  40810. result = _this.$ti._precomputed1._as(result);
  40811. t2[t1] = null;
  40812. _this._head = (t1 + 1 & t2.length - 1) >>> 0;
  40813. return result;
  40814. },
  40815. _add$1(element) {
  40816. var _this = this,
  40817. t1 = _this._table,
  40818. t2 = _this._tail;
  40819. t1[t2] = element;
  40820. t1 = (t2 + 1 & t1.length - 1) >>> 0;
  40821. _this._tail = t1;
  40822. if (_this._head === t1)
  40823. _this._grow$0();
  40824. ++_this._modificationCount;
  40825. },
  40826. _grow$0() {
  40827. var _this = this,
  40828. newTable = A.List_List$filled(_this._table.length * 2, null, false, _this.$ti._eval$1("1?")),
  40829. t1 = _this._table,
  40830. t2 = _this._head,
  40831. split = t1.length - t2;
  40832. B.JSArray_methods.setRange$4(newTable, 0, split, t1, t2);
  40833. B.JSArray_methods.setRange$4(newTable, split, split + _this._head, _this._table, 0);
  40834. _this._head = 0;
  40835. _this._tail = _this._table.length;
  40836. _this._table = newTable;
  40837. },
  40838. _collection$_writeToList$1(target) {
  40839. var $length, firstPartSize, _this = this,
  40840. t1 = _this._head,
  40841. t2 = _this._tail,
  40842. t3 = _this._table;
  40843. if (t1 <= t2) {
  40844. $length = t2 - t1;
  40845. B.JSArray_methods.setRange$4(target, 0, $length, t3, t1);
  40846. return $length;
  40847. } else {
  40848. firstPartSize = t3.length - t1;
  40849. B.JSArray_methods.setRange$4(target, 0, firstPartSize, t3, t1);
  40850. B.JSArray_methods.setRange$4(target, firstPartSize, firstPartSize + _this._tail, _this._table, 0);
  40851. return _this._tail + firstPartSize;
  40852. }
  40853. },
  40854. $isQueue: 1
  40855. };
  40856. A._ListQueueIterator.prototype = {
  40857. get$current(_) {
  40858. var t1 = this._collection$_current;
  40859. return t1 == null ? this.$ti._precomputed1._as(t1) : t1;
  40860. },
  40861. moveNext$0() {
  40862. var t2, _this = this,
  40863. t1 = _this._queue;
  40864. if (_this._modificationCount !== t1._modificationCount)
  40865. A.throwExpression(A.ConcurrentModificationError$(t1));
  40866. t2 = _this._collection$_position;
  40867. if (t2 === _this._collection$_end) {
  40868. _this._collection$_current = null;
  40869. return false;
  40870. }
  40871. t1 = t1._table;
  40872. _this._collection$_current = t1[t2];
  40873. _this._collection$_position = (t2 + 1 & t1.length - 1) >>> 0;
  40874. return true;
  40875. }
  40876. };
  40877. A.SetBase.prototype = {
  40878. get$isEmpty(_) {
  40879. return this.get$length(this) === 0;
  40880. },
  40881. get$isNotEmpty(_) {
  40882. return this.get$length(this) !== 0;
  40883. },
  40884. addAll$1(_, elements) {
  40885. var t1;
  40886. for (t1 = J.get$iterator$ax(elements); t1.moveNext$0();)
  40887. this.add$1(0, t1.get$current(t1));
  40888. },
  40889. removeAll$1(elements) {
  40890. var t1;
  40891. for (t1 = J.get$iterator$ax(elements); t1.moveNext$0();)
  40892. this.remove$1(0, t1.get$current(t1));
  40893. },
  40894. difference$1(other) {
  40895. var t1, t2, element,
  40896. result = this.toSet$0(0);
  40897. for (t1 = this.get$iterator(this), t2 = other._source; t1.moveNext$0();) {
  40898. element = t1.get$current(t1);
  40899. if (t2.contains$1(0, element))
  40900. result.remove$1(0, element);
  40901. }
  40902. return result;
  40903. },
  40904. toList$1$growable(_, growable) {
  40905. return A.List_List$of(this, true, A._instanceType(this)._precomputed1);
  40906. },
  40907. toList$0(_) {
  40908. return this.toList$1$growable(0, true);
  40909. },
  40910. map$1$1(_, f, $T) {
  40911. return new A.EfficientLengthMappedIterable(this, f, A._instanceType(this)._eval$1("@<1>")._bind$1($T)._eval$1("EfficientLengthMappedIterable<1,2>"));
  40912. },
  40913. get$single(_) {
  40914. var it, _this = this;
  40915. if (_this.get$length(_this) > 1)
  40916. throw A.wrapException(A.IterableElementError_tooMany());
  40917. it = _this.get$iterator(_this);
  40918. if (!it.moveNext$0())
  40919. throw A.wrapException(A.IterableElementError_noElement());
  40920. return it.get$current(it);
  40921. },
  40922. toString$0(_) {
  40923. return A.Iterable_iterableToFullString(this, "{", "}");
  40924. },
  40925. where$1(_, f) {
  40926. return new A.WhereIterable(this, f, A._instanceType(this)._eval$1("WhereIterable<1>"));
  40927. },
  40928. forEach$1(_, f) {
  40929. var t1;
  40930. for (t1 = this.get$iterator(this); t1.moveNext$0();)
  40931. f.call$1(t1.get$current(t1));
  40932. },
  40933. every$1(_, f) {
  40934. var t1;
  40935. for (t1 = this.get$iterator(this); t1.moveNext$0();)
  40936. if (!f.call$1(t1.get$current(t1)))
  40937. return false;
  40938. return true;
  40939. },
  40940. any$1(_, test) {
  40941. var t1;
  40942. for (t1 = this.get$iterator(this); t1.moveNext$0();)
  40943. if (test.call$1(t1.get$current(t1)))
  40944. return true;
  40945. return false;
  40946. },
  40947. take$1(_, n) {
  40948. return A.TakeIterable_TakeIterable(this, n, A._instanceType(this)._precomputed1);
  40949. },
  40950. skip$1(_, n) {
  40951. return A.SkipIterable_SkipIterable(this, n, A._instanceType(this)._precomputed1);
  40952. },
  40953. get$first(_) {
  40954. var it = this.get$iterator(this);
  40955. if (!it.moveNext$0())
  40956. throw A.wrapException(A.IterableElementError_noElement());
  40957. return it.get$current(it);
  40958. },
  40959. get$last(_) {
  40960. var result,
  40961. it = this.get$iterator(this);
  40962. if (!it.moveNext$0())
  40963. throw A.wrapException(A.IterableElementError_noElement());
  40964. do
  40965. result = it.get$current(it);
  40966. while (it.moveNext$0());
  40967. return result;
  40968. },
  40969. elementAt$1(_, index) {
  40970. var iterator, skipCount;
  40971. A.RangeError_checkNotNegative(index, "index");
  40972. iterator = this.get$iterator(this);
  40973. for (skipCount = index; iterator.moveNext$0();) {
  40974. if (skipCount === 0)
  40975. return iterator.get$current(iterator);
  40976. --skipCount;
  40977. }
  40978. throw A.wrapException(A.IndexError$withLength(index, index - skipCount, this, null, "index"));
  40979. },
  40980. $isEfficientLengthIterable: 1,
  40981. $isIterable: 1,
  40982. $isSet: 1
  40983. };
  40984. A._SetBase.prototype = {
  40985. difference$1(other) {
  40986. var t1, t2, t3, element, _this = this,
  40987. result = _this._newSet$0();
  40988. for (t1 = A._LinkedHashSetIterator$(_this, _this._modifications, A._instanceType(_this)._precomputed1), t2 = other._source, t3 = t1.$ti._precomputed1; t1.moveNext$0();) {
  40989. element = t1._collection$_current;
  40990. if (element == null)
  40991. element = t3._as(element);
  40992. if (!t2.contains$1(0, element))
  40993. result.add$1(0, element);
  40994. }
  40995. return result;
  40996. },
  40997. intersection$1(other) {
  40998. var t1, t2, t3, element, _this = this,
  40999. result = _this._newSet$0();
  41000. for (t1 = A._LinkedHashSetIterator$(_this, _this._modifications, A._instanceType(_this)._precomputed1), t2 = other._baseMap, t3 = t1.$ti._precomputed1; t1.moveNext$0();) {
  41001. element = t1._collection$_current;
  41002. if (element == null)
  41003. element = t3._as(element);
  41004. if (t2.containsKey$1(element))
  41005. result.add$1(0, element);
  41006. }
  41007. return result;
  41008. },
  41009. toSet$0(_) {
  41010. var t1 = this._newSet$0();
  41011. t1.addAll$1(0, this);
  41012. return t1;
  41013. }
  41014. };
  41015. A._UnmodifiableSetMixin.prototype = {
  41016. add$1(_, value) {
  41017. return A._UnmodifiableSetMixin__throwUnmodifiable();
  41018. },
  41019. addAll$1(_, elements) {
  41020. return A._UnmodifiableSetMixin__throwUnmodifiable();
  41021. },
  41022. remove$1(_, value) {
  41023. return A._UnmodifiableSetMixin__throwUnmodifiable();
  41024. }
  41025. };
  41026. A.UnmodifiableSetView.prototype = {
  41027. contains$1(_, element) {
  41028. return this._collection$_source.contains$1(0, element);
  41029. },
  41030. get$length(_) {
  41031. return this._collection$_source._collection$_length;
  41032. },
  41033. get$iterator(_) {
  41034. var t1 = this._collection$_source;
  41035. return A._LinkedHashSetIterator$(t1, t1._modifications, A._instanceType(t1)._precomputed1);
  41036. },
  41037. toSet$0(_) {
  41038. return this._collection$_source.toSet$0(0);
  41039. }
  41040. };
  41041. A._UnmodifiableMapView_MapView__UnmodifiableMapMixin.prototype = {};
  41042. A._UnmodifiableSetView_SetBase__UnmodifiableSetMixin.prototype = {};
  41043. A._JsonMap.prototype = {
  41044. $index(_, key) {
  41045. var result,
  41046. t1 = this._processed;
  41047. if (t1 == null)
  41048. return this._data.$index(0, key);
  41049. else if (typeof key != "string")
  41050. return null;
  41051. else {
  41052. result = t1[key];
  41053. return typeof result == "undefined" ? this._process$1(key) : result;
  41054. }
  41055. },
  41056. get$length(_) {
  41057. return this._processed == null ? this._data.__js_helper$_length : this._convert$_computeKeys$0().length;
  41058. },
  41059. get$isEmpty(_) {
  41060. return this.get$length(0) === 0;
  41061. },
  41062. get$isNotEmpty(_) {
  41063. return this.get$length(0) > 0;
  41064. },
  41065. get$keys(_) {
  41066. var t1;
  41067. if (this._processed == null) {
  41068. t1 = this._data;
  41069. return new A.LinkedHashMapKeyIterable(t1, A._instanceType(t1)._eval$1("LinkedHashMapKeyIterable<1>"));
  41070. }
  41071. return new A._JsonMapKeyIterable(this);
  41072. },
  41073. get$values(_) {
  41074. var _this = this;
  41075. if (_this._processed == null)
  41076. return _this._data.get$values(0);
  41077. return A.MappedIterable_MappedIterable(_this._convert$_computeKeys$0(), new A._JsonMap_values_closure(_this), type$.String, type$.dynamic);
  41078. },
  41079. $indexSet(_, key, value) {
  41080. var processed, original, _this = this;
  41081. if (_this._processed == null)
  41082. _this._data.$indexSet(0, key, value);
  41083. else if (_this.containsKey$1(key)) {
  41084. processed = _this._processed;
  41085. processed[key] = value;
  41086. original = _this._original;
  41087. if (original == null ? processed != null : original !== processed)
  41088. original[key] = null;
  41089. } else
  41090. _this._upgrade$0().$indexSet(0, key, value);
  41091. },
  41092. addAll$1(_, other) {
  41093. other.forEach$1(0, new A._JsonMap_addAll_closure(this));
  41094. },
  41095. containsKey$1(key) {
  41096. if (this._processed == null)
  41097. return this._data.containsKey$1(key);
  41098. if (typeof key != "string")
  41099. return false;
  41100. return Object.prototype.hasOwnProperty.call(this._original, key);
  41101. },
  41102. remove$1(_, key) {
  41103. if (this._processed != null && !this.containsKey$1(key))
  41104. return null;
  41105. return this._upgrade$0().remove$1(0, key);
  41106. },
  41107. forEach$1(_, f) {
  41108. var keys, i, key, value, _this = this;
  41109. if (_this._processed == null)
  41110. return _this._data.forEach$1(0, f);
  41111. keys = _this._convert$_computeKeys$0();
  41112. for (i = 0; i < keys.length; ++i) {
  41113. key = keys[i];
  41114. value = _this._processed[key];
  41115. if (typeof value == "undefined") {
  41116. value = A._convertJsonToDartLazy(_this._original[key]);
  41117. _this._processed[key] = value;
  41118. }
  41119. f.call$2(key, value);
  41120. if (keys !== _this._data)
  41121. throw A.wrapException(A.ConcurrentModificationError$(_this));
  41122. }
  41123. },
  41124. _convert$_computeKeys$0() {
  41125. var keys = this._data;
  41126. if (keys == null)
  41127. keys = this._data = A._setArrayType(Object.keys(this._original), type$.JSArray_String);
  41128. return keys;
  41129. },
  41130. _upgrade$0() {
  41131. var result, keys, i, t1, key, _this = this;
  41132. if (_this._processed == null)
  41133. return _this._data;
  41134. result = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.dynamic);
  41135. keys = _this._convert$_computeKeys$0();
  41136. for (i = 0; t1 = keys.length, i < t1; ++i) {
  41137. key = keys[i];
  41138. result.$indexSet(0, key, _this.$index(0, key));
  41139. }
  41140. if (t1 === 0)
  41141. keys.push("");
  41142. else
  41143. B.JSArray_methods.clear$0(keys);
  41144. _this._original = _this._processed = null;
  41145. return _this._data = result;
  41146. },
  41147. _process$1(key) {
  41148. var result;
  41149. if (!Object.prototype.hasOwnProperty.call(this._original, key))
  41150. return null;
  41151. result = A._convertJsonToDartLazy(this._original[key]);
  41152. return this._processed[key] = result;
  41153. }
  41154. };
  41155. A._JsonMap_values_closure.prototype = {
  41156. call$1(each) {
  41157. return this.$this.$index(0, each);
  41158. },
  41159. $signature: 236
  41160. };
  41161. A._JsonMap_addAll_closure.prototype = {
  41162. call$2(key, value) {
  41163. this.$this.$indexSet(0, key, value);
  41164. },
  41165. $signature: 111
  41166. };
  41167. A._JsonMapKeyIterable.prototype = {
  41168. get$length(_) {
  41169. return this._convert$_parent.get$length(0);
  41170. },
  41171. elementAt$1(_, index) {
  41172. var t1 = this._convert$_parent;
  41173. return t1._processed == null ? t1.get$keys(0).elementAt$1(0, index) : t1._convert$_computeKeys$0()[index];
  41174. },
  41175. get$iterator(_) {
  41176. var t1 = this._convert$_parent;
  41177. if (t1._processed == null) {
  41178. t1 = t1.get$keys(0);
  41179. t1 = t1.get$iterator(t1);
  41180. } else {
  41181. t1 = t1._convert$_computeKeys$0();
  41182. t1 = new J.ArrayIterator(t1, t1.length, A._arrayInstanceType(t1)._eval$1("ArrayIterator<1>"));
  41183. }
  41184. return t1;
  41185. },
  41186. contains$1(_, key) {
  41187. return this._convert$_parent.containsKey$1(key);
  41188. }
  41189. };
  41190. A._Utf8Decoder__decoder_closure.prototype = {
  41191. call$0() {
  41192. var t1, exception;
  41193. try {
  41194. t1 = new TextDecoder("utf-8", {fatal: true});
  41195. return t1;
  41196. } catch (exception) {
  41197. }
  41198. return null;
  41199. },
  41200. $signature: 65
  41201. };
  41202. A._Utf8Decoder__decoderNonfatal_closure.prototype = {
  41203. call$0() {
  41204. var t1, exception;
  41205. try {
  41206. t1 = new TextDecoder("utf-8", {fatal: false});
  41207. return t1;
  41208. } catch (exception) {
  41209. }
  41210. return null;
  41211. },
  41212. $signature: 65
  41213. };
  41214. A.AsciiCodec.prototype = {
  41215. encode$1(source) {
  41216. return B.AsciiEncoder_127.convert$1(source);
  41217. }
  41218. };
  41219. A._UnicodeSubsetEncoder.prototype = {
  41220. convert$1(string) {
  41221. var t1, i, codeUnit,
  41222. end = A.RangeError_checkValidRange(0, null, string.length),
  41223. result = new Uint8Array(end);
  41224. for (t1 = ~this._subsetMask, i = 0; i < end; ++i) {
  41225. codeUnit = string.charCodeAt(i);
  41226. if ((codeUnit & t1) !== 0)
  41227. throw A.wrapException(A.ArgumentError$value(string, "string", "Contains invalid characters."));
  41228. result[i] = codeUnit;
  41229. }
  41230. return result;
  41231. }
  41232. };
  41233. A.AsciiEncoder.prototype = {};
  41234. A.Base64Codec.prototype = {
  41235. normalize$3(source, start, end) {
  41236. var inverseAlphabet, i, sliceStart, buffer, firstPadding, firstPaddingSourceIndex, paddingCount, i0, char, i1, digit1, digit2, char0, value, t1, t2, endLength, $length,
  41237. _s31_ = "Invalid base64 encoding length ";
  41238. end = A.RangeError_checkValidRange(start, end, source.length);
  41239. inverseAlphabet = $.$get$_Base64Decoder__inverseAlphabet();
  41240. for (i = start, sliceStart = i, buffer = null, firstPadding = -1, firstPaddingSourceIndex = -1, paddingCount = 0; i < end; i = i0) {
  41241. i0 = i + 1;
  41242. char = source.charCodeAt(i);
  41243. if (char === 37) {
  41244. i1 = i0 + 2;
  41245. if (i1 <= end) {
  41246. digit1 = A.hexDigitValue(source.charCodeAt(i0));
  41247. digit2 = A.hexDigitValue(source.charCodeAt(i0 + 1));
  41248. char0 = digit1 * 16 + digit2 - (digit2 & 256);
  41249. if (char0 === 37)
  41250. char0 = -1;
  41251. i0 = i1;
  41252. } else
  41253. char0 = -1;
  41254. } else
  41255. char0 = char;
  41256. if (0 <= char0 && char0 <= 127) {
  41257. value = inverseAlphabet[char0];
  41258. if (value >= 0) {
  41259. char0 = string$.ABCDEF.charCodeAt(value);
  41260. if (char0 === char)
  41261. continue;
  41262. char = char0;
  41263. } else {
  41264. if (value === -1) {
  41265. if (firstPadding < 0) {
  41266. t1 = buffer == null ? null : buffer._contents.length;
  41267. if (t1 == null)
  41268. t1 = 0;
  41269. firstPadding = t1 + (i - sliceStart);
  41270. firstPaddingSourceIndex = i;
  41271. }
  41272. ++paddingCount;
  41273. if (char === 61)
  41274. continue;
  41275. }
  41276. char = char0;
  41277. }
  41278. if (value !== -2) {
  41279. if (buffer == null) {
  41280. buffer = new A.StringBuffer("");
  41281. t1 = buffer;
  41282. } else
  41283. t1 = buffer;
  41284. t1._contents += B.JSString_methods.substring$2(source, sliceStart, i);
  41285. t2 = A.Primitives_stringFromCharCode(char);
  41286. t1._contents += t2;
  41287. sliceStart = i0;
  41288. continue;
  41289. }
  41290. }
  41291. throw A.wrapException(A.FormatException$("Invalid base64 data", source, i));
  41292. }
  41293. if (buffer != null) {
  41294. t1 = B.JSString_methods.substring$2(source, sliceStart, end);
  41295. t1 = buffer._contents += t1;
  41296. t2 = t1.length;
  41297. if (firstPadding >= 0)
  41298. A.Base64Codec__checkPadding(source, firstPaddingSourceIndex, end, firstPadding, paddingCount, t2);
  41299. else {
  41300. endLength = B.JSInt_methods.$mod(t2 - 1, 4) + 1;
  41301. if (endLength === 1)
  41302. throw A.wrapException(A.FormatException$(_s31_, source, end));
  41303. for (; endLength < 4;) {
  41304. t1 += "=";
  41305. buffer._contents = t1;
  41306. ++endLength;
  41307. }
  41308. }
  41309. t1 = buffer._contents;
  41310. return B.JSString_methods.replaceRange$3(source, start, end, t1.charCodeAt(0) == 0 ? t1 : t1);
  41311. }
  41312. $length = end - start;
  41313. if (firstPadding >= 0)
  41314. A.Base64Codec__checkPadding(source, firstPaddingSourceIndex, end, firstPadding, paddingCount, $length);
  41315. else {
  41316. endLength = B.JSInt_methods.$mod($length, 4);
  41317. if (endLength === 1)
  41318. throw A.wrapException(A.FormatException$(_s31_, source, end));
  41319. if (endLength > 1)
  41320. source = B.JSString_methods.replaceRange$3(source, end, end, endLength === 2 ? "==" : "=");
  41321. }
  41322. return source;
  41323. }
  41324. };
  41325. A.Base64Encoder.prototype = {
  41326. startChunkedConversion$1(sink) {
  41327. return new A._Utf8Base64EncoderSink(new A._Utf8StringSinkAdapter(new A._Utf8Decoder(false), sink, sink._stringSink), new A._Base64Encoder(string$.ABCDEF));
  41328. }
  41329. };
  41330. A._Base64Encoder.prototype = {
  41331. createBuffer$1(bufferLength) {
  41332. return new Uint8Array(bufferLength);
  41333. },
  41334. encode$4(bytes, start, end, isLast) {
  41335. var output, _this = this,
  41336. byteCount = (_this._convert$_state & 3) + (end - start),
  41337. fullChunks = B.JSInt_methods._tdivFast$1(byteCount, 3),
  41338. bufferLength = fullChunks * 4;
  41339. if (isLast && byteCount - fullChunks * 3 > 0)
  41340. bufferLength += 4;
  41341. output = _this.createBuffer$1(bufferLength);
  41342. _this._convert$_state = A._Base64Encoder_encodeChunk(_this._alphabet, bytes, start, end, isLast, output, 0, _this._convert$_state);
  41343. if (bufferLength > 0)
  41344. return output;
  41345. return null;
  41346. }
  41347. };
  41348. A._Base64EncoderSink.prototype = {};
  41349. A._Utf8Base64EncoderSink.prototype = {
  41350. _convert$_add$4(source, start, end, isLast) {
  41351. var buffer = this._encoder.encode$4(source, start, end, isLast);
  41352. if (buffer != null)
  41353. this._sink.addSlice$4(buffer, 0, buffer.length, isLast);
  41354. }
  41355. };
  41356. A.ByteConversionSink.prototype = {};
  41357. A.Codec.prototype = {};
  41358. A.Converter.prototype = {};
  41359. A.Encoding.prototype = {};
  41360. A.JsonUnsupportedObjectError.prototype = {
  41361. toString$0(_) {
  41362. var safeString = A.Error_safeToString(this.unsupportedObject);
  41363. return (this.cause != null ? "Converting object to an encodable object failed:" : "Converting object did not return an encodable object:") + " " + safeString;
  41364. }
  41365. };
  41366. A.JsonCyclicError.prototype = {
  41367. toString$0(_) {
  41368. return "Cyclic error in JSON stringify";
  41369. }
  41370. };
  41371. A.JsonCodec.prototype = {
  41372. decode$1(source) {
  41373. var t1 = A._parseJson(source, this.get$decoder()._reviver);
  41374. return t1;
  41375. },
  41376. encode$2$toEncodable(value, toEncodable) {
  41377. var t1 = A._JsonStringStringifier_stringify(value, this.get$encoder()._toEncodable, null);
  41378. return t1;
  41379. },
  41380. get$encoder() {
  41381. return B.JsonEncoder_null;
  41382. },
  41383. get$decoder() {
  41384. return B.JsonDecoder_null;
  41385. }
  41386. };
  41387. A.JsonEncoder.prototype = {};
  41388. A.JsonDecoder.prototype = {};
  41389. A._JsonStringifier.prototype = {
  41390. writeStringContent$1(s) {
  41391. var offset, i, charCode, t1, t2, _this = this,
  41392. $length = s.length;
  41393. for (offset = 0, i = 0; i < $length; ++i) {
  41394. charCode = s.charCodeAt(i);
  41395. if (charCode > 92) {
  41396. if (charCode >= 55296) {
  41397. t1 = charCode & 64512;
  41398. if (t1 === 55296) {
  41399. t2 = i + 1;
  41400. t2 = !(t2 < $length && (s.charCodeAt(t2) & 64512) === 56320);
  41401. } else
  41402. t2 = false;
  41403. if (!t2)
  41404. if (t1 === 56320) {
  41405. t1 = i - 1;
  41406. t1 = !(t1 >= 0 && (s.charCodeAt(t1) & 64512) === 55296);
  41407. } else
  41408. t1 = false;
  41409. else
  41410. t1 = true;
  41411. if (t1) {
  41412. if (i > offset)
  41413. _this.writeStringSlice$3(s, offset, i);
  41414. offset = i + 1;
  41415. _this.writeCharCode$1(92);
  41416. _this.writeCharCode$1(117);
  41417. _this.writeCharCode$1(100);
  41418. t1 = charCode >>> 8 & 15;
  41419. _this.writeCharCode$1(t1 < 10 ? 48 + t1 : 87 + t1);
  41420. t1 = charCode >>> 4 & 15;
  41421. _this.writeCharCode$1(t1 < 10 ? 48 + t1 : 87 + t1);
  41422. t1 = charCode & 15;
  41423. _this.writeCharCode$1(t1 < 10 ? 48 + t1 : 87 + t1);
  41424. }
  41425. }
  41426. continue;
  41427. }
  41428. if (charCode < 32) {
  41429. if (i > offset)
  41430. _this.writeStringSlice$3(s, offset, i);
  41431. offset = i + 1;
  41432. _this.writeCharCode$1(92);
  41433. switch (charCode) {
  41434. case 8:
  41435. _this.writeCharCode$1(98);
  41436. break;
  41437. case 9:
  41438. _this.writeCharCode$1(116);
  41439. break;
  41440. case 10:
  41441. _this.writeCharCode$1(110);
  41442. break;
  41443. case 12:
  41444. _this.writeCharCode$1(102);
  41445. break;
  41446. case 13:
  41447. _this.writeCharCode$1(114);
  41448. break;
  41449. default:
  41450. _this.writeCharCode$1(117);
  41451. _this.writeCharCode$1(48);
  41452. _this.writeCharCode$1(48);
  41453. t1 = charCode >>> 4 & 15;
  41454. _this.writeCharCode$1(t1 < 10 ? 48 + t1 : 87 + t1);
  41455. t1 = charCode & 15;
  41456. _this.writeCharCode$1(t1 < 10 ? 48 + t1 : 87 + t1);
  41457. break;
  41458. }
  41459. } else if (charCode === 34 || charCode === 92) {
  41460. if (i > offset)
  41461. _this.writeStringSlice$3(s, offset, i);
  41462. offset = i + 1;
  41463. _this.writeCharCode$1(92);
  41464. _this.writeCharCode$1(charCode);
  41465. }
  41466. }
  41467. if (offset === 0)
  41468. _this.writeString$1(s);
  41469. else if (offset < $length)
  41470. _this.writeStringSlice$3(s, offset, $length);
  41471. },
  41472. _checkCycle$1(object) {
  41473. var t1, t2, i, t3;
  41474. for (t1 = this._seen, t2 = t1.length, i = 0; i < t2; ++i) {
  41475. t3 = t1[i];
  41476. if (object == null ? t3 == null : object === t3)
  41477. throw A.wrapException(new A.JsonCyclicError(object, null));
  41478. }
  41479. t1.push(object);
  41480. },
  41481. writeObject$1(object) {
  41482. var customJson, e, t1, exception, _this = this;
  41483. if (_this.writeJsonValue$1(object))
  41484. return;
  41485. _this._checkCycle$1(object);
  41486. try {
  41487. customJson = _this._toEncodable.call$1(object);
  41488. if (!_this.writeJsonValue$1(customJson)) {
  41489. t1 = A.JsonUnsupportedObjectError$(object, null, _this.get$_partialResult());
  41490. throw A.wrapException(t1);
  41491. }
  41492. _this._seen.pop();
  41493. } catch (exception) {
  41494. e = A.unwrapException(exception);
  41495. t1 = A.JsonUnsupportedObjectError$(object, e, _this.get$_partialResult());
  41496. throw A.wrapException(t1);
  41497. }
  41498. },
  41499. writeJsonValue$1(object) {
  41500. var success, _this = this;
  41501. if (typeof object == "number") {
  41502. if (!isFinite(object))
  41503. return false;
  41504. _this.writeNumber$1(object);
  41505. return true;
  41506. } else if (object === true) {
  41507. _this.writeString$1("true");
  41508. return true;
  41509. } else if (object === false) {
  41510. _this.writeString$1("false");
  41511. return true;
  41512. } else if (object == null) {
  41513. _this.writeString$1("null");
  41514. return true;
  41515. } else if (typeof object == "string") {
  41516. _this.writeString$1('"');
  41517. _this.writeStringContent$1(object);
  41518. _this.writeString$1('"');
  41519. return true;
  41520. } else if (type$.List_dynamic._is(object)) {
  41521. _this._checkCycle$1(object);
  41522. _this.writeList$1(object);
  41523. _this._seen.pop();
  41524. return true;
  41525. } else if (type$.Map_dynamic_dynamic._is(object)) {
  41526. _this._checkCycle$1(object);
  41527. success = _this.writeMap$1(object);
  41528. _this._seen.pop();
  41529. return success;
  41530. } else
  41531. return false;
  41532. },
  41533. writeList$1(list) {
  41534. var t1, i, _this = this;
  41535. _this.writeString$1("[");
  41536. t1 = J.getInterceptor$asx(list);
  41537. if (t1.get$isNotEmpty(list)) {
  41538. _this.writeObject$1(t1.$index(list, 0));
  41539. for (i = 1; i < t1.get$length(list); ++i) {
  41540. _this.writeString$1(",");
  41541. _this.writeObject$1(t1.$index(list, i));
  41542. }
  41543. }
  41544. _this.writeString$1("]");
  41545. },
  41546. writeMap$1(map) {
  41547. var t1, keyValueList, i, separator, _this = this, _box_0 = {};
  41548. if (map.get$isEmpty(map)) {
  41549. _this.writeString$1("{}");
  41550. return true;
  41551. }
  41552. t1 = map.get$length(map) * 2;
  41553. keyValueList = A.List_List$filled(t1, null, false, type$.nullable_Object);
  41554. i = _box_0.i = 0;
  41555. _box_0.allStringKeys = true;
  41556. map.forEach$1(0, new A._JsonStringifier_writeMap_closure(_box_0, keyValueList));
  41557. if (!_box_0.allStringKeys)
  41558. return false;
  41559. _this.writeString$1("{");
  41560. for (separator = '"'; i < t1; i += 2, separator = ',"') {
  41561. _this.writeString$1(separator);
  41562. _this.writeStringContent$1(A._asString(keyValueList[i]));
  41563. _this.writeString$1('":');
  41564. _this.writeObject$1(keyValueList[i + 1]);
  41565. }
  41566. _this.writeString$1("}");
  41567. return true;
  41568. }
  41569. };
  41570. A._JsonStringifier_writeMap_closure.prototype = {
  41571. call$2(key, value) {
  41572. var t1, t2, t3, i;
  41573. if (typeof key != "string")
  41574. this._box_0.allStringKeys = false;
  41575. t1 = this.keyValueList;
  41576. t2 = this._box_0;
  41577. t3 = t2.i;
  41578. i = t2.i = t3 + 1;
  41579. t1[t3] = key;
  41580. t2.i = i + 1;
  41581. t1[i] = value;
  41582. },
  41583. $signature: 213
  41584. };
  41585. A._JsonStringStringifier.prototype = {
  41586. get$_partialResult() {
  41587. var t1 = this._sink._contents;
  41588. return t1.charCodeAt(0) == 0 ? t1 : t1;
  41589. },
  41590. writeNumber$1(number) {
  41591. var t1 = this._sink,
  41592. t2 = B.JSNumber_methods.toString$0(number);
  41593. t1._contents += t2;
  41594. },
  41595. writeString$1(string) {
  41596. this._sink._contents += string;
  41597. },
  41598. writeStringSlice$3(string, start, end) {
  41599. this._sink._contents += B.JSString_methods.substring$2(string, start, end);
  41600. },
  41601. writeCharCode$1(charCode) {
  41602. var t1 = this._sink,
  41603. t2 = A.Primitives_stringFromCharCode(charCode);
  41604. t1._contents += t2;
  41605. }
  41606. };
  41607. A.StringConversionSink.prototype = {};
  41608. A._StringSinkConversionSink.prototype = {
  41609. close$0(_) {
  41610. }
  41611. };
  41612. A._StringCallbackSink.prototype = {
  41613. close$0(_) {
  41614. var t1 = this._stringSink,
  41615. t2 = t1._contents;
  41616. t1._contents = "";
  41617. this._convert$_callback.call$1(t2.charCodeAt(0) == 0 ? t2 : t2);
  41618. },
  41619. asUtf8Sink$1(allowMalformed) {
  41620. return new A._Utf8StringSinkAdapter(new A._Utf8Decoder(allowMalformed), this, this._stringSink);
  41621. }
  41622. };
  41623. A._Utf8StringSinkAdapter.prototype = {
  41624. close$0(_) {
  41625. this._decoder.flush$1(this._stringSink);
  41626. this._sink.close$0(0);
  41627. },
  41628. add$1(_, chunk) {
  41629. this.addSlice$4(chunk, 0, J.get$length$asx(chunk), false);
  41630. },
  41631. addSlice$4(codeUnits, startIndex, endIndex, isLast) {
  41632. var t1 = this._stringSink,
  41633. t2 = this._decoder._convertGeneral$4(codeUnits, startIndex, endIndex, false);
  41634. t1._contents += t2;
  41635. if (isLast)
  41636. this.close$0(0);
  41637. }
  41638. };
  41639. A.Utf8Codec.prototype = {
  41640. encode$1(string) {
  41641. return B.C_Utf8Encoder.convert$1(string);
  41642. }
  41643. };
  41644. A.Utf8Encoder.prototype = {
  41645. convert$1(string) {
  41646. var t1, encoder,
  41647. end = A.RangeError_checkValidRange(0, null, string.length);
  41648. if (end === 0)
  41649. return new Uint8Array(0);
  41650. t1 = new Uint8Array(end * 3);
  41651. encoder = new A._Utf8Encoder(t1);
  41652. if (encoder._fillBuffer$3(string, 0, end) !== end)
  41653. encoder._writeReplacementCharacter$0();
  41654. return B.NativeUint8List_methods.sublist$2(t1, 0, encoder._bufferIndex);
  41655. }
  41656. };
  41657. A._Utf8Encoder.prototype = {
  41658. _writeReplacementCharacter$0() {
  41659. var _this = this,
  41660. t1 = _this._buffer,
  41661. t2 = _this._bufferIndex,
  41662. t3 = _this._bufferIndex = t2 + 1;
  41663. t1[t2] = 239;
  41664. t2 = _this._bufferIndex = t3 + 1;
  41665. t1[t3] = 191;
  41666. _this._bufferIndex = t2 + 1;
  41667. t1[t2] = 189;
  41668. },
  41669. _writeSurrogate$2(leadingSurrogate, nextCodeUnit) {
  41670. var rune, t1, t2, t3, _this = this;
  41671. if ((nextCodeUnit & 64512) === 56320) {
  41672. rune = 65536 + ((leadingSurrogate & 1023) << 10) | nextCodeUnit & 1023;
  41673. t1 = _this._buffer;
  41674. t2 = _this._bufferIndex;
  41675. t3 = _this._bufferIndex = t2 + 1;
  41676. t1[t2] = rune >>> 18 | 240;
  41677. t2 = _this._bufferIndex = t3 + 1;
  41678. t1[t3] = rune >>> 12 & 63 | 128;
  41679. t3 = _this._bufferIndex = t2 + 1;
  41680. t1[t2] = rune >>> 6 & 63 | 128;
  41681. _this._bufferIndex = t3 + 1;
  41682. t1[t3] = rune & 63 | 128;
  41683. return true;
  41684. } else {
  41685. _this._writeReplacementCharacter$0();
  41686. return false;
  41687. }
  41688. },
  41689. _fillBuffer$3(str, start, end) {
  41690. var t1, t2, stringIndex, codeUnit, t3, stringIndex0, t4, _this = this;
  41691. if (start !== end && (str.charCodeAt(end - 1) & 64512) === 55296)
  41692. --end;
  41693. for (t1 = _this._buffer, t2 = t1.length, stringIndex = start; stringIndex < end; ++stringIndex) {
  41694. codeUnit = str.charCodeAt(stringIndex);
  41695. if (codeUnit <= 127) {
  41696. t3 = _this._bufferIndex;
  41697. if (t3 >= t2)
  41698. break;
  41699. _this._bufferIndex = t3 + 1;
  41700. t1[t3] = codeUnit;
  41701. } else {
  41702. t3 = codeUnit & 64512;
  41703. if (t3 === 55296) {
  41704. if (_this._bufferIndex + 4 > t2)
  41705. break;
  41706. stringIndex0 = stringIndex + 1;
  41707. if (_this._writeSurrogate$2(codeUnit, str.charCodeAt(stringIndex0)))
  41708. stringIndex = stringIndex0;
  41709. } else if (t3 === 56320) {
  41710. if (_this._bufferIndex + 3 > t2)
  41711. break;
  41712. _this._writeReplacementCharacter$0();
  41713. } else if (codeUnit <= 2047) {
  41714. t3 = _this._bufferIndex;
  41715. t4 = t3 + 1;
  41716. if (t4 >= t2)
  41717. break;
  41718. _this._bufferIndex = t4;
  41719. t1[t3] = codeUnit >>> 6 | 192;
  41720. _this._bufferIndex = t4 + 1;
  41721. t1[t4] = codeUnit & 63 | 128;
  41722. } else {
  41723. t3 = _this._bufferIndex;
  41724. if (t3 + 2 >= t2)
  41725. break;
  41726. t4 = _this._bufferIndex = t3 + 1;
  41727. t1[t3] = codeUnit >>> 12 | 224;
  41728. t3 = _this._bufferIndex = t4 + 1;
  41729. t1[t4] = codeUnit >>> 6 & 63 | 128;
  41730. _this._bufferIndex = t3 + 1;
  41731. t1[t3] = codeUnit & 63 | 128;
  41732. }
  41733. }
  41734. }
  41735. return stringIndex;
  41736. }
  41737. };
  41738. A.Utf8Decoder.prototype = {
  41739. convert$1(codeUnits) {
  41740. return new A._Utf8Decoder(this._allowMalformed)._convertGeneral$4(codeUnits, 0, null, true);
  41741. }
  41742. };
  41743. A._Utf8Decoder.prototype = {
  41744. _convertGeneral$4(codeUnits, start, maybeEnd, single) {
  41745. var casted, bytes, errorOffset, t1, result, message, _this = this,
  41746. end = A.RangeError_checkValidRange(start, maybeEnd, J.get$length$asx(codeUnits));
  41747. if (start === end)
  41748. return "";
  41749. if (codeUnits instanceof Uint8Array) {
  41750. casted = codeUnits;
  41751. bytes = casted;
  41752. errorOffset = 0;
  41753. } else {
  41754. bytes = A._Utf8Decoder__makeNativeUint8List(codeUnits, start, end);
  41755. end -= start;
  41756. errorOffset = start;
  41757. start = 0;
  41758. }
  41759. if (single && end - start >= 15) {
  41760. t1 = _this.allowMalformed;
  41761. result = A._Utf8Decoder__convertInterceptedUint8List(t1, bytes, start, end);
  41762. if (result != null) {
  41763. if (!t1)
  41764. return result;
  41765. if (result.indexOf("\ufffd") < 0)
  41766. return result;
  41767. }
  41768. }
  41769. result = _this._decodeRecursive$4(bytes, start, end, single);
  41770. t1 = _this._convert$_state;
  41771. if ((t1 & 1) !== 0) {
  41772. message = A._Utf8Decoder_errorDescription(t1);
  41773. _this._convert$_state = 0;
  41774. throw A.wrapException(A.FormatException$(message, codeUnits, errorOffset + _this._charOrIndex));
  41775. }
  41776. return result;
  41777. },
  41778. _decodeRecursive$4(bytes, start, end, single) {
  41779. var mid, s1, _this = this;
  41780. if (end - start > 1000) {
  41781. mid = B.JSInt_methods._tdivFast$1(start + end, 2);
  41782. s1 = _this._decodeRecursive$4(bytes, start, mid, false);
  41783. if ((_this._convert$_state & 1) !== 0)
  41784. return s1;
  41785. return s1 + _this._decodeRecursive$4(bytes, mid, end, single);
  41786. }
  41787. return _this.decodeGeneral$4(bytes, start, end, single);
  41788. },
  41789. flush$1(sink) {
  41790. var t1,
  41791. state = this._convert$_state;
  41792. this._convert$_state = 0;
  41793. if (state <= 32)
  41794. return;
  41795. if (this.allowMalformed) {
  41796. t1 = A.Primitives_stringFromCharCode(65533);
  41797. sink._contents += t1;
  41798. } else
  41799. throw A.wrapException(A.FormatException$(A._Utf8Decoder_errorDescription(77), null, null));
  41800. },
  41801. decodeGeneral$4(bytes, start, end, single) {
  41802. var t1, type, t2, i0, markEnd, i1, m, _this = this, _65533 = 65533,
  41803. state = _this._convert$_state,
  41804. char = _this._charOrIndex,
  41805. buffer = new A.StringBuffer(""),
  41806. i = start + 1,
  41807. byte = bytes[start];
  41808. $label0$0:
  41809. for (t1 = _this.allowMalformed; true;) {
  41810. for (; true; i = i0) {
  41811. type = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFFFFFFFFFFFFFFFFGGGGGGGGGGGGGGGGHHHHHHHHHHHHHHHHHHHHHHHHHHHIHHHJEEBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBKCCCCCCCCCCCCDCLONNNMEEEEEEEEEEE".charCodeAt(byte) & 31;
  41812. char = state <= 32 ? byte & 61694 >>> type : (byte & 63 | char << 6) >>> 0;
  41813. state = " \x000:XECCCCCN:lDb \x000:XECCCCCNvlDb \x000:XECCCCCN:lDb AAAAA\x00\x00\x00\x00\x00AAAAA00000AAAAA:::::AAAAAGG000AAAAA00KKKAAAAAG::::AAAAA:IIIIAAAAA000\x800AAAAA\x00\x00\x00\x00 AAAAA".charCodeAt(state + type);
  41814. if (state === 0) {
  41815. t2 = A.Primitives_stringFromCharCode(char);
  41816. buffer._contents += t2;
  41817. if (i === end)
  41818. break $label0$0;
  41819. break;
  41820. } else if ((state & 1) !== 0) {
  41821. if (t1)
  41822. switch (state) {
  41823. case 69:
  41824. case 67:
  41825. t2 = A.Primitives_stringFromCharCode(_65533);
  41826. buffer._contents += t2;
  41827. break;
  41828. case 65:
  41829. t2 = A.Primitives_stringFromCharCode(_65533);
  41830. buffer._contents += t2;
  41831. --i;
  41832. break;
  41833. default:
  41834. t2 = A.Primitives_stringFromCharCode(_65533);
  41835. t2 = buffer._contents += t2;
  41836. buffer._contents = t2 + A.Primitives_stringFromCharCode(_65533);
  41837. break;
  41838. }
  41839. else {
  41840. _this._convert$_state = state;
  41841. _this._charOrIndex = i - 1;
  41842. return "";
  41843. }
  41844. state = 0;
  41845. }
  41846. if (i === end)
  41847. break $label0$0;
  41848. i0 = i + 1;
  41849. byte = bytes[i];
  41850. }
  41851. i0 = i + 1;
  41852. byte = bytes[i];
  41853. if (byte < 128) {
  41854. while (true) {
  41855. if (!(i0 < end)) {
  41856. markEnd = end;
  41857. break;
  41858. }
  41859. i1 = i0 + 1;
  41860. byte = bytes[i0];
  41861. if (byte >= 128) {
  41862. markEnd = i1 - 1;
  41863. i0 = i1;
  41864. break;
  41865. }
  41866. i0 = i1;
  41867. }
  41868. if (markEnd - i < 20)
  41869. for (m = i; m < markEnd; ++m) {
  41870. t2 = A.Primitives_stringFromCharCode(bytes[m]);
  41871. buffer._contents += t2;
  41872. }
  41873. else {
  41874. t2 = A.String_String$fromCharCodes(bytes, i, markEnd);
  41875. buffer._contents += t2;
  41876. }
  41877. if (markEnd === end)
  41878. break $label0$0;
  41879. i = i0;
  41880. } else
  41881. i = i0;
  41882. }
  41883. if (single && state > 32)
  41884. if (t1) {
  41885. t1 = A.Primitives_stringFromCharCode(_65533);
  41886. buffer._contents += t1;
  41887. } else {
  41888. _this._convert$_state = 77;
  41889. _this._charOrIndex = end;
  41890. return "";
  41891. }
  41892. _this._convert$_state = state;
  41893. _this._charOrIndex = char;
  41894. t1 = buffer._contents;
  41895. return t1.charCodeAt(0) == 0 ? t1 : t1;
  41896. }
  41897. };
  41898. A.NoSuchMethodError_toString_closure.prototype = {
  41899. call$2(key, value) {
  41900. var t1 = this.sb,
  41901. t2 = this._box_0,
  41902. t3 = t1._contents += t2.comma;
  41903. t3 += key.__internal$_name;
  41904. t1._contents = t3;
  41905. t1._contents = t3 + ": ";
  41906. t3 = A.Error_safeToString(value);
  41907. t1._contents += t3;
  41908. t2.comma = ", ";
  41909. },
  41910. $signature: 312
  41911. };
  41912. A.DateTime.prototype = {
  41913. $eq(_, other) {
  41914. var t1;
  41915. if (other == null)
  41916. return false;
  41917. t1 = false;
  41918. if (other instanceof A.DateTime)
  41919. if (this._value === other._value)
  41920. t1 = this._microsecond === other._microsecond;
  41921. return t1;
  41922. },
  41923. get$hashCode(_) {
  41924. return A.Object_hash(this._value, this._microsecond, B.C_SentinelValue, B.C_SentinelValue);
  41925. },
  41926. isAfter$1(other) {
  41927. var t1 = this._value,
  41928. t2 = other._value;
  41929. if (t1 <= t2)
  41930. t1 = t1 === t2 && this._microsecond > other._microsecond;
  41931. else
  41932. t1 = true;
  41933. return t1;
  41934. },
  41935. compareTo$1(_, other) {
  41936. var r = B.JSInt_methods.compareTo$1(this._value, other._value);
  41937. if (r !== 0)
  41938. return r;
  41939. return B.JSInt_methods.compareTo$1(this._microsecond, other._microsecond);
  41940. },
  41941. toString$0(_) {
  41942. var _this = this,
  41943. y = A.DateTime__fourDigits(A.Primitives_getYear(_this)),
  41944. m = A.DateTime__twoDigits(A.Primitives_getMonth(_this)),
  41945. d = A.DateTime__twoDigits(A.Primitives_getDay(_this)),
  41946. h = A.DateTime__twoDigits(A.Primitives_getHours(_this)),
  41947. min = A.DateTime__twoDigits(A.Primitives_getMinutes(_this)),
  41948. sec = A.DateTime__twoDigits(A.Primitives_getSeconds(_this)),
  41949. ms = A.DateTime__threeDigits(A.Primitives_getMilliseconds(_this)),
  41950. t1 = _this._microsecond,
  41951. us = t1 === 0 ? "" : A.DateTime__threeDigits(t1);
  41952. return y + "-" + m + "-" + d + " " + h + ":" + min + ":" + sec + "." + ms + us;
  41953. },
  41954. $isComparable: 1
  41955. };
  41956. A.Duration.prototype = {
  41957. $eq(_, other) {
  41958. if (other == null)
  41959. return false;
  41960. return other instanceof A.Duration && this._duration === other._duration;
  41961. },
  41962. get$hashCode(_) {
  41963. return B.JSInt_methods.get$hashCode(this._duration);
  41964. },
  41965. compareTo$1(_, other) {
  41966. return B.JSInt_methods.compareTo$1(this._duration, other._duration);
  41967. },
  41968. toString$0(_) {
  41969. var sign, minutes, minutesPadding, seconds, secondsPadding,
  41970. microseconds = this._duration,
  41971. hours = B.JSInt_methods._tdivFast$1(microseconds, 3600000000),
  41972. microseconds0 = microseconds % 3600000000;
  41973. if (microseconds < 0) {
  41974. hours = 0 - hours;
  41975. microseconds = 0 - microseconds0;
  41976. sign = "-";
  41977. } else {
  41978. microseconds = microseconds0;
  41979. sign = "";
  41980. }
  41981. minutes = B.JSInt_methods._tdivFast$1(microseconds, 60000000);
  41982. microseconds %= 60000000;
  41983. minutesPadding = minutes < 10 ? "0" : "";
  41984. seconds = B.JSInt_methods._tdivFast$1(microseconds, 1000000);
  41985. secondsPadding = seconds < 10 ? "0" : "";
  41986. return sign + hours + ":" + minutesPadding + minutes + ":" + secondsPadding + seconds + "." + B.JSString_methods.padLeft$2(B.JSInt_methods.toString$0(microseconds % 1000000), 6, "0");
  41987. },
  41988. $isComparable: 1
  41989. };
  41990. A._Enum.prototype = {
  41991. toString$0(_) {
  41992. return this._enumToString$0();
  41993. }
  41994. };
  41995. A.Error.prototype = {
  41996. get$stackTrace() {
  41997. return A.Primitives_extractStackTrace(this);
  41998. }
  41999. };
  42000. A.AssertionError.prototype = {
  42001. toString$0(_) {
  42002. var t1 = this.message;
  42003. if (t1 != null)
  42004. return "Assertion failed: " + A.Error_safeToString(t1);
  42005. return "Assertion failed";
  42006. },
  42007. get$message(receiver) {
  42008. return this.message;
  42009. }
  42010. };
  42011. A.TypeError.prototype = {};
  42012. A.ArgumentError.prototype = {
  42013. get$_errorName() {
  42014. return "Invalid argument" + (!this._hasValue ? "(s)" : "");
  42015. },
  42016. get$_errorExplanation() {
  42017. return "";
  42018. },
  42019. toString$0(_) {
  42020. var _this = this,
  42021. $name = _this.name,
  42022. nameString = $name == null ? "" : " (" + $name + ")",
  42023. message = _this.message,
  42024. messageString = message == null ? "" : ": " + A.S(message),
  42025. prefix = _this.get$_errorName() + nameString + messageString;
  42026. if (!_this._hasValue)
  42027. return prefix;
  42028. return prefix + _this.get$_errorExplanation() + ": " + A.Error_safeToString(_this.get$invalidValue());
  42029. },
  42030. get$invalidValue() {
  42031. return this.invalidValue;
  42032. },
  42033. get$message(receiver) {
  42034. return this.message;
  42035. }
  42036. };
  42037. A.RangeError.prototype = {
  42038. get$invalidValue() {
  42039. return this.invalidValue;
  42040. },
  42041. get$_errorName() {
  42042. return "RangeError";
  42043. },
  42044. get$_errorExplanation() {
  42045. var explanation,
  42046. start = this.start,
  42047. end = this.end;
  42048. if (start == null)
  42049. explanation = end != null ? ": Not less than or equal to " + A.S(end) : "";
  42050. else if (end == null)
  42051. explanation = ": Not greater than or equal to " + A.S(start);
  42052. else if (end > start)
  42053. explanation = ": Not in inclusive range " + A.S(start) + ".." + A.S(end);
  42054. else
  42055. explanation = end < start ? ": Valid value range is empty" : ": Only valid value is " + A.S(start);
  42056. return explanation;
  42057. }
  42058. };
  42059. A.IndexError.prototype = {
  42060. get$invalidValue() {
  42061. return this.invalidValue;
  42062. },
  42063. get$_errorName() {
  42064. return "RangeError";
  42065. },
  42066. get$_errorExplanation() {
  42067. if (this.invalidValue < 0)
  42068. return ": index must not be negative";
  42069. var t1 = this.length;
  42070. if (t1 === 0)
  42071. return ": no indices are valid";
  42072. return ": index should be less than " + t1;
  42073. },
  42074. $isRangeError: 1,
  42075. get$length(receiver) {
  42076. return this.length;
  42077. }
  42078. };
  42079. A.NoSuchMethodError.prototype = {
  42080. toString$0(_) {
  42081. var $arguments, t1, _i, t2, t3, argument, receiverText, actualParameters, _this = this, _box_0 = {},
  42082. sb = new A.StringBuffer("");
  42083. _box_0.comma = "";
  42084. $arguments = _this._core$_arguments;
  42085. for (t1 = $arguments.length, _i = 0, t2 = "", t3 = ""; _i < t1; ++_i, t3 = ", ") {
  42086. argument = $arguments[_i];
  42087. sb._contents = t2 + t3;
  42088. t2 = A.Error_safeToString(argument);
  42089. t2 = sb._contents += t2;
  42090. _box_0.comma = ", ";
  42091. }
  42092. _this._namedArguments.forEach$1(0, new A.NoSuchMethodError_toString_closure(_box_0, sb));
  42093. receiverText = A.Error_safeToString(_this._core$_receiver);
  42094. actualParameters = sb.toString$0(0);
  42095. return "NoSuchMethodError: method not found: '" + _this._memberName.__internal$_name + "'\nReceiver: " + receiverText + "\nArguments: [" + actualParameters + "]";
  42096. }
  42097. };
  42098. A.UnsupportedError.prototype = {
  42099. toString$0(_) {
  42100. return "Unsupported operation: " + this.message;
  42101. },
  42102. get$message(receiver) {
  42103. return this.message;
  42104. }
  42105. };
  42106. A.UnimplementedError.prototype = {
  42107. toString$0(_) {
  42108. return "UnimplementedError: " + this.message;
  42109. },
  42110. get$message(receiver) {
  42111. return this.message;
  42112. }
  42113. };
  42114. A.StateError.prototype = {
  42115. toString$0(_) {
  42116. return "Bad state: " + this.message;
  42117. },
  42118. get$message(receiver) {
  42119. return this.message;
  42120. }
  42121. };
  42122. A.ConcurrentModificationError.prototype = {
  42123. toString$0(_) {
  42124. var t1 = this.modifiedObject;
  42125. if (t1 == null)
  42126. return "Concurrent modification during iteration.";
  42127. return "Concurrent modification during iteration: " + A.Error_safeToString(t1) + ".";
  42128. }
  42129. };
  42130. A.OutOfMemoryError.prototype = {
  42131. toString$0(_) {
  42132. return "Out of Memory";
  42133. },
  42134. get$stackTrace() {
  42135. return null;
  42136. },
  42137. $isError: 1
  42138. };
  42139. A.StackOverflowError.prototype = {
  42140. toString$0(_) {
  42141. return "Stack Overflow";
  42142. },
  42143. get$stackTrace() {
  42144. return null;
  42145. },
  42146. $isError: 1
  42147. };
  42148. A._Exception.prototype = {
  42149. toString$0(_) {
  42150. return "Exception: " + this.message;
  42151. },
  42152. $isException: 1,
  42153. get$message(receiver) {
  42154. return this.message;
  42155. }
  42156. };
  42157. A.FormatException.prototype = {
  42158. toString$0(_) {
  42159. var t1, lineNum, lineStart, previousCharWasCR, i, char, lineEnd, prefix, postfix, end, start,
  42160. message = this.message,
  42161. report = "" !== message ? "FormatException: " + message : "FormatException",
  42162. offset = this.offset,
  42163. source = this.source;
  42164. if (typeof source == "string") {
  42165. if (offset != null)
  42166. t1 = offset < 0 || offset > source.length;
  42167. else
  42168. t1 = false;
  42169. if (t1)
  42170. offset = null;
  42171. if (offset == null) {
  42172. if (source.length > 78)
  42173. source = B.JSString_methods.substring$2(source, 0, 75) + "...";
  42174. return report + "\n" + source;
  42175. }
  42176. for (lineNum = 1, lineStart = 0, previousCharWasCR = false, i = 0; i < offset; ++i) {
  42177. char = source.charCodeAt(i);
  42178. if (char === 10) {
  42179. if (lineStart !== i || !previousCharWasCR)
  42180. ++lineNum;
  42181. lineStart = i + 1;
  42182. previousCharWasCR = false;
  42183. } else if (char === 13) {
  42184. ++lineNum;
  42185. lineStart = i + 1;
  42186. previousCharWasCR = true;
  42187. }
  42188. }
  42189. report = lineNum > 1 ? report + (" (at line " + lineNum + ", character " + (offset - lineStart + 1) + ")\n") : report + (" (at character " + (offset + 1) + ")\n");
  42190. lineEnd = source.length;
  42191. for (i = offset; i < lineEnd; ++i) {
  42192. char = source.charCodeAt(i);
  42193. if (char === 10 || char === 13) {
  42194. lineEnd = i;
  42195. break;
  42196. }
  42197. }
  42198. prefix = "";
  42199. if (lineEnd - lineStart > 78) {
  42200. postfix = "...";
  42201. if (offset - lineStart < 75) {
  42202. end = lineStart + 75;
  42203. start = lineStart;
  42204. } else {
  42205. if (lineEnd - offset < 75) {
  42206. start = lineEnd - 75;
  42207. end = lineEnd;
  42208. postfix = "";
  42209. } else {
  42210. start = offset - 36;
  42211. end = offset + 36;
  42212. }
  42213. prefix = "...";
  42214. }
  42215. } else {
  42216. end = lineEnd;
  42217. start = lineStart;
  42218. postfix = "";
  42219. }
  42220. return report + prefix + B.JSString_methods.substring$2(source, start, end) + postfix + "\n" + B.JSString_methods.$mul(" ", offset - start + prefix.length) + "^\n";
  42221. } else
  42222. return offset != null ? report + (" (at offset " + A.S(offset) + ")") : report;
  42223. },
  42224. $isException: 1,
  42225. get$message(receiver) {
  42226. return this.message;
  42227. }
  42228. };
  42229. A.Iterable.prototype = {
  42230. cast$1$0(_, $R) {
  42231. return A.CastIterable_CastIterable(this, A._instanceType(this)._eval$1("Iterable.E"), $R);
  42232. },
  42233. followedBy$1(_, other) {
  42234. var _this = this,
  42235. t1 = A._instanceType(_this);
  42236. if (t1._eval$1("EfficientLengthIterable<Iterable.E>")._is(_this))
  42237. return A.FollowedByIterable_FollowedByIterable$firstEfficient(_this, other, t1._eval$1("Iterable.E"));
  42238. return new A.FollowedByIterable(_this, other, t1._eval$1("FollowedByIterable<Iterable.E>"));
  42239. },
  42240. map$1$1(_, toElement, $T) {
  42241. return A.MappedIterable_MappedIterable(this, toElement, A._instanceType(this)._eval$1("Iterable.E"), $T);
  42242. },
  42243. where$1(_, test) {
  42244. return new A.WhereIterable(this, test, A._instanceType(this)._eval$1("WhereIterable<Iterable.E>"));
  42245. },
  42246. expand$1$1(_, toElements, $T) {
  42247. return new A.ExpandIterable(this, toElements, A._instanceType(this)._eval$1("@<Iterable.E>")._bind$1($T)._eval$1("ExpandIterable<1,2>"));
  42248. },
  42249. contains$1(_, element) {
  42250. var t1;
  42251. for (t1 = this.get$iterator(this); t1.moveNext$0();)
  42252. if (J.$eq$(t1.get$current(t1), element))
  42253. return true;
  42254. return false;
  42255. },
  42256. forEach$1(_, action) {
  42257. var t1;
  42258. for (t1 = this.get$iterator(this); t1.moveNext$0();)
  42259. action.call$1(t1.get$current(t1));
  42260. },
  42261. fold$1$2(_, initialValue, combine) {
  42262. var t1, value;
  42263. for (t1 = this.get$iterator(this), value = initialValue; t1.moveNext$0();)
  42264. value = combine.call$2(value, t1.get$current(t1));
  42265. return value;
  42266. },
  42267. fold$2(_, initialValue, combine) {
  42268. return this.fold$1$2(0, initialValue, combine, type$.dynamic);
  42269. },
  42270. every$1(_, test) {
  42271. var t1;
  42272. for (t1 = this.get$iterator(this); t1.moveNext$0();)
  42273. if (!test.call$1(t1.get$current(t1)))
  42274. return false;
  42275. return true;
  42276. },
  42277. join$1(_, separator) {
  42278. var first, t1,
  42279. iterator = this.get$iterator(this);
  42280. if (!iterator.moveNext$0())
  42281. return "";
  42282. first = J.toString$0$(iterator.get$current(iterator));
  42283. if (!iterator.moveNext$0())
  42284. return first;
  42285. if (separator.length === 0) {
  42286. t1 = first;
  42287. do
  42288. t1 += A.S(J.toString$0$(iterator.get$current(iterator)));
  42289. while (iterator.moveNext$0());
  42290. } else {
  42291. t1 = first;
  42292. do
  42293. t1 = t1 + separator + A.S(J.toString$0$(iterator.get$current(iterator)));
  42294. while (iterator.moveNext$0());
  42295. }
  42296. return t1.charCodeAt(0) == 0 ? t1 : t1;
  42297. },
  42298. any$1(_, test) {
  42299. var t1;
  42300. for (t1 = this.get$iterator(this); t1.moveNext$0();)
  42301. if (test.call$1(t1.get$current(t1)))
  42302. return true;
  42303. return false;
  42304. },
  42305. toList$1$growable(_, growable) {
  42306. return A.List_List$of(this, growable, A._instanceType(this)._eval$1("Iterable.E"));
  42307. },
  42308. toList$0(_) {
  42309. return this.toList$1$growable(0, true);
  42310. },
  42311. toSet$0(_) {
  42312. return A.LinkedHashSet_LinkedHashSet$of(this, A._instanceType(this)._eval$1("Iterable.E"));
  42313. },
  42314. get$length(_) {
  42315. var count,
  42316. it = this.get$iterator(this);
  42317. for (count = 0; it.moveNext$0();)
  42318. ++count;
  42319. return count;
  42320. },
  42321. get$isEmpty(_) {
  42322. return !this.get$iterator(this).moveNext$0();
  42323. },
  42324. get$isNotEmpty(_) {
  42325. return !this.get$isEmpty(this);
  42326. },
  42327. take$1(_, count) {
  42328. return A.TakeIterable_TakeIterable(this, count, A._instanceType(this)._eval$1("Iterable.E"));
  42329. },
  42330. skip$1(_, count) {
  42331. return A.SkipIterable_SkipIterable(this, count, A._instanceType(this)._eval$1("Iterable.E"));
  42332. },
  42333. skipWhile$1(_, test) {
  42334. return new A.SkipWhileIterable(this, test, A._instanceType(this)._eval$1("SkipWhileIterable<Iterable.E>"));
  42335. },
  42336. get$first(_) {
  42337. var it = this.get$iterator(this);
  42338. if (!it.moveNext$0())
  42339. throw A.wrapException(A.IterableElementError_noElement());
  42340. return it.get$current(it);
  42341. },
  42342. get$last(_) {
  42343. var result,
  42344. it = this.get$iterator(this);
  42345. if (!it.moveNext$0())
  42346. throw A.wrapException(A.IterableElementError_noElement());
  42347. do
  42348. result = it.get$current(it);
  42349. while (it.moveNext$0());
  42350. return result;
  42351. },
  42352. get$single(_) {
  42353. var result,
  42354. it = this.get$iterator(this);
  42355. if (!it.moveNext$0())
  42356. throw A.wrapException(A.IterableElementError_noElement());
  42357. result = it.get$current(it);
  42358. if (it.moveNext$0())
  42359. throw A.wrapException(A.IterableElementError_tooMany());
  42360. return result;
  42361. },
  42362. elementAt$1(_, index) {
  42363. var iterator, skipCount;
  42364. A.RangeError_checkNotNegative(index, "index");
  42365. iterator = this.get$iterator(this);
  42366. for (skipCount = index; iterator.moveNext$0();) {
  42367. if (skipCount === 0)
  42368. return iterator.get$current(iterator);
  42369. --skipCount;
  42370. }
  42371. throw A.wrapException(A.IndexError$withLength(index, index - skipCount, this, null, "index"));
  42372. },
  42373. toString$0(_) {
  42374. return A.Iterable_iterableToShortString(this, "(", ")");
  42375. }
  42376. };
  42377. A._GeneratorIterable.prototype = {
  42378. elementAt$1(_, index) {
  42379. A.IndexError_check(index, this.length, this, null, null);
  42380. return this._generator.call$1(index);
  42381. },
  42382. get$length(receiver) {
  42383. return this.length;
  42384. }
  42385. };
  42386. A.MapEntry.prototype = {
  42387. toString$0(_) {
  42388. return "MapEntry(" + A.S(this.key) + ": " + A.S(this.value) + ")";
  42389. }
  42390. };
  42391. A.Null.prototype = {
  42392. get$hashCode(_) {
  42393. return A.Object.prototype.get$hashCode.call(this, 0);
  42394. },
  42395. toString$0(_) {
  42396. return "null";
  42397. }
  42398. };
  42399. A.Object.prototype = {$isObject: 1,
  42400. $eq(_, other) {
  42401. return this === other;
  42402. },
  42403. get$hashCode(_) {
  42404. return A.Primitives_objectHashCode(this);
  42405. },
  42406. toString$0(_) {
  42407. return "Instance of '" + A.Primitives_objectTypeName(this) + "'";
  42408. },
  42409. noSuchMethod$1(_, invocation) {
  42410. throw A.wrapException(A.NoSuchMethodError_NoSuchMethodError$withInvocation(this, invocation));
  42411. },
  42412. get$runtimeType(_) {
  42413. return A.getRuntimeTypeOfDartObject(this);
  42414. },
  42415. toString() {
  42416. return this.toString$0(this);
  42417. }
  42418. };
  42419. A._StringStackTrace.prototype = {
  42420. toString$0(_) {
  42421. return this._stackTrace;
  42422. },
  42423. $isStackTrace: 1
  42424. };
  42425. A.Runes.prototype = {
  42426. get$iterator(_) {
  42427. return new A.RuneIterator(this.string);
  42428. },
  42429. get$last(_) {
  42430. var code, previousCode,
  42431. t1 = this.string,
  42432. t2 = t1.length;
  42433. if (t2 === 0)
  42434. throw A.wrapException(A.StateError$("No elements."));
  42435. code = t1.charCodeAt(t2 - 1);
  42436. if ((code & 64512) === 56320 && t2 > 1) {
  42437. previousCode = t1.charCodeAt(t2 - 2);
  42438. if ((previousCode & 64512) === 55296)
  42439. return A._combineSurrogatePair(previousCode, code);
  42440. }
  42441. return code;
  42442. }
  42443. };
  42444. A.RuneIterator.prototype = {
  42445. get$current(_) {
  42446. return this._currentCodePoint;
  42447. },
  42448. moveNext$0() {
  42449. var codeUnit, nextPosition, nextCodeUnit, _this = this,
  42450. t1 = _this._position = _this._nextPosition,
  42451. t2 = _this.string,
  42452. t3 = t2.length;
  42453. if (t1 === t3) {
  42454. _this._currentCodePoint = -1;
  42455. return false;
  42456. }
  42457. codeUnit = t2.charCodeAt(t1);
  42458. nextPosition = t1 + 1;
  42459. if ((codeUnit & 64512) === 55296 && nextPosition < t3) {
  42460. nextCodeUnit = t2.charCodeAt(nextPosition);
  42461. if ((nextCodeUnit & 64512) === 56320) {
  42462. _this._nextPosition = nextPosition + 1;
  42463. _this._currentCodePoint = A._combineSurrogatePair(codeUnit, nextCodeUnit);
  42464. return true;
  42465. }
  42466. }
  42467. _this._nextPosition = nextPosition;
  42468. _this._currentCodePoint = codeUnit;
  42469. return true;
  42470. }
  42471. };
  42472. A.StringBuffer.prototype = {
  42473. get$length(_) {
  42474. return this._contents.length;
  42475. },
  42476. write$1(_, obj) {
  42477. var t1 = A.S(obj);
  42478. this._contents += t1;
  42479. },
  42480. writeCharCode$1(charCode) {
  42481. var t1 = A.Primitives_stringFromCharCode(charCode);
  42482. this._contents += t1;
  42483. },
  42484. toString$0(_) {
  42485. var t1 = this._contents;
  42486. return t1.charCodeAt(0) == 0 ? t1 : t1;
  42487. }
  42488. };
  42489. A.Uri__parseIPv4Address_error.prototype = {
  42490. call$2(msg, position) {
  42491. throw A.wrapException(A.FormatException$("Illegal IPv4 address, " + msg, this.host, position));
  42492. },
  42493. $signature: 343
  42494. };
  42495. A.Uri_parseIPv6Address_error.prototype = {
  42496. call$2(msg, position) {
  42497. throw A.wrapException(A.FormatException$("Illegal IPv6 address, " + msg, this.host, position));
  42498. },
  42499. $signature: 390
  42500. };
  42501. A.Uri_parseIPv6Address_parseHex.prototype = {
  42502. call$2(start, end) {
  42503. var value;
  42504. if (end - start > 4)
  42505. this.error.call$2("an IPv6 part can only contain a maximum of 4 hex digits", start);
  42506. value = A.int_parse(B.JSString_methods.substring$2(this.host, start, end), 16);
  42507. if (value < 0 || value > 65535)
  42508. this.error.call$2("each part must be in the range of `0x0..0xFFFF`", start);
  42509. return value;
  42510. },
  42511. $signature: 420
  42512. };
  42513. A._Uri.prototype = {
  42514. get$_text() {
  42515. var t1, t2, t3, t4, _this = this,
  42516. value = _this.___Uri__text_FI;
  42517. if (value === $) {
  42518. t1 = _this.scheme;
  42519. t2 = t1.length !== 0 ? "" + t1 + ":" : "";
  42520. t3 = _this._host;
  42521. t4 = t3 == null;
  42522. if (!t4 || t1 === "file") {
  42523. t1 = t2 + "//";
  42524. t2 = _this._userInfo;
  42525. if (t2.length !== 0)
  42526. t1 = t1 + t2 + "@";
  42527. if (!t4)
  42528. t1 += t3;
  42529. t2 = _this._port;
  42530. if (t2 != null)
  42531. t1 = t1 + ":" + A.S(t2);
  42532. } else
  42533. t1 = t2;
  42534. t1 += _this.path;
  42535. t2 = _this._query;
  42536. if (t2 != null)
  42537. t1 = t1 + "?" + t2;
  42538. t2 = _this._fragment;
  42539. if (t2 != null)
  42540. t1 = t1 + "#" + t2;
  42541. value !== $ && A.throwUnnamedLateFieldADI();
  42542. value = _this.___Uri__text_FI = t1.charCodeAt(0) == 0 ? t1 : t1;
  42543. }
  42544. return value;
  42545. },
  42546. get$pathSegments() {
  42547. var pathToSplit, result, _this = this,
  42548. value = _this.___Uri_pathSegments_FI;
  42549. if (value === $) {
  42550. pathToSplit = _this.path;
  42551. if (pathToSplit.length !== 0 && pathToSplit.charCodeAt(0) === 47)
  42552. pathToSplit = B.JSString_methods.substring$1(pathToSplit, 1);
  42553. result = pathToSplit.length === 0 ? B.List_empty : A.List_List$unmodifiable(new A.MappedListIterable(A._setArrayType(pathToSplit.split("/"), type$.JSArray_String), A.core_Uri_decodeComponent$closure(), type$.MappedListIterable_String_dynamic), type$.String);
  42554. _this.___Uri_pathSegments_FI !== $ && A.throwUnnamedLateFieldADI();
  42555. value = _this.___Uri_pathSegments_FI = result;
  42556. }
  42557. return value;
  42558. },
  42559. get$hashCode(_) {
  42560. var result, _this = this,
  42561. value = _this.___Uri_hashCode_FI;
  42562. if (value === $) {
  42563. result = B.JSString_methods.get$hashCode(_this.get$_text());
  42564. _this.___Uri_hashCode_FI !== $ && A.throwUnnamedLateFieldADI();
  42565. _this.___Uri_hashCode_FI = result;
  42566. value = result;
  42567. }
  42568. return value;
  42569. },
  42570. get$userInfo() {
  42571. return this._userInfo;
  42572. },
  42573. get$host() {
  42574. var host = this._host;
  42575. if (host == null)
  42576. return "";
  42577. if (B.JSString_methods.startsWith$1(host, "["))
  42578. return B.JSString_methods.substring$2(host, 1, host.length - 1);
  42579. return host;
  42580. },
  42581. get$port(_) {
  42582. var t1 = this._port;
  42583. return t1 == null ? A._Uri__defaultPort(this.scheme) : t1;
  42584. },
  42585. get$query() {
  42586. var t1 = this._query;
  42587. return t1 == null ? "" : t1;
  42588. },
  42589. get$fragment() {
  42590. var t1 = this._fragment;
  42591. return t1 == null ? "" : t1;
  42592. },
  42593. isScheme$1(scheme) {
  42594. var thisScheme = this.scheme;
  42595. if (scheme.length !== thisScheme.length)
  42596. return false;
  42597. return A._caseInsensitiveCompareStart(scheme, thisScheme, 0) >= 0;
  42598. },
  42599. replace$1$scheme(scheme) {
  42600. var isFile, userInfo, port, host, currentPath, t1, path, _this = this;
  42601. scheme = A._Uri__makeScheme(scheme, 0, scheme.length);
  42602. isFile = scheme === "file";
  42603. userInfo = _this._userInfo;
  42604. port = _this._port;
  42605. if (scheme !== _this.scheme)
  42606. port = A._Uri__makePort(port, scheme);
  42607. host = _this._host;
  42608. if (!(host != null))
  42609. host = userInfo.length !== 0 || port != null || isFile ? "" : null;
  42610. currentPath = _this.path;
  42611. if (!isFile)
  42612. t1 = host != null && currentPath.length !== 0;
  42613. else
  42614. t1 = true;
  42615. if (t1 && !B.JSString_methods.startsWith$1(currentPath, "/"))
  42616. currentPath = "/" + currentPath;
  42617. path = currentPath;
  42618. return A._Uri$_internal(scheme, userInfo, host, port, path, _this._query, _this._fragment);
  42619. },
  42620. _mergePaths$2(base, reference) {
  42621. var backCount, refStart, baseEnd, newEnd, delta, t1, t2;
  42622. for (backCount = 0, refStart = 0; B.JSString_methods.startsWith$2(reference, "../", refStart);) {
  42623. refStart += 3;
  42624. ++backCount;
  42625. }
  42626. baseEnd = B.JSString_methods.lastIndexOf$1(base, "/");
  42627. while (true) {
  42628. if (!(baseEnd > 0 && backCount > 0))
  42629. break;
  42630. newEnd = B.JSString_methods.lastIndexOf$2(base, "/", baseEnd - 1);
  42631. if (newEnd < 0)
  42632. break;
  42633. delta = baseEnd - newEnd;
  42634. t1 = delta !== 2;
  42635. t2 = false;
  42636. if (!t1 || delta === 3)
  42637. if (base.charCodeAt(newEnd + 1) === 46)
  42638. t1 = !t1 || base.charCodeAt(newEnd + 2) === 46;
  42639. else
  42640. t1 = t2;
  42641. else
  42642. t1 = t2;
  42643. if (t1)
  42644. break;
  42645. --backCount;
  42646. baseEnd = newEnd;
  42647. }
  42648. return B.JSString_methods.replaceRange$3(base, baseEnd + 1, null, B.JSString_methods.substring$1(reference, refStart - 3 * backCount));
  42649. },
  42650. resolve$1(_, reference) {
  42651. return this.resolveUri$1(A.Uri_parse(reference));
  42652. },
  42653. resolveUri$1(reference) {
  42654. var targetScheme, targetUserInfo, targetHost, targetPort, targetPath, targetQuery, split, packageNameEnd, packageName, mergedPath, t1, fragment, _this = this, _null = null;
  42655. if (reference.get$scheme().length !== 0) {
  42656. if (type$._PlatformUri._is(reference))
  42657. return reference;
  42658. targetScheme = reference.get$scheme();
  42659. if (reference.get$hasAuthority()) {
  42660. targetUserInfo = reference.get$userInfo();
  42661. targetHost = reference.get$host();
  42662. targetPort = reference.get$hasPort() ? reference.get$port(reference) : _null;
  42663. } else {
  42664. targetPort = _null;
  42665. targetHost = targetPort;
  42666. targetUserInfo = "";
  42667. }
  42668. targetPath = A._Uri__removeDotSegments(reference.get$path(reference));
  42669. targetQuery = reference.get$hasQuery() ? reference.get$query() : _null;
  42670. split = 0;
  42671. } else {
  42672. targetScheme = _this.scheme;
  42673. if (reference.get$hasAuthority()) {
  42674. if (type$._PlatformUri._is(reference))
  42675. return reference.replace$1$scheme(targetScheme);
  42676. targetUserInfo = reference.get$userInfo();
  42677. targetHost = reference.get$host();
  42678. targetPort = A._Uri__makePort(reference.get$hasPort() ? reference.get$port(reference) : _null, targetScheme);
  42679. targetPath = A._Uri__removeDotSegments(reference.get$path(reference));
  42680. targetQuery = reference.get$hasQuery() ? reference.get$query() : _null;
  42681. split = 1;
  42682. } else {
  42683. targetUserInfo = _this._userInfo;
  42684. targetHost = _this._host;
  42685. targetPort = _this._port;
  42686. targetPath = _this.path;
  42687. if (reference.get$hasEmptyPath())
  42688. if (reference.get$hasQuery()) {
  42689. targetQuery = reference.get$query();
  42690. split = 3;
  42691. } else {
  42692. targetQuery = _this._query;
  42693. split = 4;
  42694. }
  42695. else {
  42696. packageNameEnd = A._Uri__packageNameEnd(_this, targetPath);
  42697. if (packageNameEnd > 0) {
  42698. packageName = B.JSString_methods.substring$2(targetPath, 0, packageNameEnd);
  42699. targetPath = reference.get$hasAbsolutePath() ? packageName + A._Uri__removeDotSegments(reference.get$path(reference)) : packageName + A._Uri__removeDotSegments(_this._mergePaths$2(B.JSString_methods.substring$1(targetPath, packageName.length), reference.get$path(reference)));
  42700. } else if (reference.get$hasAbsolutePath())
  42701. targetPath = A._Uri__removeDotSegments(reference.get$path(reference));
  42702. else if (targetPath.length === 0)
  42703. if (targetHost == null)
  42704. targetPath = targetScheme.length === 0 ? reference.get$path(reference) : A._Uri__removeDotSegments(reference.get$path(reference));
  42705. else
  42706. targetPath = A._Uri__removeDotSegments("/" + reference.get$path(reference));
  42707. else {
  42708. mergedPath = _this._mergePaths$2(targetPath, reference.get$path(reference));
  42709. t1 = targetScheme.length === 0;
  42710. if (!t1 || targetHost != null || B.JSString_methods.startsWith$1(targetPath, "/"))
  42711. targetPath = A._Uri__removeDotSegments(mergedPath);
  42712. else
  42713. targetPath = A._Uri__normalizeRelativePath(mergedPath, !t1 || targetHost != null);
  42714. }
  42715. targetQuery = reference.get$hasQuery() ? reference.get$query() : _null;
  42716. split = 2;
  42717. }
  42718. }
  42719. }
  42720. fragment = reference.get$hasFragment() ? reference.get$fragment() : _null;
  42721. if (!type$._PlatformUri._is(reference)) {
  42722. if (split === 0)
  42723. targetScheme = A._Uri__makeScheme(targetScheme, 0, targetScheme.length);
  42724. if (split <= 1) {
  42725. targetUserInfo = A._Uri__makeUserInfo(targetUserInfo, 0, targetUserInfo.length);
  42726. if (targetPort != null)
  42727. targetPort = A._Uri__makePort(targetPort, targetScheme);
  42728. if (targetHost != null && targetHost.length !== 0)
  42729. targetHost = A._Uri__makeHost(targetHost, 0, targetHost.length, false);
  42730. }
  42731. t1 = split <= 3;
  42732. if (t1)
  42733. targetPath = A._Uri__makePath(targetPath, 0, targetPath.length, _null, targetScheme, targetHost != null);
  42734. if (t1 && targetQuery != null)
  42735. targetQuery = A._Uri__makeQuery(targetQuery, 0, targetQuery.length, _null);
  42736. if (fragment != null)
  42737. fragment = A._Uri__makeFragment(fragment, 0, fragment.length);
  42738. }
  42739. return A._Uri$_internal(targetScheme, targetUserInfo, targetHost, targetPort, targetPath, targetQuery, fragment);
  42740. },
  42741. get$hasAuthority() {
  42742. return this._host != null;
  42743. },
  42744. get$hasPort() {
  42745. return this._port != null;
  42746. },
  42747. get$hasQuery() {
  42748. return this._query != null;
  42749. },
  42750. get$hasFragment() {
  42751. return this._fragment != null;
  42752. },
  42753. get$hasEmptyPath() {
  42754. return this.path.length === 0;
  42755. },
  42756. get$hasAbsolutePath() {
  42757. return B.JSString_methods.startsWith$1(this.path, "/");
  42758. },
  42759. toFilePath$0() {
  42760. var pathSegments, _this = this,
  42761. t1 = _this.scheme;
  42762. if (t1 !== "" && t1 !== "file")
  42763. throw A.wrapException(A.UnsupportedError$("Cannot extract a file path from a " + t1 + " URI"));
  42764. t1 = _this._query;
  42765. if ((t1 == null ? "" : t1) !== "")
  42766. throw A.wrapException(A.UnsupportedError$(string$.Cannotfq));
  42767. t1 = _this._fragment;
  42768. if ((t1 == null ? "" : t1) !== "")
  42769. throw A.wrapException(A.UnsupportedError$(string$.Cannotff));
  42770. t1 = $.$get$_Uri__isWindowsCached();
  42771. if (t1)
  42772. t1 = A._Uri__toWindowsFilePath(_this);
  42773. else {
  42774. if (_this._host != null && _this.get$host() !== "")
  42775. A.throwExpression(A.UnsupportedError$(string$.Cannotn));
  42776. pathSegments = _this.get$pathSegments();
  42777. A._Uri__checkNonWindowsPathReservedCharacters(pathSegments, false);
  42778. t1 = A.StringBuffer__writeAll(B.JSString_methods.startsWith$1(_this.path, "/") ? "" + "/" : "", pathSegments, "/");
  42779. t1 = t1.charCodeAt(0) == 0 ? t1 : t1;
  42780. }
  42781. return t1;
  42782. },
  42783. toString$0(_) {
  42784. return this.get$_text();
  42785. },
  42786. $eq(_, other) {
  42787. var t1, t2, t3, _this = this;
  42788. if (other == null)
  42789. return false;
  42790. if (_this === other)
  42791. return true;
  42792. t1 = false;
  42793. if (type$.Uri._is(other))
  42794. if (_this.scheme === other.get$scheme())
  42795. if (_this._host != null === other.get$hasAuthority())
  42796. if (_this._userInfo === other.get$userInfo())
  42797. if (_this.get$host() === other.get$host())
  42798. if (_this.get$port(0) === other.get$port(other))
  42799. if (_this.path === other.get$path(other)) {
  42800. t2 = _this._query;
  42801. t3 = t2 == null;
  42802. if (!t3 === other.get$hasQuery()) {
  42803. if (t3)
  42804. t2 = "";
  42805. if (t2 === other.get$query()) {
  42806. t2 = _this._fragment;
  42807. t3 = t2 == null;
  42808. if (!t3 === other.get$hasFragment()) {
  42809. t1 = t3 ? "" : t2;
  42810. t1 = t1 === other.get$fragment();
  42811. }
  42812. }
  42813. }
  42814. }
  42815. return t1;
  42816. },
  42817. $isUri: 1,
  42818. $is_PlatformUri: 1,
  42819. get$scheme() {
  42820. return this.scheme;
  42821. },
  42822. get$path(receiver) {
  42823. return this.path;
  42824. }
  42825. };
  42826. A._Uri__makePath_closure.prototype = {
  42827. call$1(s) {
  42828. return A._Uri__uriEncode(B.List_M2I0, s, B.C_Utf8Codec, false);
  42829. },
  42830. $signature: 6
  42831. };
  42832. A.UriData.prototype = {
  42833. get$uri() {
  42834. var t2, queryIndex, end, query, _this = this, _null = null,
  42835. t1 = _this._uriCache;
  42836. if (t1 == null) {
  42837. t1 = _this._text;
  42838. t2 = _this._separatorIndices[0] + 1;
  42839. queryIndex = B.JSString_methods.indexOf$2(t1, "?", t2);
  42840. end = t1.length;
  42841. if (queryIndex >= 0) {
  42842. query = A._Uri__normalizeOrSubstring(t1, queryIndex + 1, end, B.List_42A, false, false);
  42843. end = queryIndex;
  42844. } else
  42845. query = _null;
  42846. t1 = _this._uriCache = new A._DataUri("data", "", _null, _null, A._Uri__normalizeOrSubstring(t1, t2, end, B.List_M2I, false, false), query, _null);
  42847. }
  42848. return t1;
  42849. },
  42850. toString$0(_) {
  42851. var t1 = this._text;
  42852. return this._separatorIndices[0] === -1 ? "data:" + t1 : t1;
  42853. }
  42854. };
  42855. A._createTables_build.prototype = {
  42856. call$2(state, defaultTransition) {
  42857. var t1 = this.tables[state];
  42858. B.NativeUint8List_methods.fillRange$3(t1, 0, 96, defaultTransition);
  42859. return t1;
  42860. },
  42861. $signature: 460
  42862. };
  42863. A._createTables_setChars.prototype = {
  42864. call$3(target, chars, transition) {
  42865. var t1, i;
  42866. for (t1 = chars.length, i = 0; i < t1; ++i)
  42867. target[chars.charCodeAt(i) ^ 96] = transition;
  42868. },
  42869. $signature: 174
  42870. };
  42871. A._createTables_setRange.prototype = {
  42872. call$3(target, range, transition) {
  42873. var i, n;
  42874. for (i = range.charCodeAt(0), n = range.charCodeAt(1); i <= n; ++i)
  42875. target[(i ^ 96) >>> 0] = transition;
  42876. },
  42877. $signature: 174
  42878. };
  42879. A._SimpleUri.prototype = {
  42880. get$hasAuthority() {
  42881. return this._hostStart > 0;
  42882. },
  42883. get$hasPort() {
  42884. return this._hostStart > 0 && this._portStart + 1 < this._pathStart;
  42885. },
  42886. get$hasQuery() {
  42887. return this._queryStart < this._fragmentStart;
  42888. },
  42889. get$hasFragment() {
  42890. return this._fragmentStart < this._uri.length;
  42891. },
  42892. get$hasAbsolutePath() {
  42893. return B.JSString_methods.startsWith$2(this._uri, "/", this._pathStart);
  42894. },
  42895. get$hasEmptyPath() {
  42896. return this._pathStart === this._queryStart;
  42897. },
  42898. get$scheme() {
  42899. var t1 = this._schemeCache;
  42900. return t1 == null ? this._schemeCache = this._computeScheme$0() : t1;
  42901. },
  42902. _computeScheme$0() {
  42903. var t2, _this = this,
  42904. t1 = _this._schemeEnd;
  42905. if (t1 <= 0)
  42906. return "";
  42907. t2 = t1 === 4;
  42908. if (t2 && B.JSString_methods.startsWith$1(_this._uri, "http"))
  42909. return "http";
  42910. if (t1 === 5 && B.JSString_methods.startsWith$1(_this._uri, "https"))
  42911. return "https";
  42912. if (t2 && B.JSString_methods.startsWith$1(_this._uri, "file"))
  42913. return "file";
  42914. if (t1 === 7 && B.JSString_methods.startsWith$1(_this._uri, "package"))
  42915. return "package";
  42916. return B.JSString_methods.substring$2(_this._uri, 0, t1);
  42917. },
  42918. get$userInfo() {
  42919. var t1 = this._hostStart,
  42920. t2 = this._schemeEnd + 3;
  42921. return t1 > t2 ? B.JSString_methods.substring$2(this._uri, t2, t1 - 1) : "";
  42922. },
  42923. get$host() {
  42924. var t1 = this._hostStart;
  42925. return t1 > 0 ? B.JSString_methods.substring$2(this._uri, t1, this._portStart) : "";
  42926. },
  42927. get$port(_) {
  42928. var t1, _this = this;
  42929. if (_this.get$hasPort())
  42930. return A.int_parse(B.JSString_methods.substring$2(_this._uri, _this._portStart + 1, _this._pathStart), null);
  42931. t1 = _this._schemeEnd;
  42932. if (t1 === 4 && B.JSString_methods.startsWith$1(_this._uri, "http"))
  42933. return 80;
  42934. if (t1 === 5 && B.JSString_methods.startsWith$1(_this._uri, "https"))
  42935. return 443;
  42936. return 0;
  42937. },
  42938. get$path(_) {
  42939. return B.JSString_methods.substring$2(this._uri, this._pathStart, this._queryStart);
  42940. },
  42941. get$query() {
  42942. var t1 = this._queryStart,
  42943. t2 = this._fragmentStart;
  42944. return t1 < t2 ? B.JSString_methods.substring$2(this._uri, t1 + 1, t2) : "";
  42945. },
  42946. get$fragment() {
  42947. var t1 = this._fragmentStart,
  42948. t2 = this._uri;
  42949. return t1 < t2.length ? B.JSString_methods.substring$1(t2, t1 + 1) : "";
  42950. },
  42951. get$pathSegments() {
  42952. var parts, i,
  42953. start = this._pathStart,
  42954. end = this._queryStart,
  42955. t1 = this._uri;
  42956. if (B.JSString_methods.startsWith$2(t1, "/", start))
  42957. ++start;
  42958. if (start === end)
  42959. return B.List_empty;
  42960. parts = A._setArrayType([], type$.JSArray_String);
  42961. for (i = start; i < end; ++i)
  42962. if (t1.charCodeAt(i) === 47) {
  42963. parts.push(B.JSString_methods.substring$2(t1, start, i));
  42964. start = i + 1;
  42965. }
  42966. parts.push(B.JSString_methods.substring$2(t1, start, end));
  42967. return A.List_List$unmodifiable(parts, type$.String);
  42968. },
  42969. _isPort$1(port) {
  42970. var portDigitStart = this._portStart + 1;
  42971. return portDigitStart + port.length === this._pathStart && B.JSString_methods.startsWith$2(this._uri, port, portDigitStart);
  42972. },
  42973. removeFragment$0() {
  42974. var _this = this,
  42975. t1 = _this._fragmentStart,
  42976. t2 = _this._uri;
  42977. if (t1 >= t2.length)
  42978. return _this;
  42979. return new A._SimpleUri(B.JSString_methods.substring$2(t2, 0, t1), _this._schemeEnd, _this._hostStart, _this._portStart, _this._pathStart, _this._queryStart, t1, _this._schemeCache);
  42980. },
  42981. replace$1$scheme(scheme) {
  42982. var schemeChanged, isFile, t1, userInfo, port, host, t2, path, t3, query, fragment, _this = this, _null = null;
  42983. scheme = A._Uri__makeScheme(scheme, 0, scheme.length);
  42984. schemeChanged = !(_this._schemeEnd === scheme.length && B.JSString_methods.startsWith$1(_this._uri, scheme));
  42985. isFile = scheme === "file";
  42986. t1 = _this._hostStart;
  42987. userInfo = t1 > 0 ? B.JSString_methods.substring$2(_this._uri, _this._schemeEnd + 3, t1) : "";
  42988. port = _this.get$hasPort() ? _this.get$port(0) : _null;
  42989. if (schemeChanged)
  42990. port = A._Uri__makePort(port, scheme);
  42991. t1 = _this._hostStart;
  42992. if (t1 > 0)
  42993. host = B.JSString_methods.substring$2(_this._uri, t1, _this._portStart);
  42994. else
  42995. host = userInfo.length !== 0 || port != null || isFile ? "" : _null;
  42996. t1 = _this._uri;
  42997. t2 = _this._queryStart;
  42998. path = B.JSString_methods.substring$2(t1, _this._pathStart, t2);
  42999. if (!isFile)
  43000. t3 = host != null && path.length !== 0;
  43001. else
  43002. t3 = true;
  43003. if (t3 && !B.JSString_methods.startsWith$1(path, "/"))
  43004. path = "/" + path;
  43005. t3 = _this._fragmentStart;
  43006. query = t2 < t3 ? B.JSString_methods.substring$2(t1, t2 + 1, t3) : _null;
  43007. t2 = _this._fragmentStart;
  43008. fragment = t2 < t1.length ? B.JSString_methods.substring$1(t1, t2 + 1) : _null;
  43009. return A._Uri$_internal(scheme, userInfo, host, port, path, query, fragment);
  43010. },
  43011. resolve$1(_, reference) {
  43012. return this.resolveUri$1(A.Uri_parse(reference));
  43013. },
  43014. resolveUri$1(reference) {
  43015. if (reference instanceof A._SimpleUri)
  43016. return this._simpleMerge$2(this, reference);
  43017. return this._toNonSimple$0().resolveUri$1(reference);
  43018. },
  43019. _simpleMerge$2(base, ref) {
  43020. var t2, t3, t4, isSimple, delta, refStart, basePathStart, packageNameEnd, basePathStart0, baseStart, baseEnd, baseUri, baseStart0, backCount, refStart0, insert,
  43021. t1 = ref._schemeEnd;
  43022. if (t1 > 0)
  43023. return ref;
  43024. t2 = ref._hostStart;
  43025. if (t2 > 0) {
  43026. t3 = base._schemeEnd;
  43027. if (t3 <= 0)
  43028. return ref;
  43029. t4 = t3 === 4;
  43030. if (t4 && B.JSString_methods.startsWith$1(base._uri, "file"))
  43031. isSimple = ref._pathStart !== ref._queryStart;
  43032. else if (t4 && B.JSString_methods.startsWith$1(base._uri, "http"))
  43033. isSimple = !ref._isPort$1("80");
  43034. else
  43035. isSimple = !(t3 === 5 && B.JSString_methods.startsWith$1(base._uri, "https")) || !ref._isPort$1("443");
  43036. if (isSimple) {
  43037. delta = t3 + 1;
  43038. return new A._SimpleUri(B.JSString_methods.substring$2(base._uri, 0, delta) + B.JSString_methods.substring$1(ref._uri, t1 + 1), t3, t2 + delta, ref._portStart + delta, ref._pathStart + delta, ref._queryStart + delta, ref._fragmentStart + delta, base._schemeCache);
  43039. } else
  43040. return this._toNonSimple$0().resolveUri$1(ref);
  43041. }
  43042. refStart = ref._pathStart;
  43043. t1 = ref._queryStart;
  43044. if (refStart === t1) {
  43045. t2 = ref._fragmentStart;
  43046. if (t1 < t2) {
  43047. t3 = base._queryStart;
  43048. delta = t3 - t1;
  43049. return new A._SimpleUri(B.JSString_methods.substring$2(base._uri, 0, t3) + B.JSString_methods.substring$1(ref._uri, t1), base._schemeEnd, base._hostStart, base._portStart, base._pathStart, t1 + delta, t2 + delta, base._schemeCache);
  43050. }
  43051. t1 = ref._uri;
  43052. if (t2 < t1.length) {
  43053. t3 = base._fragmentStart;
  43054. return new A._SimpleUri(B.JSString_methods.substring$2(base._uri, 0, t3) + B.JSString_methods.substring$1(t1, t2), base._schemeEnd, base._hostStart, base._portStart, base._pathStart, base._queryStart, t2 + (t3 - t2), base._schemeCache);
  43055. }
  43056. return base.removeFragment$0();
  43057. }
  43058. t2 = ref._uri;
  43059. if (B.JSString_methods.startsWith$2(t2, "/", refStart)) {
  43060. basePathStart = base._pathStart;
  43061. packageNameEnd = A._SimpleUri__packageNameEnd(this);
  43062. basePathStart0 = packageNameEnd > 0 ? packageNameEnd : basePathStart;
  43063. delta = basePathStart0 - refStart;
  43064. return new A._SimpleUri(B.JSString_methods.substring$2(base._uri, 0, basePathStart0) + B.JSString_methods.substring$1(t2, refStart), base._schemeEnd, base._hostStart, base._portStart, basePathStart, t1 + delta, ref._fragmentStart + delta, base._schemeCache);
  43065. }
  43066. baseStart = base._pathStart;
  43067. baseEnd = base._queryStart;
  43068. if (baseStart === baseEnd && base._hostStart > 0) {
  43069. for (; B.JSString_methods.startsWith$2(t2, "../", refStart);)
  43070. refStart += 3;
  43071. delta = baseStart - refStart + 1;
  43072. return new A._SimpleUri(B.JSString_methods.substring$2(base._uri, 0, baseStart) + "/" + B.JSString_methods.substring$1(t2, refStart), base._schemeEnd, base._hostStart, base._portStart, baseStart, t1 + delta, ref._fragmentStart + delta, base._schemeCache);
  43073. }
  43074. baseUri = base._uri;
  43075. packageNameEnd = A._SimpleUri__packageNameEnd(this);
  43076. if (packageNameEnd >= 0)
  43077. baseStart0 = packageNameEnd;
  43078. else
  43079. for (baseStart0 = baseStart; B.JSString_methods.startsWith$2(baseUri, "../", baseStart0);)
  43080. baseStart0 += 3;
  43081. backCount = 0;
  43082. while (true) {
  43083. refStart0 = refStart + 3;
  43084. if (!(refStart0 <= t1 && B.JSString_methods.startsWith$2(t2, "../", refStart)))
  43085. break;
  43086. ++backCount;
  43087. refStart = refStart0;
  43088. }
  43089. for (insert = ""; baseEnd > baseStart0;) {
  43090. --baseEnd;
  43091. if (baseUri.charCodeAt(baseEnd) === 47) {
  43092. if (backCount === 0) {
  43093. insert = "/";
  43094. break;
  43095. }
  43096. --backCount;
  43097. insert = "/";
  43098. }
  43099. }
  43100. if (baseEnd === baseStart0 && base._schemeEnd <= 0 && !B.JSString_methods.startsWith$2(baseUri, "/", baseStart)) {
  43101. refStart -= backCount * 3;
  43102. insert = "";
  43103. }
  43104. delta = baseEnd - refStart + insert.length;
  43105. return new A._SimpleUri(B.JSString_methods.substring$2(baseUri, 0, baseEnd) + insert + B.JSString_methods.substring$1(t2, refStart), base._schemeEnd, base._hostStart, base._portStart, baseStart, t1 + delta, ref._fragmentStart + delta, base._schemeCache);
  43106. },
  43107. toFilePath$0() {
  43108. var t2, t3, _this = this,
  43109. t1 = _this._schemeEnd;
  43110. if (t1 >= 0) {
  43111. t2 = !(t1 === 4 && B.JSString_methods.startsWith$1(_this._uri, "file"));
  43112. t1 = t2;
  43113. } else
  43114. t1 = false;
  43115. if (t1)
  43116. throw A.wrapException(A.UnsupportedError$("Cannot extract a file path from a " + _this.get$scheme() + " URI"));
  43117. t1 = _this._queryStart;
  43118. t2 = _this._uri;
  43119. if (t1 < t2.length) {
  43120. if (t1 < _this._fragmentStart)
  43121. throw A.wrapException(A.UnsupportedError$(string$.Cannotfq));
  43122. throw A.wrapException(A.UnsupportedError$(string$.Cannotff));
  43123. }
  43124. t3 = $.$get$_Uri__isWindowsCached();
  43125. if (t3)
  43126. t1 = A._Uri__toWindowsFilePath(_this);
  43127. else {
  43128. if (_this._hostStart < _this._portStart)
  43129. A.throwExpression(A.UnsupportedError$(string$.Cannotn));
  43130. t1 = B.JSString_methods.substring$2(t2, _this._pathStart, t1);
  43131. }
  43132. return t1;
  43133. },
  43134. get$hashCode(_) {
  43135. var t1 = this._hashCodeCache;
  43136. return t1 == null ? this._hashCodeCache = B.JSString_methods.get$hashCode(this._uri) : t1;
  43137. },
  43138. $eq(_, other) {
  43139. if (other == null)
  43140. return false;
  43141. if (this === other)
  43142. return true;
  43143. return type$.Uri._is(other) && this._uri === other.toString$0(0);
  43144. },
  43145. _toNonSimple$0() {
  43146. var _this = this, _null = null,
  43147. t1 = _this.get$scheme(),
  43148. t2 = _this.get$userInfo(),
  43149. t3 = _this._hostStart > 0 ? _this.get$host() : _null,
  43150. t4 = _this.get$hasPort() ? _this.get$port(0) : _null,
  43151. t5 = _this._uri,
  43152. t6 = _this._queryStart,
  43153. t7 = B.JSString_methods.substring$2(t5, _this._pathStart, t6),
  43154. t8 = _this._fragmentStart;
  43155. t6 = t6 < t8 ? _this.get$query() : _null;
  43156. return A._Uri$_internal(t1, t2, t3, t4, t7, t6, t8 < t5.length ? _this.get$fragment() : _null);
  43157. },
  43158. toString$0(_) {
  43159. return this._uri;
  43160. },
  43161. $isUri: 1,
  43162. $is_PlatformUri: 1
  43163. };
  43164. A._DataUri.prototype = {};
  43165. A.Expando.prototype = {
  43166. $indexSet(_, object, value) {
  43167. if (object instanceof A._Record)
  43168. A.Expando__badExpandoKey(object);
  43169. this._jsWeakMap.set(object, value);
  43170. },
  43171. toString$0(_) {
  43172. return "Expando:null";
  43173. }
  43174. };
  43175. A.jsify__convert.prototype = {
  43176. call$1(o) {
  43177. var t1, convertedMap, key, convertedList;
  43178. if (A._noJsifyRequired(o))
  43179. return o;
  43180. t1 = this._convertedObjects;
  43181. if (t1.containsKey$1(o))
  43182. return t1.$index(0, o);
  43183. if (type$.Map_of_nullable_Object_and_nullable_Object._is(o)) {
  43184. convertedMap = {};
  43185. t1.$indexSet(0, o, convertedMap);
  43186. for (t1 = J.get$iterator$ax(o.get$keys(o)); t1.moveNext$0();) {
  43187. key = t1.get$current(t1);
  43188. convertedMap[key] = this.call$1(o.$index(0, key));
  43189. }
  43190. return convertedMap;
  43191. } else if (type$.Iterable_nullable_Object._is(o)) {
  43192. convertedList = [];
  43193. t1.$indexSet(0, o, convertedList);
  43194. B.JSArray_methods.addAll$1(convertedList, J.map$1$1$ax(o, this, type$.dynamic));
  43195. return convertedList;
  43196. } else
  43197. return o;
  43198. },
  43199. $signature: 503
  43200. };
  43201. A.promiseToFuture_closure1.prototype = {
  43202. call$1(r) {
  43203. return this.completer.complete$1(r);
  43204. },
  43205. $signature: 70
  43206. };
  43207. A.promiseToFuture_closure2.prototype = {
  43208. call$1(e) {
  43209. if (e == null)
  43210. return this.completer.completeError$1(new A.NullRejectionException(e === undefined));
  43211. return this.completer.completeError$1(e);
  43212. },
  43213. $signature: 70
  43214. };
  43215. A.NullRejectionException.prototype = {
  43216. toString$0(_) {
  43217. return "Promise was rejected with a value of `" + (this.isUndefined ? "undefined" : "null") + "`.";
  43218. },
  43219. $isException: 1
  43220. };
  43221. A._JSRandom.prototype = {
  43222. nextInt$1(max) {
  43223. if (max <= 0 || max > 4294967296)
  43224. throw A.wrapException(A.RangeError$("max must be in range 0 < max \u2264 2^32, was " + max));
  43225. return Math.random() * max >>> 0;
  43226. },
  43227. nextDouble$0() {
  43228. return Math.random();
  43229. }
  43230. };
  43231. A.ArgParser.prototype = {
  43232. addFlag$6$abbr$defaultsTo$help$hide$negatable($name, abbr, defaultsTo, help, hide, negatable) {
  43233. var _null = null;
  43234. this._addOption$12$aliases$hide$negatable($name, abbr, help, _null, _null, _null, defaultsTo, _null, B.OptionType_I6i, B.List_empty, hide, negatable);
  43235. },
  43236. addFlag$2$hide($name, hide) {
  43237. return this.addFlag$6$abbr$defaultsTo$help$hide$negatable($name, null, false, null, hide, true);
  43238. },
  43239. addFlag$2$help($name, help) {
  43240. return this.addFlag$6$abbr$defaultsTo$help$hide$negatable($name, null, false, help, false, true);
  43241. },
  43242. addFlag$3$defaultsTo$help($name, defaultsTo, help) {
  43243. return this.addFlag$6$abbr$defaultsTo$help$hide$negatable($name, null, defaultsTo, help, false, true);
  43244. },
  43245. addFlag$3$help$negatable($name, help, negatable) {
  43246. return this.addFlag$6$abbr$defaultsTo$help$hide$negatable($name, null, false, help, false, negatable);
  43247. },
  43248. addFlag$3$abbr$help($name, abbr, help) {
  43249. return this.addFlag$6$abbr$defaultsTo$help$hide$negatable($name, abbr, false, help, false, true);
  43250. },
  43251. addFlag$4$abbr$help$negatable($name, abbr, help, negatable) {
  43252. return this.addFlag$6$abbr$defaultsTo$help$hide$negatable($name, abbr, false, help, false, negatable);
  43253. },
  43254. addOption$7$abbr$allowed$defaultsTo$help$hide$valueHelp($name, abbr, allowed, defaultsTo, help, hide, valueHelp) {
  43255. this._addOption$12$aliases$hide$mandatory($name, abbr, help, valueHelp, allowed, null, defaultsTo, null, B.OptionType_tew, B.List_empty, hide, false);
  43256. },
  43257. addOption$2$hide($name, hide) {
  43258. var _null = null;
  43259. return this.addOption$7$abbr$allowed$defaultsTo$help$hide$valueHelp($name, _null, _null, _null, _null, hide, _null);
  43260. },
  43261. addOption$6$abbr$allowed$defaultsTo$help$valueHelp($name, abbr, allowed, defaultsTo, help, valueHelp) {
  43262. return this.addOption$7$abbr$allowed$defaultsTo$help$hide$valueHelp($name, abbr, allowed, defaultsTo, help, false, valueHelp);
  43263. },
  43264. addOption$4$allowed$defaultsTo$help($name, allowed, defaultsTo, help) {
  43265. return this.addOption$7$abbr$allowed$defaultsTo$help$hide$valueHelp($name, null, allowed, defaultsTo, help, false, null);
  43266. },
  43267. addMultiOption$7$abbr$allowed$allowedHelp$help$splitCommas$valueHelp($name, abbr, allowed, allowedHelp, help, splitCommas, valueHelp) {
  43268. var t1 = A._setArrayType([], type$.JSArray_String);
  43269. this._addOption$12$aliases$hide$splitCommas($name, abbr, help, valueHelp, allowed, allowedHelp, t1, null, B.OptionType_yPm, B.List_empty, false, splitCommas);
  43270. },
  43271. addMultiOption$5$abbr$help$splitCommas$valueHelp($name, abbr, help, splitCommas, valueHelp) {
  43272. return this.addMultiOption$7$abbr$allowed$allowedHelp$help$splitCommas$valueHelp($name, abbr, null, null, help, splitCommas, valueHelp);
  43273. },
  43274. addMultiOption$6$abbr$allowed$allowedHelp$help$valueHelp($name, abbr, allowed, allowedHelp, help, valueHelp) {
  43275. return this.addMultiOption$7$abbr$allowed$allowedHelp$help$splitCommas$valueHelp($name, abbr, allowed, allowedHelp, help, true, valueHelp);
  43276. },
  43277. addMultiOption$2$help($name, help) {
  43278. var _null = null;
  43279. return this.addMultiOption$7$abbr$allowed$allowedHelp$help$splitCommas$valueHelp($name, _null, _null, _null, help, true, _null);
  43280. },
  43281. _addOption$14$aliases$hide$mandatory$negatable$splitCommas($name, abbr, help, valueHelp, allowed, allowedHelp, defaultsTo, callback, type, aliases, hide, mandatory, negatable, splitCommas) {
  43282. var existing, t2, t3, option, _i, _this = this, _null = null,
  43283. t1 = A._setArrayType([$name], type$.JSArray_String);
  43284. B.JSArray_methods.addAll$1(t1, aliases);
  43285. if (B.JSArray_methods.any$1(t1, new A.ArgParser__addOption_closure(_this)))
  43286. throw A.wrapException(A.ArgumentError$('Duplicate option or alias "' + $name + '".', _null));
  43287. t1 = abbr != null;
  43288. if (t1) {
  43289. existing = _this.findByAbbreviation$1(abbr);
  43290. if (existing != null)
  43291. throw A.wrapException(A.ArgumentError$('Abbreviation "' + abbr + '" is already used by "' + existing.name + '".', _null));
  43292. }
  43293. t2 = allowed == null ? _null : A.List_List$unmodifiable(allowed, type$.String);
  43294. if (allowedHelp == null)
  43295. t3 = _null;
  43296. else {
  43297. t3 = type$.String;
  43298. t3 = A.ConstantMap_ConstantMap$from(allowedHelp, t3, t3);
  43299. }
  43300. option = new A.Option($name, abbr, help, valueHelp, t2, t3, defaultsTo, negatable, callback, type, splitCommas == null ? type === B.OptionType_yPm : splitCommas, false, hide);
  43301. if ($name.length === 0)
  43302. A.throwExpression(A.ArgumentError$("Name cannot be empty.", _null));
  43303. else if (B.JSString_methods.startsWith$1($name, "-"))
  43304. A.throwExpression(A.ArgumentError$("Name " + $name + ' cannot start with "-".', _null));
  43305. t2 = $.$get$Option__invalidChars()._nativeRegExp;
  43306. if (t2.test($name))
  43307. A.throwExpression(A.ArgumentError$('Name "' + $name + '" contains invalid characters.', _null));
  43308. if (t1) {
  43309. if (abbr.length !== 1)
  43310. A.throwExpression(A.ArgumentError$("Abbreviation must be null or have length 1.", _null));
  43311. else if (abbr === "-")
  43312. A.throwExpression(A.ArgumentError$('Abbreviation cannot be "-".', _null));
  43313. if (t2.test(abbr))
  43314. A.throwExpression(A.ArgumentError$("Abbreviation is an invalid character.", _null));
  43315. }
  43316. _this._arg_parser$_options.$indexSet(0, $name, option);
  43317. _this._optionsAndSeparators.push(option);
  43318. for (t1 = _this._aliases, _i = 0; false; ++_i)
  43319. t1.$indexSet(0, aliases[_i], $name);
  43320. },
  43321. _addOption$12$aliases$hide$splitCommas($name, abbr, help, valueHelp, allowed, allowedHelp, defaultsTo, callback, type, aliases, hide, splitCommas) {
  43322. return this._addOption$14$aliases$hide$mandatory$negatable$splitCommas($name, abbr, help, valueHelp, allowed, allowedHelp, defaultsTo, callback, type, aliases, hide, false, false, splitCommas);
  43323. },
  43324. _addOption$12$aliases$hide$mandatory($name, abbr, help, valueHelp, allowed, allowedHelp, defaultsTo, callback, type, aliases, hide, mandatory) {
  43325. return this._addOption$14$aliases$hide$mandatory$negatable$splitCommas($name, abbr, help, valueHelp, allowed, allowedHelp, defaultsTo, callback, type, aliases, hide, mandatory, false, null);
  43326. },
  43327. _addOption$12$aliases$hide$negatable($name, abbr, help, valueHelp, allowed, allowedHelp, defaultsTo, callback, type, aliases, hide, negatable) {
  43328. return this._addOption$14$aliases$hide$mandatory$negatable$splitCommas($name, abbr, help, valueHelp, allowed, allowedHelp, defaultsTo, callback, type, aliases, hide, false, negatable, null);
  43329. },
  43330. findByAbbreviation$1(abbr) {
  43331. var t1, t2;
  43332. for (t1 = this.options._map, t1 = t1.get$values(t1), t1 = t1.get$iterator(t1); t1.moveNext$0();) {
  43333. t2 = t1.get$current(t1);
  43334. if (t2.abbr === abbr)
  43335. return t2;
  43336. }
  43337. return null;
  43338. },
  43339. findByNameOrAlias$1($name) {
  43340. var t1 = this._aliases.$index(0, $name);
  43341. if (t1 == null)
  43342. t1 = $name;
  43343. return this.options._map.$index(0, t1);
  43344. }
  43345. };
  43346. A.ArgParser__addOption_closure.prototype = {
  43347. call$1($name) {
  43348. return this.$this.findByNameOrAlias$1($name) != null;
  43349. },
  43350. $signature: 5
  43351. };
  43352. A.ArgParserException.prototype = {};
  43353. A.ArgResults.prototype = {
  43354. $index(_, $name) {
  43355. var t1 = this._parser.options._map;
  43356. if (!t1.containsKey$1($name))
  43357. throw A.wrapException(A.ArgumentError$('Could not find an option named "--' + $name + '".', null));
  43358. t1 = t1.$index(0, $name);
  43359. t1.toString;
  43360. return t1.valueOrDefault$1(this._parsed.$index(0, $name));
  43361. },
  43362. wasParsed$1($name) {
  43363. if (!this._parser.options._map.containsKey$1($name))
  43364. throw A.wrapException(A.ArgumentError$('Could not find an option named "--' + $name + '".', null));
  43365. return this._parsed.containsKey$1($name);
  43366. }
  43367. };
  43368. A.Option.prototype = {
  43369. valueOrDefault$1(value) {
  43370. var t1;
  43371. if (value != null)
  43372. return value;
  43373. if (this.type === B.OptionType_yPm) {
  43374. t1 = this.defaultsTo;
  43375. return t1 == null ? A._setArrayType([], type$.JSArray_String) : t1;
  43376. }
  43377. return this.defaultsTo;
  43378. }
  43379. };
  43380. A.OptionType.prototype = {};
  43381. A.Parser0.prototype = {
  43382. parse$0(_) {
  43383. var commandResults, commandName, commandParser, error, t1, t3, t4, t5, t6, t7, t8, command, exception, _this = this,
  43384. t2 = _this._args;
  43385. t2.toList$0(0);
  43386. commandResults = null;
  43387. for (t3 = _this._parser$_rest, t4 = _this._grammar, t5 = t4.commands, t6 = t2.$ti._precomputed1; !t2.get$isEmpty(0);) {
  43388. t7 = t2._head;
  43389. if (t7 === t2._tail)
  43390. A.throwExpression(A.IterableElementError_noElement());
  43391. t7 = t2._table[t7];
  43392. t8 = t7 == null;
  43393. if ((t8 ? t6._as(t7) : t7) === "--") {
  43394. t2.removeFirst$0();
  43395. break;
  43396. }
  43397. if (t8)
  43398. t7 = t6._as(t7);
  43399. command = t5._map.$index(0, t7);
  43400. if (command != null) {
  43401. t5 = t3.length;
  43402. t7 = t2._head;
  43403. if (t7 === t2._tail)
  43404. A.throwExpression(A.IterableElementError_noElement());
  43405. t7 = t2._table[t7];
  43406. t6 = t7 == null ? t6._as(t7) : t7;
  43407. if (t5 !== 0)
  43408. A.throwExpression(A.ArgParserException$("Cannot specify arguments before a command.", null, t6, null, null));
  43409. commandName = t2.removeFirst$0();
  43410. t5 = type$.JSArray_String;
  43411. t6 = A._setArrayType([], t5);
  43412. B.JSArray_methods.addAll$1(t6, t3);
  43413. commandParser = new A.Parser0(commandName, _this, command, t2, t6, A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.dynamic));
  43414. try {
  43415. commandResults = J.parse$0$z(commandParser);
  43416. } catch (exception) {
  43417. t2 = A.unwrapException(exception);
  43418. if (t2 instanceof A.ArgParserException) {
  43419. error = t2;
  43420. t2 = error.message;
  43421. t1 = A._setArrayType([commandName], t5);
  43422. J.addAll$1$ax(t1, error.commands);
  43423. throw A.wrapException(A.ArgParserException$(t2, t1, error.argumentName, error.source, error.offset));
  43424. } else
  43425. throw exception;
  43426. }
  43427. B.JSArray_methods.clear$0(t3);
  43428. break;
  43429. }
  43430. if (_this._parseSoloOption$0())
  43431. continue;
  43432. if (_this._parseAbbreviation$1(_this))
  43433. continue;
  43434. if (_this._parseLongOption$0())
  43435. continue;
  43436. t3.push(t2.removeFirst$0());
  43437. }
  43438. t4.options._map.forEach$1(0, new A.Parser_parse_closure(_this));
  43439. B.JSArray_methods.addAll$1(t3, t2);
  43440. t2.clear$0(0);
  43441. return new A.ArgResults(t4, _this._results, _this._commandName, new A.UnmodifiableListView(t3, type$.UnmodifiableListView_String));
  43442. },
  43443. _readNextArgAsValue$2(option, arg) {
  43444. var _this = this,
  43445. t1 = _this._args;
  43446. _this._validate$3(!t1.get$isEmpty(0), 'Missing argument for "' + arg + '".', arg);
  43447. _this._setOption$4(_this._results, option, t1.get$first(0), arg);
  43448. t1.removeFirst$0();
  43449. },
  43450. _parseSoloOption$0() {
  43451. var opt,
  43452. t1 = this._args;
  43453. if (t1.get$first(0).length !== 2)
  43454. return false;
  43455. if (!B.JSString_methods.startsWith$1(t1.get$first(0), "-"))
  43456. return false;
  43457. opt = t1.get$first(0)[1];
  43458. if (!A._isLetterOrDigit(opt.charCodeAt(0)))
  43459. return false;
  43460. this._handleSoloOption$1(opt);
  43461. return true;
  43462. },
  43463. _handleSoloOption$1(opt) {
  43464. var t1, _this = this,
  43465. option = _this._grammar.findByAbbreviation$1(opt);
  43466. if (option == null) {
  43467. t1 = _this._parser$_parent;
  43468. _this._validate$3(t1 != null, 'Could not find an option or flag "-' + opt + '".', "-" + opt);
  43469. t1._handleSoloOption$1(opt);
  43470. return true;
  43471. }
  43472. _this._args.removeFirst$0();
  43473. if (option.type === B.OptionType_I6i)
  43474. _this._results.$indexSet(0, option.name, true);
  43475. else
  43476. _this._readNextArgAsValue$2(option, "-" + opt);
  43477. return true;
  43478. },
  43479. _parseAbbreviation$1(innermostCommand) {
  43480. var t2, index, t3, t4, t5, lettersAndDigits, rest,
  43481. t1 = this._args;
  43482. if (t1.get$first(0).length < 2)
  43483. return false;
  43484. if (!B.JSString_methods.startsWith$1(t1.get$first(0), "-"))
  43485. return false;
  43486. t2 = t1.$ti._precomputed1;
  43487. index = 1;
  43488. while (true) {
  43489. t3 = t1._head;
  43490. if (t3 === t1._tail)
  43491. A.throwExpression(A.IterableElementError_noElement());
  43492. t3 = t1._table[t3];
  43493. t4 = t3 == null;
  43494. if (index < (t4 ? t2._as(t3) : t3).length) {
  43495. t5 = true;
  43496. t3 = (t4 ? t2._as(t3) : t3).charCodeAt(index);
  43497. if (!(t3 >= 65 && t3 <= 90))
  43498. if (!(t3 >= 97 && t3 <= 122))
  43499. t3 = t3 >= 48 && t3 <= 57;
  43500. else
  43501. t3 = t5;
  43502. else
  43503. t3 = t5;
  43504. } else
  43505. t3 = false;
  43506. if (!t3)
  43507. break;
  43508. ++index;
  43509. }
  43510. if (index === 1)
  43511. return false;
  43512. lettersAndDigits = B.JSString_methods.substring$2(t1.get$first(0), 1, index);
  43513. rest = B.JSString_methods.substring$1(t1.get$first(0), index);
  43514. if (B.JSString_methods.contains$1(rest, "\n") || B.JSString_methods.contains$1(rest, "\r"))
  43515. return false;
  43516. this._handleAbbreviation$3(lettersAndDigits, rest, innermostCommand);
  43517. return true;
  43518. },
  43519. _handleAbbreviation$3(lettersAndDigits, rest, innermostCommand) {
  43520. var t1, i, i0, _this = this,
  43521. c = B.JSString_methods.substring$2(lettersAndDigits, 0, 1),
  43522. first = _this._grammar.findByAbbreviation$1(c);
  43523. if (first == null) {
  43524. t1 = _this._parser$_parent;
  43525. _this._validate$3(t1 != null, string$.Could_ + c + '".', "-" + c);
  43526. t1._handleAbbreviation$3(lettersAndDigits, rest, innermostCommand);
  43527. return true;
  43528. } else {
  43529. t1 = "-" + c;
  43530. if (first.type !== B.OptionType_I6i)
  43531. _this._setOption$4(_this._results, first, B.JSString_methods.substring$1(lettersAndDigits, 1) + rest, t1);
  43532. else {
  43533. _this._validate$3(rest === "", 'Option "-' + c + '" is a flag and cannot handle value "' + B.JSString_methods.substring$1(lettersAndDigits, 1) + rest + '".', t1);
  43534. for (t1 = lettersAndDigits.length, i = 0; i < t1; i = i0) {
  43535. i0 = i + 1;
  43536. innermostCommand._parseShortFlag$1(B.JSString_methods.substring$2(lettersAndDigits, i, i0));
  43537. }
  43538. }
  43539. }
  43540. _this._args.removeFirst$0();
  43541. return true;
  43542. },
  43543. _parseShortFlag$1(c) {
  43544. var t1, _this = this,
  43545. option = _this._grammar.findByAbbreviation$1(c);
  43546. if (option == null) {
  43547. t1 = _this._parser$_parent;
  43548. _this._validate$3(t1 != null, string$.Could_ + c + '".', "-" + c);
  43549. t1._parseShortFlag$1(c);
  43550. return;
  43551. }
  43552. _this._validate$3(option.type === B.OptionType_I6i, 'Option "-' + c + '" must be a flag to be in a collapsed "-".', "-" + c);
  43553. _this._results.$indexSet(0, option.name, true);
  43554. },
  43555. _parseLongOption$0() {
  43556. var index, t2, $name, t3, i, t4, t5, value,
  43557. t1 = this._args;
  43558. if (!B.JSString_methods.startsWith$1(t1.get$first(0), "--"))
  43559. return false;
  43560. index = B.JSString_methods.indexOf$1(t1.get$first(0), "=");
  43561. t2 = index === -1;
  43562. $name = t2 ? B.JSString_methods.substring$1(t1.get$first(0), 2) : B.JSString_methods.substring$2(t1.get$first(0), 2, index);
  43563. for (t3 = $name.length, i = 0; i !== t3; ++i) {
  43564. t4 = $name.charCodeAt(i);
  43565. t5 = true;
  43566. if (!(t4 >= 65 && t4 <= 90))
  43567. if (!(t4 >= 97 && t4 <= 122))
  43568. t5 = t4 >= 48 && t4 <= 57;
  43569. if (!(t5 || t4 === 45 || t4 === 95))
  43570. return false;
  43571. }
  43572. value = t2 ? null : B.JSString_methods.substring$1(t1.get$first(0), index + 1);
  43573. if (value != null)
  43574. t1 = B.JSString_methods.contains$1(value, "\n") || B.JSString_methods.contains$1(value, "\r");
  43575. else
  43576. t1 = false;
  43577. if (t1)
  43578. return false;
  43579. this._handleLongOption$2($name, value);
  43580. return true;
  43581. },
  43582. _handleLongOption$2($name, value) {
  43583. var _this = this,
  43584. _s34_ = 'Could not find an option named "--',
  43585. t1 = _this._grammar,
  43586. option = t1.findByNameOrAlias$1($name);
  43587. if (option != null) {
  43588. _this._args.removeFirst$0();
  43589. if (option.type === B.OptionType_I6i) {
  43590. _this._validate$3(value == null, 'Flag option "--' + $name + '" should not be given a value.', "--" + $name);
  43591. _this._results.$indexSet(0, option.name, true);
  43592. } else {
  43593. t1 = "--" + $name;
  43594. if (value != null)
  43595. _this._setOption$4(_this._results, option, value, t1);
  43596. else
  43597. _this._readNextArgAsValue$2(option, t1);
  43598. }
  43599. } else if (B.JSString_methods.startsWith$1($name, "no-")) {
  43600. option = t1.findByNameOrAlias$1(B.JSString_methods.substring$1($name, 3));
  43601. if (option == null) {
  43602. t1 = _this._parser$_parent;
  43603. _this._validate$3(t1 != null, _s34_ + $name + '".', "--" + $name);
  43604. t1._handleLongOption$2($name, value);
  43605. return true;
  43606. }
  43607. _this._args.removeFirst$0();
  43608. t1 = "--" + $name;
  43609. _this._validate$3(option.type === B.OptionType_I6i, 'Cannot negate non-flag option "--' + $name + '".', t1);
  43610. _this._validate$3(option.negatable, 'Cannot negate option "--' + $name + '".', t1);
  43611. _this._results.$indexSet(0, option.name, false);
  43612. } else {
  43613. t1 = _this._parser$_parent;
  43614. _this._validate$3(t1 != null, _s34_ + $name + '".', "--" + $name);
  43615. t1._handleLongOption$2($name, value);
  43616. return true;
  43617. }
  43618. return true;
  43619. },
  43620. _validate$3(condition, message, args) {
  43621. if (!condition)
  43622. throw A.wrapException(A.ArgParserException$(message, null, args, null, null));
  43623. },
  43624. _setOption$4(results, option, value, arg) {
  43625. var list, t1, t2, t3, _i, element;
  43626. if (option.type !== B.OptionType_yPm) {
  43627. this._validateAllowed$3(option, value, arg);
  43628. results.$indexSet(0, option.name, value);
  43629. return;
  43630. }
  43631. list = type$.List_dynamic._as(results.putIfAbsent$2(option.name, new A.Parser__setOption_closure()));
  43632. if (option.splitCommas)
  43633. for (t1 = value.split(","), t2 = t1.length, t3 = J.getInterceptor$ax(list), _i = 0; _i < t2; ++_i) {
  43634. element = t1[_i];
  43635. this._validateAllowed$3(option, element, arg);
  43636. t3.add$1(list, element);
  43637. }
  43638. else {
  43639. this._validateAllowed$3(option, value, arg);
  43640. J.add$1$ax(list, value);
  43641. }
  43642. },
  43643. _validateAllowed$3(option, value, arg) {
  43644. var t1 = option.allowed;
  43645. if (t1 == null)
  43646. return;
  43647. this._validate$3(B.JSArray_methods.contains$1(t1, value), '"' + value + '" is not an allowed value for option "' + arg + '".', arg);
  43648. }
  43649. };
  43650. A.Parser_parse_closure.prototype = {
  43651. call$2($name, option) {
  43652. var parsedOption = this.$this._results.$index(0, $name),
  43653. callback = option.callback;
  43654. if (callback == null)
  43655. return;
  43656. callback.call$1(option.valueOrDefault$1(parsedOption));
  43657. },
  43658. $signature: 541
  43659. };
  43660. A.Parser__setOption_closure.prototype = {
  43661. call$0() {
  43662. return A._setArrayType([], type$.JSArray_String);
  43663. },
  43664. $signature: 132
  43665. };
  43666. A._Usage.prototype = {
  43667. get$_columnWidths() {
  43668. var result, _this = this,
  43669. value = _this.___Usage__columnWidths_FI;
  43670. if (value === $) {
  43671. result = _this._calculateColumnWidths$0();
  43672. _this.___Usage__columnWidths_FI !== $ && A.throwUnnamedLateFieldADI();
  43673. _this.___Usage__columnWidths_FI = result;
  43674. value = result;
  43675. }
  43676. return value;
  43677. },
  43678. generate$0() {
  43679. var t1, t2, t3, t4, _i, optionOrSeparator, t5, _this = this;
  43680. for (t1 = _this._usage$_optionsAndSeparators, t2 = t1.length, t3 = type$.Option, t4 = _this._usage$_buffer, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
  43681. optionOrSeparator = t1[_i];
  43682. if (typeof optionOrSeparator == "string") {
  43683. t5 = t4._contents;
  43684. t4._contents = (t5.length !== 0 ? t4._contents = t5 + "\n\n" : t5) + optionOrSeparator;
  43685. _this._newlinesNeeded = 1;
  43686. continue;
  43687. }
  43688. t3._as(optionOrSeparator);
  43689. if (optionOrSeparator.hide)
  43690. continue;
  43691. _this._writeOption$1(optionOrSeparator);
  43692. }
  43693. t1 = t4._contents;
  43694. return t1.charCodeAt(0) == 0 ? t1 : t1;
  43695. },
  43696. _writeOption$1(option) {
  43697. var allowedNames, t2, t3, t4, _i, $name, t5, _this = this,
  43698. t1 = option.abbr;
  43699. _this._write$2(0, t1 == null ? "" : "-" + t1 + ", ");
  43700. t1 = _this._longOption$1(option);
  43701. _this._write$2(1, t1);
  43702. t1 = option.help;
  43703. if (t1 != null)
  43704. _this._write$2(2, t1);
  43705. t1 = option.allowedHelp;
  43706. if (t1 != null) {
  43707. allowedNames = J.toList$0$ax(t1.get$keys(t1));
  43708. B.JSArray_methods.sort$0(allowedNames);
  43709. _this._newline$0();
  43710. for (t2 = allowedNames.length, t3 = option.defaultsTo, t4 = type$.List_dynamic._is(t3), _i = 0; _i < allowedNames.length; allowedNames.length === t2 || (0, A.throwConcurrentModificationError)(allowedNames), ++_i) {
  43711. $name = allowedNames[_i];
  43712. t5 = (t4 ? B.JSArray_methods.contains$1(t3, $name) : t3 === $name) ? " (default)" : "";
  43713. _this._write$2(1, " [" + $name + "]" + t5);
  43714. t5 = t1.$index(0, $name);
  43715. t5.toString;
  43716. _this._write$2(2, t5);
  43717. }
  43718. _this._newline$0();
  43719. } else if (option.allowed != null)
  43720. _this._write$2(2, _this._buildAllowedList$1(option));
  43721. else {
  43722. t1 = option.type;
  43723. if (t1 === B.OptionType_I6i) {
  43724. if (option.defaultsTo === true)
  43725. _this._write$2(2, "(defaults to on)");
  43726. } else if (t1 === B.OptionType_yPm) {
  43727. t1 = option.defaultsTo;
  43728. if (t1 != null && type$.Iterable_dynamic._as(t1).length !== 0) {
  43729. type$.List_dynamic._as(t1);
  43730. _this._write$2(2, "(defaults to " + new A.MappedListIterable(t1, new A._Usage__writeOption_closure(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$1(0, ", ") + ")");
  43731. }
  43732. } else {
  43733. t1 = option.defaultsTo;
  43734. if (t1 != null)
  43735. _this._write$2(2, '(defaults to "' + A.S(t1) + '")');
  43736. }
  43737. }
  43738. },
  43739. _longOption$1(option) {
  43740. var t1 = option.name,
  43741. result = option.negatable ? "--[no-]" + t1 : "--" + t1;
  43742. t1 = option.valueHelp;
  43743. return t1 != null ? result + ("=<" + t1 + ">") : result;
  43744. },
  43745. _calculateColumnWidths$0() {
  43746. var t1, t2, t3, abbr, title, _i, option, t4, t5, t6, t7, t8;
  43747. for (t1 = this._usage$_optionsAndSeparators, t2 = t1.length, t3 = type$.List_dynamic, abbr = 0, title = 0, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
  43748. option = t1[_i];
  43749. if (!(option instanceof A.Option))
  43750. continue;
  43751. if (option.hide)
  43752. continue;
  43753. t4 = option.abbr;
  43754. abbr = Math.max(abbr, (t4 == null ? "" : "-" + t4 + ", ").length);
  43755. t4 = this._longOption$1(option);
  43756. title = Math.max(title, t4.length);
  43757. t4 = option.allowedHelp;
  43758. if (t4 != null)
  43759. for (t4 = J.get$iterator$ax(t4.get$keys(t4)), t5 = option.defaultsTo, t6 = t3._is(t5); t4.moveNext$0();) {
  43760. t7 = t4.get$current(t4);
  43761. t8 = (t6 ? B.JSArray_methods.contains$1(t5, t7) : t5 === t7) ? " (default)" : "";
  43762. title = Math.max(title, (" [" + t7 + "]" + t8).length);
  43763. }
  43764. }
  43765. return A._setArrayType([abbr, title + 4], type$.JSArray_int);
  43766. },
  43767. _newline$0() {
  43768. ++this._newlinesNeeded;
  43769. this._currentColumn = 0;
  43770. },
  43771. _write$2(column, text) {
  43772. var t1, _i,
  43773. lines = A._setArrayType(text.split("\n"), type$.JSArray_String);
  43774. this.get$_columnWidths();
  43775. while (true) {
  43776. if (!(lines.length !== 0 && J.trim$0$s(B.JSArray_methods.get$first(lines)) === ""))
  43777. break;
  43778. B.JSArray_methods.removeAt$1(lines, 0);
  43779. }
  43780. while (true) {
  43781. if (!(lines.length !== 0 && J.trim$0$s(B.JSArray_methods.get$last(lines)) === ""))
  43782. break;
  43783. lines.pop();
  43784. }
  43785. for (t1 = lines.length, _i = 0; _i < lines.length; lines.length === t1 || (0, A.throwConcurrentModificationError)(lines), ++_i)
  43786. this._writeLine$2(column, lines[_i]);
  43787. },
  43788. _writeLine$2(column, text) {
  43789. var t1, t2, _this = this;
  43790. for (t1 = _this._usage$_buffer; t2 = _this._newlinesNeeded, t2 > 0;) {
  43791. t1._contents += "\n";
  43792. _this._newlinesNeeded = t2 - 1;
  43793. }
  43794. for (; t2 = _this._currentColumn, t2 !== column;) {
  43795. if (t2 < 2) {
  43796. t2 = B.JSString_methods.$mul(" ", _this.get$_columnWidths()[_this._currentColumn]);
  43797. t1._contents += t2;
  43798. } else
  43799. t1._contents += "\n";
  43800. _this._currentColumn = (_this._currentColumn + 1) % 3;
  43801. }
  43802. _this.get$_columnWidths();
  43803. if (column < 2) {
  43804. t2 = B.JSString_methods.padRight$1(text, _this.get$_columnWidths()[column]);
  43805. t1._contents += t2;
  43806. } else
  43807. t1._contents += text;
  43808. _this._currentColumn = (_this._currentColumn + 1) % 3;
  43809. if (column === 2)
  43810. ++_this._newlinesNeeded;
  43811. },
  43812. _buildAllowedList$1(option) {
  43813. var t2, t3, first, _i, allowed,
  43814. t1 = option.defaultsTo,
  43815. isDefault = type$.List_dynamic._is(t1) ? B.JSArray_methods.get$contains(t1) : new A._Usage__buildAllowedList_closure(option);
  43816. t1 = "" + "[";
  43817. for (t2 = option.allowed, t3 = t2.length, first = true, _i = 0; _i < t3; ++_i, first = false) {
  43818. allowed = t2[_i];
  43819. if (!first)
  43820. t1 += ", ";
  43821. t1 += A.S(allowed);
  43822. if (isDefault.call$1(allowed))
  43823. t1 += " (default)";
  43824. }
  43825. t1 += "]";
  43826. return t1.charCodeAt(0) == 0 ? t1 : t1;
  43827. }
  43828. };
  43829. A._Usage__writeOption_closure.prototype = {
  43830. call$1(value) {
  43831. return '"' + A.S(value) + '"';
  43832. },
  43833. $signature: 130
  43834. };
  43835. A._Usage__buildAllowedList_closure.prototype = {
  43836. call$1(value) {
  43837. return value === this.option.defaultsTo;
  43838. },
  43839. $signature: 5
  43840. };
  43841. A.FutureGroup.prototype = {
  43842. add$1(_, task) {
  43843. var t1, index, _this = this;
  43844. if (_this._future_group$_closed)
  43845. throw A.wrapException(A.StateError$("The FutureGroup is closed."));
  43846. t1 = _this._future_group$_values;
  43847. index = t1.length;
  43848. t1.push(null);
  43849. ++_this._future_group$_pending;
  43850. task.then$1$1(0, new A.FutureGroup_add_closure(_this, index), type$.Null).catchError$1(new A.FutureGroup_add_closure0(_this));
  43851. },
  43852. close$0(_) {
  43853. var t1, t2, _this = this;
  43854. _this._future_group$_closed = true;
  43855. if (_this._future_group$_pending !== 0)
  43856. return;
  43857. t1 = _this._future_group$_completer;
  43858. if ((t1.future._state & 30) !== 0)
  43859. return;
  43860. t2 = _this.$ti._eval$1("WhereTypeIterable<1>");
  43861. t1.complete$1(A.List_List$of(new A.WhereTypeIterable(_this._future_group$_values, t2), true, t2._eval$1("Iterable.E")));
  43862. }
  43863. };
  43864. A.FutureGroup_add_closure.prototype = {
  43865. call$1(value) {
  43866. var t3, t4,
  43867. t1 = this.$this,
  43868. t2 = t1._future_group$_completer;
  43869. if ((t2.future._state & 30) !== 0)
  43870. return null;
  43871. t3 = --t1._future_group$_pending;
  43872. t4 = t1._future_group$_values;
  43873. t4[this.index] = value;
  43874. if (t3 !== 0)
  43875. return null;
  43876. if (!t1._future_group$_closed)
  43877. return null;
  43878. t1 = t1.$ti._eval$1("WhereTypeIterable<1>");
  43879. t2.complete$1(A.List_List$of(new A.WhereTypeIterable(t4, t1), true, t1._eval$1("Iterable.E")));
  43880. },
  43881. $signature() {
  43882. return this.$this.$ti._eval$1("Null(1)");
  43883. }
  43884. };
  43885. A.FutureGroup_add_closure0.prototype = {
  43886. call$2(error, stackTrace) {
  43887. var t1 = this.$this._future_group$_completer;
  43888. if ((t1.future._state & 30) !== 0)
  43889. return null;
  43890. t1.completeError$2(error, stackTrace);
  43891. },
  43892. $signature: 54
  43893. };
  43894. A.ErrorResult.prototype = {
  43895. complete$1(completer) {
  43896. completer.completeError$2(this.error, this.stackTrace);
  43897. },
  43898. get$hashCode(_) {
  43899. return (J.get$hashCode$(this.error) ^ A.Primitives_objectHashCode(this.stackTrace) ^ 492929599) >>> 0;
  43900. },
  43901. $eq(_, other) {
  43902. if (other == null)
  43903. return false;
  43904. return other instanceof A.ErrorResult && J.$eq$(this.error, other.error) && this.stackTrace === other.stackTrace;
  43905. },
  43906. $isResult: 1
  43907. };
  43908. A.ValueResult.prototype = {
  43909. complete$1(completer) {
  43910. completer.complete$1(this.value);
  43911. },
  43912. get$hashCode(_) {
  43913. return (J.get$hashCode$(this.value) ^ 842997089) >>> 0;
  43914. },
  43915. $eq(_, other) {
  43916. if (other == null)
  43917. return false;
  43918. return other instanceof A.ValueResult && J.$eq$(this.value, other.value);
  43919. },
  43920. $isResult: 1
  43921. };
  43922. A.StreamCompleter.prototype = {
  43923. setSourceStream$1(sourceStream) {
  43924. var t1 = this._stream_completer$_stream;
  43925. if (t1._sourceStream != null)
  43926. throw A.wrapException(A.StateError$("Source stream already set"));
  43927. t1._sourceStream = sourceStream;
  43928. if (t1._stream_completer$_controller != null)
  43929. t1._linkStreamToController$0();
  43930. },
  43931. setError$2(error, stackTrace) {
  43932. var t1 = this.$ti._precomputed1;
  43933. this.setSourceStream$1(A.Stream_Stream$fromFuture(A.Future_Future$error(error, stackTrace, t1), t1));
  43934. },
  43935. setError$1(error) {
  43936. return this.setError$2(error, null);
  43937. }
  43938. };
  43939. A._CompleterStream.prototype = {
  43940. listen$4$cancelOnError$onDone$onError(_, onData, cancelOnError, onDone, onError) {
  43941. var sourceStream, t1, _this = this, _null = null;
  43942. if (_this._stream_completer$_controller == null) {
  43943. sourceStream = _this._sourceStream;
  43944. if (sourceStream != null && !sourceStream.get$isBroadcast())
  43945. return sourceStream.listen$4$cancelOnError$onDone$onError(0, onData, cancelOnError, onDone, onError);
  43946. if (_this._stream_completer$_controller == null)
  43947. _this._stream_completer$_controller = A.StreamController_StreamController(_null, _null, _null, _null, true, _this.$ti._precomputed1);
  43948. if (_this._sourceStream != null)
  43949. _this._linkStreamToController$0();
  43950. }
  43951. t1 = _this._stream_completer$_controller;
  43952. t1.toString;
  43953. return new A._ControllerStream(t1, A._instanceType(t1)._eval$1("_ControllerStream<1>")).listen$4$cancelOnError$onDone$onError(0, onData, cancelOnError, onDone, onError);
  43954. },
  43955. listen$1(_, onData) {
  43956. return this.listen$4$cancelOnError$onDone$onError(0, onData, null, null, null);
  43957. },
  43958. listen$3$onDone$onError(_, onData, onDone, onError) {
  43959. return this.listen$4$cancelOnError$onDone$onError(0, onData, null, onDone, onError);
  43960. },
  43961. _linkStreamToController$0() {
  43962. var t2,
  43963. t1 = this._stream_completer$_controller;
  43964. t1.toString;
  43965. t2 = this._sourceStream;
  43966. t2.toString;
  43967. t1.addStream$2$cancelOnError(t2, false).whenComplete$1(t1.get$close(t1));
  43968. }
  43969. };
  43970. A.StreamGroup.prototype = {
  43971. add$1(_, stream) {
  43972. var t1, _this = this;
  43973. if (_this._closed)
  43974. throw A.wrapException(A.StateError$("Can't add a Stream to a closed StreamGroup."));
  43975. t1 = _this._stream_group$_state;
  43976. if (t1 === B._StreamGroupState_dormant)
  43977. _this._subscriptions.putIfAbsent$2(stream, new A.StreamGroup_add_closure());
  43978. else if (t1 === B._StreamGroupState_canceled)
  43979. return stream.listen$1(0, null).cancel$0();
  43980. else
  43981. _this._subscriptions.putIfAbsent$2(stream, new A.StreamGroup_add_closure0(_this, stream));
  43982. return null;
  43983. },
  43984. remove$1(_, stream) {
  43985. var t1 = this._subscriptions,
  43986. subscription = t1.remove$1(0, stream),
  43987. future = subscription == null ? null : subscription.cancel$0();
  43988. if (t1.__js_helper$_length === 0)
  43989. if (this._closed) {
  43990. t1 = this.__StreamGroup__controller_A;
  43991. t1 === $ && A.throwUnnamedLateFieldNI();
  43992. A.scheduleMicrotask(t1.get$close(t1));
  43993. }
  43994. return future;
  43995. },
  43996. _onListen$0() {
  43997. var stream, t1, t2, t3, _i, entry, exception, _this = this;
  43998. _this._stream_group$_state = B._StreamGroupState_listening;
  43999. for (t1 = _this._subscriptions, t2 = A.List_List$of(t1.get$entries(0), true, _this.$ti._eval$1("MapEntry<Stream<1>,StreamSubscription<1>?>")), t3 = t2.length, _i = 0; _i < t3; ++_i) {
  44000. entry = t2[_i];
  44001. if (entry.value != null)
  44002. continue;
  44003. stream = entry.key;
  44004. try {
  44005. t1.$indexSet(0, stream, _this._listenToStream$1(stream));
  44006. } catch (exception) {
  44007. t1 = _this._onCancel$0();
  44008. if (t1 != null)
  44009. t1.catchError$1(new A.StreamGroup__onListen_closure());
  44010. throw exception;
  44011. }
  44012. }
  44013. },
  44014. _onPause$0() {
  44015. var t1, t2, t3;
  44016. this._stream_group$_state = B._StreamGroupState_paused;
  44017. for (t1 = this._subscriptions.get$values(0), t2 = A._instanceType(t1), t1 = new A.MappedIterator(J.get$iterator$ax(t1.__internal$_iterable), t1._f, t2._eval$1("MappedIterator<1,2>")), t2 = t2._rest[1]; t1.moveNext$0();) {
  44018. t3 = t1.__internal$_current;
  44019. (t3 == null ? t2._as(t3) : t3).pause$0(0);
  44020. }
  44021. },
  44022. _onResume$0() {
  44023. var t1, t2, t3;
  44024. this._stream_group$_state = B._StreamGroupState_listening;
  44025. for (t1 = this._subscriptions.get$values(0), t2 = A._instanceType(t1), t1 = new A.MappedIterator(J.get$iterator$ax(t1.__internal$_iterable), t1._f, t2._eval$1("MappedIterator<1,2>")), t2 = t2._rest[1]; t1.moveNext$0();) {
  44026. t3 = t1.__internal$_current;
  44027. (t3 == null ? t2._as(t3) : t3).resume$0(0);
  44028. }
  44029. },
  44030. _onCancel$0() {
  44031. var t1, t2, futures;
  44032. this._stream_group$_state = B._StreamGroupState_canceled;
  44033. t1 = this._subscriptions;
  44034. t2 = type$.NonNullsIterable_Future_void;
  44035. futures = A.List_List$of(new A.NonNullsIterable(t1.get$entries(0).map$1$1(0, new A.StreamGroup__onCancel_closure(this), type$.nullable_Future_void), t2), true, t2._eval$1("Iterable.E"));
  44036. t1.clear$0(0);
  44037. return futures.length === 0 ? null : A.Future_wait(futures, false, type$.void);
  44038. },
  44039. _listenToStream$1(stream) {
  44040. var subscription,
  44041. t1 = this.__StreamGroup__controller_A;
  44042. t1 === $ && A.throwUnnamedLateFieldNI();
  44043. subscription = stream.listen$3$onDone$onError(0, t1.get$add(t1), new A.StreamGroup__listenToStream_closure(this, stream), t1.get$addError());
  44044. if (this._stream_group$_state === B._StreamGroupState_paused)
  44045. subscription.pause$0(0);
  44046. return subscription;
  44047. }
  44048. };
  44049. A.StreamGroup_add_closure.prototype = {
  44050. call$0() {
  44051. return null;
  44052. },
  44053. $signature: 1
  44054. };
  44055. A.StreamGroup_add_closure0.prototype = {
  44056. call$0() {
  44057. return this.$this._listenToStream$1(this.stream);
  44058. },
  44059. $signature() {
  44060. return this.$this.$ti._eval$1("StreamSubscription<1>()");
  44061. }
  44062. };
  44063. A.StreamGroup__onListen_closure.prototype = {
  44064. call$1(_) {
  44065. },
  44066. $signature: 58
  44067. };
  44068. A.StreamGroup__onCancel_closure.prototype = {
  44069. call$1(entry) {
  44070. var t1, exception,
  44071. subscription = entry.value;
  44072. try {
  44073. if (subscription != null) {
  44074. t1 = subscription.cancel$0();
  44075. return t1;
  44076. }
  44077. t1 = J.listen$1$z(entry.key, null).cancel$0();
  44078. return t1;
  44079. } catch (exception) {
  44080. return null;
  44081. }
  44082. },
  44083. $signature() {
  44084. return this.$this.$ti._eval$1("Future<~>?(MapEntry<Stream<1>,StreamSubscription<1>?>)");
  44085. }
  44086. };
  44087. A.StreamGroup__listenToStream_closure.prototype = {
  44088. call$0() {
  44089. return this.$this.remove$1(0, this.stream);
  44090. },
  44091. $signature: 0
  44092. };
  44093. A._StreamGroupState.prototype = {
  44094. toString$0(_) {
  44095. return this.name;
  44096. }
  44097. };
  44098. A.StreamQueue.prototype = {
  44099. _updateRequests$0() {
  44100. var t1, t2, t3, t4, _this = this;
  44101. for (t1 = _this._requestQueue, t2 = _this._eventQueue, t3 = t1.$ti._precomputed1; !t1.get$isEmpty(0);) {
  44102. t4 = t1._head;
  44103. if (t4 === t1._tail)
  44104. A.throwExpression(A.IterableElementError_noElement());
  44105. t4 = t1._table[t4];
  44106. if (t4 == null)
  44107. t4 = t3._as(t4);
  44108. if (t4.update$2(t2, _this._isDone))
  44109. t1.removeFirst$0();
  44110. else
  44111. return;
  44112. }
  44113. if (!_this._isDone)
  44114. _this._stream_queue$_subscription.pause$0(0);
  44115. },
  44116. _ensureListening$0() {
  44117. var t1, _this = this;
  44118. if (_this._isDone)
  44119. return;
  44120. t1 = _this._stream_queue$_subscription;
  44121. if (t1 == null)
  44122. _this._stream_queue$_subscription = _this._stream_queue$_source.listen$3$onDone$onError(0, new A.StreamQueue__ensureListening_closure(_this), new A.StreamQueue__ensureListening_closure0(_this), new A.StreamQueue__ensureListening_closure1(_this));
  44123. else
  44124. t1.resume$0(0);
  44125. },
  44126. _addResult$1(result) {
  44127. ++this._eventsReceived;
  44128. this._eventQueue._queue_list$_add$1(result);
  44129. this._updateRequests$0();
  44130. },
  44131. _addRequest$1(request) {
  44132. var _this = this,
  44133. t1 = _this._requestQueue;
  44134. if (t1._head === t1._tail) {
  44135. if (request.update$2(_this._eventQueue, _this._isDone))
  44136. return;
  44137. _this._ensureListening$0();
  44138. }
  44139. t1._add$1(request);
  44140. }
  44141. };
  44142. A.StreamQueue__ensureListening_closure.prototype = {
  44143. call$1(data) {
  44144. var t1 = this.$this;
  44145. t1._addResult$1(new A.ValueResult(data, t1.$ti._eval$1("ValueResult<1>")));
  44146. },
  44147. $signature() {
  44148. return this.$this.$ti._eval$1("~(1)");
  44149. }
  44150. };
  44151. A.StreamQueue__ensureListening_closure1.prototype = {
  44152. call$2(error, stackTrace) {
  44153. this.$this._addResult$1(new A.ErrorResult(error, stackTrace));
  44154. },
  44155. $signature: 54
  44156. };
  44157. A.StreamQueue__ensureListening_closure0.prototype = {
  44158. call$0() {
  44159. var t1 = this.$this;
  44160. t1._stream_queue$_subscription = null;
  44161. t1._isDone = true;
  44162. t1._updateRequests$0();
  44163. },
  44164. $signature: 0
  44165. };
  44166. A._NextRequest.prototype = {
  44167. update$2(events, isDone) {
  44168. if (!events.get$isEmpty(events)) {
  44169. events.removeFirst$0().complete$1(this._completer);
  44170. return true;
  44171. }
  44172. if (isDone) {
  44173. this._completer.completeError$2(new A.StateError("No elements"), A.StackTrace_current());
  44174. return true;
  44175. }
  44176. return false;
  44177. },
  44178. $is_EventRequest: 1
  44179. };
  44180. A._isStrictMode_closure.prototype = {
  44181. call$0() {
  44182. var exception;
  44183. try {
  44184. "".name = null;
  44185. return false;
  44186. } catch (exception) {
  44187. return true;
  44188. }
  44189. },
  44190. $signature: 24
  44191. };
  44192. A.Repl.prototype = {};
  44193. A.alwaysValid_closure.prototype = {
  44194. call$1(text) {
  44195. return true;
  44196. },
  44197. $signature: 5
  44198. };
  44199. A.ReplAdapter.prototype = {
  44200. runAsync$0() {
  44201. var rl, runController, _this = this, t1 = {},
  44202. t2 = J.get$isTTY$x(self.process.stdin),
  44203. output = (t2 == null ? false : t2) ? self.process.stdout : null;
  44204. t2 = _this.repl.prompt;
  44205. rl = J.createInterface$1$x($.$get$readline(), {input: self.process.stdin, output: output, prompt: t2});
  44206. _this.rl = rl;
  44207. t1.statement = "";
  44208. t1.prompt = t2;
  44209. runController = A._Cell$();
  44210. runController.__late_helper$_value = A.StreamController_StreamController(_this.get$exit(_this), new A.ReplAdapter_runAsync_closure(t1, _this, rl, runController), null, null, false, type$.String);
  44211. return runController._readLocal$0().get$stream();
  44212. },
  44213. exit$0(_) {
  44214. var t1 = this.rl;
  44215. if (t1 != null)
  44216. J.close$0$x(t1);
  44217. this.rl = null;
  44218. }
  44219. };
  44220. A.ReplAdapter_runAsync_closure.prototype = {
  44221. call$0() {
  44222. var $async$goto = 0,
  44223. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  44224. $async$handler = 1, $async$currentError, $async$self = this, lineController, lineQueue, line, error, stackTrace, t1, t2, t3, t4, $prompt, prompt0, t5, t6, t7, t8, line0, toZone, statement, exception, $async$exception;
  44225. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  44226. if ($async$errorCode === 1) {
  44227. $async$currentError = $async$result;
  44228. $async$goto = $async$handler;
  44229. }
  44230. while (true)
  44231. switch ($async$goto) {
  44232. case 0:
  44233. // Function start
  44234. $async$handler = 3;
  44235. lineController = A.StreamController_StreamController(null, null, null, null, false, type$.String);
  44236. t1 = lineController;
  44237. t2 = A.QueueList$(null, type$.Result_String);
  44238. t3 = A.ListQueue$(type$._EventRequest_dynamic);
  44239. lineQueue = new A.StreamQueue(new A._ControllerStream(t1, A._instanceType(t1)._eval$1("_ControllerStream<1>")), t2, t3, type$.StreamQueue_String);
  44240. t1 = $async$self.rl;
  44241. t2 = J.getInterceptor$x(t1);
  44242. t2.on$2(t1, "line", A.allowInterop(new A.ReplAdapter_runAsync__closure(lineController)));
  44243. t3 = $async$self._box_0, t4 = $async$self.$this.repl, $prompt = t4.continuation, prompt0 = t4.prompt, t5 = $async$self.runController;
  44244. case 6:
  44245. // for condition
  44246. // trivial condition
  44247. t6 = J.get$isTTY$x(self.process.stdin);
  44248. if (t6 == null ? false : t6)
  44249. J.write$1$x(self.process.stdout, t3.prompt);
  44250. t6 = lineQueue;
  44251. t6.toString;
  44252. t7 = t6.$ti;
  44253. t8 = new A._Future($.Zone__current, t7._eval$1("_Future<1>"));
  44254. t6._addRequest$1(new A._NextRequest(new A._AsyncCompleter(t8, t7._eval$1("_AsyncCompleter<1>")), t7._eval$1("_NextRequest<1>")));
  44255. $async$goto = 8;
  44256. return A._asyncAwait(t8, $async$call$0);
  44257. case 8:
  44258. // returning from await.
  44259. line = $async$result;
  44260. t6 = J.get$isTTY$x(self.process.stdin);
  44261. if (!(t6 == null ? false : t6)) {
  44262. line0 = t3.prompt + A.S(line);
  44263. toZone = $.printToZone;
  44264. if (toZone == null)
  44265. A.printString(line0);
  44266. else
  44267. toZone.call$1(line0);
  44268. }
  44269. statement = B.JSString_methods.$add(t3.statement, line);
  44270. t3.statement = statement;
  44271. if (t4.validator.call$1(statement)) {
  44272. t6 = t5.__late_helper$_value;
  44273. if (t6 === t5)
  44274. A.throwExpression(A.LateError$localNI(""));
  44275. J.add$1$ax(t6, t3.statement);
  44276. t3.statement = "";
  44277. t3.prompt = prompt0;
  44278. t2.setPrompt$1(t1, prompt0);
  44279. } else {
  44280. t3.statement += "\n";
  44281. t3.prompt = $prompt;
  44282. t2.setPrompt$1(t1, $prompt);
  44283. }
  44284. // goto for condition
  44285. $async$goto = 6;
  44286. break;
  44287. case 7:
  44288. // after for
  44289. $async$handler = 1;
  44290. // goto after finally
  44291. $async$goto = 5;
  44292. break;
  44293. case 3:
  44294. // catch
  44295. $async$handler = 2;
  44296. $async$exception = $async$currentError;
  44297. error = A.unwrapException($async$exception);
  44298. stackTrace = A.getTraceFromException($async$exception);
  44299. t1 = $async$self.runController;
  44300. t1._readLocal$0().addError$2(error, stackTrace);
  44301. t2 = $async$self.$this.exit$0(0);
  44302. t2 = A._Future$value(t2, type$.void);
  44303. $async$goto = 9;
  44304. return A._asyncAwait(t2, $async$call$0);
  44305. case 9:
  44306. // returning from await.
  44307. J.close$0$x(t1._readLocal$0());
  44308. // goto after finally
  44309. $async$goto = 5;
  44310. break;
  44311. case 2:
  44312. // uncaught
  44313. // goto rethrow
  44314. $async$goto = 1;
  44315. break;
  44316. case 5:
  44317. // after finally
  44318. // implicit return
  44319. return A._asyncReturn(null, $async$completer);
  44320. case 1:
  44321. // rethrow
  44322. return A._asyncRethrow($async$currentError, $async$completer);
  44323. }
  44324. });
  44325. return A._asyncStartSync($async$call$0, $async$completer);
  44326. },
  44327. $signature: 30
  44328. };
  44329. A.ReplAdapter_runAsync__closure.prototype = {
  44330. call$1(value) {
  44331. return this.lineController.add$1(0, A._asString(value));
  44332. },
  44333. $signature: 70
  44334. };
  44335. A.Stdin.prototype = {};
  44336. A.Stdout.prototype = {};
  44337. A.ReadlineModule.prototype = {};
  44338. A.ReadlineOptions.prototype = {};
  44339. A.ReadlineInterface.prototype = {};
  44340. A.EmptyUnmodifiableSet.prototype = {
  44341. get$iterator(_) {
  44342. return B.C_EmptyIterator;
  44343. },
  44344. get$length(_) {
  44345. return 0;
  44346. },
  44347. contains$1(_, element) {
  44348. return false;
  44349. },
  44350. toSet$0(_) {
  44351. return A.LinkedHashSet_LinkedHashSet$_empty(this.$ti._precomputed1);
  44352. },
  44353. $isEfficientLengthIterable: 1,
  44354. $isSet: 1
  44355. };
  44356. A._EmptyUnmodifiableSet_IterableBase_UnmodifiableSetMixin.prototype = {};
  44357. A.DefaultEquality.prototype = {};
  44358. A.IterableEquality.prototype = {
  44359. equals$2(_, elements1, elements2) {
  44360. var it1, it2, hasNext;
  44361. if (elements1 === elements2)
  44362. return true;
  44363. it1 = J.get$iterator$ax(elements1);
  44364. it2 = J.get$iterator$ax(elements2);
  44365. for (; true;) {
  44366. hasNext = it1.moveNext$0();
  44367. if (hasNext !== it2.moveNext$0())
  44368. return false;
  44369. if (!hasNext)
  44370. return true;
  44371. if (!J.$eq$(it1.get$current(it1), it2.get$current(it2)))
  44372. return false;
  44373. }
  44374. },
  44375. hash$1(elements) {
  44376. var t1, hash, _i;
  44377. for (t1 = elements.length, hash = 0, _i = 0; _i < elements.length; elements.length === t1 || (0, A.throwConcurrentModificationError)(elements), ++_i) {
  44378. hash = hash + J.get$hashCode$(elements[_i]) & 2147483647;
  44379. hash = hash + (hash << 10 >>> 0) & 2147483647;
  44380. hash ^= hash >>> 6;
  44381. }
  44382. hash = hash + (hash << 3 >>> 0) & 2147483647;
  44383. hash ^= hash >>> 11;
  44384. return hash + (hash << 15 >>> 0) & 2147483647;
  44385. }
  44386. };
  44387. A.ListEquality.prototype = {
  44388. equals$2(_, list1, list2) {
  44389. var t1, $length, t2, i;
  44390. if (list1 == null ? list2 == null : list1 === list2)
  44391. return true;
  44392. if (list1 == null || list2 == null)
  44393. return false;
  44394. t1 = J.getInterceptor$asx(list1);
  44395. $length = t1.get$length(list1);
  44396. t2 = J.getInterceptor$asx(list2);
  44397. if ($length !== t2.get$length(list2))
  44398. return false;
  44399. for (i = 0; i < $length; ++i)
  44400. if (!J.$eq$(t1.$index(list1, i), t2.$index(list2, i)))
  44401. return false;
  44402. return true;
  44403. },
  44404. hash$1(list) {
  44405. var hash, i;
  44406. for (hash = 0, i = 0; i < list.length; ++i) {
  44407. hash = hash + J.get$hashCode$(list[i]) & 2147483647;
  44408. hash = hash + (hash << 10 >>> 0) & 2147483647;
  44409. hash ^= hash >>> 6;
  44410. }
  44411. hash = hash + (hash << 3 >>> 0) & 2147483647;
  44412. hash ^= hash >>> 11;
  44413. return hash + (hash << 15 >>> 0) & 2147483647;
  44414. }
  44415. };
  44416. A._MapEntry.prototype = {
  44417. get$hashCode(_) {
  44418. return 3 * J.get$hashCode$(this.key) + 7 * J.get$hashCode$(this.value) & 2147483647;
  44419. },
  44420. $eq(_, other) {
  44421. if (other == null)
  44422. return false;
  44423. return other instanceof A._MapEntry && J.$eq$(this.key, other.key) && J.$eq$(this.value, other.value);
  44424. }
  44425. };
  44426. A.MapEquality.prototype = {
  44427. equals$2(_, map1, map2) {
  44428. var equalElementCounts, t1, key, entry, count;
  44429. if (map1 === map2)
  44430. return true;
  44431. if (map1.get$length(map1) !== map2.get$length(map2))
  44432. return false;
  44433. equalElementCounts = A.HashMap_HashMap(type$._MapEntry, type$.int);
  44434. for (t1 = J.get$iterator$ax(map1.get$keys(map1)); t1.moveNext$0();) {
  44435. key = t1.get$current(t1);
  44436. entry = new A._MapEntry(this, key, map1.$index(0, key));
  44437. count = equalElementCounts.$index(0, entry);
  44438. equalElementCounts.$indexSet(0, entry, (count == null ? 0 : count) + 1);
  44439. }
  44440. for (t1 = J.get$iterator$ax(map2.get$keys(map2)); t1.moveNext$0();) {
  44441. key = t1.get$current(t1);
  44442. entry = new A._MapEntry(this, key, map2.$index(0, key));
  44443. count = equalElementCounts.$index(0, entry);
  44444. if (count == null || count === 0)
  44445. return false;
  44446. equalElementCounts.$indexSet(0, entry, count - 1);
  44447. }
  44448. return true;
  44449. },
  44450. hash$1(map) {
  44451. var t1, t2, hash, key, keyHash, t3;
  44452. for (t1 = J.get$iterator$ax(map.get$keys(map)), t2 = this.$ti._rest[1], hash = 0; t1.moveNext$0();) {
  44453. key = t1.get$current(t1);
  44454. keyHash = J.get$hashCode$(key);
  44455. t3 = map.$index(0, key);
  44456. hash = hash + 3 * keyHash + 7 * J.get$hashCode$(t3 == null ? t2._as(t3) : t3) & 2147483647;
  44457. }
  44458. hash = hash + (hash << 3 >>> 0) & 2147483647;
  44459. hash ^= hash >>> 11;
  44460. return hash + (hash << 15 >>> 0) & 2147483647;
  44461. }
  44462. };
  44463. A.QueueList.prototype = {
  44464. add$1(_, element) {
  44465. this._queue_list$_add$1(element);
  44466. },
  44467. addAll$1(_, iterable) {
  44468. var addCount, $length, t1, endSpace, t2, preSpace, _this = this;
  44469. if (type$.List_dynamic._is(iterable)) {
  44470. addCount = J.get$length$asx(iterable);
  44471. $length = _this.get$length(0);
  44472. t1 = $length + addCount;
  44473. if (t1 >= J.get$length$asx(_this._queue_list$_table)) {
  44474. _this._preGrow$1(t1);
  44475. J.setRange$4$ax(_this._queue_list$_table, $length, t1, iterable, 0);
  44476. _this.set$_queue_list$_tail(_this.get$_queue_list$_tail() + addCount);
  44477. } else {
  44478. endSpace = J.get$length$asx(_this._queue_list$_table) - _this.get$_queue_list$_tail();
  44479. t1 = _this._queue_list$_table;
  44480. t2 = J.getInterceptor$ax(t1);
  44481. if (addCount < endSpace) {
  44482. t2.setRange$4(t1, _this.get$_queue_list$_tail(), _this.get$_queue_list$_tail() + addCount, iterable, 0);
  44483. _this.set$_queue_list$_tail(_this.get$_queue_list$_tail() + addCount);
  44484. } else {
  44485. preSpace = addCount - endSpace;
  44486. t2.setRange$4(t1, _this.get$_queue_list$_tail(), _this.get$_queue_list$_tail() + endSpace, iterable, 0);
  44487. J.setRange$4$ax(_this._queue_list$_table, 0, preSpace, iterable, endSpace);
  44488. _this.set$_queue_list$_tail(preSpace);
  44489. }
  44490. }
  44491. } else
  44492. for (t1 = J.get$iterator$ax(iterable); t1.moveNext$0();)
  44493. _this._queue_list$_add$1(t1.get$current(t1));
  44494. },
  44495. cast$1$0(_, $T) {
  44496. return new A._CastQueueList(this, J.cast$1$0$ax(this._queue_list$_table, $T), -1, -1, A._instanceType(this)._eval$1("@<QueueList.E>")._bind$1($T)._eval$1("_CastQueueList<1,2>"));
  44497. },
  44498. toString$0(_) {
  44499. return A.Iterable_iterableToFullString(this, "{", "}");
  44500. },
  44501. addFirst$1(element) {
  44502. var _this = this;
  44503. _this.set$_queue_list$_head((_this.get$_queue_list$_head() - 1 & J.get$length$asx(_this._queue_list$_table) - 1) >>> 0);
  44504. J.$indexSet$ax(_this._queue_list$_table, _this.get$_queue_list$_head(), element);
  44505. if (_this.get$_queue_list$_head() === _this.get$_queue_list$_tail())
  44506. _this._queue_list$_grow$0();
  44507. },
  44508. removeFirst$0() {
  44509. var result, _this = this;
  44510. if (_this.get$_queue_list$_head() === _this.get$_queue_list$_tail())
  44511. throw A.wrapException(A.StateError$("No element"));
  44512. result = J.$index$asx(_this._queue_list$_table, _this.get$_queue_list$_head());
  44513. if (result == null)
  44514. result = A._instanceType(_this)._eval$1("QueueList.E")._as(result);
  44515. J.$indexSet$ax(_this._queue_list$_table, _this.get$_queue_list$_head(), null);
  44516. _this.set$_queue_list$_head((_this.get$_queue_list$_head() + 1 & J.get$length$asx(_this._queue_list$_table) - 1) >>> 0);
  44517. return result;
  44518. },
  44519. removeLast$0(_) {
  44520. var result, _this = this;
  44521. if (_this.get$_queue_list$_head() === _this.get$_queue_list$_tail())
  44522. throw A.wrapException(A.StateError$("No element"));
  44523. _this.set$_queue_list$_tail((_this.get$_queue_list$_tail() - 1 & J.get$length$asx(_this._queue_list$_table) - 1) >>> 0);
  44524. result = J.$index$asx(_this._queue_list$_table, _this.get$_queue_list$_tail());
  44525. if (result == null)
  44526. result = A._instanceType(_this)._eval$1("QueueList.E")._as(result);
  44527. J.$indexSet$ax(_this._queue_list$_table, _this.get$_queue_list$_tail(), null);
  44528. return result;
  44529. },
  44530. get$length(_) {
  44531. return (this.get$_queue_list$_tail() - this.get$_queue_list$_head() & J.get$length$asx(this._queue_list$_table) - 1) >>> 0;
  44532. },
  44533. set$length(_, value) {
  44534. var delta, newTail, t1, t2, _this = this;
  44535. if (value < 0)
  44536. throw A.wrapException(A.RangeError$("Length " + value + " may not be negative."));
  44537. if (value > _this.get$length(0) && !A._instanceType(_this)._eval$1("QueueList.E")._is(null))
  44538. throw A.wrapException(A.UnsupportedError$("The length can only be increased when the element type is nullable, but the current element type is `" + A.createRuntimeType(A._instanceType(_this)._eval$1("QueueList.E")).toString$0(0) + "`."));
  44539. delta = value - _this.get$length(0);
  44540. if (delta >= 0) {
  44541. if (J.get$length$asx(_this._queue_list$_table) <= value)
  44542. _this._preGrow$1(value);
  44543. _this.set$_queue_list$_tail((_this.get$_queue_list$_tail() + delta & J.get$length$asx(_this._queue_list$_table) - 1) >>> 0);
  44544. return;
  44545. }
  44546. newTail = _this.get$_queue_list$_tail() + delta;
  44547. t1 = _this._queue_list$_table;
  44548. if (newTail >= 0)
  44549. J.fillRange$3$ax(t1, newTail, _this.get$_queue_list$_tail(), null);
  44550. else {
  44551. newTail += J.get$length$asx(t1);
  44552. J.fillRange$3$ax(_this._queue_list$_table, 0, _this.get$_queue_list$_tail(), null);
  44553. t1 = _this._queue_list$_table;
  44554. t2 = J.getInterceptor$asx(t1);
  44555. t2.fillRange$3(t1, newTail, t2.get$length(t1), null);
  44556. }
  44557. _this.set$_queue_list$_tail(newTail);
  44558. },
  44559. $index(_, index) {
  44560. var t1, _this = this;
  44561. if (index < 0 || index >= _this.get$length(0))
  44562. throw A.wrapException(A.RangeError$("Index " + index + " must be in the range [0.." + _this.get$length(0) + ")."));
  44563. t1 = J.$index$asx(_this._queue_list$_table, (_this.get$_queue_list$_head() + index & J.get$length$asx(_this._queue_list$_table) - 1) >>> 0);
  44564. return t1 == null ? A._instanceType(_this)._eval$1("QueueList.E")._as(t1) : t1;
  44565. },
  44566. $indexSet(_, index, value) {
  44567. var _this = this;
  44568. if (index < 0 || index >= _this.get$length(0))
  44569. throw A.wrapException(A.RangeError$("Index " + index + " must be in the range [0.." + _this.get$length(0) + ")."));
  44570. J.$indexSet$ax(_this._queue_list$_table, (_this.get$_queue_list$_head() + index & J.get$length$asx(_this._queue_list$_table) - 1) >>> 0, value);
  44571. },
  44572. _queue_list$_add$1(element) {
  44573. var _this = this;
  44574. J.$indexSet$ax(_this._queue_list$_table, _this.get$_queue_list$_tail(), element);
  44575. _this.set$_queue_list$_tail((_this.get$_queue_list$_tail() + 1 & J.get$length$asx(_this._queue_list$_table) - 1) >>> 0);
  44576. if (_this.get$_queue_list$_head() === _this.get$_queue_list$_tail())
  44577. _this._queue_list$_grow$0();
  44578. },
  44579. _queue_list$_grow$0() {
  44580. var _this = this,
  44581. newTable = A.List_List$filled(J.get$length$asx(_this._queue_list$_table) * 2, null, false, A._instanceType(_this)._eval$1("QueueList.E?")),
  44582. split = J.get$length$asx(_this._queue_list$_table) - _this.get$_queue_list$_head();
  44583. B.JSArray_methods.setRange$4(newTable, 0, split, _this._queue_list$_table, _this.get$_queue_list$_head());
  44584. B.JSArray_methods.setRange$4(newTable, split, split + _this.get$_queue_list$_head(), _this._queue_list$_table, 0);
  44585. _this.set$_queue_list$_head(0);
  44586. _this.set$_queue_list$_tail(J.get$length$asx(_this._queue_list$_table));
  44587. _this._queue_list$_table = newTable;
  44588. },
  44589. _writeToList$1(target) {
  44590. var $length, firstPartSize, _this = this;
  44591. if (_this.get$_queue_list$_head() <= _this.get$_queue_list$_tail()) {
  44592. $length = _this.get$_queue_list$_tail() - _this.get$_queue_list$_head();
  44593. B.JSArray_methods.setRange$4(target, 0, $length, _this._queue_list$_table, _this.get$_queue_list$_head());
  44594. return $length;
  44595. } else {
  44596. firstPartSize = J.get$length$asx(_this._queue_list$_table) - _this.get$_queue_list$_head();
  44597. B.JSArray_methods.setRange$4(target, 0, firstPartSize, _this._queue_list$_table, _this.get$_queue_list$_head());
  44598. B.JSArray_methods.setRange$4(target, firstPartSize, firstPartSize + _this.get$_queue_list$_tail(), _this._queue_list$_table, 0);
  44599. return _this.get$_queue_list$_tail() + firstPartSize;
  44600. }
  44601. },
  44602. _preGrow$1(newElementCount) {
  44603. var _this = this,
  44604. newTable = A.List_List$filled(A.QueueList__nextPowerOf2(newElementCount + B.JSInt_methods._shrOtherPositive$1(newElementCount, 1)), null, false, A._instanceType(_this)._eval$1("QueueList.E?"));
  44605. _this.set$_queue_list$_tail(_this._writeToList$1(newTable));
  44606. _this._queue_list$_table = newTable;
  44607. _this.set$_queue_list$_head(0);
  44608. },
  44609. $isEfficientLengthIterable: 1,
  44610. $isQueue: 1,
  44611. $isIterable: 1,
  44612. $isList: 1,
  44613. get$_queue_list$_head() {
  44614. return this._queue_list$_head;
  44615. },
  44616. get$_queue_list$_tail() {
  44617. return this._queue_list$_tail;
  44618. },
  44619. set$_queue_list$_head(val) {
  44620. return this._queue_list$_head = val;
  44621. },
  44622. set$_queue_list$_tail(val) {
  44623. return this._queue_list$_tail = val;
  44624. }
  44625. };
  44626. A._CastQueueList.prototype = {
  44627. get$_queue_list$_head() {
  44628. return this._queue_list$_delegate.get$_queue_list$_head();
  44629. },
  44630. set$_queue_list$_head(value) {
  44631. this._queue_list$_delegate.set$_queue_list$_head(value);
  44632. },
  44633. get$_queue_list$_tail() {
  44634. return this._queue_list$_delegate.get$_queue_list$_tail();
  44635. },
  44636. set$_queue_list$_tail(value) {
  44637. this._queue_list$_delegate.set$_queue_list$_tail(value);
  44638. }
  44639. };
  44640. A._QueueList_Object_ListMixin.prototype = {};
  44641. A.UnionSet.prototype = {
  44642. get$length(_) {
  44643. var t1 = this.get$_union_set$_iterable().get$length(0);
  44644. return t1;
  44645. },
  44646. get$iterator(_) {
  44647. var t1 = this.get$_union_set$_iterable();
  44648. return t1.get$iterator(t1);
  44649. },
  44650. get$_union_set$_iterable() {
  44651. var t1 = this._sets,
  44652. t2 = this.$ti._precomputed1,
  44653. t3 = A._instanceType(t1)._eval$1("@<1>")._bind$1(t2)._eval$1("ExpandIterable<1,2>");
  44654. t2 = A.LinkedHashSet_LinkedHashSet$_empty(t2);
  44655. return new A.WhereIterable(new A.ExpandIterable(t1, new A.UnionSet__iterable_closure(this), t3), t2.get$add(t2), t3._eval$1("WhereIterable<Iterable.E>"));
  44656. },
  44657. contains$1(_, element) {
  44658. return this._sets.any$1(0, new A.UnionSet_contains_closure(this, element));
  44659. },
  44660. toSet$0(_) {
  44661. var t2, t3, t4,
  44662. t1 = A.LinkedHashSet_LinkedHashSet$_empty(this.$ti._precomputed1);
  44663. for (t2 = this._sets, t2 = A._LinkedHashSetIterator$(t2, t2._modifications, A._instanceType(t2)._precomputed1), t3 = t2.$ti._precomputed1; t2.moveNext$0();) {
  44664. t4 = t2._collection$_current;
  44665. t1.addAll$1(0, t4 == null ? t3._as(t4) : t4);
  44666. }
  44667. return t1;
  44668. }
  44669. };
  44670. A.UnionSet__iterable_closure.prototype = {
  44671. call$1(set) {
  44672. return set;
  44673. },
  44674. $signature() {
  44675. return this.$this.$ti._eval$1("Set<1>(Set<1>)");
  44676. }
  44677. };
  44678. A.UnionSet_contains_closure.prototype = {
  44679. call$1(set) {
  44680. return set.contains$1(0, this.element);
  44681. },
  44682. $signature() {
  44683. return this.$this.$ti._eval$1("bool(Set<1>)");
  44684. }
  44685. };
  44686. A._UnionSet_SetBase_UnmodifiableSetMixin.prototype = {};
  44687. A.UnmodifiableSetView0.prototype = {};
  44688. A.UnmodifiableSetMixin.prototype = {
  44689. add$1(_, value) {
  44690. return A.UnmodifiableSetMixin__throw();
  44691. },
  44692. addAll$1(_, elements) {
  44693. return A.UnmodifiableSetMixin__throw();
  44694. },
  44695. remove$1(_, value) {
  44696. return A.UnmodifiableSetMixin__throw();
  44697. }
  44698. };
  44699. A._UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin.prototype = {};
  44700. A._DelegatingIterableBase.prototype = {
  44701. any$1(_, test) {
  44702. return J.any$1$ax(this.get$_base(), test);
  44703. },
  44704. contains$1(_, element) {
  44705. return J.contains$1$asx(this.get$_base(), element);
  44706. },
  44707. elementAt$1(_, index) {
  44708. return J.elementAt$1$ax(this.get$_base(), index);
  44709. },
  44710. every$1(_, test) {
  44711. return J.every$1$ax(this.get$_base(), test);
  44712. },
  44713. get$first(_) {
  44714. return J.get$first$ax(this.get$_base());
  44715. },
  44716. get$isEmpty(_) {
  44717. return J.get$isEmpty$asx(this.get$_base());
  44718. },
  44719. get$isNotEmpty(_) {
  44720. return J.get$isNotEmpty$asx(this.get$_base());
  44721. },
  44722. get$iterator(_) {
  44723. return J.get$iterator$ax(this.get$_base());
  44724. },
  44725. get$last(_) {
  44726. return J.get$last$ax(this.get$_base());
  44727. },
  44728. get$length(_) {
  44729. return J.get$length$asx(this.get$_base());
  44730. },
  44731. map$1$1(_, f, $T) {
  44732. return J.map$1$1$ax(this.get$_base(), f, $T);
  44733. },
  44734. get$single(_) {
  44735. return J.get$single$ax(this.get$_base());
  44736. },
  44737. skip$1(_, n) {
  44738. return J.skip$1$ax(this.get$_base(), n);
  44739. },
  44740. take$1(_, n) {
  44741. return J.take$1$ax(this.get$_base(), n);
  44742. },
  44743. toList$1$growable(_, growable) {
  44744. return J.toList$1$growable$ax(this.get$_base(), true);
  44745. },
  44746. toList$0(_) {
  44747. return this.toList$1$growable(0, true);
  44748. },
  44749. toSet$0(_) {
  44750. return J.toSet$0$ax(this.get$_base());
  44751. },
  44752. where$1(_, test) {
  44753. return J.where$1$ax(this.get$_base(), test);
  44754. },
  44755. toString$0(_) {
  44756. return J.toString$0$(this.get$_base());
  44757. },
  44758. $isIterable: 1
  44759. };
  44760. A.DelegatingSet.prototype = {
  44761. add$1(_, value) {
  44762. return this._base.add$1(0, value);
  44763. },
  44764. addAll$1(_, elements) {
  44765. this._base.addAll$1(0, elements);
  44766. },
  44767. toSet$0(_) {
  44768. return new A.DelegatingSet(this._base.toSet$0(0), A._instanceType(this)._eval$1("DelegatingSet<1>"));
  44769. },
  44770. $isEfficientLengthIterable: 1,
  44771. $isSet: 1,
  44772. get$_base() {
  44773. return this._base;
  44774. }
  44775. };
  44776. A.MapKeySet.prototype = {
  44777. get$_base() {
  44778. var t1 = this._baseMap;
  44779. return t1.get$keys(t1);
  44780. },
  44781. contains$1(_, element) {
  44782. return this._baseMap.containsKey$1(element);
  44783. },
  44784. get$isEmpty(_) {
  44785. var t1 = this._baseMap;
  44786. return t1.get$isEmpty(t1);
  44787. },
  44788. get$isNotEmpty(_) {
  44789. var t1 = this._baseMap;
  44790. return t1.get$isNotEmpty(t1);
  44791. },
  44792. get$length(_) {
  44793. var t1 = this._baseMap;
  44794. return t1.get$length(t1);
  44795. },
  44796. toString$0(_) {
  44797. return A.Iterable_iterableToFullString(this, "{", "}");
  44798. },
  44799. difference$1(other) {
  44800. return J.where$1$ax(this.get$_base(), new A.MapKeySet_difference_closure(this, other)).toSet$0(0);
  44801. },
  44802. $isEfficientLengthIterable: 1,
  44803. $isSet: 1
  44804. };
  44805. A.MapKeySet_difference_closure.prototype = {
  44806. call$1(element) {
  44807. return !this.other._source.contains$1(0, element);
  44808. },
  44809. $signature() {
  44810. return this.$this.$ti._eval$1("bool(1)");
  44811. }
  44812. };
  44813. A._MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin.prototype = {};
  44814. A.BufferModule.prototype = {};
  44815. A.BufferConstants.prototype = {};
  44816. A.Buffer.prototype = {};
  44817. A.ConsoleModule.prototype = {};
  44818. A.Console.prototype = {};
  44819. A.EventEmitter.prototype = {};
  44820. A.FS.prototype = {};
  44821. A.FSConstants.prototype = {};
  44822. A.FSWatcher.prototype = {};
  44823. A.ReadStream.prototype = {};
  44824. A.ReadStreamOptions.prototype = {};
  44825. A.WriteStream.prototype = {};
  44826. A.WriteStreamOptions.prototype = {};
  44827. A.FileOptions.prototype = {};
  44828. A.StatOptions.prototype = {};
  44829. A.MkdirOptions.prototype = {};
  44830. A.RmdirOptions.prototype = {};
  44831. A.WatchOptions.prototype = {};
  44832. A.WatchFileOptions.prototype = {};
  44833. A.Stats.prototype = {};
  44834. A.Promise.prototype = {};
  44835. A.Date.prototype = {};
  44836. A.JsError.prototype = {};
  44837. A.Atomics.prototype = {};
  44838. A.Modules.prototype = {};
  44839. A.Module.prototype = {};
  44840. A.Net.prototype = {};
  44841. A.Socket.prototype = {};
  44842. A.NetAddress.prototype = {};
  44843. A.NetServer.prototype = {};
  44844. A.NodeJsError.prototype = {};
  44845. A.JsAssertionError.prototype = {};
  44846. A.JsRangeError.prototype = {};
  44847. A.JsReferenceError.prototype = {};
  44848. A.JsSyntaxError.prototype = {};
  44849. A.JsTypeError.prototype = {};
  44850. A.JsSystemError.prototype = {};
  44851. A.Process.prototype = {};
  44852. A.CPUUsage.prototype = {};
  44853. A.Release.prototype = {};
  44854. A.StreamModule.prototype = {};
  44855. A.Readable.prototype = {};
  44856. A.Writable.prototype = {};
  44857. A.Duplex.prototype = {};
  44858. A.Transform.prototype = {};
  44859. A.WritableOptions.prototype = {};
  44860. A.ReadableOptions.prototype = {};
  44861. A.Immediate.prototype = {};
  44862. A.Timeout.prototype = {};
  44863. A.TTY.prototype = {};
  44864. A.TTYReadStream.prototype = {};
  44865. A.TTYWriteStream.prototype = {};
  44866. A.Util.prototype = {};
  44867. A.promiseToFuture_closure.prototype = {
  44868. call$1(value) {
  44869. this.completer.complete$1(value);
  44870. },
  44871. $signature: 58
  44872. };
  44873. A.promiseToFuture_closure0.prototype = {
  44874. call$1(error) {
  44875. this.completer.completeError$1(error);
  44876. },
  44877. $signature: 58
  44878. };
  44879. A.futureToPromise_closure.prototype = {
  44880. call$2(resolve, reject) {
  44881. this.future.then$1$2$onError(0, new A.futureToPromise__closure(resolve, this.T), reject, type$.dynamic);
  44882. },
  44883. $signature: 298
  44884. };
  44885. A.futureToPromise__closure.prototype = {
  44886. call$1(result) {
  44887. return this.resolve.call$1(result);
  44888. },
  44889. $signature() {
  44890. return this.T._eval$1("@(0)");
  44891. }
  44892. };
  44893. A.Context.prototype = {
  44894. absolute$15(part1, part2, part3, part4, part5, part6, part7, part8, part9, part10, part11, part12, part13, part14, part15) {
  44895. var t1;
  44896. A._validateArgList("absolute", A._setArrayType([part1, part2, part3, part4, part5, part6, part7, part8, part9, part10, part11, part12, part13, part14, part15], type$.JSArray_nullable_String));
  44897. if (part2 == null) {
  44898. t1 = this.style;
  44899. t1 = t1.rootLength$1(part1) > 0 && !t1.isRootRelative$1(part1);
  44900. } else
  44901. t1 = false;
  44902. if (t1)
  44903. return part1;
  44904. t1 = this._context$_current;
  44905. return this.join$16(0, t1 == null ? A.current() : t1, part1, part2, part3, part4, part5, part6, part7, part8, part9, part10, part11, part12, part13, part14, part15);
  44906. },
  44907. absolute$1(part1) {
  44908. var _null = null;
  44909. return this.absolute$15(part1, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null);
  44910. },
  44911. dirname$1(path) {
  44912. var t1, t2,
  44913. parsed = A.ParsedPath_ParsedPath$parse(path, this.style);
  44914. parsed.removeTrailingSeparators$0();
  44915. t1 = parsed.parts;
  44916. t2 = t1.length;
  44917. if (t2 === 0) {
  44918. t1 = parsed.root;
  44919. return t1 == null ? "." : t1;
  44920. }
  44921. if (t2 === 1) {
  44922. t1 = parsed.root;
  44923. return t1 == null ? "." : t1;
  44924. }
  44925. B.JSArray_methods.removeLast$0(t1);
  44926. parsed.separators.pop();
  44927. parsed.removeTrailingSeparators$0();
  44928. return parsed.toString$0(0);
  44929. },
  44930. join$16(_, part1, part2, part3, part4, part5, part6, part7, part8, part9, part10, part11, part12, part13, part14, part15, part16) {
  44931. var parts = A._setArrayType([part1, part2, part3, part4, part5, part6, part7, part8, part9, part10, part11, part12, part13, part14, part15, part16], type$.JSArray_nullable_String);
  44932. A._validateArgList("join", parts);
  44933. return this.joinAll$1(new A.WhereTypeIterable(parts, type$.WhereTypeIterable_String));
  44934. },
  44935. join$2(_, part1, part2) {
  44936. var _null = null;
  44937. return this.join$16(0, part1, part2, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null);
  44938. },
  44939. joinAll$1(parts) {
  44940. var t1, t2, t3, needsSeparator, isAbsoluteAndNotRootRelative, t4, t5, parsed, path;
  44941. for (t1 = J.where$1$ax(parts, new A.Context_joinAll_closure()), t2 = J.get$iterator$ax(t1.__internal$_iterable), t1 = new A.WhereIterator(t2, t1._f), t3 = this.style, needsSeparator = false, isAbsoluteAndNotRootRelative = false, t4 = ""; t1.moveNext$0();) {
  44942. t5 = t2.get$current(t2);
  44943. if (t3.isRootRelative$1(t5) && isAbsoluteAndNotRootRelative) {
  44944. parsed = A.ParsedPath_ParsedPath$parse(t5, t3);
  44945. path = t4.charCodeAt(0) == 0 ? t4 : t4;
  44946. t4 = B.JSString_methods.substring$2(path, 0, t3.rootLength$2$withDrive(path, true));
  44947. parsed.root = t4;
  44948. if (t3.needsSeparator$1(t4))
  44949. parsed.separators[0] = t3.get$separator(t3);
  44950. t4 = "" + parsed.toString$0(0);
  44951. } else if (t3.rootLength$1(t5) > 0) {
  44952. isAbsoluteAndNotRootRelative = !t3.isRootRelative$1(t5);
  44953. t4 = "" + t5;
  44954. } else {
  44955. if (!(t5.length !== 0 && t3.containsSeparator$1(t5[0])))
  44956. if (needsSeparator)
  44957. t4 += t3.get$separator(t3);
  44958. t4 += t5;
  44959. }
  44960. needsSeparator = t3.needsSeparator$1(t5);
  44961. }
  44962. return t4.charCodeAt(0) == 0 ? t4 : t4;
  44963. },
  44964. split$1(_, path) {
  44965. var parsed = A.ParsedPath_ParsedPath$parse(path, this.style),
  44966. t1 = parsed.parts,
  44967. t2 = A._arrayInstanceType(t1)._eval$1("WhereIterable<1>");
  44968. t2 = A.List_List$of(new A.WhereIterable(t1, new A.Context_split_closure(), t2), true, t2._eval$1("Iterable.E"));
  44969. parsed.parts = t2;
  44970. t1 = parsed.root;
  44971. if (t1 != null)
  44972. B.JSArray_methods.insert$2(t2, 0, t1);
  44973. return parsed.parts;
  44974. },
  44975. canonicalize$1(_, path) {
  44976. var t1, parsed;
  44977. path = this.absolute$1(path);
  44978. t1 = this.style;
  44979. if (t1 !== $.$get$Style_windows() && !this._needsNormalization$1(path))
  44980. return path;
  44981. parsed = A.ParsedPath_ParsedPath$parse(path, t1);
  44982. parsed.normalize$1$canonicalize(true);
  44983. return parsed.toString$0(0);
  44984. },
  44985. normalize$1(path) {
  44986. var parsed;
  44987. if (!this._needsNormalization$1(path))
  44988. return path;
  44989. parsed = A.ParsedPath_ParsedPath$parse(path, this.style);
  44990. parsed.normalize$0();
  44991. return parsed.toString$0(0);
  44992. },
  44993. _needsNormalization$1(path) {
  44994. var i, start, previous, t2, t3, previousPrevious, codeUnit, t4,
  44995. t1 = this.style,
  44996. root = t1.rootLength$1(path);
  44997. if (root !== 0) {
  44998. if (t1 === $.$get$Style_windows())
  44999. for (i = 0; i < root; ++i)
  45000. if (path.charCodeAt(i) === 47)
  45001. return true;
  45002. start = root;
  45003. previous = 47;
  45004. } else {
  45005. start = 0;
  45006. previous = null;
  45007. }
  45008. for (t2 = new A.CodeUnits(path)._string, t3 = t2.length, i = start, previousPrevious = null; i < t3; ++i, previousPrevious = previous, previous = codeUnit) {
  45009. codeUnit = t2.charCodeAt(i);
  45010. if (t1.isSeparator$1(codeUnit)) {
  45011. if (t1 === $.$get$Style_windows() && codeUnit === 47)
  45012. return true;
  45013. if (previous != null && t1.isSeparator$1(previous))
  45014. return true;
  45015. if (previous === 46)
  45016. t4 = previousPrevious == null || previousPrevious === 46 || t1.isSeparator$1(previousPrevious);
  45017. else
  45018. t4 = false;
  45019. if (t4)
  45020. return true;
  45021. }
  45022. }
  45023. if (previous == null)
  45024. return true;
  45025. if (t1.isSeparator$1(previous))
  45026. return true;
  45027. if (previous === 46)
  45028. t1 = previousPrevious == null || t1.isSeparator$1(previousPrevious) || previousPrevious === 46;
  45029. else
  45030. t1 = false;
  45031. if (t1)
  45032. return true;
  45033. return false;
  45034. },
  45035. relative$2$from(path, from) {
  45036. var fromParsed, pathParsed, t2, t3, _this = this,
  45037. _s26_ = 'Unable to find a path to "',
  45038. t1 = from == null;
  45039. if (t1 && _this.style.rootLength$1(path) <= 0)
  45040. return _this.normalize$1(path);
  45041. if (t1) {
  45042. t1 = _this._context$_current;
  45043. from = t1 == null ? A.current() : t1;
  45044. } else
  45045. from = _this.absolute$1(from);
  45046. t1 = _this.style;
  45047. if (t1.rootLength$1(from) <= 0 && t1.rootLength$1(path) > 0)
  45048. return _this.normalize$1(path);
  45049. if (t1.rootLength$1(path) <= 0 || t1.isRootRelative$1(path))
  45050. path = _this.absolute$1(path);
  45051. if (t1.rootLength$1(path) <= 0 && t1.rootLength$1(from) > 0)
  45052. throw A.wrapException(A.PathException$(_s26_ + path + '" from "' + from + '".'));
  45053. fromParsed = A.ParsedPath_ParsedPath$parse(from, t1);
  45054. fromParsed.normalize$0();
  45055. pathParsed = A.ParsedPath_ParsedPath$parse(path, t1);
  45056. pathParsed.normalize$0();
  45057. t2 = fromParsed.parts;
  45058. if (t2.length !== 0 && J.$eq$(t2[0], "."))
  45059. return pathParsed.toString$0(0);
  45060. t2 = fromParsed.root;
  45061. t3 = pathParsed.root;
  45062. if (t2 != t3)
  45063. t2 = t2 == null || t3 == null || !t1.pathsEqual$2(t2, t3);
  45064. else
  45065. t2 = false;
  45066. if (t2)
  45067. return pathParsed.toString$0(0);
  45068. while (true) {
  45069. t2 = fromParsed.parts;
  45070. if (t2.length !== 0) {
  45071. t3 = pathParsed.parts;
  45072. t2 = t3.length !== 0 && t1.pathsEqual$2(t2[0], t3[0]);
  45073. } else
  45074. t2 = false;
  45075. if (!t2)
  45076. break;
  45077. B.JSArray_methods.removeAt$1(fromParsed.parts, 0);
  45078. B.JSArray_methods.removeAt$1(fromParsed.separators, 1);
  45079. B.JSArray_methods.removeAt$1(pathParsed.parts, 0);
  45080. B.JSArray_methods.removeAt$1(pathParsed.separators, 1);
  45081. }
  45082. t2 = fromParsed.parts;
  45083. if (t2.length !== 0 && J.$eq$(t2[0], ".."))
  45084. throw A.wrapException(A.PathException$(_s26_ + path + '" from "' + from + '".'));
  45085. t2 = type$.String;
  45086. B.JSArray_methods.insertAll$2(pathParsed.parts, 0, A.List_List$filled(fromParsed.parts.length, "..", false, t2));
  45087. t3 = pathParsed.separators;
  45088. t3[0] = "";
  45089. B.JSArray_methods.insertAll$2(t3, 1, A.List_List$filled(fromParsed.parts.length, t1.get$separator(t1), false, t2));
  45090. t1 = pathParsed.parts;
  45091. t2 = t1.length;
  45092. if (t2 === 0)
  45093. return ".";
  45094. if (t2 > 1 && J.$eq$(B.JSArray_methods.get$last(t1), ".")) {
  45095. B.JSArray_methods.removeLast$0(pathParsed.parts);
  45096. t1 = pathParsed.separators;
  45097. t1.pop();
  45098. t1.pop();
  45099. t1.push("");
  45100. }
  45101. pathParsed.root = "";
  45102. pathParsed.removeTrailingSeparators$0();
  45103. return pathParsed.toString$0(0);
  45104. },
  45105. relative$1(path) {
  45106. return this.relative$2$from(path, null);
  45107. },
  45108. _isWithinOrEquals$2($parent, child) {
  45109. var relative, t1, parentIsAbsolute, childIsAbsolute, childIsRootRelative, parentIsRootRelative, result, exception, _this = this;
  45110. $parent = $parent;
  45111. child = child;
  45112. t1 = _this.style;
  45113. parentIsAbsolute = t1.rootLength$1($parent) > 0;
  45114. childIsAbsolute = t1.rootLength$1(child) > 0;
  45115. if (parentIsAbsolute && !childIsAbsolute) {
  45116. child = _this.absolute$1(child);
  45117. if (t1.isRootRelative$1($parent))
  45118. $parent = _this.absolute$1($parent);
  45119. } else if (childIsAbsolute && !parentIsAbsolute) {
  45120. $parent = _this.absolute$1($parent);
  45121. if (t1.isRootRelative$1(child))
  45122. child = _this.absolute$1(child);
  45123. } else if (childIsAbsolute && parentIsAbsolute) {
  45124. childIsRootRelative = t1.isRootRelative$1(child);
  45125. parentIsRootRelative = t1.isRootRelative$1($parent);
  45126. if (childIsRootRelative && !parentIsRootRelative)
  45127. child = _this.absolute$1(child);
  45128. else if (parentIsRootRelative && !childIsRootRelative)
  45129. $parent = _this.absolute$1($parent);
  45130. }
  45131. result = _this._isWithinOrEqualsFast$2($parent, child);
  45132. if (result !== B._PathRelation_inconclusive)
  45133. return result;
  45134. relative = null;
  45135. try {
  45136. relative = _this.relative$2$from(child, $parent);
  45137. } catch (exception) {
  45138. if (A.unwrapException(exception) instanceof A.PathException)
  45139. return B._PathRelation_different;
  45140. else
  45141. throw exception;
  45142. }
  45143. if (t1.rootLength$1(relative) > 0)
  45144. return B._PathRelation_different;
  45145. if (J.$eq$(relative, "."))
  45146. return B._PathRelation_equal;
  45147. if (J.$eq$(relative, ".."))
  45148. return B._PathRelation_different;
  45149. return J.get$length$asx(relative) >= 3 && J.startsWith$1$s(relative, "..") && t1.isSeparator$1(J.codeUnitAt$1$s(relative, 2)) ? B._PathRelation_different : B._PathRelation_within;
  45150. },
  45151. _isWithinOrEqualsFast$2($parent, child) {
  45152. var t1, parentRootLength, childRootLength, i, t2, t3, childIndex, parentIndex, lastCodeUnit, lastParentSeparator, parentCodeUnit, childCodeUnit, parentIndex0, direction, _this = this;
  45153. if ($parent === ".")
  45154. $parent = "";
  45155. t1 = _this.style;
  45156. parentRootLength = t1.rootLength$1($parent);
  45157. childRootLength = t1.rootLength$1(child);
  45158. if (parentRootLength !== childRootLength)
  45159. return B._PathRelation_different;
  45160. for (i = 0; i < parentRootLength; ++i)
  45161. if (!t1.codeUnitsEqual$2($parent.charCodeAt(i), child.charCodeAt(i)))
  45162. return B._PathRelation_different;
  45163. t2 = child.length;
  45164. t3 = $parent.length;
  45165. childIndex = childRootLength;
  45166. parentIndex = parentRootLength;
  45167. lastCodeUnit = 47;
  45168. lastParentSeparator = null;
  45169. while (true) {
  45170. if (!(parentIndex < t3 && childIndex < t2))
  45171. break;
  45172. c$0: {
  45173. parentCodeUnit = $parent.charCodeAt(parentIndex);
  45174. childCodeUnit = child.charCodeAt(childIndex);
  45175. if (t1.codeUnitsEqual$2(parentCodeUnit, childCodeUnit)) {
  45176. if (t1.isSeparator$1(parentCodeUnit))
  45177. lastParentSeparator = parentIndex;
  45178. ++parentIndex;
  45179. ++childIndex;
  45180. lastCodeUnit = parentCodeUnit;
  45181. break c$0;
  45182. }
  45183. if (t1.isSeparator$1(parentCodeUnit) && t1.isSeparator$1(lastCodeUnit)) {
  45184. parentIndex0 = parentIndex + 1;
  45185. lastParentSeparator = parentIndex;
  45186. parentIndex = parentIndex0;
  45187. break c$0;
  45188. } else if (t1.isSeparator$1(childCodeUnit) && t1.isSeparator$1(lastCodeUnit)) {
  45189. ++childIndex;
  45190. break c$0;
  45191. }
  45192. if (parentCodeUnit === 46 && t1.isSeparator$1(lastCodeUnit)) {
  45193. ++parentIndex;
  45194. if (parentIndex === t3)
  45195. break;
  45196. parentCodeUnit = $parent.charCodeAt(parentIndex);
  45197. if (t1.isSeparator$1(parentCodeUnit)) {
  45198. parentIndex0 = parentIndex + 1;
  45199. lastParentSeparator = parentIndex;
  45200. parentIndex = parentIndex0;
  45201. break c$0;
  45202. }
  45203. if (parentCodeUnit === 46) {
  45204. ++parentIndex;
  45205. if (parentIndex === t3 || t1.isSeparator$1($parent.charCodeAt(parentIndex)))
  45206. return B._PathRelation_inconclusive;
  45207. }
  45208. }
  45209. if (childCodeUnit === 46 && t1.isSeparator$1(lastCodeUnit)) {
  45210. ++childIndex;
  45211. if (childIndex === t2)
  45212. break;
  45213. childCodeUnit = child.charCodeAt(childIndex);
  45214. if (t1.isSeparator$1(childCodeUnit)) {
  45215. ++childIndex;
  45216. break c$0;
  45217. }
  45218. if (childCodeUnit === 46) {
  45219. ++childIndex;
  45220. if (childIndex === t2 || t1.isSeparator$1(child.charCodeAt(childIndex)))
  45221. return B._PathRelation_inconclusive;
  45222. }
  45223. }
  45224. if (_this._pathDirection$2(child, childIndex) !== B._PathDirection_yLX)
  45225. return B._PathRelation_inconclusive;
  45226. if (_this._pathDirection$2($parent, parentIndex) !== B._PathDirection_yLX)
  45227. return B._PathRelation_inconclusive;
  45228. return B._PathRelation_different;
  45229. }
  45230. }
  45231. if (childIndex === t2) {
  45232. if (parentIndex === t3 || t1.isSeparator$1($parent.charCodeAt(parentIndex)))
  45233. lastParentSeparator = parentIndex;
  45234. else if (lastParentSeparator == null)
  45235. lastParentSeparator = Math.max(0, parentRootLength - 1);
  45236. direction = _this._pathDirection$2($parent, lastParentSeparator);
  45237. if (direction === B._PathDirection_8OV)
  45238. return B._PathRelation_equal;
  45239. return direction === B._PathDirection_3KU ? B._PathRelation_inconclusive : B._PathRelation_different;
  45240. }
  45241. direction = _this._pathDirection$2(child, childIndex);
  45242. if (direction === B._PathDirection_8OV)
  45243. return B._PathRelation_equal;
  45244. if (direction === B._PathDirection_3KU)
  45245. return B._PathRelation_inconclusive;
  45246. return t1.isSeparator$1(child.charCodeAt(childIndex)) || t1.isSeparator$1(lastCodeUnit) ? B._PathRelation_within : B._PathRelation_different;
  45247. },
  45248. _pathDirection$2(path, index) {
  45249. var t1, t2, i, depth, reachedRoot, i0, t3;
  45250. for (t1 = path.length, t2 = this.style, i = index, depth = 0, reachedRoot = false; i < t1;) {
  45251. while (true) {
  45252. if (!(i < t1 && t2.isSeparator$1(path.charCodeAt(i))))
  45253. break;
  45254. ++i;
  45255. }
  45256. if (i === t1)
  45257. break;
  45258. i0 = i;
  45259. while (true) {
  45260. if (!(i0 < t1 && !t2.isSeparator$1(path.charCodeAt(i0))))
  45261. break;
  45262. ++i0;
  45263. }
  45264. t3 = i0 - i;
  45265. if (!(t3 === 1 && path.charCodeAt(i) === 46))
  45266. if (t3 === 2 && path.charCodeAt(i) === 46 && path.charCodeAt(i + 1) === 46) {
  45267. --depth;
  45268. if (depth < 0)
  45269. break;
  45270. if (depth === 0)
  45271. reachedRoot = true;
  45272. } else
  45273. ++depth;
  45274. if (i0 === t1)
  45275. break;
  45276. i = i0 + 1;
  45277. }
  45278. if (depth < 0)
  45279. return B._PathDirection_3KU;
  45280. if (depth === 0)
  45281. return B._PathDirection_8OV;
  45282. if (reachedRoot)
  45283. return B._PathDirection_e7w;
  45284. return B._PathDirection_yLX;
  45285. },
  45286. hash$1(path) {
  45287. var result, parsed, t1, _this = this;
  45288. path = _this.absolute$1(path);
  45289. result = _this._hashFast$1(path);
  45290. if (result != null)
  45291. return result;
  45292. parsed = A.ParsedPath_ParsedPath$parse(path, _this.style);
  45293. parsed.normalize$0();
  45294. t1 = _this._hashFast$1(parsed.toString$0(0));
  45295. t1.toString;
  45296. return t1;
  45297. },
  45298. _hashFast$1(path) {
  45299. var t1, t2, hash, beginning, wasSeparator, i, codeUnit, t3, next;
  45300. for (t1 = path.length, t2 = this.style, hash = 4603, beginning = true, wasSeparator = true, i = 0; i < t1; ++i) {
  45301. codeUnit = t2.canonicalizeCodeUnit$1(path.charCodeAt(i));
  45302. if (t2.isSeparator$1(codeUnit)) {
  45303. wasSeparator = true;
  45304. continue;
  45305. }
  45306. if (codeUnit === 46 && wasSeparator) {
  45307. t3 = i + 1;
  45308. if (t3 === t1)
  45309. break;
  45310. next = path.charCodeAt(t3);
  45311. if (t2.isSeparator$1(next))
  45312. continue;
  45313. t3 = false;
  45314. if (!beginning)
  45315. if (next === 46) {
  45316. t3 = i + 2;
  45317. t3 = t3 === t1 || t2.isSeparator$1(path.charCodeAt(t3));
  45318. }
  45319. if (t3)
  45320. return null;
  45321. }
  45322. hash = ((hash & 67108863) * 33 ^ codeUnit) >>> 0;
  45323. beginning = false;
  45324. wasSeparator = false;
  45325. }
  45326. return hash;
  45327. },
  45328. withoutExtension$1(path) {
  45329. var i,
  45330. parsed = A.ParsedPath_ParsedPath$parse(path, this.style);
  45331. for (i = parsed.parts.length - 1; i >= 0; --i)
  45332. if (J.get$length$asx(parsed.parts[i]) !== 0) {
  45333. parsed.parts[i] = parsed._splitExtension$0()[0];
  45334. break;
  45335. }
  45336. return parsed.toString$0(0);
  45337. },
  45338. toUri$1(path) {
  45339. var t2,
  45340. t1 = this.style;
  45341. if (t1.rootLength$1(path) <= 0)
  45342. return t1.relativePathToUri$1(path);
  45343. else {
  45344. t2 = this._context$_current;
  45345. return t1.absolutePathToUri$1(this.join$2(0, t2 == null ? A.current() : t2, path));
  45346. }
  45347. },
  45348. prettyUri$1(uri) {
  45349. var path, rel, _this = this,
  45350. typedUri = A._parseUri(uri);
  45351. if (typedUri.get$scheme() === "file" && _this.style === $.$get$Style_url())
  45352. return typedUri.toString$0(0);
  45353. else if (typedUri.get$scheme() !== "file" && typedUri.get$scheme() !== "" && _this.style !== $.$get$Style_url())
  45354. return typedUri.toString$0(0);
  45355. path = _this.normalize$1(_this.style.pathFromUri$1(A._parseUri(typedUri)));
  45356. rel = _this.relative$1(path);
  45357. return _this.split$1(0, rel).length > _this.split$1(0, path).length ? path : rel;
  45358. }
  45359. };
  45360. A.Context_joinAll_closure.prototype = {
  45361. call$1(part) {
  45362. return part !== "";
  45363. },
  45364. $signature: 5
  45365. };
  45366. A.Context_split_closure.prototype = {
  45367. call$1(part) {
  45368. return part.length !== 0;
  45369. },
  45370. $signature: 5
  45371. };
  45372. A._validateArgList_closure.prototype = {
  45373. call$1(arg) {
  45374. return arg == null ? "null" : '"' + arg + '"';
  45375. },
  45376. $signature: 305
  45377. };
  45378. A._PathDirection.prototype = {
  45379. toString$0(_) {
  45380. return this.name;
  45381. }
  45382. };
  45383. A._PathRelation.prototype = {
  45384. toString$0(_) {
  45385. return this.name;
  45386. }
  45387. };
  45388. A.InternalStyle.prototype = {
  45389. getRoot$1(path) {
  45390. var $length = this.rootLength$1(path);
  45391. if ($length > 0)
  45392. return B.JSString_methods.substring$2(path, 0, $length);
  45393. return this.isRootRelative$1(path) ? path[0] : null;
  45394. },
  45395. relativePathToUri$1(path) {
  45396. var segments, _null = null,
  45397. t1 = path.length;
  45398. if (t1 === 0)
  45399. return A._Uri__Uri(_null, _null, _null, _null);
  45400. segments = A.Context_Context(this).split$1(0, path);
  45401. if (this.isSeparator$1(path.charCodeAt(t1 - 1)))
  45402. B.JSArray_methods.add$1(segments, "");
  45403. return A._Uri__Uri(_null, _null, segments, _null);
  45404. },
  45405. codeUnitsEqual$2(codeUnit1, codeUnit2) {
  45406. return codeUnit1 === codeUnit2;
  45407. },
  45408. pathsEqual$2(path1, path2) {
  45409. return path1 === path2;
  45410. },
  45411. canonicalizeCodeUnit$1(codeUnit) {
  45412. return codeUnit;
  45413. },
  45414. canonicalizePart$1(part) {
  45415. return part;
  45416. }
  45417. };
  45418. A.ParsedPath.prototype = {
  45419. get$basename() {
  45420. var _this = this,
  45421. t1 = type$.String,
  45422. copy = new A.ParsedPath(_this.style, _this.root, _this.isRootRelative, A.List_List$from(_this.parts, true, t1), A.List_List$from(_this.separators, true, t1));
  45423. copy.removeTrailingSeparators$0();
  45424. t1 = copy.parts;
  45425. if (t1.length === 0) {
  45426. t1 = _this.root;
  45427. return t1 == null ? "" : t1;
  45428. }
  45429. return B.JSArray_methods.get$last(t1);
  45430. },
  45431. get$hasTrailingSeparator() {
  45432. var t1 = this.parts;
  45433. if (t1.length !== 0)
  45434. t1 = J.$eq$(B.JSArray_methods.get$last(t1), "") || !J.$eq$(B.JSArray_methods.get$last(this.separators), "");
  45435. else
  45436. t1 = false;
  45437. return t1;
  45438. },
  45439. removeTrailingSeparators$0() {
  45440. var t1, t2, _this = this;
  45441. while (true) {
  45442. t1 = _this.parts;
  45443. if (!(t1.length !== 0 && J.$eq$(B.JSArray_methods.get$last(t1), "")))
  45444. break;
  45445. B.JSArray_methods.removeLast$0(_this.parts);
  45446. _this.separators.pop();
  45447. }
  45448. t1 = _this.separators;
  45449. t2 = t1.length;
  45450. if (t2 !== 0)
  45451. t1[t2 - 1] = "";
  45452. },
  45453. normalize$1$canonicalize(canonicalize) {
  45454. var t1, t2, t3, leadingDoubles, _i, part, t4, _this = this,
  45455. newParts = A._setArrayType([], type$.JSArray_String);
  45456. for (t1 = _this.parts, t2 = t1.length, t3 = _this.style, leadingDoubles = 0, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
  45457. part = t1[_i];
  45458. t4 = J.getInterceptor$(part);
  45459. if (!(t4.$eq(part, ".") || t4.$eq(part, "")))
  45460. if (t4.$eq(part, ".."))
  45461. if (newParts.length !== 0)
  45462. newParts.pop();
  45463. else
  45464. ++leadingDoubles;
  45465. else
  45466. newParts.push(canonicalize ? t3.canonicalizePart$1(part) : part);
  45467. }
  45468. if (_this.root == null)
  45469. B.JSArray_methods.insertAll$2(newParts, 0, A.List_List$filled(leadingDoubles, "..", false, type$.String));
  45470. if (newParts.length === 0 && _this.root == null)
  45471. newParts.push(".");
  45472. _this.parts = newParts;
  45473. _this.separators = A.List_List$filled(newParts.length + 1, t3.get$separator(t3), true, type$.String);
  45474. t1 = _this.root;
  45475. if (t1 == null || newParts.length === 0 || !t3.needsSeparator$1(t1))
  45476. _this.separators[0] = "";
  45477. t1 = _this.root;
  45478. if (t1 != null && t3 === $.$get$Style_windows()) {
  45479. if (canonicalize)
  45480. t1 = _this.root = t1.toLowerCase();
  45481. t1.toString;
  45482. _this.root = A.stringReplaceAllUnchecked(t1, "/", "\\");
  45483. }
  45484. _this.removeTrailingSeparators$0();
  45485. },
  45486. normalize$0() {
  45487. return this.normalize$1$canonicalize(false);
  45488. },
  45489. toString$0(_) {
  45490. var i, _this = this,
  45491. t1 = _this.root;
  45492. t1 = t1 != null ? "" + t1 : "";
  45493. for (i = 0; i < _this.parts.length; ++i)
  45494. t1 = t1 + A.S(_this.separators[i]) + A.S(_this.parts[i]);
  45495. t1 += A.S(B.JSArray_methods.get$last(_this.separators));
  45496. return t1.charCodeAt(0) == 0 ? t1 : t1;
  45497. },
  45498. _kthLastIndexOf$3(path, character, k) {
  45499. var index, count, leftMostIndexedCharacter;
  45500. for (index = path.length - 1, count = 0, leftMostIndexedCharacter = 0; index >= 0; --index)
  45501. if (path[index] === character) {
  45502. ++count;
  45503. if (count === k)
  45504. return index;
  45505. leftMostIndexedCharacter = index;
  45506. }
  45507. return leftMostIndexedCharacter;
  45508. },
  45509. _splitExtension$1(level) {
  45510. var t1, file, lastDot;
  45511. if (level <= 0)
  45512. throw A.wrapException(A.RangeError$value(level, "level", "level's value must be greater than 0"));
  45513. t1 = this.parts;
  45514. t1 = new A.CastList(t1, A._arrayInstanceType(t1)._eval$1("CastList<1,String?>"));
  45515. file = t1.lastWhere$2$orElse(t1, new A.ParsedPath__splitExtension_closure(), new A.ParsedPath__splitExtension_closure0());
  45516. if (file == null)
  45517. return A._setArrayType(["", ""], type$.JSArray_String);
  45518. if (file === "..")
  45519. return A._setArrayType(["..", ""], type$.JSArray_String);
  45520. lastDot = this._kthLastIndexOf$3(file, ".", level);
  45521. if (lastDot <= 0)
  45522. return A._setArrayType([file, ""], type$.JSArray_String);
  45523. return A._setArrayType([B.JSString_methods.substring$2(file, 0, lastDot), B.JSString_methods.substring$1(file, lastDot)], type$.JSArray_String);
  45524. },
  45525. _splitExtension$0() {
  45526. return this._splitExtension$1(1);
  45527. }
  45528. };
  45529. A.ParsedPath__splitExtension_closure.prototype = {
  45530. call$1(p) {
  45531. return p !== "";
  45532. },
  45533. $signature: 229
  45534. };
  45535. A.ParsedPath__splitExtension_closure0.prototype = {
  45536. call$0() {
  45537. return null;
  45538. },
  45539. $signature: 1
  45540. };
  45541. A.PathException.prototype = {
  45542. toString$0(_) {
  45543. return "PathException: " + this.message;
  45544. },
  45545. $isException: 1,
  45546. get$message(receiver) {
  45547. return this.message;
  45548. }
  45549. };
  45550. A.PathMap.prototype = {};
  45551. A.PathMap__create_closure.prototype = {
  45552. call$2(path1, path2) {
  45553. if (path1 == null)
  45554. return path2 == null;
  45555. if (path2 == null)
  45556. return false;
  45557. return this._box_0.context._isWithinOrEquals$2(path1, path2) === B._PathRelation_equal;
  45558. },
  45559. $signature: 316
  45560. };
  45561. A.PathMap__create_closure0.prototype = {
  45562. call$1(path) {
  45563. return path == null ? 0 : this._box_0.context.hash$1(path);
  45564. },
  45565. $signature: 317
  45566. };
  45567. A.PathMap__create_closure1.prototype = {
  45568. call$1(path) {
  45569. return typeof path == "string" || path == null;
  45570. },
  45571. $signature: 180
  45572. };
  45573. A.Style.prototype = {
  45574. toString$0(_) {
  45575. return this.get$name(this);
  45576. }
  45577. };
  45578. A.PosixStyle.prototype = {
  45579. containsSeparator$1(path) {
  45580. return B.JSString_methods.contains$1(path, "/");
  45581. },
  45582. isSeparator$1(codeUnit) {
  45583. return codeUnit === 47;
  45584. },
  45585. needsSeparator$1(path) {
  45586. var t1 = path.length;
  45587. return t1 !== 0 && path.charCodeAt(t1 - 1) !== 47;
  45588. },
  45589. rootLength$2$withDrive(path, withDrive) {
  45590. if (path.length !== 0 && path.charCodeAt(0) === 47)
  45591. return 1;
  45592. return 0;
  45593. },
  45594. rootLength$1(path) {
  45595. return this.rootLength$2$withDrive(path, false);
  45596. },
  45597. isRootRelative$1(path) {
  45598. return false;
  45599. },
  45600. pathFromUri$1(uri) {
  45601. var t1;
  45602. if (uri.get$scheme() === "" || uri.get$scheme() === "file") {
  45603. t1 = uri.get$path(uri);
  45604. return A._Uri__uriDecode(t1, 0, t1.length, B.C_Utf8Codec, false);
  45605. }
  45606. throw A.wrapException(A.ArgumentError$("Uri " + uri.toString$0(0) + " must have scheme 'file:'.", null));
  45607. },
  45608. absolutePathToUri$1(path) {
  45609. var parsed = A.ParsedPath_ParsedPath$parse(path, this),
  45610. t1 = parsed.parts;
  45611. if (t1.length === 0)
  45612. B.JSArray_methods.addAll$1(t1, A._setArrayType(["", ""], type$.JSArray_String));
  45613. else if (parsed.get$hasTrailingSeparator())
  45614. B.JSArray_methods.add$1(parsed.parts, "");
  45615. return A._Uri__Uri(null, null, parsed.parts, "file");
  45616. },
  45617. get$name() {
  45618. return "posix";
  45619. },
  45620. get$separator() {
  45621. return "/";
  45622. }
  45623. };
  45624. A.UrlStyle.prototype = {
  45625. containsSeparator$1(path) {
  45626. return B.JSString_methods.contains$1(path, "/");
  45627. },
  45628. isSeparator$1(codeUnit) {
  45629. return codeUnit === 47;
  45630. },
  45631. needsSeparator$1(path) {
  45632. var t1 = path.length;
  45633. if (t1 === 0)
  45634. return false;
  45635. if (path.charCodeAt(t1 - 1) !== 47)
  45636. return true;
  45637. return B.JSString_methods.endsWith$1(path, "://") && this.rootLength$1(path) === t1;
  45638. },
  45639. rootLength$2$withDrive(path, withDrive) {
  45640. var i, codeUnit, index,
  45641. t1 = path.length;
  45642. if (t1 === 0)
  45643. return 0;
  45644. if (path.charCodeAt(0) === 47)
  45645. return 1;
  45646. for (i = 0; i < t1; ++i) {
  45647. codeUnit = path.charCodeAt(i);
  45648. if (codeUnit === 47)
  45649. return 0;
  45650. if (codeUnit === 58) {
  45651. if (i === 0)
  45652. return 0;
  45653. index = B.JSString_methods.indexOf$2(path, "/", B.JSString_methods.startsWith$2(path, "//", i + 1) ? i + 3 : i);
  45654. if (index <= 0)
  45655. return t1;
  45656. if (!withDrive || t1 < index + 3)
  45657. return index;
  45658. if (!B.JSString_methods.startsWith$1(path, "file://"))
  45659. return index;
  45660. t1 = A.driveLetterEnd(path, index + 1);
  45661. return t1 == null ? index : t1;
  45662. }
  45663. }
  45664. return 0;
  45665. },
  45666. rootLength$1(path) {
  45667. return this.rootLength$2$withDrive(path, false);
  45668. },
  45669. isRootRelative$1(path) {
  45670. return path.length !== 0 && path.charCodeAt(0) === 47;
  45671. },
  45672. pathFromUri$1(uri) {
  45673. return uri.toString$0(0);
  45674. },
  45675. relativePathToUri$1(path) {
  45676. return A.Uri_parse(path);
  45677. },
  45678. absolutePathToUri$1(path) {
  45679. return A.Uri_parse(path);
  45680. },
  45681. get$name() {
  45682. return "url";
  45683. },
  45684. get$separator() {
  45685. return "/";
  45686. }
  45687. };
  45688. A.WindowsStyle.prototype = {
  45689. containsSeparator$1(path) {
  45690. return B.JSString_methods.contains$1(path, "/");
  45691. },
  45692. isSeparator$1(codeUnit) {
  45693. return codeUnit === 47 || codeUnit === 92;
  45694. },
  45695. needsSeparator$1(path) {
  45696. var t1 = path.length;
  45697. if (t1 === 0)
  45698. return false;
  45699. t1 = path.charCodeAt(t1 - 1);
  45700. return !(t1 === 47 || t1 === 92);
  45701. },
  45702. rootLength$2$withDrive(path, withDrive) {
  45703. var index,
  45704. t1 = path.length;
  45705. if (t1 === 0)
  45706. return 0;
  45707. if (path.charCodeAt(0) === 47)
  45708. return 1;
  45709. if (path.charCodeAt(0) === 92) {
  45710. if (t1 < 2 || path.charCodeAt(1) !== 92)
  45711. return 1;
  45712. index = B.JSString_methods.indexOf$2(path, "\\", 2);
  45713. if (index > 0) {
  45714. index = B.JSString_methods.indexOf$2(path, "\\", index + 1);
  45715. if (index > 0)
  45716. return index;
  45717. }
  45718. return t1;
  45719. }
  45720. if (t1 < 3)
  45721. return 0;
  45722. if (!A.isAlphabetic(path.charCodeAt(0)))
  45723. return 0;
  45724. if (path.charCodeAt(1) !== 58)
  45725. return 0;
  45726. t1 = path.charCodeAt(2);
  45727. if (!(t1 === 47 || t1 === 92))
  45728. return 0;
  45729. return 3;
  45730. },
  45731. rootLength$1(path) {
  45732. return this.rootLength$2$withDrive(path, false);
  45733. },
  45734. isRootRelative$1(path) {
  45735. return this.rootLength$1(path) === 1;
  45736. },
  45737. pathFromUri$1(uri) {
  45738. var path, t1;
  45739. if (uri.get$scheme() !== "" && uri.get$scheme() !== "file")
  45740. throw A.wrapException(A.ArgumentError$("Uri " + uri.toString$0(0) + " must have scheme 'file:'.", null));
  45741. path = uri.get$path(uri);
  45742. if (uri.get$host() === "") {
  45743. if (path.length >= 3 && B.JSString_methods.startsWith$1(path, "/") && A.driveLetterEnd(path, 1) != null)
  45744. path = B.JSString_methods.replaceFirst$2(path, "/", "");
  45745. } else
  45746. path = "\\\\" + uri.get$host() + path;
  45747. t1 = A.stringReplaceAllUnchecked(path, "/", "\\");
  45748. return A._Uri__uriDecode(t1, 0, t1.length, B.C_Utf8Codec, false);
  45749. },
  45750. absolutePathToUri$1(path) {
  45751. var rootParts, t2,
  45752. parsed = A.ParsedPath_ParsedPath$parse(path, this),
  45753. t1 = parsed.root;
  45754. t1.toString;
  45755. if (B.JSString_methods.startsWith$1(t1, "\\\\")) {
  45756. rootParts = new A.WhereIterable(A._setArrayType(t1.split("\\"), type$.JSArray_String), new A.WindowsStyle_absolutePathToUri_closure(), type$.WhereIterable_String);
  45757. B.JSArray_methods.insert$2(parsed.parts, 0, rootParts.get$last(0));
  45758. if (parsed.get$hasTrailingSeparator())
  45759. B.JSArray_methods.add$1(parsed.parts, "");
  45760. return A._Uri__Uri(rootParts.get$first(0), null, parsed.parts, "file");
  45761. } else {
  45762. if (parsed.parts.length === 0 || parsed.get$hasTrailingSeparator())
  45763. B.JSArray_methods.add$1(parsed.parts, "");
  45764. t1 = parsed.parts;
  45765. t2 = parsed.root;
  45766. t2.toString;
  45767. t2 = A.stringReplaceAllUnchecked(t2, "/", "");
  45768. B.JSArray_methods.insert$2(t1, 0, A.stringReplaceAllUnchecked(t2, "\\", ""));
  45769. return A._Uri__Uri(null, null, parsed.parts, "file");
  45770. }
  45771. },
  45772. codeUnitsEqual$2(codeUnit1, codeUnit2) {
  45773. var upperCase1;
  45774. if (codeUnit1 === codeUnit2)
  45775. return true;
  45776. if (codeUnit1 === 47)
  45777. return codeUnit2 === 92;
  45778. if (codeUnit1 === 92)
  45779. return codeUnit2 === 47;
  45780. if ((codeUnit1 ^ codeUnit2) !== 32)
  45781. return false;
  45782. upperCase1 = codeUnit1 | 32;
  45783. return upperCase1 >= 97 && upperCase1 <= 122;
  45784. },
  45785. pathsEqual$2(path1, path2) {
  45786. var t1, i;
  45787. if (path1 === path2)
  45788. return true;
  45789. t1 = path1.length;
  45790. if (t1 !== path2.length)
  45791. return false;
  45792. for (i = 0; i < t1; ++i)
  45793. if (!this.codeUnitsEqual$2(path1.charCodeAt(i), path2.charCodeAt(i)))
  45794. return false;
  45795. return true;
  45796. },
  45797. canonicalizeCodeUnit$1(codeUnit) {
  45798. if (codeUnit === 47)
  45799. return 92;
  45800. if (codeUnit < 65)
  45801. return codeUnit;
  45802. if (codeUnit > 90)
  45803. return codeUnit;
  45804. return codeUnit | 32;
  45805. },
  45806. canonicalizePart$1(part) {
  45807. return part.toLowerCase();
  45808. },
  45809. get$name() {
  45810. return "windows";
  45811. },
  45812. get$separator() {
  45813. return "\\";
  45814. }
  45815. };
  45816. A.WindowsStyle_absolutePathToUri_closure.prototype = {
  45817. call$1(part) {
  45818. return part !== "";
  45819. },
  45820. $signature: 5
  45821. };
  45822. A.Version.prototype = {
  45823. get$min() {
  45824. return this;
  45825. },
  45826. get$max() {
  45827. return this;
  45828. },
  45829. get$includeMin() {
  45830. return true;
  45831. },
  45832. get$includeMax() {
  45833. return true;
  45834. },
  45835. $eq(_, other) {
  45836. var _this = this;
  45837. if (other == null)
  45838. return false;
  45839. return other instanceof A.Version && _this.major === other.major && _this.minor === other.minor && _this.patch === other.patch && B.C_IterableEquality.equals$2(0, _this.preRelease, other.preRelease) && B.C_IterableEquality.equals$2(0, _this.build, other.build);
  45840. },
  45841. get$hashCode(_) {
  45842. var _this = this;
  45843. return (_this.major ^ _this.minor ^ _this.patch ^ B.C_IterableEquality.hash$1(_this.preRelease) ^ B.C_IterableEquality.hash$1(_this.build)) >>> 0;
  45844. },
  45845. compareTo$1(_, other) {
  45846. var t1, t2, t3, comparison, _this = this;
  45847. if (other instanceof A.Version) {
  45848. t1 = _this.major;
  45849. t2 = other.major;
  45850. if (t1 !== t2)
  45851. return B.JSInt_methods.compareTo$1(t1, t2);
  45852. t1 = _this.minor;
  45853. t2 = other.minor;
  45854. if (t1 !== t2)
  45855. return B.JSInt_methods.compareTo$1(t1, t2);
  45856. t1 = _this.patch;
  45857. t2 = other.patch;
  45858. if (t1 !== t2)
  45859. return B.JSInt_methods.compareTo$1(t1, t2);
  45860. t1 = _this.preRelease;
  45861. t2 = t1.length === 0;
  45862. if (t2 && other.preRelease.length !== 0)
  45863. return 1;
  45864. t3 = other.preRelease;
  45865. if (t3.length === 0 && !t2)
  45866. return -1;
  45867. comparison = _this._compareLists$2(t1, t3);
  45868. if (comparison !== 0)
  45869. return comparison;
  45870. t1 = _this.build;
  45871. t2 = t1.length === 0;
  45872. if (t2 && other.build.length !== 0)
  45873. return -1;
  45874. t3 = other.build;
  45875. if (t3.length === 0 && !t2)
  45876. return 1;
  45877. return _this._compareLists$2(t1, t3);
  45878. } else
  45879. return -other.compareTo$1(0, _this);
  45880. },
  45881. toString$0(_) {
  45882. return this._version$_text;
  45883. },
  45884. _compareLists$2(a, b) {
  45885. var i, t1, t2, aPart, bPart;
  45886. for (i = 0; t1 = a.length, t2 = b.length, i < Math.max(t1, t2); ++i) {
  45887. aPart = i < t1 ? a[i] : null;
  45888. bPart = i < t2 ? b[i] : null;
  45889. if (J.$eq$(aPart, bPart))
  45890. continue;
  45891. if (aPart == null)
  45892. return -1;
  45893. if (bPart == null)
  45894. return 1;
  45895. if (typeof aPart == "number")
  45896. if (typeof bPart == "number")
  45897. return B.JSNumber_methods.compareTo$1(aPart, bPart);
  45898. else
  45899. return -1;
  45900. else if (typeof bPart == "number")
  45901. return 1;
  45902. else {
  45903. A._asString(aPart);
  45904. A._asString(bPart);
  45905. if (aPart === bPart)
  45906. t1 = 0;
  45907. else
  45908. t1 = aPart < bPart ? -1 : 1;
  45909. return t1;
  45910. }
  45911. }
  45912. return 0;
  45913. },
  45914. $isComparable: 1,
  45915. $isVersionRange: 1
  45916. };
  45917. A.Version__splitParts_closure.prototype = {
  45918. call$1(part) {
  45919. var t1 = A.Primitives_parseInt(part, null);
  45920. return t1 == null ? part : t1;
  45921. },
  45922. $signature: 321
  45923. };
  45924. A.VersionRange.prototype = {
  45925. $eq(_, other) {
  45926. var t1;
  45927. if (other == null)
  45928. return false;
  45929. if (!type$.VersionRange._is(other))
  45930. return false;
  45931. t1 = false;
  45932. if (this.min == other.get$min())
  45933. if (J.$eq$(this.max, other.get$max())) {
  45934. t1 = !other.get$includeMin();
  45935. if (t1)
  45936. other.get$includeMax();
  45937. }
  45938. return t1;
  45939. },
  45940. get$hashCode(_) {
  45941. var t1 = B.JSNull_methods.get$hashCode(this.min),
  45942. t2 = J.get$hashCode$(this.max);
  45943. return (t1 ^ t2 * 3 ^ 1090795 ^ 3633126) >>> 0;
  45944. },
  45945. allows$1(other) {
  45946. var t1 = this.max;
  45947. if (t1 != null)
  45948. if (other.compareTo$1(0, t1) > 0)
  45949. return false;
  45950. return true;
  45951. },
  45952. compareTo$1(_, other) {
  45953. if (other.get$min() == null)
  45954. return this._compareMax$1(other);
  45955. return -1;
  45956. },
  45957. _compareMax$1(other) {
  45958. var t2, result,
  45959. t1 = this.max;
  45960. if (t1 == null) {
  45961. if (other.get$max() == null)
  45962. return 0;
  45963. return 1;
  45964. } else if (other.get$max() == null)
  45965. return -1;
  45966. t2 = other.get$max();
  45967. t2.toString;
  45968. result = t1.compareTo$1(0, t2);
  45969. if (result !== 0)
  45970. return result;
  45971. other.get$includeMax();
  45972. return 0;
  45973. },
  45974. toString$0(_) {
  45975. var t2,
  45976. max = this.max,
  45977. t1 = max == null;
  45978. if (!t1)
  45979. t2 = "" + "<=" + max.toString$0(0);
  45980. else
  45981. t2 = "";
  45982. t1 = t1 ? t2 + "any" : t2;
  45983. return t1.charCodeAt(0) == 0 ? t1 : t1;
  45984. },
  45985. $isComparable: 1,
  45986. get$min() {
  45987. return this.min;
  45988. },
  45989. get$max() {
  45990. return this.max;
  45991. },
  45992. get$includeMin() {
  45993. return this.includeMin;
  45994. },
  45995. get$includeMax() {
  45996. return this.includeMax;
  45997. }
  45998. };
  45999. A.CssMediaQuery.prototype = {
  46000. merge$1(other) {
  46001. var t1, ourModifier, t2, t3, ourType, t4, theirModifier, t5, t6, theirType, t7, t8, negativeConditions, conditions, type, modifier, fewerConditions, fewerConditions0, moreConditions, _this = this, _null = null, _s3_ = "all";
  46002. if (!_this.conjunction || !other.conjunction)
  46003. return B._SingletonCssMediaQueryMergeResult_1;
  46004. t1 = _this.modifier;
  46005. ourModifier = t1 == null ? _null : t1.toLowerCase();
  46006. t2 = _this.type;
  46007. t3 = t2 == null;
  46008. ourType = t3 ? _null : t2.toLowerCase();
  46009. t4 = other.modifier;
  46010. theirModifier = t4 == null ? _null : t4.toLowerCase();
  46011. t5 = other.type;
  46012. t6 = t5 == null;
  46013. theirType = t6 ? _null : t5.toLowerCase();
  46014. t7 = ourType == null;
  46015. if (t7 && theirType == null) {
  46016. t1 = A.List_List$of(_this.conditions, true, type$.String);
  46017. B.JSArray_methods.addAll$1(t1, other.conditions);
  46018. return new A.MediaQuerySuccessfulMergeResult(A.CssMediaQuery$condition(t1, true));
  46019. }
  46020. t8 = ourModifier === "not";
  46021. if (t8 !== (theirModifier === "not")) {
  46022. if (ourType == theirType) {
  46023. negativeConditions = t8 ? _this.conditions : other.conditions;
  46024. if (B.JSArray_methods.every$1(negativeConditions, B.JSArray_methods.get$contains(t8 ? other.conditions : _this.conditions)))
  46025. return B._SingletonCssMediaQueryMergeResult_0;
  46026. else
  46027. return B._SingletonCssMediaQueryMergeResult_1;
  46028. } else if (t3 || A.equalsIgnoreCase(t2, _s3_) || t6 || A.equalsIgnoreCase(t5, _s3_))
  46029. return B._SingletonCssMediaQueryMergeResult_1;
  46030. if (t8) {
  46031. conditions = other.conditions;
  46032. type = theirType;
  46033. modifier = theirModifier;
  46034. } else {
  46035. conditions = _this.conditions;
  46036. type = ourType;
  46037. modifier = ourModifier;
  46038. }
  46039. } else if (t8) {
  46040. if (ourType != theirType)
  46041. return B._SingletonCssMediaQueryMergeResult_1;
  46042. fewerConditions = _this.conditions;
  46043. fewerConditions0 = other.conditions;
  46044. t3 = fewerConditions.length > fewerConditions0.length;
  46045. moreConditions = t3 ? fewerConditions : fewerConditions0;
  46046. if (t3)
  46047. fewerConditions = fewerConditions0;
  46048. if (!B.JSArray_methods.every$1(fewerConditions, B.JSArray_methods.get$contains(moreConditions)))
  46049. return B._SingletonCssMediaQueryMergeResult_1;
  46050. conditions = moreConditions;
  46051. type = ourType;
  46052. modifier = ourModifier;
  46053. } else if (t3 || A.equalsIgnoreCase(t2, _s3_)) {
  46054. type = (t6 || A.equalsIgnoreCase(t5, _s3_)) && t7 ? _null : theirType;
  46055. t3 = A.List_List$of(_this.conditions, true, type$.String);
  46056. B.JSArray_methods.addAll$1(t3, other.conditions);
  46057. conditions = t3;
  46058. modifier = theirModifier;
  46059. } else {
  46060. if (t6 || A.equalsIgnoreCase(t5, _s3_)) {
  46061. t3 = A.List_List$of(_this.conditions, true, type$.String);
  46062. B.JSArray_methods.addAll$1(t3, other.conditions);
  46063. conditions = t3;
  46064. modifier = ourModifier;
  46065. } else {
  46066. if (ourType != theirType)
  46067. return B._SingletonCssMediaQueryMergeResult_0;
  46068. else {
  46069. modifier = ourModifier == null ? theirModifier : ourModifier;
  46070. t3 = A.List_List$of(_this.conditions, true, type$.String);
  46071. B.JSArray_methods.addAll$1(t3, other.conditions);
  46072. }
  46073. conditions = t3;
  46074. }
  46075. type = ourType;
  46076. }
  46077. t2 = type == ourType ? t2 : t5;
  46078. return new A.MediaQuerySuccessfulMergeResult(A.CssMediaQuery$type(t2, conditions, modifier == ourModifier ? t1 : t4));
  46079. },
  46080. $eq(_, other) {
  46081. if (other == null)
  46082. return false;
  46083. return other instanceof A.CssMediaQuery && other.modifier == this.modifier && other.type == this.type && B.C_ListEquality.equals$2(0, other.conditions, this.conditions);
  46084. },
  46085. get$hashCode(_) {
  46086. return J.get$hashCode$(this.modifier) ^ J.get$hashCode$(this.type) ^ B.C_ListEquality0.hash$1(this.conditions);
  46087. },
  46088. toString$0(_) {
  46089. var t2, _this = this,
  46090. t1 = _this.modifier;
  46091. t1 = t1 != null ? "" + (t1 + " ") : "";
  46092. t2 = _this.type;
  46093. if (t2 != null) {
  46094. t1 += t2;
  46095. if (_this.conditions.length !== 0)
  46096. t1 += " and ";
  46097. }
  46098. t2 = _this.conjunction ? " and " : " or ";
  46099. t2 = t1 + B.JSArray_methods.join$1(_this.conditions, t2);
  46100. return t2.charCodeAt(0) == 0 ? t2 : t2;
  46101. }
  46102. };
  46103. A._SingletonCssMediaQueryMergeResult.prototype = {
  46104. _enumToString$0() {
  46105. return "_SingletonCssMediaQueryMergeResult." + this._name;
  46106. }
  46107. };
  46108. A.MediaQuerySuccessfulMergeResult.prototype = {
  46109. toString$0(_) {
  46110. return this.query.toString$0(0);
  46111. }
  46112. };
  46113. A.ModifiableCssAtRule.prototype = {
  46114. accept$1$1(visitor) {
  46115. return visitor.visitCssAtRule$1(this);
  46116. },
  46117. accept$1(visitor) {
  46118. return this.accept$1$1(visitor, type$.dynamic);
  46119. },
  46120. equalsIgnoringChildren$1(other) {
  46121. var t1, t2;
  46122. if (other instanceof A.ModifiableCssAtRule) {
  46123. t1 = this.name;
  46124. t2 = other.name;
  46125. t1 = t1.$ti._is(t2) && J.$eq$(t2.value, t1.value) && J.$eq$(this.value, other.value) && this.isChildless === other.isChildless;
  46126. } else
  46127. t1 = false;
  46128. return t1;
  46129. },
  46130. copyWithoutChildren$0() {
  46131. var _this = this;
  46132. return A.ModifiableCssAtRule$(_this.name, _this.span, _this.isChildless, _this.value);
  46133. },
  46134. addChild$1(child) {
  46135. this.super$ModifiableCssParentNode$addChild(child);
  46136. },
  46137. get$isChildless() {
  46138. return this.isChildless;
  46139. },
  46140. get$span(receiver) {
  46141. return this.span;
  46142. }
  46143. };
  46144. A.ModifiableCssComment.prototype = {
  46145. accept$1$1(visitor) {
  46146. return visitor.visitCssComment$1(this);
  46147. },
  46148. accept$1(visitor) {
  46149. return this.accept$1$1(visitor, type$.dynamic);
  46150. },
  46151. $isCssComment: 1,
  46152. get$span(receiver) {
  46153. return this.span;
  46154. }
  46155. };
  46156. A.ModifiableCssDeclaration.prototype = {
  46157. accept$1$1(visitor) {
  46158. return visitor.visitCssDeclaration$1(this);
  46159. },
  46160. accept$1(visitor) {
  46161. return this.accept$1$1(visitor, type$.dynamic);
  46162. },
  46163. toString$0(_) {
  46164. return this.name.toString$0(0) + ": " + this.value.toString$0(0) + ";";
  46165. },
  46166. get$span(receiver) {
  46167. return this.span;
  46168. }
  46169. };
  46170. A.ModifiableCssImport.prototype = {
  46171. accept$1$1(visitor) {
  46172. return visitor.visitCssImport$1(this);
  46173. },
  46174. accept$1(visitor) {
  46175. return this.accept$1$1(visitor, type$.dynamic);
  46176. },
  46177. get$span(receiver) {
  46178. return this.span;
  46179. }
  46180. };
  46181. A.ModifiableCssKeyframeBlock.prototype = {
  46182. accept$1$1(visitor) {
  46183. return visitor.visitCssKeyframeBlock$1(this);
  46184. },
  46185. accept$1(visitor) {
  46186. return this.accept$1$1(visitor, type$.dynamic);
  46187. },
  46188. equalsIgnoringChildren$1(other) {
  46189. return other instanceof A.ModifiableCssKeyframeBlock && B.C_ListEquality.equals$2(0, this.selector.value, other.selector.value);
  46190. },
  46191. copyWithoutChildren$0() {
  46192. return A.ModifiableCssKeyframeBlock$(this.selector, this.span);
  46193. },
  46194. get$span(receiver) {
  46195. return this.span;
  46196. }
  46197. };
  46198. A.ModifiableCssMediaRule.prototype = {
  46199. accept$1$1(visitor) {
  46200. return visitor.visitCssMediaRule$1(this);
  46201. },
  46202. accept$1(visitor) {
  46203. return this.accept$1$1(visitor, type$.dynamic);
  46204. },
  46205. equalsIgnoringChildren$1(other) {
  46206. return other instanceof A.ModifiableCssMediaRule && B.C_ListEquality.equals$2(0, this.queries, other.queries);
  46207. },
  46208. copyWithoutChildren$0() {
  46209. return A.ModifiableCssMediaRule$(this.queries, this.span);
  46210. },
  46211. get$span(receiver) {
  46212. return this.span;
  46213. }
  46214. };
  46215. A.ModifiableCssNode.prototype = {
  46216. get$parent(_) {
  46217. return this._parent;
  46218. },
  46219. get$hasFollowingSibling() {
  46220. var t2,
  46221. t1 = this._parent;
  46222. if (t1 == null)
  46223. t1 = null;
  46224. else {
  46225. t1 = t1.children;
  46226. t2 = this._indexInParent;
  46227. t2.toString;
  46228. t1 = A.SubListIterable$(t1, t2 + 1, null, t1.$ti._eval$1("ListBase.E")).any$1(0, new A.ModifiableCssNode_hasFollowingSibling_closure());
  46229. }
  46230. return t1 === true;
  46231. },
  46232. get$isGroupEnd() {
  46233. return this.isGroupEnd;
  46234. }
  46235. };
  46236. A.ModifiableCssNode_hasFollowingSibling_closure.prototype = {
  46237. call$1(sibling) {
  46238. return !sibling.accept$1(B._IsInvisibleVisitor_true_false);
  46239. },
  46240. $signature: 327
  46241. };
  46242. A.ModifiableCssParentNode.prototype = {
  46243. get$isChildless() {
  46244. return false;
  46245. },
  46246. addChild$1(child) {
  46247. var t1;
  46248. child._parent = this;
  46249. t1 = this._children;
  46250. child._indexInParent = t1.length;
  46251. t1.push(child);
  46252. },
  46253. clearChildren$0() {
  46254. var t1, t2, _i, child;
  46255. for (t1 = this._children, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  46256. child = t1[_i];
  46257. child._indexInParent = child._parent = null;
  46258. }
  46259. B.JSArray_methods.clear$0(t1);
  46260. },
  46261. $isCssParentNode: 1,
  46262. get$children(receiver) {
  46263. return this.children;
  46264. }
  46265. };
  46266. A.ModifiableCssStyleRule.prototype = {
  46267. accept$1$1(visitor) {
  46268. return visitor.visitCssStyleRule$1(this);
  46269. },
  46270. accept$1(visitor) {
  46271. return this.accept$1$1(visitor, type$.dynamic);
  46272. },
  46273. equalsIgnoringChildren$1(other) {
  46274. var t1;
  46275. if (other instanceof A.ModifiableCssStyleRule)
  46276. t1 = B.C_ListEquality.equals$2(0, other._style_rule$_selector._box$_inner.value.components, this._style_rule$_selector._box$_inner.value.components);
  46277. else
  46278. t1 = false;
  46279. return t1;
  46280. },
  46281. copyWithoutChildren$0() {
  46282. return A.ModifiableCssStyleRule$(this._style_rule$_selector, this.span, false, this.originalSelector);
  46283. },
  46284. $isCssStyleRule: 1,
  46285. get$span(receiver) {
  46286. return this.span;
  46287. }
  46288. };
  46289. A.ModifiableCssStylesheet.prototype = {
  46290. accept$1$1(visitor) {
  46291. return visitor.visitCssStylesheet$1(this);
  46292. },
  46293. accept$1(visitor) {
  46294. return this.accept$1$1(visitor, type$.dynamic);
  46295. },
  46296. equalsIgnoringChildren$1(other) {
  46297. return other instanceof A.ModifiableCssStylesheet;
  46298. },
  46299. copyWithoutChildren$0() {
  46300. return A.ModifiableCssStylesheet$(this.span);
  46301. },
  46302. $isCssStylesheet: 1,
  46303. get$span(receiver) {
  46304. return this.span;
  46305. }
  46306. };
  46307. A.ModifiableCssSupportsRule.prototype = {
  46308. accept$1$1(visitor) {
  46309. return visitor.visitCssSupportsRule$1(this);
  46310. },
  46311. accept$1(visitor) {
  46312. return this.accept$1$1(visitor, type$.dynamic);
  46313. },
  46314. equalsIgnoringChildren$1(other) {
  46315. var t1, t2;
  46316. if (other instanceof A.ModifiableCssSupportsRule) {
  46317. t1 = this.condition;
  46318. t2 = other.condition;
  46319. t1 = t1.$ti._is(t2) && J.$eq$(t2.value, t1.value);
  46320. } else
  46321. t1 = false;
  46322. return t1;
  46323. },
  46324. copyWithoutChildren$0() {
  46325. return A.ModifiableCssSupportsRule$(this.condition, this.span);
  46326. },
  46327. get$span(receiver) {
  46328. return this.span;
  46329. }
  46330. };
  46331. A.CssNode.prototype = {
  46332. toString$0(_) {
  46333. var _null = null;
  46334. return A.serialize(this, true, _null, true, _null, _null, false, _null, true)._0;
  46335. },
  46336. $isAstNode: 1
  46337. };
  46338. A.CssParentNode.prototype = {};
  46339. A._IsInvisibleVisitor.prototype = {
  46340. visitCssAtRule$1(rule) {
  46341. return false;
  46342. },
  46343. visitCssComment$1(comment) {
  46344. return this.includeComments && comment.text.charCodeAt(2) !== 33;
  46345. },
  46346. visitCssStyleRule$1(rule) {
  46347. var t1 = rule._style_rule$_selector._box$_inner;
  46348. return (this.includeBogus ? t1.value.accept$1(B._IsInvisibleVisitor_true) : t1.value.accept$1(B._IsInvisibleVisitor_false)) || this.super$EveryCssVisitor$visitCssStyleRule(rule);
  46349. }
  46350. };
  46351. A.__IsInvisibleVisitor_Object_EveryCssVisitor.prototype = {};
  46352. A.CssStylesheet.prototype = {
  46353. get$parent(_) {
  46354. return null;
  46355. },
  46356. get$isGroupEnd() {
  46357. return false;
  46358. },
  46359. get$isChildless() {
  46360. return false;
  46361. },
  46362. accept$1$1(visitor) {
  46363. return visitor.visitCssStylesheet$1(this);
  46364. },
  46365. accept$1(visitor) {
  46366. return this.accept$1$1(visitor, type$.dynamic);
  46367. },
  46368. get$children(receiver) {
  46369. return this.children;
  46370. },
  46371. get$span(receiver) {
  46372. return this.span;
  46373. }
  46374. };
  46375. A.CssValue.prototype = {
  46376. $eq(_, other) {
  46377. if (other == null)
  46378. return false;
  46379. return this.$ti._is(other) && J.$eq$(other.value, this.value);
  46380. },
  46381. get$hashCode(_) {
  46382. return J.get$hashCode$(this.value);
  46383. },
  46384. toString$0(_) {
  46385. return J.toString$0$(this.value);
  46386. },
  46387. $isAstNode: 1,
  46388. get$span(receiver) {
  46389. return this.span;
  46390. }
  46391. };
  46392. A._FakeAstNode.prototype = {
  46393. get$span(_) {
  46394. return this._callback.call$0();
  46395. },
  46396. $isAstNode: 1
  46397. };
  46398. A.Argument.prototype = {
  46399. toString$0(_) {
  46400. var t1 = this.defaultValue,
  46401. t2 = this.name;
  46402. return t1 == null ? t2 : t2 + ": " + t1.toString$0(0);
  46403. },
  46404. $isAstNode: 1,
  46405. get$span(receiver) {
  46406. return this.span;
  46407. }
  46408. };
  46409. A.ArgumentDeclaration.prototype = {
  46410. get$spanWithName() {
  46411. var t3, t4,
  46412. t1 = this.span,
  46413. t2 = t1.file,
  46414. text = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t2._decodedChars, 0, null), 0, null),
  46415. i = A.FileLocation$_(t2, t1._file$_start).offset - 1;
  46416. while (true) {
  46417. if (i > 0) {
  46418. t3 = text.charCodeAt(i);
  46419. t3 = t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12;
  46420. } else
  46421. t3 = false;
  46422. if (!t3)
  46423. break;
  46424. --i;
  46425. }
  46426. t3 = text.charCodeAt(i);
  46427. if (!(t3 === 95 || A.CharacterExtension_get_isAlphabetic(t3) || t3 >= 128))
  46428. t3 = t3 >= 48 && t3 <= 57 || t3 === 45;
  46429. else
  46430. t3 = true;
  46431. if (!t3)
  46432. return t1;
  46433. --i;
  46434. while (true) {
  46435. if (i >= 0) {
  46436. t3 = text.charCodeAt(i);
  46437. if (t3 !== 95) {
  46438. if (!(t3 >= 97 && t3 <= 122))
  46439. t4 = t3 >= 65 && t3 <= 90;
  46440. else
  46441. t4 = true;
  46442. t4 = t4 || t3 >= 128;
  46443. } else
  46444. t4 = true;
  46445. if (!t4)
  46446. t3 = t3 >= 48 && t3 <= 57 || t3 === 45;
  46447. else
  46448. t3 = true;
  46449. } else
  46450. t3 = false;
  46451. if (!t3)
  46452. break;
  46453. --i;
  46454. }
  46455. t3 = i + 1;
  46456. t4 = text.charCodeAt(t3);
  46457. if (!(t4 === 95 || A.CharacterExtension_get_isAlphabetic(t4) || t4 >= 128))
  46458. return t1;
  46459. return A.SpanExtensions_trimRight(A.SpanExtensions_trimLeft(t2.span$2(0, t3, A.FileLocation$_(t2, t1._end).offset)));
  46460. },
  46461. verify$2(positional, names) {
  46462. var t1, t2, t3, namedUsed, i, argument, t4, unknownNames, _this = this,
  46463. _s10_ = "invocation",
  46464. _s8_ = "argument";
  46465. for (t1 = _this.$arguments, t2 = t1.length, t3 = names._baseMap, namedUsed = 0, i = 0; i < t2; ++i) {
  46466. argument = t1[i];
  46467. if (i < positional) {
  46468. t4 = argument.name;
  46469. if (t3.containsKey$1(t4))
  46470. throw A.wrapException(A.SassScriptException$("Argument " + _this._originalArgumentName$1(t4) + string$.x20was_p, null));
  46471. } else {
  46472. t4 = argument.name;
  46473. if (t3.containsKey$1(t4))
  46474. ++namedUsed;
  46475. else if (argument.defaultValue == null)
  46476. throw A.wrapException(A.MultiSpanSassScriptException$("Missing argument " + _this._originalArgumentName$1(t4) + ".", _s10_, A.LinkedHashMap_LinkedHashMap$_literal([_this.get$spanWithName(), "declaration"], type$.FileSpan, type$.String)));
  46477. }
  46478. }
  46479. if (_this.restArgument != null)
  46480. return;
  46481. if (positional > t2) {
  46482. t1 = names.get$isEmpty(0) ? "" : "positional ";
  46483. throw A.wrapException(A.MultiSpanSassScriptException$("Only " + t2 + " " + t1 + A.pluralize(_s8_, t2, null) + " allowed, but " + positional + " " + A.pluralize("was", positional, "were") + " passed.", _s10_, A.LinkedHashMap_LinkedHashMap$_literal([_this.get$spanWithName(), "declaration"], type$.FileSpan, type$.String)));
  46484. }
  46485. if (namedUsed < t3.get$length(t3)) {
  46486. t2 = type$.String;
  46487. unknownNames = A.LinkedHashSet_LinkedHashSet$of(names, t2);
  46488. unknownNames.removeAll$1(new A.MappedListIterable(t1, new A.ArgumentDeclaration_verify_closure(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Object?>")));
  46489. throw A.wrapException(A.MultiSpanSassScriptException$("No " + A.pluralize(_s8_, unknownNames._collection$_length, null) + " named " + A.toSentence(unknownNames.map$1$1(0, new A.ArgumentDeclaration_verify_closure0(), type$.Object), "or") + ".", _s10_, A.LinkedHashMap_LinkedHashMap$_literal([_this.get$spanWithName(), "declaration"], type$.FileSpan, t2)));
  46490. }
  46491. },
  46492. _originalArgumentName$1($name) {
  46493. var t1, text, t2, _i, argument, t3, t4, end, _null = null;
  46494. if ($name === this.restArgument) {
  46495. t1 = this.span;
  46496. text = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1.file._decodedChars, t1._file$_start, t1._end), 0, _null);
  46497. return B.JSString_methods.substring$2(B.JSString_methods.substring$1(text, B.JSString_methods.lastIndexOf$1(text, "$")), 0, B.JSString_methods.indexOf$1(text, "."));
  46498. }
  46499. for (t1 = this.$arguments, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  46500. argument = t1[_i];
  46501. if (argument.name === $name) {
  46502. t1 = argument.defaultValue;
  46503. t2 = argument.span;
  46504. t3 = t2.file;
  46505. t4 = t2._file$_start;
  46506. t2 = t2._end;
  46507. if (t1 == null) {
  46508. t1 = t3._decodedChars;
  46509. t1 = A.String_String$fromCharCodes(new Uint32Array(t1.subarray(t4, A._checkValidRange(t4, t2, t1.length))), 0, _null);
  46510. } else {
  46511. t1 = t3._decodedChars;
  46512. text = A.String_String$fromCharCodes(new Uint32Array(t1.subarray(t4, A._checkValidRange(t4, t2, t1.length))), 0, _null);
  46513. t1 = B.JSString_methods.substring$2(text, 0, B.JSString_methods.indexOf$1(text, ":"));
  46514. end = A._lastNonWhitespace(t1, false);
  46515. t1 = end == null ? "" : B.JSString_methods.substring$2(t1, 0, end + 1);
  46516. }
  46517. return t1;
  46518. }
  46519. }
  46520. throw A.wrapException(A.ArgumentError$(string$.This_d + $name + '".', _null));
  46521. },
  46522. matches$2(positional, names) {
  46523. var t1, t2, t3, namedUsed, i, argument;
  46524. for (t1 = this.$arguments, t2 = t1.length, t3 = names._baseMap, namedUsed = 0, i = 0; i < t2; ++i) {
  46525. argument = t1[i];
  46526. if (i < positional) {
  46527. if (t3.containsKey$1(argument.name))
  46528. return false;
  46529. } else if (t3.containsKey$1(argument.name))
  46530. ++namedUsed;
  46531. else if (argument.defaultValue == null)
  46532. return false;
  46533. }
  46534. if (this.restArgument != null)
  46535. return true;
  46536. if (positional > t2)
  46537. return false;
  46538. if (namedUsed < t3.get$length(t3))
  46539. return false;
  46540. return true;
  46541. },
  46542. toString$0(_) {
  46543. var t2, t3, _i,
  46544. t1 = A._setArrayType([], type$.JSArray_String);
  46545. for (t2 = this.$arguments, t3 = t2.length, _i = 0; _i < t3; ++_i)
  46546. t1.push("$" + A.S(t2[_i]));
  46547. t2 = this.restArgument;
  46548. if (t2 != null)
  46549. t1.push("$" + t2 + "...");
  46550. return B.JSArray_methods.join$1(t1, ", ");
  46551. },
  46552. $isAstNode: 1,
  46553. get$span(receiver) {
  46554. return this.span;
  46555. }
  46556. };
  46557. A.ArgumentDeclaration_verify_closure.prototype = {
  46558. call$1(argument) {
  46559. return argument.name;
  46560. },
  46561. $signature: 337
  46562. };
  46563. A.ArgumentDeclaration_verify_closure0.prototype = {
  46564. call$1($name) {
  46565. return "$" + $name;
  46566. },
  46567. $signature: 6
  46568. };
  46569. A.ArgumentInvocation.prototype = {
  46570. get$isEmpty(_) {
  46571. var t1;
  46572. if (this.positional.length === 0) {
  46573. t1 = this.named;
  46574. t1 = t1.get$isEmpty(t1) && this.rest == null;
  46575. } else
  46576. t1 = false;
  46577. return t1;
  46578. },
  46579. toString$0(_) {
  46580. var t2, t3, _i, _1_0, _2_0, _this = this,
  46581. t1 = A._setArrayType([], type$.JSArray_String);
  46582. for (t2 = _this.positional, t3 = t2.length, _i = 0; _i < t3; ++_i)
  46583. t1.push(_this._parenthesizeArgument$1(t2[_i]));
  46584. for (t2 = A.MapExtensions_get_pairs(_this.named, type$.String, type$.Expression), t2 = t2.get$iterator(t2); t2.moveNext$0();) {
  46585. t3 = t2.get$current(t2);
  46586. t1.push("$" + t3._0 + ": " + _this._parenthesizeArgument$1(t3._1));
  46587. }
  46588. _1_0 = _this.rest;
  46589. if (_1_0 != null)
  46590. t1.push(_this._parenthesizeArgument$1(_1_0) + "...");
  46591. _2_0 = _this.keywordRest;
  46592. if (_2_0 != null)
  46593. t1.push(_this._parenthesizeArgument$1(_2_0) + "...");
  46594. return "(" + B.JSArray_methods.join$1(t1, ", ") + ")";
  46595. },
  46596. _parenthesizeArgument$1(argument) {
  46597. var t1;
  46598. $label0$0: {
  46599. if (argument instanceof A.ListExpression && B.ListSeparator_ECn === argument.separator && !argument.hasBrackets && argument.contents.length >= 2) {
  46600. t1 = "(" + argument.toString$0(0) + ")";
  46601. break $label0$0;
  46602. }
  46603. t1 = argument.toString$0(0);
  46604. break $label0$0;
  46605. }
  46606. return t1;
  46607. },
  46608. $isAstNode: 1,
  46609. get$span(receiver) {
  46610. return this.span;
  46611. }
  46612. };
  46613. A.AtRootQuery.prototype = {
  46614. excludes$1(node) {
  46615. var t1, _this = this;
  46616. if (_this._all)
  46617. return !_this.include;
  46618. $label0$0: {
  46619. if (node instanceof A.ModifiableCssStyleRule) {
  46620. t1 = _this._at_root_query$_rule !== _this.include;
  46621. break $label0$0;
  46622. }
  46623. if (node instanceof A.ModifiableCssMediaRule) {
  46624. t1 = _this.excludesName$1("media");
  46625. break $label0$0;
  46626. }
  46627. if (node instanceof A.ModifiableCssSupportsRule) {
  46628. t1 = _this.excludesName$1("supports");
  46629. break $label0$0;
  46630. }
  46631. if (node instanceof A.ModifiableCssAtRule) {
  46632. t1 = _this.excludesName$1(node.name.value.toLowerCase());
  46633. break $label0$0;
  46634. }
  46635. t1 = false;
  46636. break $label0$0;
  46637. }
  46638. return t1;
  46639. },
  46640. excludesName$1($name) {
  46641. var t1 = this._all || this.names.contains$1(0, $name);
  46642. return t1 !== this.include;
  46643. }
  46644. };
  46645. A.ConfiguredVariable.prototype = {
  46646. toString$0(_) {
  46647. var t1 = this.expression.toString$0(0),
  46648. t2 = this.isGuarded ? " !default" : "";
  46649. return "$" + this.name + ": " + t1 + t2;
  46650. },
  46651. $isAstNode: 1,
  46652. get$span(receiver) {
  46653. return this.span;
  46654. }
  46655. };
  46656. A.Expression.prototype = {$isAstNode: 1};
  46657. A.BinaryOperationExpression.prototype = {
  46658. get$span(_) {
  46659. var right,
  46660. left = this.left;
  46661. for (; left instanceof A.BinaryOperationExpression;)
  46662. left = left.left;
  46663. right = this.right;
  46664. for (; right instanceof A.BinaryOperationExpression;)
  46665. right = right.right;
  46666. return left.get$span(left).expand$1(0, right.get$span(right));
  46667. },
  46668. get$operatorSpan() {
  46669. var t3, t4,
  46670. t1 = this.left,
  46671. t2 = t1.get$span(t1);
  46672. t2 = t2.get$file(t2);
  46673. t3 = this.right;
  46674. t4 = t3.get$span(t3);
  46675. if (t2 === t4.get$file(t4)) {
  46676. t2 = t1.get$span(t1);
  46677. t2 = t2.get$end(t2);
  46678. t4 = t3.get$span(t3);
  46679. t4 = t2.offset < t4.get$start(t4).offset;
  46680. t2 = t4;
  46681. } else
  46682. t2 = false;
  46683. if (t2) {
  46684. t2 = t1.get$span(t1);
  46685. t2 = t2.get$file(t2);
  46686. t1 = t1.get$span(t1);
  46687. t1 = t1.get$end(t1);
  46688. t3 = t3.get$span(t3);
  46689. t3 = A.SpanExtensions_trimRight(A.SpanExtensions_trimLeft(t2.span$2(0, t1.offset, t3.get$start(t3).offset)));
  46690. t1 = t3;
  46691. } else
  46692. t1 = this.get$span(0);
  46693. return t1;
  46694. },
  46695. accept$1$1(visitor) {
  46696. return visitor.visitBinaryOperationExpression$1(0, this);
  46697. },
  46698. accept$1(visitor) {
  46699. return this.accept$1$1(visitor, type$.dynamic);
  46700. },
  46701. toString$0(_) {
  46702. var t1, t2, right, t3, operator, _this = this,
  46703. _0_0 = _this.left;
  46704. $label0$0: {
  46705. if (_0_0 instanceof A.BinaryOperationExpression) {
  46706. t1 = _0_0.operator.precedence < _this.operator.precedence;
  46707. break $label0$0;
  46708. }
  46709. if (_0_0 instanceof A.ListExpression && !_0_0.hasBrackets && _0_0.contents.length >= 2) {
  46710. t1 = true;
  46711. break $label0$0;
  46712. }
  46713. t1 = false;
  46714. break $label0$0;
  46715. }
  46716. t2 = t1 ? "" + A.Primitives_stringFromCharCode(40) : "";
  46717. t2 += _0_0.toString$0(0);
  46718. t1 = t1 ? t2 + A.Primitives_stringFromCharCode(41) : t2;
  46719. t2 = _this.operator;
  46720. t1 = t1 + A.Primitives_stringFromCharCode(32) + t2.operator + A.Primitives_stringFromCharCode(32);
  46721. right = _this.right;
  46722. $label1$1: {
  46723. t3 = false;
  46724. if (right instanceof A.BinaryOperationExpression) {
  46725. operator = right.operator;
  46726. if (operator.precedence <= t2.precedence) {
  46727. t3 = !(operator === t2 && operator.isAssociative);
  46728. t2 = t3;
  46729. } else
  46730. t2 = t3;
  46731. break $label1$1;
  46732. }
  46733. if (right instanceof A.ListExpression && !right.hasBrackets && right.contents.length >= 2) {
  46734. t2 = true;
  46735. break $label1$1;
  46736. }
  46737. t2 = t3;
  46738. break $label1$1;
  46739. }
  46740. if (t2)
  46741. t1 += A.Primitives_stringFromCharCode(40);
  46742. t1 += right.toString$0(0);
  46743. if (t2)
  46744. t1 += A.Primitives_stringFromCharCode(41);
  46745. return t1.charCodeAt(0) == 0 ? t1 : t1;
  46746. }
  46747. };
  46748. A.BinaryOperator.prototype = {
  46749. _enumToString$0() {
  46750. return "BinaryOperator." + this._name;
  46751. },
  46752. toString$0(_) {
  46753. return this.name;
  46754. }
  46755. };
  46756. A.BooleanExpression.prototype = {
  46757. accept$1$1(visitor) {
  46758. return visitor.visitBooleanExpression$1(0, this);
  46759. },
  46760. accept$1(visitor) {
  46761. return this.accept$1$1(visitor, type$.dynamic);
  46762. },
  46763. toString$0(_) {
  46764. return String(this.value);
  46765. },
  46766. get$span(receiver) {
  46767. return this.span;
  46768. }
  46769. };
  46770. A.ColorExpression.prototype = {
  46771. accept$1$1(visitor) {
  46772. return visitor.visitColorExpression$1(0, this);
  46773. },
  46774. accept$1(visitor) {
  46775. return this.accept$1$1(visitor, type$.dynamic);
  46776. },
  46777. toString$0(_) {
  46778. return A.serializeValue(this.value, true, true);
  46779. },
  46780. get$span(receiver) {
  46781. return this.span;
  46782. }
  46783. };
  46784. A.FunctionExpression.prototype = {
  46785. get$nameSpan() {
  46786. if (this.namespace == null)
  46787. return A.SpanExtensions_initialIdentifier(this.span);
  46788. return A.SpanExtensions_initialIdentifier(A.FileSpanExtension_subspan(A.SpanExtensions_withoutInitialIdentifier(this.span), 1, null));
  46789. },
  46790. accept$1$1(visitor) {
  46791. return visitor.visitFunctionExpression$1(0, this);
  46792. },
  46793. accept$1(visitor) {
  46794. return this.accept$1$1(visitor, type$.dynamic);
  46795. },
  46796. toString$0(_) {
  46797. var t1 = this.namespace;
  46798. t1 = t1 != null ? "" + (t1 + ".") : "";
  46799. t1 += this.originalName + this.$arguments.toString$0(0);
  46800. return t1.charCodeAt(0) == 0 ? t1 : t1;
  46801. },
  46802. get$span(receiver) {
  46803. return this.span;
  46804. }
  46805. };
  46806. A.IfExpression.prototype = {
  46807. accept$1$1(visitor) {
  46808. return visitor.visitIfExpression$1(0, this);
  46809. },
  46810. accept$1(visitor) {
  46811. return this.accept$1$1(visitor, type$.dynamic);
  46812. },
  46813. toString$0(_) {
  46814. return "if" + this.$arguments.toString$0(0);
  46815. },
  46816. get$span(receiver) {
  46817. return this.span;
  46818. }
  46819. };
  46820. A.InterpolatedFunctionExpression.prototype = {
  46821. accept$1$1(visitor) {
  46822. return visitor.visitInterpolatedFunctionExpression$1(0, this);
  46823. },
  46824. accept$1(visitor) {
  46825. return this.accept$1$1(visitor, type$.dynamic);
  46826. },
  46827. toString$0(_) {
  46828. return this.name.toString$0(0) + this.$arguments.toString$0(0);
  46829. },
  46830. get$span(receiver) {
  46831. return this.span;
  46832. }
  46833. };
  46834. A.ListExpression.prototype = {
  46835. accept$1$1(visitor) {
  46836. return visitor.visitListExpression$1(0, this);
  46837. },
  46838. accept$1(visitor) {
  46839. return this.accept$1$1(visitor, type$.dynamic);
  46840. },
  46841. toString$0(_) {
  46842. var t2, t3, t4, t5, _this = this,
  46843. t1 = _this.hasBrackets;
  46844. if (t1)
  46845. t2 = "" + A.Primitives_stringFromCharCode(91);
  46846. else {
  46847. t2 = _this.contents.length;
  46848. if (t2 !== 0)
  46849. t2 = t2 === 1 && _this.separator === B.ListSeparator_ECn;
  46850. else
  46851. t2 = true;
  46852. t2 = t2 ? "" + A.Primitives_stringFromCharCode(40) : "";
  46853. }
  46854. t3 = _this.contents;
  46855. t4 = _this.separator === B.ListSeparator_ECn;
  46856. t5 = t4 ? ", " : " ";
  46857. t5 = t2 + new A.MappedListIterable(t3, new A.ListExpression_toString_closure(_this), A._arrayInstanceType(t3)._eval$1("MappedListIterable<1,String>")).join$1(0, t5);
  46858. if (t1)
  46859. t1 = t5 + A.Primitives_stringFromCharCode(93);
  46860. else {
  46861. t1 = t3.length;
  46862. if (t1 === 0)
  46863. t1 = t5 + A.Primitives_stringFromCharCode(41);
  46864. else
  46865. t1 = t1 === 1 && t4 ? t5 + ",)" : t5;
  46866. }
  46867. return t1.charCodeAt(0) == 0 ? t1 : t1;
  46868. },
  46869. _list0$_elementNeedsParens$1(expression) {
  46870. var childSeparator, t1, _0_13;
  46871. $label0$0: {
  46872. if (expression instanceof A.ListExpression && expression.contents.length >= 2 && !expression.hasBrackets) {
  46873. childSeparator = expression.separator;
  46874. t1 = this.separator === B.ListSeparator_ECn ? childSeparator === B.ListSeparator_ECn : childSeparator !== B.ListSeparator_undecided_null_undecided;
  46875. break $label0$0;
  46876. }
  46877. if (expression instanceof A.UnaryOperationExpression) {
  46878. _0_13 = expression.operator;
  46879. if (B.UnaryOperator_cLp !== _0_13)
  46880. t1 = B.UnaryOperator_AiQ === _0_13;
  46881. else
  46882. t1 = true;
  46883. } else
  46884. t1 = false;
  46885. if (t1) {
  46886. t1 = this.separator === B.ListSeparator_nbm;
  46887. break $label0$0;
  46888. }
  46889. t1 = false;
  46890. break $label0$0;
  46891. }
  46892. return t1;
  46893. },
  46894. get$span(receiver) {
  46895. return this.span;
  46896. }
  46897. };
  46898. A.ListExpression_toString_closure.prototype = {
  46899. call$1(element) {
  46900. return this.$this._list0$_elementNeedsParens$1(element) ? "(" + element.toString$0(0) + ")" : element.toString$0(0);
  46901. },
  46902. $signature: 119
  46903. };
  46904. A.MapExpression.prototype = {
  46905. accept$1$1(visitor) {
  46906. return visitor.visitMapExpression$1(0, this);
  46907. },
  46908. accept$1(visitor) {
  46909. return this.accept$1$1(visitor, type$.dynamic);
  46910. },
  46911. toString$0(_) {
  46912. var t2, t3, _i, t4, key, value,
  46913. t1 = A._setArrayType([], type$.JSArray_String);
  46914. for (t2 = this.pairs, t3 = t2.length, _i = 0; _i < t3; ++_i) {
  46915. t4 = t2[_i];
  46916. key = t4._0;
  46917. value = t4._1;
  46918. t1.push(key.toString$0(0) + ": " + value.toString$0(0));
  46919. }
  46920. return "(" + B.JSArray_methods.join$1(t1, ", ") + ")";
  46921. },
  46922. get$span(receiver) {
  46923. return this.span;
  46924. }
  46925. };
  46926. A.NullExpression.prototype = {
  46927. accept$1$1(visitor) {
  46928. return visitor.visitNullExpression$1(0, this);
  46929. },
  46930. accept$1(visitor) {
  46931. return this.accept$1$1(visitor, type$.dynamic);
  46932. },
  46933. toString$0(_) {
  46934. return "null";
  46935. },
  46936. get$span(receiver) {
  46937. return this.span;
  46938. }
  46939. };
  46940. A.NumberExpression.prototype = {
  46941. accept$1$1(visitor) {
  46942. return visitor.visitNumberExpression$1(0, this);
  46943. },
  46944. accept$1(visitor) {
  46945. return this.accept$1$1(visitor, type$.dynamic);
  46946. },
  46947. toString$0(_) {
  46948. return A.serializeValue(A.SassNumber_SassNumber(this.value, this.unit), true, true);
  46949. },
  46950. get$span(receiver) {
  46951. return this.span;
  46952. }
  46953. };
  46954. A.ParenthesizedExpression.prototype = {
  46955. accept$1$1(visitor) {
  46956. return visitor.visitParenthesizedExpression$1(0, this);
  46957. },
  46958. accept$1(visitor) {
  46959. return this.accept$1$1(visitor, type$.dynamic);
  46960. },
  46961. toString$0(_) {
  46962. return "(" + this.expression.toString$0(0) + ")";
  46963. },
  46964. get$span(receiver) {
  46965. return this.span;
  46966. }
  46967. };
  46968. A.SelectorExpression.prototype = {
  46969. accept$1$1(visitor) {
  46970. return visitor.visitSelectorExpression$1(0, this);
  46971. },
  46972. accept$1(visitor) {
  46973. return this.accept$1$1(visitor, type$.dynamic);
  46974. },
  46975. toString$0(_) {
  46976. return "&";
  46977. },
  46978. get$span(receiver) {
  46979. return this.span;
  46980. }
  46981. };
  46982. A.StringExpression.prototype = {
  46983. get$span(_) {
  46984. return this.text.span;
  46985. },
  46986. accept$1$1(visitor) {
  46987. return visitor.visitStringExpression$1(0, this);
  46988. },
  46989. accept$1(visitor) {
  46990. return this.accept$1$1(visitor, type$.dynamic);
  46991. },
  46992. asInterpolation$1$static($static) {
  46993. var t1, t2, quote, t3, t4, t5, buffer, t6, i, value, t7;
  46994. if (!this.hasQuotes)
  46995. return this.text;
  46996. t1 = this.text;
  46997. t2 = t1.contents;
  46998. quote = A.StringExpression__bestQuote(new A.WhereTypeIterable(t2, type$.WhereTypeIterable_String));
  46999. t3 = new A.StringBuffer("");
  47000. t4 = A._setArrayType([], type$.JSArray_Object);
  47001. t5 = A._setArrayType([], type$.JSArray_nullable_FileSpan);
  47002. buffer = new A.InterpolationBuffer(t3, t4, t5);
  47003. t6 = A.Primitives_stringFromCharCode(quote);
  47004. t3._contents += t6;
  47005. for (t6 = t2.length, i = 0; i < t6; ++i) {
  47006. value = t2[i];
  47007. if (value instanceof A.Expression) {
  47008. t7 = t1.spanForElement$1(i);
  47009. buffer._flushText$0();
  47010. t4.push(value);
  47011. t5.push(t7);
  47012. continue;
  47013. }
  47014. if (typeof value == "string")
  47015. A.StringExpression__quoteInnerText(value, quote, buffer, $static);
  47016. }
  47017. t2 = A.Primitives_stringFromCharCode(quote);
  47018. t3._contents += t2;
  47019. return buffer.interpolation$1(t1.span);
  47020. },
  47021. asInterpolation$0() {
  47022. return this.asInterpolation$1$static(false);
  47023. },
  47024. toString$0(_) {
  47025. return this.asInterpolation$0().toString$0(0);
  47026. }
  47027. };
  47028. A.SupportsExpression.prototype = {
  47029. get$span(_) {
  47030. var t1 = this.condition;
  47031. return t1.get$span(t1);
  47032. },
  47033. accept$1$1(visitor) {
  47034. return visitor.visitSupportsExpression$1(0, this);
  47035. },
  47036. accept$1(visitor) {
  47037. return this.accept$1$1(visitor, type$.dynamic);
  47038. },
  47039. toString$0(_) {
  47040. return this.condition.toString$0(0);
  47041. }
  47042. };
  47043. A.UnaryOperationExpression.prototype = {
  47044. accept$1$1(visitor) {
  47045. return visitor.visitUnaryOperationExpression$1(0, this);
  47046. },
  47047. accept$1(visitor) {
  47048. return this.accept$1$1(visitor, type$.dynamic);
  47049. },
  47050. toString$0(_) {
  47051. var operand,
  47052. t1 = this.operator,
  47053. t2 = t1.operator;
  47054. t1 = t1 === B.UnaryOperator_not_not_not ? t2 + A.Primitives_stringFromCharCode(32) : t2;
  47055. operand = this.operand;
  47056. $label0$0: {
  47057. t2 = true;
  47058. if (!(operand instanceof A.BinaryOperationExpression))
  47059. if (!(operand instanceof A.UnaryOperationExpression))
  47060. t2 = operand instanceof A.ListExpression && !operand.hasBrackets && operand.contents.length >= 2;
  47061. if (t2)
  47062. break $label0$0;
  47063. break $label0$0;
  47064. }
  47065. if (t2)
  47066. t1 += "40";
  47067. t1 += operand.toString$0(0);
  47068. if (t2)
  47069. t1 += "41";
  47070. return t1.charCodeAt(0) == 0 ? t1 : t1;
  47071. },
  47072. get$span(receiver) {
  47073. return this.span;
  47074. }
  47075. };
  47076. A.UnaryOperator.prototype = {
  47077. _enumToString$0() {
  47078. return "UnaryOperator." + this._name;
  47079. },
  47080. toString$0(_) {
  47081. return this.name;
  47082. }
  47083. };
  47084. A.ValueExpression.prototype = {
  47085. accept$1$1(visitor) {
  47086. return visitor.visitValueExpression$1(0, this);
  47087. },
  47088. accept$1(visitor) {
  47089. return this.accept$1$1(visitor, type$.dynamic);
  47090. },
  47091. toString$0(_) {
  47092. return this.value.toString$0(0);
  47093. },
  47094. get$span(receiver) {
  47095. return this.span;
  47096. }
  47097. };
  47098. A.VariableExpression.prototype = {
  47099. accept$1$1(visitor) {
  47100. return visitor.visitVariableExpression$1(0, this);
  47101. },
  47102. accept$1(visitor) {
  47103. return this.accept$1$1(visitor, type$.dynamic);
  47104. },
  47105. toString$0(_) {
  47106. var t1 = this.span;
  47107. return A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1.file._decodedChars, t1._file$_start, t1._end), 0, null);
  47108. },
  47109. get$span(receiver) {
  47110. return this.span;
  47111. }
  47112. };
  47113. A.DynamicImport.prototype = {
  47114. toString$0(_) {
  47115. return A.StringExpression_quoteText(this.urlString);
  47116. },
  47117. $isAstNode: 1,
  47118. $isImport: 1,
  47119. get$span(receiver) {
  47120. return this.span;
  47121. }
  47122. };
  47123. A.StaticImport.prototype = {
  47124. toString$0(_) {
  47125. var t1 = this.url.toString$0(0),
  47126. t2 = this.modifiers;
  47127. return t1 + (t2 == null ? "" : " " + t2.toString$0(0));
  47128. },
  47129. $isAstNode: 1,
  47130. $isImport: 1,
  47131. get$span(receiver) {
  47132. return this.span;
  47133. }
  47134. };
  47135. A.Interpolation.prototype = {
  47136. get$asPlain() {
  47137. var _0_1, t1, _0_6_isSet, _0_6, _0_60, first,
  47138. _0_0 = this.contents;
  47139. $label0$0: {
  47140. _0_1 = _0_0.length;
  47141. if (_0_1 <= 0) {
  47142. t1 = "";
  47143. break $label0$0;
  47144. }
  47145. _0_6_isSet = _0_1 === 1;
  47146. _0_6 = null;
  47147. if (_0_6_isSet) {
  47148. _0_60 = _0_0[0];
  47149. t1 = _0_60;
  47150. _0_6 = t1;
  47151. t1 = typeof t1 == "string";
  47152. } else
  47153. t1 = false;
  47154. if (t1) {
  47155. first = A._asString(_0_6_isSet ? _0_6 : _0_0[0]);
  47156. t1 = first;
  47157. break $label0$0;
  47158. }
  47159. t1 = null;
  47160. break $label0$0;
  47161. }
  47162. return t1;
  47163. },
  47164. get$initialPlain() {
  47165. var _0_4_isSet, _0_4, _0_40, t1, first,
  47166. _0_0 = this.contents;
  47167. $label0$0: {
  47168. _0_4_isSet = _0_0.length >= 1;
  47169. _0_4 = null;
  47170. if (_0_4_isSet) {
  47171. _0_40 = _0_0[0];
  47172. t1 = _0_40;
  47173. _0_4 = t1;
  47174. t1 = typeof t1 == "string";
  47175. } else
  47176. t1 = false;
  47177. if (t1) {
  47178. first = A._asString(_0_4_isSet ? _0_4 : _0_0[0]);
  47179. t1 = first;
  47180. break $label0$0;
  47181. }
  47182. t1 = "";
  47183. break $label0$0;
  47184. }
  47185. return t1;
  47186. },
  47187. spanForElement$1(index) {
  47188. var t1, t2, t3, t4, _this = this;
  47189. $label0$0: {
  47190. if (typeof _this.contents[index] == "string") {
  47191. t1 = _this.span;
  47192. t2 = t1.file;
  47193. if (index === 0)
  47194. t3 = A.FileLocation$_(t2, t1._file$_start);
  47195. else {
  47196. t3 = _this.spans[index - 1];
  47197. t3.toString;
  47198. t3 = J.get$end$z(t3);
  47199. }
  47200. t4 = _this.spans;
  47201. if (index === t4.length)
  47202. t1 = A.FileLocation$_(t2, t1._end);
  47203. else {
  47204. t1 = t4[index + 1];
  47205. t1.toString;
  47206. t1 = J.get$start$z(t1);
  47207. }
  47208. t1 = t2.span$2(0, t3.offset, t1.offset);
  47209. break $label0$0;
  47210. }
  47211. t1 = _this.spans[index];
  47212. t1.toString;
  47213. break $label0$0;
  47214. }
  47215. return t1;
  47216. },
  47217. Interpolation$3(contents, spans, span) {
  47218. var t1, t2, t3, t4, i, t5, isString, _s5_ = "spans",
  47219. _s8_ = "contents";
  47220. if (spans.length !== J.get$length$asx(contents))
  47221. throw A.wrapException(A.ArgumentError$value(this.spans, _s5_, "Must be the same length as contents."));
  47222. for (t1 = this.contents, t2 = t1.length, t3 = spans.length, t4 = this.spans, i = 0; i < t2; ++i) {
  47223. t5 = t1[i];
  47224. isString = typeof t5 == "string";
  47225. if (!isString && !(t5 instanceof A.Expression))
  47226. throw A.wrapException(A.ArgumentError$value(t1, _s8_, "May only contain Strings or Expressions."));
  47227. else if (isString) {
  47228. if (i !== 0 && typeof t1[i - 1] == "string")
  47229. throw A.wrapException(A.ArgumentError$value(t1, _s8_, "May not contain adjacent Strings."));
  47230. else if (i < t3 && t4[i] != null)
  47231. throw A.wrapException(A.ArgumentError$value(t4, _s5_, string$.May_no + i + ")."));
  47232. } else if (i >= t3 || t4[i] == null)
  47233. throw A.wrapException(A.ArgumentError$value(t4, _s5_, string$.Must_n + i + ")."));
  47234. }
  47235. },
  47236. toString$0(_) {
  47237. var t1 = this.contents;
  47238. return new A.MappedListIterable(t1, new A.Interpolation_toString_closure(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$0(0);
  47239. },
  47240. $isAstNode: 1,
  47241. get$span(receiver) {
  47242. return this.span;
  47243. }
  47244. };
  47245. A.Interpolation_toString_closure.prototype = {
  47246. call$1(value) {
  47247. return typeof value == "string" ? value : "#{" + A.S(value) + "}";
  47248. },
  47249. $signature: 120
  47250. };
  47251. A.Statement.prototype = {$isAstNode: 1};
  47252. A.AtRootRule.prototype = {
  47253. accept$1$1(visitor) {
  47254. return visitor.visitAtRootRule$1(0, this);
  47255. },
  47256. accept$1(visitor) {
  47257. return this.accept$1$1(visitor, type$.dynamic);
  47258. },
  47259. toString$0(_) {
  47260. var buffer = new A.StringBuffer("@at-root "),
  47261. t1 = this.query;
  47262. if (t1 != null)
  47263. buffer._contents = "@at-root " + (t1.toString$0(0) + " ");
  47264. t1 = this.children;
  47265. return buffer.toString$0(0) + " {" + (t1 && B.JSArray_methods).join$1(t1, " ") + "}";
  47266. },
  47267. get$span(receiver) {
  47268. return this.span;
  47269. }
  47270. };
  47271. A.AtRule.prototype = {
  47272. accept$1$1(visitor) {
  47273. return visitor.visitAtRule$1(0, this);
  47274. },
  47275. accept$1(visitor) {
  47276. return this.accept$1$1(visitor, type$.dynamic);
  47277. },
  47278. toString$0(_) {
  47279. var children,
  47280. t1 = "@" + this.name.toString$0(0),
  47281. buffer = new A.StringBuffer(t1),
  47282. t2 = this.value;
  47283. if (t2 != null)
  47284. buffer._contents = t1 + (" " + t2.toString$0(0));
  47285. children = this.children;
  47286. return children == null ? buffer.toString$0(0) + ";" : buffer.toString$0(0) + " {" + B.JSArray_methods.join$1(children, " ") + "}";
  47287. },
  47288. get$span(receiver) {
  47289. return this.span;
  47290. }
  47291. };
  47292. A.CallableDeclaration.prototype = {
  47293. get$span(receiver) {
  47294. return this.span;
  47295. }
  47296. };
  47297. A.ContentBlock.prototype = {
  47298. accept$1$1(visitor) {
  47299. return visitor.visitContentBlock$1(0, this);
  47300. },
  47301. accept$1(visitor) {
  47302. return this.accept$1$1(visitor, type$.dynamic);
  47303. },
  47304. toString$0(_) {
  47305. var t2,
  47306. t1 = this.$arguments;
  47307. t1 = t1.$arguments.length === 0 && t1.restArgument == null ? "" : " using (" + t1.toString$0(0) + ")";
  47308. t2 = this.children;
  47309. return t1 + (" {" + (t2 && B.JSArray_methods).join$1(t2, " ") + "}");
  47310. }
  47311. };
  47312. A.ContentRule.prototype = {
  47313. accept$1$1(visitor) {
  47314. return visitor.visitContentRule$1(0, this);
  47315. },
  47316. accept$1(visitor) {
  47317. return this.accept$1$1(visitor, type$.dynamic);
  47318. },
  47319. toString$0(_) {
  47320. var t1 = this.$arguments;
  47321. return t1.get$isEmpty(0) ? "@content;" : "@content(" + t1.toString$0(0) + ");";
  47322. },
  47323. get$span(receiver) {
  47324. return this.span;
  47325. }
  47326. };
  47327. A.DebugRule.prototype = {
  47328. accept$1$1(visitor) {
  47329. return visitor.visitDebugRule$1(0, this);
  47330. },
  47331. accept$1(visitor) {
  47332. return this.accept$1$1(visitor, type$.dynamic);
  47333. },
  47334. toString$0(_) {
  47335. return "@debug " + this.expression.toString$0(0) + ";";
  47336. },
  47337. get$span(receiver) {
  47338. return this.span;
  47339. }
  47340. };
  47341. A.Declaration.prototype = {
  47342. accept$1$1(visitor) {
  47343. return visitor.visitDeclaration$1(0, this);
  47344. },
  47345. accept$1(visitor) {
  47346. return this.accept$1$1(visitor, type$.dynamic);
  47347. },
  47348. toString$0(_) {
  47349. var t3, _0_0,
  47350. buffer = new A.StringBuffer(""),
  47351. t1 = this.name,
  47352. t2 = "" + t1.toString$0(0);
  47353. buffer._contents = t2;
  47354. t2 = buffer._contents = t2 + A.Primitives_stringFromCharCode(58);
  47355. t3 = this.value;
  47356. if (t3 != null) {
  47357. t1 = !B.JSString_methods.startsWith$1(t1.get$initialPlain(), "--") ? buffer._contents = t2 + A.Primitives_stringFromCharCode(32) : t2;
  47358. buffer._contents = t1 + t3.toString$0(0);
  47359. }
  47360. _0_0 = this.children;
  47361. if (_0_0 != null)
  47362. return buffer.toString$0(0) + " {" + B.JSArray_methods.join$1(_0_0, " ") + "}";
  47363. else
  47364. return buffer.toString$0(0) + ";";
  47365. },
  47366. get$span(receiver) {
  47367. return this.span;
  47368. }
  47369. };
  47370. A.EachRule.prototype = {
  47371. accept$1$1(visitor) {
  47372. return visitor.visitEachRule$1(0, this);
  47373. },
  47374. accept$1(visitor) {
  47375. return this.accept$1$1(visitor, type$.dynamic);
  47376. },
  47377. toString$0(_) {
  47378. var t1 = this.variables,
  47379. t2 = this.children;
  47380. return "@each " + new A.MappedListIterable(t1, new A.EachRule_toString_closure(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$1(0, ", ") + " in " + this.list.toString$0(0) + " {" + (t2 && B.JSArray_methods).join$1(t2, " ") + "}";
  47381. },
  47382. get$span(receiver) {
  47383. return this.span;
  47384. }
  47385. };
  47386. A.EachRule_toString_closure.prototype = {
  47387. call$1(variable) {
  47388. return "$" + variable;
  47389. },
  47390. $signature: 6
  47391. };
  47392. A.ErrorRule.prototype = {
  47393. accept$1$1(visitor) {
  47394. return visitor.visitErrorRule$1(0, this);
  47395. },
  47396. accept$1(visitor) {
  47397. return this.accept$1$1(visitor, type$.dynamic);
  47398. },
  47399. toString$0(_) {
  47400. return "@error " + this.expression.toString$0(0) + ";";
  47401. },
  47402. get$span(receiver) {
  47403. return this.span;
  47404. }
  47405. };
  47406. A.ExtendRule.prototype = {
  47407. accept$1$1(visitor) {
  47408. return visitor.visitExtendRule$1(0, this);
  47409. },
  47410. accept$1(visitor) {
  47411. return this.accept$1$1(visitor, type$.dynamic);
  47412. },
  47413. toString$0(_) {
  47414. var t1 = this.selector.toString$0(0),
  47415. t2 = this.isOptional ? " !optional" : "";
  47416. return "@extend " + t1 + t2 + ";";
  47417. },
  47418. get$span(receiver) {
  47419. return this.span;
  47420. }
  47421. };
  47422. A.ForRule.prototype = {
  47423. accept$1$1(visitor) {
  47424. return visitor.visitForRule$1(0, this);
  47425. },
  47426. accept$1(visitor) {
  47427. return this.accept$1$1(visitor, type$.dynamic);
  47428. },
  47429. toString$0(_) {
  47430. var _this = this,
  47431. t1 = _this.from.toString$0(0),
  47432. t2 = _this.isExclusive ? "to" : "through",
  47433. t3 = _this.children;
  47434. return "@for $" + _this.variable + " from " + t1 + " " + t2 + " " + _this.to.toString$0(0) + " {" + (t3 && B.JSArray_methods).join$1(t3, " ") + "}";
  47435. },
  47436. get$span(receiver) {
  47437. return this.span;
  47438. }
  47439. };
  47440. A.ForwardRule.prototype = {
  47441. accept$1$1(visitor) {
  47442. return visitor.visitForwardRule$1(0, this);
  47443. },
  47444. accept$1(visitor) {
  47445. return this.accept$1$1(visitor, type$.dynamic);
  47446. },
  47447. toString$0(_) {
  47448. var t2, prefix, _this = this,
  47449. t1 = "@forward " + A.StringExpression_quoteText(_this.url.toString$0(0)),
  47450. shownMixinsAndFunctions = _this.shownMixinsAndFunctions,
  47451. hiddenMixinsAndFunctions = _this.hiddenMixinsAndFunctions;
  47452. if (shownMixinsAndFunctions != null) {
  47453. t2 = _this.shownVariables;
  47454. t2.toString;
  47455. t2 = t1 + " show " + _this._forward_rule$_memberList$2(shownMixinsAndFunctions, t2);
  47456. t1 = t2;
  47457. } else if (hiddenMixinsAndFunctions != null && hiddenMixinsAndFunctions._base.get$isNotEmpty(0)) {
  47458. t2 = _this.hiddenVariables;
  47459. t2.toString;
  47460. t2 = t1 + " hide " + _this._forward_rule$_memberList$2(hiddenMixinsAndFunctions, t2);
  47461. t1 = t2;
  47462. }
  47463. prefix = _this.prefix;
  47464. if (prefix != null)
  47465. t1 += " as " + prefix + "*";
  47466. t2 = _this.configuration;
  47467. t1 = (t2.length !== 0 ? t1 + (" with (" + B.JSArray_methods.join$1(t2, ", ") + ")") : t1) + ";";
  47468. return t1.charCodeAt(0) == 0 ? t1 : t1;
  47469. },
  47470. _forward_rule$_memberList$2(mixinsAndFunctions, variables) {
  47471. var t2,
  47472. t1 = A.List_List$of(mixinsAndFunctions, true, type$.String);
  47473. for (t2 = variables._base.get$iterator(0); t2.moveNext$0();)
  47474. t1.push("$" + t2.get$current(0));
  47475. return B.JSArray_methods.join$1(t1, ", ");
  47476. },
  47477. get$span(receiver) {
  47478. return this.span;
  47479. }
  47480. };
  47481. A.FunctionRule.prototype = {
  47482. accept$1$1(visitor) {
  47483. return visitor.visitFunctionRule$1(0, this);
  47484. },
  47485. accept$1(visitor) {
  47486. return this.accept$1$1(visitor, type$.dynamic);
  47487. },
  47488. toString$0(_) {
  47489. var t1 = this.children;
  47490. return "@function " + this.name + "(" + this.$arguments.toString$0(0) + ") {" + (t1 && B.JSArray_methods).join$1(t1, " ") + "}";
  47491. }
  47492. };
  47493. A.IfRule.prototype = {
  47494. accept$1$1(visitor) {
  47495. return visitor.visitIfRule$1(0, this);
  47496. },
  47497. accept$1(visitor) {
  47498. return this.accept$1$1(visitor, type$.dynamic);
  47499. },
  47500. toString$0(_) {
  47501. var result = A.ListExtensions_mapIndexed(this.clauses, new A.IfRule_toString_closure(), type$.IfClause, type$.String).join$1(0, " "),
  47502. lastClause = this.lastClause;
  47503. return lastClause != null ? result + (" " + lastClause.toString$0(0)) : result;
  47504. },
  47505. get$span(receiver) {
  47506. return this.span;
  47507. }
  47508. };
  47509. A.IfRule_toString_closure.prototype = {
  47510. call$2(index, clause) {
  47511. var t1 = index === 0 ? "if" : "else if";
  47512. return "@" + t1 + " " + clause.expression.toString$0(0) + " {" + B.JSArray_methods.join$1(clause.children, " ") + "}";
  47513. },
  47514. $signature: 415
  47515. };
  47516. A.IfRuleClause.prototype = {};
  47517. A.IfRuleClause$__closure.prototype = {
  47518. call$1(child) {
  47519. var t1;
  47520. $label0$0: {
  47521. if (child instanceof A.VariableDeclaration || child instanceof A.FunctionRule || child instanceof A.MixinRule) {
  47522. t1 = true;
  47523. break $label0$0;
  47524. }
  47525. if (child instanceof A.ImportRule) {
  47526. t1 = B.JSArray_methods.any$1(child.imports, new A.IfRuleClause$___closure());
  47527. break $label0$0;
  47528. }
  47529. t1 = false;
  47530. break $label0$0;
  47531. }
  47532. return t1;
  47533. },
  47534. $signature: 153
  47535. };
  47536. A.IfRuleClause$___closure.prototype = {
  47537. call$1($import) {
  47538. return $import instanceof A.DynamicImport;
  47539. },
  47540. $signature: 159
  47541. };
  47542. A.IfClause.prototype = {
  47543. toString$0(_) {
  47544. return "@if " + this.expression.toString$0(0) + " {" + B.JSArray_methods.join$1(this.children, " ") + "}";
  47545. }
  47546. };
  47547. A.ElseClause.prototype = {
  47548. toString$0(_) {
  47549. return "@else {" + B.JSArray_methods.join$1(this.children, " ") + "}";
  47550. }
  47551. };
  47552. A.ImportRule.prototype = {
  47553. accept$1$1(visitor) {
  47554. return visitor.visitImportRule$1(0, this);
  47555. },
  47556. accept$1(visitor) {
  47557. return this.accept$1$1(visitor, type$.dynamic);
  47558. },
  47559. toString$0(_) {
  47560. return "@import " + B.JSArray_methods.join$1(this.imports, ", ") + ";";
  47561. },
  47562. get$span(receiver) {
  47563. return this.span;
  47564. }
  47565. };
  47566. A.IncludeRule.prototype = {
  47567. get$spanWithoutContent() {
  47568. var t2, t3,
  47569. t1 = this.span;
  47570. if (!(this.content == null)) {
  47571. t2 = t1.file;
  47572. t3 = this.$arguments.span;
  47573. t3 = A.SpanExtensions_trimRight(A.SpanExtensions_trimLeft(t2.span$2(0, A.FileLocation$_(t2, t1._file$_start).offset, t3.get$end(t3).offset)));
  47574. t1 = t3;
  47575. }
  47576. return t1;
  47577. },
  47578. get$nameSpan() {
  47579. var startSpan, scanner, _null = null,
  47580. t1 = this.span,
  47581. t2 = t1._file$_start,
  47582. t3 = t1._end,
  47583. t4 = t1.file._decodedChars;
  47584. if (B.JSString_methods.startsWith$1(A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t4, t2, t3), 0, _null), "+"))
  47585. startSpan = A.SpanExtensions_trimLeft(A.FileSpanExtension_subspan(t1, 1, _null));
  47586. else {
  47587. scanner = A.StringScanner$(A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t4, t2, t3), 0, _null), _null, _null);
  47588. scanner.expectChar$1(64);
  47589. A._scanIdentifier(scanner);
  47590. startSpan = A.SpanExtensions_trimLeft(A.FileSpanExtension_subspan(t1, scanner._string_scanner$_position, _null));
  47591. }
  47592. return A.SpanExtensions_initialIdentifier(this.namespace != null ? A.FileSpanExtension_subspan(A.SpanExtensions_withoutInitialIdentifier(startSpan), 1, _null) : startSpan);
  47593. },
  47594. accept$1$1(visitor) {
  47595. return visitor.visitIncludeRule$1(0, this);
  47596. },
  47597. accept$1(visitor) {
  47598. return this.accept$1$1(visitor, type$.dynamic);
  47599. },
  47600. toString$0(_) {
  47601. var t2, _this = this,
  47602. t1 = _this.namespace;
  47603. t1 = t1 != null ? "@include " + (t1 + ".") : "@include ";
  47604. t1 += _this.name;
  47605. t2 = _this.$arguments;
  47606. if (!t2.get$isEmpty(0))
  47607. t1 += "(" + t2.toString$0(0) + ")";
  47608. t2 = _this.content;
  47609. t1 += t2 == null ? ";" : " " + t2.toString$0(0);
  47610. return t1.charCodeAt(0) == 0 ? t1 : t1;
  47611. },
  47612. get$span(receiver) {
  47613. return this.span;
  47614. }
  47615. };
  47616. A.LoudComment.prototype = {
  47617. get$span(_) {
  47618. return this.text.span;
  47619. },
  47620. accept$1$1(visitor) {
  47621. return visitor.visitLoudComment$1(0, this);
  47622. },
  47623. accept$1(visitor) {
  47624. return this.accept$1$1(visitor, type$.dynamic);
  47625. },
  47626. toString$0(_) {
  47627. return this.text.toString$0(0);
  47628. }
  47629. };
  47630. A.MediaRule.prototype = {
  47631. accept$1$1(visitor) {
  47632. return visitor.visitMediaRule$1(0, this);
  47633. },
  47634. accept$1(visitor) {
  47635. return this.accept$1$1(visitor, type$.dynamic);
  47636. },
  47637. toString$0(_) {
  47638. var t1 = this.children;
  47639. return "@media " + this.query.toString$0(0) + " {" + (t1 && B.JSArray_methods).join$1(t1, " ") + "}";
  47640. },
  47641. get$span(receiver) {
  47642. return this.span;
  47643. }
  47644. };
  47645. A.MixinRule.prototype = {
  47646. get$hasContent() {
  47647. var result, _this = this,
  47648. value = _this.__MixinRule_hasContent_FI;
  47649. if (value === $) {
  47650. result = J.$eq$(B.C__HasContentVisitor.visitChildren$1(_this.children), true);
  47651. _this.__MixinRule_hasContent_FI !== $ && A.throwUnnamedLateFieldADI();
  47652. _this.__MixinRule_hasContent_FI = result;
  47653. value = result;
  47654. }
  47655. return value;
  47656. },
  47657. accept$1$1(visitor) {
  47658. return visitor.visitMixinRule$1(0, this);
  47659. },
  47660. accept$1(visitor) {
  47661. return this.accept$1$1(visitor, type$.dynamic);
  47662. },
  47663. toString$0(_) {
  47664. var t1 = "@mixin " + this.name,
  47665. t2 = this.$arguments;
  47666. if (!(t2.$arguments.length === 0 && t2.restArgument == null))
  47667. t1 += "(" + t2.toString$0(0) + ")";
  47668. t2 = this.children;
  47669. t2 = t1 + (" {" + (t2 && B.JSArray_methods).join$1(t2, " ") + "}");
  47670. return t2.charCodeAt(0) == 0 ? t2 : t2;
  47671. }
  47672. };
  47673. A._HasContentVisitor.prototype = {
  47674. visitContentRule$1(_, _0) {
  47675. return true;
  47676. }
  47677. };
  47678. A.__HasContentVisitor_Object_StatementSearchVisitor.prototype = {};
  47679. A.ParentStatement.prototype = {};
  47680. A.ParentStatement_closure.prototype = {
  47681. call$1(child) {
  47682. var t1;
  47683. $label0$0: {
  47684. if (child instanceof A.VariableDeclaration || child instanceof A.FunctionRule || child instanceof A.MixinRule) {
  47685. t1 = true;
  47686. break $label0$0;
  47687. }
  47688. if (child instanceof A.ImportRule) {
  47689. t1 = B.JSArray_methods.any$1(child.imports, new A.ParentStatement__closure());
  47690. break $label0$0;
  47691. }
  47692. t1 = false;
  47693. break $label0$0;
  47694. }
  47695. return t1;
  47696. },
  47697. $signature: 153
  47698. };
  47699. A.ParentStatement__closure.prototype = {
  47700. call$1($import) {
  47701. return $import instanceof A.DynamicImport;
  47702. },
  47703. $signature: 159
  47704. };
  47705. A.ReturnRule.prototype = {
  47706. accept$1$1(visitor) {
  47707. return visitor.visitReturnRule$1(0, this);
  47708. },
  47709. accept$1(visitor) {
  47710. return this.accept$1$1(visitor, type$.dynamic);
  47711. },
  47712. toString$0(_) {
  47713. return "@return " + this.expression.toString$0(0) + ";";
  47714. },
  47715. get$span(receiver) {
  47716. return this.span;
  47717. }
  47718. };
  47719. A.SilentComment.prototype = {
  47720. accept$1$1(visitor) {
  47721. return visitor.visitSilentComment$1(0, this);
  47722. },
  47723. accept$1(visitor) {
  47724. return this.accept$1$1(visitor, type$.dynamic);
  47725. },
  47726. toString$0(_) {
  47727. return this.text;
  47728. },
  47729. get$span(receiver) {
  47730. return this.span;
  47731. }
  47732. };
  47733. A.StyleRule.prototype = {
  47734. accept$1$1(visitor) {
  47735. return visitor.visitStyleRule$1(0, this);
  47736. },
  47737. accept$1(visitor) {
  47738. return this.accept$1$1(visitor, type$.dynamic);
  47739. },
  47740. toString$0(_) {
  47741. var t1 = this.children;
  47742. return this.selector.toString$0(0) + " {" + (t1 && B.JSArray_methods).join$1(t1, " ") + "}";
  47743. },
  47744. get$span(receiver) {
  47745. return this.span;
  47746. }
  47747. };
  47748. A.Stylesheet.prototype = {
  47749. Stylesheet$internal$4$plainCss(children, span, parseTimeWarnings, plainCss) {
  47750. var t1, t2, t3, t4, _i, child;
  47751. for (t1 = this.children, t2 = t1.length, t3 = this._forwards, t4 = this._uses, _i = 0; _i < t2; ++_i) {
  47752. child = t1[_i];
  47753. if (child instanceof A.UseRule) {
  47754. t4.push(child);
  47755. continue;
  47756. }
  47757. if (child instanceof A.ForwardRule) {
  47758. t3.push(child);
  47759. continue;
  47760. }
  47761. if (child instanceof A.SilentComment || child instanceof A.LoudComment || child instanceof A.VariableDeclaration)
  47762. continue;
  47763. break;
  47764. }
  47765. },
  47766. accept$1$1(visitor) {
  47767. return visitor.visitStylesheet$1(0, this);
  47768. },
  47769. accept$1(visitor) {
  47770. return this.accept$1$1(visitor, type$.dynamic);
  47771. },
  47772. toString$0(_) {
  47773. var t1 = this.children;
  47774. return (t1 && B.JSArray_methods).join$1(t1, " ");
  47775. },
  47776. get$span(receiver) {
  47777. return this.span;
  47778. }
  47779. };
  47780. A.SupportsRule.prototype = {
  47781. accept$1$1(visitor) {
  47782. return visitor.visitSupportsRule$1(0, this);
  47783. },
  47784. accept$1(visitor) {
  47785. return this.accept$1$1(visitor, type$.dynamic);
  47786. },
  47787. toString$0(_) {
  47788. var t1 = this.children;
  47789. return "@supports " + this.condition.toString$0(0) + " {" + (t1 && B.JSArray_methods).join$1(t1, " ") + "}";
  47790. },
  47791. get$span(receiver) {
  47792. return this.span;
  47793. }
  47794. };
  47795. A.UseRule.prototype = {
  47796. UseRule$4$configuration(url, namespace, span, configuration) {
  47797. var t1, t2, _i, variable;
  47798. for (t1 = this.configuration, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  47799. variable = t1[_i];
  47800. if (variable.isGuarded)
  47801. throw A.wrapException(A.ArgumentError$value(variable, "configured variable", "can't be guarded in a @use rule."));
  47802. }
  47803. },
  47804. accept$1$1(visitor) {
  47805. return visitor.visitUseRule$1(0, this);
  47806. },
  47807. accept$1(visitor) {
  47808. return this.accept$1$1(visitor, type$.dynamic);
  47809. },
  47810. toString$0(_) {
  47811. var t1 = this.url,
  47812. t2 = "@use " + A.StringExpression_quoteText(t1.toString$0(0)),
  47813. basename = t1.get$pathSegments().length === 0 ? "" : B.JSArray_methods.get$last(t1.get$pathSegments()),
  47814. dot = B.JSString_methods.indexOf$1(basename, ".");
  47815. t1 = this.namespace;
  47816. if (t1 !== B.JSString_methods.substring$2(basename, 0, dot === -1 ? basename.length : dot))
  47817. t1 = t2 + (" as " + (t1 == null ? "*" : t1));
  47818. else
  47819. t1 = t2;
  47820. t2 = this.configuration;
  47821. t1 = (t2.length !== 0 ? t1 + (" with (" + B.JSArray_methods.join$1(t2, ", ") + ")") : t1) + ";";
  47822. return t1.charCodeAt(0) == 0 ? t1 : t1;
  47823. },
  47824. get$span(receiver) {
  47825. return this.span;
  47826. }
  47827. };
  47828. A.VariableDeclaration.prototype = {
  47829. accept$1$1(visitor) {
  47830. return visitor.visitVariableDeclaration$1(0, this);
  47831. },
  47832. accept$1(visitor) {
  47833. return this.accept$1$1(visitor, type$.dynamic);
  47834. },
  47835. toString$0(_) {
  47836. var t1 = this.namespace;
  47837. t1 = t1 != null ? "" + (t1 + ".") : "";
  47838. t1 += "$" + this.name + ": " + this.expression.toString$0(0) + ";";
  47839. return t1.charCodeAt(0) == 0 ? t1 : t1;
  47840. },
  47841. get$span(receiver) {
  47842. return this.span;
  47843. }
  47844. };
  47845. A.WarnRule.prototype = {
  47846. accept$1$1(visitor) {
  47847. return visitor.visitWarnRule$1(0, this);
  47848. },
  47849. accept$1(visitor) {
  47850. return this.accept$1$1(visitor, type$.dynamic);
  47851. },
  47852. toString$0(_) {
  47853. return "@warn " + this.expression.toString$0(0) + ";";
  47854. },
  47855. get$span(receiver) {
  47856. return this.span;
  47857. }
  47858. };
  47859. A.WhileRule.prototype = {
  47860. accept$1$1(visitor) {
  47861. return visitor.visitWhileRule$1(0, this);
  47862. },
  47863. accept$1(visitor) {
  47864. return this.accept$1$1(visitor, type$.dynamic);
  47865. },
  47866. toString$0(_) {
  47867. var t1 = this.children;
  47868. return "@while " + this.condition.toString$0(0) + " {" + (t1 && B.JSArray_methods).join$1(t1, " ") + "}";
  47869. },
  47870. get$span(receiver) {
  47871. return this.span;
  47872. }
  47873. };
  47874. A.SupportsAnything.prototype = {
  47875. withSpan$1(span) {
  47876. return new A.SupportsAnything(this.contents, span);
  47877. },
  47878. toString$0(_) {
  47879. return "(" + this.contents.toString$0(0) + ")";
  47880. },
  47881. $isAstNode: 1,
  47882. get$span(receiver) {
  47883. return this.span;
  47884. }
  47885. };
  47886. A.SupportsDeclaration.prototype = {
  47887. get$isCustomProperty() {
  47888. var t1,
  47889. _0_0 = this.name;
  47890. $label0$0: {
  47891. if (_0_0 instanceof A.StringExpression && !_0_0.hasQuotes) {
  47892. t1 = B.JSString_methods.startsWith$1(_0_0.text.get$initialPlain(), "--");
  47893. break $label0$0;
  47894. }
  47895. t1 = false;
  47896. break $label0$0;
  47897. }
  47898. return t1;
  47899. },
  47900. withSpan$1(span) {
  47901. return new A.SupportsDeclaration(this.name, this.value, span);
  47902. },
  47903. toString$0(_) {
  47904. return "(" + this.name.toString$0(0) + ": " + this.value.toString$0(0) + ")";
  47905. },
  47906. $isAstNode: 1,
  47907. get$span(receiver) {
  47908. return this.span;
  47909. }
  47910. };
  47911. A.SupportsFunction.prototype = {
  47912. withSpan$1(span) {
  47913. return new A.SupportsFunction(this.name, this.$arguments, span);
  47914. },
  47915. toString$0(_) {
  47916. return this.name.toString$0(0) + "(" + this.$arguments.toString$0(0) + ")";
  47917. },
  47918. $isAstNode: 1,
  47919. get$span(receiver) {
  47920. return this.span;
  47921. }
  47922. };
  47923. A.SupportsInterpolation.prototype = {
  47924. withSpan$1(span) {
  47925. return new A.SupportsInterpolation(this.expression, span);
  47926. },
  47927. toString$0(_) {
  47928. return "#{" + this.expression.toString$0(0) + "}";
  47929. },
  47930. $isAstNode: 1,
  47931. get$span(receiver) {
  47932. return this.span;
  47933. }
  47934. };
  47935. A.SupportsNegation.prototype = {
  47936. withSpan$1(span) {
  47937. return new A.SupportsNegation(this.condition, span);
  47938. },
  47939. toString$0(_) {
  47940. var t1 = this.condition;
  47941. if (t1 instanceof A.SupportsNegation || t1 instanceof A.SupportsOperation)
  47942. return "not (" + t1.toString$0(0) + ")";
  47943. else
  47944. return "not " + t1.toString$0(0);
  47945. },
  47946. $isAstNode: 1,
  47947. get$span(receiver) {
  47948. return this.span;
  47949. }
  47950. };
  47951. A.SupportsOperation.prototype = {
  47952. withSpan$1(span) {
  47953. return A.SupportsOperation$(this.left, this.right, this.operator, span);
  47954. },
  47955. toString$0(_) {
  47956. var _this = this;
  47957. return _this._operation$_parenthesize$1(_this.left) + " " + _this.operator + " " + _this._operation$_parenthesize$1(_this.right);
  47958. },
  47959. _operation$_parenthesize$1(condition) {
  47960. var t1;
  47961. if (!(condition instanceof A.SupportsNegation))
  47962. t1 = condition instanceof A.SupportsOperation && condition.operator === this.operator;
  47963. else
  47964. t1 = true;
  47965. return t1 ? "(" + condition.toString$0(0) + ")" : condition.toString$0(0);
  47966. },
  47967. $isAstNode: 1,
  47968. get$span(receiver) {
  47969. return this.span;
  47970. }
  47971. };
  47972. A.Selector.prototype = {
  47973. assertNotBogus$1$name($name) {
  47974. if (!this.accept$1(B._IsBogusVisitor_true))
  47975. return;
  47976. A.warnForDeprecation("$" + $name + ": " + (this.toString$0(0) + string$.x20is_nov), B.Deprecation_C9i);
  47977. },
  47978. toString$0(_) {
  47979. var _null = null,
  47980. visitor = A._SerializeVisitor$(_null, true, _null, _null, true, false, _null, true);
  47981. this.accept$1(visitor);
  47982. return visitor._serialize$_buffer.toString$0(0);
  47983. },
  47984. $isAstNode: 1,
  47985. get$span(receiver) {
  47986. return this.span;
  47987. }
  47988. };
  47989. A._IsInvisibleVisitor0.prototype = {
  47990. visitSelectorList$1(list) {
  47991. return B.JSArray_methods.every$1(list.components, this.get$visitComplexSelector());
  47992. },
  47993. visitComplexSelector$1(complex) {
  47994. var t1;
  47995. if (!this.super$AnySelectorVisitor$visitComplexSelector(complex))
  47996. t1 = this.includeBogus && complex.accept$1(B._IsBogusVisitor_false);
  47997. else
  47998. t1 = true;
  47999. return t1;
  48000. },
  48001. visitPlaceholderSelector$1(placeholder) {
  48002. return true;
  48003. },
  48004. visitPseudoSelector$1(pseudo) {
  48005. var t1,
  48006. _0_0 = pseudo.selector;
  48007. if (_0_0 != null) {
  48008. if (pseudo.name === "not")
  48009. t1 = this.includeBogus && _0_0.accept$1(B._IsBogusVisitor_true);
  48010. else
  48011. t1 = this.visitSelectorList$1(_0_0);
  48012. return t1;
  48013. } else
  48014. return false;
  48015. }
  48016. };
  48017. A._IsBogusVisitor.prototype = {
  48018. visitComplexSelector$1(complex) {
  48019. var t2,
  48020. t1 = complex.components;
  48021. if (t1.length === 0)
  48022. return complex.leadingCombinators.length !== 0;
  48023. else {
  48024. t2 = this.includeLeadingCombinator ? 0 : 1;
  48025. return complex.leadingCombinators.length > t2 || B.JSArray_methods.get$last(t1).combinators.length !== 0 || B.JSArray_methods.any$1(t1, new A._IsBogusVisitor_visitComplexSelector_closure(this));
  48026. }
  48027. },
  48028. visitPseudoSelector$1(pseudo) {
  48029. var selector = pseudo.selector;
  48030. if (selector == null)
  48031. return false;
  48032. return pseudo.name === "has" ? selector.accept$1(B._IsBogusVisitor_false) : selector.accept$1(B._IsBogusVisitor_true);
  48033. }
  48034. };
  48035. A._IsBogusVisitor_visitComplexSelector_closure.prototype = {
  48036. call$1(component) {
  48037. return component.combinators.length > 1 || this.$this.visitCompoundSelector$1(component.selector);
  48038. },
  48039. $signature: 53
  48040. };
  48041. A._IsUselessVisitor.prototype = {
  48042. visitComplexSelector$1(complex) {
  48043. return complex.leadingCombinators.length > 1 || B.JSArray_methods.any$1(complex.components, new A._IsUselessVisitor_visitComplexSelector_closure(this));
  48044. },
  48045. visitPseudoSelector$1(pseudo) {
  48046. return pseudo.accept$1(B._IsBogusVisitor_true);
  48047. }
  48048. };
  48049. A._IsUselessVisitor_visitComplexSelector_closure.prototype = {
  48050. call$1(component) {
  48051. return component.combinators.length > 1 || this.$this.visitCompoundSelector$1(component.selector);
  48052. },
  48053. $signature: 53
  48054. };
  48055. A.__IsBogusVisitor_Object_AnySelectorVisitor.prototype = {};
  48056. A.__IsInvisibleVisitor_Object_AnySelectorVisitor.prototype = {};
  48057. A.__IsUselessVisitor_Object_AnySelectorVisitor.prototype = {};
  48058. A.AttributeSelector.prototype = {
  48059. accept$1$1(visitor) {
  48060. return visitor.visitAttributeSelector$1(this);
  48061. },
  48062. accept$1(visitor) {
  48063. return this.accept$1$1(visitor, type$.dynamic);
  48064. },
  48065. $eq(_, other) {
  48066. var _this = this;
  48067. if (other == null)
  48068. return false;
  48069. return other instanceof A.AttributeSelector && other.name.$eq(0, _this.name) && other.op == _this.op && other.value == _this.value && other.modifier == _this.modifier;
  48070. },
  48071. get$hashCode(_) {
  48072. var _this = this,
  48073. t1 = _this.name;
  48074. return (B.JSString_methods.get$hashCode(t1.name) ^ J.get$hashCode$(t1.namespace) ^ J.get$hashCode$(_this.op) ^ J.get$hashCode$(_this.value) ^ J.get$hashCode$(_this.modifier)) >>> 0;
  48075. }
  48076. };
  48077. A.AttributeOperator.prototype = {
  48078. _enumToString$0() {
  48079. return "AttributeOperator." + this._name;
  48080. },
  48081. toString$0(_) {
  48082. return this._attribute$_text;
  48083. }
  48084. };
  48085. A.ClassSelector.prototype = {
  48086. $eq(_, other) {
  48087. if (other == null)
  48088. return false;
  48089. return other instanceof A.ClassSelector && other.name === this.name;
  48090. },
  48091. accept$1$1(visitor) {
  48092. return visitor.visitClassSelector$1(this);
  48093. },
  48094. accept$1(visitor) {
  48095. return this.accept$1$1(visitor, type$.dynamic);
  48096. },
  48097. addSuffix$1(suffix) {
  48098. return new A.ClassSelector(this.name + suffix, this.span);
  48099. },
  48100. get$hashCode(_) {
  48101. return B.JSString_methods.get$hashCode(this.name);
  48102. }
  48103. };
  48104. A.Combinator.prototype = {
  48105. _enumToString$0() {
  48106. return "Combinator." + this._name;
  48107. },
  48108. toString$0(_) {
  48109. return this._combinator$_text;
  48110. }
  48111. };
  48112. A.ComplexSelector.prototype = {
  48113. get$specificity() {
  48114. var result, _this = this,
  48115. value = _this.__ComplexSelector_specificity_FI;
  48116. if (value === $) {
  48117. result = B.JSArray_methods.fold$2(_this.components, 0, new A.ComplexSelector_specificity_closure());
  48118. _this.__ComplexSelector_specificity_FI !== $ && A.throwUnnamedLateFieldADI();
  48119. _this.__ComplexSelector_specificity_FI = result;
  48120. value = result;
  48121. }
  48122. return value;
  48123. },
  48124. get$singleCompound() {
  48125. var _0_0, t1, _0_4, t2, selector, _null = null;
  48126. if (this.leadingCombinators.length !== 0)
  48127. return _null;
  48128. _0_0 = this.components;
  48129. $label0$0: {
  48130. t1 = false;
  48131. if (_0_0.length === 1) {
  48132. _0_4 = _0_0[0];
  48133. t2 = _0_4;
  48134. selector = t2.selector;
  48135. t1 = _0_4.combinators.length <= 0;
  48136. } else
  48137. selector = _null;
  48138. if (t1) {
  48139. t1 = selector;
  48140. break $label0$0;
  48141. }
  48142. t1 = _null;
  48143. break $label0$0;
  48144. }
  48145. return t1;
  48146. },
  48147. accept$1$1(visitor) {
  48148. return visitor.visitComplexSelector$1(this);
  48149. },
  48150. accept$1(visitor) {
  48151. return this.accept$1$1(visitor, type$.dynamic);
  48152. },
  48153. isSuperselector$1(other) {
  48154. return this.leadingCombinators.length === 0 && other.leadingCombinators.length === 0 && A.complexIsSuperselector(this.components, other.components);
  48155. },
  48156. withAdditionalCombinators$1(combinators) {
  48157. var _0_0, _0_1, t1, initial, last, _this = this;
  48158. if (combinators.length === 0)
  48159. return _this;
  48160. _0_0 = _this.components;
  48161. $label0$0: {
  48162. _0_1 = _0_0.length;
  48163. if (_0_1 >= 1) {
  48164. t1 = _0_1 - 1;
  48165. initial = B.JSArray_methods.sublist$2(_0_0, 0, t1);
  48166. last = _0_0[t1];
  48167. t1 = A.List_List$of(initial, true, type$.ComplexSelectorComponent);
  48168. t1.push(last.withAdditionalCombinators$1(combinators));
  48169. t1 = A.ComplexSelector$(_this.leadingCombinators, t1, _this.span, _this.lineBreak);
  48170. break $label0$0;
  48171. }
  48172. if (_0_1 <= 0) {
  48173. t1 = A.List_List$of(_this.leadingCombinators, true, type$.CssValue_Combinator);
  48174. B.JSArray_methods.addAll$1(t1, combinators);
  48175. t1 = A.ComplexSelector$(t1, B.List_empty2, _this.span, _this.lineBreak);
  48176. break $label0$0;
  48177. }
  48178. throw A.wrapException(A.ReachabilityError$(string$.None_o));
  48179. }
  48180. return t1;
  48181. },
  48182. concatenate$3$forceLineBreak(child, span, forceLineBreak) {
  48183. var t2, _0_1, initial, last, _this = this,
  48184. t1 = child.leadingCombinators,
  48185. _0_0 = _this.components;
  48186. if (t1.length === 0) {
  48187. t1 = A.List_List$of(_0_0, true, type$.ComplexSelectorComponent);
  48188. B.JSArray_methods.addAll$1(t1, child.components);
  48189. t2 = _this.lineBreak || child.lineBreak || forceLineBreak;
  48190. return A.ComplexSelector$(_this.leadingCombinators, t1, span, t2);
  48191. } else {
  48192. _0_1 = _0_0.length;
  48193. if (_0_1 >= 1) {
  48194. t2 = _0_1 - 1;
  48195. initial = B.JSArray_methods.sublist$2(_0_0, 0, t2);
  48196. last = _0_0[t2];
  48197. t2 = A.List_List$of(initial, true, type$.ComplexSelectorComponent);
  48198. t2.push(last.withAdditionalCombinators$1(t1));
  48199. B.JSArray_methods.addAll$1(t2, child.components);
  48200. t1 = _this.lineBreak || child.lineBreak || forceLineBreak;
  48201. return A.ComplexSelector$(_this.leadingCombinators, t2, span, t1);
  48202. } else {
  48203. t2 = A.List_List$of(_this.leadingCombinators, true, type$.CssValue_Combinator);
  48204. B.JSArray_methods.addAll$1(t2, t1);
  48205. t1 = _this.lineBreak || child.lineBreak || forceLineBreak;
  48206. return A.ComplexSelector$(t2, child.components, span, t1);
  48207. }
  48208. }
  48209. },
  48210. concatenate$2(child, span) {
  48211. return this.concatenate$3$forceLineBreak(child, span, false);
  48212. },
  48213. get$hashCode(_) {
  48214. return B.C_ListEquality0.hash$1(this.leadingCombinators) ^ B.C_ListEquality0.hash$1(this.components);
  48215. },
  48216. $eq(_, other) {
  48217. if (other == null)
  48218. return false;
  48219. return other instanceof A.ComplexSelector && B.C_ListEquality.equals$2(0, this.leadingCombinators, other.leadingCombinators) && B.C_ListEquality.equals$2(0, this.components, other.components);
  48220. }
  48221. };
  48222. A.ComplexSelector_specificity_closure.prototype = {
  48223. call$2(sum, component) {
  48224. return sum + component.selector.get$specificity();
  48225. },
  48226. $signature: 483
  48227. };
  48228. A.ComplexSelectorComponent.prototype = {
  48229. withAdditionalCombinators$1(combinators) {
  48230. var t1, t2, _this = this;
  48231. if (combinators.length === 0)
  48232. t1 = _this;
  48233. else {
  48234. t1 = type$.CssValue_Combinator;
  48235. t2 = A.List_List$of(_this.combinators, true, t1);
  48236. B.JSArray_methods.addAll$1(t2, combinators);
  48237. t1 = new A.ComplexSelectorComponent(_this.selector, A.List_List$unmodifiable(t2, t1), _this.span);
  48238. }
  48239. return t1;
  48240. },
  48241. get$hashCode(_) {
  48242. return B.C_ListEquality0.hash$1(this.selector.components) ^ B.C_ListEquality0.hash$1(this.combinators);
  48243. },
  48244. $eq(_, other) {
  48245. var t1;
  48246. if (other == null)
  48247. return false;
  48248. if (other instanceof A.ComplexSelectorComponent) {
  48249. t1 = B.C_ListEquality.equals$2(0, this.selector.components, other.selector.components);
  48250. t1 = t1 && B.C_ListEquality.equals$2(0, this.combinators, other.combinators);
  48251. } else
  48252. t1 = false;
  48253. return t1;
  48254. },
  48255. toString$0(_) {
  48256. var t1 = this.combinators;
  48257. return A.serializeSelector(this.selector, true) + new A.MappedListIterable(t1, new A.ComplexSelectorComponent_toString_closure(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$1(0, "");
  48258. }
  48259. };
  48260. A.ComplexSelectorComponent_toString_closure.prototype = {
  48261. call$1(combinator) {
  48262. return " " + combinator.toString$0(0);
  48263. },
  48264. $signature: 489
  48265. };
  48266. A.CompoundSelector.prototype = {
  48267. get$specificity() {
  48268. var result, _this = this,
  48269. value = _this.__CompoundSelector_specificity_FI;
  48270. if (value === $) {
  48271. result = B.JSArray_methods.fold$2(_this.components, 0, new A.CompoundSelector_specificity_closure());
  48272. _this.__CompoundSelector_specificity_FI !== $ && A.throwUnnamedLateFieldADI();
  48273. _this.__CompoundSelector_specificity_FI = result;
  48274. value = result;
  48275. }
  48276. return value;
  48277. },
  48278. get$hasComplicatedSuperselectorSemantics() {
  48279. var result, _this = this,
  48280. value = _this.__CompoundSelector_hasComplicatedSuperselectorSemantics_FI;
  48281. if (value === $) {
  48282. result = B.JSArray_methods.any$1(_this.components, new A.CompoundSelector_hasComplicatedSuperselectorSemantics_closure());
  48283. _this.__CompoundSelector_hasComplicatedSuperselectorSemantics_FI !== $ && A.throwUnnamedLateFieldADI();
  48284. _this.__CompoundSelector_hasComplicatedSuperselectorSemantics_FI = result;
  48285. value = result;
  48286. }
  48287. return value;
  48288. },
  48289. accept$1$1(visitor) {
  48290. return visitor.visitCompoundSelector$1(this);
  48291. },
  48292. accept$1(visitor) {
  48293. return this.accept$1$1(visitor, type$.dynamic);
  48294. },
  48295. get$hashCode(_) {
  48296. return B.C_ListEquality0.hash$1(this.components);
  48297. },
  48298. $eq(_, other) {
  48299. if (other == null)
  48300. return false;
  48301. return other instanceof A.CompoundSelector && B.C_ListEquality.equals$2(0, this.components, other.components);
  48302. }
  48303. };
  48304. A.CompoundSelector_specificity_closure.prototype = {
  48305. call$2(sum, component) {
  48306. return sum + component.get$specificity();
  48307. },
  48308. $signature: 490
  48309. };
  48310. A.CompoundSelector_hasComplicatedSuperselectorSemantics_closure.prototype = {
  48311. call$1(component) {
  48312. return component.get$hasComplicatedSuperselectorSemantics();
  48313. },
  48314. $signature: 13
  48315. };
  48316. A.IDSelector.prototype = {
  48317. get$specificity() {
  48318. return A._asInt(Math.pow(A.SimpleSelector.prototype.get$specificity.call(this), 2));
  48319. },
  48320. accept$1$1(visitor) {
  48321. return visitor.visitIDSelector$1(this);
  48322. },
  48323. accept$1(visitor) {
  48324. return this.accept$1$1(visitor, type$.dynamic);
  48325. },
  48326. addSuffix$1(suffix) {
  48327. return new A.IDSelector(this.name + suffix, this.span);
  48328. },
  48329. unify$1(compound) {
  48330. if (B.JSArray_methods.any$1(compound, new A.IDSelector_unify_closure(this)))
  48331. return null;
  48332. return this.super$SimpleSelector$unify(compound);
  48333. },
  48334. $eq(_, other) {
  48335. if (other == null)
  48336. return false;
  48337. return other instanceof A.IDSelector && other.name === this.name;
  48338. },
  48339. get$hashCode(_) {
  48340. return B.JSString_methods.get$hashCode(this.name);
  48341. }
  48342. };
  48343. A.IDSelector_unify_closure.prototype = {
  48344. call$1(simple) {
  48345. var t1;
  48346. if (simple instanceof A.IDSelector)
  48347. t1 = this.$this.name !== simple.name;
  48348. else
  48349. t1 = false;
  48350. return t1;
  48351. },
  48352. $signature: 13
  48353. };
  48354. A.SelectorList.prototype = {
  48355. get$asSassList() {
  48356. var t1 = this.components;
  48357. return A.SassList$(new A.MappedListIterable(t1, new A.SelectorList_asSassList_closure(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value>")), B.ListSeparator_ECn, false);
  48358. },
  48359. accept$1$1(visitor) {
  48360. return visitor.visitSelectorList$1(this);
  48361. },
  48362. accept$1(visitor) {
  48363. return this.accept$1$1(visitor, type$.dynamic);
  48364. },
  48365. unify$1(other) {
  48366. var t3, t4, t5, t6, _i, complex1, _i0, t7,
  48367. t1 = type$.JSArray_ComplexSelector,
  48368. t2 = A._setArrayType([], t1);
  48369. for (t3 = this.components, t4 = t3.length, t5 = other.components, t6 = t5.length, _i = 0; _i < t4; ++_i) {
  48370. complex1 = t3[_i];
  48371. for (_i0 = 0; _i0 < t6; ++_i0) {
  48372. t7 = A.unifyComplex(A._setArrayType([complex1, t5[_i0]], t1), complex1.span);
  48373. if (t7 != null)
  48374. B.JSArray_methods.addAll$1(t2, t7);
  48375. }
  48376. }
  48377. return t2.length === 0 ? null : A.SelectorList$(t2, this.span);
  48378. },
  48379. nestWithin$3$implicitParent$preserveParentSelectors($parent, implicitParent, preserveParentSelectors) {
  48380. var parentSelector, t1, _this = this;
  48381. if ($parent == null) {
  48382. if (preserveParentSelectors)
  48383. return _this;
  48384. parentSelector = B.C__ParentSelectorVisitor.visitSelectorList$1(_this);
  48385. if (parentSelector == null)
  48386. return _this;
  48387. throw A.wrapException(A.SassException$(string$.Top_les, parentSelector.span, null));
  48388. }
  48389. t1 = _this.components;
  48390. return A.SelectorList$(A.flattenVertically(new A.MappedListIterable(t1, new A.SelectorList_nestWithin_closure(_this, preserveParentSelectors, implicitParent, $parent), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Iterable<ComplexSelector>>")), type$.ComplexSelector), _this.span);
  48391. },
  48392. nestWithin$1($parent) {
  48393. return this.nestWithin$3$implicitParent$preserveParentSelectors($parent, true, false);
  48394. },
  48395. nestWithin$2$implicitParent($parent, implicitParent) {
  48396. return this.nestWithin$3$implicitParent$preserveParentSelectors($parent, implicitParent, false);
  48397. },
  48398. _nestWithinCompound$2(component, $parent) {
  48399. var resolvedSimples, parentSelector, error, stackTrace, t2, resolvedSimples0, exception,
  48400. t1 = component.selector,
  48401. simples = t1.components,
  48402. containsSelectorPseudo = J.any$1$ax(simples, new A.SelectorList__nestWithinCompound_closure());
  48403. if (!containsSelectorPseudo && !(J.get$first$ax(simples) instanceof A.ParentSelector))
  48404. return null;
  48405. if (containsSelectorPseudo) {
  48406. t2 = simples;
  48407. resolvedSimples0 = new A.MappedListIterable(t2, new A.SelectorList__nestWithinCompound_closure0($parent), A._arrayInstanceType(t2)._eval$1("MappedListIterable<1,SimpleSelector>"));
  48408. } else
  48409. resolvedSimples0 = simples;
  48410. resolvedSimples = resolvedSimples0;
  48411. parentSelector = J.get$first$ax(simples);
  48412. try {
  48413. if (!(parentSelector instanceof A.ParentSelector)) {
  48414. t2 = component.span;
  48415. t2 = A._setArrayType([A.ComplexSelector$(B.List_empty0, A._setArrayType([new A.ComplexSelectorComponent(A.CompoundSelector$(resolvedSimples, t1.span), A.List_List$unmodifiable(component.combinators, type$.CssValue_Combinator), t2)], type$.JSArray_ComplexSelectorComponent), t2, false)], type$.JSArray_ComplexSelector);
  48416. return t2;
  48417. } else if (J.get$length$asx(simples) === 1 && parentSelector.suffix == null) {
  48418. t1 = $parent.withAdditionalCombinators$1(component.combinators);
  48419. return t1.components;
  48420. }
  48421. } catch (exception) {
  48422. t1 = A.unwrapException(exception);
  48423. if (t1 instanceof A.SassException) {
  48424. error = t1;
  48425. stackTrace = A.getTraceFromException(exception);
  48426. A.throwWithTrace(error.withAdditionalSpan$2(parentSelector.span, "parent selector"), error, stackTrace);
  48427. } else
  48428. throw exception;
  48429. }
  48430. t1 = $parent.components;
  48431. return new A.MappedListIterable(t1, new A.SelectorList__nestWithinCompound_closure1(parentSelector, resolvedSimples, component), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector>"));
  48432. },
  48433. isSuperselector$1(other) {
  48434. return A.listIsSuperselector(this.components, other.components);
  48435. },
  48436. withAdditionalCombinators$1(combinators) {
  48437. var t1;
  48438. if (combinators.length === 0)
  48439. t1 = this;
  48440. else {
  48441. t1 = this.components;
  48442. t1 = A.SelectorList$(new A.MappedListIterable(t1, new A.SelectorList_withAdditionalCombinators_closure(combinators), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector>")), this.span);
  48443. }
  48444. return t1;
  48445. },
  48446. get$hashCode(_) {
  48447. return B.C_ListEquality0.hash$1(this.components);
  48448. },
  48449. $eq(_, other) {
  48450. if (other == null)
  48451. return false;
  48452. return other instanceof A.SelectorList && B.C_ListEquality.equals$2(0, this.components, other.components);
  48453. }
  48454. };
  48455. A.SelectorList_asSassList_closure.prototype = {
  48456. call$1(complex) {
  48457. var t3, t4, _i, component, t5, visitor, t6, t7, _i0, _null = null,
  48458. t1 = type$.JSArray_Value,
  48459. t2 = A._setArrayType([], t1);
  48460. for (t3 = complex.leadingCombinators, t4 = t3.length, _i = 0; _i < t4; ++_i)
  48461. t2.push(new A.SassString(J.toString$0$(t3[_i].value), false));
  48462. for (t3 = complex.components, t4 = t3.length, _i = 0; _i < t4; ++_i) {
  48463. component = t3[_i];
  48464. t5 = component.selector;
  48465. visitor = A._SerializeVisitor$(_null, true, _null, _null, true, false, _null, true);
  48466. t5.accept$1(visitor);
  48467. t5 = A._setArrayType([new A.SassString(visitor._serialize$_buffer.toString$0(0), false)], t1);
  48468. for (t6 = component.combinators, t7 = t6.length, _i0 = 0; _i0 < t7; ++_i0)
  48469. t5.push(new A.SassString(J.toString$0$(t6[_i0].value), false));
  48470. B.JSArray_methods.addAll$1(t2, t5);
  48471. }
  48472. return A.SassList$(t2, B.ListSeparator_nbm, false);
  48473. },
  48474. $signature: 525
  48475. };
  48476. A.SelectorList_nestWithin_closure.prototype = {
  48477. call$1(complex) {
  48478. var t1, newComplexes, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, _i, component, resolved, i, t12, t13, t14, _i0, newComplex, t15, _this = this;
  48479. if (_this.preserveParentSelectors || complex.accept$1(B.C__ParentSelectorVisitor) == null) {
  48480. if (!_this.implicitParent)
  48481. return A._setArrayType([complex], type$.JSArray_ComplexSelector);
  48482. t1 = _this.parent.components;
  48483. return new A.MappedListIterable(t1, new A.SelectorList_nestWithin__closure(complex), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector>"));
  48484. }
  48485. t1 = type$.JSArray_ComplexSelector;
  48486. newComplexes = A._setArrayType([], t1);
  48487. for (t2 = complex.components, t3 = t2.length, t4 = _this.$this, t5 = _this.parent, t6 = type$.ComplexSelector, t7 = complex.leadingCombinators, t8 = t7.length === 0, t9 = complex.span, t10 = type$.ComplexSelectorComponent, t11 = type$.JSArray_ComplexSelectorComponent, _i = 0; _i < t3; ++_i) {
  48488. component = t2[_i];
  48489. resolved = t4._nestWithinCompound$2(component, t5);
  48490. if (resolved == null)
  48491. if (newComplexes.length === 0)
  48492. newComplexes.push(A.ComplexSelector$(t7, A._setArrayType([component], t11), t9, false));
  48493. else
  48494. for (i = 0; i < newComplexes.length; ++i) {
  48495. t12 = newComplexes[i];
  48496. t13 = t12.leadingCombinators;
  48497. t14 = A.List_List$of(t12.components, true, t10);
  48498. t14.push(component);
  48499. t12 = t12.lineBreak;
  48500. newComplexes[i] = A.ComplexSelector$(t13, t14, t9, t12);
  48501. }
  48502. else if (newComplexes.length === 0)
  48503. B.JSArray_methods.addAll$1(newComplexes, t8 ? resolved : J.map$1$1$ax(resolved, new A.SelectorList_nestWithin__closure0(complex), t6));
  48504. else {
  48505. t12 = A._setArrayType([], t1);
  48506. for (t13 = newComplexes.length, t14 = J.getInterceptor$ax(resolved), _i0 = 0; _i0 < newComplexes.length; newComplexes.length === t13 || (0, A.throwConcurrentModificationError)(newComplexes), ++_i0) {
  48507. newComplex = newComplexes[_i0];
  48508. for (t15 = t14.get$iterator(resolved); t15.moveNext$0();)
  48509. t12.push(newComplex.concatenate$2(t15.get$current(t15), newComplex.span));
  48510. }
  48511. newComplexes = t12;
  48512. }
  48513. }
  48514. return newComplexes;
  48515. },
  48516. $signature: 527
  48517. };
  48518. A.SelectorList_nestWithin__closure.prototype = {
  48519. call$1(parentComplex) {
  48520. var t1 = this.complex;
  48521. return parentComplex.concatenate$2(t1, t1.span);
  48522. },
  48523. $signature: 63
  48524. };
  48525. A.SelectorList_nestWithin__closure0.prototype = {
  48526. call$1(resolvedComplex) {
  48527. var t1 = resolvedComplex.leadingCombinators,
  48528. t2 = this.complex,
  48529. t3 = t2.leadingCombinators;
  48530. if (t1.length === 0)
  48531. t1 = t3;
  48532. else {
  48533. t3 = A.List_List$of(t3, true, type$.CssValue_Combinator);
  48534. B.JSArray_methods.addAll$1(t3, t1);
  48535. t1 = t3;
  48536. }
  48537. return A.ComplexSelector$(t1, resolvedComplex.components, t2.span, resolvedComplex.lineBreak);
  48538. },
  48539. $signature: 63
  48540. };
  48541. A.SelectorList__nestWithinCompound_closure.prototype = {
  48542. call$1(simple) {
  48543. var selector;
  48544. if (!(simple instanceof A.PseudoSelector))
  48545. return false;
  48546. selector = simple.selector;
  48547. return selector != null && selector.accept$1(B.C__ParentSelectorVisitor) != null;
  48548. },
  48549. $signature: 13
  48550. };
  48551. A.SelectorList__nestWithinCompound_closure0.prototype = {
  48552. call$1(simple) {
  48553. var selector, t1, _0_2;
  48554. $label0$0: {
  48555. selector = null;
  48556. t1 = false;
  48557. if (simple instanceof A.PseudoSelector) {
  48558. _0_2 = simple.selector;
  48559. if (_0_2 != null) {
  48560. selector = _0_2 == null ? type$.SelectorList._as(_0_2) : _0_2;
  48561. t1 = selector.accept$1(B.C__ParentSelectorVisitor) != null;
  48562. }
  48563. }
  48564. if (t1) {
  48565. t1 = simple.withSelector$1(selector.nestWithin$2$implicitParent(this.parent, false));
  48566. break $label0$0;
  48567. }
  48568. t1 = simple;
  48569. break $label0$0;
  48570. }
  48571. return t1;
  48572. },
  48573. $signature: 543
  48574. };
  48575. A.SelectorList__nestWithinCompound_closure1.prototype = {
  48576. call$1(complex) {
  48577. var lastComponent, suffix, lastSimples, t1, t2, last, t3, error, stackTrace, t4, t5, t6, t7, exception, _this = this;
  48578. try {
  48579. t4 = complex.components;
  48580. lastComponent = B.JSArray_methods.get$last(t4);
  48581. if (lastComponent.combinators.length !== 0) {
  48582. t1 = A.MultiSpanSassException$('Selector "' + complex.toString$0(0) + string$.x22x20can_, A.SpanExtensions_trimRight(lastComponent.span), "outer selector", A.LinkedHashMap_LinkedHashMap$_literal([_this.parentSelector.span, "parent selector"], type$.FileSpan, type$.String), null);
  48583. throw A.wrapException(t1);
  48584. }
  48585. suffix = _this.parentSelector.suffix;
  48586. lastSimples = lastComponent.selector.components;
  48587. t5 = type$.SimpleSelector;
  48588. t6 = _this.resolvedSimples;
  48589. t7 = J.getInterceptor$ax(t6);
  48590. if (suffix == null) {
  48591. t1 = A.List_List$of(lastSimples, true, t5);
  48592. J.addAll$1$ax(t1, t7.skip$1(t6, 1));
  48593. t1 = t1;
  48594. } else {
  48595. t2 = A.List_List$of(A.IterableExtension_get_exceptLast(lastSimples), true, t5);
  48596. J.add$1$ax(t2, J.get$last$ax(lastSimples).addSuffix$1(suffix));
  48597. J.addAll$1$ax(t2, t7.skip$1(t6, 1));
  48598. t1 = t2;
  48599. }
  48600. t2 = _this.component;
  48601. last = A.CompoundSelector$(t1, t2.selector.span);
  48602. t3 = A.List_List$of(A.IterableExtension_get_exceptLast(t4), true, type$.ComplexSelectorComponent);
  48603. t4 = t2.span;
  48604. J.add$1$ax(t3, new A.ComplexSelectorComponent(last, A.List_List$unmodifiable(t2.combinators, type$.CssValue_Combinator), t4));
  48605. t4 = A.ComplexSelector$(complex.leadingCombinators, t3, t4, complex.lineBreak);
  48606. return t4;
  48607. } catch (exception) {
  48608. t1 = A.unwrapException(exception);
  48609. if (t1 instanceof A.SassException) {
  48610. error = t1;
  48611. stackTrace = A.getTraceFromException(exception);
  48612. A.throwWithTrace(error.withAdditionalSpan$2(_this.parentSelector.span, "parent selector"), error, stackTrace);
  48613. } else
  48614. throw exception;
  48615. }
  48616. },
  48617. $signature: 63
  48618. };
  48619. A.SelectorList_withAdditionalCombinators_closure.prototype = {
  48620. call$1(complex) {
  48621. return complex.withAdditionalCombinators$1(this.combinators);
  48622. },
  48623. $signature: 63
  48624. };
  48625. A._ParentSelectorVisitor.prototype = {
  48626. visitParentSelector$1(selector) {
  48627. return selector;
  48628. }
  48629. };
  48630. A.__ParentSelectorVisitor_Object_SelectorSearchVisitor.prototype = {};
  48631. A.ParentSelector.prototype = {
  48632. accept$1$1(visitor) {
  48633. return visitor.visitParentSelector$1(this);
  48634. },
  48635. accept$1(visitor) {
  48636. return this.accept$1$1(visitor, type$.dynamic);
  48637. },
  48638. unify$1(compound) {
  48639. return A.throwExpression(A.UnsupportedError$("& doesn't support unification."));
  48640. }
  48641. };
  48642. A.PlaceholderSelector.prototype = {
  48643. accept$1$1(visitor) {
  48644. return visitor.visitPlaceholderSelector$1(this);
  48645. },
  48646. accept$1(visitor) {
  48647. return this.accept$1$1(visitor, type$.dynamic);
  48648. },
  48649. addSuffix$1(suffix) {
  48650. return new A.PlaceholderSelector(this.name + suffix, this.span);
  48651. },
  48652. $eq(_, other) {
  48653. if (other == null)
  48654. return false;
  48655. return other instanceof A.PlaceholderSelector && other.name === this.name;
  48656. },
  48657. get$hashCode(_) {
  48658. return B.JSString_methods.get$hashCode(this.name);
  48659. }
  48660. };
  48661. A.PseudoSelector.prototype = {
  48662. get$isHostContext() {
  48663. return this.isClass && this.name === "host-context" && this.selector != null;
  48664. },
  48665. get$hasComplicatedSuperselectorSemantics() {
  48666. return !this.isClass || this.selector != null;
  48667. },
  48668. get$specificity() {
  48669. var result, _this = this,
  48670. value = _this.__PseudoSelector_specificity_FI;
  48671. if (value === $) {
  48672. result = new A.PseudoSelector_specificity_closure(_this).call$0();
  48673. _this.__PseudoSelector_specificity_FI !== $ && A.throwUnnamedLateFieldADI();
  48674. _this.__PseudoSelector_specificity_FI = result;
  48675. value = result;
  48676. }
  48677. return value;
  48678. },
  48679. withSelector$1(selector) {
  48680. var _this = this;
  48681. return A.PseudoSelector$(_this.name, _this.span, _this.argument, !_this.isClass, selector);
  48682. },
  48683. addSuffix$1(suffix) {
  48684. var _this = this;
  48685. if (_this.argument != null || _this.selector != null)
  48686. _this.super$SimpleSelector$addSuffix(suffix);
  48687. return A.PseudoSelector$(_this.name + suffix, _this.span, null, !_this.isClass, null);
  48688. },
  48689. unify$1(compound) {
  48690. var other, result, t2, addedThis, _i, simple, _this = this,
  48691. t1 = _this.name;
  48692. if (t1 === "host" || t1 === "host-context") {
  48693. if (!B.JSArray_methods.every$1(compound, new A.PseudoSelector_unify_closure()))
  48694. return null;
  48695. } else {
  48696. t1 = false;
  48697. if (compound.length === 1) {
  48698. other = compound[0];
  48699. if (!(other instanceof A.UniversalSelector)) {
  48700. if (other instanceof A.PseudoSelector)
  48701. t1 = other.isClass && other.name === "host" || other.get$isHostContext();
  48702. } else
  48703. t1 = true;
  48704. } else
  48705. other = null;
  48706. if (t1)
  48707. return other.unify$1(A._setArrayType([_this], type$.JSArray_SimpleSelector));
  48708. }
  48709. if (B.JSArray_methods.contains$1(compound, _this))
  48710. return compound;
  48711. result = A._setArrayType([], type$.JSArray_SimpleSelector);
  48712. for (t1 = compound.length, t2 = !_this.isClass, addedThis = false, _i = 0; _i < compound.length; compound.length === t1 || (0, A.throwConcurrentModificationError)(compound), ++_i) {
  48713. simple = compound[_i];
  48714. if (simple instanceof A.PseudoSelector && !simple.isClass) {
  48715. if (t2)
  48716. return null;
  48717. result.push(_this);
  48718. addedThis = true;
  48719. }
  48720. result.push(simple);
  48721. }
  48722. if (!addedThis)
  48723. result.push(_this);
  48724. return result;
  48725. },
  48726. isSuperselector$1(other) {
  48727. var selector, t1, t2, _this = this;
  48728. if (_this.super$SimpleSelector$isSuperselector(other))
  48729. return true;
  48730. selector = _this.selector;
  48731. if (selector == null)
  48732. return _this.$eq(0, other);
  48733. if (other instanceof A.PseudoSelector && !_this.isClass && !other.isClass && _this.normalizedName === "slotted" && other.name === _this.name) {
  48734. t1 = A.NullableExtension_andThen(other.selector, selector.get$isSuperselector());
  48735. return t1 == null ? false : t1;
  48736. }
  48737. t1 = type$.JSArray_SimpleSelector;
  48738. t2 = _this.span;
  48739. return A.compoundIsSuperselector(A.CompoundSelector$(A._setArrayType([_this], t1), t2), A.CompoundSelector$(A._setArrayType([other], t1), t2), null);
  48740. },
  48741. accept$1$1(visitor) {
  48742. return visitor.visitPseudoSelector$1(this);
  48743. },
  48744. accept$1(visitor) {
  48745. return this.accept$1$1(visitor, type$.dynamic);
  48746. },
  48747. $eq(_, other) {
  48748. var _this = this;
  48749. if (other == null)
  48750. return false;
  48751. return other instanceof A.PseudoSelector && other.name === _this.name && other.isClass === _this.isClass && other.argument == _this.argument && J.$eq$(other.selector, _this.selector);
  48752. },
  48753. get$hashCode(_) {
  48754. var _this = this,
  48755. t1 = B.JSString_methods.get$hashCode(_this.name),
  48756. t2 = !_this.isClass ? 519018 : 218159;
  48757. return t1 ^ t2 ^ J.get$hashCode$(_this.argument) ^ J.get$hashCode$(_this.selector);
  48758. }
  48759. };
  48760. A.PseudoSelector_specificity_closure.prototype = {
  48761. call$0() {
  48762. var selector, t2,
  48763. t1 = this.$this;
  48764. if (!t1.isClass)
  48765. return 1;
  48766. selector = t1.selector;
  48767. if (selector == null)
  48768. return A.SimpleSelector.prototype.get$specificity.call(t1);
  48769. switch (t1.normalizedName) {
  48770. case "where":
  48771. return 0;
  48772. case "is":
  48773. case "not":
  48774. case "has":
  48775. case "matches":
  48776. t1 = selector.components;
  48777. return A.IterableIntegerExtension_get_max(new A.MappedListIterable(t1, new A.PseudoSelector_specificity__closure(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,int>")));
  48778. case "nth-child":
  48779. case "nth-last-child":
  48780. t1 = A.SimpleSelector.prototype.get$specificity.call(t1);
  48781. t2 = selector.components;
  48782. return t1 + A.IterableIntegerExtension_get_max(new A.MappedListIterable(t2, new A.PseudoSelector_specificity__closure0(), A._arrayInstanceType(t2)._eval$1("MappedListIterable<1,int>")));
  48783. default:
  48784. return A.SimpleSelector.prototype.get$specificity.call(t1);
  48785. }
  48786. },
  48787. $signature: 10
  48788. };
  48789. A.PseudoSelector_specificity__closure.prototype = {
  48790. call$1(component) {
  48791. return component.get$specificity();
  48792. },
  48793. $signature: 199
  48794. };
  48795. A.PseudoSelector_specificity__closure0.prototype = {
  48796. call$1(component) {
  48797. return component.get$specificity();
  48798. },
  48799. $signature: 199
  48800. };
  48801. A.PseudoSelector_unify_closure.prototype = {
  48802. call$1(simple) {
  48803. var t1;
  48804. if (simple instanceof A.PseudoSelector)
  48805. t1 = simple.isClass && simple.name === "host" || simple.selector != null;
  48806. else
  48807. t1 = false;
  48808. return t1;
  48809. },
  48810. $signature: 13
  48811. };
  48812. A.QualifiedName.prototype = {
  48813. $eq(_, other) {
  48814. if (other == null)
  48815. return false;
  48816. return other instanceof A.QualifiedName && other.name === this.name && other.namespace == this.namespace;
  48817. },
  48818. get$hashCode(_) {
  48819. return B.JSString_methods.get$hashCode(this.name) ^ J.get$hashCode$(this.namespace);
  48820. },
  48821. toString$0(_) {
  48822. var t1 = this.namespace,
  48823. t2 = this.name;
  48824. return t1 == null ? t2 : t1 + "|" + t2;
  48825. }
  48826. };
  48827. A.SimpleSelector.prototype = {
  48828. get$specificity() {
  48829. return 1000;
  48830. },
  48831. get$hasComplicatedSuperselectorSemantics() {
  48832. return false;
  48833. },
  48834. addSuffix$1(suffix) {
  48835. return A.throwExpression(A.MultiSpanSassException$('Selector "' + this.toString$0(0) + "\" can't have a suffix", this.span, "outer selector", A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String), null));
  48836. },
  48837. unify$1(compound) {
  48838. var other, result, addedThis, _i, simple, _this = this,
  48839. t1 = false;
  48840. if (compound.length === 1) {
  48841. other = compound[0];
  48842. if (!(other instanceof A.UniversalSelector)) {
  48843. if (other instanceof A.PseudoSelector)
  48844. t1 = other.isClass && other.name === "host" || other.get$isHostContext();
  48845. } else
  48846. t1 = true;
  48847. } else
  48848. other = null;
  48849. if (t1)
  48850. return other.unify$1(A._setArrayType([_this], type$.JSArray_SimpleSelector));
  48851. if (B.JSArray_methods.contains$1(compound, _this))
  48852. return compound;
  48853. result = A._setArrayType([], type$.JSArray_SimpleSelector);
  48854. for (t1 = compound.length, addedThis = false, _i = 0; _i < compound.length; compound.length === t1 || (0, A.throwConcurrentModificationError)(compound), ++_i) {
  48855. simple = compound[_i];
  48856. if (!addedThis && simple instanceof A.PseudoSelector) {
  48857. result.push(_this);
  48858. addedThis = true;
  48859. }
  48860. result.push(simple);
  48861. }
  48862. if (!addedThis)
  48863. result.push(_this);
  48864. return result;
  48865. },
  48866. isSuperselector$1(other) {
  48867. var list;
  48868. if (this.$eq(0, other))
  48869. return true;
  48870. if (other instanceof A.PseudoSelector && other.isClass) {
  48871. list = other.selector;
  48872. if (list != null && $._subselectorPseudos.contains$1(0, other.normalizedName))
  48873. return B.JSArray_methods.every$1(list.components, new A.SimpleSelector_isSuperselector_closure(this));
  48874. }
  48875. return false;
  48876. }
  48877. };
  48878. A.SimpleSelector_isSuperselector_closure.prototype = {
  48879. call$1(complex) {
  48880. var t1 = complex.components;
  48881. return t1.length !== 0 && B.JSArray_methods.any$1(B.JSArray_methods.get$last(t1).selector.components, new A.SimpleSelector_isSuperselector__closure(this.$this));
  48882. },
  48883. $signature: 19
  48884. };
  48885. A.SimpleSelector_isSuperselector__closure.prototype = {
  48886. call$1(simple) {
  48887. return this.$this.isSuperselector$1(simple);
  48888. },
  48889. $signature: 13
  48890. };
  48891. A.TypeSelector.prototype = {
  48892. get$specificity() {
  48893. return 1;
  48894. },
  48895. accept$1$1(visitor) {
  48896. return visitor.visitTypeSelector$1(this);
  48897. },
  48898. accept$1(visitor) {
  48899. return this.accept$1$1(visitor, type$.dynamic);
  48900. },
  48901. addSuffix$1(suffix) {
  48902. var t1 = this.name;
  48903. return new A.TypeSelector(new A.QualifiedName(t1.name + suffix, t1.namespace), this.span);
  48904. },
  48905. unify$1(compound) {
  48906. var unified, t1,
  48907. _0_0 = A.IterableExtensions_get_firstOrNull(compound);
  48908. if (_0_0 instanceof A.UniversalSelector || _0_0 instanceof A.TypeSelector) {
  48909. unified = A.unifyUniversalAndElement(this, B.JSArray_methods.get$first(compound));
  48910. if (unified == null)
  48911. return null;
  48912. t1 = A._setArrayType([unified], type$.JSArray_SimpleSelector);
  48913. B.JSArray_methods.addAll$1(t1, A.SubListIterable$(compound, 1, null, A._arrayInstanceType(compound)._precomputed1));
  48914. return t1;
  48915. } else {
  48916. t1 = A._setArrayType([this], type$.JSArray_SimpleSelector);
  48917. B.JSArray_methods.addAll$1(t1, compound);
  48918. return t1;
  48919. }
  48920. },
  48921. isSuperselector$1(other) {
  48922. var t1, t2, t3;
  48923. if (!this.super$SimpleSelector$isSuperselector(other)) {
  48924. t1 = false;
  48925. if (other instanceof A.TypeSelector) {
  48926. t2 = this.name;
  48927. t3 = other.name;
  48928. if (t2.name === t3.name) {
  48929. t1 = t2.namespace;
  48930. t1 = t1 === "*" || t1 == t3.namespace;
  48931. }
  48932. }
  48933. } else
  48934. t1 = true;
  48935. return t1;
  48936. },
  48937. $eq(_, other) {
  48938. if (other == null)
  48939. return false;
  48940. return other instanceof A.TypeSelector && other.name.$eq(0, this.name);
  48941. },
  48942. get$hashCode(_) {
  48943. var t1 = this.name;
  48944. return B.JSString_methods.get$hashCode(t1.name) ^ J.get$hashCode$(t1.namespace);
  48945. }
  48946. };
  48947. A.UniversalSelector.prototype = {
  48948. get$specificity() {
  48949. return 0;
  48950. },
  48951. accept$1$1(visitor) {
  48952. return visitor.visitUniversalSelector$1(this);
  48953. },
  48954. accept$1(visitor) {
  48955. return this.accept$1$1(visitor, type$.dynamic);
  48956. },
  48957. unify$1(compound) {
  48958. var _0_40, t1, rest, unified, t2, _this = this, _null = null,
  48959. _0_1 = compound.length,
  48960. _0_4_isSet = _0_1 >= 1,
  48961. _0_4 = _null;
  48962. if (_0_4_isSet) {
  48963. _0_40 = compound[0];
  48964. t1 = _0_40;
  48965. _0_4 = t1;
  48966. if (!(t1 instanceof A.UniversalSelector))
  48967. t1 = _0_4 instanceof A.TypeSelector;
  48968. else
  48969. t1 = true;
  48970. rest = t1 ? B.JSArray_methods.sublist$1(compound, 1) : _null;
  48971. } else {
  48972. rest = _null;
  48973. t1 = false;
  48974. }
  48975. if (t1) {
  48976. unified = A.unifyUniversalAndElement(_this, B.JSArray_methods.get$first(compound));
  48977. if (unified == null)
  48978. return _null;
  48979. t1 = A._setArrayType([unified], type$.JSArray_SimpleSelector);
  48980. B.JSArray_methods.addAll$1(t1, rest);
  48981. return t1;
  48982. }
  48983. t1 = false;
  48984. if (_0_1 === 1) {
  48985. if (_0_4_isSet)
  48986. t2 = _0_4;
  48987. else {
  48988. _0_4 = compound[0];
  48989. t2 = _0_4;
  48990. _0_4_isSet = true;
  48991. }
  48992. if (t2 instanceof A.PseudoSelector) {
  48993. t2 = _0_4_isSet ? _0_4 : compound[0];
  48994. type$.PseudoSelector._as(t2);
  48995. t1 = t2.isClass && t2.name === "host" || t2.get$isHostContext();
  48996. }
  48997. }
  48998. if (t1)
  48999. return _null;
  49000. if (_0_1 <= 0)
  49001. return A._setArrayType([_this], type$.JSArray_SimpleSelector);
  49002. t1 = _this.namespace;
  49003. if (t1 == null || t1 === "*")
  49004. t1 = compound;
  49005. else {
  49006. t1 = A._setArrayType([_this], type$.JSArray_SimpleSelector);
  49007. B.JSArray_methods.addAll$1(t1, compound);
  49008. }
  49009. return t1;
  49010. },
  49011. isSuperselector$1(other) {
  49012. var t1 = this.namespace;
  49013. if (t1 === "*")
  49014. return true;
  49015. if (other instanceof A.TypeSelector)
  49016. return t1 == other.name.namespace;
  49017. if (other instanceof A.UniversalSelector)
  49018. return t1 == other.namespace;
  49019. return t1 == null || this.super$SimpleSelector$isSuperselector(other);
  49020. },
  49021. $eq(_, other) {
  49022. if (other == null)
  49023. return false;
  49024. return other instanceof A.UniversalSelector && other.namespace == this.namespace;
  49025. },
  49026. get$hashCode(_) {
  49027. return J.get$hashCode$(this.namespace);
  49028. }
  49029. };
  49030. A._compileStylesheet_closure0.prototype = {
  49031. call$1(url) {
  49032. var t1;
  49033. if (url === "") {
  49034. t1 = this.stylesheet.span;
  49035. t1 = A.Uri_Uri$dataFromString(A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1.get$file(t1)._decodedChars, 0, null), 0, null), B.C_Utf8Codec, null).get$_text();
  49036. } else
  49037. t1 = this.importCache.sourceMapUrl$1(0, A.Uri_parse(url)).toString$0(0);
  49038. return t1;
  49039. },
  49040. $signature: 6
  49041. };
  49042. A.AsyncEnvironment.prototype = {
  49043. closure$0() {
  49044. var t4, t5, t6, _this = this,
  49045. t1 = _this._async_environment$_forwardedModules,
  49046. t2 = _this._async_environment$_nestedForwardedModules,
  49047. t3 = _this._async_environment$_variables;
  49048. t3 = A._setArrayType(t3.slice(0), A._arrayInstanceType(t3));
  49049. t4 = _this._async_environment$_variableNodes;
  49050. t4 = A._setArrayType(t4.slice(0), A._arrayInstanceType(t4));
  49051. t5 = _this._async_environment$_functions;
  49052. t5 = A._setArrayType(t5.slice(0), A._arrayInstanceType(t5));
  49053. t6 = _this._async_environment$_mixins;
  49054. t6 = A._setArrayType(t6.slice(0), A._arrayInstanceType(t6));
  49055. return A.AsyncEnvironment$_(_this._async_environment$_modules, _this._async_environment$_namespaceNodes, _this._async_environment$_globalModules, _this._async_environment$_importedModules, t1, t2, _this._async_environment$_allModules, t3, t4, t5, t6, _this._async_environment$_content);
  49056. },
  49057. forwardModule$2(module, rule) {
  49058. var view, t1, t2, _this = this,
  49059. forwardedModules = _this._async_environment$_forwardedModules;
  49060. if (forwardedModules == null)
  49061. forwardedModules = _this._async_environment$_forwardedModules = A.LinkedHashMap_LinkedHashMap$_empty(type$.Module_AsyncCallable, type$.AstNode);
  49062. view = A.ForwardedModuleView_ifNecessary(module, rule, type$.AsyncCallable);
  49063. for (t1 = A.LinkedHashMapKeyIterator$(forwardedModules, forwardedModules.__js_helper$_modifications); t1.moveNext$0();) {
  49064. t2 = t1.__js_helper$_current;
  49065. _this._async_environment$_assertNoConflicts$5(view.get$variables(), t2.get$variables(), view, t2, "variable");
  49066. _this._async_environment$_assertNoConflicts$5(view.get$functions(view), t2.get$functions(t2), view, t2, "function");
  49067. _this._async_environment$_assertNoConflicts$5(view.get$mixins(), t2.get$mixins(), view, t2, "mixin");
  49068. }
  49069. _this._async_environment$_allModules.push(module);
  49070. forwardedModules.$indexSet(0, view, rule);
  49071. },
  49072. _async_environment$_assertNoConflicts$5(newMembers, oldMembers, newModule, oldModule, type) {
  49073. var larger, smaller, t1, t2, t3, t4, $name, small, large, span;
  49074. if (newMembers.get$length(newMembers) < oldMembers.get$length(oldMembers)) {
  49075. larger = oldMembers;
  49076. smaller = newMembers;
  49077. } else {
  49078. larger = newMembers;
  49079. smaller = oldMembers;
  49080. }
  49081. for (t1 = type$.String, t2 = A.MapExtensions_get_pairs(smaller, t1, type$.Object), t2 = t2.get$iterator(t2), t3 = type === "variable"; t2.moveNext$0();) {
  49082. t4 = t2.get$current(t2);
  49083. $name = t4._0;
  49084. small = t4._1;
  49085. large = larger.$index(0, $name);
  49086. if (large == null)
  49087. continue;
  49088. if (t3 ? newModule.variableIdentity$1($name) === oldModule.variableIdentity$1($name) : J.$eq$(large, small))
  49089. continue;
  49090. if (t3)
  49091. $name = "$" + $name;
  49092. t2 = this._async_environment$_forwardedModules;
  49093. if (t2 == null)
  49094. span = null;
  49095. else {
  49096. t2 = t2.$index(0, oldModule);
  49097. span = t2 == null ? null : J.get$span$z(t2);
  49098. }
  49099. t2 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, t1);
  49100. if (span != null)
  49101. t2.$indexSet(0, span, "original @forward");
  49102. throw A.wrapException(A.MultiSpanSassScriptException$("Two forwarded modules both define a " + type + " named " + $name + ".", "new @forward", t2));
  49103. }
  49104. },
  49105. importForwards$1(module) {
  49106. var forwardedModules, t1, t2, t3, t4, node, t5, t6, t7, t8, t9, t10, _i, t11, shadowed, t12, _length, _list, _this = this,
  49107. forwarded = module._async_environment$_environment._async_environment$_forwardedModules;
  49108. if (forwarded == null)
  49109. return;
  49110. forwardedModules = _this._async_environment$_forwardedModules;
  49111. if (forwardedModules != null) {
  49112. t1 = type$.Module_AsyncCallable;
  49113. t2 = type$.AstNode;
  49114. t3 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
  49115. for (t1 = A.MapExtensions_get_pairs(forwarded, t1, t2), t1 = t1.get$iterator(t1), t2 = _this._async_environment$_globalModules; t1.moveNext$0();) {
  49116. t4 = t1.get$current(t1);
  49117. module = t4._0;
  49118. node = t4._1;
  49119. if (!forwardedModules.containsKey$1(module) || !t2.containsKey$1(module))
  49120. t3.$indexSet(0, module, node);
  49121. }
  49122. forwarded = t3;
  49123. } else
  49124. forwardedModules = _this._async_environment$_forwardedModules = A.LinkedHashMap_LinkedHashMap$_empty(type$.Module_AsyncCallable, type$.AstNode);
  49125. t1 = type$.String;
  49126. t2 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
  49127. for (t3 = A.LinkedHashMapKeyIterator$(forwarded, forwarded.__js_helper$_modifications); t3.moveNext$0();)
  49128. for (t4 = t3.__js_helper$_current.get$variables(), t4 = J.get$iterator$ax(t4.get$keys(t4)); t4.moveNext$0();)
  49129. t2.add$1(0, t4.get$current(t4));
  49130. t3 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
  49131. for (t4 = A.LinkedHashMapKeyIterator$(forwarded, forwarded.__js_helper$_modifications); t4.moveNext$0();) {
  49132. t5 = t4.__js_helper$_current;
  49133. for (t5 = t5.get$functions(t5), t5 = J.get$iterator$ax(t5.get$keys(t5)); t5.moveNext$0();)
  49134. t3.add$1(0, t5.get$current(t5));
  49135. }
  49136. t1 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
  49137. for (t4 = A.LinkedHashMapKeyIterator$(forwarded, forwarded.__js_helper$_modifications); t4.moveNext$0();)
  49138. for (t5 = t4.__js_helper$_current.get$mixins(), t5 = J.get$iterator$ax(t5.get$keys(t5)); t5.moveNext$0();)
  49139. t1.add$1(0, t5.get$current(t5));
  49140. t4 = _this._async_environment$_variables;
  49141. t5 = t4.length;
  49142. if (t5 === 1) {
  49143. for (t5 = _this._async_environment$_importedModules, t6 = type$.Module_AsyncCallable, t7 = type$.AstNode, t8 = A.MapExtensions_get_pairs(t5, t6, t7).toList$0(0), t9 = t8.length, t10 = type$.AsyncCallable, _i = 0; _i < t8.length; t8.length === t9 || (0, A.throwConcurrentModificationError)(t8), ++_i) {
  49144. t11 = t8[_i];
  49145. module = t11._0;
  49146. node = t11._1;
  49147. shadowed = A.ShadowedModuleView_ifNecessary(module, t3, t1, t2, t10);
  49148. if (shadowed != null) {
  49149. t5.remove$1(0, module);
  49150. t11 = shadowed.variables;
  49151. t12 = false;
  49152. if (t11.get$isEmpty(t11)) {
  49153. t11 = shadowed.functions;
  49154. if (t11.get$isEmpty(t11)) {
  49155. t11 = shadowed.mixins;
  49156. if (t11.get$isEmpty(t11)) {
  49157. t11 = shadowed._shadowed_view$_inner;
  49158. t11 = t11.get$css(t11);
  49159. t11 = J.get$isEmpty$asx(t11.get$children(t11));
  49160. } else
  49161. t11 = t12;
  49162. } else
  49163. t11 = t12;
  49164. } else
  49165. t11 = t12;
  49166. if (!t11)
  49167. t5.$indexSet(0, shadowed, node);
  49168. }
  49169. }
  49170. for (t6 = A.MapExtensions_get_pairs(forwardedModules, t6, t7).toList$0(0), t7 = t6.length, _i = 0; _i < t6.length; t6.length === t7 || (0, A.throwConcurrentModificationError)(t6), ++_i) {
  49171. t8 = t6[_i];
  49172. module = t8._0;
  49173. node = t8._1;
  49174. shadowed = A.ShadowedModuleView_ifNecessary(module, t3, t1, t2, t10);
  49175. if (shadowed != null) {
  49176. forwardedModules.remove$1(0, module);
  49177. t8 = shadowed.variables;
  49178. t9 = false;
  49179. if (t8.get$isEmpty(t8)) {
  49180. t8 = shadowed.functions;
  49181. if (t8.get$isEmpty(t8)) {
  49182. t8 = shadowed.mixins;
  49183. if (t8.get$isEmpty(t8)) {
  49184. t8 = shadowed._shadowed_view$_inner;
  49185. t8 = t8.get$css(t8);
  49186. t8 = J.get$isEmpty$asx(t8.get$children(t8));
  49187. } else
  49188. t8 = t9;
  49189. } else
  49190. t8 = t9;
  49191. } else
  49192. t8 = t9;
  49193. if (!t8)
  49194. forwardedModules.$indexSet(0, shadowed, node);
  49195. }
  49196. }
  49197. t5.addAll$1(0, forwarded);
  49198. forwardedModules.addAll$1(0, forwarded);
  49199. } else {
  49200. t6 = _this._async_environment$_nestedForwardedModules;
  49201. if (t6 == null) {
  49202. _length = t5 - 1;
  49203. _list = J.JSArray_JSArray$allocateGrowable(_length, type$.List_Module_AsyncCallable);
  49204. for (t5 = type$.JSArray_Module_AsyncCallable, _i = 0; _i < _length; ++_i)
  49205. _list[_i] = A._setArrayType([], t5);
  49206. _this._async_environment$_nestedForwardedModules = _list;
  49207. t5 = _list;
  49208. } else
  49209. t5 = t6;
  49210. B.JSArray_methods.addAll$1(B.JSArray_methods.get$last(t5), new A.LinkedHashMapKeyIterable(forwarded, A._instanceType(forwarded)._eval$1("LinkedHashMapKeyIterable<1>")));
  49211. }
  49212. for (t2 = A._LinkedHashSetIterator$(t2, t2._modifications, t2.$ti._precomputed1), t5 = _this._async_environment$_variableIndices, t6 = _this._async_environment$_variableNodes, t7 = t2.$ti._precomputed1; t2.moveNext$0();) {
  49213. t8 = t2._collection$_current;
  49214. if (t8 == null)
  49215. t8 = t7._as(t8);
  49216. t5.remove$1(0, t8);
  49217. J.remove$1$z(B.JSArray_methods.get$last(t4), t8);
  49218. J.remove$1$z(B.JSArray_methods.get$last(t6), t8);
  49219. }
  49220. for (t2 = A._LinkedHashSetIterator$(t3, t3._modifications, t3.$ti._precomputed1), t3 = _this._async_environment$_functionIndices, t4 = _this._async_environment$_functions, t5 = t2.$ti._precomputed1; t2.moveNext$0();) {
  49221. t6 = t2._collection$_current;
  49222. if (t6 == null)
  49223. t6 = t5._as(t6);
  49224. t3.remove$1(0, t6);
  49225. J.remove$1$z(B.JSArray_methods.get$last(t4), t6);
  49226. }
  49227. for (t1 = A._LinkedHashSetIterator$(t1, t1._modifications, t1.$ti._precomputed1), t2 = _this._async_environment$_mixinIndices, t3 = _this._async_environment$_mixins, t4 = t1.$ti._precomputed1; t1.moveNext$0();) {
  49228. t5 = t1._collection$_current;
  49229. if (t5 == null)
  49230. t5 = t4._as(t5);
  49231. t2.remove$1(0, t5);
  49232. J.remove$1$z(B.JSArray_methods.get$last(t3), t5);
  49233. }
  49234. },
  49235. getVariable$2$namespace($name, namespace) {
  49236. var t1, _0_0, _1_0, _this = this;
  49237. if (namespace != null)
  49238. return _this._async_environment$_getModule$1(namespace).get$variables().$index(0, $name);
  49239. if (_this._async_environment$_lastVariableName === $name) {
  49240. t1 = _this._async_environment$_lastVariableIndex;
  49241. t1.toString;
  49242. t1 = J.$index$asx(_this._async_environment$_variables[t1], $name);
  49243. return t1 == null ? _this._async_environment$_getVariableFromGlobalModule$1($name) : t1;
  49244. }
  49245. t1 = _this._async_environment$_variableIndices;
  49246. _0_0 = t1.$index(0, $name);
  49247. if (_0_0 != null) {
  49248. _this._async_environment$_lastVariableName = $name;
  49249. _this._async_environment$_lastVariableIndex = _0_0;
  49250. t1 = J.$index$asx(_this._async_environment$_variables[_0_0], $name);
  49251. return t1 == null ? _this._async_environment$_getVariableFromGlobalModule$1($name) : t1;
  49252. } else {
  49253. _1_0 = _this._async_environment$_variableIndex$1($name);
  49254. if (_1_0 != null) {
  49255. _this._async_environment$_lastVariableName = $name;
  49256. _this._async_environment$_lastVariableIndex = _1_0;
  49257. t1.$indexSet(0, $name, _1_0);
  49258. t1 = J.$index$asx(_this._async_environment$_variables[_1_0], $name);
  49259. return t1 == null ? _this._async_environment$_getVariableFromGlobalModule$1($name) : t1;
  49260. } else
  49261. return _this._async_environment$_getVariableFromGlobalModule$1($name);
  49262. }
  49263. },
  49264. getVariable$1($name) {
  49265. return this.getVariable$2$namespace($name, null);
  49266. },
  49267. _async_environment$_getVariableFromGlobalModule$1($name) {
  49268. return this._async_environment$_fromOneModule$3($name, "variable", new A.AsyncEnvironment__getVariableFromGlobalModule_closure($name));
  49269. },
  49270. getVariableNode$2$namespace($name, namespace) {
  49271. var t1, _0_0, _1_0, _this = this;
  49272. if (namespace != null)
  49273. return _this._async_environment$_getModule$1(namespace).get$variableNodes().$index(0, $name);
  49274. if (_this._async_environment$_lastVariableName === $name) {
  49275. t1 = _this._async_environment$_lastVariableIndex;
  49276. t1.toString;
  49277. t1 = J.$index$asx(_this._async_environment$_variableNodes[t1], $name);
  49278. return t1 == null ? _this._async_environment$_getVariableNodeFromGlobalModule$1($name) : t1;
  49279. }
  49280. t1 = _this._async_environment$_variableIndices;
  49281. _0_0 = t1.$index(0, $name);
  49282. if (_0_0 != null) {
  49283. _this._async_environment$_lastVariableName = $name;
  49284. _this._async_environment$_lastVariableIndex = _0_0;
  49285. t1 = J.$index$asx(_this._async_environment$_variableNodes[_0_0], $name);
  49286. return t1 == null ? _this._async_environment$_getVariableNodeFromGlobalModule$1($name) : t1;
  49287. } else {
  49288. _1_0 = _this._async_environment$_variableIndex$1($name);
  49289. if (_1_0 != null) {
  49290. _this._async_environment$_lastVariableName = $name;
  49291. _this._async_environment$_lastVariableIndex = _1_0;
  49292. t1.$indexSet(0, $name, _1_0);
  49293. t1 = J.$index$asx(_this._async_environment$_variableNodes[_1_0], $name);
  49294. return t1 == null ? _this._async_environment$_getVariableNodeFromGlobalModule$1($name) : t1;
  49295. } else
  49296. return _this._async_environment$_getVariableNodeFromGlobalModule$1($name);
  49297. }
  49298. },
  49299. _async_environment$_getVariableNodeFromGlobalModule$1($name) {
  49300. var t1, t2, _0_0;
  49301. for (t1 = this._async_environment$_importedModules, t2 = this._async_environment$_globalModules, t2 = new A.LinkedHashMapKeyIterable(t1, A._instanceType(t1)._eval$1("LinkedHashMapKeyIterable<1>")).followedBy$1(0, new A.LinkedHashMapKeyIterable(t2, A._instanceType(t2)._eval$1("LinkedHashMapKeyIterable<1>"))), t2 = new A.FollowedByIterator(J.get$iterator$ax(t2.__internal$_first), t2._second); t2.moveNext$0();) {
  49302. t1 = t2._currentIterator;
  49303. _0_0 = t1.get$current(t1).get$variableNodes().$index(0, $name);
  49304. if (_0_0 != null)
  49305. return _0_0;
  49306. }
  49307. return null;
  49308. },
  49309. globalVariableExists$2$namespace($name, namespace) {
  49310. if (namespace != null)
  49311. return this._async_environment$_getModule$1(namespace).get$variables().containsKey$1($name);
  49312. if (B.JSArray_methods.get$first(this._async_environment$_variables).containsKey$1($name))
  49313. return true;
  49314. return this._async_environment$_getVariableFromGlobalModule$1($name) != null;
  49315. },
  49316. globalVariableExists$1($name) {
  49317. return this.globalVariableExists$2$namespace($name, null);
  49318. },
  49319. _async_environment$_variableIndex$1($name) {
  49320. var t1, i;
  49321. for (t1 = this._async_environment$_variables, i = t1.length - 1; i >= 0; --i)
  49322. if (t1[i].containsKey$1($name))
  49323. return i;
  49324. return null;
  49325. },
  49326. setVariable$5$global$namespace($name, value, nodeWithSpan, global, namespace) {
  49327. var t1, moduleWithName, nestedForwardedModules, t2, t3, t4, t5, index, _this = this;
  49328. if (namespace != null) {
  49329. _this._async_environment$_getModule$1(namespace).setVariable$3($name, value, nodeWithSpan);
  49330. return;
  49331. }
  49332. if (global || _this._async_environment$_variables.length === 1) {
  49333. _this._async_environment$_variableIndices.putIfAbsent$2($name, new A.AsyncEnvironment_setVariable_closure(_this, $name));
  49334. t1 = _this._async_environment$_variables;
  49335. if (!B.JSArray_methods.get$first(t1).containsKey$1($name)) {
  49336. moduleWithName = _this._async_environment$_fromOneModule$3($name, "variable", new A.AsyncEnvironment_setVariable_closure0($name));
  49337. if (moduleWithName != null) {
  49338. moduleWithName.setVariable$3($name, value, nodeWithSpan);
  49339. return;
  49340. }
  49341. }
  49342. J.$indexSet$ax(B.JSArray_methods.get$first(t1), $name, value);
  49343. J.$indexSet$ax(B.JSArray_methods.get$first(_this._async_environment$_variableNodes), $name, nodeWithSpan);
  49344. return;
  49345. }
  49346. nestedForwardedModules = _this._async_environment$_nestedForwardedModules;
  49347. if (nestedForwardedModules != null && !_this._async_environment$_variableIndices.containsKey$1($name) && _this._async_environment$_variableIndex$1($name) == null)
  49348. for (t1 = A._arrayInstanceType(nestedForwardedModules)._eval$1("ReversedListIterable<1>"), t2 = new A.ReversedListIterable(nestedForwardedModules, t1), t2 = new A.ListIterator(t2, t2.get$length(0), t1._eval$1("ListIterator<ListIterable.E>")), t1 = t1._eval$1("ListIterable.E"); t2.moveNext$0();) {
  49349. t3 = t2.__internal$_current;
  49350. for (t3 = J.get$reversed$ax(t3 == null ? t1._as(t3) : t3), t4 = t3.$ti, t3 = new A.ListIterator(t3, t3.get$length(0), t4._eval$1("ListIterator<ListIterable.E>")), t4 = t4._eval$1("ListIterable.E"); t3.moveNext$0();) {
  49351. t5 = t3.__internal$_current;
  49352. if (t5 == null)
  49353. t5 = t4._as(t5);
  49354. if (t5.get$variables().containsKey$1($name)) {
  49355. t5.setVariable$3($name, value, nodeWithSpan);
  49356. return;
  49357. }
  49358. }
  49359. }
  49360. if (_this._async_environment$_lastVariableName === $name) {
  49361. t1 = _this._async_environment$_lastVariableIndex;
  49362. t1.toString;
  49363. index = t1;
  49364. } else
  49365. index = _this._async_environment$_variableIndices.putIfAbsent$2($name, new A.AsyncEnvironment_setVariable_closure1(_this, $name));
  49366. if (!_this._async_environment$_inSemiGlobalScope && index === 0) {
  49367. index = _this._async_environment$_variables.length - 1;
  49368. _this._async_environment$_variableIndices.$indexSet(0, $name, index);
  49369. }
  49370. _this._async_environment$_lastVariableName = $name;
  49371. _this._async_environment$_lastVariableIndex = index;
  49372. J.$indexSet$ax(_this._async_environment$_variables[index], $name, value);
  49373. J.$indexSet$ax(_this._async_environment$_variableNodes[index], $name, nodeWithSpan);
  49374. },
  49375. setVariable$4$global($name, value, nodeWithSpan, global) {
  49376. return this.setVariable$5$global$namespace($name, value, nodeWithSpan, global, null);
  49377. },
  49378. setLocalVariable$3($name, value, nodeWithSpan) {
  49379. var index, _this = this,
  49380. t1 = _this._async_environment$_variables,
  49381. t2 = t1.length;
  49382. _this._async_environment$_lastVariableName = $name;
  49383. index = _this._async_environment$_lastVariableIndex = t2 - 1;
  49384. _this._async_environment$_variableIndices.$indexSet(0, $name, index);
  49385. J.$indexSet$ax(t1[index], $name, value);
  49386. J.$indexSet$ax(_this._async_environment$_variableNodes[index], $name, nodeWithSpan);
  49387. },
  49388. getFunction$2$namespace($name, namespace) {
  49389. var t1, _0_0, _1_0, _this = this;
  49390. if (namespace != null) {
  49391. t1 = _this._async_environment$_getModule$1(namespace);
  49392. return t1.get$functions(t1).$index(0, $name);
  49393. }
  49394. t1 = _this._async_environment$_functionIndices;
  49395. _0_0 = t1.$index(0, $name);
  49396. if (_0_0 != null) {
  49397. t1 = J.$index$asx(_this._async_environment$_functions[_0_0], $name);
  49398. return t1 == null ? _this._async_environment$_getFunctionFromGlobalModule$1($name) : t1;
  49399. } else {
  49400. _1_0 = _this._async_environment$_functionIndex$1($name);
  49401. if (_1_0 != null) {
  49402. t1.$indexSet(0, $name, _1_0);
  49403. t1 = J.$index$asx(_this._async_environment$_functions[_1_0], $name);
  49404. return t1 == null ? _this._async_environment$_getFunctionFromGlobalModule$1($name) : t1;
  49405. } else
  49406. return _this._async_environment$_getFunctionFromGlobalModule$1($name);
  49407. }
  49408. },
  49409. getFunction$1($name) {
  49410. return this.getFunction$2$namespace($name, null);
  49411. },
  49412. _async_environment$_getFunctionFromGlobalModule$1($name) {
  49413. return this._async_environment$_fromOneModule$3($name, "function", new A.AsyncEnvironment__getFunctionFromGlobalModule_closure($name));
  49414. },
  49415. _async_environment$_functionIndex$1($name) {
  49416. var t1, i;
  49417. for (t1 = this._async_environment$_functions, i = t1.length - 1; i >= 0; --i)
  49418. if (t1[i].containsKey$1($name))
  49419. return i;
  49420. return null;
  49421. },
  49422. getMixin$2$namespace($name, namespace) {
  49423. var t1, _0_0, _1_0, _this = this;
  49424. if (namespace != null)
  49425. return _this._async_environment$_getModule$1(namespace).get$mixins().$index(0, $name);
  49426. t1 = _this._async_environment$_mixinIndices;
  49427. _0_0 = t1.$index(0, $name);
  49428. if (_0_0 != null) {
  49429. t1 = J.$index$asx(_this._async_environment$_mixins[_0_0], $name);
  49430. return t1 == null ? _this._async_environment$_getMixinFromGlobalModule$1($name) : t1;
  49431. } else {
  49432. _1_0 = _this._async_environment$_mixinIndex$1($name);
  49433. if (_1_0 != null) {
  49434. t1.$indexSet(0, $name, _1_0);
  49435. t1 = J.$index$asx(_this._async_environment$_mixins[_1_0], $name);
  49436. return t1 == null ? _this._async_environment$_getMixinFromGlobalModule$1($name) : t1;
  49437. } else
  49438. return _this._async_environment$_getMixinFromGlobalModule$1($name);
  49439. }
  49440. },
  49441. _async_environment$_getMixinFromGlobalModule$1($name) {
  49442. return this._async_environment$_fromOneModule$3($name, "mixin", new A.AsyncEnvironment__getMixinFromGlobalModule_closure($name));
  49443. },
  49444. _async_environment$_mixinIndex$1($name) {
  49445. var t1, i;
  49446. for (t1 = this._async_environment$_mixins, i = t1.length - 1; i >= 0; --i)
  49447. if (t1[i].containsKey$1($name))
  49448. return i;
  49449. return null;
  49450. },
  49451. withContent$2($content, callback) {
  49452. return this.withContent$body$AsyncEnvironment($content, callback);
  49453. },
  49454. withContent$body$AsyncEnvironment($content, callback) {
  49455. var $async$goto = 0,
  49456. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  49457. $async$self = this, oldContent;
  49458. var $async$withContent$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49459. if ($async$errorCode === 1)
  49460. return A._asyncRethrow($async$result, $async$completer);
  49461. while (true)
  49462. switch ($async$goto) {
  49463. case 0:
  49464. // Function start
  49465. oldContent = $async$self._async_environment$_content;
  49466. $async$self._async_environment$_content = $content;
  49467. $async$goto = 2;
  49468. return A._asyncAwait(callback.call$0(), $async$withContent$2);
  49469. case 2:
  49470. // returning from await.
  49471. $async$self._async_environment$_content = oldContent;
  49472. // implicit return
  49473. return A._asyncReturn(null, $async$completer);
  49474. }
  49475. });
  49476. return A._asyncStartSync($async$withContent$2, $async$completer);
  49477. },
  49478. asMixin$1(callback) {
  49479. var $async$goto = 0,
  49480. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  49481. $async$self = this, oldInMixin;
  49482. var $async$asMixin$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49483. if ($async$errorCode === 1)
  49484. return A._asyncRethrow($async$result, $async$completer);
  49485. while (true)
  49486. switch ($async$goto) {
  49487. case 0:
  49488. // Function start
  49489. oldInMixin = $async$self._async_environment$_inMixin;
  49490. $async$self._async_environment$_inMixin = true;
  49491. $async$goto = 2;
  49492. return A._asyncAwait(callback.call$0(), $async$asMixin$1);
  49493. case 2:
  49494. // returning from await.
  49495. $async$self._async_environment$_inMixin = oldInMixin;
  49496. // implicit return
  49497. return A._asyncReturn(null, $async$completer);
  49498. }
  49499. });
  49500. return A._asyncStartSync($async$asMixin$1, $async$completer);
  49501. },
  49502. scope$1$3$semiGlobal$when(callback, semiGlobal, when, $T) {
  49503. return this.scope$body$AsyncEnvironment(callback, semiGlobal, when, $T, $T);
  49504. },
  49505. scope$1$1(callback, $T) {
  49506. return this.scope$1$3$semiGlobal$when(callback, false, true, $T);
  49507. },
  49508. scope$1$2$when(callback, when, $T) {
  49509. return this.scope$1$3$semiGlobal$when(callback, false, when, $T);
  49510. },
  49511. scope$1$2$semiGlobal(callback, semiGlobal, $T) {
  49512. return this.scope$1$3$semiGlobal$when(callback, semiGlobal, true, $T);
  49513. },
  49514. scope$body$AsyncEnvironment(callback, semiGlobal, when, $T, $async$type) {
  49515. var $async$goto = 0,
  49516. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  49517. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, wasInSemiGlobalScope, $name, name0, name1, t1, t2, t3, t4, t5, t6;
  49518. var $async$scope$1$3$semiGlobal$when = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49519. if ($async$errorCode === 1) {
  49520. $async$currentError = $async$result;
  49521. $async$goto = $async$handler;
  49522. }
  49523. while (true)
  49524. switch ($async$goto) {
  49525. case 0:
  49526. // Function start
  49527. semiGlobal = semiGlobal && $async$self._async_environment$_inSemiGlobalScope;
  49528. wasInSemiGlobalScope = $async$self._async_environment$_inSemiGlobalScope;
  49529. $async$self._async_environment$_inSemiGlobalScope = semiGlobal;
  49530. $async$goto = !when ? 3 : 4;
  49531. break;
  49532. case 3:
  49533. // then
  49534. $async$handler = 5;
  49535. $async$goto = 8;
  49536. return A._asyncAwait(callback.call$0(), $async$scope$1$3$semiGlobal$when);
  49537. case 8:
  49538. // returning from await.
  49539. t1 = $async$result;
  49540. $async$returnValue = t1;
  49541. $async$next = [1];
  49542. // goto finally
  49543. $async$goto = 6;
  49544. break;
  49545. $async$next.push(7);
  49546. // goto finally
  49547. $async$goto = 6;
  49548. break;
  49549. case 5:
  49550. // uncaught
  49551. $async$next = [2];
  49552. case 6:
  49553. // finally
  49554. $async$handler = 2;
  49555. $async$self._async_environment$_inSemiGlobalScope = wasInSemiGlobalScope;
  49556. // goto the next finally handler
  49557. $async$goto = $async$next.pop();
  49558. break;
  49559. case 7:
  49560. // after finally
  49561. case 4:
  49562. // join
  49563. t1 = $async$self._async_environment$_variables;
  49564. t2 = type$.String;
  49565. B.JSArray_methods.add$1(t1, A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.Value));
  49566. t3 = $async$self._async_environment$_variableNodes;
  49567. B.JSArray_methods.add$1(t3, A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.AstNode));
  49568. t4 = $async$self._async_environment$_functions;
  49569. t5 = type$.AsyncCallable;
  49570. B.JSArray_methods.add$1(t4, A.LinkedHashMap_LinkedHashMap$_empty(t2, t5));
  49571. t6 = $async$self._async_environment$_mixins;
  49572. B.JSArray_methods.add$1(t6, A.LinkedHashMap_LinkedHashMap$_empty(t2, t5));
  49573. t5 = $async$self._async_environment$_nestedForwardedModules;
  49574. if (t5 != null)
  49575. t5.push(A._setArrayType([], type$.JSArray_Module_AsyncCallable));
  49576. $async$handler = 9;
  49577. $async$goto = 12;
  49578. return A._asyncAwait(callback.call$0(), $async$scope$1$3$semiGlobal$when);
  49579. case 12:
  49580. // returning from await.
  49581. t2 = $async$result;
  49582. $async$returnValue = t2;
  49583. $async$next = [1];
  49584. // goto finally
  49585. $async$goto = 10;
  49586. break;
  49587. $async$next.push(11);
  49588. // goto finally
  49589. $async$goto = 10;
  49590. break;
  49591. case 9:
  49592. // uncaught
  49593. $async$next = [2];
  49594. case 10:
  49595. // finally
  49596. $async$handler = 2;
  49597. $async$self._async_environment$_inSemiGlobalScope = wasInSemiGlobalScope;
  49598. $async$self._async_environment$_lastVariableIndex = $async$self._async_environment$_lastVariableName = null;
  49599. for (t1 = J.get$iterator$ax(J.get$keys$z(B.JSArray_methods.removeLast$0(t1))), t2 = $async$self._async_environment$_variableIndices; t1.moveNext$0();) {
  49600. $name = t1.get$current(t1);
  49601. t2.remove$1(0, $name);
  49602. }
  49603. B.JSArray_methods.removeLast$0(t3);
  49604. for (t1 = J.get$iterator$ax(J.get$keys$z(B.JSArray_methods.removeLast$0(t4))), t2 = $async$self._async_environment$_functionIndices; t1.moveNext$0();) {
  49605. name0 = t1.get$current(t1);
  49606. t2.remove$1(0, name0);
  49607. }
  49608. for (t1 = J.get$iterator$ax(J.get$keys$z(B.JSArray_methods.removeLast$0(t6))), t2 = $async$self._async_environment$_mixinIndices; t1.moveNext$0();) {
  49609. name1 = t1.get$current(t1);
  49610. t2.remove$1(0, name1);
  49611. }
  49612. t1 = $async$self._async_environment$_nestedForwardedModules;
  49613. if (t1 != null)
  49614. t1.pop();
  49615. // goto the next finally handler
  49616. $async$goto = $async$next.pop();
  49617. break;
  49618. case 11:
  49619. // after finally
  49620. case 1:
  49621. // return
  49622. return A._asyncReturn($async$returnValue, $async$completer);
  49623. case 2:
  49624. // rethrow
  49625. return A._asyncRethrow($async$currentError, $async$completer);
  49626. }
  49627. });
  49628. return A._asyncStartSync($async$scope$1$3$semiGlobal$when, $async$completer);
  49629. },
  49630. toImplicitConfiguration$0() {
  49631. var t2, t3, t4, i, values, nodes, t5, t6, $name, value,
  49632. t1 = type$.String,
  49633. configuration = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.ConfiguredValue);
  49634. for (t2 = this._async_environment$_variables, t3 = type$.Value, t4 = this._async_environment$_variableNodes, i = 0; i < t2.length; ++i) {
  49635. values = t2[i];
  49636. nodes = t4[i];
  49637. for (t5 = A.MapExtensions_get_pairs(values, t1, t3), t5 = t5.get$iterator(t5); t5.moveNext$0();) {
  49638. t6 = t5.get$current(t5);
  49639. $name = t6._0;
  49640. value = t6._1;
  49641. t6 = nodes.$index(0, $name);
  49642. t6.toString;
  49643. configuration.$indexSet(0, $name, new A.ConfiguredValue(value, null, t6));
  49644. }
  49645. }
  49646. return new A.Configuration(configuration, null);
  49647. },
  49648. toModule$3(css, preModuleComments, extensionStore) {
  49649. return A._EnvironmentModule__EnvironmentModule0(this, css, preModuleComments, extensionStore, A.NullableExtension_andThen(this._async_environment$_forwardedModules, new A.AsyncEnvironment_toModule_closure()));
  49650. },
  49651. toDummyModule$0() {
  49652. return A._EnvironmentModule__EnvironmentModule0(this, new A.CssStylesheet(new A.UnmodifiableListView(B.List_empty3, type$.UnmodifiableListView_CssNode), A.SourceFile$decoded(B.List_empty4, "<dummy module>").span$1(0, 0)), B.Map_empty7, B.C_EmptyExtensionStore, A.NullableExtension_andThen(this._async_environment$_forwardedModules, new A.AsyncEnvironment_toDummyModule_closure()));
  49653. },
  49654. _async_environment$_getModule$1(namespace) {
  49655. var _0_0 = this._async_environment$_modules.$index(0, namespace);
  49656. if (_0_0 != null)
  49657. return _0_0;
  49658. throw A.wrapException(A.SassScriptException$('There is no module with the namespace "' + namespace + '".', null));
  49659. },
  49660. _async_environment$_fromOneModule$1$3($name, type, callback) {
  49661. var t1, t2, t3, t4, t5, _1_0, _2_0, value, identity, valueInModule, identityFromModule, module, node,
  49662. _0_0 = this._async_environment$_nestedForwardedModules;
  49663. if (_0_0 != null)
  49664. for (t1 = A._arrayInstanceType(_0_0)._eval$1("ReversedListIterable<1>"), t2 = new A.ReversedListIterable(_0_0, t1), t2 = new A.ListIterator(t2, t2.get$length(0), t1._eval$1("ListIterator<ListIterable.E>")), t1 = t1._eval$1("ListIterable.E"); t2.moveNext$0();) {
  49665. t3 = t2.__internal$_current;
  49666. for (t3 = J.get$reversed$ax(t3 == null ? t1._as(t3) : t3), t4 = t3.$ti, t3 = new A.ListIterator(t3, t3.get$length(0), t4._eval$1("ListIterator<ListIterable.E>")), t4 = t4._eval$1("ListIterable.E"); t3.moveNext$0();) {
  49667. t5 = t3.__internal$_current;
  49668. _1_0 = callback.call$1(t5 == null ? t4._as(t5) : t5);
  49669. if (_1_0 != null)
  49670. return _1_0;
  49671. }
  49672. }
  49673. for (t1 = this._async_environment$_importedModules, t1 = A.LinkedHashMapKeyIterator$(t1, t1.__js_helper$_modifications); t1.moveNext$0();) {
  49674. _2_0 = callback.call$1(t1.__js_helper$_current);
  49675. if (_2_0 != null)
  49676. return _2_0;
  49677. }
  49678. for (t1 = this._async_environment$_globalModules, t2 = A.LinkedHashMapKeyIterator$(t1, t1.__js_helper$_modifications), t3 = type$.AsyncCallable, value = null, identity = null; t2.moveNext$0();) {
  49679. t4 = t2.__js_helper$_current;
  49680. valueInModule = callback.call$1(t4);
  49681. if (valueInModule == null)
  49682. continue;
  49683. identityFromModule = t3._is(valueInModule) ? valueInModule : t4.variableIdentity$1($name);
  49684. if (identityFromModule.$eq(0, identity))
  49685. continue;
  49686. if (value != null) {
  49687. t2 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
  49688. for (t3 = A.MapExtensions_get_pairs(t1, type$.Module_AsyncCallable, type$.AstNode), t3 = t3.get$iterator(t3), t4 = "includes " + type; t3.moveNext$0();) {
  49689. t1 = t3.get$current(t3);
  49690. module = t1._0;
  49691. node = t1._1;
  49692. if (callback.call$1(module) != null)
  49693. t2.$indexSet(0, node.get$span(node), t4);
  49694. }
  49695. throw A.wrapException(A.MultiSpanSassScriptException$("This " + type + string$.x20is_av, type + " use", t2));
  49696. }
  49697. identity = identityFromModule;
  49698. value = valueInModule;
  49699. }
  49700. return value;
  49701. },
  49702. _async_environment$_fromOneModule$3($name, type, callback) {
  49703. return this._async_environment$_fromOneModule$1$3($name, type, callback, type$.dynamic);
  49704. }
  49705. };
  49706. A.AsyncEnvironment__getVariableFromGlobalModule_closure.prototype = {
  49707. call$1(module) {
  49708. return module.get$variables().$index(0, this.name);
  49709. },
  49710. $signature: 566
  49711. };
  49712. A.AsyncEnvironment_setVariable_closure.prototype = {
  49713. call$0() {
  49714. var t1 = this.$this;
  49715. t1._async_environment$_lastVariableName = this.name;
  49716. return t1._async_environment$_lastVariableIndex = 0;
  49717. },
  49718. $signature: 10
  49719. };
  49720. A.AsyncEnvironment_setVariable_closure0.prototype = {
  49721. call$1(module) {
  49722. return module.get$variables().containsKey$1(this.name) ? module : null;
  49723. },
  49724. $signature: 575
  49725. };
  49726. A.AsyncEnvironment_setVariable_closure1.prototype = {
  49727. call$0() {
  49728. var t1 = this.$this,
  49729. t2 = t1._async_environment$_variableIndex$1(this.name);
  49730. return t2 == null ? t1._async_environment$_variables.length - 1 : t2;
  49731. },
  49732. $signature: 10
  49733. };
  49734. A.AsyncEnvironment__getFunctionFromGlobalModule_closure.prototype = {
  49735. call$1(module) {
  49736. return module.get$functions(module).$index(0, this.name);
  49737. },
  49738. $signature: 200
  49739. };
  49740. A.AsyncEnvironment__getMixinFromGlobalModule_closure.prototype = {
  49741. call$1(module) {
  49742. return module.get$mixins().$index(0, this.name);
  49743. },
  49744. $signature: 200
  49745. };
  49746. A.AsyncEnvironment_toModule_closure.prototype = {
  49747. call$1(modules) {
  49748. return new A.MapKeySet(modules, type$.MapKeySet_Module_AsyncCallable);
  49749. },
  49750. $signature: 206
  49751. };
  49752. A.AsyncEnvironment_toDummyModule_closure.prototype = {
  49753. call$1(modules) {
  49754. return new A.MapKeySet(modules, type$.MapKeySet_Module_AsyncCallable);
  49755. },
  49756. $signature: 206
  49757. };
  49758. A._EnvironmentModule0.prototype = {
  49759. get$url(_) {
  49760. var t1 = this.css;
  49761. t1 = t1.get$span(t1);
  49762. return t1.get$sourceUrl(t1);
  49763. },
  49764. setVariable$3($name, value, nodeWithSpan) {
  49765. var t1, t2,
  49766. _0_0 = this._async_environment$_modulesByVariable.$index(0, $name);
  49767. if (_0_0 != null) {
  49768. _0_0.setVariable$3($name, value, nodeWithSpan);
  49769. return;
  49770. }
  49771. t1 = this._async_environment$_environment;
  49772. t2 = t1._async_environment$_variables;
  49773. if (!B.JSArray_methods.get$first(t2).containsKey$1($name))
  49774. throw A.wrapException(A.SassScriptException$("Undefined variable.", null));
  49775. J.$indexSet$ax(B.JSArray_methods.get$first(t2), $name, value);
  49776. J.$indexSet$ax(B.JSArray_methods.get$first(t1._async_environment$_variableNodes), $name, nodeWithSpan);
  49777. return;
  49778. },
  49779. variableIdentity$1($name) {
  49780. var module = this._async_environment$_modulesByVariable.$index(0, $name);
  49781. return module == null ? this : module.variableIdentity$1($name);
  49782. },
  49783. cloneCss$0() {
  49784. var _0_0, _this = this;
  49785. if (!_this.transitivelyContainsCss)
  49786. return _this;
  49787. _0_0 = A.cloneCssStylesheet(_this.css, _this.extensionStore);
  49788. return A._EnvironmentModule$_0(_this._async_environment$_environment, _0_0._0, _this.preModuleComments, _0_0._1, _this._async_environment$_modulesByVariable, _this.variables, _this.variableNodes, _this.functions, _this.mixins, true, _this.transitivelyContainsExtensions);
  49789. },
  49790. toString$0(_) {
  49791. var t1 = this.css,
  49792. t2 = t1.get$span(t1);
  49793. if (t2.get$sourceUrl(t2) == null)
  49794. t1 = "<unknown url>";
  49795. else {
  49796. t1 = t1.get$span(t1);
  49797. t1 = t1.get$sourceUrl(t1);
  49798. t2 = $.$get$context();
  49799. t1.toString;
  49800. t1 = t2.prettyUri$1(t1);
  49801. }
  49802. return t1;
  49803. },
  49804. $isModule0: 1,
  49805. get$upstream() {
  49806. return this.upstream;
  49807. },
  49808. get$variables() {
  49809. return this.variables;
  49810. },
  49811. get$variableNodes() {
  49812. return this.variableNodes;
  49813. },
  49814. get$functions(receiver) {
  49815. return this.functions;
  49816. },
  49817. get$mixins() {
  49818. return this.mixins;
  49819. },
  49820. get$extensionStore() {
  49821. return this.extensionStore;
  49822. },
  49823. get$css(receiver) {
  49824. return this.css;
  49825. },
  49826. get$preModuleComments() {
  49827. return this.preModuleComments;
  49828. },
  49829. get$transitivelyContainsCss() {
  49830. return this.transitivelyContainsCss;
  49831. },
  49832. get$transitivelyContainsExtensions() {
  49833. return this.transitivelyContainsExtensions;
  49834. }
  49835. };
  49836. A._EnvironmentModule__EnvironmentModule_closure5.prototype = {
  49837. call$1(module) {
  49838. return module.get$variables();
  49839. },
  49840. $signature: 274
  49841. };
  49842. A._EnvironmentModule__EnvironmentModule_closure6.prototype = {
  49843. call$1(module) {
  49844. return module.get$variableNodes();
  49845. },
  49846. $signature: 277
  49847. };
  49848. A._EnvironmentModule__EnvironmentModule_closure7.prototype = {
  49849. call$1(module) {
  49850. return module.get$functions(module);
  49851. },
  49852. $signature: 208
  49853. };
  49854. A._EnvironmentModule__EnvironmentModule_closure8.prototype = {
  49855. call$1(module) {
  49856. return module.get$mixins();
  49857. },
  49858. $signature: 208
  49859. };
  49860. A._EnvironmentModule__EnvironmentModule_closure9.prototype = {
  49861. call$1(module) {
  49862. return module.get$transitivelyContainsCss();
  49863. },
  49864. $signature: 133
  49865. };
  49866. A._EnvironmentModule__EnvironmentModule_closure10.prototype = {
  49867. call$1(module) {
  49868. return module.get$transitivelyContainsExtensions();
  49869. },
  49870. $signature: 133
  49871. };
  49872. A.AsyncImportCache.prototype = {
  49873. canonicalize$4$baseImporter$baseUrl$forImport(_, url, baseImporter, baseUrl, forImport) {
  49874. return this.canonicalize$body$AsyncImportCache(0, url, baseImporter, baseUrl, forImport);
  49875. },
  49876. canonicalize$body$AsyncImportCache(_, url, baseImporter, baseUrl, forImport) {
  49877. var $async$goto = 0,
  49878. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl),
  49879. $async$returnValue, $async$self = this, t1, resolvedUrl, key, relativeResult, t2, t3, t4, t5, t6, cacheable, i, importer, perImporterKey, t7, _1_0, _1_2_isSet, result, _1_2, _2_0, _2_1, _2_5_isSet, _2_5, _2_3, _2_3_isSet, j;
  49880. var $async$canonicalize$4$baseImporter$baseUrl$forImport = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  49881. if ($async$errorCode === 1)
  49882. return A._asyncRethrow($async$result, $async$completer);
  49883. while (true)
  49884. switch ($async$goto) {
  49885. case 0:
  49886. // Function start
  49887. if (A.isBrowser())
  49888. t1 = (baseImporter == null || baseImporter instanceof A.NoOpImporter) && $async$self._async_import_cache$_importers.length === 0;
  49889. else
  49890. t1 = false;
  49891. if (t1)
  49892. throw A.wrapException(string$.Custom);
  49893. $async$goto = baseImporter != null && url.get$scheme() === "" ? 3 : 4;
  49894. break;
  49895. case 3:
  49896. // then
  49897. resolvedUrl = baseUrl == null ? null : baseUrl.resolveUri$1(url);
  49898. if (resolvedUrl == null)
  49899. resolvedUrl = url;
  49900. key = new A._Record_3_forImport(baseImporter, resolvedUrl, forImport);
  49901. $async$goto = 5;
  49902. return A._asyncAwait(A.putIfAbsentAsync($async$self._async_import_cache$_perImporterCanonicalizeCache, key, new A.AsyncImportCache_canonicalize_closure($async$self, baseImporter, resolvedUrl, baseUrl, forImport, key, url), type$.Record_3_AsyncImporter_and_Uri_and_bool_forImport, type$.nullable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl), $async$canonicalize$4$baseImporter$baseUrl$forImport);
  49903. case 5:
  49904. // returning from await.
  49905. relativeResult = $async$result;
  49906. if (relativeResult != null) {
  49907. $async$returnValue = relativeResult;
  49908. // goto return
  49909. $async$goto = 1;
  49910. break;
  49911. }
  49912. case 4:
  49913. // join
  49914. key = new A._Record_2_forImport(url, forImport);
  49915. t1 = $async$self._async_import_cache$_canonicalizeCache;
  49916. if (t1.containsKey$1(key)) {
  49917. $async$returnValue = t1.$index(0, key);
  49918. // goto return
  49919. $async$goto = 1;
  49920. break;
  49921. }
  49922. t2 = $async$self._async_import_cache$_importers, t3 = type$.Record_1_nullable_Object, t4 = $async$self._async_import_cache$_perImporterCanonicalizeCache, t5 = type$.nullable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl, t6 = type$.Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl, cacheable = true, i = 0;
  49923. case 6:
  49924. // for condition
  49925. if (!(i < t2.length)) {
  49926. // goto after for
  49927. $async$goto = 8;
  49928. break;
  49929. }
  49930. importer = t2[i];
  49931. perImporterKey = new A._Record_3_forImport(importer, url, forImport);
  49932. if (t4.containsKey$1(perImporterKey)) {
  49933. t7 = t4.$index(0, perImporterKey);
  49934. _1_0 = new A._Record_1(t7 == null ? t5._as(t7) : t7);
  49935. } else
  49936. _1_0 = null;
  49937. _1_2_isSet = t3._is(_1_0);
  49938. result = null;
  49939. if (_1_2_isSet) {
  49940. _1_2 = _1_0._0;
  49941. t7 = _1_2 != null;
  49942. if (t7) {
  49943. t6._as(_1_2);
  49944. result = _1_2;
  49945. }
  49946. } else {
  49947. _1_2 = null;
  49948. t7 = false;
  49949. }
  49950. if (t7) {
  49951. $async$returnValue = result;
  49952. // goto return
  49953. $async$goto = 1;
  49954. break;
  49955. }
  49956. if (_1_2_isSet)
  49957. t7 = _1_2 == null;
  49958. else
  49959. t7 = false;
  49960. if (t7) {
  49961. // goto for update
  49962. $async$goto = 7;
  49963. break;
  49964. }
  49965. $async$goto = 10;
  49966. return A._asyncAwait($async$self._async_import_cache$_canonicalize$4(importer, url, baseUrl, forImport), $async$canonicalize$4$baseImporter$baseUrl$forImport);
  49967. case 10:
  49968. // returning from await.
  49969. _2_0 = $async$result;
  49970. _2_1 = _2_0._0;
  49971. _2_5_isSet = _2_1 != null;
  49972. _2_5 = null;
  49973. _2_3 = null;
  49974. t7 = false;
  49975. if (_2_5_isSet) {
  49976. result = _2_1 == null ? t6._as(_2_1) : _2_1;
  49977. _2_3 = _2_0._1;
  49978. t7 = _2_3;
  49979. _2_5 = t7;
  49980. t7 = t7 && cacheable;
  49981. } else
  49982. result = null;
  49983. if (t7) {
  49984. t1.$indexSet(0, key, result);
  49985. $async$returnValue = result;
  49986. // goto return
  49987. $async$goto = 1;
  49988. break;
  49989. }
  49990. if (_2_5_isSet) {
  49991. t7 = _2_5;
  49992. _2_3_isSet = _2_5_isSet;
  49993. } else {
  49994. _2_3 = _2_0._1;
  49995. t7 = _2_3;
  49996. _2_3_isSet = true;
  49997. }
  49998. t7 = t7 && !cacheable;
  49999. if (t7) {
  50000. t4.$indexSet(0, perImporterKey, _2_1);
  50001. if (_2_1 != null) {
  50002. $async$returnValue = _2_1;
  50003. // goto return
  50004. $async$goto = 1;
  50005. break;
  50006. }
  50007. // goto break $label0$1
  50008. $async$goto = 9;
  50009. break;
  50010. }
  50011. t7 = false === (_2_3_isSet ? _2_3 : _2_0._1);
  50012. if (t7) {
  50013. if (cacheable) {
  50014. for (j = 0; j < i; ++j)
  50015. t4.$indexSet(0, new A._Record_3_forImport(t2[j], url, forImport), null);
  50016. cacheable = false;
  50017. }
  50018. if (_2_1 != null) {
  50019. $async$returnValue = _2_1;
  50020. // goto return
  50021. $async$goto = 1;
  50022. break;
  50023. }
  50024. }
  50025. case 9:
  50026. // break $label0$1
  50027. case 7:
  50028. // for update
  50029. ++i;
  50030. // goto for condition
  50031. $async$goto = 6;
  50032. break;
  50033. case 8:
  50034. // after for
  50035. if (cacheable)
  50036. t1.$indexSet(0, key, null);
  50037. $async$returnValue = null;
  50038. // goto return
  50039. $async$goto = 1;
  50040. break;
  50041. case 1:
  50042. // return
  50043. return A._asyncReturn($async$returnValue, $async$completer);
  50044. }
  50045. });
  50046. return A._asyncStartSync($async$canonicalize$4$baseImporter$baseUrl$forImport, $async$completer);
  50047. },
  50048. _async_import_cache$_canonicalize$4(importer, url, baseUrl, forImport) {
  50049. return this._canonicalize$body$AsyncImportCache(importer, url, baseUrl, forImport);
  50050. },
  50051. _canonicalize$body$AsyncImportCache(importer, url, baseUrl, forImport) {
  50052. var $async$goto = 0,
  50053. $async$completer = A._makeAsyncAwaitCompleter(type$.Record_2_nullable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl_and_bool),
  50054. $async$returnValue, t1, passContainingUrl, canonicalizeContext, result, cacheable;
  50055. var $async$_async_import_cache$_canonicalize$4 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50056. if ($async$errorCode === 1)
  50057. return A._asyncRethrow($async$result, $async$completer);
  50058. while (true)
  50059. switch ($async$goto) {
  50060. case 0:
  50061. // Function start
  50062. $async$goto = baseUrl != null ? 3 : 5;
  50063. break;
  50064. case 3:
  50065. // then
  50066. $async$goto = url.get$scheme() !== "" ? 6 : 8;
  50067. break;
  50068. case 6:
  50069. // then
  50070. t1 = A._Future$value(importer.isNonCanonicalScheme$1(url.get$scheme()), type$.bool);
  50071. $async$goto = 9;
  50072. return A._asyncAwait(t1, $async$_async_import_cache$_canonicalize$4);
  50073. case 9:
  50074. // returning from await.
  50075. t1 = $async$result;
  50076. passContainingUrl = t1;
  50077. // goto join
  50078. $async$goto = 7;
  50079. break;
  50080. case 8:
  50081. // else
  50082. passContainingUrl = true;
  50083. case 7:
  50084. // join
  50085. // goto join
  50086. $async$goto = 4;
  50087. break;
  50088. case 5:
  50089. // else
  50090. passContainingUrl = false;
  50091. case 4:
  50092. // join
  50093. canonicalizeContext = new A.CanonicalizeContext(forImport, passContainingUrl ? baseUrl : null);
  50094. t1 = type$.nullable_Object;
  50095. t1 = A.runZoned(new A.AsyncImportCache__canonicalize_closure(importer, url), A.LinkedHashMap_LinkedHashMap$_literal([B.Symbol__canonicalizeContext, canonicalizeContext], t1, t1), type$.FutureOr_nullable_Uri);
  50096. $async$goto = 10;
  50097. return A._asyncAwait(type$.Future_nullable_Uri._is(t1) ? t1 : A._Future$value(t1, type$.nullable_Uri), $async$_async_import_cache$_canonicalize$4);
  50098. case 10:
  50099. // returning from await.
  50100. result = $async$result;
  50101. cacheable = !passContainingUrl || !canonicalizeContext._wasContainingUrlAccessed;
  50102. if (result == null) {
  50103. $async$returnValue = new A._Record_2(null, cacheable);
  50104. // goto return
  50105. $async$goto = 1;
  50106. break;
  50107. }
  50108. $async$goto = result.get$scheme() !== "" ? 11 : 13;
  50109. break;
  50110. case 11:
  50111. // then
  50112. t1 = A._Future$value(importer.isNonCanonicalScheme$1(result.get$scheme()), type$.bool);
  50113. $async$goto = 14;
  50114. return A._asyncAwait(t1, $async$_async_import_cache$_canonicalize$4);
  50115. case 14:
  50116. // returning from await.
  50117. t1 = $async$result;
  50118. // goto join
  50119. $async$goto = 12;
  50120. break;
  50121. case 13:
  50122. // else
  50123. t1 = false;
  50124. case 12:
  50125. // join
  50126. if (t1)
  50127. throw A.wrapException("Importer " + importer.toString$0(0) + " canonicalized " + url.toString$0(0) + " to " + result.toString$0(0) + string$.x2c_whicu);
  50128. $async$returnValue = new A._Record_2(new A._Record_3_originalUrl(importer, result, url), cacheable);
  50129. // goto return
  50130. $async$goto = 1;
  50131. break;
  50132. case 1:
  50133. // return
  50134. return A._asyncReturn($async$returnValue, $async$completer);
  50135. }
  50136. });
  50137. return A._asyncStartSync($async$_async_import_cache$_canonicalize$4, $async$completer);
  50138. },
  50139. importCanonical$3$originalUrl(importer, canonicalUrl, originalUrl) {
  50140. return this.importCanonical$body$AsyncImportCache(importer, canonicalUrl, originalUrl);
  50141. },
  50142. importCanonical$body$AsyncImportCache(importer, canonicalUrl, originalUrl) {
  50143. var $async$goto = 0,
  50144. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Stylesheet),
  50145. $async$returnValue, $async$self = this;
  50146. var $async$importCanonical$3$originalUrl = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50147. if ($async$errorCode === 1)
  50148. return A._asyncRethrow($async$result, $async$completer);
  50149. while (true)
  50150. switch ($async$goto) {
  50151. case 0:
  50152. // Function start
  50153. $async$goto = 3;
  50154. return A._asyncAwait(A.putIfAbsentAsync($async$self._async_import_cache$_importCache, canonicalUrl, new A.AsyncImportCache_importCanonical_closure($async$self, importer, canonicalUrl, originalUrl), type$.Uri, type$.nullable_Stylesheet), $async$importCanonical$3$originalUrl);
  50155. case 3:
  50156. // returning from await.
  50157. $async$returnValue = $async$result;
  50158. // goto return
  50159. $async$goto = 1;
  50160. break;
  50161. case 1:
  50162. // return
  50163. return A._asyncReturn($async$returnValue, $async$completer);
  50164. }
  50165. });
  50166. return A._asyncStartSync($async$importCanonical$3$originalUrl, $async$completer);
  50167. },
  50168. humanize$1(canonicalUrl) {
  50169. var t1 = type$.NonNullsIterable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl;
  50170. t1 = A.NullableExtension_andThen(A.minBy(new A.MappedIterable(new A.WhereIterable(new A.NonNullsIterable(this._async_import_cache$_canonicalizeCache.get$values(0), t1), new A.AsyncImportCache_humanize_closure(canonicalUrl), t1._eval$1("WhereIterable<Iterable.E>")), new A.AsyncImportCache_humanize_closure0(), t1._eval$1("MappedIterable<Iterable.E,Uri>")), new A.AsyncImportCache_humanize_closure1()), new A.AsyncImportCache_humanize_closure2(canonicalUrl));
  50171. return t1 == null ? canonicalUrl : t1;
  50172. },
  50173. sourceMapUrl$1(_, canonicalUrl) {
  50174. var t1 = this._async_import_cache$_resultsCache.$index(0, canonicalUrl);
  50175. t1 = t1 == null ? null : t1.get$sourceMapUrl(0);
  50176. return t1 == null ? canonicalUrl : t1;
  50177. }
  50178. };
  50179. A.AsyncImportCache_canonicalize_closure.prototype = {
  50180. call$0() {
  50181. var $async$goto = 0,
  50182. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl),
  50183. $async$returnValue, $async$self = this, t1, t2, _0_0, result;
  50184. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50185. if ($async$errorCode === 1)
  50186. return A._asyncRethrow($async$result, $async$completer);
  50187. while (true)
  50188. switch ($async$goto) {
  50189. case 0:
  50190. // Function start
  50191. t1 = $async$self.$this;
  50192. t2 = $async$self.baseUrl;
  50193. $async$goto = 3;
  50194. return A._asyncAwait(t1._async_import_cache$_canonicalize$4($async$self.baseImporter, $async$self.resolvedUrl, t2, $async$self.forImport), $async$call$0);
  50195. case 3:
  50196. // returning from await.
  50197. _0_0 = $async$result;
  50198. result = _0_0._0;
  50199. _0_0._1;
  50200. if (t2 != null)
  50201. t1._async_import_cache$_nonCanonicalRelativeUrls.$indexSet(0, $async$self.key, $async$self.url);
  50202. $async$returnValue = result;
  50203. // goto return
  50204. $async$goto = 1;
  50205. break;
  50206. case 1:
  50207. // return
  50208. return A._asyncReturn($async$returnValue, $async$completer);
  50209. }
  50210. });
  50211. return A._asyncStartSync($async$call$0, $async$completer);
  50212. },
  50213. $signature: 299
  50214. };
  50215. A.AsyncImportCache__canonicalize_closure.prototype = {
  50216. call$0() {
  50217. return this.importer.canonicalize$1(0, this.url);
  50218. },
  50219. $signature: 225
  50220. };
  50221. A.AsyncImportCache_importCanonical_closure.prototype = {
  50222. call$0() {
  50223. var $async$goto = 0,
  50224. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Stylesheet),
  50225. $async$returnValue, $async$self = this, t3, t1, t2, result;
  50226. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50227. if ($async$errorCode === 1)
  50228. return A._asyncRethrow($async$result, $async$completer);
  50229. while (true)
  50230. switch ($async$goto) {
  50231. case 0:
  50232. // Function start
  50233. t1 = $async$self.canonicalUrl;
  50234. t2 = A._Future$value($async$self.importer.load$1(0, t1), type$.nullable_ImporterResult);
  50235. $async$goto = 3;
  50236. return A._asyncAwait(t2, $async$call$0);
  50237. case 3:
  50238. // returning from await.
  50239. result = $async$result;
  50240. if (result == null) {
  50241. $async$returnValue = null;
  50242. // goto return
  50243. $async$goto = 1;
  50244. break;
  50245. }
  50246. $async$self.$this._async_import_cache$_resultsCache.$indexSet(0, t1, result);
  50247. t2 = result.contents;
  50248. t3 = result.syntax;
  50249. t1 = $async$self.originalUrl.resolveUri$1(t1);
  50250. $async$returnValue = A.Stylesheet_Stylesheet$parse(t2, t3, t1);
  50251. // goto return
  50252. $async$goto = 1;
  50253. break;
  50254. case 1:
  50255. // return
  50256. return A._asyncReturn($async$returnValue, $async$completer);
  50257. }
  50258. });
  50259. return A._asyncStartSync($async$call$0, $async$completer);
  50260. },
  50261. $signature: 306
  50262. };
  50263. A.AsyncImportCache_humanize_closure.prototype = {
  50264. call$1(result) {
  50265. return result._1.$eq(0, this.canonicalUrl);
  50266. },
  50267. $signature: 308
  50268. };
  50269. A.AsyncImportCache_humanize_closure0.prototype = {
  50270. call$1(result) {
  50271. return result._2;
  50272. },
  50273. $signature: 311
  50274. };
  50275. A.AsyncImportCache_humanize_closure1.prototype = {
  50276. call$1(url) {
  50277. return url.get$path(url).length;
  50278. },
  50279. $signature: 87
  50280. };
  50281. A.AsyncImportCache_humanize_closure2.prototype = {
  50282. call$1(url) {
  50283. var t1 = $.$get$url(),
  50284. t2 = this.canonicalUrl;
  50285. return url.resolve$1(0, A.ParsedPath_ParsedPath$parse(t2.get$path(t2), t1.style).get$basename());
  50286. },
  50287. $signature: 50
  50288. };
  50289. A.AsyncBuiltInCallable.prototype = {
  50290. callbackFor$2(positional, names) {
  50291. return new A._Record_2(this._async_built_in$_arguments, this._async_built_in$_callback);
  50292. },
  50293. withDeprecationWarning$1(module) {
  50294. return new A.AsyncBuiltInCallable(this.name, this._async_built_in$_arguments, new A.AsyncBuiltInCallable_withDeprecationWarning_closure(this, module, null), false);
  50295. },
  50296. $isAsyncCallable: 1,
  50297. get$name(receiver) {
  50298. return this.name;
  50299. },
  50300. get$acceptsContent() {
  50301. return this.acceptsContent;
  50302. }
  50303. };
  50304. A.AsyncBuiltInCallable$mixin_closure.prototype = {
  50305. call$1($arguments) {
  50306. return this.$call$body$AsyncBuiltInCallable$mixin_closure($arguments);
  50307. },
  50308. $call$body$AsyncBuiltInCallable$mixin_closure($arguments) {
  50309. var $async$goto = 0,
  50310. $async$completer = A._makeAsyncAwaitCompleter(type$.Value),
  50311. $async$returnValue, $async$self = this, t1;
  50312. var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  50313. if ($async$errorCode === 1)
  50314. return A._asyncRethrow($async$result, $async$completer);
  50315. while (true)
  50316. switch ($async$goto) {
  50317. case 0:
  50318. // Function start
  50319. t1 = $async$self.callback.call$1($arguments);
  50320. $async$goto = 3;
  50321. return A._asyncAwait(t1 instanceof A._Future ? t1 : A._Future$value(t1, type$.void), $async$call$1);
  50322. case 3:
  50323. // returning from await.
  50324. $async$returnValue = B.C__SassNull;
  50325. // goto return
  50326. $async$goto = 1;
  50327. break;
  50328. case 1:
  50329. // return
  50330. return A._asyncReturn($async$returnValue, $async$completer);
  50331. }
  50332. });
  50333. return A._asyncStartSync($async$call$1, $async$completer);
  50334. },
  50335. $signature: 261
  50336. };
  50337. A.AsyncBuiltInCallable_withDeprecationWarning_closure.prototype = {
  50338. call$1(args) {
  50339. var t1 = this.$this;
  50340. A.warnForDeprecation(string$.Global + this.module + "." + t1.name + string$.x20inste, B.Deprecation_0Gh);
  50341. return t1._async_built_in$_callback.call$1(args);
  50342. },
  50343. $signature: 320
  50344. };
  50345. A.BuiltInCallable.prototype = {
  50346. callbackFor$2(positional, names) {
  50347. var t1, t2, fuzzyMatch, minMismatchDistance, _i, overload, t3, mismatchDistance, t4;
  50348. for (t1 = this._overloads, t2 = t1.length, fuzzyMatch = null, minMismatchDistance = null, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
  50349. overload = t1[_i];
  50350. t3 = overload._0;
  50351. if (t3.matches$2(positional, names))
  50352. return overload;
  50353. mismatchDistance = t3.$arguments.length - positional;
  50354. if (minMismatchDistance != null) {
  50355. t3 = Math.abs(mismatchDistance);
  50356. t4 = Math.abs(minMismatchDistance);
  50357. if (t3 > t4)
  50358. continue;
  50359. if (t3 === t4 && mismatchDistance < 0)
  50360. continue;
  50361. }
  50362. minMismatchDistance = mismatchDistance;
  50363. fuzzyMatch = overload;
  50364. }
  50365. if (fuzzyMatch != null)
  50366. return fuzzyMatch;
  50367. throw A.wrapException(A.StateError$("BuiltInCallable " + this.name + " may not have empty overloads."));
  50368. },
  50369. withName$1($name) {
  50370. return new A.BuiltInCallable($name, this._overloads, this.acceptsContent);
  50371. },
  50372. withDeprecationWarning$2(module, newName) {
  50373. var t2, t3, _i, t4, t5, _this = this,
  50374. t1 = A._setArrayType([], type$.JSArray_Record_2_ArgumentDeclaration_and_Value_Function_List_Value);
  50375. for (t2 = _this._overloads, t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, A.throwConcurrentModificationError)(t2), ++_i) {
  50376. t4 = {};
  50377. t5 = t2[_i];
  50378. t4.$function = null;
  50379. t4.$function = t5._1;
  50380. t1.push(new A._Record_2(t5._0, new A.BuiltInCallable_withDeprecationWarning_closure(t4, _this, module, newName)));
  50381. }
  50382. return new A.BuiltInCallable(_this.name, t1, _this.acceptsContent);
  50383. },
  50384. withDeprecationWarning$1(module) {
  50385. return this.withDeprecationWarning$2(module, null);
  50386. },
  50387. $isCallable0: 1,
  50388. $isAsyncCallable: 1,
  50389. $isAsyncBuiltInCallable: 1,
  50390. get$name(receiver) {
  50391. return this.name;
  50392. },
  50393. get$acceptsContent() {
  50394. return this.acceptsContent;
  50395. }
  50396. };
  50397. A.BuiltInCallable$mixin_closure.prototype = {
  50398. call$1($arguments) {
  50399. this.callback.call$1($arguments);
  50400. return B.C__SassNull;
  50401. },
  50402. $signature: 4
  50403. };
  50404. A.BuiltInCallable_withDeprecationWarning_closure.prototype = {
  50405. call$1(args) {
  50406. var _this = this,
  50407. t1 = _this.newName;
  50408. if (t1 == null)
  50409. t1 = _this.$this.name;
  50410. A.warnForDeprecation(string$.Global + _this.module + "." + t1 + string$.x20inste, B.Deprecation_0Gh);
  50411. return _this._box_0.$function.call$1(args);
  50412. },
  50413. $signature: 4
  50414. };
  50415. A.PlainCssCallable.prototype = {
  50416. $eq(_, other) {
  50417. if (other == null)
  50418. return false;
  50419. return other instanceof A.PlainCssCallable && this.name === other.name;
  50420. },
  50421. get$hashCode(_) {
  50422. return B.JSString_methods.get$hashCode(this.name);
  50423. },
  50424. $isCallable0: 1,
  50425. $isAsyncCallable: 1,
  50426. get$name(receiver) {
  50427. return this.name;
  50428. }
  50429. };
  50430. A.UserDefinedCallable.prototype = {
  50431. get$name(_) {
  50432. return this.declaration.name;
  50433. },
  50434. $isCallable0: 1,
  50435. $isAsyncCallable: 1
  50436. };
  50437. A._compileStylesheet_closure.prototype = {
  50438. call$1(url) {
  50439. var t1;
  50440. if (url === "") {
  50441. t1 = this.stylesheet.span;
  50442. t1 = A.Uri_Uri$dataFromString(A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1.get$file(t1)._decodedChars, 0, null), 0, null), B.C_Utf8Codec, null).get$_text();
  50443. } else
  50444. t1 = this.importCache.sourceMapUrl$1(0, A.Uri_parse(url)).toString$0(0);
  50445. return t1;
  50446. },
  50447. $signature: 6
  50448. };
  50449. A.CompileResult.prototype = {};
  50450. A.Configuration.prototype = {
  50451. throughForward$1($forward) {
  50452. var _0_0, _1_0, _2_0, t1, hiddenVariables,
  50453. newValues = this._configuration$_values;
  50454. if (newValues.get$isEmpty(newValues))
  50455. return B.Configuration_Map_empty_null;
  50456. _0_0 = $forward.prefix;
  50457. if (_0_0 != null)
  50458. newValues = new A.UnprefixedMapView(newValues, _0_0, type$.UnprefixedMapView_ConfiguredValue);
  50459. _1_0 = $forward.shownVariables;
  50460. if (_1_0 != null)
  50461. newValues = new A.LimitedMapView(newValues, _1_0._base.intersection$1(new A.MapKeySet(newValues, type$.MapKeySet_nullable_Object)), type$.LimitedMapView_String_ConfiguredValue);
  50462. else {
  50463. _2_0 = $forward.hiddenVariables;
  50464. if (_2_0 != null) {
  50465. t1 = _2_0._base.get$isNotEmpty(0);
  50466. hiddenVariables = _2_0;
  50467. } else {
  50468. hiddenVariables = null;
  50469. t1 = false;
  50470. }
  50471. if (t1)
  50472. newValues = A.LimitedMapView$blocklist(newValues, hiddenVariables, type$.String, type$.ConfiguredValue);
  50473. }
  50474. return this._withValues$1(newValues);
  50475. },
  50476. _withValues$1(values) {
  50477. var t1 = this.__originalConfiguration;
  50478. return new A.Configuration(values, t1 == null ? this : t1);
  50479. },
  50480. toString$0(_) {
  50481. var t2, t3,
  50482. t1 = A._setArrayType([], type$.JSArray_String);
  50483. for (t2 = A.MapExtensions_get_pairs(new A.UnmodifiableMapView(this._configuration$_values, type$.UnmodifiableMapView_String_ConfiguredValue), type$.String, type$.ConfiguredValue), t2 = t2.get$iterator(t2); t2.moveNext$0();) {
  50484. t3 = t2.get$current(t2);
  50485. t1.push("$" + t3._0 + ": " + t3._1.toString$0(0));
  50486. }
  50487. return "(" + B.JSArray_methods.join$1(t1, ",") + ")";
  50488. }
  50489. };
  50490. A.ExplicitConfiguration.prototype = {
  50491. _withValues$1(values) {
  50492. var t1 = this.__originalConfiguration;
  50493. if (t1 == null)
  50494. t1 = this;
  50495. return new A.ExplicitConfiguration(this.nodeWithSpan, values, t1);
  50496. }
  50497. };
  50498. A.ConfiguredValue.prototype = {
  50499. toString$0(_) {
  50500. return this.value.toString$0(0);
  50501. }
  50502. };
  50503. A.Deprecation.prototype = {
  50504. _enumToString$0() {
  50505. return "Deprecation." + this._name;
  50506. },
  50507. toString$0(_) {
  50508. return this.id;
  50509. }
  50510. };
  50511. A.Deprecation_fromId_closure.prototype = {
  50512. call$1(deprecation) {
  50513. return deprecation.id === this.id;
  50514. },
  50515. $signature: 323
  50516. };
  50517. A.Environment.prototype = {
  50518. closure$0() {
  50519. var t4, t5, t6, _this = this,
  50520. t1 = _this._forwardedModules,
  50521. t2 = _this._nestedForwardedModules,
  50522. t3 = _this._variables;
  50523. t3 = A._setArrayType(t3.slice(0), A._arrayInstanceType(t3));
  50524. t4 = _this._variableNodes;
  50525. t4 = A._setArrayType(t4.slice(0), A._arrayInstanceType(t4));
  50526. t5 = _this._functions;
  50527. t5 = A._setArrayType(t5.slice(0), A._arrayInstanceType(t5));
  50528. t6 = _this._mixins;
  50529. t6 = A._setArrayType(t6.slice(0), A._arrayInstanceType(t6));
  50530. return A.Environment$_(_this._environment$_modules, _this._namespaceNodes, _this._globalModules, _this._importedModules, t1, t2, _this._allModules, t3, t4, t5, t6, _this._content);
  50531. },
  50532. forwardModule$2(module, rule) {
  50533. var view, t1, t2, _this = this,
  50534. forwardedModules = _this._forwardedModules;
  50535. if (forwardedModules == null)
  50536. forwardedModules = _this._forwardedModules = A.LinkedHashMap_LinkedHashMap$_empty(type$.Module_Callable, type$.AstNode);
  50537. view = A.ForwardedModuleView_ifNecessary(module, rule, type$.Callable);
  50538. for (t1 = A.LinkedHashMapKeyIterator$(forwardedModules, forwardedModules.__js_helper$_modifications); t1.moveNext$0();) {
  50539. t2 = t1.__js_helper$_current;
  50540. _this._assertNoConflicts$5(view.get$variables(), t2.get$variables(), view, t2, "variable");
  50541. _this._assertNoConflicts$5(view.get$functions(view), t2.get$functions(t2), view, t2, "function");
  50542. _this._assertNoConflicts$5(view.get$mixins(), t2.get$mixins(), view, t2, "mixin");
  50543. }
  50544. _this._allModules.push(module);
  50545. forwardedModules.$indexSet(0, view, rule);
  50546. },
  50547. _assertNoConflicts$5(newMembers, oldMembers, newModule, oldModule, type) {
  50548. var larger, smaller, t1, t2, t3, t4, $name, small, large, span;
  50549. if (newMembers.get$length(newMembers) < oldMembers.get$length(oldMembers)) {
  50550. larger = oldMembers;
  50551. smaller = newMembers;
  50552. } else {
  50553. larger = newMembers;
  50554. smaller = oldMembers;
  50555. }
  50556. for (t1 = type$.String, t2 = A.MapExtensions_get_pairs(smaller, t1, type$.Object), t2 = t2.get$iterator(t2), t3 = type === "variable"; t2.moveNext$0();) {
  50557. t4 = t2.get$current(t2);
  50558. $name = t4._0;
  50559. small = t4._1;
  50560. large = larger.$index(0, $name);
  50561. if (large == null)
  50562. continue;
  50563. if (t3 ? newModule.variableIdentity$1($name) === oldModule.variableIdentity$1($name) : J.$eq$(large, small))
  50564. continue;
  50565. if (t3)
  50566. $name = "$" + $name;
  50567. t2 = this._forwardedModules;
  50568. if (t2 == null)
  50569. span = null;
  50570. else {
  50571. t2 = t2.$index(0, oldModule);
  50572. span = t2 == null ? null : J.get$span$z(t2);
  50573. }
  50574. t2 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, t1);
  50575. if (span != null)
  50576. t2.$indexSet(0, span, "original @forward");
  50577. throw A.wrapException(A.MultiSpanSassScriptException$("Two forwarded modules both define a " + type + " named " + $name + ".", "new @forward", t2));
  50578. }
  50579. },
  50580. importForwards$1(module) {
  50581. var forwardedModules, t1, t2, t3, t4, node, t5, t6, t7, t8, t9, t10, _i, t11, shadowed, t12, _length, _list, _this = this,
  50582. forwarded = module._environment$_environment._forwardedModules;
  50583. if (forwarded == null)
  50584. return;
  50585. forwardedModules = _this._forwardedModules;
  50586. if (forwardedModules != null) {
  50587. t1 = type$.Module_Callable;
  50588. t2 = type$.AstNode;
  50589. t3 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
  50590. for (t1 = A.MapExtensions_get_pairs(forwarded, t1, t2), t1 = t1.get$iterator(t1), t2 = _this._globalModules; t1.moveNext$0();) {
  50591. t4 = t1.get$current(t1);
  50592. module = t4._0;
  50593. node = t4._1;
  50594. if (!forwardedModules.containsKey$1(module) || !t2.containsKey$1(module))
  50595. t3.$indexSet(0, module, node);
  50596. }
  50597. forwarded = t3;
  50598. } else
  50599. forwardedModules = _this._forwardedModules = A.LinkedHashMap_LinkedHashMap$_empty(type$.Module_Callable, type$.AstNode);
  50600. t1 = type$.String;
  50601. t2 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
  50602. for (t3 = A.LinkedHashMapKeyIterator$(forwarded, forwarded.__js_helper$_modifications); t3.moveNext$0();)
  50603. for (t4 = t3.__js_helper$_current.get$variables(), t4 = J.get$iterator$ax(t4.get$keys(t4)); t4.moveNext$0();)
  50604. t2.add$1(0, t4.get$current(t4));
  50605. t3 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
  50606. for (t4 = A.LinkedHashMapKeyIterator$(forwarded, forwarded.__js_helper$_modifications); t4.moveNext$0();) {
  50607. t5 = t4.__js_helper$_current;
  50608. for (t5 = t5.get$functions(t5), t5 = J.get$iterator$ax(t5.get$keys(t5)); t5.moveNext$0();)
  50609. t3.add$1(0, t5.get$current(t5));
  50610. }
  50611. t1 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
  50612. for (t4 = A.LinkedHashMapKeyIterator$(forwarded, forwarded.__js_helper$_modifications); t4.moveNext$0();)
  50613. for (t5 = t4.__js_helper$_current.get$mixins(), t5 = J.get$iterator$ax(t5.get$keys(t5)); t5.moveNext$0();)
  50614. t1.add$1(0, t5.get$current(t5));
  50615. t4 = _this._variables;
  50616. t5 = t4.length;
  50617. if (t5 === 1) {
  50618. for (t5 = _this._importedModules, t6 = type$.Module_Callable, t7 = type$.AstNode, t8 = A.MapExtensions_get_pairs(t5, t6, t7).toList$0(0), t9 = t8.length, t10 = type$.Callable, _i = 0; _i < t8.length; t8.length === t9 || (0, A.throwConcurrentModificationError)(t8), ++_i) {
  50619. t11 = t8[_i];
  50620. module = t11._0;
  50621. node = t11._1;
  50622. shadowed = A.ShadowedModuleView_ifNecessary(module, t3, t1, t2, t10);
  50623. if (shadowed != null) {
  50624. t5.remove$1(0, module);
  50625. t11 = shadowed.variables;
  50626. t12 = false;
  50627. if (t11.get$isEmpty(t11)) {
  50628. t11 = shadowed.functions;
  50629. if (t11.get$isEmpty(t11)) {
  50630. t11 = shadowed.mixins;
  50631. if (t11.get$isEmpty(t11)) {
  50632. t11 = shadowed._shadowed_view$_inner;
  50633. t11 = t11.get$css(t11);
  50634. t11 = J.get$isEmpty$asx(t11.get$children(t11));
  50635. } else
  50636. t11 = t12;
  50637. } else
  50638. t11 = t12;
  50639. } else
  50640. t11 = t12;
  50641. if (!t11)
  50642. t5.$indexSet(0, shadowed, node);
  50643. }
  50644. }
  50645. for (t6 = A.MapExtensions_get_pairs(forwardedModules, t6, t7).toList$0(0), t7 = t6.length, _i = 0; _i < t6.length; t6.length === t7 || (0, A.throwConcurrentModificationError)(t6), ++_i) {
  50646. t8 = t6[_i];
  50647. module = t8._0;
  50648. node = t8._1;
  50649. shadowed = A.ShadowedModuleView_ifNecessary(module, t3, t1, t2, t10);
  50650. if (shadowed != null) {
  50651. forwardedModules.remove$1(0, module);
  50652. t8 = shadowed.variables;
  50653. t9 = false;
  50654. if (t8.get$isEmpty(t8)) {
  50655. t8 = shadowed.functions;
  50656. if (t8.get$isEmpty(t8)) {
  50657. t8 = shadowed.mixins;
  50658. if (t8.get$isEmpty(t8)) {
  50659. t8 = shadowed._shadowed_view$_inner;
  50660. t8 = t8.get$css(t8);
  50661. t8 = J.get$isEmpty$asx(t8.get$children(t8));
  50662. } else
  50663. t8 = t9;
  50664. } else
  50665. t8 = t9;
  50666. } else
  50667. t8 = t9;
  50668. if (!t8)
  50669. forwardedModules.$indexSet(0, shadowed, node);
  50670. }
  50671. }
  50672. t5.addAll$1(0, forwarded);
  50673. forwardedModules.addAll$1(0, forwarded);
  50674. } else {
  50675. t6 = _this._nestedForwardedModules;
  50676. if (t6 == null) {
  50677. _length = t5 - 1;
  50678. _list = J.JSArray_JSArray$allocateGrowable(_length, type$.List_Module_Callable);
  50679. for (t5 = type$.JSArray_Module_Callable, _i = 0; _i < _length; ++_i)
  50680. _list[_i] = A._setArrayType([], t5);
  50681. _this._nestedForwardedModules = _list;
  50682. t5 = _list;
  50683. } else
  50684. t5 = t6;
  50685. B.JSArray_methods.addAll$1(B.JSArray_methods.get$last(t5), new A.LinkedHashMapKeyIterable(forwarded, A._instanceType(forwarded)._eval$1("LinkedHashMapKeyIterable<1>")));
  50686. }
  50687. for (t2 = A._LinkedHashSetIterator$(t2, t2._modifications, t2.$ti._precomputed1), t5 = _this._variableIndices, t6 = _this._variableNodes, t7 = t2.$ti._precomputed1; t2.moveNext$0();) {
  50688. t8 = t2._collection$_current;
  50689. if (t8 == null)
  50690. t8 = t7._as(t8);
  50691. t5.remove$1(0, t8);
  50692. J.remove$1$z(B.JSArray_methods.get$last(t4), t8);
  50693. J.remove$1$z(B.JSArray_methods.get$last(t6), t8);
  50694. }
  50695. for (t2 = A._LinkedHashSetIterator$(t3, t3._modifications, t3.$ti._precomputed1), t3 = _this._functionIndices, t4 = _this._functions, t5 = t2.$ti._precomputed1; t2.moveNext$0();) {
  50696. t6 = t2._collection$_current;
  50697. if (t6 == null)
  50698. t6 = t5._as(t6);
  50699. t3.remove$1(0, t6);
  50700. J.remove$1$z(B.JSArray_methods.get$last(t4), t6);
  50701. }
  50702. for (t1 = A._LinkedHashSetIterator$(t1, t1._modifications, t1.$ti._precomputed1), t2 = _this._mixinIndices, t3 = _this._mixins, t4 = t1.$ti._precomputed1; t1.moveNext$0();) {
  50703. t5 = t1._collection$_current;
  50704. if (t5 == null)
  50705. t5 = t4._as(t5);
  50706. t2.remove$1(0, t5);
  50707. J.remove$1$z(B.JSArray_methods.get$last(t3), t5);
  50708. }
  50709. },
  50710. getVariable$2$namespace($name, namespace) {
  50711. var t1, _0_0, _1_0, _this = this;
  50712. if (namespace != null)
  50713. return _this._getModule$1(namespace).get$variables().$index(0, $name);
  50714. if (_this._lastVariableName === $name) {
  50715. t1 = _this._lastVariableIndex;
  50716. t1.toString;
  50717. t1 = J.$index$asx(_this._variables[t1], $name);
  50718. return t1 == null ? _this._getVariableFromGlobalModule$1($name) : t1;
  50719. }
  50720. t1 = _this._variableIndices;
  50721. _0_0 = t1.$index(0, $name);
  50722. if (_0_0 != null) {
  50723. _this._lastVariableName = $name;
  50724. _this._lastVariableIndex = _0_0;
  50725. t1 = J.$index$asx(_this._variables[_0_0], $name);
  50726. return t1 == null ? _this._getVariableFromGlobalModule$1($name) : t1;
  50727. } else {
  50728. _1_0 = _this._variableIndex$1($name);
  50729. if (_1_0 != null) {
  50730. _this._lastVariableName = $name;
  50731. _this._lastVariableIndex = _1_0;
  50732. t1.$indexSet(0, $name, _1_0);
  50733. t1 = J.$index$asx(_this._variables[_1_0], $name);
  50734. return t1 == null ? _this._getVariableFromGlobalModule$1($name) : t1;
  50735. } else
  50736. return _this._getVariableFromGlobalModule$1($name);
  50737. }
  50738. },
  50739. getVariable$1($name) {
  50740. return this.getVariable$2$namespace($name, null);
  50741. },
  50742. _getVariableFromGlobalModule$1($name) {
  50743. return this._fromOneModule$3($name, "variable", new A.Environment__getVariableFromGlobalModule_closure($name));
  50744. },
  50745. getVariableNode$2$namespace($name, namespace) {
  50746. var t1, _0_0, _1_0, _this = this;
  50747. if (namespace != null)
  50748. return _this._getModule$1(namespace).get$variableNodes().$index(0, $name);
  50749. if (_this._lastVariableName === $name) {
  50750. t1 = _this._lastVariableIndex;
  50751. t1.toString;
  50752. t1 = J.$index$asx(_this._variableNodes[t1], $name);
  50753. return t1 == null ? _this._getVariableNodeFromGlobalModule$1($name) : t1;
  50754. }
  50755. t1 = _this._variableIndices;
  50756. _0_0 = t1.$index(0, $name);
  50757. if (_0_0 != null) {
  50758. _this._lastVariableName = $name;
  50759. _this._lastVariableIndex = _0_0;
  50760. t1 = J.$index$asx(_this._variableNodes[_0_0], $name);
  50761. return t1 == null ? _this._getVariableNodeFromGlobalModule$1($name) : t1;
  50762. } else {
  50763. _1_0 = _this._variableIndex$1($name);
  50764. if (_1_0 != null) {
  50765. _this._lastVariableName = $name;
  50766. _this._lastVariableIndex = _1_0;
  50767. t1.$indexSet(0, $name, _1_0);
  50768. t1 = J.$index$asx(_this._variableNodes[_1_0], $name);
  50769. return t1 == null ? _this._getVariableNodeFromGlobalModule$1($name) : t1;
  50770. } else
  50771. return _this._getVariableNodeFromGlobalModule$1($name);
  50772. }
  50773. },
  50774. _getVariableNodeFromGlobalModule$1($name) {
  50775. var t1, t2, _0_0;
  50776. for (t1 = this._importedModules, t2 = this._globalModules, t2 = new A.LinkedHashMapKeyIterable(t1, A._instanceType(t1)._eval$1("LinkedHashMapKeyIterable<1>")).followedBy$1(0, new A.LinkedHashMapKeyIterable(t2, A._instanceType(t2)._eval$1("LinkedHashMapKeyIterable<1>"))), t2 = new A.FollowedByIterator(J.get$iterator$ax(t2.__internal$_first), t2._second); t2.moveNext$0();) {
  50777. t1 = t2._currentIterator;
  50778. _0_0 = t1.get$current(t1).get$variableNodes().$index(0, $name);
  50779. if (_0_0 != null)
  50780. return _0_0;
  50781. }
  50782. return null;
  50783. },
  50784. globalVariableExists$2$namespace($name, namespace) {
  50785. if (namespace != null)
  50786. return this._getModule$1(namespace).get$variables().containsKey$1($name);
  50787. if (B.JSArray_methods.get$first(this._variables).containsKey$1($name))
  50788. return true;
  50789. return this._getVariableFromGlobalModule$1($name) != null;
  50790. },
  50791. globalVariableExists$1($name) {
  50792. return this.globalVariableExists$2$namespace($name, null);
  50793. },
  50794. _variableIndex$1($name) {
  50795. var t1, i;
  50796. for (t1 = this._variables, i = t1.length - 1; i >= 0; --i)
  50797. if (t1[i].containsKey$1($name))
  50798. return i;
  50799. return null;
  50800. },
  50801. setVariable$5$global$namespace($name, value, nodeWithSpan, global, namespace) {
  50802. var t1, moduleWithName, nestedForwardedModules, t2, t3, t4, t5, index, _this = this;
  50803. if (namespace != null) {
  50804. _this._getModule$1(namespace).setVariable$3($name, value, nodeWithSpan);
  50805. return;
  50806. }
  50807. if (global || _this._variables.length === 1) {
  50808. _this._variableIndices.putIfAbsent$2($name, new A.Environment_setVariable_closure(_this, $name));
  50809. t1 = _this._variables;
  50810. if (!B.JSArray_methods.get$first(t1).containsKey$1($name)) {
  50811. moduleWithName = _this._fromOneModule$3($name, "variable", new A.Environment_setVariable_closure0($name));
  50812. if (moduleWithName != null) {
  50813. moduleWithName.setVariable$3($name, value, nodeWithSpan);
  50814. return;
  50815. }
  50816. }
  50817. J.$indexSet$ax(B.JSArray_methods.get$first(t1), $name, value);
  50818. J.$indexSet$ax(B.JSArray_methods.get$first(_this._variableNodes), $name, nodeWithSpan);
  50819. return;
  50820. }
  50821. nestedForwardedModules = _this._nestedForwardedModules;
  50822. if (nestedForwardedModules != null && !_this._variableIndices.containsKey$1($name) && _this._variableIndex$1($name) == null)
  50823. for (t1 = A._arrayInstanceType(nestedForwardedModules)._eval$1("ReversedListIterable<1>"), t2 = new A.ReversedListIterable(nestedForwardedModules, t1), t2 = new A.ListIterator(t2, t2.get$length(0), t1._eval$1("ListIterator<ListIterable.E>")), t1 = t1._eval$1("ListIterable.E"); t2.moveNext$0();) {
  50824. t3 = t2.__internal$_current;
  50825. for (t3 = J.get$reversed$ax(t3 == null ? t1._as(t3) : t3), t4 = t3.$ti, t3 = new A.ListIterator(t3, t3.get$length(0), t4._eval$1("ListIterator<ListIterable.E>")), t4 = t4._eval$1("ListIterable.E"); t3.moveNext$0();) {
  50826. t5 = t3.__internal$_current;
  50827. if (t5 == null)
  50828. t5 = t4._as(t5);
  50829. if (t5.get$variables().containsKey$1($name)) {
  50830. t5.setVariable$3($name, value, nodeWithSpan);
  50831. return;
  50832. }
  50833. }
  50834. }
  50835. if (_this._lastVariableName === $name) {
  50836. t1 = _this._lastVariableIndex;
  50837. t1.toString;
  50838. index = t1;
  50839. } else
  50840. index = _this._variableIndices.putIfAbsent$2($name, new A.Environment_setVariable_closure1(_this, $name));
  50841. if (!_this._inSemiGlobalScope && index === 0) {
  50842. index = _this._variables.length - 1;
  50843. _this._variableIndices.$indexSet(0, $name, index);
  50844. }
  50845. _this._lastVariableName = $name;
  50846. _this._lastVariableIndex = index;
  50847. J.$indexSet$ax(_this._variables[index], $name, value);
  50848. J.$indexSet$ax(_this._variableNodes[index], $name, nodeWithSpan);
  50849. },
  50850. setVariable$4$global($name, value, nodeWithSpan, global) {
  50851. return this.setVariable$5$global$namespace($name, value, nodeWithSpan, global, null);
  50852. },
  50853. setLocalVariable$3($name, value, nodeWithSpan) {
  50854. var index, _this = this,
  50855. t1 = _this._variables,
  50856. t2 = t1.length;
  50857. _this._lastVariableName = $name;
  50858. index = _this._lastVariableIndex = t2 - 1;
  50859. _this._variableIndices.$indexSet(0, $name, index);
  50860. J.$indexSet$ax(t1[index], $name, value);
  50861. J.$indexSet$ax(_this._variableNodes[index], $name, nodeWithSpan);
  50862. },
  50863. getFunction$2$namespace($name, namespace) {
  50864. var t1, _0_0, _1_0, _this = this;
  50865. if (namespace != null) {
  50866. t1 = _this._getModule$1(namespace);
  50867. return t1.get$functions(t1).$index(0, $name);
  50868. }
  50869. t1 = _this._functionIndices;
  50870. _0_0 = t1.$index(0, $name);
  50871. if (_0_0 != null) {
  50872. t1 = J.$index$asx(_this._functions[_0_0], $name);
  50873. return t1 == null ? _this._getFunctionFromGlobalModule$1($name) : t1;
  50874. } else {
  50875. _1_0 = _this._functionIndex$1($name);
  50876. if (_1_0 != null) {
  50877. t1.$indexSet(0, $name, _1_0);
  50878. t1 = J.$index$asx(_this._functions[_1_0], $name);
  50879. return t1 == null ? _this._getFunctionFromGlobalModule$1($name) : t1;
  50880. } else
  50881. return _this._getFunctionFromGlobalModule$1($name);
  50882. }
  50883. },
  50884. getFunction$1($name) {
  50885. return this.getFunction$2$namespace($name, null);
  50886. },
  50887. _getFunctionFromGlobalModule$1($name) {
  50888. return this._fromOneModule$3($name, "function", new A.Environment__getFunctionFromGlobalModule_closure($name));
  50889. },
  50890. _functionIndex$1($name) {
  50891. var t1, i;
  50892. for (t1 = this._functions, i = t1.length - 1; i >= 0; --i)
  50893. if (t1[i].containsKey$1($name))
  50894. return i;
  50895. return null;
  50896. },
  50897. getMixin$2$namespace($name, namespace) {
  50898. var t1, _0_0, _1_0, _this = this;
  50899. if (namespace != null)
  50900. return _this._getModule$1(namespace).get$mixins().$index(0, $name);
  50901. t1 = _this._mixinIndices;
  50902. _0_0 = t1.$index(0, $name);
  50903. if (_0_0 != null) {
  50904. t1 = J.$index$asx(_this._mixins[_0_0], $name);
  50905. return t1 == null ? _this._getMixinFromGlobalModule$1($name) : t1;
  50906. } else {
  50907. _1_0 = _this._mixinIndex$1($name);
  50908. if (_1_0 != null) {
  50909. t1.$indexSet(0, $name, _1_0);
  50910. t1 = J.$index$asx(_this._mixins[_1_0], $name);
  50911. return t1 == null ? _this._getMixinFromGlobalModule$1($name) : t1;
  50912. } else
  50913. return _this._getMixinFromGlobalModule$1($name);
  50914. }
  50915. },
  50916. _getMixinFromGlobalModule$1($name) {
  50917. return this._fromOneModule$3($name, "mixin", new A.Environment__getMixinFromGlobalModule_closure($name));
  50918. },
  50919. _mixinIndex$1($name) {
  50920. var t1, i;
  50921. for (t1 = this._mixins, i = t1.length - 1; i >= 0; --i)
  50922. if (t1[i].containsKey$1($name))
  50923. return i;
  50924. return null;
  50925. },
  50926. withContent$2($content, callback) {
  50927. var oldContent = this._content;
  50928. this._content = $content;
  50929. callback.call$0();
  50930. this._content = oldContent;
  50931. },
  50932. asMixin$1(callback) {
  50933. var oldInMixin = this._inMixin;
  50934. this._inMixin = true;
  50935. callback.call$0();
  50936. this._inMixin = oldInMixin;
  50937. },
  50938. scope$1$3$semiGlobal$when(callback, semiGlobal, when) {
  50939. var wasInSemiGlobalScope, $name, name0, name1, t1, t2, t3, t4, t5, t6, _this = this;
  50940. semiGlobal = semiGlobal && _this._inSemiGlobalScope;
  50941. wasInSemiGlobalScope = _this._inSemiGlobalScope;
  50942. _this._inSemiGlobalScope = semiGlobal;
  50943. if (!when)
  50944. try {
  50945. t1 = callback.call$0();
  50946. return t1;
  50947. } finally {
  50948. _this._inSemiGlobalScope = wasInSemiGlobalScope;
  50949. }
  50950. t1 = _this._variables;
  50951. t2 = type$.String;
  50952. B.JSArray_methods.add$1(t1, A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.Value));
  50953. t3 = _this._variableNodes;
  50954. B.JSArray_methods.add$1(t3, A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.AstNode));
  50955. t4 = _this._functions;
  50956. t5 = type$.Callable;
  50957. B.JSArray_methods.add$1(t4, A.LinkedHashMap_LinkedHashMap$_empty(t2, t5));
  50958. t6 = _this._mixins;
  50959. B.JSArray_methods.add$1(t6, A.LinkedHashMap_LinkedHashMap$_empty(t2, t5));
  50960. t5 = _this._nestedForwardedModules;
  50961. if (t5 != null)
  50962. t5.push(A._setArrayType([], type$.JSArray_Module_Callable));
  50963. try {
  50964. t2 = callback.call$0();
  50965. return t2;
  50966. } finally {
  50967. _this._inSemiGlobalScope = wasInSemiGlobalScope;
  50968. _this._lastVariableIndex = _this._lastVariableName = null;
  50969. for (t1 = J.get$iterator$ax(J.get$keys$z(B.JSArray_methods.removeLast$0(t1))), t2 = _this._variableIndices; t1.moveNext$0();) {
  50970. $name = t1.get$current(t1);
  50971. t2.remove$1(0, $name);
  50972. }
  50973. B.JSArray_methods.removeLast$0(t3);
  50974. for (t1 = J.get$iterator$ax(J.get$keys$z(B.JSArray_methods.removeLast$0(t4))), t2 = _this._functionIndices; t1.moveNext$0();) {
  50975. name0 = t1.get$current(t1);
  50976. t2.remove$1(0, name0);
  50977. }
  50978. for (t1 = J.get$iterator$ax(J.get$keys$z(B.JSArray_methods.removeLast$0(t6))), t2 = _this._mixinIndices; t1.moveNext$0();) {
  50979. name1 = t1.get$current(t1);
  50980. t2.remove$1(0, name1);
  50981. }
  50982. t1 = _this._nestedForwardedModules;
  50983. if (t1 != null)
  50984. t1.pop();
  50985. }
  50986. },
  50987. scope$1$1(callback) {
  50988. return this.scope$1$3$semiGlobal$when(callback, false, true);
  50989. },
  50990. scope$1$2$when(callback, when) {
  50991. return this.scope$1$3$semiGlobal$when(callback, false, when);
  50992. },
  50993. scope$1$2$semiGlobal(callback, semiGlobal) {
  50994. return this.scope$1$3$semiGlobal$when(callback, semiGlobal, true);
  50995. },
  50996. toImplicitConfiguration$0() {
  50997. var t2, t3, t4, i, values, nodes, t5, t6, $name, value,
  50998. t1 = type$.String,
  50999. configuration = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.ConfiguredValue);
  51000. for (t2 = this._variables, t3 = type$.Value, t4 = this._variableNodes, i = 0; i < t2.length; ++i) {
  51001. values = t2[i];
  51002. nodes = t4[i];
  51003. for (t5 = A.MapExtensions_get_pairs(values, t1, t3), t5 = t5.get$iterator(t5); t5.moveNext$0();) {
  51004. t6 = t5.get$current(t5);
  51005. $name = t6._0;
  51006. value = t6._1;
  51007. t6 = nodes.$index(0, $name);
  51008. t6.toString;
  51009. configuration.$indexSet(0, $name, new A.ConfiguredValue(value, null, t6));
  51010. }
  51011. }
  51012. return new A.Configuration(configuration, null);
  51013. },
  51014. toModule$3(css, preModuleComments, extensionStore) {
  51015. return A._EnvironmentModule__EnvironmentModule(this, css, preModuleComments, extensionStore, A.NullableExtension_andThen(this._forwardedModules, new A.Environment_toModule_closure()));
  51016. },
  51017. toDummyModule$0() {
  51018. return A._EnvironmentModule__EnvironmentModule(this, new A.CssStylesheet(new A.UnmodifiableListView(B.List_empty3, type$.UnmodifiableListView_CssNode), A.SourceFile$decoded(B.List_empty4, "<dummy module>").span$1(0, 0)), B.Map_empty0, B.C_EmptyExtensionStore, A.NullableExtension_andThen(this._forwardedModules, new A.Environment_toDummyModule_closure()));
  51019. },
  51020. _getModule$1(namespace) {
  51021. var _0_0 = this._environment$_modules.$index(0, namespace);
  51022. if (_0_0 != null)
  51023. return _0_0;
  51024. throw A.wrapException(A.SassScriptException$('There is no module with the namespace "' + namespace + '".', null));
  51025. },
  51026. _fromOneModule$1$3($name, type, callback) {
  51027. var t1, t2, t3, t4, t5, _1_0, _2_0, value, identity, valueInModule, identityFromModule, module, node,
  51028. _0_0 = this._nestedForwardedModules;
  51029. if (_0_0 != null)
  51030. for (t1 = A._arrayInstanceType(_0_0)._eval$1("ReversedListIterable<1>"), t2 = new A.ReversedListIterable(_0_0, t1), t2 = new A.ListIterator(t2, t2.get$length(0), t1._eval$1("ListIterator<ListIterable.E>")), t1 = t1._eval$1("ListIterable.E"); t2.moveNext$0();) {
  51031. t3 = t2.__internal$_current;
  51032. for (t3 = J.get$reversed$ax(t3 == null ? t1._as(t3) : t3), t4 = t3.$ti, t3 = new A.ListIterator(t3, t3.get$length(0), t4._eval$1("ListIterator<ListIterable.E>")), t4 = t4._eval$1("ListIterable.E"); t3.moveNext$0();) {
  51033. t5 = t3.__internal$_current;
  51034. _1_0 = callback.call$1(t5 == null ? t4._as(t5) : t5);
  51035. if (_1_0 != null)
  51036. return _1_0;
  51037. }
  51038. }
  51039. for (t1 = this._importedModules, t1 = A.LinkedHashMapKeyIterator$(t1, t1.__js_helper$_modifications); t1.moveNext$0();) {
  51040. _2_0 = callback.call$1(t1.__js_helper$_current);
  51041. if (_2_0 != null)
  51042. return _2_0;
  51043. }
  51044. for (t1 = this._globalModules, t2 = A.LinkedHashMapKeyIterator$(t1, t1.__js_helper$_modifications), t3 = type$.Callable, value = null, identity = null; t2.moveNext$0();) {
  51045. t4 = t2.__js_helper$_current;
  51046. valueInModule = callback.call$1(t4);
  51047. if (valueInModule == null)
  51048. continue;
  51049. identityFromModule = t3._is(valueInModule) ? valueInModule : t4.variableIdentity$1($name);
  51050. if (identityFromModule.$eq(0, identity))
  51051. continue;
  51052. if (value != null) {
  51053. t2 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
  51054. for (t3 = A.MapExtensions_get_pairs(t1, type$.Module_Callable, type$.AstNode), t3 = t3.get$iterator(t3), t4 = "includes " + type; t3.moveNext$0();) {
  51055. t1 = t3.get$current(t3);
  51056. module = t1._0;
  51057. node = t1._1;
  51058. if (callback.call$1(module) != null)
  51059. t2.$indexSet(0, node.get$span(node), t4);
  51060. }
  51061. throw A.wrapException(A.MultiSpanSassScriptException$("This " + type + string$.x20is_av, type + " use", t2));
  51062. }
  51063. identity = identityFromModule;
  51064. value = valueInModule;
  51065. }
  51066. return value;
  51067. },
  51068. _fromOneModule$3($name, type, callback) {
  51069. return this._fromOneModule$1$3($name, type, callback, type$.dynamic);
  51070. }
  51071. };
  51072. A.Environment__getVariableFromGlobalModule_closure.prototype = {
  51073. call$1(module) {
  51074. return module.get$variables().$index(0, this.name);
  51075. },
  51076. $signature: 324
  51077. };
  51078. A.Environment_setVariable_closure.prototype = {
  51079. call$0() {
  51080. var t1 = this.$this;
  51081. t1._lastVariableName = this.name;
  51082. return t1._lastVariableIndex = 0;
  51083. },
  51084. $signature: 10
  51085. };
  51086. A.Environment_setVariable_closure0.prototype = {
  51087. call$1(module) {
  51088. return module.get$variables().containsKey$1(this.name) ? module : null;
  51089. },
  51090. $signature: 325
  51091. };
  51092. A.Environment_setVariable_closure1.prototype = {
  51093. call$0() {
  51094. var t1 = this.$this,
  51095. t2 = t1._variableIndex$1(this.name);
  51096. return t2 == null ? t1._variables.length - 1 : t2;
  51097. },
  51098. $signature: 10
  51099. };
  51100. A.Environment__getFunctionFromGlobalModule_closure.prototype = {
  51101. call$1(module) {
  51102. return module.get$functions(module).$index(0, this.name);
  51103. },
  51104. $signature: 146
  51105. };
  51106. A.Environment__getMixinFromGlobalModule_closure.prototype = {
  51107. call$1(module) {
  51108. return module.get$mixins().$index(0, this.name);
  51109. },
  51110. $signature: 146
  51111. };
  51112. A.Environment_toModule_closure.prototype = {
  51113. call$1(modules) {
  51114. return new A.MapKeySet(modules, type$.MapKeySet_Module_Callable);
  51115. },
  51116. $signature: 148
  51117. };
  51118. A.Environment_toDummyModule_closure.prototype = {
  51119. call$1(modules) {
  51120. return new A.MapKeySet(modules, type$.MapKeySet_Module_Callable);
  51121. },
  51122. $signature: 148
  51123. };
  51124. A._EnvironmentModule.prototype = {
  51125. get$url(_) {
  51126. var t1 = this.css;
  51127. t1 = t1.get$span(t1);
  51128. return t1.get$sourceUrl(t1);
  51129. },
  51130. setVariable$3($name, value, nodeWithSpan) {
  51131. var t1, t2,
  51132. _0_0 = this._modulesByVariable.$index(0, $name);
  51133. if (_0_0 != null) {
  51134. _0_0.setVariable$3($name, value, nodeWithSpan);
  51135. return;
  51136. }
  51137. t1 = this._environment$_environment;
  51138. t2 = t1._variables;
  51139. if (!B.JSArray_methods.get$first(t2).containsKey$1($name))
  51140. throw A.wrapException(A.SassScriptException$("Undefined variable.", null));
  51141. J.$indexSet$ax(B.JSArray_methods.get$first(t2), $name, value);
  51142. J.$indexSet$ax(B.JSArray_methods.get$first(t1._variableNodes), $name, nodeWithSpan);
  51143. return;
  51144. },
  51145. variableIdentity$1($name) {
  51146. var module = this._modulesByVariable.$index(0, $name);
  51147. return module == null ? this : module.variableIdentity$1($name);
  51148. },
  51149. cloneCss$0() {
  51150. var _0_0, _this = this;
  51151. if (!_this.transitivelyContainsCss)
  51152. return _this;
  51153. _0_0 = A.cloneCssStylesheet(_this.css, _this.extensionStore);
  51154. return A._EnvironmentModule$_(_this._environment$_environment, _0_0._0, _this.preModuleComments, _0_0._1, _this._modulesByVariable, _this.variables, _this.variableNodes, _this.functions, _this.mixins, true, _this.transitivelyContainsExtensions);
  51155. },
  51156. toString$0(_) {
  51157. var t1 = this.css,
  51158. t2 = t1.get$span(t1);
  51159. if (t2.get$sourceUrl(t2) == null)
  51160. t1 = "<unknown url>";
  51161. else {
  51162. t1 = t1.get$span(t1);
  51163. t1 = t1.get$sourceUrl(t1);
  51164. t2 = $.$get$context();
  51165. t1.toString;
  51166. t1 = t2.prettyUri$1(t1);
  51167. }
  51168. return t1;
  51169. },
  51170. $isModule0: 1,
  51171. get$upstream() {
  51172. return this.upstream;
  51173. },
  51174. get$variables() {
  51175. return this.variables;
  51176. },
  51177. get$variableNodes() {
  51178. return this.variableNodes;
  51179. },
  51180. get$functions(receiver) {
  51181. return this.functions;
  51182. },
  51183. get$mixins() {
  51184. return this.mixins;
  51185. },
  51186. get$extensionStore() {
  51187. return this.extensionStore;
  51188. },
  51189. get$css(receiver) {
  51190. return this.css;
  51191. },
  51192. get$preModuleComments() {
  51193. return this.preModuleComments;
  51194. },
  51195. get$transitivelyContainsCss() {
  51196. return this.transitivelyContainsCss;
  51197. },
  51198. get$transitivelyContainsExtensions() {
  51199. return this.transitivelyContainsExtensions;
  51200. }
  51201. };
  51202. A._EnvironmentModule__EnvironmentModule_closure.prototype = {
  51203. call$1(module) {
  51204. return module.get$variables();
  51205. },
  51206. $signature: 328
  51207. };
  51208. A._EnvironmentModule__EnvironmentModule_closure0.prototype = {
  51209. call$1(module) {
  51210. return module.get$variableNodes();
  51211. },
  51212. $signature: 334
  51213. };
  51214. A._EnvironmentModule__EnvironmentModule_closure1.prototype = {
  51215. call$1(module) {
  51216. return module.get$functions(module);
  51217. },
  51218. $signature: 150
  51219. };
  51220. A._EnvironmentModule__EnvironmentModule_closure2.prototype = {
  51221. call$1(module) {
  51222. return module.get$mixins();
  51223. },
  51224. $signature: 150
  51225. };
  51226. A._EnvironmentModule__EnvironmentModule_closure3.prototype = {
  51227. call$1(module) {
  51228. return module.get$transitivelyContainsCss();
  51229. },
  51230. $signature: 117
  51231. };
  51232. A._EnvironmentModule__EnvironmentModule_closure4.prototype = {
  51233. call$1(module) {
  51234. return module.get$transitivelyContainsExtensions();
  51235. },
  51236. $signature: 117
  51237. };
  51238. A.SassException.prototype = {
  51239. get$trace(_) {
  51240. return A.Trace$(A._setArrayType([A.frameForSpan(A.SourceSpanException.prototype.get$span.call(this, 0), "root stylesheet", null)], type$.JSArray_Frame), null);
  51241. },
  51242. get$span(_) {
  51243. return A.SourceSpanException.prototype.get$span.call(this, 0);
  51244. },
  51245. withAdditionalSpan$2(span, label) {
  51246. return A.MultiSpanSassException$(this._span_exception$_message, A.SourceSpanException.prototype.get$span.call(this, 0), "", A.LinkedHashMap_LinkedHashMap$_literal([span, label], type$.FileSpan, type$.String), this.loadedUrls);
  51247. },
  51248. withTrace$1(trace) {
  51249. var t1 = A.SourceSpanException.prototype.get$span.call(this, 0),
  51250. t2 = A.Set_Set$unmodifiable(this.loadedUrls, type$.Uri);
  51251. return new A.SassRuntimeException(trace, t2, this._span_exception$_message, t1);
  51252. },
  51253. withLoadedUrls$1(loadedUrls) {
  51254. var t1 = A.SourceSpanException.prototype.get$span.call(this, 0),
  51255. t2 = A.Set_Set$unmodifiable(loadedUrls, type$.Uri);
  51256. return new A.SassException(t2, this._span_exception$_message, t1);
  51257. },
  51258. toString$1$color(_, color) {
  51259. var t2, _i, frame, t3, _this = this,
  51260. buffer = new A.StringBuffer(""),
  51261. t1 = "" + ("Error: " + _this._span_exception$_message + "\n");
  51262. buffer._contents = t1;
  51263. buffer._contents = t1 + A.SourceSpanException.prototype.get$span.call(_this, 0).highlight$1$color(color);
  51264. for (t1 = _this.get$trace(_this).toString$0(0).split("\n"), t2 = t1.length, _i = 0; _i < t2; ++_i) {
  51265. frame = t1[_i];
  51266. if (J.get$length$asx(frame) === 0)
  51267. continue;
  51268. t3 = buffer._contents += "\n";
  51269. buffer._contents = t3 + (" " + A.S(frame));
  51270. }
  51271. t1 = buffer._contents;
  51272. return t1.charCodeAt(0) == 0 ? t1 : t1;
  51273. },
  51274. toString$0(_) {
  51275. return this.toString$1$color(0, null);
  51276. },
  51277. toCssString$0() {
  51278. var commentMessage, stringMessage, rune,
  51279. t1 = $._glyphs,
  51280. t2 = $._glyphs = B.C_AsciiGlyphSet,
  51281. t3 = this.toString$1$color(0, false);
  51282. t3 = A.stringReplaceAllUnchecked(t3, "*/", "*\u2215");
  51283. commentMessage = A.stringReplaceAllUnchecked(t3, "\r\n", "\n");
  51284. $._glyphs = t1 === B.C_AsciiGlyphSet ? t2 : B.C_UnicodeGlyphSet;
  51285. stringMessage = new A.StringBuffer("");
  51286. for (t1 = new A.RuneIterator(A.serializeValue(new A.SassString(this.toString$1$color(0, false), true), true, true)); t1.moveNext$0();) {
  51287. rune = t1._currentCodePoint;
  51288. if (rune > 127) {
  51289. t2 = A.Primitives_stringFromCharCode(92);
  51290. stringMessage._contents += t2;
  51291. t2 = B.JSInt_methods.toRadixString$1(rune, 16);
  51292. stringMessage._contents += t2;
  51293. t2 = A.Primitives_stringFromCharCode(32);
  51294. stringMessage._contents += t2;
  51295. } else {
  51296. t2 = A.Primitives_stringFromCharCode(rune);
  51297. stringMessage._contents += t2;
  51298. }
  51299. }
  51300. return "/* " + B.JSArray_methods.join$1(A._setArrayType(commentMessage.split("\n"), type$.JSArray_String), "\n * ") + ' */\n\nbody::before {\n font-family: "Source Code Pro", "SF Mono", Monaco, Inconsolata, "Fira Mono",\n "Droid Sans Mono", monospace, monospace;\n white-space: pre;\n display: block;\n padding: 1em;\n margin-bottom: 1em;\n border-bottom: 2px solid black;\n content: ' + stringMessage.toString$0(0) + ";\n}";
  51301. }
  51302. };
  51303. A.MultiSpanSassException.prototype = {
  51304. withAdditionalSpan$2(span, label) {
  51305. var _this = this,
  51306. t1 = A.SourceSpanException.prototype.get$span.call(_this, 0),
  51307. t2 = A.LinkedHashMap_LinkedHashMap$of(_this.secondarySpans, type$.FileSpan, type$.String);
  51308. t2.$indexSet(0, span, label);
  51309. return A.MultiSpanSassException$(_this._span_exception$_message, t1, _this.primaryLabel, t2, _this.loadedUrls);
  51310. },
  51311. withTrace$1(trace) {
  51312. var _this = this;
  51313. return A.MultiSpanSassRuntimeException$(_this._span_exception$_message, A.SourceSpanException.prototype.get$span.call(_this, 0), _this.primaryLabel, _this.secondarySpans, trace, _this.loadedUrls);
  51314. },
  51315. withLoadedUrls$1(loadedUrls) {
  51316. var _this = this;
  51317. return A.MultiSpanSassException$(_this._span_exception$_message, A.SourceSpanException.prototype.get$span.call(_this, 0), _this.primaryLabel, _this.secondarySpans, loadedUrls);
  51318. },
  51319. toString$1$color(_, color) {
  51320. var t1, t2, _i, frame, t3, _this = this,
  51321. useColor = color === true,
  51322. buffer = new A.StringBuffer("Error: " + _this._span_exception$_message + "\n");
  51323. A.NullableExtension_andThen(A.Highlighter$multiple(A.SourceSpanException.prototype.get$span.call(_this, 0), _this.primaryLabel, _this.secondarySpans, useColor, null, null).highlight$0(), buffer.get$write(buffer));
  51324. for (t1 = _this.get$trace(_this).toString$0(0).split("\n"), t2 = t1.length, _i = 0; _i < t2; ++_i) {
  51325. frame = t1[_i];
  51326. if (J.get$length$asx(frame) === 0)
  51327. continue;
  51328. buffer._contents += "\n";
  51329. t3 = " " + A.S(frame);
  51330. buffer._contents += t3;
  51331. }
  51332. t1 = buffer._contents;
  51333. return t1.charCodeAt(0) == 0 ? t1 : t1;
  51334. },
  51335. toString$0(_) {
  51336. return this.toString$1$color(0, null);
  51337. },
  51338. get$primaryLabel() {
  51339. return this.primaryLabel;
  51340. },
  51341. get$secondarySpans() {
  51342. return this.secondarySpans;
  51343. }
  51344. };
  51345. A.SassRuntimeException.prototype = {
  51346. withAdditionalSpan$2(span, label) {
  51347. var _this = this;
  51348. return A.MultiSpanSassRuntimeException$(_this._span_exception$_message, A.SourceSpanException.prototype.get$span.call(_this, 0), "", A.LinkedHashMap_LinkedHashMap$_literal([span, label], type$.FileSpan, type$.String), _this.trace, _this.loadedUrls);
  51349. },
  51350. withLoadedUrls$1(loadedUrls) {
  51351. var t1 = A.SourceSpanException.prototype.get$span.call(this, 0),
  51352. t2 = A.Set_Set$unmodifiable(loadedUrls, type$.Uri);
  51353. return new A.SassRuntimeException(this.trace, t2, this._span_exception$_message, t1);
  51354. },
  51355. get$trace(receiver) {
  51356. return this.trace;
  51357. }
  51358. };
  51359. A.MultiSpanSassRuntimeException.prototype = {
  51360. withAdditionalSpan$2(span, label) {
  51361. var _this = this,
  51362. t1 = A.SourceSpanException.prototype.get$span.call(_this, 0),
  51363. t2 = A.LinkedHashMap_LinkedHashMap$of(_this.secondarySpans, type$.FileSpan, type$.String);
  51364. t2.$indexSet(0, span, label);
  51365. return A.MultiSpanSassRuntimeException$(_this._span_exception$_message, t1, _this.primaryLabel, t2, _this.trace, _this.loadedUrls);
  51366. },
  51367. withLoadedUrls$1(loadedUrls) {
  51368. var _this = this;
  51369. return A.MultiSpanSassRuntimeException$(_this._span_exception$_message, A.SourceSpanException.prototype.get$span.call(_this, 0), _this.primaryLabel, _this.secondarySpans, _this.trace, loadedUrls);
  51370. },
  51371. $isSassRuntimeException: 1,
  51372. get$trace(receiver) {
  51373. return this.trace;
  51374. }
  51375. };
  51376. A.SassFormatException.prototype = {
  51377. get$source() {
  51378. var t1 = A.SourceSpanException.prototype.get$span.call(this, 0);
  51379. return A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1.get$file(t1)._decodedChars, 0, null), 0, null);
  51380. },
  51381. withAdditionalSpan$2(span, label) {
  51382. return A.MultiSpanSassFormatException$(this._span_exception$_message, A.SourceSpanException.prototype.get$span.call(this, 0), "", A.LinkedHashMap_LinkedHashMap$_literal([span, label], type$.FileSpan, type$.String), this.loadedUrls);
  51383. },
  51384. withLoadedUrls$1(loadedUrls) {
  51385. var t1 = A.SourceSpanException.prototype.get$span.call(this, 0),
  51386. t2 = A.Set_Set$unmodifiable(loadedUrls, type$.Uri);
  51387. return new A.SassFormatException(t2, this._span_exception$_message, t1);
  51388. },
  51389. $isFormatException: 1,
  51390. $isSourceSpanFormatException: 1
  51391. };
  51392. A.MultiSpanSassFormatException.prototype = {
  51393. get$source() {
  51394. var t1 = A.SourceSpanException.prototype.get$span.call(this, 0);
  51395. return A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1.get$file(t1)._decodedChars, 0, null), 0, null);
  51396. },
  51397. withAdditionalSpan$2(span, label) {
  51398. var _this = this,
  51399. t1 = A.SourceSpanException.prototype.get$span.call(_this, 0),
  51400. t2 = A.LinkedHashMap_LinkedHashMap$of(_this.secondarySpans, type$.FileSpan, type$.String);
  51401. t2.$indexSet(0, span, label);
  51402. return A.MultiSpanSassFormatException$(_this._span_exception$_message, t1, _this.primaryLabel, t2, _this.loadedUrls);
  51403. },
  51404. withLoadedUrls$1(loadedUrls) {
  51405. var _this = this;
  51406. return A.MultiSpanSassFormatException$(_this._span_exception$_message, A.SourceSpanException.prototype.get$span.call(_this, 0), _this.primaryLabel, _this.secondarySpans, loadedUrls);
  51407. },
  51408. $isFormatException: 1,
  51409. $isSassFormatException: 1,
  51410. $isSourceSpanFormatException: 1,
  51411. $isMultiSourceSpanFormatException: 1
  51412. };
  51413. A.SassScriptException.prototype = {
  51414. withSpan$1(span) {
  51415. return new A.SassException(B.Set_empty, this.message, span);
  51416. },
  51417. toString$0(_) {
  51418. return this.message + string$.x0a_BUG_;
  51419. },
  51420. get$message(receiver) {
  51421. return this.message;
  51422. }
  51423. };
  51424. A.MultiSpanSassScriptException.prototype = {
  51425. withSpan$1(span) {
  51426. return A.MultiSpanSassException$(this.message, span, this.primaryLabel, this.secondarySpans, null);
  51427. }
  51428. };
  51429. A._writeSourceMap_closure.prototype = {
  51430. call$1(url) {
  51431. return this.options.sourceMapUrl$2(0, A.Uri_parse(url), this.destination).toString$0(0);
  51432. },
  51433. $signature: 6
  51434. };
  51435. A.ExecutableOptions.prototype = {
  51436. get$interactive() {
  51437. var result, _this = this,
  51438. value = _this.__ExecutableOptions_interactive_FI;
  51439. if (value === $) {
  51440. result = new A.ExecutableOptions_interactive_closure(_this).call$0();
  51441. _this.__ExecutableOptions_interactive_FI !== $ && A.throwUnnamedLateFieldADI();
  51442. _this.__ExecutableOptions_interactive_FI = result;
  51443. value = result;
  51444. }
  51445. return value;
  51446. },
  51447. get$color() {
  51448. var t1 = this._options;
  51449. return t1.wasParsed$1("color") ? A._asBool(t1.$index(0, "color")) : A.hasTerminal();
  51450. },
  51451. get$pkgImporters() {
  51452. var t2, t3, t4, _null = null,
  51453. t1 = A._setArrayType([], type$.JSArray_Importer);
  51454. for (t2 = J.get$iterator$ax(type$.List_String._as(this._options.$index(0, "pkg-importer"))); t2.moveNext$0();) {
  51455. t2.get$current(t2);
  51456. t3 = new A.NodePackageImporter();
  51457. t4 = self.process;
  51458. if (t4 == null)
  51459. t4 = _null;
  51460. else {
  51461. t4 = J.get$release$x(t4);
  51462. t4 = t4 == null ? _null : J.get$name$x(t4);
  51463. }
  51464. if (!J.$eq$(t4, "node") && self.document != null && typeof self.document.querySelector == "function")
  51465. A.throwExpression(string$.The_No);
  51466. t3.__NodePackageImporter__entryPointDirectory_F = $.$get$context().absolute$15(".", _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null);
  51467. t1.push(t3);
  51468. }
  51469. return t1;
  51470. },
  51471. get$emitErrorCss() {
  51472. var t1 = A._asBoolQ(this._options.$index(0, "error-css"));
  51473. if (t1 == null) {
  51474. this._ensureSources$0();
  51475. t1 = this._sourcesToDestinations;
  51476. t1 = t1.get$values(t1).any$1(0, new A.ExecutableOptions_emitErrorCss_closure());
  51477. }
  51478. return t1;
  51479. },
  51480. _ensureSources$0() {
  51481. var t1, stdin, t2, t3, $directories, t4, t5, t6, colonArgs, positionalArgs, t7, t8, t9, message, target, source, destination, seen, _0_0, _this = this, _null = null,
  51482. _s18_ = 'Duplicate source "';
  51483. if (_this._sourcesToDestinations != null)
  51484. return;
  51485. t1 = _this._options;
  51486. stdin = A._asBool(t1.$index(0, "stdin"));
  51487. t2 = t1.rest;
  51488. if (t2.get$length(0) === 0 && !stdin)
  51489. A.ExecutableOptions__fail("Compile Sass to CSS.");
  51490. t3 = type$.String;
  51491. $directories = A.LinkedHashSet_LinkedHashSet$_empty(t3);
  51492. for (t4 = t2.$ti, t5 = t4._eval$1("ListIterator<ListBase.E>"), t6 = new A.ListIterator(t2, t2.get$length(0), t5), t4 = t4._eval$1("ListBase.E"), colonArgs = false, positionalArgs = false; t6.moveNext$0();) {
  51493. t7 = t6.__internal$_current;
  51494. if (t7 == null)
  51495. t7 = t4._as(t7);
  51496. t8 = t7.length;
  51497. if (t8 === 0)
  51498. A.ExecutableOptions__fail('Invalid argument "".');
  51499. if (A.stringContainsUnchecked(t7, ":", 0)) {
  51500. if (t8 > 2) {
  51501. t9 = t7.charCodeAt(0);
  51502. if (!(t9 >= 97 && t9 <= 122))
  51503. t9 = t9 >= 65 && t9 <= 90;
  51504. else
  51505. t9 = true;
  51506. t9 = t9 && t7.charCodeAt(1) === 58;
  51507. } else
  51508. t9 = false;
  51509. if (t9) {
  51510. if (2 > t8)
  51511. A.throwExpression(A.RangeError$range(2, 0, t8, _null, _null));
  51512. t8 = A.stringContainsUnchecked(t7, ":", 2);
  51513. } else
  51514. t8 = true;
  51515. } else
  51516. t8 = false;
  51517. if (t8)
  51518. colonArgs = true;
  51519. else if (A.dirExists(t7))
  51520. $directories.add$1(0, t7);
  51521. else
  51522. positionalArgs = true;
  51523. }
  51524. if (positionalArgs || t2.get$length(0) === 0) {
  51525. if (colonArgs)
  51526. A.ExecutableOptions__fail('Positional and ":" arguments may not both be used.');
  51527. else if (stdin) {
  51528. if (J.get$length$asx(t2._collection$_source) > 1)
  51529. A.ExecutableOptions__fail("Only one argument is allowed with --stdin.");
  51530. else if (A._asBool(t1.$index(0, "update")))
  51531. A.ExecutableOptions__fail("--update is not allowed with --stdin.");
  51532. else if (A._asBool(t1.$index(0, "watch")))
  51533. A.ExecutableOptions__fail("--watch is not allowed with --stdin.");
  51534. t1 = t2.get$length(0) === 0 ? _null : t2.get$first(t2);
  51535. t2 = type$.dynamic;
  51536. t3 = type$.nullable_String;
  51537. _this._sourcesToDestinations = A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_literal([null, t1], t2, t2), t3, t3);
  51538. } else {
  51539. t3 = t2._collection$_source;
  51540. t4 = J.getInterceptor$asx(t3);
  51541. if (t4.get$length(t3) > 2)
  51542. A.ExecutableOptions__fail("Only two positional args may be passed.");
  51543. else if ($directories._collection$_length !== 0) {
  51544. message = 'Directory "' + A.S($directories.get$first(0)) + '" may not be a positional arg.';
  51545. target = t2.get$last(t2);
  51546. A.ExecutableOptions__fail(J.$eq$($directories.get$first(0), t2.get$first(t2)) && !A.fileExists(target) ? message + ('\nTo compile all CSS in "' + A.S($directories.get$first(0)) + '" to "' + target + '", use `sass ' + A.S($directories.get$first(0)) + ":" + target + "`.") : message);
  51547. } else {
  51548. source = J.$eq$(t2.get$first(t2), "-") ? _null : t2.get$first(t2);
  51549. destination = t4.get$length(t3) === 1 ? _null : t2.get$last(t2);
  51550. if (destination == null)
  51551. if (A._asBool(t1.$index(0, "update")))
  51552. A.ExecutableOptions__fail("--update is not allowed when printing to stdout.");
  51553. else if (A._asBool(t1.$index(0, "watch")))
  51554. A.ExecutableOptions__fail("--watch is not allowed when printing to stdout.");
  51555. t1 = A.PathMap__create(_null, type$.nullable_String);
  51556. t1.$indexSet(0, source, destination);
  51557. _this._sourcesToDestinations = new A.UnmodifiableMapView(new A.PathMap(t1, type$.PathMap_nullable_String), type$.UnmodifiableMapView_of_nullable_String_and_nullable_String);
  51558. }
  51559. }
  51560. _this.__ExecutableOptions__sourceDirectoriesToDestinations_F !== $ && A.throwUnnamedLateFieldAI();
  51561. _this.__ExecutableOptions__sourceDirectoriesToDestinations_F = B.Map_empty;
  51562. return;
  51563. }
  51564. if (stdin)
  51565. A.ExecutableOptions__fail('--stdin may not be used with ":" arguments.');
  51566. seen = A.LinkedHashSet_LinkedHashSet$_empty(t3);
  51567. t1 = A.PathMap__create(_null, t3);
  51568. t6 = type$.PathMap_String;
  51569. t3 = A.PathMap__create(_null, t3);
  51570. for (t2 = new A.ListIterator(t2, t2.get$length(0), t5); t2.moveNext$0();) {
  51571. t5 = t2.__internal$_current;
  51572. if (t5 == null)
  51573. t5 = t4._as(t5);
  51574. if ($directories.contains$1(0, t5)) {
  51575. if (!seen.add$1(0, t5))
  51576. A.ExecutableOptions__fail(_s18_ + t5 + '".');
  51577. t3.$indexSet(0, t5, t5);
  51578. t1.addAll$1(0, _this._listSourceDirectory$2(t5, t5));
  51579. continue;
  51580. }
  51581. _0_0 = _this._splitSourceAndDestination$1(t5);
  51582. source = _0_0._0;
  51583. destination = _0_0._1;
  51584. if (!seen.add$1(0, source))
  51585. A.ExecutableOptions__fail(_s18_ + source + '".');
  51586. if (source === "-")
  51587. t1.$indexSet(0, _null, destination);
  51588. else if (A.dirExists(source)) {
  51589. t3.$indexSet(0, source, destination);
  51590. t1.addAll$1(0, _this._listSourceDirectory$2(source, destination));
  51591. } else
  51592. t1.$indexSet(0, source, destination);
  51593. }
  51594. _this._sourcesToDestinations = new A.UnmodifiableMapView(new A.PathMap(t1, t6), type$.UnmodifiableMapView_of_nullable_String_and_nullable_String);
  51595. _this.__ExecutableOptions__sourceDirectoriesToDestinations_F !== $ && A.throwUnnamedLateFieldAI();
  51596. _this.__ExecutableOptions__sourceDirectoriesToDestinations_F = new A.UnmodifiableMapView(new A.PathMap(t3, t6), type$.UnmodifiableMapView_of_nullable_String_and_String);
  51597. },
  51598. _splitSourceAndDestination$1(argument) {
  51599. var t1, i, t2, t3, nextColon;
  51600. for (t1 = argument.length, i = 0; i < t1; ++i) {
  51601. t2 = false;
  51602. if (i === 1) {
  51603. t3 = i - 1;
  51604. if (t1 > t3 + 2) {
  51605. t2 = argument.charCodeAt(t3);
  51606. if (!(t2 >= 97 && t2 <= 122))
  51607. t2 = t2 >= 65 && t2 <= 90;
  51608. else
  51609. t2 = true;
  51610. t2 = t2 && argument.charCodeAt(t3 + 1) === 58;
  51611. }
  51612. }
  51613. if (t2)
  51614. continue;
  51615. if (argument.charCodeAt(i) === 58) {
  51616. t2 = i + 1;
  51617. nextColon = B.JSString_methods.indexOf$2(argument, ":", t2);
  51618. t3 = false;
  51619. if (nextColon === i + 2)
  51620. if (t1 > t2 + 2) {
  51621. t1 = argument.charCodeAt(t2);
  51622. if (!(t1 >= 97 && t1 <= 122))
  51623. t1 = t1 >= 65 && t1 <= 90;
  51624. else
  51625. t1 = true;
  51626. t1 = t1 && argument.charCodeAt(t2 + 1) === 58;
  51627. } else
  51628. t1 = t3;
  51629. else
  51630. t1 = t3;
  51631. if ((t1 ? B.JSString_methods.indexOf$2(argument, ":", nextColon + 1) : nextColon) !== -1)
  51632. A.ExecutableOptions__fail('"' + argument + '" may only contain one ":".');
  51633. return new A._Record_2(B.JSString_methods.substring$2(argument, 0, i), B.JSString_methods.substring$1(argument, t2));
  51634. }
  51635. }
  51636. throw A.wrapException(A.ArgumentError$('Expected "' + argument + '" to contain a colon.', null));
  51637. },
  51638. _listSourceDirectory$2(source, destination) {
  51639. var t2, t3, t4, t5,
  51640. t1 = type$.String;
  51641. t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  51642. for (t2 = J.get$iterator$ax(A.listDir(source, true)), t3 = source === destination; t2.moveNext$0();) {
  51643. t4 = t2.get$current(t2);
  51644. if (this._isEntrypoint$1(t4))
  51645. t5 = !(t3 && A.ParsedPath_ParsedPath$parse(t4, $.$get$context().style)._splitExtension$1(1)[1] === ".css");
  51646. else
  51647. t5 = false;
  51648. if (t5) {
  51649. t5 = $.$get$context();
  51650. t1.$indexSet(0, t4, A.join(destination, t5.withoutExtension$1(t5.relative$2$from(t4, source)) + ".css", null));
  51651. }
  51652. }
  51653. return t1;
  51654. },
  51655. _isEntrypoint$1(path) {
  51656. var extension,
  51657. t1 = $.$get$context().style;
  51658. if (B.JSString_methods.startsWith$1(A.ParsedPath_ParsedPath$parse(path, t1).get$basename(), "_"))
  51659. return false;
  51660. extension = A.ParsedPath_ParsedPath$parse(path, t1)._splitExtension$1(1)[1];
  51661. return extension === ".scss" || extension === ".sass" || extension === ".css";
  51662. },
  51663. get$_writeToStdout() {
  51664. var t1, _this = this;
  51665. _this._ensureSources$0();
  51666. t1 = _this._sourcesToDestinations;
  51667. if (t1.get$length(t1) === 1) {
  51668. _this._ensureSources$0();
  51669. t1 = _this._sourcesToDestinations;
  51670. t1 = t1.get$values(t1);
  51671. t1 = t1.get$single(t1) == null;
  51672. } else
  51673. t1 = false;
  51674. return t1;
  51675. },
  51676. get$emitSourceMap() {
  51677. var _this = this,
  51678. _s10_ = "source-map",
  51679. _s15_ = "source-map-urls",
  51680. _s13_ = "embed-sources",
  51681. _s16_ = "embed-source-map",
  51682. t1 = _this._options;
  51683. if (!A._asBool(t1.$index(0, _s10_)))
  51684. if (t1.wasParsed$1(_s15_))
  51685. A.ExecutableOptions__fail("--source-map-urls isn't allowed with --no-source-map.");
  51686. else if (t1.wasParsed$1(_s13_))
  51687. A.ExecutableOptions__fail("--embed-sources isn't allowed with --no-source-map.");
  51688. else if (t1.wasParsed$1(_s16_))
  51689. A.ExecutableOptions__fail("--embed-source-map isn't allowed with --no-source-map.");
  51690. if (!_this.get$_writeToStdout())
  51691. return A._asBool(t1.$index(0, _s10_));
  51692. if (J.$eq$(_this._ifParsed$1(_s15_), "relative"))
  51693. A.ExecutableOptions__fail("--source-map-urls=relative isn't allowed when printing to stdout.");
  51694. if (A._asBool(t1.$index(0, _s16_)))
  51695. return A._asBool(t1.$index(0, _s10_));
  51696. else if (J.$eq$(_this._ifParsed$1(_s10_), true))
  51697. A.ExecutableOptions__fail("When printing to stdout, --source-map requires --embed-source-map.");
  51698. else if (t1.wasParsed$1(_s15_))
  51699. A.ExecutableOptions__fail("When printing to stdout, --source-map-urls requires --embed-source-map.");
  51700. else if (A._asBool(t1.$index(0, _s13_)))
  51701. A.ExecutableOptions__fail("When printing to stdout, --embed-sources requires --embed-source-map.");
  51702. else
  51703. return false;
  51704. },
  51705. sourceMapUrl$2(_, url, destination) {
  51706. var t1, path, t2, _null = null;
  51707. if (url.get$scheme().length !== 0 && url.get$scheme() !== "file")
  51708. return url;
  51709. t1 = $.$get$context();
  51710. path = t1.style.pathFromUri$1(A._parseUri(url));
  51711. if (J.$eq$(this._options.$index(0, "source-map-urls"), "relative") && !this.get$_writeToStdout()) {
  51712. destination.toString;
  51713. t2 = t1.relative$2$from(path, t1.dirname$1(destination));
  51714. } else
  51715. t2 = A.absolute(path, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null);
  51716. return t1.toUri$1(t2);
  51717. },
  51718. get$silenceDeprecations(_) {
  51719. var t2, t3, t4,
  51720. t1 = A.LinkedHashSet_LinkedHashSet$_empty(type$.Deprecation);
  51721. for (t2 = J.get$iterator$ax(type$.List_String._as(this._options.$index(0, "silence-deprecation"))); t2.moveNext$0();) {
  51722. t3 = t2.get$current(t2);
  51723. t4 = A.Deprecation_fromId(t3);
  51724. t1.add$1(0, t4 == null ? A.ExecutableOptions__fail('Invalid deprecation "' + t3 + '".') : t4);
  51725. }
  51726. return t1;
  51727. },
  51728. get$fatalDeprecations(_) {
  51729. var t1 = this._fatalDeprecations;
  51730. return t1 == null ? this._fatalDeprecations = new A.ExecutableOptions_fatalDeprecations_closure(this).call$0() : t1;
  51731. },
  51732. get$futureDeprecations(_) {
  51733. var t2, t3, t4,
  51734. t1 = A.LinkedHashSet_LinkedHashSet$_empty(type$.Deprecation);
  51735. for (t2 = J.get$iterator$ax(type$.List_String._as(this._options.$index(0, "future-deprecation"))); t2.moveNext$0();) {
  51736. t3 = t2.get$current(t2);
  51737. t4 = A.Deprecation_fromId(t3);
  51738. t1.add$1(0, t4 == null ? A.ExecutableOptions__fail('Invalid deprecation "' + t3 + '".') : t4);
  51739. }
  51740. return t1;
  51741. },
  51742. _ifParsed$1($name) {
  51743. var t1 = this._options;
  51744. return t1.wasParsed$1($name) ? t1.$index(0, $name) : null;
  51745. }
  51746. };
  51747. A.ExecutableOptions__parser_closure.prototype = {
  51748. call$0() {
  51749. var t1 = type$.String,
  51750. t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Option),
  51751. t3 = A._setArrayType([], type$.JSArray_Object),
  51752. parser = new A.ArgParser(t2, A.LinkedHashMap_LinkedHashMap$_empty(t1, t1), new A.UnmodifiableMapView(t2, type$.UnmodifiableMapView_String_Option), new A.UnmodifiableMapView(A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.ArgParser), type$.UnmodifiableMapView_String_ArgParser), t3, true, null);
  51753. parser.addOption$2$hide("precision", true);
  51754. parser.addFlag$2$hide("async", true);
  51755. t3.push(A.ExecutableOptions__separator("Input and Output"));
  51756. parser.addFlag$2$help("stdin", "Read the stylesheet from stdin.");
  51757. parser.addFlag$2$help("indented", "Use the indented syntax for input from stdin.");
  51758. parser.addMultiOption$5$abbr$help$splitCommas$valueHelp("load-path", "I", "A path to use when resolving imports.\nMay be passed multiple times.", false, "PATH");
  51759. t2 = type$.JSArray_String;
  51760. parser.addMultiOption$6$abbr$allowed$allowedHelp$help$valueHelp("pkg-importer", "p", A._setArrayType(["node"], t2), A.LinkedHashMap_LinkedHashMap$_literal(["node", "Load files like Node.js package resolution."], t1, t1), "Built-in importer(s) to use for pkg: URLs.", "TYPE");
  51761. parser.addOption$6$abbr$allowed$defaultsTo$help$valueHelp("style", "s", A._setArrayType(["expanded", "compressed"], t2), "expanded", "Output style.", "NAME");
  51762. parser.addFlag$3$defaultsTo$help("charset", true, "Emit a @charset or BOM for CSS with non-ASCII characters.");
  51763. parser.addFlag$3$defaultsTo$help("error-css", null, "When an error occurs, emit a stylesheet describing it.\nDefaults to true when compiling to a file.");
  51764. parser.addFlag$3$help$negatable("update", "Only compile out-of-date stylesheets.", false);
  51765. t3.push(A.ExecutableOptions__separator("Source Maps"));
  51766. parser.addFlag$3$defaultsTo$help("source-map", true, "Whether to generate source maps.");
  51767. parser.addOption$4$allowed$defaultsTo$help("source-map-urls", A._setArrayType(["relative", "absolute"], t2), "relative", "How to link from source maps to source files.");
  51768. parser.addFlag$3$defaultsTo$help("embed-sources", false, "Embed source file contents in source maps.");
  51769. parser.addFlag$3$defaultsTo$help("embed-source-map", false, "Embed source map contents in CSS.");
  51770. t3.push(A.ExecutableOptions__separator("Warnings"));
  51771. parser.addFlag$3$abbr$help("quiet", "q", "Don't print warnings.");
  51772. parser.addFlag$2$help("quiet-deps", "Don't print compiler warnings from dependencies.\nStylesheets imported through load paths count as dependencies.");
  51773. parser.addFlag$2$help("verbose", "Print all deprecation warnings even when they're repetitive.");
  51774. parser.addMultiOption$2$help("fatal-deprecation", "Deprecations to treat as errors. You may also pass a Sass\nversion to include any behavior deprecated in or before it.\nSee https://sass-lang.com/documentation/breaking-changes for \na complete list.");
  51775. parser.addMultiOption$2$help("silence-deprecation", "Deprecations to ignore.");
  51776. parser.addMultiOption$2$help("future-deprecation", "Opt in to a deprecation early.");
  51777. t3.push(A.ExecutableOptions__separator("Other"));
  51778. parser.addFlag$4$abbr$help$negatable("watch", "w", "Watch stylesheets and recompile when they change.", false);
  51779. parser.addFlag$2$help("poll", "Manually check for changes rather than using a native watcher.\nOnly valid with --watch.");
  51780. parser.addFlag$2$help("stop-on-error", "Don't compile more files once an error is encountered.");
  51781. parser.addFlag$4$abbr$help$negatable("interactive", "i", "Run an interactive SassScript shell.", false);
  51782. parser.addFlag$3$abbr$help("color", "c", "Whether to use terminal colors for messages.");
  51783. parser.addFlag$2$help("unicode", "Whether to use Unicode characters for messages.");
  51784. parser.addFlag$2$help("trace", "Print full Dart stack traces for exceptions.");
  51785. parser.addFlag$4$abbr$help$negatable("help", "h", "Print this usage information.", false);
  51786. parser.addFlag$3$help$negatable("version", "Print the version of Dart Sass.", false);
  51787. return parser;
  51788. },
  51789. $signature: 344
  51790. };
  51791. A.ExecutableOptions_interactive_closure.prototype = {
  51792. call$0() {
  51793. var _0_0,
  51794. t1 = this.$this._options;
  51795. if (!A._asBool(t1.$index(0, "interactive")))
  51796. return false;
  51797. _0_0 = A.IterableExtension_firstWhereOrNull(A._setArrayType(["stdin", "indented", "style", "source-map", "source-map-urls", "embed-sources", "embed-source-map", "update", "watch"], type$.JSArray_String), t1.get$wasParsed());
  51798. if (_0_0 != null)
  51799. throw A.wrapException(A.UsageException$("--" + _0_0 + " isn't allowed with --interactive."));
  51800. return true;
  51801. },
  51802. $signature: 24
  51803. };
  51804. A.ExecutableOptions_emitErrorCss_closure.prototype = {
  51805. call$1(destination) {
  51806. return destination != null;
  51807. },
  51808. $signature: 229
  51809. };
  51810. A.ExecutableOptions_fatalDeprecations_closure.prototype = {
  51811. call$0() {
  51812. var id, argVersion, sassVersion, t1, t2, _0_0, exception,
  51813. deprecations = A.LinkedHashSet_LinkedHashSet$_empty(type$.Deprecation);
  51814. for (t1 = J.get$iterator$ax(type$.List_String._as(this.$this._options.$index(0, "fatal-deprecation"))), t2 = type$.FormatException; t1.moveNext$0();) {
  51815. id = t1.get$current(t1);
  51816. _0_0 = A.Deprecation_fromId(id);
  51817. if (_0_0 != null) {
  51818. J.add$1$ax(deprecations, _0_0);
  51819. continue;
  51820. }
  51821. try {
  51822. argVersion = A.Version_Version$parse(id);
  51823. sassVersion = A.Version_Version$parse("1.80.4");
  51824. if (J.compareTo$1$ns(argVersion, sassVersion) > 0)
  51825. A.ExecutableOptions__fail("Invalid version " + A.S(argVersion) + ". --fatal-deprecation requires a version less than or equal to the current Dart Sass version.");
  51826. J.addAll$1$ax(deprecations, A.Deprecation_forVersion(argVersion));
  51827. } catch (exception) {
  51828. if (t2._is(A.unwrapException(exception)))
  51829. A.ExecutableOptions__fail('Invalid deprecation "' + A.S(id) + '".');
  51830. else
  51831. throw exception;
  51832. }
  51833. }
  51834. return deprecations;
  51835. },
  51836. $signature: 345
  51837. };
  51838. A.UsageException.prototype = {$isException: 1,
  51839. get$message(receiver) {
  51840. return this.message;
  51841. }
  51842. };
  51843. A.repl_warn.prototype = {
  51844. call$1(warning) {
  51845. var _0_1, _0_3, deprecation, t1, _0_2, span, _null = null;
  51846. $label0$0: {
  51847. _0_1 = warning._1;
  51848. _0_3 = _null;
  51849. deprecation = _null;
  51850. t1 = false;
  51851. _0_2 = warning._2;
  51852. _0_3 = warning._0;
  51853. t1 = _0_3 != null;
  51854. if (t1)
  51855. deprecation = _0_3 == null ? type$.Deprecation._as(_0_3) : _0_3;
  51856. span = _0_2;
  51857. if (t1) {
  51858. A.WarnForDeprecation_warnForDeprecation(this.logger, deprecation, _0_1, span, _null);
  51859. break $label0$0;
  51860. }
  51861. t1 = false;
  51862. t1 = _0_3 == null;
  51863. span = _0_2;
  51864. if (t1)
  51865. this.logger.internalWarn$4$deprecation$span$trace(_0_1, _null, span, _null);
  51866. }
  51867. },
  51868. $signature: 351
  51869. };
  51870. A.watch_closure.prototype = {
  51871. call$1(dir) {
  51872. for (; !A.dirExists(dir);)
  51873. dir = $.$get$context().dirname$1(dir);
  51874. return this.dirWatcher.watch$1(0, dir);
  51875. },
  51876. $signature: 360
  51877. };
  51878. A._Watcher.prototype = {
  51879. _delete$1(path) {
  51880. var buffer, t1, exception;
  51881. try {
  51882. A.deleteFile(path);
  51883. buffer = new A.StringBuffer("");
  51884. t1 = this._watch$_options;
  51885. if (t1.get$color())
  51886. buffer._contents += "\x1b[33m";
  51887. buffer._contents += "Deleted " + path + ".";
  51888. if (t1.get$color())
  51889. buffer._contents += "\x1b[0m";
  51890. A.print(buffer);
  51891. } catch (exception) {
  51892. if (!(A.unwrapException(exception) instanceof A.FileSystemException))
  51893. throw exception;
  51894. }
  51895. },
  51896. watch$1(_, watcher) {
  51897. return this.watch$body$_Watcher(0, watcher);
  51898. },
  51899. watch$body$_Watcher(_, watcher) {
  51900. var $async$goto = 0,
  51901. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  51902. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, $event, extension, success, success0, success1, t2, t1;
  51903. var $async$watch$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  51904. if ($async$errorCode === 1) {
  51905. $async$currentError = $async$result;
  51906. $async$goto = $async$handler;
  51907. }
  51908. while (true)
  51909. switch ($async$goto) {
  51910. case 0:
  51911. // Function start
  51912. t1 = watcher._group.__StreamGroup__controller_A;
  51913. t1 === $ && A.throwUnnamedLateFieldNI();
  51914. t1 = new A._StreamIterator(A.checkNotNullable($async$self._debounceEvents$1(new A._ControllerStream(t1, A._instanceType(t1)._eval$1("_ControllerStream<1>"))), "stream", type$.Object));
  51915. $async$handler = 3;
  51916. t2 = $async$self._watch$_options._options;
  51917. case 6:
  51918. // for condition
  51919. $async$goto = 8;
  51920. return A._asyncAwait(t1.moveNext$0(), $async$watch$1);
  51921. case 8:
  51922. // returning from await.
  51923. if (!$async$result) {
  51924. // goto after for
  51925. $async$goto = 7;
  51926. break;
  51927. }
  51928. $event = t1.get$current(0);
  51929. extension = A.ParsedPath_ParsedPath$parse($event.path, $.$get$context().style)._splitExtension$1(1)[1];
  51930. if (!J.$eq$(extension, ".sass") && !J.$eq$(extension, ".scss") && !J.$eq$(extension, ".css")) {
  51931. // goto for condition
  51932. $async$goto = 6;
  51933. break;
  51934. }
  51935. case 9:
  51936. // switch
  51937. switch ($event.type) {
  51938. case B.ChangeType_modify:
  51939. // goto case
  51940. $async$goto = 11;
  51941. break;
  51942. case B.ChangeType_add:
  51943. // goto case
  51944. $async$goto = 12;
  51945. break;
  51946. case B.ChangeType_remove:
  51947. // goto case
  51948. $async$goto = 13;
  51949. break;
  51950. default:
  51951. // goto after switch
  51952. $async$goto = 10;
  51953. break;
  51954. }
  51955. break;
  51956. case 11:
  51957. // case
  51958. $async$goto = 14;
  51959. return A._asyncAwait($async$self._handleModify$1($event.path), $async$watch$1);
  51960. case 14:
  51961. // returning from await.
  51962. success = $async$result;
  51963. if (!success && A._asBool(t2.$index(0, "stop-on-error"))) {
  51964. $async$next = [1];
  51965. // goto finally
  51966. $async$goto = 4;
  51967. break;
  51968. }
  51969. // goto after switch
  51970. $async$goto = 10;
  51971. break;
  51972. case 12:
  51973. // case
  51974. $async$goto = 15;
  51975. return A._asyncAwait($async$self._handleAdd$1($event.path), $async$watch$1);
  51976. case 15:
  51977. // returning from await.
  51978. success0 = $async$result;
  51979. if (!success0 && A._asBool(t2.$index(0, "stop-on-error"))) {
  51980. $async$next = [1];
  51981. // goto finally
  51982. $async$goto = 4;
  51983. break;
  51984. }
  51985. // goto after switch
  51986. $async$goto = 10;
  51987. break;
  51988. case 13:
  51989. // case
  51990. $async$goto = 16;
  51991. return A._asyncAwait($async$self._handleRemove$1($event.path), $async$watch$1);
  51992. case 16:
  51993. // returning from await.
  51994. success1 = $async$result;
  51995. if (!success1 && A._asBool(t2.$index(0, "stop-on-error"))) {
  51996. $async$next = [1];
  51997. // goto finally
  51998. $async$goto = 4;
  51999. break;
  52000. }
  52001. // goto after switch
  52002. $async$goto = 10;
  52003. break;
  52004. case 10:
  52005. // after switch
  52006. // goto for condition
  52007. $async$goto = 6;
  52008. break;
  52009. case 7:
  52010. // after for
  52011. $async$next.push(5);
  52012. // goto finally
  52013. $async$goto = 4;
  52014. break;
  52015. case 3:
  52016. // uncaught
  52017. $async$next = [2];
  52018. case 4:
  52019. // finally
  52020. $async$handler = 2;
  52021. $async$goto = 17;
  52022. return A._asyncAwait(t1.cancel$0(), $async$watch$1);
  52023. case 17:
  52024. // returning from await.
  52025. // goto the next finally handler
  52026. $async$goto = $async$next.pop();
  52027. break;
  52028. case 5:
  52029. // after finally
  52030. case 1:
  52031. // return
  52032. return A._asyncReturn($async$returnValue, $async$completer);
  52033. case 2:
  52034. // rethrow
  52035. return A._asyncRethrow($async$currentError, $async$completer);
  52036. }
  52037. });
  52038. return A._asyncStartSync($async$watch$1, $async$completer);
  52039. },
  52040. _handleModify$1(path) {
  52041. return this._handleModify$body$_Watcher(path);
  52042. },
  52043. _handleModify$body$_Watcher(path) {
  52044. var $async$goto = 0,
  52045. $async$completer = A._makeAsyncAwaitCompleter(type$.bool),
  52046. $async$returnValue, $async$self = this, t2, t0, url, _0_0, t1;
  52047. var $async$_handleModify$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52048. if ($async$errorCode === 1)
  52049. return A._asyncRethrow($async$result, $async$completer);
  52050. while (true)
  52051. switch ($async$goto) {
  52052. case 0:
  52053. // Function start
  52054. t1 = A.isNodeJs() ? self.process : null;
  52055. if (!J.$eq$(t1 == null ? null : J.get$platform$x(t1), "win32")) {
  52056. t1 = A.isNodeJs() ? self.process : null;
  52057. t1 = J.$eq$(t1 == null ? null : J.get$platform$x(t1), "darwin");
  52058. } else
  52059. t1 = true;
  52060. if (t1) {
  52061. t1 = $.$get$context();
  52062. t2 = A._realCasePath(A.absolute(t1.normalize$1(path), null, null, null, null, null, null, null, null, null, null, null, null, null, null));
  52063. t0 = t2;
  52064. t2 = t1;
  52065. t1 = t0;
  52066. } else {
  52067. t1 = $.$get$context();
  52068. t2 = t1.canonicalize$1(0, path);
  52069. t0 = t2;
  52070. t2 = t1;
  52071. t1 = t0;
  52072. }
  52073. url = t2.toUri$1(t1);
  52074. t1 = $async$self._graph;
  52075. _0_0 = t1._nodes.$index(0, url);
  52076. $async$goto = _0_0 != null ? 3 : 5;
  52077. break;
  52078. case 3:
  52079. // then
  52080. t1.reload$1(url);
  52081. $async$goto = 6;
  52082. return A._asyncAwait($async$self._recompileDownstream$1(A._setArrayType([_0_0], type$.JSArray_StylesheetNode)), $async$_handleModify$1);
  52083. case 6:
  52084. // returning from await.
  52085. $async$returnValue = $async$result;
  52086. // goto return
  52087. $async$goto = 1;
  52088. break;
  52089. // goto join
  52090. $async$goto = 4;
  52091. break;
  52092. case 5:
  52093. // else
  52094. $async$returnValue = $async$self._handleAdd$1(path);
  52095. // goto return
  52096. $async$goto = 1;
  52097. break;
  52098. case 4:
  52099. // join
  52100. case 1:
  52101. // return
  52102. return A._asyncReturn($async$returnValue, $async$completer);
  52103. }
  52104. });
  52105. return A._asyncStartSync($async$_handleModify$1, $async$completer);
  52106. },
  52107. _handleAdd$1(path) {
  52108. return this._handleAdd$body$_Watcher(path);
  52109. },
  52110. _handleAdd$body$_Watcher(path) {
  52111. var $async$goto = 0,
  52112. $async$completer = A._makeAsyncAwaitCompleter(type$.bool),
  52113. $async$returnValue, $async$self = this, t1, success, t2, t3, t0, destination;
  52114. var $async$_handleAdd$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52115. if ($async$errorCode === 1)
  52116. return A._asyncRethrow($async$result, $async$completer);
  52117. while (true)
  52118. switch ($async$goto) {
  52119. case 0:
  52120. // Function start
  52121. destination = $async$self._destinationFor$1(path);
  52122. $async$goto = destination != null ? 3 : 5;
  52123. break;
  52124. case 3:
  52125. // then
  52126. t1 = type$.nullable_String;
  52127. $async$goto = 6;
  52128. return A._asyncAwait(A.compileStylesheets($async$self._watch$_options, $async$self._graph, A.LinkedHashMap_LinkedHashMap$_literal([path, destination], t1, t1), true), $async$_handleAdd$1);
  52129. case 6:
  52130. // returning from await.
  52131. success = $async$result;
  52132. // goto join
  52133. $async$goto = 4;
  52134. break;
  52135. case 5:
  52136. // else
  52137. success = true;
  52138. case 4:
  52139. // join
  52140. t1 = $.$get$FilesystemImporter_cwd();
  52141. t2 = A.isNodeJs() ? self.process : null;
  52142. if (!J.$eq$(t2 == null ? null : J.get$platform$x(t2), "win32")) {
  52143. t2 = A.isNodeJs() ? self.process : null;
  52144. t2 = J.$eq$(t2 == null ? null : J.get$platform$x(t2), "darwin");
  52145. } else
  52146. t2 = true;
  52147. if (t2) {
  52148. t2 = $.$get$context();
  52149. t3 = A._realCasePath(A.absolute(t2.normalize$1(path), null, null, null, null, null, null, null, null, null, null, null, null, null, null));
  52150. t0 = t3;
  52151. t3 = t2;
  52152. t2 = t0;
  52153. } else {
  52154. t2 = $.$get$context();
  52155. t3 = t2.canonicalize$1(0, path);
  52156. t0 = t3;
  52157. t3 = t2;
  52158. t2 = t0;
  52159. }
  52160. $async$goto = 7;
  52161. return A._asyncAwait($async$self._recompileDownstream$1($async$self._graph.addCanonical$3(t1, t3.toUri$1(t2), t3.toUri$1(path))), $async$_handleAdd$1);
  52162. case 7:
  52163. // returning from await.
  52164. $async$returnValue = $async$result && success;
  52165. // goto return
  52166. $async$goto = 1;
  52167. break;
  52168. case 1:
  52169. // return
  52170. return A._asyncReturn($async$returnValue, $async$completer);
  52171. }
  52172. });
  52173. return A._asyncStartSync($async$_handleAdd$1, $async$completer);
  52174. },
  52175. _handleRemove$1(path) {
  52176. return this._handleRemove$body$_Watcher(path);
  52177. },
  52178. _handleRemove$body$_Watcher(path) {
  52179. var $async$goto = 0,
  52180. $async$completer = A._makeAsyncAwaitCompleter(type$.bool),
  52181. $async$returnValue, $async$self = this, t2, t0, url, _0_0, t3, node, toRecompile, t1;
  52182. var $async$_handleRemove$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52183. if ($async$errorCode === 1)
  52184. return A._asyncRethrow($async$result, $async$completer);
  52185. while (true)
  52186. switch ($async$goto) {
  52187. case 0:
  52188. // Function start
  52189. t1 = A.isNodeJs() ? self.process : null;
  52190. if (!J.$eq$(t1 == null ? null : J.get$platform$x(t1), "win32")) {
  52191. t1 = A.isNodeJs() ? self.process : null;
  52192. t1 = J.$eq$(t1 == null ? null : J.get$platform$x(t1), "darwin");
  52193. } else
  52194. t1 = true;
  52195. if (t1) {
  52196. t1 = $.$get$context();
  52197. t2 = A._realCasePath(A.absolute(t1.normalize$1(path), null, null, null, null, null, null, null, null, null, null, null, null, null, null));
  52198. t0 = t2;
  52199. t2 = t1;
  52200. t1 = t0;
  52201. } else {
  52202. t1 = $.$get$context();
  52203. t2 = t1.canonicalize$1(0, path);
  52204. t0 = t2;
  52205. t2 = t1;
  52206. t1 = t0;
  52207. }
  52208. url = t2.toUri$1(t1);
  52209. t1 = $async$self._graph;
  52210. t2 = t1._nodes;
  52211. if (t2.containsKey$1(url)) {
  52212. _0_0 = $async$self._destinationFor$1(path);
  52213. if (_0_0 != null)
  52214. $async$self._delete$1(_0_0);
  52215. }
  52216. t3 = $.$get$FilesystemImporter_cwd();
  52217. node = t2.remove$1(0, url);
  52218. t2 = node != null;
  52219. if (t2) {
  52220. t1._transitiveModificationTimes.clear$0(0);
  52221. t1.importCache.clearImport$1(url);
  52222. node._stylesheet_graph$_remove$0();
  52223. }
  52224. toRecompile = t1._recanonicalizeImports$2(t3, url);
  52225. if (t2)
  52226. toRecompile.addAll$1(0, node._downstream);
  52227. $async$goto = 3;
  52228. return A._asyncAwait($async$self._recompileDownstream$1(toRecompile), $async$_handleRemove$1);
  52229. case 3:
  52230. // returning from await.
  52231. $async$returnValue = $async$result;
  52232. // goto return
  52233. $async$goto = 1;
  52234. break;
  52235. case 1:
  52236. // return
  52237. return A._asyncReturn($async$returnValue, $async$completer);
  52238. }
  52239. });
  52240. return A._asyncStartSync($async$_handleRemove$1, $async$completer);
  52241. },
  52242. _debounceEvents$1(events) {
  52243. var t1 = type$.WatchEvent;
  52244. t1 = A.RateLimit__debounceAggregate(events, A.Duration$(0, 25), A.instantiate1(A.rate_limit___collect$closure(), t1), false, true, t1, type$.List_WatchEvent);
  52245. return new A._ExpandStream(new A._Watcher__debounceEvents_closure(), t1, A._instanceType(t1)._eval$1("_ExpandStream<Stream.T,WatchEvent>"));
  52246. },
  52247. _recompileDownstream$1(nodes) {
  52248. return this._recompileDownstream$body$_Watcher(nodes);
  52249. },
  52250. _recompileDownstream$body$_Watcher(nodes) {
  52251. var $async$goto = 0,
  52252. $async$completer = A._makeAsyncAwaitCompleter(type$.bool),
  52253. $async$returnValue, $async$self = this, t1, t2, t3, t4, t5, allSucceeded, t6, t7, t8, sourcesToDestinations, success, _i, seen;
  52254. var $async$_recompileDownstream$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  52255. if ($async$errorCode === 1)
  52256. return A._asyncRethrow($async$result, $async$completer);
  52257. while (true)
  52258. switch ($async$goto) {
  52259. case 0:
  52260. // Function start
  52261. seen = A.LinkedHashSet_LinkedHashSet$_empty(type$.StylesheetNode);
  52262. t1 = type$.UnmodifiableSetView_StylesheetNode, t2 = type$.JSArray_StylesheetNode, t3 = $async$self._watch$_options, t4 = $async$self._graph, t5 = t3._options, allSucceeded = true;
  52263. case 3:
  52264. // for condition
  52265. if (!(t6 = J.getInterceptor$asx(nodes), t6.get$isNotEmpty(nodes))) {
  52266. // goto after for
  52267. $async$goto = 5;
  52268. break;
  52269. }
  52270. t7 = A._setArrayType([], t2);
  52271. for (t6 = t6.get$iterator(nodes); t6.moveNext$0();) {
  52272. t8 = t6.get$current(t6);
  52273. if (seen.add$1(0, t8))
  52274. t7.push(t8);
  52275. }
  52276. sourcesToDestinations = $async$self._sourceEntrypointsToDestinations$1(t7);
  52277. $async$goto = sourcesToDestinations.__js_helper$_length !== 0 ? 6 : 7;
  52278. break;
  52279. case 6:
  52280. // then
  52281. $async$goto = 8;
  52282. return A._asyncAwait(A.compileStylesheets(t3, t4, sourcesToDestinations, true), $async$_recompileDownstream$1);
  52283. case 8:
  52284. // returning from await.
  52285. success = $async$result;
  52286. if (!success && A._asBool(t5.$index(0, "stop-on-error"))) {
  52287. $async$returnValue = false;
  52288. // goto return
  52289. $async$goto = 1;
  52290. break;
  52291. }
  52292. allSucceeded = allSucceeded && success;
  52293. case 7:
  52294. // join
  52295. t6 = A._setArrayType([], t2);
  52296. for (t8 = t7.length, _i = 0; _i < t7.length; t7.length === t8 || (0, A.throwConcurrentModificationError)(t7), ++_i)
  52297. B.JSArray_methods.addAll$1(t6, new A.UnmodifiableSetView0(t7[_i]._downstream, t1));
  52298. case 4:
  52299. // for update
  52300. nodes = t6;
  52301. // goto for condition
  52302. $async$goto = 3;
  52303. break;
  52304. case 5:
  52305. // after for
  52306. $async$returnValue = allSucceeded;
  52307. // goto return
  52308. $async$goto = 1;
  52309. break;
  52310. case 1:
  52311. // return
  52312. return A._asyncReturn($async$returnValue, $async$completer);
  52313. }
  52314. });
  52315. return A._asyncStartSync($async$_recompileDownstream$1, $async$completer);
  52316. },
  52317. _sourceEntrypointsToDestinations$1(nodes) {
  52318. var _i, url, source, _0_0,
  52319. t1 = type$.String,
  52320. entrypoints = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  52321. for (t1 = nodes.length, _i = 0; _i < nodes.length; nodes.length === t1 || (0, A.throwConcurrentModificationError)(nodes), ++_i) {
  52322. url = nodes[_i].canonicalUrl;
  52323. if (url.get$scheme() !== "file")
  52324. continue;
  52325. source = $.$get$context().style.pathFromUri$1(A._parseUri(url));
  52326. _0_0 = this._destinationFor$1(source);
  52327. if (_0_0 != null)
  52328. entrypoints.$indexSet(0, source, _0_0);
  52329. }
  52330. return entrypoints;
  52331. },
  52332. _destinationFor$1(source) {
  52333. var t2, _0_0, t3, sourceDir, destinationDir, destination,
  52334. t1 = this._watch$_options;
  52335. t1._ensureSources$0();
  52336. t2 = type$.String;
  52337. _0_0 = t1._sourcesToDestinations.cast$2$0(0, t2, t2).$index(0, source);
  52338. if (_0_0 != null)
  52339. return _0_0;
  52340. t3 = $.$get$context();
  52341. if (B.JSString_methods.startsWith$1(A.ParsedPath_ParsedPath$parse(source, t3.style).get$basename(), "_"))
  52342. return null;
  52343. t1._ensureSources$0();
  52344. t1 = t1.__ExecutableOptions__sourceDirectoriesToDestinations_F;
  52345. t1 === $ && A.throwUnnamedLateFieldNI();
  52346. t2 = A.MapExtensions_get_pairs(t1.cast$2$0(0, t2, t2), t2, t2);
  52347. t2 = t2.get$iterator(t2);
  52348. for (; t2.moveNext$0();) {
  52349. t1 = t2.get$current(t2);
  52350. sourceDir = t1._0;
  52351. destinationDir = t1._1;
  52352. if (t3._isWithinOrEquals$2(sourceDir, source) !== B._PathRelation_within)
  52353. continue;
  52354. destination = A.join(destinationDir, t3.withoutExtension$1(t3.relative$2$from(source, sourceDir)) + ".css", null);
  52355. if (t3._isWithinOrEquals$2(destination, source) !== B._PathRelation_equal)
  52356. return destination;
  52357. }
  52358. return null;
  52359. }
  52360. };
  52361. A._Watcher__debounceEvents_closure.prototype = {
  52362. call$1(buffer) {
  52363. var t3, t4, t5, oldType, newType, _1_1,
  52364. t1 = type$.ChangeType,
  52365. t2 = A.PathMap__create(null, t1);
  52366. for (t3 = J.get$iterator$ax(buffer); t3.moveNext$0();) {
  52367. t4 = t3.get$current(t3);
  52368. t5 = t4.path;
  52369. oldType = t2.$index(0, t5);
  52370. newType = t4.type;
  52371. $label0$0: {
  52372. if (oldType == null) {
  52373. t4 = newType;
  52374. break $label0$0;
  52375. }
  52376. if (B.ChangeType_remove === newType) {
  52377. t4 = B.ChangeType_remove;
  52378. break $label0$0;
  52379. }
  52380. if (B.ChangeType_add === oldType) {
  52381. t4 = B.ChangeType_add;
  52382. break $label0$0;
  52383. }
  52384. t4 = B.ChangeType_modify;
  52385. break $label0$0;
  52386. }
  52387. t2.$indexSet(0, t5, t4);
  52388. }
  52389. t3 = A._setArrayType([], type$.JSArray_WatchEvent);
  52390. for (t1 = A.MapExtensions_get_pairs(new A.PathMap(t2, type$.PathMap_ChangeType), type$.nullable_String, t1), t1 = t1.get$iterator(t1); t1.moveNext$0();) {
  52391. t2 = t1.get$current(t1);
  52392. _1_1 = t2._0;
  52393. _1_1.toString;
  52394. t3.push(new A.WatchEvent(t2._1, _1_1));
  52395. }
  52396. return t3;
  52397. },
  52398. $signature: 364
  52399. };
  52400. A.EmptyExtensionStore.prototype = {
  52401. get$_extensions() {
  52402. return A.throwExpression(A.NoSuchMethodError_NoSuchMethodError$withInvocation(this, A.JSInvocationMirror$(B.Symbol__extensions, "get$_empty_extension_store$_extensions", 1, [], [], 0)));
  52403. },
  52404. get$_sourceSpecificity() {
  52405. return A.throwExpression(A.NoSuchMethodError_NoSuchMethodError$withInvocation(this, A.JSInvocationMirror$(B.Symbol__sourceSpecificity, "get$_empty_extension_store$_sourceSpecificity", 1, [], [], 0)));
  52406. },
  52407. get$isEmpty(_) {
  52408. return true;
  52409. },
  52410. get$simpleSelectors() {
  52411. return B.C_EmptyUnmodifiableSet;
  52412. },
  52413. extensionsWhereTarget$1(callback) {
  52414. return B.List_empty5;
  52415. },
  52416. addExtensions$1(extenders) {
  52417. throw A.wrapException(A.UnsupportedError$(string$.addExt));
  52418. },
  52419. clone$0() {
  52420. return B.Record2_EmptyExtensionStore_Map_empty;
  52421. },
  52422. $isExtensionStore: 1
  52423. };
  52424. A.Extension.prototype = {
  52425. toString$0(_) {
  52426. var t1 = this.extender.toString$0(0),
  52427. t2 = this.target.toString$0(0),
  52428. t3 = this.isOptional ? " !optional" : "";
  52429. return t1 + " {@extend " + t2 + t3 + "}";
  52430. }
  52431. };
  52432. A.Extender.prototype = {
  52433. assertCompatibleMediaContext$1(mediaContext) {
  52434. var expectedMediaContext,
  52435. extension = this._extension;
  52436. if (extension == null)
  52437. return;
  52438. expectedMediaContext = extension.mediaContext;
  52439. if (expectedMediaContext == null)
  52440. return;
  52441. if (mediaContext != null && B.C_ListEquality.equals$2(0, expectedMediaContext, mediaContext))
  52442. return;
  52443. throw A.wrapException(A.SassException$(string$.You_ma, extension.span, null));
  52444. },
  52445. toString$0(_) {
  52446. return A.serializeSelector(this.selector, true);
  52447. }
  52448. };
  52449. A.ExtensionStore.prototype = {
  52450. get$isEmpty(_) {
  52451. return this._extensions.__js_helper$_length === 0;
  52452. },
  52453. get$simpleSelectors() {
  52454. return new A.MapKeySet(this._selectors, type$.MapKeySet_SimpleSelector);
  52455. },
  52456. extensionsWhereTarget$1(callback) {
  52457. return new A._SyncStarIterable(this.extensionsWhereTarget$body$ExtensionStore(callback), type$._SyncStarIterable_Extension);
  52458. },
  52459. extensionsWhereTarget$body$ExtensionStore($async$callback) {
  52460. var $async$self = this;
  52461. return function() {
  52462. var callback = $async$callback;
  52463. var $async$goto = 0, $async$handler = 1, $async$currentError, t1, t2, simple, sources, t3;
  52464. return function $async$extensionsWhereTarget$1($async$iterator, $async$errorCode, $async$result) {
  52465. if ($async$errorCode === 1) {
  52466. $async$currentError = $async$result;
  52467. $async$goto = $async$handler;
  52468. }
  52469. while (true)
  52470. switch ($async$goto) {
  52471. case 0:
  52472. // Function start
  52473. t1 = A.MapExtensions_get_pairs($async$self._extensions, type$.SimpleSelector, type$.Map_ComplexSelector_Extension), t1 = t1.get$iterator(t1);
  52474. case 2:
  52475. // for condition
  52476. if (!t1.moveNext$0()) {
  52477. // goto after for
  52478. $async$goto = 3;
  52479. break;
  52480. }
  52481. t2 = t1.get$current(t1);
  52482. simple = t2._0;
  52483. sources = t2._1;
  52484. if (!callback.call$1(simple)) {
  52485. // goto for condition
  52486. $async$goto = 2;
  52487. break;
  52488. }
  52489. t2 = sources.get$values(sources), t2 = t2.get$iterator(t2);
  52490. case 4:
  52491. // for condition
  52492. if (!t2.moveNext$0()) {
  52493. // goto after for
  52494. $async$goto = 5;
  52495. break;
  52496. }
  52497. t3 = t2.get$current(t2);
  52498. $async$goto = t3 instanceof A.MergedExtension ? 6 : 8;
  52499. break;
  52500. case 6:
  52501. // then
  52502. t3 = t3.unmerge$0();
  52503. $async$goto = 9;
  52504. return $async$iterator._yieldStar$1(new A.WhereIterable(t3, new A.ExtensionStore_extensionsWhereTarget_closure(), t3.$ti._eval$1("WhereIterable<Iterable.E>")));
  52505. case 9:
  52506. // after yield
  52507. // goto join
  52508. $async$goto = 7;
  52509. break;
  52510. case 8:
  52511. // else
  52512. $async$goto = !t3.isOptional ? 10 : 11;
  52513. break;
  52514. case 10:
  52515. // then
  52516. $async$goto = 12;
  52517. return $async$iterator._async$_current = t3, 1;
  52518. case 12:
  52519. // after yield
  52520. case 11:
  52521. // join
  52522. case 7:
  52523. // join
  52524. // goto for condition
  52525. $async$goto = 4;
  52526. break;
  52527. case 5:
  52528. // after for
  52529. // goto for condition
  52530. $async$goto = 2;
  52531. break;
  52532. case 3:
  52533. // after for
  52534. // implicit return
  52535. return 0;
  52536. case 1:
  52537. // rethrow
  52538. return $async$iterator._datum = $async$currentError, 3;
  52539. }
  52540. };
  52541. };
  52542. },
  52543. addSelector$2(selector, mediaContext) {
  52544. var originalSelector, error, stackTrace, t1, exception, t2, t3, t4, modifiableSelector, _this = this;
  52545. selector = selector;
  52546. originalSelector = selector;
  52547. if (!originalSelector.accept$1(B._IsInvisibleVisitor_true))
  52548. _this._originals.addAll$1(0, originalSelector.components);
  52549. t1 = _this._extensions;
  52550. if (t1.__js_helper$_length !== 0)
  52551. try {
  52552. selector = _this._extendList$3(originalSelector, t1, mediaContext);
  52553. } catch (exception) {
  52554. t1 = A.unwrapException(exception);
  52555. if (t1 instanceof A.SassException) {
  52556. error = t1;
  52557. stackTrace = A.getTraceFromException(exception);
  52558. t1 = error;
  52559. t2 = J.getInterceptor$z(t1);
  52560. t1 = A.SourceSpanException.prototype.get$span.call(t2, t1).message$1(0, "");
  52561. t2 = error._span_exception$_message;
  52562. t3 = error;
  52563. t4 = J.getInterceptor$z(t3);
  52564. t3 = A.SourceSpanException.prototype.get$span.call(t4, t3);
  52565. A.throwWithTrace(new A.SassException(B.Set_empty, "From " + t1 + "\n" + t2, t3), error, stackTrace);
  52566. } else
  52567. throw exception;
  52568. }
  52569. modifiableSelector = new A.ModifiableBox(selector, type$.ModifiableBox_SelectorList);
  52570. if (mediaContext != null)
  52571. _this._mediaContexts.$indexSet(0, modifiableSelector, mediaContext);
  52572. _this._registerSelector$2(selector, modifiableSelector);
  52573. return new A.Box(modifiableSelector, type$.Box_SelectorList);
  52574. },
  52575. _registerSelector$2(list, selector) {
  52576. var t1, t2, t3, t4, _i, t5, t6, _i0, t7, t8, _i1, simple, _0_2_isSet, _0_2, t9, selectorInPseudo;
  52577. for (t1 = list.components, t2 = t1.length, t3 = this._selectors, t4 = type$.SelectorList, _i = 0; _i < t2; ++_i)
  52578. for (t5 = t1[_i].components, t6 = t5.length, _i0 = 0; _i0 < t6; ++_i0)
  52579. for (t7 = t5[_i0].selector.components, t8 = t7.length, _i1 = 0; _i1 < t8; ++_i1) {
  52580. simple = t7[_i1];
  52581. J.add$1$ax(t3.putIfAbsent$2(simple, new A.ExtensionStore__registerSelector_closure()), selector);
  52582. _0_2_isSet = simple instanceof A.PseudoSelector;
  52583. if (_0_2_isSet) {
  52584. _0_2 = simple.selector;
  52585. t9 = _0_2 != null;
  52586. } else {
  52587. _0_2 = null;
  52588. t9 = false;
  52589. }
  52590. if (t9) {
  52591. selectorInPseudo = _0_2_isSet ? _0_2 : simple.selector;
  52592. this._registerSelector$2(selectorInPseudo == null ? t4._as(selectorInPseudo) : selectorInPseudo, selector);
  52593. }
  52594. }
  52595. },
  52596. addExtension$4(extender, target, extend, mediaContext) {
  52597. var t2, t3, t4, t5, t6, t7, t8, t9, t10, newExtensions, _i, complex, t11, extension, _0_0, t12, newExtensionsByTarget, additionalExtensions, _this = this,
  52598. selectors = _this._selectors.$index(0, target),
  52599. t1 = _this._extensionsByExtender,
  52600. existingExtensions = t1.$index(0, target),
  52601. sources = _this._extensions.putIfAbsent$2(target, new A.ExtensionStore_addExtension_closure());
  52602. for (t2 = extender.components, t3 = t2.length, t4 = selectors == null, t5 = _this._sourceSpecificity, t6 = extend.span, t7 = extend.isOptional, t8 = existingExtensions != null, t9 = type$.ComplexSelector, t10 = type$.Extension, newExtensions = null, _i = 0; _i < t3; ++_i) {
  52603. complex = t2[_i];
  52604. if (complex.accept$1(B.C__IsUselessVisitor))
  52605. continue;
  52606. complex.get$specificity();
  52607. t11 = new A.Extender(complex, false);
  52608. extension = t11._extension = new A.Extension(t11, target, mediaContext, t7, t6);
  52609. _0_0 = sources.$index(0, complex);
  52610. if (_0_0 != null) {
  52611. sources.$indexSet(0, complex, A.MergedExtension_merge(_0_0, extension));
  52612. continue;
  52613. }
  52614. sources.$indexSet(0, complex, extension);
  52615. for (t11 = new A._SyncStarIterator(_this._simpleSelectors$1(complex)._outerHelper()); t11.moveNext$0();) {
  52616. t12 = t11._async$_current;
  52617. J.add$1$ax(t1.putIfAbsent$2(t12, new A.ExtensionStore_addExtension_closure0()), extension);
  52618. t5.putIfAbsent$2(t12, new A.ExtensionStore_addExtension_closure1(complex));
  52619. }
  52620. if (!t4 || t8) {
  52621. if (newExtensions == null)
  52622. newExtensions = A.LinkedHashMap_LinkedHashMap$_empty(t9, t10);
  52623. newExtensions.$indexSet(0, complex, extension);
  52624. }
  52625. }
  52626. if (newExtensions == null)
  52627. return;
  52628. t1 = type$.SimpleSelector;
  52629. newExtensionsByTarget = A.LinkedHashMap_LinkedHashMap$_literal([target, newExtensions], t1, type$.Map_ComplexSelector_Extension);
  52630. if (t8) {
  52631. additionalExtensions = _this._extendExistingExtensions$2(existingExtensions, newExtensionsByTarget);
  52632. if (additionalExtensions != null)
  52633. A.mapAddAll2(newExtensionsByTarget, additionalExtensions, t1, t9, t10);
  52634. }
  52635. if (!t4)
  52636. _this._extendExistingSelectors$2(selectors, newExtensionsByTarget);
  52637. },
  52638. _simpleSelectors$1(complex) {
  52639. return new A._SyncStarIterable(this._simpleSelectors$body$ExtensionStore(complex), type$._SyncStarIterable_SimpleSelector);
  52640. },
  52641. _simpleSelectors$body$ExtensionStore($async$complex) {
  52642. var $async$self = this;
  52643. return function() {
  52644. var complex = $async$complex;
  52645. var $async$goto = 0, $async$handler = 1, $async$currentError, t1, t2, t3, _i, t4, t5, _i0, simple, _0_2_isSet, _0_2, t6, selector, t7, _i1;
  52646. return function $async$_simpleSelectors$1($async$iterator, $async$errorCode, $async$result) {
  52647. if ($async$errorCode === 1) {
  52648. $async$currentError = $async$result;
  52649. $async$goto = $async$handler;
  52650. }
  52651. while (true)
  52652. switch ($async$goto) {
  52653. case 0:
  52654. // Function start
  52655. t1 = complex.components, t2 = t1.length, t3 = type$.SelectorList, _i = 0;
  52656. case 2:
  52657. // for condition
  52658. if (!(_i < t2)) {
  52659. // goto after for
  52660. $async$goto = 4;
  52661. break;
  52662. }
  52663. t4 = t1[_i].selector.components, t5 = t4.length, _i0 = 0;
  52664. case 5:
  52665. // for condition
  52666. if (!(_i0 < t5)) {
  52667. // goto after for
  52668. $async$goto = 7;
  52669. break;
  52670. }
  52671. simple = t4[_i0];
  52672. $async$goto = 8;
  52673. return $async$iterator._async$_current = simple, 1;
  52674. case 8:
  52675. // after yield
  52676. _0_2_isSet = simple instanceof A.PseudoSelector;
  52677. if (_0_2_isSet) {
  52678. _0_2 = simple.selector;
  52679. t6 = _0_2 != null;
  52680. } else {
  52681. _0_2 = null;
  52682. t6 = false;
  52683. }
  52684. $async$goto = t6 ? 9 : 10;
  52685. break;
  52686. case 9:
  52687. // then
  52688. selector = _0_2_isSet ? _0_2 : simple.selector;
  52689. t6 = (selector == null ? t3._as(selector) : selector).components, t7 = t6.length, _i1 = 0;
  52690. case 11:
  52691. // for condition
  52692. if (!(_i1 < t7)) {
  52693. // goto after for
  52694. $async$goto = 13;
  52695. break;
  52696. }
  52697. $async$goto = 14;
  52698. return $async$iterator._yieldStar$1($async$self._simpleSelectors$1(t6[_i1]));
  52699. case 14:
  52700. // after yield
  52701. case 12:
  52702. // for update
  52703. ++_i1;
  52704. // goto for condition
  52705. $async$goto = 11;
  52706. break;
  52707. case 13:
  52708. // after for
  52709. case 10:
  52710. // join
  52711. case 6:
  52712. // for update
  52713. ++_i0;
  52714. // goto for condition
  52715. $async$goto = 5;
  52716. break;
  52717. case 7:
  52718. // after for
  52719. case 3:
  52720. // for update
  52721. ++_i;
  52722. // goto for condition
  52723. $async$goto = 2;
  52724. break;
  52725. case 4:
  52726. // after for
  52727. // implicit return
  52728. return 0;
  52729. case 1:
  52730. // rethrow
  52731. return $async$iterator._datum = $async$currentError, 3;
  52732. }
  52733. };
  52734. };
  52735. },
  52736. _extendExistingExtensions$2(extensions, newExtensions) {
  52737. var extension, selectors, error, stackTrace, t1, t2, t3, t4, t5, t6, additionalExtensions, _i, t7, exception, t8, t9, selectors0, t10, t11, t12, t13, t14, withExtender, _0_0, _i0, _i1;
  52738. for (t1 = J.toList$0$ax(extensions), t2 = t1.length, t3 = this._extensionsByExtender, t4 = type$.SimpleSelector, t5 = type$.Map_ComplexSelector_Extension, t6 = this._extensions, additionalExtensions = null, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
  52739. extension = t1[_i];
  52740. t7 = t6.$index(0, extension.target);
  52741. t7.toString;
  52742. selectors = null;
  52743. try {
  52744. selectors = this._extendComplex$3(extension.extender.selector, newExtensions, extension.mediaContext);
  52745. if (selectors == null)
  52746. continue;
  52747. } catch (exception) {
  52748. t8 = A.unwrapException(exception);
  52749. if (t8 instanceof A.SassException) {
  52750. error = t8;
  52751. stackTrace = A.getTraceFromException(exception);
  52752. A.throwWithTrace(error.withAdditionalSpan$2(extension.extender.selector.span, "target selector"), error, stackTrace);
  52753. } else
  52754. throw exception;
  52755. }
  52756. t8 = J.get$first$ax(selectors);
  52757. t9 = extension.extender.selector;
  52758. if (B.C_ListEquality.equals$2(0, t8.leadingCombinators, t9.leadingCombinators) && B.C_ListEquality.equals$2(0, t8.components, t9.components)) {
  52759. t8 = selectors;
  52760. t9 = A._arrayInstanceType(t8);
  52761. selectors0 = new A.SubListIterable(t8, 1, null, t9._eval$1("SubListIterable<1>"));
  52762. selectors0.SubListIterable$3(t8, 1, null, t9._precomputed1);
  52763. selectors = selectors0;
  52764. }
  52765. for (t8 = J.get$iterator$ax(selectors); t8.moveNext$0();) {
  52766. t9 = t8.get$current(t8);
  52767. t10 = extension;
  52768. t11 = t10.target;
  52769. t12 = t10.span;
  52770. t13 = t10.mediaContext;
  52771. t10 = t10.isOptional;
  52772. t9.get$specificity();
  52773. t14 = new A.Extender(t9, false);
  52774. withExtender = t14._extension = new A.Extension(t14, t11, t13, t10, t12);
  52775. _0_0 = t7.$index(0, t9);
  52776. if (_0_0 != null)
  52777. t7.$indexSet(0, t9, A.MergedExtension_merge(_0_0, withExtender));
  52778. else {
  52779. t7.$indexSet(0, t9, withExtender);
  52780. for (t10 = t9.components, t11 = t10.length, _i0 = 0; _i0 < t11; ++_i0)
  52781. for (t12 = t10[_i0].selector.components, t13 = t12.length, _i1 = 0; _i1 < t13; ++_i1)
  52782. J.add$1$ax(t3.putIfAbsent$2(t12[_i1], new A.ExtensionStore__extendExistingExtensions_closure()), withExtender);
  52783. if (newExtensions.containsKey$1(extension.target)) {
  52784. if (additionalExtensions == null)
  52785. additionalExtensions = A.LinkedHashMap_LinkedHashMap$_empty(t4, t5);
  52786. additionalExtensions.putIfAbsent$2(extension.target, new A.ExtensionStore__extendExistingExtensions_closure0()).$indexSet(0, t9, withExtender);
  52787. }
  52788. }
  52789. }
  52790. }
  52791. return additionalExtensions;
  52792. },
  52793. _extendExistingSelectors$2(selectors, newExtensions) {
  52794. var selector, error, stackTrace, t1, t2, oldValue, exception, t3, t4, t5, t6;
  52795. for (t1 = selectors.get$iterator(selectors), t2 = this._mediaContexts; t1.moveNext$0();) {
  52796. selector = t1.get$current(t1);
  52797. oldValue = selector.value;
  52798. try {
  52799. selector.value = this._extendList$3(selector.value, newExtensions, t2.$index(0, selector));
  52800. } catch (exception) {
  52801. t3 = A.unwrapException(exception);
  52802. if (t3 instanceof A.SassException) {
  52803. error = t3;
  52804. stackTrace = A.getTraceFromException(exception);
  52805. t3 = selector.value.span.message$1(0, "");
  52806. t4 = error._span_exception$_message;
  52807. t5 = error;
  52808. t6 = J.getInterceptor$z(t5);
  52809. t5 = A.SourceSpanException.prototype.get$span.call(t6, t5);
  52810. A.throwWithTrace(new A.SassException(B.Set_empty, "From " + t3 + "\n" + t4, t5), error, stackTrace);
  52811. } else
  52812. throw exception;
  52813. }
  52814. if (oldValue === selector.value)
  52815. continue;
  52816. this._registerSelector$2(selector.value, selector);
  52817. }
  52818. },
  52819. addExtensions$1(extensionStores) {
  52820. var t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, newExtensions, selectorsToExtend, extensionsToExtend, t12, t13, target, newSources, first, extensionsForTarget, t14, selectorsForTarget, t15, _2_0, t16, extender, extension, _this = this, _null = null;
  52821. for (t1 = J.get$iterator$ax(extensionStores), t2 = type$.SimpleSelector, t3 = type$.Map_ComplexSelector_Extension, t4 = _this._extensions, t5 = type$.ComplexSelector, t6 = type$.Extension, t7 = _this._selectors, t8 = _this._extensionsByExtender, t9 = type$.JSArray_Extension, t10 = type$.ModifiableBox_SelectorList, t11 = _this._sourceSpecificity, newExtensions = _null, selectorsToExtend = newExtensions, extensionsToExtend = selectorsToExtend; t1.moveNext$0();) {
  52822. t12 = t1.get$current(t1);
  52823. if (t12.get$isEmpty(t12))
  52824. continue;
  52825. t11.addAll$1(0, t12.get$_sourceSpecificity());
  52826. for (t12 = A.MapExtensions_get_pairs(t12.get$_extensions(), t2, t3), t12 = t12.get$iterator(t12); t12.moveNext$0();) {
  52827. t13 = t12.get$current(t12);
  52828. target = t13._0;
  52829. newSources = t13._1;
  52830. if (target instanceof A.PlaceholderSelector) {
  52831. first = target.name.charCodeAt(0);
  52832. t13 = first === 45 || first === 95;
  52833. } else
  52834. t13 = false;
  52835. if (t13)
  52836. continue;
  52837. extensionsForTarget = t8.$index(0, target);
  52838. t13 = extensionsForTarget == null;
  52839. if (!t13) {
  52840. if (extensionsToExtend == null) {
  52841. extensionsToExtend = A._setArrayType([], t9);
  52842. t14 = extensionsToExtend;
  52843. } else
  52844. t14 = extensionsToExtend;
  52845. B.JSArray_methods.addAll$1(t14, extensionsForTarget);
  52846. }
  52847. selectorsForTarget = t7.$index(0, target);
  52848. t14 = selectorsForTarget != null;
  52849. if (t14) {
  52850. if (selectorsToExtend == null) {
  52851. selectorsToExtend = A.LinkedHashSet_LinkedHashSet$_empty(t10);
  52852. t15 = selectorsToExtend;
  52853. } else
  52854. t15 = selectorsToExtend;
  52855. t15.addAll$1(0, selectorsForTarget);
  52856. }
  52857. _2_0 = t4.$index(0, target);
  52858. if (_2_0 != null)
  52859. for (t15 = A.MapExtensions_get_pairs(newSources, t5, t6), t15 = t15.get$iterator(t15); t15.moveNext$0();) {
  52860. t16 = t15.get$current(t15);
  52861. extender = t16._0;
  52862. extension = t16._1;
  52863. if (_2_0.containsKey$1(extender)) {
  52864. t16 = _2_0.$index(0, extender);
  52865. extension = A.MergedExtension_merge(t16 == null ? t6._as(t16) : t16, extension);
  52866. _2_0.$indexSet(0, extender, extension);
  52867. } else
  52868. _2_0.$indexSet(0, extender, extension);
  52869. if (!t13 || t14) {
  52870. if (newExtensions == null) {
  52871. newExtensions = A.LinkedHashMap_LinkedHashMap$_empty(t2, t3);
  52872. t16 = newExtensions;
  52873. } else
  52874. t16 = newExtensions;
  52875. J.$indexSet$ax(t16.putIfAbsent$2(target, new A.ExtensionStore_addExtensions_closure()), extender, extension);
  52876. }
  52877. }
  52878. else {
  52879. t15 = A.LinkedHashMap_LinkedHashMap(_null, _null, _null, t5, t6);
  52880. t15.addAll$1(0, newSources);
  52881. t4.$indexSet(0, target, t15);
  52882. if (!t13 || t14) {
  52883. if (newExtensions == null) {
  52884. newExtensions = A.LinkedHashMap_LinkedHashMap$_empty(t2, t3);
  52885. t13 = newExtensions;
  52886. } else
  52887. t13 = newExtensions;
  52888. t14 = A.LinkedHashMap_LinkedHashMap(_null, _null, _null, t5, t6);
  52889. t14.addAll$1(0, newSources);
  52890. t13.$indexSet(0, target, t14);
  52891. }
  52892. }
  52893. }
  52894. }
  52895. if (newExtensions != null) {
  52896. if (extensionsToExtend != null)
  52897. _this._extendExistingExtensions$2(extensionsToExtend, newExtensions);
  52898. if (selectorsToExtend != null)
  52899. _this._extendExistingSelectors$2(selectorsToExtend, newExtensions);
  52900. }
  52901. },
  52902. _extendList$3(list, extensions, mediaQueryContext) {
  52903. var t1, t2, t3, extended, i, complex, result, t4;
  52904. for (t1 = list.components, t2 = t1.length, t3 = type$.JSArray_ComplexSelector, extended = null, i = 0; i < t2; ++i) {
  52905. complex = t1[i];
  52906. result = this._extendComplex$3(complex, extensions, mediaQueryContext);
  52907. if (result == null) {
  52908. if (extended != null)
  52909. extended.push(complex);
  52910. } else {
  52911. if (extended == null)
  52912. if (i === 0)
  52913. extended = A._setArrayType([], t3);
  52914. else {
  52915. t4 = B.JSArray_methods.sublist$2(t1, 0, i);
  52916. extended = A._setArrayType(t4.slice(0), A._arrayInstanceType(t4));
  52917. }
  52918. B.JSArray_methods.addAll$1(extended, result);
  52919. }
  52920. }
  52921. if (extended == null)
  52922. return list;
  52923. t1 = this._originals;
  52924. return A.SelectorList$(this._trim$2(extended, t1.get$contains(t1)), list.span);
  52925. },
  52926. _extendList$2(list, extensions) {
  52927. return this._extendList$3(list, extensions, null);
  52928. },
  52929. _extendComplex$3(complex, extensions, mediaQueryContext) {
  52930. var isOriginal, t3, t4, t5, t6, t7, t8, t9, t10, extendedNotExpanded, i, component, extended, t11, t12, t13, t14, _box_0 = {},
  52931. t1 = complex.leadingCombinators,
  52932. t2 = t1.length;
  52933. if (t2 > 1)
  52934. return null;
  52935. isOriginal = this._originals.contains$1(0, complex);
  52936. for (t3 = complex.components, t4 = t3.length, t5 = type$.JSArray_List_ComplexSelector, t6 = complex.lineBreak, t7 = !t6, t8 = complex.span, t9 = type$.JSArray_ComplexSelector, t2 = t2 === 0, t10 = type$.JSArray_ComplexSelectorComponent, extendedNotExpanded = null, i = 0; i < t4; ++i) {
  52937. component = t3[i];
  52938. extended = this._extendCompound$4$inOriginal(component, extensions, mediaQueryContext, isOriginal);
  52939. if (extended == null) {
  52940. if (extendedNotExpanded != null)
  52941. extendedNotExpanded.push(A._setArrayType([A.ComplexSelector$(B.List_empty0, A._setArrayType([component], t10), t8, t6)], t9));
  52942. } else if (extendedNotExpanded != null)
  52943. extendedNotExpanded.push(extended);
  52944. else if (i !== 0) {
  52945. t11 = A._arrayInstanceType(t3);
  52946. t12 = new A.SubListIterable(t3, 0, i, t11._eval$1("SubListIterable<1>"));
  52947. t12.SubListIterable$3(t3, 0, i, t11._precomputed1);
  52948. extendedNotExpanded = A._setArrayType([A._setArrayType([A.ComplexSelector$(t1, t12, t8, t6)], t9), extended], t5);
  52949. } else if (t2)
  52950. extendedNotExpanded = A._setArrayType([extended], t5);
  52951. else {
  52952. t11 = A._setArrayType([], t9);
  52953. for (t12 = J.get$iterator$ax(extended); t12.moveNext$0();) {
  52954. t13 = t12.get$current(t12);
  52955. t14 = t13.leadingCombinators;
  52956. if (t14.length === 0 || B.C_ListEquality.equals$2(0, t1, t14)) {
  52957. t14 = t13.components;
  52958. t11.push(A.ComplexSelector$(t1, t14, t8, !t7 || t13.lineBreak));
  52959. }
  52960. }
  52961. extendedNotExpanded = A._setArrayType([t11], t5);
  52962. }
  52963. }
  52964. if (extendedNotExpanded == null)
  52965. return null;
  52966. _box_0.first = true;
  52967. t1 = type$.ComplexSelector;
  52968. t1 = J.expand$1$1$ax(A.paths(extendedNotExpanded, t1), new A.ExtensionStore__extendComplex_closure(_box_0, this, complex), t1);
  52969. return A.List_List$of(t1, true, t1.$ti._eval$1("Iterable.E"));
  52970. },
  52971. _extendCompound$4$inOriginal(component, extensions, mediaQueryContext, inOriginal) {
  52972. var t3, t4, t5, t6, t7, t8, t9, t10, t11, options, i, simple, extended, t12, result, compound, complex, extenderPaths, withCombinators, isOriginal, _this = this, _null = null,
  52973. t1 = _this._mode,
  52974. targetsUsed = t1 === B.ExtendMode_normal_normal || extensions.__js_helper$_length < 2 ? _null : A.LinkedHashSet_LinkedHashSet$_empty(type$.SimpleSelector),
  52975. t2 = component.selector,
  52976. simples = t2.components;
  52977. for (t3 = simples.length, t4 = type$.JSArray_List_Extender, t5 = type$.JSArray_Extender, t6 = type$.CssValue_Combinator, t7 = type$.JSArray_ComplexSelectorComponent, t8 = A._arrayInstanceType(simples), t9 = t8._precomputed1, t8 = t8._eval$1("SubListIterable<1>"), t10 = component.span, t11 = type$.SimpleSelector, options = _null, i = 0; i < t3; ++i) {
  52978. simple = simples[i];
  52979. extended = _this._extendSimple$4(simple, extensions, mediaQueryContext, targetsUsed);
  52980. if (extended == null) {
  52981. if (options != null)
  52982. options.push(A._setArrayType([_this._extenderForSimple$1(simple)], t5));
  52983. } else {
  52984. if (options == null) {
  52985. options = A._setArrayType([], t4);
  52986. if (i !== 0) {
  52987. t12 = new A.SubListIterable(simples, 0, i, t8);
  52988. t12.SubListIterable$3(simples, 0, i, t9);
  52989. result = A.List_List$from(t12, false, t11);
  52990. result.fixed$length = Array;
  52991. result.immutable$list = Array;
  52992. t12 = result;
  52993. compound = new A.CompoundSelector(t12, t10);
  52994. if (t12.length === 0)
  52995. A.throwExpression(A.ArgumentError$("components may not be empty.", _null));
  52996. result = A.List_List$from(B.List_empty0, false, t6);
  52997. result.fixed$length = Array;
  52998. result.immutable$list = Array;
  52999. t12 = A.ComplexSelector$(B.List_empty0, A._setArrayType([new A.ComplexSelectorComponent(compound, result, t10)], t7), t10, false);
  53000. _this._sourceSpecificityFor$1(compound);
  53001. options.push(A._setArrayType([new A.Extender(t12, true)], t5));
  53002. }
  53003. }
  53004. B.JSArray_methods.addAll$1(options, extended);
  53005. }
  53006. }
  53007. if (options == null)
  53008. return _null;
  53009. if (targetsUsed != null && targetsUsed._collection$_length !== extensions.__js_helper$_length)
  53010. return _null;
  53011. if (options.length === 1) {
  53012. for (t1 = J.get$iterator$ax(options[0]), t2 = component.combinators, t3 = type$.JSArray_ComplexSelector, result = _null; t1.moveNext$0();) {
  53013. t4 = t1.get$current(t1);
  53014. t4.assertCompatibleMediaContext$1(mediaQueryContext);
  53015. complex = t4.selector.withAdditionalCombinators$1(t2);
  53016. if (complex.accept$1(B.C__IsUselessVisitor))
  53017. continue;
  53018. if (result == null)
  53019. result = A._setArrayType([], t3);
  53020. result.push(complex);
  53021. }
  53022. return result;
  53023. }
  53024. extenderPaths = A.paths(options, type$.Extender);
  53025. t3 = A._setArrayType([], type$.JSArray_ComplexSelector);
  53026. t1 = t1 === B.ExtendMode_replace_replace;
  53027. t4 = !t1;
  53028. if (t4)
  53029. t3.push(A.ComplexSelector$(B.List_empty0, A._setArrayType([new A.ComplexSelectorComponent(A.CompoundSelector$(J.expand$1$1$ax(J.get$first$ax(extenderPaths), new A.ExtensionStore__extendCompound_closure(), t11), t2.span), A.List_List$unmodifiable(component.combinators, t6), t10)], t7), t10, false));
  53030. t2 = J.skip$1$ax(extenderPaths, t1 ? 0 : 1);
  53031. t5 = t2.$ti;
  53032. t2 = new A.ListIterator(t2, t2.get$length(0), t5._eval$1("ListIterator<ListIterable.E>"));
  53033. t6 = component.combinators;
  53034. t5 = t5._eval$1("ListIterable.E");
  53035. for (; t2.moveNext$0();) {
  53036. t1 = t2.__internal$_current;
  53037. extended = _this._unifyExtenders$3(t1 == null ? t5._as(t1) : t1, mediaQueryContext, t10);
  53038. if (extended == null)
  53039. continue;
  53040. for (t1 = J.get$iterator$ax(extended); t1.moveNext$0();) {
  53041. withCombinators = t1.get$current(t1).withAdditionalCombinators$1(t6);
  53042. if (!withCombinators.accept$1(B.C__IsUselessVisitor))
  53043. t3.push(withCombinators);
  53044. }
  53045. }
  53046. isOriginal = new A.ExtensionStore__extendCompound_closure0();
  53047. return _this._trim$2(t3, inOriginal && t4 ? new A.ExtensionStore__extendCompound_closure1(B.JSArray_methods.get$first(t3)) : isOriginal);
  53048. },
  53049. _unifyExtenders$3(extenders, mediaQueryContext, span) {
  53050. var t1, t2, t3, originals, originalsLineBreak, t4, complexes, _null = null,
  53051. toUnify = A.QueueList$(_null, type$.ComplexSelector);
  53052. for (t1 = J.getInterceptor$ax(extenders), t2 = t1.get$iterator(extenders), t3 = type$.JSArray_SimpleSelector, originals = _null, originalsLineBreak = false; t2.moveNext$0();) {
  53053. t4 = t2.get$current(t2);
  53054. if (t4.isOriginal) {
  53055. if (originals == null)
  53056. originals = A._setArrayType([], t3);
  53057. t4 = t4.selector;
  53058. B.JSArray_methods.addAll$1(originals, B.JSArray_methods.get$last(t4.components).selector.components);
  53059. originalsLineBreak = originalsLineBreak || t4.lineBreak;
  53060. } else {
  53061. t4 = t4.selector;
  53062. if (t4.accept$1(B.C__IsUselessVisitor))
  53063. return _null;
  53064. else
  53065. toUnify._queue_list$_add$1(t4);
  53066. }
  53067. }
  53068. if (originals != null)
  53069. toUnify.addFirst$1(A.ComplexSelector$(B.List_empty0, A._setArrayType([new A.ComplexSelectorComponent(A.CompoundSelector$(originals, span), A.List_List$unmodifiable(B.List_empty0, type$.CssValue_Combinator), span)], type$.JSArray_ComplexSelectorComponent), span, originalsLineBreak));
  53070. complexes = A.unifyComplex(toUnify, span);
  53071. if (complexes == null)
  53072. return _null;
  53073. for (t1 = t1.get$iterator(extenders); t1.moveNext$0();)
  53074. t1.get$current(t1).assertCompatibleMediaContext$1(mediaQueryContext);
  53075. return complexes;
  53076. },
  53077. _extendSimple$4(simple, extensions, mediaQueryContext, targetsUsed) {
  53078. var t2, _1_0,
  53079. t1 = new A.ExtensionStore__extendSimple_withoutPseudo(this, extensions, targetsUsed);
  53080. if (simple instanceof A.PseudoSelector)
  53081. t2 = simple.selector != null;
  53082. else
  53083. t2 = false;
  53084. if (t2) {
  53085. _1_0 = this._extendPseudo$3(simple, extensions, mediaQueryContext);
  53086. if (_1_0 != null)
  53087. return new A.MappedListIterable(_1_0, new A.ExtensionStore__extendSimple_closure(this, t1), A._arrayInstanceType(_1_0)._eval$1("MappedListIterable<1,List<Extender>>"));
  53088. }
  53089. return A.NullableExtension_andThen(t1.call$1(simple), new A.ExtensionStore__extendSimple_closure0());
  53090. },
  53091. _extenderForSimple$1(simple) {
  53092. var t1 = simple.span;
  53093. t1 = A.ComplexSelector$(B.List_empty0, A._setArrayType([new A.ComplexSelectorComponent(A.CompoundSelector$(A._setArrayType([simple], type$.JSArray_SimpleSelector), t1), A.List_List$unmodifiable(B.List_empty0, type$.CssValue_Combinator), t1)], type$.JSArray_ComplexSelectorComponent), t1, false);
  53094. this._sourceSpecificity.$index(0, simple);
  53095. return new A.Extender(t1, true);
  53096. },
  53097. _extendPseudo$3(pseudo, extensions, mediaQueryContext) {
  53098. var extended, complexes, t1, result,
  53099. selector = pseudo.selector;
  53100. if (selector == null)
  53101. throw A.wrapException(A.ArgumentError$("Selector " + pseudo.toString$0(0) + " must have a selector argument.", null));
  53102. extended = this._extendList$3(selector, extensions, mediaQueryContext);
  53103. if (extended === selector)
  53104. return null;
  53105. complexes = extended.components;
  53106. t1 = pseudo.normalizedName === "not";
  53107. if (t1 && !B.JSArray_methods.any$1(selector.components, new A.ExtensionStore__extendPseudo_closure()) && B.JSArray_methods.any$1(complexes, new A.ExtensionStore__extendPseudo_closure0()))
  53108. complexes = new A.WhereIterable(complexes, new A.ExtensionStore__extendPseudo_closure1(), A._arrayInstanceType(complexes)._eval$1("WhereIterable<1>"));
  53109. complexes = J.expand$1$1$ax(complexes, new A.ExtensionStore__extendPseudo_closure2(pseudo), type$.ComplexSelector);
  53110. if (t1 && selector.components.length === 1) {
  53111. t1 = A.MappedIterable_MappedIterable(complexes, new A.ExtensionStore__extendPseudo_closure3(pseudo, selector), complexes.$ti._eval$1("Iterable.E"), type$.PseudoSelector);
  53112. result = A.List_List$of(t1, true, A._instanceType(t1)._eval$1("Iterable.E"));
  53113. return result.length === 0 ? null : result;
  53114. } else
  53115. return A._setArrayType([pseudo.withSelector$1(A.SelectorList$(complexes, selector.span))], type$.JSArray_PseudoSelector);
  53116. },
  53117. _trim$2(selectors, isOriginal) {
  53118. var i, t1, t2, numOriginals, _box_0, complex1, j, t3, t4, _i, t5, maxSpecificity,
  53119. result = A.QueueList$(null, type$.ComplexSelector);
  53120. $label0$0:
  53121. for (i = selectors.length - 1, t1 = A._arrayInstanceType(selectors), t2 = t1._precomputed1, t1 = t1._eval$1("SubListIterable<1>"), numOriginals = 0; i >= 0; --i) {
  53122. _box_0 = {};
  53123. complex1 = selectors[i];
  53124. if (isOriginal.call$1(complex1)) {
  53125. for (j = 0; j < numOriginals; ++j)
  53126. if (J.$eq$(result.$index(0, j), complex1)) {
  53127. A.rotateSlice(result, 0, j + 1);
  53128. continue $label0$0;
  53129. }
  53130. ++numOriginals;
  53131. result.addFirst$1(complex1);
  53132. continue $label0$0;
  53133. }
  53134. _box_0.maxSpecificity = 0;
  53135. for (t3 = complex1.components, t4 = t3.length, _i = 0, t5 = 0; _i < t4; ++_i, t5 = maxSpecificity) {
  53136. maxSpecificity = Math.max(t5, this._sourceSpecificityFor$1(t3[_i].selector));
  53137. _box_0.maxSpecificity = maxSpecificity;
  53138. }
  53139. if (result.any$1(result, new A.ExtensionStore__trim_closure(_box_0, complex1)))
  53140. continue $label0$0;
  53141. t3 = new A.SubListIterable(selectors, 0, i, t1);
  53142. t3.SubListIterable$3(selectors, 0, i, t2);
  53143. if (t3.any$1(0, new A.ExtensionStore__trim_closure0(_box_0, complex1)))
  53144. continue $label0$0;
  53145. result.addFirst$1(complex1);
  53146. }
  53147. return result;
  53148. },
  53149. _sourceSpecificityFor$1(compound) {
  53150. var t1, t2, t3, specificity, _i, t4;
  53151. for (t1 = compound.components, t2 = t1.length, t3 = this._sourceSpecificity, specificity = 0, _i = 0; _i < t2; ++_i) {
  53152. t4 = t3.$index(0, t1[_i]);
  53153. specificity = Math.max(specificity, A.checkNum(t4 == null ? 0 : t4));
  53154. }
  53155. return specificity;
  53156. },
  53157. clone$0() {
  53158. var t2, t3, t4, _this = this,
  53159. t1 = type$.SimpleSelector,
  53160. newSelectors = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Set_ModifiableBox_SelectorList),
  53161. newMediaContexts = A.LinkedHashMap_LinkedHashMap$_empty(type$.ModifiableBox_SelectorList, type$.List_CssMediaQuery),
  53162. oldToNewSelectors = new A.JsIdentityLinkedHashMap(type$.JsIdentityLinkedHashMap_of_SelectorList_and_Box_SelectorList);
  53163. _this._selectors.forEach$1(0, new A.ExtensionStore_clone_closure(_this, newSelectors, oldToNewSelectors, newMediaContexts));
  53164. t2 = type$.Extension;
  53165. t3 = A.copyMapOfMap(_this._extensions, t1, type$.ComplexSelector, t2);
  53166. t2 = A.copyMapOfList(_this._extensionsByExtender, t1, t2);
  53167. t1 = new A.JsIdentityLinkedHashMap(type$.JsIdentityLinkedHashMap_SimpleSelector_int);
  53168. t1.addAll$1(0, _this._sourceSpecificity);
  53169. t4 = new A._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_ComplexSelector);
  53170. t4.addAll$1(0, _this._originals);
  53171. return new A._Record_2(new A.ExtensionStore(newSelectors, t3, t2, newMediaContexts, t1, t4, B.ExtendMode_normal_normal), oldToNewSelectors);
  53172. },
  53173. get$_extensions() {
  53174. return this._extensions;
  53175. },
  53176. get$_sourceSpecificity() {
  53177. return this._sourceSpecificity;
  53178. }
  53179. };
  53180. A.ExtensionStore_extensionsWhereTarget_closure.prototype = {
  53181. call$1(extension) {
  53182. return !extension.isOptional;
  53183. },
  53184. $signature: 400
  53185. };
  53186. A.ExtensionStore__registerSelector_closure.prototype = {
  53187. call$0() {
  53188. return A.LinkedHashSet_LinkedHashSet$_empty(type$.ModifiableBox_SelectorList);
  53189. },
  53190. $signature: 401
  53191. };
  53192. A.ExtensionStore_addExtension_closure.prototype = {
  53193. call$0() {
  53194. return A.LinkedHashMap_LinkedHashMap$_empty(type$.ComplexSelector, type$.Extension);
  53195. },
  53196. $signature: 113
  53197. };
  53198. A.ExtensionStore_addExtension_closure0.prototype = {
  53199. call$0() {
  53200. return A._setArrayType([], type$.JSArray_Extension);
  53201. },
  53202. $signature: 165
  53203. };
  53204. A.ExtensionStore_addExtension_closure1.prototype = {
  53205. call$0() {
  53206. return this.complex.get$specificity();
  53207. },
  53208. $signature: 10
  53209. };
  53210. A.ExtensionStore__extendExistingExtensions_closure.prototype = {
  53211. call$0() {
  53212. return A._setArrayType([], type$.JSArray_Extension);
  53213. },
  53214. $signature: 165
  53215. };
  53216. A.ExtensionStore__extendExistingExtensions_closure0.prototype = {
  53217. call$0() {
  53218. return A.LinkedHashMap_LinkedHashMap$_empty(type$.ComplexSelector, type$.Extension);
  53219. },
  53220. $signature: 113
  53221. };
  53222. A.ExtensionStore_addExtensions_closure.prototype = {
  53223. call$0() {
  53224. return A.LinkedHashMap_LinkedHashMap$_empty(type$.ComplexSelector, type$.Extension);
  53225. },
  53226. $signature: 113
  53227. };
  53228. A.ExtensionStore__extendComplex_closure.prototype = {
  53229. call$1(path) {
  53230. var t1 = this.complex;
  53231. return J.map$1$1$ax(A.weave(path, t1.span, t1.lineBreak), new A.ExtensionStore__extendComplex__closure(this._box_0, this.$this, t1), type$.ComplexSelector);
  53232. },
  53233. $signature: 421
  53234. };
  53235. A.ExtensionStore__extendComplex__closure.prototype = {
  53236. call$1(outputComplex) {
  53237. var _this = this,
  53238. t1 = _this._box_0;
  53239. if (t1.first && _this.$this._originals.contains$1(0, _this.complex))
  53240. _this.$this._originals.add$1(0, outputComplex);
  53241. t1.first = false;
  53242. return outputComplex;
  53243. },
  53244. $signature: 63
  53245. };
  53246. A.ExtensionStore__extendCompound_closure.prototype = {
  53247. call$1(extender) {
  53248. return B.JSArray_methods.get$last(extender.selector.components).selector.components;
  53249. },
  53250. $signature: 427
  53251. };
  53252. A.ExtensionStore__extendCompound_closure0.prototype = {
  53253. call$1(_) {
  53254. return false;
  53255. },
  53256. $signature: 19
  53257. };
  53258. A.ExtensionStore__extendCompound_closure1.prototype = {
  53259. call$1(complex) {
  53260. return complex.$eq(0, this.original);
  53261. },
  53262. $signature: 19
  53263. };
  53264. A.ExtensionStore__extendSimple_withoutPseudo.prototype = {
  53265. call$1(simple) {
  53266. var t1, t2,
  53267. extensionsForSimple = this.extensions.$index(0, simple);
  53268. if (extensionsForSimple == null)
  53269. return null;
  53270. t1 = this.targetsUsed;
  53271. if (t1 != null)
  53272. t1.add$1(0, simple);
  53273. t1 = A._setArrayType([], type$.JSArray_Extender);
  53274. t2 = this.$this;
  53275. if (t2._mode !== B.ExtendMode_replace_replace)
  53276. t1.push(t2._extenderForSimple$1(simple));
  53277. for (t2 = extensionsForSimple.get$values(extensionsForSimple), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  53278. t1.push(t2.get$current(t2).extender);
  53279. return t1;
  53280. },
  53281. $signature: 442
  53282. };
  53283. A.ExtensionStore__extendSimple_closure.prototype = {
  53284. call$1(pseudo) {
  53285. var t1 = this.withoutPseudo.call$1(pseudo);
  53286. return t1 == null ? A._setArrayType([this.$this._extenderForSimple$1(pseudo)], type$.JSArray_Extender) : t1;
  53287. },
  53288. $signature: 443
  53289. };
  53290. A.ExtensionStore__extendSimple_closure0.prototype = {
  53291. call$1(result) {
  53292. return A._setArrayType([result], type$.JSArray_List_Extender);
  53293. },
  53294. $signature: 446
  53295. };
  53296. A.ExtensionStore__extendPseudo_closure.prototype = {
  53297. call$1(complex) {
  53298. return complex.components.length > 1;
  53299. },
  53300. $signature: 19
  53301. };
  53302. A.ExtensionStore__extendPseudo_closure0.prototype = {
  53303. call$1(complex) {
  53304. return complex.components.length === 1;
  53305. },
  53306. $signature: 19
  53307. };
  53308. A.ExtensionStore__extendPseudo_closure1.prototype = {
  53309. call$1(complex) {
  53310. return complex.components.length <= 1;
  53311. },
  53312. $signature: 19
  53313. };
  53314. A.ExtensionStore__extendPseudo_closure2.prototype = {
  53315. call$1(complex) {
  53316. var innerPseudo, innerSelector,
  53317. t1 = complex.get$singleCompound();
  53318. if (t1 == null)
  53319. innerPseudo = null;
  53320. else {
  53321. t1 = t1.components;
  53322. innerPseudo = t1.length === 1 ? B.JSArray_methods.get$first(t1) : null;
  53323. }
  53324. if (!(innerPseudo instanceof A.PseudoSelector))
  53325. return A._setArrayType([complex], type$.JSArray_ComplexSelector);
  53326. innerSelector = innerPseudo.selector;
  53327. if (innerSelector == null)
  53328. return A._setArrayType([complex], type$.JSArray_ComplexSelector);
  53329. t1 = this.pseudo;
  53330. switch (t1.normalizedName) {
  53331. case "not":
  53332. if (!B.Set_mlzm2.contains$1(0, innerPseudo.normalizedName))
  53333. return A._setArrayType([], type$.JSArray_ComplexSelector);
  53334. return innerSelector.components;
  53335. case "is":
  53336. case "matches":
  53337. case "where":
  53338. case "any":
  53339. case "current":
  53340. case "nth-child":
  53341. case "nth-last-child":
  53342. if (innerPseudo.name !== t1.name)
  53343. return A._setArrayType([], type$.JSArray_ComplexSelector);
  53344. if (innerPseudo.argument != t1.argument)
  53345. return A._setArrayType([], type$.JSArray_ComplexSelector);
  53346. return innerSelector.components;
  53347. case "has":
  53348. case "host":
  53349. case "host-context":
  53350. case "slotted":
  53351. return A._setArrayType([complex], type$.JSArray_ComplexSelector);
  53352. default:
  53353. return A._setArrayType([], type$.JSArray_ComplexSelector);
  53354. }
  53355. },
  53356. $signature: 336
  53357. };
  53358. A.ExtensionStore__extendPseudo_closure3.prototype = {
  53359. call$1(complex) {
  53360. return this.pseudo.withSelector$1(A.SelectorList$(A._setArrayType([complex], type$.JSArray_ComplexSelector), this.selector.span));
  53361. },
  53362. $signature: 450
  53363. };
  53364. A.ExtensionStore__trim_closure.prototype = {
  53365. call$1(complex2) {
  53366. return complex2.get$specificity() >= this._box_0.maxSpecificity && complex2.isSuperselector$1(this.complex1);
  53367. },
  53368. $signature: 19
  53369. };
  53370. A.ExtensionStore__trim_closure0.prototype = {
  53371. call$1(complex2) {
  53372. return complex2.get$specificity() >= this._box_0.maxSpecificity && complex2.isSuperselector$1(this.complex1);
  53373. },
  53374. $signature: 19
  53375. };
  53376. A.ExtensionStore_clone_closure.prototype = {
  53377. call$2(simple, selectors) {
  53378. var t2, t3, t4, t5, t6, t7, newSelector, _0_0, _this = this,
  53379. t1 = type$.ModifiableBox_SelectorList,
  53380. newSelectorSet = A.LinkedHashSet_LinkedHashSet$_empty(t1);
  53381. _this.newSelectors.$indexSet(0, simple, newSelectorSet);
  53382. for (t2 = selectors.get$iterator(selectors), t3 = _this.oldToNewSelectors, t4 = type$.Box_SelectorList, t5 = _this.$this._mediaContexts, t6 = _this.newMediaContexts; t2.moveNext$0();) {
  53383. t7 = t2.get$current(t2);
  53384. newSelector = new A.ModifiableBox(t7.value, t1);
  53385. newSelectorSet.add$1(0, newSelector);
  53386. t3.$indexSet(0, t7.value, new A.Box(newSelector, t4));
  53387. _0_0 = t5.$index(0, t7);
  53388. if (_0_0 != null)
  53389. t6.$indexSet(0, newSelector, _0_0);
  53390. }
  53391. },
  53392. $signature: 451
  53393. };
  53394. A.unifyComplex_closure.prototype = {
  53395. call$1(complex) {
  53396. return complex.lineBreak;
  53397. },
  53398. $signature: 19
  53399. };
  53400. A._weaveParents_closure.prototype = {
  53401. call$2(group1, group2) {
  53402. var t1, unified;
  53403. if (B.C_ListEquality.equals$2(0, group1, group2))
  53404. return group1;
  53405. if (A._complexIsParentSuperselector(group1, group2))
  53406. return group2;
  53407. if (A._complexIsParentSuperselector(group2, group1))
  53408. return group1;
  53409. if (!A._mustUnify(group1, group2))
  53410. return null;
  53411. t1 = this.span;
  53412. unified = A.unifyComplex(A._setArrayType([A.ComplexSelector$(B.List_empty0, group1, t1, false), A.ComplexSelector$(B.List_empty0, group2, t1, false)], type$.JSArray_ComplexSelector), t1);
  53413. if (unified == null)
  53414. t1 = null;
  53415. else {
  53416. t1 = A.IterableExtension_get_singleOrNull(unified);
  53417. t1 = t1 == null ? null : t1.components;
  53418. }
  53419. return t1;
  53420. },
  53421. $signature: 455
  53422. };
  53423. A._weaveParents_closure0.prototype = {
  53424. call$1(sequence) {
  53425. return A._complexIsParentSuperselector(sequence.get$first(sequence), this.group);
  53426. },
  53427. $signature: 173
  53428. };
  53429. A._weaveParents_closure1.prototype = {
  53430. call$1(sequence) {
  53431. return sequence.get$length(0) === 0;
  53432. },
  53433. $signature: 173
  53434. };
  53435. A._weaveParents_closure2.prototype = {
  53436. call$1(choice) {
  53437. return J.get$isNotEmpty$asx(choice);
  53438. },
  53439. $signature: 462
  53440. };
  53441. A._mustUnify_closure.prototype = {
  53442. call$1(component) {
  53443. return B.JSArray_methods.any$1(component.selector.components, new A._mustUnify__closure(this.uniqueSelectors));
  53444. },
  53445. $signature: 53
  53446. };
  53447. A._mustUnify__closure.prototype = {
  53448. call$1(simple) {
  53449. var t1;
  53450. if (!(simple instanceof A.IDSelector))
  53451. t1 = simple instanceof A.PseudoSelector && !simple.isClass;
  53452. else
  53453. t1 = true;
  53454. return t1 && this.uniqueSelectors.contains$1(0, simple);
  53455. },
  53456. $signature: 13
  53457. };
  53458. A.paths_closure.prototype = {
  53459. call$2(paths, choice) {
  53460. var t1 = this.T;
  53461. t1 = J.expand$1$1$ax(choice, new A.paths__closure(paths, t1), t1._eval$1("List<0>"));
  53462. return A.List_List$of(t1, true, t1.$ti._eval$1("Iterable.E"));
  53463. },
  53464. $signature() {
  53465. return this.T._eval$1("List<List<0>>(List<List<0>>,List<0>)");
  53466. }
  53467. };
  53468. A.paths__closure.prototype = {
  53469. call$1(option) {
  53470. var t1 = this.T;
  53471. return J.map$1$1$ax(this.paths, new A.paths___closure(option, t1), t1._eval$1("List<0>"));
  53472. },
  53473. $signature() {
  53474. return this.T._eval$1("Iterable<List<0>>(0)");
  53475. }
  53476. };
  53477. A.paths___closure.prototype = {
  53478. call$1(path) {
  53479. var t1 = A.List_List$of(path, true, this.T);
  53480. t1.push(this.option);
  53481. return t1;
  53482. },
  53483. $signature() {
  53484. return this.T._eval$1("List<0>(List<0>)");
  53485. }
  53486. };
  53487. A.listIsSuperselector_closure.prototype = {
  53488. call$1(complex1) {
  53489. return B.JSArray_methods.any$1(this.list1, new A.listIsSuperselector__closure(complex1));
  53490. },
  53491. $signature: 19
  53492. };
  53493. A.listIsSuperselector__closure.prototype = {
  53494. call$1(complex2) {
  53495. return complex2.isSuperselector$1(this.complex1);
  53496. },
  53497. $signature: 19
  53498. };
  53499. A.complexIsSuperselector_closure.prototype = {
  53500. call$1($parent) {
  53501. return $parent.combinators.length > 1;
  53502. },
  53503. $signature: 53
  53504. };
  53505. A.complexIsSuperselector_closure0.prototype = {
  53506. call$1(component) {
  53507. return A._isSupercombinator(this.combinator1, A.IterableExtension_get_firstOrNull(component.combinators));
  53508. },
  53509. $signature: 53
  53510. };
  53511. A._compatibleWithPreviousCombinator_closure.prototype = {
  53512. call$1(component) {
  53513. var t1 = component.combinators,
  53514. t2 = A.IterableExtension_get_firstOrNull(t1);
  53515. if (!J.$eq$(t2 == null ? null : t2.value, B.Combinator_y18)) {
  53516. t1 = A.IterableExtension_get_firstOrNull(t1);
  53517. t1 = J.$eq$(t1 == null ? null : t1.value, B.Combinator_gRV);
  53518. } else
  53519. t1 = true;
  53520. return t1;
  53521. },
  53522. $signature: 53
  53523. };
  53524. A.compoundIsSuperselector_closure.prototype = {
  53525. call$1(simple1) {
  53526. return B.JSArray_methods.any$1(this.compound2.components, simple1.get$isSuperselector());
  53527. },
  53528. $signature: 13
  53529. };
  53530. A._selectorPseudoIsSuperselector_closure.prototype = {
  53531. call$1(selector2) {
  53532. return A.listIsSuperselector(this.selector1.components, selector2.components);
  53533. },
  53534. $signature: 69
  53535. };
  53536. A._selectorPseudoIsSuperselector_closure0.prototype = {
  53537. call$1(complex1) {
  53538. var t1, t2;
  53539. if (complex1.leadingCombinators.length === 0) {
  53540. t1 = A._setArrayType([], type$.JSArray_ComplexSelectorComponent);
  53541. t2 = this.parents;
  53542. if (t2 != null)
  53543. B.JSArray_methods.addAll$1(t1, t2);
  53544. t2 = this.compound2;
  53545. t1.push(new A.ComplexSelectorComponent(t2, A.List_List$unmodifiable(B.List_empty0, type$.CssValue_Combinator), t2.span));
  53546. t1 = A.complexIsSuperselector(complex1.components, t1);
  53547. } else
  53548. t1 = false;
  53549. return t1;
  53550. },
  53551. $signature: 19
  53552. };
  53553. A._selectorPseudoIsSuperselector_closure1.prototype = {
  53554. call$1(selector2) {
  53555. return A.listIsSuperselector(this.selector1.components, selector2.components);
  53556. },
  53557. $signature: 69
  53558. };
  53559. A._selectorPseudoIsSuperselector_closure2.prototype = {
  53560. call$1(selector2) {
  53561. return A.listIsSuperselector(this.selector1.components, selector2.components);
  53562. },
  53563. $signature: 69
  53564. };
  53565. A._selectorPseudoIsSuperselector_closure3.prototype = {
  53566. call$1(complex) {
  53567. if (complex.accept$1(B._IsBogusVisitor_true))
  53568. return false;
  53569. return B.JSArray_methods.any$1(this.compound2.components, new A._selectorPseudoIsSuperselector__closure(complex, this.pseudo1));
  53570. },
  53571. $signature: 19
  53572. };
  53573. A._selectorPseudoIsSuperselector__closure.prototype = {
  53574. call$1(simple2) {
  53575. var t1, selector2, _0_4, _this = this;
  53576. $label0$1: {
  53577. if (simple2 instanceof A.TypeSelector) {
  53578. t1 = B.JSArray_methods.any$1(B.JSArray_methods.get$last(_this.complex.components).selector.components, new A._selectorPseudoIsSuperselector___closure(simple2));
  53579. break $label0$1;
  53580. }
  53581. if (simple2 instanceof A.IDSelector) {
  53582. t1 = B.JSArray_methods.any$1(B.JSArray_methods.get$last(_this.complex.components).selector.components, new A._selectorPseudoIsSuperselector___closure0(simple2));
  53583. break $label0$1;
  53584. }
  53585. selector2 = null;
  53586. t1 = false;
  53587. if (simple2 instanceof A.PseudoSelector) {
  53588. _0_4 = simple2.selector;
  53589. if (_0_4 != null) {
  53590. selector2 = _0_4 == null ? type$.SelectorList._as(_0_4) : _0_4;
  53591. t1 = simple2.name === _this.pseudo1.name;
  53592. }
  53593. }
  53594. if (t1) {
  53595. t1 = A.listIsSuperselector(selector2.components, A._setArrayType([_this.complex], type$.JSArray_ComplexSelector));
  53596. break $label0$1;
  53597. }
  53598. t1 = false;
  53599. break $label0$1;
  53600. }
  53601. return t1;
  53602. },
  53603. $signature: 13
  53604. };
  53605. A._selectorPseudoIsSuperselector___closure.prototype = {
  53606. call$1(simple1) {
  53607. var t1;
  53608. if (simple1 instanceof A.TypeSelector) {
  53609. t1 = this.simple2;
  53610. t1 = !(t1 instanceof A.TypeSelector && t1.name.$eq(0, simple1.name));
  53611. } else
  53612. t1 = false;
  53613. return t1;
  53614. },
  53615. $signature: 13
  53616. };
  53617. A._selectorPseudoIsSuperselector___closure0.prototype = {
  53618. call$1(simple1) {
  53619. var t1;
  53620. if (simple1 instanceof A.IDSelector) {
  53621. t1 = this.simple2;
  53622. t1 = !(t1 instanceof A.IDSelector && t1.name === simple1.name);
  53623. } else
  53624. t1 = false;
  53625. return t1;
  53626. },
  53627. $signature: 13
  53628. };
  53629. A._selectorPseudoIsSuperselector_closure4.prototype = {
  53630. call$1(selector2) {
  53631. var t1 = B.C_ListEquality.equals$2(0, this.selector1.components, selector2.components);
  53632. return t1;
  53633. },
  53634. $signature: 69
  53635. };
  53636. A._selectorPseudoIsSuperselector_closure5.prototype = {
  53637. call$1(pseudo2) {
  53638. var t1, selector2;
  53639. if (!(pseudo2 instanceof A.PseudoSelector))
  53640. return false;
  53641. t1 = this.pseudo1;
  53642. if (pseudo2.name !== t1.name)
  53643. return false;
  53644. if (pseudo2.argument != t1.argument)
  53645. return false;
  53646. selector2 = pseudo2.selector;
  53647. if (selector2 == null)
  53648. return false;
  53649. return A.listIsSuperselector(this.selector1.components, selector2.components);
  53650. },
  53651. $signature: 13
  53652. };
  53653. A._selectorPseudoArgs_closure.prototype = {
  53654. call$1(pseudo) {
  53655. return pseudo.isClass === this.isClass && pseudo.name === this.name;
  53656. },
  53657. $signature: 466
  53658. };
  53659. A._selectorPseudoArgs_closure0.prototype = {
  53660. call$1(pseudo) {
  53661. return pseudo.selector;
  53662. },
  53663. $signature: 470
  53664. };
  53665. A.MergedExtension.prototype = {
  53666. unmerge$0() {
  53667. return new A._SyncStarIterable(this.unmerge$body$MergedExtension(), type$._SyncStarIterable_Extension);
  53668. },
  53669. unmerge$body$MergedExtension() {
  53670. var $async$self = this;
  53671. return function() {
  53672. var $async$goto = 0, $async$handler = 1, $async$currentError, right, left;
  53673. return function $async$unmerge$0($async$iterator, $async$errorCode, $async$result) {
  53674. if ($async$errorCode === 1) {
  53675. $async$currentError = $async$result;
  53676. $async$goto = $async$handler;
  53677. }
  53678. while (true)
  53679. switch ($async$goto) {
  53680. case 0:
  53681. // Function start
  53682. left = $async$self.left;
  53683. $async$goto = left instanceof A.MergedExtension ? 2 : 4;
  53684. break;
  53685. case 2:
  53686. // then
  53687. $async$goto = 5;
  53688. return $async$iterator._yieldStar$1(left.unmerge$0());
  53689. case 5:
  53690. // after yield
  53691. // goto join
  53692. $async$goto = 3;
  53693. break;
  53694. case 4:
  53695. // else
  53696. $async$goto = 6;
  53697. return $async$iterator._async$_current = left, 1;
  53698. case 6:
  53699. // after yield
  53700. case 3:
  53701. // join
  53702. right = $async$self.right;
  53703. $async$goto = right instanceof A.MergedExtension ? 7 : 9;
  53704. break;
  53705. case 7:
  53706. // then
  53707. $async$goto = 10;
  53708. return $async$iterator._yieldStar$1(right.unmerge$0());
  53709. case 10:
  53710. // after yield
  53711. // goto join
  53712. $async$goto = 8;
  53713. break;
  53714. case 9:
  53715. // else
  53716. $async$goto = 11;
  53717. return $async$iterator._async$_current = right, 1;
  53718. case 11:
  53719. // after yield
  53720. case 8:
  53721. // join
  53722. // implicit return
  53723. return 0;
  53724. case 1:
  53725. // rethrow
  53726. return $async$iterator._datum = $async$currentError, 3;
  53727. }
  53728. };
  53729. };
  53730. }
  53731. };
  53732. A.ExtendMode.prototype = {
  53733. _enumToString$0() {
  53734. return "ExtendMode." + this._name;
  53735. },
  53736. toString$0(_) {
  53737. return this.name;
  53738. }
  53739. };
  53740. A.globalFunctions_closure.prototype = {
  53741. call$1($arguments) {
  53742. var t1 = J.getInterceptor$asx($arguments);
  53743. return t1.$index($arguments, 0).get$isTruthy() ? t1.$index($arguments, 1) : t1.$index($arguments, 2);
  53744. },
  53745. $signature: 4
  53746. };
  53747. A.global_closure0.prototype = {
  53748. call$1(color) {
  53749. return B.JSNumber_methods.round$0(color._legacyChannel$2(B.RgbColorSpace_mlz, "red"));
  53750. },
  53751. $signature: 64
  53752. };
  53753. A.global_closure1.prototype = {
  53754. call$1(color) {
  53755. return B.JSNumber_methods.round$0(color._legacyChannel$2(B.RgbColorSpace_mlz, "green"));
  53756. },
  53757. $signature: 64
  53758. };
  53759. A.global_closure2.prototype = {
  53760. call$1(color) {
  53761. return B.JSNumber_methods.round$0(color._legacyChannel$2(B.RgbColorSpace_mlz, "blue"));
  53762. },
  53763. $signature: 64
  53764. };
  53765. A.global_closure3.prototype = {
  53766. call$1($arguments) {
  53767. return A._rgb("rgb", $arguments);
  53768. },
  53769. $signature: 4
  53770. };
  53771. A.global_closure4.prototype = {
  53772. call$1($arguments) {
  53773. return A._rgb("rgb", $arguments);
  53774. },
  53775. $signature: 4
  53776. };
  53777. A.global_closure5.prototype = {
  53778. call$1($arguments) {
  53779. return A._rgbTwoArg("rgb", $arguments);
  53780. },
  53781. $signature: 4
  53782. };
  53783. A.global_closure6.prototype = {
  53784. call$1($arguments) {
  53785. return A._parseChannels("rgb", J.$index$asx($arguments, 0), "channels", B.RgbColorSpace_mlz);
  53786. },
  53787. $signature: 4
  53788. };
  53789. A.global_closure7.prototype = {
  53790. call$1($arguments) {
  53791. return A._rgb("rgba", $arguments);
  53792. },
  53793. $signature: 4
  53794. };
  53795. A.global_closure8.prototype = {
  53796. call$1($arguments) {
  53797. return A._rgb("rgba", $arguments);
  53798. },
  53799. $signature: 4
  53800. };
  53801. A.global_closure9.prototype = {
  53802. call$1($arguments) {
  53803. return A._rgbTwoArg("rgba", $arguments);
  53804. },
  53805. $signature: 4
  53806. };
  53807. A.global_closure10.prototype = {
  53808. call$1($arguments) {
  53809. return A._parseChannels("rgba", J.$index$asx($arguments, 0), "channels", B.RgbColorSpace_mlz);
  53810. },
  53811. $signature: 4
  53812. };
  53813. A.global_closure11.prototype = {
  53814. call$1($arguments) {
  53815. var t1 = J.getInterceptor$asx($arguments);
  53816. if (!(t1.$index($arguments, 0) instanceof A.SassNumber) && !t1.$index($arguments, 0).get$isSpecialNumber())
  53817. A.warnForDeprecation(string$.Globalci, B.Deprecation_0Gh);
  53818. return A._invert($arguments, true);
  53819. },
  53820. $signature: 4
  53821. };
  53822. A.global_closure12.prototype = {
  53823. call$1(color) {
  53824. return color._legacyChannel$2(B.HslColorSpace_gsm, "hue");
  53825. },
  53826. $signature: 49
  53827. };
  53828. A.global_closure13.prototype = {
  53829. call$1(color) {
  53830. return color._legacyChannel$2(B.HslColorSpace_gsm, "saturation");
  53831. },
  53832. $signature: 49
  53833. };
  53834. A.global_closure14.prototype = {
  53835. call$1(color) {
  53836. return color._legacyChannel$2(B.HslColorSpace_gsm, "lightness");
  53837. },
  53838. $signature: 49
  53839. };
  53840. A.global_closure15.prototype = {
  53841. call$1($arguments) {
  53842. return A._hsl("hsl", $arguments);
  53843. },
  53844. $signature: 4
  53845. };
  53846. A.global_closure16.prototype = {
  53847. call$1($arguments) {
  53848. return A._hsl("hsl", $arguments);
  53849. },
  53850. $signature: 4
  53851. };
  53852. A.global_closure17.prototype = {
  53853. call$1($arguments) {
  53854. var t1 = J.getInterceptor$asx($arguments);
  53855. if (t1.$index($arguments, 0).get$isVar() || t1.$index($arguments, 1).get$isVar())
  53856. return A._functionString("hsl", $arguments);
  53857. else
  53858. throw A.wrapException(A.SassScriptException$("Missing argument $lightness.", null));
  53859. },
  53860. $signature: 18
  53861. };
  53862. A.global_closure18.prototype = {
  53863. call$1($arguments) {
  53864. return A._parseChannels("hsl", J.$index$asx($arguments, 0), "channels", B.HslColorSpace_gsm);
  53865. },
  53866. $signature: 4
  53867. };
  53868. A.global_closure19.prototype = {
  53869. call$1($arguments) {
  53870. return A._hsl("hsla", $arguments);
  53871. },
  53872. $signature: 4
  53873. };
  53874. A.global_closure20.prototype = {
  53875. call$1($arguments) {
  53876. return A._hsl("hsla", $arguments);
  53877. },
  53878. $signature: 4
  53879. };
  53880. A.global_closure21.prototype = {
  53881. call$1($arguments) {
  53882. var t1 = J.getInterceptor$asx($arguments);
  53883. if (t1.$index($arguments, 0).get$isVar() || t1.$index($arguments, 1).get$isVar())
  53884. return A._functionString("hsla", $arguments);
  53885. else
  53886. throw A.wrapException(A.SassScriptException$("Missing argument $lightness.", null));
  53887. },
  53888. $signature: 18
  53889. };
  53890. A.global_closure22.prototype = {
  53891. call$1($arguments) {
  53892. return A._parseChannels("hsla", J.$index$asx($arguments, 0), "channels", B.HslColorSpace_gsm);
  53893. },
  53894. $signature: 4
  53895. };
  53896. A.global_closure23.prototype = {
  53897. call$1($arguments) {
  53898. var t1 = J.getInterceptor$asx($arguments);
  53899. if (t1.$index($arguments, 0) instanceof A.SassNumber || t1.$index($arguments, 0).get$isSpecialNumber())
  53900. return A._functionString("grayscale", $arguments);
  53901. else {
  53902. A.warnForDeprecation(string$.Globalcg, B.Deprecation_0Gh);
  53903. return A._grayscale(t1.$index($arguments, 0));
  53904. }
  53905. },
  53906. $signature: 4
  53907. };
  53908. A.global_closure24.prototype = {
  53909. call$1($arguments) {
  53910. var t1 = J.getInterceptor$asx($arguments),
  53911. color = t1.$index($arguments, 0).assertColor$1("color"),
  53912. degrees = A._angleValue(t1.$index($arguments, 1), "degrees");
  53913. if (!color._space.get$isLegacyInternal())
  53914. throw A.wrapException(A.SassScriptException$(string$.adjusto, null));
  53915. A.warnForDeprecation(string$.adjustd + A.SassNumber_SassNumber(degrees, "deg").toString$0(0) + string$.x29x0a_Mor_, B.Deprecation_izR);
  53916. return color.changeHsl$1$hue(color._legacyChannel$2(B.HslColorSpace_gsm, "hue") + degrees);
  53917. },
  53918. $signature: 21
  53919. };
  53920. A.global_closure25.prototype = {
  53921. call$1($arguments) {
  53922. var result,
  53923. _s9_ = "lightness",
  53924. t1 = J.getInterceptor$asx($arguments),
  53925. color = t1.$index($arguments, 0).assertColor$1("color"),
  53926. amount = t1.$index($arguments, 1).assertNumber$1("amount");
  53927. if (!color._space.get$isLegacyInternal())
  53928. throw A.wrapException(A.SassScriptException$(string$.lighte, null));
  53929. t1 = color._legacyChannel$2(B.HslColorSpace_gsm, _s9_) + amount.valueInRange$3(0, 100, "amount");
  53930. result = color.changeHsl$1$lightness(isNaN(t1) ? 0 : B.JSNumber_methods.clamp$2(t1, 0, 100));
  53931. A.warnForDeprecation("lighten() is deprecated. " + A._suggestScaleAndAdjust(color, amount._number$_value, _s9_) + string$.x0a_Morex3ac, B.Deprecation_izR);
  53932. return result;
  53933. },
  53934. $signature: 21
  53935. };
  53936. A.global_closure26.prototype = {
  53937. call$1($arguments) {
  53938. var result,
  53939. _s9_ = "lightness",
  53940. t1 = J.getInterceptor$asx($arguments),
  53941. color = t1.$index($arguments, 0).assertColor$1("color"),
  53942. amount = t1.$index($arguments, 1).assertNumber$1("amount");
  53943. if (!color._space.get$isLegacyInternal())
  53944. throw A.wrapException(A.SassScriptException$(string$.darken, null));
  53945. t1 = color._legacyChannel$2(B.HslColorSpace_gsm, _s9_) - amount.valueInRange$3(0, 100, "amount");
  53946. result = color.changeHsl$1$lightness(isNaN(t1) ? 0 : B.JSNumber_methods.clamp$2(t1, 0, 100));
  53947. A.warnForDeprecation("darken() is deprecated. " + A._suggestScaleAndAdjust(color, -amount._number$_value, _s9_) + string$.x0a_Morex3ac, B.Deprecation_izR);
  53948. return result;
  53949. },
  53950. $signature: 21
  53951. };
  53952. A.global_closure27.prototype = {
  53953. call$1($arguments) {
  53954. var t1 = J.getInterceptor$asx($arguments);
  53955. if (t1.$index($arguments, 0) instanceof A.SassNumber || t1.$index($arguments, 0).get$isSpecialNumber())
  53956. return A._functionString("saturate", $arguments);
  53957. return new A.SassString("saturate(" + A.serializeValue(t1.$index($arguments, 0).assertNumber$1("amount"), false, true) + ")", false);
  53958. },
  53959. $signature: 18
  53960. };
  53961. A.global_closure28.prototype = {
  53962. call$1($arguments) {
  53963. var t1, color, amount, result,
  53964. _s10_ = "saturation";
  53965. A.warnForDeprecation(string$.Globalcad, B.Deprecation_0Gh);
  53966. t1 = J.getInterceptor$asx($arguments);
  53967. color = t1.$index($arguments, 0).assertColor$1("color");
  53968. amount = t1.$index($arguments, 1).assertNumber$1("amount");
  53969. if (!color._space.get$isLegacyInternal())
  53970. throw A.wrapException(A.SassScriptException$(string$.satura, null));
  53971. t1 = color._legacyChannel$2(B.HslColorSpace_gsm, _s10_) + amount.valueInRange$3(0, 100, "amount");
  53972. result = color.changeHsl$1$saturation(isNaN(t1) ? 0 : B.JSNumber_methods.clamp$2(t1, 0, 100));
  53973. A.warnForDeprecation("saturate() is deprecated. " + A._suggestScaleAndAdjust(color, amount._number$_value, _s10_) + string$.x0a_Morex3ac, B.Deprecation_izR);
  53974. return result;
  53975. },
  53976. $signature: 21
  53977. };
  53978. A.global_closure29.prototype = {
  53979. call$1($arguments) {
  53980. var result,
  53981. _s10_ = "saturation",
  53982. t1 = J.getInterceptor$asx($arguments),
  53983. color = t1.$index($arguments, 0).assertColor$1("color"),
  53984. amount = t1.$index($arguments, 1).assertNumber$1("amount");
  53985. if (!color._space.get$isLegacyInternal())
  53986. throw A.wrapException(A.SassScriptException$(string$.desatu, null));
  53987. t1 = color._legacyChannel$2(B.HslColorSpace_gsm, _s10_) - amount.valueInRange$3(0, 100, "amount");
  53988. result = color.changeHsl$1$saturation(isNaN(t1) ? 0 : B.JSNumber_methods.clamp$2(t1, 0, 100));
  53989. A.warnForDeprecation("desaturate() is deprecated. " + A._suggestScaleAndAdjust(color, -amount._number$_value, _s10_) + string$.x0a_Morex3ac, B.Deprecation_izR);
  53990. return result;
  53991. },
  53992. $signature: 21
  53993. };
  53994. A.global_closure30.prototype = {
  53995. call$1($arguments) {
  53996. return A._opacify("opacify", $arguments);
  53997. },
  53998. $signature: 21
  53999. };
  54000. A.global_closure31.prototype = {
  54001. call$1($arguments) {
  54002. return A._opacify("fade-in", $arguments);
  54003. },
  54004. $signature: 21
  54005. };
  54006. A.global_closure32.prototype = {
  54007. call$1($arguments) {
  54008. return A._transparentize("transparentize", $arguments);
  54009. },
  54010. $signature: 21
  54011. };
  54012. A.global_closure33.prototype = {
  54013. call$1($arguments) {
  54014. return A._transparentize("fade-out", $arguments);
  54015. },
  54016. $signature: 21
  54017. };
  54018. A.global_closure34.prototype = {
  54019. call$1($arguments) {
  54020. var _0_0 = J.$index$asx($arguments, 0),
  54021. t1 = false;
  54022. if (_0_0 instanceof A.SassString)
  54023. if (!_0_0._hasQuotes)
  54024. t1 = B.JSString_methods.contains$1(_0_0._string$_text, $.$get$_microsoftFilterStart());
  54025. if (t1)
  54026. return A._functionString("alpha", $arguments);
  54027. if (_0_0 instanceof A.SassColor && !_0_0._space.get$isLegacyInternal())
  54028. throw A.wrapException(A.SassScriptException$(string$.alpha_, null));
  54029. A.warnForDeprecation(string$.Globalcal, B.Deprecation_0Gh);
  54030. t1 = _0_0.assertColor$1("color").alphaOrNull;
  54031. return A.SassNumber_SassNumber(t1 == null ? 0 : t1, null);
  54032. },
  54033. $signature: 4
  54034. };
  54035. A.global_closure35.prototype = {
  54036. call$1($arguments) {
  54037. var t1,
  54038. argList = J.$index$asx($arguments, 0).get$asList();
  54039. if (argList.length !== 0 && B.JSArray_methods.every$1(argList, new A.global__closure()))
  54040. return A._functionString("alpha", $arguments);
  54041. t1 = argList.length;
  54042. if (t1 === 0)
  54043. throw A.wrapException(A.SassScriptException$("Missing argument $color.", null));
  54044. else
  54045. throw A.wrapException(A.SassScriptException$("Only 1 argument allowed, but " + t1 + " were passed.", null));
  54046. },
  54047. $signature: 18
  54048. };
  54049. A.global__closure.prototype = {
  54050. call$1(argument) {
  54051. return argument instanceof A.SassString && !argument._hasQuotes && B.JSString_methods.contains$1(argument._string$_text, $.$get$_microsoftFilterStart());
  54052. },
  54053. $signature: 77
  54054. };
  54055. A.global_closure36.prototype = {
  54056. call$1($arguments) {
  54057. var t1 = J.getInterceptor$asx($arguments);
  54058. if (t1.$index($arguments, 0) instanceof A.SassNumber || t1.$index($arguments, 0).get$isSpecialNumber())
  54059. return A._functionString("opacity", $arguments);
  54060. A.warnForDeprecation(string$.Globalco, B.Deprecation_0Gh);
  54061. t1 = t1.$index($arguments, 0).assertColor$1("color").alphaOrNull;
  54062. return A.SassNumber_SassNumber(t1 == null ? 0 : t1, null);
  54063. },
  54064. $signature: 4
  54065. };
  54066. A.global_closure37.prototype = {
  54067. call$1($arguments) {
  54068. return A._parseChannels("color", J.$index$asx($arguments, 0), "description", null);
  54069. },
  54070. $signature: 4
  54071. };
  54072. A.global_closure38.prototype = {
  54073. call$1($arguments) {
  54074. return A._parseChannels("hwb", J.$index$asx($arguments, 0), "channels", B.HwbColorSpace_06z);
  54075. },
  54076. $signature: 4
  54077. };
  54078. A.global_closure39.prototype = {
  54079. call$1($arguments) {
  54080. return A._parseChannels("lab", J.$index$asx($arguments, 0), "channels", B.LabColorSpace_IF2);
  54081. },
  54082. $signature: 4
  54083. };
  54084. A.global_closure40.prototype = {
  54085. call$1($arguments) {
  54086. return A._parseChannels("lch", J.$index$asx($arguments, 0), "channels", B.LchColorSpace_wv8);
  54087. },
  54088. $signature: 4
  54089. };
  54090. A.global_closure41.prototype = {
  54091. call$1($arguments) {
  54092. return A._parseChannels("oklab", J.$index$asx($arguments, 0), "channels", B.OklabColorSpace_yrt);
  54093. },
  54094. $signature: 4
  54095. };
  54096. A.global_closure42.prototype = {
  54097. call$1($arguments) {
  54098. return A._parseChannels("oklch", J.$index$asx($arguments, 0), "channels", B.OklchColorSpace_li8);
  54099. },
  54100. $signature: 4
  54101. };
  54102. A.module_closure1.prototype = {
  54103. call$1(color) {
  54104. return B.JSNumber_methods.round$0(color._legacyChannel$2(B.RgbColorSpace_mlz, "red"));
  54105. },
  54106. $signature: 64
  54107. };
  54108. A.module_closure2.prototype = {
  54109. call$1(color) {
  54110. return B.JSNumber_methods.round$0(color._legacyChannel$2(B.RgbColorSpace_mlz, "green"));
  54111. },
  54112. $signature: 64
  54113. };
  54114. A.module_closure3.prototype = {
  54115. call$1(color) {
  54116. return B.JSNumber_methods.round$0(color._legacyChannel$2(B.RgbColorSpace_mlz, "blue"));
  54117. },
  54118. $signature: 64
  54119. };
  54120. A.module_closure4.prototype = {
  54121. call$1($arguments) {
  54122. var result = A._invert($arguments, false);
  54123. if (result instanceof A.SassString)
  54124. A.warnForDeprecation("Passing a number (" + A.S(J.$index$asx($arguments, 0)) + string$.x29x20to_ci + result.toString$0(0), B.Deprecation_ePO);
  54125. return result;
  54126. },
  54127. $signature: 4
  54128. };
  54129. A.module_closure5.prototype = {
  54130. call$1(color) {
  54131. return color._legacyChannel$2(B.HslColorSpace_gsm, "hue");
  54132. },
  54133. $signature: 49
  54134. };
  54135. A.module_closure6.prototype = {
  54136. call$1(color) {
  54137. return color._legacyChannel$2(B.HslColorSpace_gsm, "saturation");
  54138. },
  54139. $signature: 49
  54140. };
  54141. A.module_closure7.prototype = {
  54142. call$1(color) {
  54143. return color._legacyChannel$2(B.HslColorSpace_gsm, "lightness");
  54144. },
  54145. $signature: 49
  54146. };
  54147. A.module_closure8.prototype = {
  54148. call$1($arguments) {
  54149. var result,
  54150. t1 = J.getInterceptor$asx($arguments);
  54151. if (t1.$index($arguments, 0) instanceof A.SassNumber) {
  54152. result = A._functionString("grayscale", t1.take$1($arguments, 1));
  54153. A.warnForDeprecation("Passing a number (" + A.S(t1.$index($arguments, 0)) + string$.x29x20to_cg + result.toString$0(0), B.Deprecation_ePO);
  54154. return result;
  54155. }
  54156. return A._grayscale(t1.$index($arguments, 0));
  54157. },
  54158. $signature: 4
  54159. };
  54160. A.module_closure9.prototype = {
  54161. call$1($arguments) {
  54162. var t1 = J.getInterceptor$asx($arguments),
  54163. t2 = type$.JSArray_Value;
  54164. return A._parseChannels("hwb", A.SassList$(A._setArrayType([A.SassList$(A._setArrayType([t1.$index($arguments, 0), t1.$index($arguments, 1), t1.$index($arguments, 2)], t2), B.ListSeparator_nbm, false), t1.$index($arguments, 3)], t2), B.ListSeparator_cQA, false), null, B.HwbColorSpace_06z);
  54165. },
  54166. $signature: 4
  54167. };
  54168. A.module_closure10.prototype = {
  54169. call$1($arguments) {
  54170. return A._parseChannels("hwb", J.$index$asx($arguments, 0), "channels", B.HwbColorSpace_06z);
  54171. },
  54172. $signature: 4
  54173. };
  54174. A.module_closure11.prototype = {
  54175. call$1(color) {
  54176. return color._legacyChannel$2(B.HwbColorSpace_06z, "whiteness");
  54177. },
  54178. $signature: 49
  54179. };
  54180. A.module_closure12.prototype = {
  54181. call$1(color) {
  54182. return color._legacyChannel$2(B.HwbColorSpace_06z, "blackness");
  54183. },
  54184. $signature: 49
  54185. };
  54186. A.module_closure13.prototype = {
  54187. call$1($arguments) {
  54188. var result,
  54189. _0_0 = J.$index$asx($arguments, 0),
  54190. t1 = false;
  54191. if (_0_0 instanceof A.SassString)
  54192. if (!_0_0._hasQuotes)
  54193. t1 = B.JSString_methods.contains$1(_0_0._string$_text, $.$get$_microsoftFilterStart());
  54194. if (t1) {
  54195. result = A._functionString("alpha", $arguments);
  54196. A.warnForDeprecation(string$.Using_c + result.toString$0(0), B.Deprecation_ePO);
  54197. return result;
  54198. }
  54199. if (_0_0 instanceof A.SassColor && !_0_0._space.get$isLegacyInternal())
  54200. throw A.wrapException(A.SassScriptException$(string$.color_a, null));
  54201. t1 = _0_0.assertColor$1("color").alphaOrNull;
  54202. return A.SassNumber_SassNumber(t1 == null ? 0 : t1, null);
  54203. },
  54204. $signature: 4
  54205. };
  54206. A.module_closure14.prototype = {
  54207. call$1($arguments) {
  54208. var result,
  54209. t1 = J.getInterceptor$asx($arguments);
  54210. if (B.JSArray_methods.every$1(t1.$index($arguments, 0).get$asList(), new A.module__closure2())) {
  54211. result = A._functionString("alpha", $arguments);
  54212. A.warnForDeprecation(string$.Using_c + result.toString$0(0), B.Deprecation_ePO);
  54213. return result;
  54214. }
  54215. throw A.wrapException(A.SassScriptException$("Only 1 argument allowed, but " + t1.get$length($arguments) + " were passed.", null));
  54216. },
  54217. $signature: 18
  54218. };
  54219. A.module__closure2.prototype = {
  54220. call$1(argument) {
  54221. return argument instanceof A.SassString && !argument._hasQuotes && B.JSString_methods.contains$1(argument._string$_text, $.$get$_microsoftFilterStart());
  54222. },
  54223. $signature: 77
  54224. };
  54225. A.module_closure15.prototype = {
  54226. call$1($arguments) {
  54227. var result,
  54228. t1 = J.getInterceptor$asx($arguments);
  54229. if (t1.$index($arguments, 0) instanceof A.SassNumber) {
  54230. result = A._functionString("opacity", $arguments);
  54231. A.warnForDeprecation("Passing a number (" + A.S(t1.$index($arguments, 0)) + string$.x20to_co + result.toString$0(0), B.Deprecation_ePO);
  54232. return result;
  54233. }
  54234. t1 = t1.$index($arguments, 0).assertColor$1("color").alphaOrNull;
  54235. return A.SassNumber_SassNumber(t1 == null ? 0 : t1, null);
  54236. },
  54237. $signature: 4
  54238. };
  54239. A.module_closure16.prototype = {
  54240. call$1($arguments) {
  54241. return new A.SassString(J.get$first$ax($arguments).assertColor$1("color")._space.name, false);
  54242. },
  54243. $signature: 18
  54244. };
  54245. A.module_closure17.prototype = {
  54246. call$1($arguments) {
  54247. var t1 = J.getInterceptor$asx($arguments);
  54248. return A._colorInSpace(t1.$index($arguments, 0), t1.$index($arguments, 1), false);
  54249. },
  54250. $signature: 21
  54251. };
  54252. A.module_closure18.prototype = {
  54253. call$1($arguments) {
  54254. return J.$index$asx($arguments, 0).assertColor$1("color")._space.get$isLegacyInternal() ? B.SassBoolean_true : B.SassBoolean_false;
  54255. },
  54256. $signature: 11
  54257. };
  54258. A.module_closure19.prototype = {
  54259. call$1($arguments) {
  54260. var t1 = J.getInterceptor$asx($arguments);
  54261. return t1.$index($arguments, 0).assertColor$1("color").isChannelMissing$3$channelName$colorName(A._channelName(t1.$index($arguments, 1)), "channel", "color") ? B.SassBoolean_true : B.SassBoolean_false;
  54262. },
  54263. $signature: 11
  54264. };
  54265. A.module_closure20.prototype = {
  54266. call$1($arguments) {
  54267. var t1 = J.getInterceptor$asx($arguments);
  54268. return A._colorInSpace(t1.$index($arguments, 0), t1.$index($arguments, 1), true).get$isInGamut() ? B.SassBoolean_true : B.SassBoolean_false;
  54269. },
  54270. $signature: 11
  54271. };
  54272. A.module_closure21.prototype = {
  54273. call$1($arguments) {
  54274. var space, method, _s5_ = "space", _s6_ = "method",
  54275. t1 = J.getInterceptor$asx($arguments),
  54276. color = t1.$index($arguments, 0).assertColor$1("color"),
  54277. t2 = t1.$index($arguments, 1);
  54278. if (t2.$eq(0, B.C__SassNull))
  54279. space = color._space;
  54280. else {
  54281. t2 = t2.assertString$1(_s5_);
  54282. t2.assertUnquoted$1(_s5_);
  54283. space = A.ColorSpace_fromName(t2._string$_text, _s5_);
  54284. }
  54285. if (J.$eq$(t1.$index($arguments, 2), B.C__SassNull))
  54286. throw A.wrapException(A.SassScriptException$(string$.color_t, _s6_));
  54287. t1 = t1.$index($arguments, 2).assertString$1(_s6_);
  54288. t1.assertUnquoted$1(_s6_);
  54289. method = A.GamutMapMethod_GamutMapMethod$fromName(t1._string$_text);
  54290. if (!space.get$isBoundedInternal())
  54291. return color;
  54292. t1 = color.toSpace$1(space);
  54293. t1 = t1.get$isInGamut() ? t1 : method.map$1(0, t1);
  54294. return t1.toSpace$2$legacyMissing(color._space, false);
  54295. },
  54296. $signature: 21
  54297. };
  54298. A.module_closure22.prototype = {
  54299. call$1($arguments) {
  54300. var channelIndex, channelInfo, channelValue, unit,
  54301. t1 = J.getInterceptor$asx($arguments),
  54302. color = A._colorInSpace(t1.$index($arguments, 0), t1.$index($arguments, 2), true),
  54303. channelName = A._channelName(t1.$index($arguments, 1));
  54304. if (channelName === "alpha") {
  54305. t1 = color.alphaOrNull;
  54306. return A.SassNumber_SassNumber(t1 == null ? 0 : t1, null);
  54307. }
  54308. t1 = color._space._channels;
  54309. channelIndex = B.JSArray_methods.indexWhere$1(t1, new A.module__closure1(channelName));
  54310. if (channelIndex === -1)
  54311. throw A.wrapException(A.SassScriptException$("Color " + color.toString$0(0) + " has no channel named " + channelName + ".", "channel"));
  54312. channelInfo = t1[channelIndex];
  54313. channelValue = color.get$channels()[channelIndex];
  54314. unit = channelInfo.associatedUnit;
  54315. return A.SassNumber_SassNumber(unit === "%" ? channelValue * 100 / type$.LinearChannel._as(channelInfo).max : channelValue, unit);
  54316. },
  54317. $signature: 23
  54318. };
  54319. A.module__closure1.prototype = {
  54320. call$1(channel) {
  54321. return channel.name === this.channelName;
  54322. },
  54323. $signature: 90
  54324. };
  54325. A.module_closure23.prototype = {
  54326. call$1($arguments) {
  54327. var t2, t3,
  54328. t1 = J.getInterceptor$asx($arguments),
  54329. color1 = t1.$index($arguments, 0).assertColor$1("color1"),
  54330. color2 = t1.$index($arguments, 1).assertColor$1("color2");
  54331. t1 = new A.module_closure_toXyzNoMissing();
  54332. if (color1._space === color2._space) {
  54333. t1 = color1.channel0OrNull;
  54334. t2 = false;
  54335. if (t1 == null)
  54336. t1 = 0;
  54337. t3 = color2.channel0OrNull;
  54338. if (A.fuzzyEquals(t1, t3 == null ? 0 : t3)) {
  54339. t1 = color1.channel1OrNull;
  54340. if (t1 == null)
  54341. t1 = 0;
  54342. t3 = color2.channel1OrNull;
  54343. if (A.fuzzyEquals(t1, t3 == null ? 0 : t3)) {
  54344. t1 = color1.channel2OrNull;
  54345. if (t1 == null)
  54346. t1 = 0;
  54347. t3 = color2.channel2OrNull;
  54348. if (A.fuzzyEquals(t1, t3 == null ? 0 : t3)) {
  54349. t1 = color1.alphaOrNull;
  54350. if (t1 == null)
  54351. t1 = 0;
  54352. t2 = color2.alphaOrNull;
  54353. t1 = A.fuzzyEquals(t1, t2 == null ? 0 : t2);
  54354. } else
  54355. t1 = t2;
  54356. } else
  54357. t1 = t2;
  54358. } else
  54359. t1 = t2;
  54360. } else
  54361. t1 = J.$eq$(t1.call$1(color1), t1.call$1(color2));
  54362. return t1 ? B.SassBoolean_true : B.SassBoolean_false;
  54363. },
  54364. $signature: 11
  54365. };
  54366. A.module_closure_toXyzNoMissing.prototype = {
  54367. call$1(color) {
  54368. var _1_1, _1_3, t1, _1_7, channel0, _1_8, channel1, _1_9, channel2, _1_10, alpha, _null = null;
  54369. $label0$0: {
  54370. _1_1 = color._space;
  54371. _1_3 = B.XyzD65ColorSpace_4CA === _1_1;
  54372. t1 = _1_3;
  54373. if (t1)
  54374. t1 = !(color.channel0OrNull == null || color.channel1OrNull == null || color.channel2OrNull == null || color.alphaOrNull == null);
  54375. else
  54376. t1 = false;
  54377. if (t1) {
  54378. t1 = color;
  54379. break $label0$0;
  54380. }
  54381. if (_1_3) {
  54382. _1_7 = color.channel0OrNull;
  54383. if (_1_7 == null)
  54384. _1_7 = 0;
  54385. channel0 = _1_7;
  54386. _1_8 = color.channel1OrNull;
  54387. if (_1_8 == null)
  54388. _1_8 = 0;
  54389. channel1 = _1_8;
  54390. _1_9 = color.channel2OrNull;
  54391. if (_1_9 == null)
  54392. _1_9 = 0;
  54393. channel2 = _1_9;
  54394. _1_10 = color.alphaOrNull;
  54395. if (_1_10 == null)
  54396. _1_10 = 0;
  54397. alpha = _1_10;
  54398. t1 = A.SassColor$_forSpace(B.XyzD65ColorSpace_4CA, channel0, channel1, channel2, alpha, _null);
  54399. break $label0$0;
  54400. }
  54401. _1_7 = color.channel0OrNull;
  54402. if (_1_7 == null)
  54403. _1_7 = 0;
  54404. channel0 = _1_7;
  54405. _1_8 = color.channel1OrNull;
  54406. if (_1_8 == null)
  54407. _1_8 = 0;
  54408. channel1 = _1_8;
  54409. _1_9 = color.channel2OrNull;
  54410. if (_1_9 == null)
  54411. _1_9 = 0;
  54412. channel2 = _1_9;
  54413. _1_10 = color.alphaOrNull;
  54414. if (_1_10 == null)
  54415. _1_10 = 0;
  54416. alpha = _1_10;
  54417. t1 = _1_1.convert$5(B.XyzD65ColorSpace_4CA, channel0, channel1, channel2, alpha);
  54418. break $label0$0;
  54419. }
  54420. return t1;
  54421. },
  54422. $signature: 536
  54423. };
  54424. A.module_closure24.prototype = {
  54425. call$1($arguments) {
  54426. var t1 = J.getInterceptor$asx($arguments);
  54427. return A._colorInSpace(t1.$index($arguments, 0), t1.$index($arguments, 2), true).isChannelPowerless$3$channelName$colorName(A._channelName(t1.$index($arguments, 1)), "channel", "color") ? B.SassBoolean_true : B.SassBoolean_false;
  54428. },
  54429. $signature: 11
  54430. };
  54431. A._mix_closure.prototype = {
  54432. call$1($arguments) {
  54433. var _s6_ = "weight",
  54434. _s41_ = string$.To_usem,
  54435. _s29_ = ", you must provide a $method.",
  54436. t1 = J.getInterceptor$asx($arguments),
  54437. color1 = t1.$index($arguments, 0).assertColor$1("color1"),
  54438. color2 = t1.$index($arguments, 1).assertColor$1("color2"),
  54439. weight = t1.$index($arguments, 2).assertNumber$1(_s6_);
  54440. if (!J.$eq$(t1.$index($arguments, 3), B.C__SassNull))
  54441. return color1.interpolate$4$legacyMissing$weight(color2, A.InterpolationMethod_InterpolationMethod$fromValue(t1.$index($arguments, 3), "method"), false, weight.valueInRangeWithUnit$4(0, 100, _s6_, "%") / 100);
  54442. A._checkPercent(weight, _s6_);
  54443. if (!color1._space.get$isLegacyInternal())
  54444. throw A.wrapException(A.SassScriptException$(_s41_ + color1.toString$0(0) + _s29_, "color1"));
  54445. else if (!color2._space.get$isLegacyInternal())
  54446. throw A.wrapException(A.SassScriptException$(_s41_ + color2.toString$0(0) + _s29_, "color2"));
  54447. return A._mixLegacy(color1, color2, weight);
  54448. },
  54449. $signature: 21
  54450. };
  54451. A._complement_closure.prototype = {
  54452. call$1($arguments) {
  54453. var space, t3, colorInSpace, t4, t5, t6, _s5_ = "space",
  54454. t1 = J.getInterceptor$asx($arguments),
  54455. color = t1.$index($arguments, 0).assertColor$1("color"),
  54456. t2 = color._space;
  54457. if (t2.get$isLegacyInternal() && J.$eq$(t1.$index($arguments, 1), B.C__SassNull))
  54458. space = B.HslColorSpace_gsm;
  54459. else {
  54460. t3 = t1.$index($arguments, 1).assertString$1(_s5_);
  54461. t3.assertUnquoted$1(_s5_);
  54462. space = A.ColorSpace_fromName(t3._string$_text, _s5_);
  54463. }
  54464. if (!space.get$isPolarInternal())
  54465. throw A.wrapException(A.SassScriptException$("Color space " + space.toString$0(0) + " doesn't have a hue channel.", _s5_));
  54466. colorInSpace = color.toSpace$2$legacyMissing(space, !J.$eq$(t1.$index($arguments, 1), B.C__SassNull));
  54467. t1 = space._channels;
  54468. t3 = colorInSpace.channel0OrNull;
  54469. t4 = colorInSpace.channel1OrNull;
  54470. t5 = colorInSpace.channel2OrNull;
  54471. t6 = colorInSpace.alphaOrNull;
  54472. return (space.get$isLegacyInternal() ? A.SassColor_SassColor$forSpaceInternal(space, A._adjustChannel(colorInSpace, t1[0], t3, A.SassNumber_SassNumber(180, null)), t4, t5, t6) : A.SassColor_SassColor$forSpaceInternal(space, t3, t4, A._adjustChannel(colorInSpace, t1[2], t5, A.SassNumber_SassNumber(180, null)), t6)).toSpace$2$legacyMissing(t2, false);
  54473. },
  54474. $signature: 21
  54475. };
  54476. A._adjust_closure.prototype = {
  54477. call$1($arguments) {
  54478. return A._updateComponents($arguments, true, false, false);
  54479. },
  54480. $signature: 21
  54481. };
  54482. A._scale_closure.prototype = {
  54483. call$1($arguments) {
  54484. return A._updateComponents($arguments, false, false, true);
  54485. },
  54486. $signature: 21
  54487. };
  54488. A._change_closure.prototype = {
  54489. call$1($arguments) {
  54490. return A._updateComponents($arguments, false, true, false);
  54491. },
  54492. $signature: 21
  54493. };
  54494. A._ieHexStr_closure.prototype = {
  54495. call$1($arguments) {
  54496. var t1, t2, t3, t4, t5,
  54497. color = J.$index$asx($arguments, 0).assertColor$1("color").toSpace$1(B.RgbColorSpace_mlz);
  54498. color = color.get$isInGamut() ? color : B.LocalMindeGamutMap_Q7f.map$1(0, color);
  54499. t1 = new A._ieHexStr_closure_hexString();
  54500. t2 = color.alphaOrNull;
  54501. t2 = A.S(t1.call$1((t2 == null ? 0 : t2) * 255));
  54502. t3 = color.channel0OrNull;
  54503. t3 = A.S(t1.call$1(t3 == null ? 0 : t3));
  54504. t4 = color.channel1OrNull;
  54505. t4 = A.S(t1.call$1(t4 == null ? 0 : t4));
  54506. t5 = color.channel2OrNull;
  54507. return new A.SassString("#" + t2 + t3 + t4 + A.S(t1.call$1(t5 == null ? 0 : t5)), false);
  54508. },
  54509. $signature: 18
  54510. };
  54511. A._ieHexStr_closure_hexString.prototype = {
  54512. call$1(component) {
  54513. return B.JSString_methods.padLeft$2(B.JSInt_methods.toRadixString$1(A.fuzzyRound(component), 16), 2, "0").toUpperCase();
  54514. },
  54515. $signature: 203
  54516. };
  54517. A._updateComponents_closure.prototype = {
  54518. call$1(space) {
  54519. return this.originalColor.toSpace$2$legacyMissing(space, false);
  54520. },
  54521. $signature: 542
  54522. };
  54523. A._updateComponents_closure0.prototype = {
  54524. call$1(info) {
  54525. return this._box_0.name === info.name;
  54526. },
  54527. $signature: 90
  54528. };
  54529. A._changeColor_closure.prototype = {
  54530. call$0() {
  54531. var t1 = this.alphaArg;
  54532. A.warnForDeprecation("$alpha: Passing a unit other than % (" + A.S(t1) + string$.x29x20is_d + t1.unitSuggestion$1("alpha") + string$.x0a_See_, B.Deprecation_int);
  54533. return t1.valueInRange$3(0, 1, "alpha");
  54534. },
  54535. $signature: 205
  54536. };
  54537. A._adjustColor_closure.prototype = {
  54538. call$1(alpha) {
  54539. return isNaN(alpha) ? 0 : B.JSNumber_methods.clamp$2(alpha, 0, 1);
  54540. },
  54541. $signature: 15
  54542. };
  54543. A._functionString_closure.prototype = {
  54544. call$1(argument) {
  54545. return A.serializeValue(argument, false, true);
  54546. },
  54547. $signature: 561
  54548. };
  54549. A._removedColorFunction_closure.prototype = {
  54550. call$1($arguments) {
  54551. var t1 = this.name,
  54552. t2 = J.getInterceptor$asx($arguments),
  54553. t3 = A.S(t2.$index($arguments, 0)),
  54554. t4 = this.negative ? "-" : "";
  54555. throw A.wrapException(A.SassScriptException$("The function " + t1 + string$.x28__isn + t3 + ", $" + this.argument + ": " + t4 + A.S(t2.$index($arguments, 1)) + string$.x29x0a_Moro + t1, null));
  54556. },
  54557. $signature: 563
  54558. };
  54559. A._rgb_closure.prototype = {
  54560. call$1(alpha) {
  54561. var t1 = A._percentageOrUnitless(alpha.assertNumber$1("alpha"), 1, "alpha");
  54562. return isNaN(t1) ? 0 : B.JSNumber_methods.clamp$2(t1, 0, 1);
  54563. },
  54564. $signature: 207
  54565. };
  54566. A._hsl_closure.prototype = {
  54567. call$1(alpha) {
  54568. var t1 = A._percentageOrUnitless(alpha.assertNumber$1("alpha"), 1, "alpha");
  54569. return isNaN(t1) ? 0 : B.JSNumber_methods.clamp$2(t1, 0, 1);
  54570. },
  54571. $signature: 207
  54572. };
  54573. A._parseChannels_closure.prototype = {
  54574. call$1($name) {
  54575. return $name + " channel";
  54576. },
  54577. $signature: 6
  54578. };
  54579. A._parseChannels_closure0.prototype = {
  54580. call$1(channel) {
  54581. return channel.get$isSpecialNumber();
  54582. },
  54583. $signature: 77
  54584. };
  54585. A._colorFromChannels_closure.prototype = {
  54586. call$1(channel0) {
  54587. return A._angleValue(channel0, "hue");
  54588. },
  54589. $signature: 122
  54590. };
  54591. A._colorFromChannels_closure0.prototype = {
  54592. call$1(channel0) {
  54593. return A._angleValue(channel0, "hue");
  54594. },
  54595. $signature: 122
  54596. };
  54597. A._channelFromValue_closure.prototype = {
  54598. call$1(value) {
  54599. var t1, _0_8, t2, _0_5, _0_8_isSet, upperClamped, t3,
  54600. _0_0 = this.channel;
  54601. $label0$0: {
  54602. t1 = _0_0 instanceof A.LinearChannel;
  54603. if (t1 && _0_0.requiresPercent && !value.hasUnit$1("%"))
  54604. A.throwExpression(A.SassScriptException$("Expected " + value.toString$0(0) + ' to have unit "%".', _0_0.name));
  54605. _0_8 = null;
  54606. t2 = false;
  54607. if (t1) {
  54608. _0_5 = _0_0.lowerClamped;
  54609. _0_8_isSet = !_0_5;
  54610. if (_0_8_isSet) {
  54611. _0_8 = _0_0.upperClamped;
  54612. t2 = !_0_8;
  54613. }
  54614. } else {
  54615. _0_5 = null;
  54616. _0_8_isSet = false;
  54617. }
  54618. if (t2) {
  54619. t1 = A._percentageOrUnitless(value, _0_0.max, _0_0.name);
  54620. break $label0$0;
  54621. }
  54622. if (t1 && !this.clamp) {
  54623. t1 = A._percentageOrUnitless(value, _0_0.max, _0_0.name);
  54624. break $label0$0;
  54625. }
  54626. if (t1) {
  54627. upperClamped = _0_8_isSet ? _0_8 : _0_0.upperClamped;
  54628. t1 = _0_0.max;
  54629. t2 = A._percentageOrUnitless(value, t1, _0_0.name);
  54630. t3 = _0_5 ? _0_0.min : -1 / 0;
  54631. t1 = upperClamped ? t1 : 1 / 0;
  54632. t1 = isNaN(t2) ? t3 : B.JSNumber_methods.clamp$2(t2, t3, t1);
  54633. break $label0$0;
  54634. }
  54635. t1 = B.JSNumber_methods.$mod(value.coerceValueToUnit$2("deg", _0_0.name), 360);
  54636. break $label0$0;
  54637. }
  54638. return t1;
  54639. },
  54640. $signature: 122
  54641. };
  54642. A._channelFunction_closure.prototype = {
  54643. call$1($arguments) {
  54644. var _this = this,
  54645. result = A.SassNumber_SassNumber(_this.getter.call$1(J.get$first$ax($arguments).assertColor$1("color")), _this.unit),
  54646. t1 = _this.global ? "" : "color.",
  54647. t2 = _this.name;
  54648. A.warnForDeprecation(t1 + t2 + string$.x28__is_d + t2 + '", $space: ' + _this.space.toString$0(0) + string$.x29x0a_Mor_, B.Deprecation_izR);
  54649. return result;
  54650. },
  54651. $signature: 23
  54652. };
  54653. A._suggestScaleAndAdjust_closure.prototype = {
  54654. call$1(channel) {
  54655. return channel.name === this.channelName;
  54656. },
  54657. $signature: 90
  54658. };
  54659. A._length_closure0.prototype = {
  54660. call$1($arguments) {
  54661. return A.SassNumber_SassNumber(J.$index$asx($arguments, 0).get$asList().length, null);
  54662. },
  54663. $signature: 23
  54664. };
  54665. A._nth_closure.prototype = {
  54666. call$1($arguments) {
  54667. var t1 = J.getInterceptor$asx($arguments),
  54668. list = t1.$index($arguments, 0),
  54669. index = t1.$index($arguments, 1);
  54670. return list.get$asList()[list.sassIndexToListIndex$2(index, "n")];
  54671. },
  54672. $signature: 4
  54673. };
  54674. A._setNth_closure.prototype = {
  54675. call$1($arguments) {
  54676. var newList,
  54677. t1 = J.getInterceptor$asx($arguments),
  54678. list = t1.$index($arguments, 0),
  54679. index = t1.$index($arguments, 1),
  54680. value = t1.$index($arguments, 2);
  54681. t1 = list.get$asList();
  54682. newList = A._setArrayType(t1.slice(0), A._arrayInstanceType(t1));
  54683. newList[list.sassIndexToListIndex$2(index, "n")] = value;
  54684. return list.withListContents$1(newList);
  54685. },
  54686. $signature: 27
  54687. };
  54688. A._join_closure.prototype = {
  54689. call$1($arguments) {
  54690. var _0_1, _0_4, _0_3, t2, t3, _0_40, separator, bracketed, _null = null,
  54691. t1 = J.getInterceptor$asx($arguments),
  54692. list1 = t1.$index($arguments, 0),
  54693. list2 = t1.$index($arguments, 1),
  54694. separatorParam = t1.$index($arguments, 2).assertString$1("separator"),
  54695. bracketedParam = t1.$index($arguments, 3),
  54696. _1_0 = separatorParam._string$_text;
  54697. $label1$1: {
  54698. if ("auto" === _1_0) {
  54699. _0_1 = list1.get$separator(list1);
  54700. _0_4 = list2.get$separator(list2);
  54701. $label0$0: {
  54702. t1 = _null;
  54703. _0_3 = B.ListSeparator_undecided_null_undecided === _0_1;
  54704. t2 = _0_3;
  54705. if (t2) {
  54706. t3 = B.ListSeparator_undecided_null_undecided === _0_4;
  54707. _0_40 = _0_4;
  54708. } else {
  54709. _0_40 = _null;
  54710. t3 = false;
  54711. }
  54712. if (t3) {
  54713. t1 = B.ListSeparator_nbm;
  54714. break $label0$0;
  54715. }
  54716. if (_0_3)
  54717. separator = t2 ? _0_40 : _0_4;
  54718. else
  54719. separator = t1;
  54720. if (!_0_3)
  54721. separator = _0_1;
  54722. t1 = separator;
  54723. break $label0$0;
  54724. }
  54725. break $label1$1;
  54726. }
  54727. if ("space" === _1_0) {
  54728. t1 = B.ListSeparator_nbm;
  54729. break $label1$1;
  54730. }
  54731. if ("comma" === _1_0) {
  54732. t1 = B.ListSeparator_ECn;
  54733. break $label1$1;
  54734. }
  54735. if ("slash" === _1_0) {
  54736. t1 = B.ListSeparator_cQA;
  54737. break $label1$1;
  54738. }
  54739. t1 = A.throwExpression(A.SassScriptException$(string$.x24separ, _null));
  54740. }
  54741. bracketed = bracketedParam instanceof A.SassString && bracketedParam._string$_text === "auto" ? list1.get$hasBrackets() : bracketedParam.get$isTruthy();
  54742. t2 = A.List_List$of(list1.get$asList(), true, type$.Value);
  54743. B.JSArray_methods.addAll$1(t2, list2.get$asList());
  54744. return A.SassList$(t2, t1, bracketed);
  54745. },
  54746. $signature: 27
  54747. };
  54748. A._append_closure0.prototype = {
  54749. call$1($arguments) {
  54750. var t2,
  54751. t1 = J.getInterceptor$asx($arguments),
  54752. list = t1.$index($arguments, 0),
  54753. value = t1.$index($arguments, 1),
  54754. _0_0 = t1.$index($arguments, 2).assertString$1("separator")._string$_text;
  54755. $label0$0: {
  54756. if ("auto" === _0_0) {
  54757. t1 = list.get$separator(list) === B.ListSeparator_undecided_null_undecided ? B.ListSeparator_nbm : list.get$separator(list);
  54758. break $label0$0;
  54759. }
  54760. if ("space" === _0_0) {
  54761. t1 = B.ListSeparator_nbm;
  54762. break $label0$0;
  54763. }
  54764. if ("comma" === _0_0) {
  54765. t1 = B.ListSeparator_ECn;
  54766. break $label0$0;
  54767. }
  54768. if ("slash" === _0_0) {
  54769. t1 = B.ListSeparator_cQA;
  54770. break $label0$0;
  54771. }
  54772. t1 = A.throwExpression(A.SassScriptException$(string$.x24separ, null));
  54773. }
  54774. t2 = A.List_List$of(list.get$asList(), true, type$.Value);
  54775. t2.push(value);
  54776. return list.withListContents$2$separator(t2, t1);
  54777. },
  54778. $signature: 27
  54779. };
  54780. A._zip_closure.prototype = {
  54781. call$1($arguments) {
  54782. var results, result, _box_0 = {},
  54783. t1 = J.$index$asx($arguments, 0).get$asList(),
  54784. t2 = A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,List<Value>>"),
  54785. lists = A.List_List$of(new A.MappedListIterable(t1, new A._zip__closure(), t2), true, t2._eval$1("ListIterable.E"));
  54786. if (lists.length === 0)
  54787. return B.SassList_bdS;
  54788. _box_0.i = 0;
  54789. results = A._setArrayType([], type$.JSArray_SassList);
  54790. for (t1 = A._arrayInstanceType(lists)._eval$1("MappedListIterable<1,Value>"), t2 = type$.Value; B.JSArray_methods.every$1(lists, new A._zip__closure0(_box_0));) {
  54791. result = A.List_List$from(new A.MappedListIterable(lists, new A._zip__closure1(_box_0), t1), false, t2);
  54792. result.fixed$length = Array;
  54793. result.immutable$list = Array;
  54794. results.push(new A.SassList(result, B.ListSeparator_nbm, false));
  54795. ++_box_0.i;
  54796. }
  54797. return A.SassList$(results, B.ListSeparator_ECn, false);
  54798. },
  54799. $signature: 27
  54800. };
  54801. A._zip__closure.prototype = {
  54802. call$1(list) {
  54803. return list.get$asList();
  54804. },
  54805. $signature: 577
  54806. };
  54807. A._zip__closure0.prototype = {
  54808. call$1(list) {
  54809. return this._box_0.i !== J.get$length$asx(list);
  54810. },
  54811. $signature: 578
  54812. };
  54813. A._zip__closure1.prototype = {
  54814. call$1(list) {
  54815. return J.$index$asx(list, this._box_0.i);
  54816. },
  54817. $signature: 4
  54818. };
  54819. A._index_closure0.prototype = {
  54820. call$1($arguments) {
  54821. var t1 = J.getInterceptor$asx($arguments),
  54822. index = B.JSArray_methods.indexOf$1(t1.$index($arguments, 0).get$asList(), t1.$index($arguments, 1));
  54823. return index === -1 ? B.C__SassNull : A.SassNumber_SassNumber(index + 1, null);
  54824. },
  54825. $signature: 4
  54826. };
  54827. A._separator_closure.prototype = {
  54828. call$1($arguments) {
  54829. var t1,
  54830. _0_0 = J.get$separator$x(J.$index$asx($arguments, 0));
  54831. $label0$0: {
  54832. if (B.ListSeparator_ECn === _0_0) {
  54833. t1 = new A.SassString("comma", false);
  54834. break $label0$0;
  54835. }
  54836. if (B.ListSeparator_cQA === _0_0) {
  54837. t1 = new A.SassString("slash", false);
  54838. break $label0$0;
  54839. }
  54840. t1 = new A.SassString("space", false);
  54841. break $label0$0;
  54842. }
  54843. return t1;
  54844. },
  54845. $signature: 18
  54846. };
  54847. A._isBracketed_closure.prototype = {
  54848. call$1($arguments) {
  54849. return J.$index$asx($arguments, 0).get$hasBrackets() ? B.SassBoolean_true : B.SassBoolean_false;
  54850. },
  54851. $signature: 11
  54852. };
  54853. A._slash_closure.prototype = {
  54854. call$1($arguments) {
  54855. var list = J.$index$asx($arguments, 0).get$asList();
  54856. if (list.length < 2)
  54857. throw A.wrapException(A.SassScriptException$("At least two elements are required.", null));
  54858. return A.SassList$(list, B.ListSeparator_cQA, false);
  54859. },
  54860. $signature: 27
  54861. };
  54862. A._get_closure.prototype = {
  54863. call$1($arguments) {
  54864. var value,
  54865. t1 = J.getInterceptor$asx($arguments),
  54866. map = t1.$index($arguments, 0).assertMap$1("map"),
  54867. t2 = A._setArrayType([t1.$index($arguments, 1)], type$.JSArray_Value);
  54868. B.JSArray_methods.addAll$1(t2, t1.$index($arguments, 2).get$asList());
  54869. for (t1 = A.IterableExtension_get_exceptLast(t2), t1 = t1.get$iterator(t1); t1.moveNext$0(); map = value) {
  54870. value = map._map$_contents.$index(0, t1.get$current(t1));
  54871. if (!(value instanceof A.SassMap))
  54872. return B.C__SassNull;
  54873. }
  54874. t1 = map._map$_contents.$index(0, B.JSArray_methods.get$last(t2));
  54875. return t1 == null ? B.C__SassNull : t1;
  54876. },
  54877. $signature: 4
  54878. };
  54879. A._set_closure.prototype = {
  54880. call$1($arguments) {
  54881. var t1 = J.getInterceptor$asx($arguments);
  54882. return A._modify(t1.$index($arguments, 0).assertMap$1("map"), A._setArrayType([t1.$index($arguments, 1)], type$.JSArray_Value), new A._set__closure0($arguments), true);
  54883. },
  54884. $signature: 4
  54885. };
  54886. A._set__closure0.prototype = {
  54887. call$1(_) {
  54888. return J.$index$asx(this.$arguments, 2);
  54889. },
  54890. $signature: 41
  54891. };
  54892. A._set_closure0.prototype = {
  54893. call$1($arguments) {
  54894. var keys, t3, t1 = {},
  54895. t2 = J.getInterceptor$asx($arguments),
  54896. map = t2.$index($arguments, 0).assertMap$1("map"),
  54897. _0_0 = t2.$index($arguments, 1).get$asList(),
  54898. _0_1 = _0_0.length;
  54899. if (_0_1 <= 0)
  54900. throw A.wrapException(A.SassScriptException$("Expected $args to contain a key.", null));
  54901. if (_0_1 === 1)
  54902. throw A.wrapException(A.SassScriptException$("Expected $args to contain a value.", null));
  54903. keys = t1.value = null;
  54904. t2 = _0_1 >= 1;
  54905. if (t2) {
  54906. t3 = _0_1 - 1;
  54907. keys = B.JSArray_methods.sublist$2(_0_0, 0, t3);
  54908. t1.value = _0_0[t3];
  54909. }
  54910. if (t2)
  54911. return A._modify(map, keys, new A._set__closure(t1), true);
  54912. throw A.wrapException("[BUG] Unreachable code");
  54913. },
  54914. $signature: 4
  54915. };
  54916. A._set__closure.prototype = {
  54917. call$1(_) {
  54918. return this._box_0.value;
  54919. },
  54920. $signature: 41
  54921. };
  54922. A._merge_closure.prototype = {
  54923. call$1($arguments) {
  54924. var t2,
  54925. t1 = J.getInterceptor$asx($arguments),
  54926. map1 = t1.$index($arguments, 0).assertMap$1("map1"),
  54927. map2 = t1.$index($arguments, 1).assertMap$1("map2");
  54928. t1 = type$.Value;
  54929. t2 = A.LinkedHashMap_LinkedHashMap$of(map1._map$_contents, t1, t1);
  54930. t2.addAll$1(0, map2._map$_contents);
  54931. return new A.SassMap(A.ConstantMap_ConstantMap$from(t2, t1, t1));
  54932. },
  54933. $signature: 34
  54934. };
  54935. A._merge_closure0.prototype = {
  54936. call$1($arguments) {
  54937. var last, t2, keys, _null = null,
  54938. t1 = J.getInterceptor$asx($arguments),
  54939. map1 = t1.$index($arguments, 0).assertMap$1("map1"),
  54940. _0_0 = t1.$index($arguments, 1).get$asList(),
  54941. _0_1 = _0_0.length;
  54942. if (_0_1 <= 0)
  54943. throw A.wrapException(A.SassScriptException$("Expected $args to contain a key.", _null));
  54944. if (_0_1 === 1)
  54945. throw A.wrapException(A.SassScriptException$("Expected $args to contain a map.", _null));
  54946. t1 = _0_1 >= 1;
  54947. last = _null;
  54948. if (t1) {
  54949. t2 = _0_1 - 1;
  54950. keys = B.JSArray_methods.sublist$2(_0_0, 0, t2);
  54951. last = _0_0[t2];
  54952. } else
  54953. keys = _null;
  54954. if (t1)
  54955. return A._modify(map1, keys, new A._merge__closure(last.assertMap$1("map2")), true);
  54956. throw A.wrapException("[BUG] Unreachable code");
  54957. },
  54958. $signature: 4
  54959. };
  54960. A._merge__closure.prototype = {
  54961. call$1(oldValue) {
  54962. var t1, t2,
  54963. nestedMap = oldValue.tryMap$0();
  54964. if (nestedMap == null)
  54965. return this.map2;
  54966. t1 = type$.Value;
  54967. t2 = A.LinkedHashMap_LinkedHashMap$of(nestedMap._map$_contents, t1, t1);
  54968. t2.addAll$1(0, this.map2._map$_contents);
  54969. return new A.SassMap(A.ConstantMap_ConstantMap$from(t2, t1, t1));
  54970. },
  54971. $signature: 602
  54972. };
  54973. A._deepMerge_closure.prototype = {
  54974. call$1($arguments) {
  54975. var t1 = J.getInterceptor$asx($arguments);
  54976. return A._deepMergeImpl(t1.$index($arguments, 0).assertMap$1("map1"), t1.$index($arguments, 1).assertMap$1("map2"));
  54977. },
  54978. $signature: 34
  54979. };
  54980. A._deepRemove_closure.prototype = {
  54981. call$1($arguments) {
  54982. var t1 = J.getInterceptor$asx($arguments),
  54983. map = t1.$index($arguments, 0).assertMap$1("map"),
  54984. t2 = A._setArrayType([t1.$index($arguments, 1)], type$.JSArray_Value);
  54985. B.JSArray_methods.addAll$1(t2, t1.$index($arguments, 2).get$asList());
  54986. return A._modify(map, A.IterableExtension_get_exceptLast(t2), new A._deepRemove__closure(t2), false);
  54987. },
  54988. $signature: 4
  54989. };
  54990. A._deepRemove__closure.prototype = {
  54991. call$1(value) {
  54992. var t1, nestedMap, t2,
  54993. _0_0 = value.tryMap$0();
  54994. if (_0_0 != null) {
  54995. t1 = _0_0._map$_contents.containsKey$1(B.JSArray_methods.get$last(this.keys));
  54996. nestedMap = _0_0;
  54997. } else {
  54998. nestedMap = null;
  54999. t1 = false;
  55000. }
  55001. if (t1) {
  55002. t1 = type$.Value;
  55003. t2 = A.LinkedHashMap_LinkedHashMap$of(nestedMap._map$_contents, t1, t1);
  55004. t2.remove$1(0, B.JSArray_methods.get$last(this.keys));
  55005. return new A.SassMap(A.ConstantMap_ConstantMap$from(t2, t1, t1));
  55006. }
  55007. return value;
  55008. },
  55009. $signature: 41
  55010. };
  55011. A._remove_closure.prototype = {
  55012. call$1($arguments) {
  55013. return J.$index$asx($arguments, 0).assertMap$1("map");
  55014. },
  55015. $signature: 34
  55016. };
  55017. A._remove_closure0.prototype = {
  55018. call$1($arguments) {
  55019. var mutableMap, t3, _i,
  55020. t1 = J.getInterceptor$asx($arguments),
  55021. map = t1.$index($arguments, 0).assertMap$1("map"),
  55022. t2 = A._setArrayType([t1.$index($arguments, 1)], type$.JSArray_Value);
  55023. B.JSArray_methods.addAll$1(t2, t1.$index($arguments, 2).get$asList());
  55024. t1 = type$.Value;
  55025. mutableMap = A.LinkedHashMap_LinkedHashMap$of(map._map$_contents, t1, t1);
  55026. for (t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, A.throwConcurrentModificationError)(t2), ++_i)
  55027. mutableMap.remove$1(0, t2[_i]);
  55028. return new A.SassMap(A.ConstantMap_ConstantMap$from(mutableMap, t1, t1));
  55029. },
  55030. $signature: 34
  55031. };
  55032. A._keys_closure.prototype = {
  55033. call$1($arguments) {
  55034. var t1 = J.$index$asx($arguments, 0).assertMap$1("map")._map$_contents;
  55035. return A.SassList$(t1.get$keys(t1), B.ListSeparator_ECn, false);
  55036. },
  55037. $signature: 27
  55038. };
  55039. A._values_closure.prototype = {
  55040. call$1($arguments) {
  55041. var t1 = J.$index$asx($arguments, 0).assertMap$1("map")._map$_contents;
  55042. return A.SassList$(t1.get$values(t1), B.ListSeparator_ECn, false);
  55043. },
  55044. $signature: 27
  55045. };
  55046. A._hasKey_closure.prototype = {
  55047. call$1($arguments) {
  55048. var value,
  55049. t1 = J.getInterceptor$asx($arguments),
  55050. map = t1.$index($arguments, 0).assertMap$1("map"),
  55051. t2 = A._setArrayType([t1.$index($arguments, 1)], type$.JSArray_Value);
  55052. B.JSArray_methods.addAll$1(t2, t1.$index($arguments, 2).get$asList());
  55053. for (t1 = A.IterableExtension_get_exceptLast(t2), t1 = t1.get$iterator(t1); t1.moveNext$0(); map = value) {
  55054. value = map._map$_contents.$index(0, t1.get$current(t1));
  55055. if (!(value instanceof A.SassMap))
  55056. return B.SassBoolean_false;
  55057. }
  55058. return map._map$_contents.containsKey$1(B.JSArray_methods.get$last(t2)) ? B.SassBoolean_true : B.SassBoolean_false;
  55059. },
  55060. $signature: 11
  55061. };
  55062. A._modify_modifyNestedMap.prototype = {
  55063. call$1(map) {
  55064. var nestedMap, _this = this,
  55065. t1 = type$.Value,
  55066. mutableMap = A.LinkedHashMap_LinkedHashMap$of(map._map$_contents, t1, t1),
  55067. t2 = _this.keyIterator,
  55068. key = t2.get$current(t2);
  55069. if (!t2.moveNext$0()) {
  55070. t2 = mutableMap.$index(0, key);
  55071. if (t2 == null)
  55072. t2 = B.C__SassNull;
  55073. mutableMap.$indexSet(0, key, _this.modify.call$1(t2));
  55074. return new A.SassMap(A.ConstantMap_ConstantMap$from(mutableMap, t1, t1));
  55075. }
  55076. t2 = mutableMap.$index(0, key);
  55077. nestedMap = t2 == null ? null : t2.tryMap$0();
  55078. t2 = nestedMap == null;
  55079. if (t2 && !_this.addNesting)
  55080. return new A.SassMap(A.ConstantMap_ConstantMap$from(mutableMap, t1, t1));
  55081. mutableMap.$indexSet(0, key, _this.call$1(t2 ? B.SassMap_Map_empty : nestedMap));
  55082. return new A.SassMap(A.ConstantMap_ConstantMap$from(mutableMap, t1, t1));
  55083. },
  55084. $signature: 609
  55085. };
  55086. A.global_closure.prototype = {
  55087. call$1($arguments) {
  55088. var t1,
  55089. number = J.$index$asx($arguments, 0).assertNumber$1("number");
  55090. if (number.hasUnit$1("%"))
  55091. A.warnForDeprecation(string$.Passinp + number.toString$0(0) + ")\nTo emit a CSS abs() now: abs(#{" + number.toString$0(0) + string$.x7d__Mor, B.Deprecation_Zk6);
  55092. else
  55093. A.warnForDeprecation(string$.Globalm, B.Deprecation_0Gh);
  55094. t1 = number.get$numeratorUnits(number);
  55095. return A.SassNumber_SassNumber$withUnits(Math.abs(number._number$_value), number.get$denominatorUnits(number), t1);
  55096. },
  55097. $signature: 23
  55098. };
  55099. A.module_closure0.prototype = {
  55100. call$1(value) {
  55101. return Math.abs(value);
  55102. },
  55103. $signature: 15
  55104. };
  55105. A._ceil_closure.prototype = {
  55106. call$1(value) {
  55107. return B.JSNumber_methods.ceil$0(value);
  55108. },
  55109. $signature: 15
  55110. };
  55111. A._clamp_closure.prototype = {
  55112. call$1($arguments) {
  55113. var t1 = J.getInterceptor$asx($arguments),
  55114. min = t1.$index($arguments, 0).assertNumber$1("min"),
  55115. number = t1.$index($arguments, 1).assertNumber$1("number"),
  55116. max = t1.$index($arguments, 2).assertNumber$1("max");
  55117. number.convertValueToMatch$3(min, "number", "min");
  55118. max.convertValueToMatch$3(min, "max", "min");
  55119. if (min.greaterThanOrEquals$1(max).value)
  55120. return min;
  55121. if (min.greaterThanOrEquals$1(number).value)
  55122. return min;
  55123. if (number.greaterThanOrEquals$1(max).value)
  55124. return max;
  55125. return number;
  55126. },
  55127. $signature: 23
  55128. };
  55129. A._floor_closure.prototype = {
  55130. call$1(value) {
  55131. return B.JSNumber_methods.floor$0(value);
  55132. },
  55133. $signature: 15
  55134. };
  55135. A._max_closure.prototype = {
  55136. call$1($arguments) {
  55137. var t1, t2, max, _i, number;
  55138. for (t1 = J.$index$asx($arguments, 0).get$asList(), t2 = t1.length, max = null, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
  55139. number = t1[_i].assertNumber$0();
  55140. if (max == null || max.lessThan$1(number).value)
  55141. max = number;
  55142. }
  55143. if (max != null)
  55144. return max;
  55145. throw A.wrapException(A.SassScriptException$("At least one argument must be passed.", null));
  55146. },
  55147. $signature: 23
  55148. };
  55149. A._min_closure.prototype = {
  55150. call$1($arguments) {
  55151. var t1, t2, min, _i, number;
  55152. for (t1 = J.$index$asx($arguments, 0).get$asList(), t2 = t1.length, min = null, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
  55153. number = t1[_i].assertNumber$0();
  55154. if (min == null || min.greaterThan$1(number).value)
  55155. min = number;
  55156. }
  55157. if (min != null)
  55158. return min;
  55159. throw A.wrapException(A.SassScriptException$("At least one argument must be passed.", null));
  55160. },
  55161. $signature: 23
  55162. };
  55163. A._round_closure.prototype = {
  55164. call$1(number) {
  55165. return B.JSNumber_methods.round$0(number);
  55166. },
  55167. $signature: 15
  55168. };
  55169. A._hypot_closure.prototype = {
  55170. call$1($arguments) {
  55171. var subtotal, i, i0, t3, t4,
  55172. t1 = J.$index$asx($arguments, 0).get$asList(),
  55173. t2 = A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,SassNumber>"),
  55174. numbers = A.List_List$of(new A.MappedListIterable(t1, new A._hypot__closure(), t2), true, t2._eval$1("ListIterable.E"));
  55175. t1 = numbers.length;
  55176. if (t1 === 0)
  55177. throw A.wrapException(A.SassScriptException$("At least one argument must be passed.", null));
  55178. for (subtotal = 0, i = 0; i < t1; i = i0) {
  55179. i0 = i + 1;
  55180. subtotal += Math.pow(numbers[i].convertValueToMatch$3(numbers[0], "numbers[" + i0 + "]", "numbers[1]"), 2);
  55181. }
  55182. t1 = Math.sqrt(subtotal);
  55183. t2 = numbers[0];
  55184. t3 = J.getInterceptor$x(t2);
  55185. t4 = t3.get$numeratorUnits(t2);
  55186. return A.SassNumber_SassNumber$withUnits(t1, t3.get$denominatorUnits(t2), t4);
  55187. },
  55188. $signature: 23
  55189. };
  55190. A._hypot__closure.prototype = {
  55191. call$1(argument) {
  55192. return argument.assertNumber$0();
  55193. },
  55194. $signature: 648
  55195. };
  55196. A._log_closure.prototype = {
  55197. call$1($arguments) {
  55198. var base,
  55199. _s18_ = " to have no units.",
  55200. _null = null,
  55201. t1 = J.getInterceptor$asx($arguments),
  55202. number = t1.$index($arguments, 0).assertNumber$1("number");
  55203. if (number.get$hasUnits())
  55204. throw A.wrapException(A.SassScriptException$("$number: Expected " + number.toString$0(0) + _s18_, _null));
  55205. else if (J.$eq$(t1.$index($arguments, 1), B.C__SassNull))
  55206. return A.SassNumber_SassNumber(Math.log(number._number$_value), _null);
  55207. base = t1.$index($arguments, 1).assertNumber$1("base");
  55208. if (base.get$hasUnits())
  55209. throw A.wrapException(A.SassScriptException$("$base: Expected " + base.toString$0(0) + _s18_, _null));
  55210. else
  55211. return A.SassNumber_SassNumber(Math.log(number._number$_value) / Math.log(base._number$_value), _null);
  55212. },
  55213. $signature: 23
  55214. };
  55215. A._pow_closure.prototype = {
  55216. call$1($arguments) {
  55217. var t1 = J.getInterceptor$asx($arguments);
  55218. return A.pow0(t1.$index($arguments, 0).assertNumber$1("base"), t1.$index($arguments, 1).assertNumber$1("exponent"));
  55219. },
  55220. $signature: 23
  55221. };
  55222. A._atan2_closure.prototype = {
  55223. call$1($arguments) {
  55224. var t1 = J.getInterceptor$asx($arguments),
  55225. y = t1.$index($arguments, 0).assertNumber$1("y");
  55226. return A.SassNumber_SassNumber$withUnits(Math.atan2(y._number$_value, t1.$index($arguments, 1).assertNumber$1("x").convertValueToMatch$3(y, "x", "y")) * 57.29577951308232, null, A._setArrayType(["deg"], type$.JSArray_String));
  55227. },
  55228. $signature: 23
  55229. };
  55230. A._compatible_closure.prototype = {
  55231. call$1($arguments) {
  55232. var t1 = J.getInterceptor$asx($arguments);
  55233. return t1.$index($arguments, 0).assertNumber$1("number1").isComparableTo$1(t1.$index($arguments, 1).assertNumber$1("number2")) ? B.SassBoolean_true : B.SassBoolean_false;
  55234. },
  55235. $signature: 11
  55236. };
  55237. A._isUnitless_closure.prototype = {
  55238. call$1($arguments) {
  55239. return !J.$index$asx($arguments, 0).assertNumber$1("number").get$hasUnits() ? B.SassBoolean_true : B.SassBoolean_false;
  55240. },
  55241. $signature: 11
  55242. };
  55243. A._unit_closure.prototype = {
  55244. call$1($arguments) {
  55245. return new A.SassString(J.$index$asx($arguments, 0).assertNumber$1("number").get$unitString(), true);
  55246. },
  55247. $signature: 18
  55248. };
  55249. A._percentage_closure.prototype = {
  55250. call$1($arguments) {
  55251. var number = J.$index$asx($arguments, 0).assertNumber$1("number");
  55252. number.assertNoUnits$1("number");
  55253. return A.SassNumber_SassNumber(number._number$_value * 100, "%");
  55254. },
  55255. $signature: 23
  55256. };
  55257. A._randomFunction_closure.prototype = {
  55258. call$1($arguments) {
  55259. var limit, limitScalar,
  55260. t1 = J.getInterceptor$asx($arguments);
  55261. if (J.$eq$(t1.$index($arguments, 0), B.C__SassNull))
  55262. return A.SassNumber_SassNumber($.$get$_random0().nextDouble$0(), null);
  55263. limit = t1.$index($arguments, 0).assertNumber$1("limit");
  55264. if (limit.get$hasUnits())
  55265. A.warnForDeprecation(string$.math_r + limit.toString$0(0) + string$.x29x20in_a + limit.get$unitString() + ")) * 1" + limit.get$unitString() + string$.x0a_To_p + limit.get$unitString() + string$.x29x29__Mo, B.Deprecation_int);
  55266. limitScalar = limit.assertInt$1("limit");
  55267. if (limitScalar < 1)
  55268. throw A.wrapException(A.SassScriptException$("$limit: Must be greater than 0, was " + limit.toString$0(0) + ".", null));
  55269. return A.SassNumber_SassNumber($.$get$_random0().nextInt$1(limitScalar) + 1, null);
  55270. },
  55271. $signature: 23
  55272. };
  55273. A._div_closure.prototype = {
  55274. call$1($arguments) {
  55275. var t1 = J.getInterceptor$asx($arguments),
  55276. number1 = t1.$index($arguments, 0),
  55277. number2 = t1.$index($arguments, 1);
  55278. if (!(number1 instanceof A.SassNumber) || !(number2 instanceof A.SassNumber))
  55279. A.warn(string$.math_d);
  55280. return number1.dividedBy$1(number2);
  55281. },
  55282. $signature: 4
  55283. };
  55284. A._singleArgumentMathFunc_closure.prototype = {
  55285. call$1($arguments) {
  55286. return this.mathFunc.call$1(J.$index$asx($arguments, 0).assertNumber$1("number"));
  55287. },
  55288. $signature: 23
  55289. };
  55290. A._numberFunction_closure.prototype = {
  55291. call$1($arguments) {
  55292. var number = J.$index$asx($arguments, 0).assertNumber$1("number"),
  55293. t1 = this.transform.call$1(number._number$_value),
  55294. t2 = number.get$numeratorUnits(number);
  55295. return A.SassNumber_SassNumber$withUnits(t1, number.get$denominatorUnits(number), t2);
  55296. },
  55297. $signature: 23
  55298. };
  55299. A._shared_closure.prototype = {
  55300. call$1($arguments) {
  55301. A.warnForDeprecation(string$.The_fe, B.Deprecation_Vr4);
  55302. return $._features.contains$1(0, J.$index$asx($arguments, 0).assertString$1("feature")._string$_text) ? B.SassBoolean_true : B.SassBoolean_false;
  55303. },
  55304. $signature: 11
  55305. };
  55306. A._shared_closure0.prototype = {
  55307. call$1($arguments) {
  55308. return new A.SassString(A.serializeValue(J.get$first$ax($arguments), true, true), false);
  55309. },
  55310. $signature: 18
  55311. };
  55312. A._shared_closure1.prototype = {
  55313. call$1($arguments) {
  55314. var t1 = J.getInterceptor$asx($arguments),
  55315. _0_0 = t1.$index($arguments, 0);
  55316. $label0$0: {
  55317. if (_0_0 instanceof A.SassArgumentList) {
  55318. t1 = "arglist";
  55319. break $label0$0;
  55320. }
  55321. if (_0_0 instanceof A.SassBoolean) {
  55322. t1 = "bool";
  55323. break $label0$0;
  55324. }
  55325. if (_0_0 instanceof A.SassColor) {
  55326. t1 = "color";
  55327. break $label0$0;
  55328. }
  55329. if (_0_0 instanceof A.SassList) {
  55330. t1 = "list";
  55331. break $label0$0;
  55332. }
  55333. if (_0_0 instanceof A.SassMap) {
  55334. t1 = "map";
  55335. break $label0$0;
  55336. }
  55337. if (B.C__SassNull === _0_0) {
  55338. t1 = "null";
  55339. break $label0$0;
  55340. }
  55341. if (_0_0 instanceof A.SassNumber) {
  55342. t1 = "number";
  55343. break $label0$0;
  55344. }
  55345. if (_0_0 instanceof A.SassFunction) {
  55346. t1 = "function";
  55347. break $label0$0;
  55348. }
  55349. if (_0_0 instanceof A.SassMixin) {
  55350. t1 = "mixin";
  55351. break $label0$0;
  55352. }
  55353. if (_0_0 instanceof A.SassCalculation) {
  55354. t1 = "calculation";
  55355. break $label0$0;
  55356. }
  55357. if (_0_0 instanceof A.SassString) {
  55358. t1 = "string";
  55359. break $label0$0;
  55360. }
  55361. t1 = A.throwExpression("[BUG] Unknown value type " + A.S(t1.$index($arguments, 0)));
  55362. }
  55363. return new A.SassString(t1, false);
  55364. },
  55365. $signature: 18
  55366. };
  55367. A._shared_closure2.prototype = {
  55368. call$1($arguments) {
  55369. var t2, t3, t4,
  55370. t1 = J.getInterceptor$asx($arguments),
  55371. _1_0 = t1.$index($arguments, 0);
  55372. if (_1_0 instanceof A.SassArgumentList) {
  55373. _1_0._wereKeywordsAccessed = true;
  55374. t1 = type$.Value;
  55375. t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  55376. for (t3 = A.MapExtensions_get_pairs(_1_0._keywords, type$.String, t1), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  55377. t4 = t3.get$current(t3);
  55378. t2.$indexSet(0, new A.SassString(t4._0, false), t4._1);
  55379. }
  55380. return new A.SassMap(A.ConstantMap_ConstantMap$from(t2, t1, t1));
  55381. } else
  55382. throw A.wrapException("$args: " + A.S(t1.$index($arguments, 0)) + " is not an argument list.");
  55383. },
  55384. $signature: 34
  55385. };
  55386. A.moduleFunctions_closure.prototype = {
  55387. call$1($arguments) {
  55388. return new A.SassString(J.$index$asx($arguments, 0).assertCalculation$1("calc").name, true);
  55389. },
  55390. $signature: 18
  55391. };
  55392. A.moduleFunctions_closure0.prototype = {
  55393. call$1($arguments) {
  55394. var t1 = J.$index$asx($arguments, 0).assertCalculation$1("calc").$arguments;
  55395. return A.SassList$(new A.MappedListIterable(t1, new A.moduleFunctions__closure(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value>")), B.ListSeparator_ECn, false);
  55396. },
  55397. $signature: 27
  55398. };
  55399. A.moduleFunctions__closure.prototype = {
  55400. call$1(argument) {
  55401. return argument instanceof A.Value ? argument : new A.SassString(J.toString$0$(argument), false);
  55402. },
  55403. $signature: 668
  55404. };
  55405. A.moduleFunctions_closure1.prototype = {
  55406. call$1($arguments) {
  55407. var _0_2_isSet, _0_2, acceptsContent, t1, _0_5_isSet, _0_5, hasContent,
  55408. mixin = J.$index$asx($arguments, 0).assertMixin$1("mixin"),
  55409. _0_0 = mixin.callable;
  55410. $label0$0: {
  55411. _0_2_isSet = type$.AsyncBuiltInCallable._is(_0_0);
  55412. if (_0_2_isSet) {
  55413. _0_2 = _0_0.get$acceptsContent();
  55414. acceptsContent = _0_2;
  55415. } else
  55416. acceptsContent = null;
  55417. if (!_0_2_isSet) {
  55418. _0_2_isSet = _0_0 instanceof A.BuiltInCallable;
  55419. if (_0_2_isSet) {
  55420. _0_2 = _0_0.acceptsContent;
  55421. acceptsContent = _0_2;
  55422. }
  55423. t1 = _0_2_isSet;
  55424. } else
  55425. t1 = true;
  55426. if (t1) {
  55427. t1 = acceptsContent;
  55428. break $label0$0;
  55429. }
  55430. _0_5_isSet = _0_0 instanceof A.UserDefinedCallable;
  55431. if (_0_5_isSet) {
  55432. _0_5 = _0_0.declaration;
  55433. t1 = _0_5 instanceof A.MixinRule;
  55434. } else {
  55435. _0_5 = null;
  55436. t1 = false;
  55437. }
  55438. if (t1) {
  55439. t1 = _0_5_isSet ? _0_5 : _0_0.declaration;
  55440. hasContent = type$.MixinRule._as(t1).get$hasContent();
  55441. t1 = hasContent;
  55442. break $label0$0;
  55443. }
  55444. t1 = A.throwExpression(A.UnsupportedError$("Unknown callable type " + mixin.toString$0(0) + "."));
  55445. }
  55446. return t1 ? B.SassBoolean_true : B.SassBoolean_false;
  55447. },
  55448. $signature: 11
  55449. };
  55450. A._nest_closure.prototype = {
  55451. call$1($arguments) {
  55452. var t1 = {},
  55453. selectors = J.$index$asx($arguments, 0).get$asList();
  55454. if (selectors.length === 0)
  55455. throw A.wrapException(A.SassScriptException$(string$.x24selec, null));
  55456. t1.first = true;
  55457. return new A.MappedListIterable(selectors, new A._nest__closure(t1), A._arrayInstanceType(selectors)._eval$1("MappedListIterable<1,SelectorList>")).reduce$1(0, new A._nest__closure0()).get$asSassList();
  55458. },
  55459. $signature: 27
  55460. };
  55461. A._nest__closure.prototype = {
  55462. call$1(selector) {
  55463. var t1 = this._box_0,
  55464. result = A.SassApiValue_assertSelector(selector, !t1.first, null);
  55465. t1.first = false;
  55466. return result;
  55467. },
  55468. $signature: 232
  55469. };
  55470. A._nest__closure0.prototype = {
  55471. call$2($parent, child) {
  55472. return child.nestWithin$1($parent);
  55473. },
  55474. $signature: 234
  55475. };
  55476. A._append_closure.prototype = {
  55477. call$1($arguments) {
  55478. var t1,
  55479. selectors = J.$index$asx($arguments, 0).get$asList();
  55480. if (selectors.length === 0)
  55481. throw A.wrapException(A.SassScriptException$(string$.x24selec, null));
  55482. t1 = A.EvaluationContext_currentOrNull();
  55483. return new A.MappedListIterable(selectors, new A._append__closure(), A._arrayInstanceType(selectors)._eval$1("MappedListIterable<1,SelectorList>")).reduce$1(0, new A._append__closure0((t1 == null ? A.throwExpression(A.StateError$(string$.No_Sass)) : t1).get$currentCallableSpan())).get$asSassList();
  55484. },
  55485. $signature: 27
  55486. };
  55487. A._append__closure.prototype = {
  55488. call$1(selector) {
  55489. return A.SassApiValue_assertSelector(selector, false, null);
  55490. },
  55491. $signature: 232
  55492. };
  55493. A._append__closure0.prototype = {
  55494. call$2($parent, child) {
  55495. var t1 = child.components,
  55496. t2 = this.span;
  55497. return A.SelectorList$(new A.MappedListIterable(t1, new A._append___closure($parent, t2), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector>")), t2).nestWithin$1($parent);
  55498. },
  55499. $signature: 234
  55500. };
  55501. A._append___closure.prototype = {
  55502. call$1(complex) {
  55503. var _0_0, t1, component, rest, newCompound, t2, _null = null;
  55504. if (complex.leadingCombinators.length !== 0)
  55505. throw A.wrapException(A.SassScriptException$("Can't append " + complex.toString$0(0) + " to " + this.parent.toString$0(0) + ".", _null));
  55506. _0_0 = complex.components;
  55507. t1 = _0_0.length >= 1;
  55508. if (t1) {
  55509. component = _0_0[0];
  55510. rest = B.JSArray_methods.sublist$1(_0_0, 1);
  55511. } else {
  55512. rest = _null;
  55513. component = rest;
  55514. }
  55515. if (!t1)
  55516. throw A.wrapException(A.StateError$("Pattern matching error"));
  55517. newCompound = A._prependParent(component.selector);
  55518. if (newCompound == null)
  55519. throw A.wrapException(A.SassScriptException$("Can't append " + complex.toString$0(0) + " to " + this.parent.toString$0(0) + ".", _null));
  55520. t1 = this.span;
  55521. t2 = A._setArrayType([new A.ComplexSelectorComponent(newCompound, A.List_List$unmodifiable(component.combinators, type$.CssValue_Combinator), t1)], type$.JSArray_ComplexSelectorComponent);
  55522. B.JSArray_methods.addAll$1(t2, rest);
  55523. return A.ComplexSelector$(B.List_empty0, t2, t1, false);
  55524. },
  55525. $signature: 63
  55526. };
  55527. A._extend_closure.prototype = {
  55528. call$1($arguments) {
  55529. var target, source,
  55530. _s8_ = "selector",
  55531. _s8_0 = "extendee",
  55532. _s8_1 = "extender",
  55533. t1 = J.getInterceptor$asx($arguments),
  55534. selector = A.SassApiValue_assertSelector(t1.$index($arguments, 0), false, _s8_);
  55535. selector.assertNotBogus$1$name(_s8_);
  55536. target = A.SassApiValue_assertSelector(t1.$index($arguments, 1), false, _s8_0);
  55537. target.assertNotBogus$1$name(_s8_0);
  55538. source = A.SassApiValue_assertSelector(t1.$index($arguments, 2), false, _s8_1);
  55539. source.assertNotBogus$1$name(_s8_1);
  55540. t1 = A.EvaluationContext_currentOrNull();
  55541. return A.ExtensionStore__extendOrReplace(selector, source, target, B.ExtendMode_allTargets_allTargets, (t1 == null ? A.throwExpression(A.StateError$(string$.No_Sass)) : t1).get$currentCallableSpan()).get$asSassList();
  55542. },
  55543. $signature: 27
  55544. };
  55545. A._replace_closure.prototype = {
  55546. call$1($arguments) {
  55547. var target, source,
  55548. _s8_ = "selector",
  55549. _s8_0 = "original",
  55550. _s11_ = "replacement",
  55551. t1 = J.getInterceptor$asx($arguments),
  55552. selector = A.SassApiValue_assertSelector(t1.$index($arguments, 0), false, _s8_);
  55553. selector.assertNotBogus$1$name(_s8_);
  55554. target = A.SassApiValue_assertSelector(t1.$index($arguments, 1), false, _s8_0);
  55555. target.assertNotBogus$1$name(_s8_0);
  55556. source = A.SassApiValue_assertSelector(t1.$index($arguments, 2), false, _s11_);
  55557. source.assertNotBogus$1$name(_s11_);
  55558. t1 = A.EvaluationContext_currentOrNull();
  55559. return A.ExtensionStore__extendOrReplace(selector, source, target, B.ExtendMode_replace_replace, (t1 == null ? A.throwExpression(A.StateError$(string$.No_Sass)) : t1).get$currentCallableSpan()).get$asSassList();
  55560. },
  55561. $signature: 27
  55562. };
  55563. A._unify_closure.prototype = {
  55564. call$1($arguments) {
  55565. var selector2,
  55566. _s9_ = "selector1",
  55567. _s9_0 = "selector2",
  55568. t1 = J.getInterceptor$asx($arguments),
  55569. selector1 = A.SassApiValue_assertSelector(t1.$index($arguments, 0), false, _s9_);
  55570. selector1.assertNotBogus$1$name(_s9_);
  55571. selector2 = A.SassApiValue_assertSelector(t1.$index($arguments, 1), false, _s9_0);
  55572. selector2.assertNotBogus$1$name(_s9_0);
  55573. t1 = selector1.unify$1(selector2);
  55574. t1 = t1 == null ? null : t1.get$asSassList();
  55575. return t1 == null ? B.C__SassNull : t1;
  55576. },
  55577. $signature: 4
  55578. };
  55579. A._isSuperselector_closure.prototype = {
  55580. call$1($arguments) {
  55581. var selector2,
  55582. t1 = J.getInterceptor$asx($arguments),
  55583. selector1 = A.SassApiValue_assertSelector(t1.$index($arguments, 0), false, "super");
  55584. selector1.assertNotBogus$1$name("super");
  55585. selector2 = A.SassApiValue_assertSelector(t1.$index($arguments, 1), false, "sub");
  55586. selector2.assertNotBogus$1$name("sub");
  55587. return A.listIsSuperselector(selector1.components, selector2.components) ? B.SassBoolean_true : B.SassBoolean_false;
  55588. },
  55589. $signature: 11
  55590. };
  55591. A._simpleSelectors_closure.prototype = {
  55592. call$1($arguments) {
  55593. var t1 = A.SassApiValue_assertCompoundSelector(J.$index$asx($arguments, 0), "selector").components;
  55594. return A.SassList$(new A.MappedListIterable(t1, new A._simpleSelectors__closure(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value>")), B.ListSeparator_ECn, false);
  55595. },
  55596. $signature: 27
  55597. };
  55598. A._simpleSelectors__closure.prototype = {
  55599. call$1(simple) {
  55600. return new A.SassString(A.serializeSelector(simple, true), false);
  55601. },
  55602. $signature: 278
  55603. };
  55604. A._parse_closure.prototype = {
  55605. call$1($arguments) {
  55606. return A.SassApiValue_assertSelector(J.$index$asx($arguments, 0), false, "selector").get$asSassList();
  55607. },
  55608. $signature: 27
  55609. };
  55610. A.module_closure.prototype = {
  55611. call$1($arguments) {
  55612. var limit, t2, chunks, i, lastEnd, match, t3,
  55613. t1 = J.getInterceptor$asx($arguments),
  55614. string = t1.$index($arguments, 0).assertString$1("string"),
  55615. separator = t1.$index($arguments, 1).assertString$1("separator");
  55616. t1 = t1.$index($arguments, 2).get$realNull();
  55617. limit = t1 == null ? null : t1.assertNumber$1("limit").assertInt$1("limit");
  55618. if (limit != null && limit < 1)
  55619. throw A.wrapException(A.SassScriptException$("$limit: Must be 1 or greater, was " + A.S(limit) + ".", null));
  55620. t1 = string._string$_text;
  55621. if (t1.length === 0)
  55622. return B.SassList_bdS0;
  55623. else {
  55624. t2 = separator._string$_text;
  55625. if (t2.length === 0)
  55626. return A.SassList$(A.MappedIterable_MappedIterable(new A.Runes(t1), new A.module__closure(string), type$.Runes._eval$1("Iterable.E"), type$.Value), B.ListSeparator_ECn, true);
  55627. }
  55628. chunks = A._setArrayType([], type$.JSArray_String);
  55629. for (t2 = B.JSString_methods.allMatches$1(t2, t1), t2 = new A._StringAllMatchesIterator(t2._input, t2._pattern, t2.__js_helper$_index), i = 0, lastEnd = 0; t2.moveNext$0();) {
  55630. match = t2.__js_helper$_current;
  55631. t3 = match.start;
  55632. chunks.push(B.JSString_methods.substring$2(t1, lastEnd, t3));
  55633. lastEnd = t3 + match.pattern.length;
  55634. ++i;
  55635. if (i === limit)
  55636. break;
  55637. }
  55638. chunks.push(B.JSString_methods.substring$1(t1, lastEnd));
  55639. return A.SassList$(new A.MappedListIterable(chunks, new A.module__closure0(string), type$.MappedListIterable_String_Value), B.ListSeparator_ECn, true);
  55640. },
  55641. $signature: 27
  55642. };
  55643. A.module__closure.prototype = {
  55644. call$1(rune) {
  55645. return new A.SassString(A.Primitives_stringFromCharCode(rune), this.string._hasQuotes);
  55646. },
  55647. $signature: 281
  55648. };
  55649. A.module__closure0.prototype = {
  55650. call$1(chunk) {
  55651. return new A.SassString(chunk, this.string._hasQuotes);
  55652. },
  55653. $signature: 288
  55654. };
  55655. A._unquote_closure.prototype = {
  55656. call$1($arguments) {
  55657. var string = J.$index$asx($arguments, 0).assertString$1("string");
  55658. if (!string._hasQuotes)
  55659. return string;
  55660. return new A.SassString(string._string$_text, false);
  55661. },
  55662. $signature: 18
  55663. };
  55664. A._quote_closure.prototype = {
  55665. call$1($arguments) {
  55666. var string = J.$index$asx($arguments, 0).assertString$1("string");
  55667. if (string._hasQuotes)
  55668. return string;
  55669. return new A.SassString(string._string$_text, true);
  55670. },
  55671. $signature: 18
  55672. };
  55673. A._length_closure.prototype = {
  55674. call$1($arguments) {
  55675. return A.SassNumber_SassNumber(J.$index$asx($arguments, 0).assertString$1("string").get$_sassLength(), null);
  55676. },
  55677. $signature: 23
  55678. };
  55679. A._insert_closure.prototype = {
  55680. call$1($arguments) {
  55681. var indexInt, codeUnitIndex, _s5_ = "index",
  55682. t1 = J.getInterceptor$asx($arguments),
  55683. string = t1.$index($arguments, 0).assertString$1("string"),
  55684. insert = t1.$index($arguments, 1).assertString$1("insert"),
  55685. index = t1.$index($arguments, 2).assertNumber$1(_s5_);
  55686. index.assertNoUnits$1(_s5_);
  55687. indexInt = index.assertInt$1(_s5_);
  55688. if (indexInt < 0)
  55689. indexInt = Math.max(string.get$_sassLength() + indexInt + 2, 0);
  55690. t1 = string._string$_text;
  55691. codeUnitIndex = A.codepointIndexToCodeUnitIndex(t1, A._codepointForIndex(indexInt, string.get$_sassLength(), false));
  55692. return new A.SassString(B.JSString_methods.replaceRange$3(t1, codeUnitIndex, codeUnitIndex, insert._string$_text), string._hasQuotes);
  55693. },
  55694. $signature: 18
  55695. };
  55696. A._index_closure.prototype = {
  55697. call$1($arguments) {
  55698. var t1 = J.getInterceptor$asx($arguments),
  55699. t2 = t1.$index($arguments, 0).assertString$1("string")._string$_text,
  55700. codeUnitIndex = B.JSString_methods.indexOf$1(t2, t1.$index($arguments, 1).assertString$1("substring")._string$_text);
  55701. if (codeUnitIndex === -1)
  55702. return B.C__SassNull;
  55703. return A.SassNumber_SassNumber(A.codeUnitIndexToCodepointIndex(t2, codeUnitIndex) + 1, null);
  55704. },
  55705. $signature: 4
  55706. };
  55707. A._slice_closure.prototype = {
  55708. call$1($arguments) {
  55709. var lengthInCodepoints, endInt, startCodepoint, endCodepoint,
  55710. _s8_ = "start-at",
  55711. t1 = J.getInterceptor$asx($arguments),
  55712. string = t1.$index($arguments, 0).assertString$1("string"),
  55713. start = t1.$index($arguments, 1).assertNumber$1(_s8_),
  55714. end = t1.$index($arguments, 2).assertNumber$1("end-at");
  55715. start.assertNoUnits$1(_s8_);
  55716. end.assertNoUnits$1("end-at");
  55717. lengthInCodepoints = string.get$_sassLength();
  55718. endInt = end.assertInt$0();
  55719. if (endInt === 0)
  55720. return string._hasQuotes ? $.$get$_emptyQuoted() : $.$get$_emptyUnquoted();
  55721. startCodepoint = A._codepointForIndex(start.assertInt$0(), lengthInCodepoints, false);
  55722. endCodepoint = A._codepointForIndex(endInt, lengthInCodepoints, true);
  55723. if (endCodepoint === lengthInCodepoints)
  55724. --endCodepoint;
  55725. if (endCodepoint < startCodepoint)
  55726. return string._hasQuotes ? $.$get$_emptyQuoted() : $.$get$_emptyUnquoted();
  55727. t1 = string._string$_text;
  55728. return new A.SassString(B.JSString_methods.substring$2(t1, A.codepointIndexToCodeUnitIndex(t1, startCodepoint), A.codepointIndexToCodeUnitIndex(t1, endCodepoint + 1)), string._hasQuotes);
  55729. },
  55730. $signature: 18
  55731. };
  55732. A._toUpperCase_closure.prototype = {
  55733. call$1($arguments) {
  55734. var t1, t2, i, t3, t4,
  55735. string = J.$index$asx($arguments, 0).assertString$1("string");
  55736. for (t1 = string._string$_text, t2 = t1.length, i = 0, t3 = ""; i < t2; ++i) {
  55737. t4 = t1.charCodeAt(i);
  55738. t3 += A.Primitives_stringFromCharCode(t4 >= 97 && t4 <= 122 ? t4 & 4294967263 : t4);
  55739. }
  55740. return new A.SassString(t3.charCodeAt(0) == 0 ? t3 : t3, string._hasQuotes);
  55741. },
  55742. $signature: 18
  55743. };
  55744. A._toLowerCase_closure.prototype = {
  55745. call$1($arguments) {
  55746. var t1, t2, i, t3, t4,
  55747. string = J.$index$asx($arguments, 0).assertString$1("string");
  55748. for (t1 = string._string$_text, t2 = t1.length, i = 0, t3 = ""; i < t2; ++i) {
  55749. t4 = t1.charCodeAt(i);
  55750. t3 += A.Primitives_stringFromCharCode(t4 >= 65 && t4 <= 90 ? t4 | 32 : t4);
  55751. }
  55752. return new A.SassString(t3.charCodeAt(0) == 0 ? t3 : t3, string._hasQuotes);
  55753. },
  55754. $signature: 18
  55755. };
  55756. A._uniqueId_closure.prototype = {
  55757. call$1($arguments) {
  55758. var t1 = $.$get$_previousUniqueId() + ($.$get$_random().nextInt$1(36) + 1);
  55759. $._previousUniqueId = t1;
  55760. if (t1 > Math.pow(36, 6))
  55761. $._previousUniqueId = B.JSInt_methods.$mod($.$get$_previousUniqueId(), A._asInt(Math.pow(36, 6)));
  55762. return new A.SassString("u" + B.JSString_methods.padLeft$2(B.JSInt_methods.toRadixString$1($.$get$_previousUniqueId(), 36), 6, "0"), false);
  55763. },
  55764. $signature: 18
  55765. };
  55766. A.ImportCache.prototype = {
  55767. canonicalize$4$baseImporter$baseUrl$forImport(_, url, baseImporter, baseUrl, forImport) {
  55768. var t1, resolvedUrl, key, relativeResult, t2, t3, t4, t5, t6, cacheable, i, importer, perImporterKey, t7, _1_0, _1_2_isSet, result, _1_2, _2_0, _2_1, _2_5_isSet, _2_5, _2_3, _2_3_isSet, j, _this = this, _null = null;
  55769. if (A.isBrowser())
  55770. t1 = (baseImporter == null || baseImporter instanceof A.NoOpImporter) && _this._importers.length === 0;
  55771. else
  55772. t1 = false;
  55773. if (t1)
  55774. throw A.wrapException(string$.Custom);
  55775. if (baseImporter != null && url.get$scheme() === "") {
  55776. resolvedUrl = baseUrl == null ? _null : baseUrl.resolveUri$1(url);
  55777. if (resolvedUrl == null)
  55778. resolvedUrl = url;
  55779. key = new A._Record_3_forImport(baseImporter, resolvedUrl, forImport);
  55780. relativeResult = _this._perImporterCanonicalizeCache.putIfAbsent$2(key, new A.ImportCache_canonicalize_closure(_this, baseImporter, resolvedUrl, baseUrl, forImport, key, url));
  55781. if (relativeResult != null)
  55782. return relativeResult;
  55783. }
  55784. key = new A._Record_2_forImport(url, forImport);
  55785. t1 = _this._canonicalizeCache;
  55786. if (t1.containsKey$1(key))
  55787. return t1.$index(0, key);
  55788. for (t2 = _this._importers, t3 = type$.Record_1_nullable_Object, t4 = _this._perImporterCanonicalizeCache, t5 = type$.nullable_Record_3_Importer_and_Uri_and_Uri_originalUrl, t6 = type$.Record_3_Importer_and_Uri_and_Uri_originalUrl, cacheable = true, i = 0; i < t2.length; ++i) {
  55789. importer = t2[i];
  55790. perImporterKey = new A._Record_3_forImport(importer, url, forImport);
  55791. if (t4.containsKey$1(perImporterKey)) {
  55792. t7 = t4.$index(0, perImporterKey);
  55793. _1_0 = new A._Record_1(t7 == null ? t5._as(t7) : t7);
  55794. } else
  55795. _1_0 = _null;
  55796. _1_2_isSet = t3._is(_1_0);
  55797. result = _null;
  55798. if (_1_2_isSet) {
  55799. _1_2 = _1_0._0;
  55800. t7 = _1_2 != null;
  55801. if (t7) {
  55802. t6._as(_1_2);
  55803. result = _1_2;
  55804. }
  55805. } else {
  55806. _1_2 = _null;
  55807. t7 = false;
  55808. }
  55809. if (t7)
  55810. return result;
  55811. if (_1_2_isSet)
  55812. t7 = _1_2 == null;
  55813. else
  55814. t7 = false;
  55815. if (t7)
  55816. continue;
  55817. $label0$1: {
  55818. _2_0 = _this._canonicalize$4(importer, url, baseUrl, forImport);
  55819. _2_1 = _2_0._0;
  55820. _2_5_isSet = _2_1 != null;
  55821. _2_5 = _null;
  55822. _2_3 = _null;
  55823. t7 = false;
  55824. if (_2_5_isSet) {
  55825. result = _2_1 == null ? t6._as(_2_1) : _2_1;
  55826. _2_3 = _2_0._1;
  55827. t7 = _2_3;
  55828. _2_5 = t7;
  55829. t7 = t7 && cacheable;
  55830. } else
  55831. result = _null;
  55832. if (t7) {
  55833. t1.$indexSet(0, key, result);
  55834. return result;
  55835. }
  55836. if (_2_5_isSet) {
  55837. t7 = _2_5;
  55838. _2_3_isSet = _2_5_isSet;
  55839. } else {
  55840. _2_3 = _2_0._1;
  55841. t7 = _2_3;
  55842. _2_3_isSet = true;
  55843. }
  55844. t7 = t7 && !cacheable;
  55845. if (t7) {
  55846. t4.$indexSet(0, perImporterKey, _2_1);
  55847. if (_2_1 != null)
  55848. return _2_1;
  55849. break $label0$1;
  55850. }
  55851. t7 = false === (_2_3_isSet ? _2_3 : _2_0._1);
  55852. if (t7) {
  55853. if (cacheable) {
  55854. for (j = 0; j < i; ++j)
  55855. t4.$indexSet(0, new A._Record_3_forImport(t2[j], url, forImport), _null);
  55856. cacheable = false;
  55857. }
  55858. if (_2_1 != null)
  55859. return _2_1;
  55860. }
  55861. }
  55862. }
  55863. if (cacheable)
  55864. t1.$indexSet(0, key, _null);
  55865. return _null;
  55866. },
  55867. canonicalize$3$baseImporter$baseUrl(_, url, baseImporter, baseUrl) {
  55868. return this.canonicalize$4$baseImporter$baseUrl$forImport(0, url, baseImporter, baseUrl, false);
  55869. },
  55870. _canonicalize$4(importer, url, baseUrl, forImport) {
  55871. var passContainingUrl, canonicalizeContext, t1, result, cacheable;
  55872. if (baseUrl != null)
  55873. passContainingUrl = url.get$scheme() === "" || importer.isNonCanonicalScheme$1(url.get$scheme());
  55874. else
  55875. passContainingUrl = false;
  55876. canonicalizeContext = new A.CanonicalizeContext(forImport, passContainingUrl ? baseUrl : null);
  55877. t1 = type$.nullable_Object;
  55878. result = A.runZoned(new A.ImportCache__canonicalize_closure(importer, url), A.LinkedHashMap_LinkedHashMap$_literal([B.Symbol__canonicalizeContext, canonicalizeContext], t1, t1), type$.nullable_Uri);
  55879. cacheable = !passContainingUrl || !canonicalizeContext._wasContainingUrlAccessed;
  55880. if (result == null)
  55881. return new A._Record_2(null, cacheable);
  55882. if (result.get$scheme() !== "" && importer.isNonCanonicalScheme$1(result.get$scheme()))
  55883. throw A.wrapException("Importer " + importer.toString$0(0) + " canonicalized " + url.toString$0(0) + " to " + result.toString$0(0) + string$.x2c_whicu);
  55884. return new A._Record_2(new A._Record_3_originalUrl(importer, result, url), cacheable);
  55885. },
  55886. importCanonical$3$originalUrl(importer, canonicalUrl, originalUrl) {
  55887. return this._importCache.putIfAbsent$2(canonicalUrl, new A.ImportCache_importCanonical_closure(this, importer, canonicalUrl, originalUrl));
  55888. },
  55889. importCanonical$2(importer, canonicalUrl) {
  55890. return this.importCanonical$3$originalUrl(importer, canonicalUrl, null);
  55891. },
  55892. humanize$1(canonicalUrl) {
  55893. var t1 = type$.NonNullsIterable_Record_3_Importer_and_Uri_and_Uri_originalUrl;
  55894. t1 = A.NullableExtension_andThen(A.minBy(new A.MappedIterable(new A.WhereIterable(new A.NonNullsIterable(this._canonicalizeCache.get$values(0), t1), new A.ImportCache_humanize_closure(canonicalUrl), t1._eval$1("WhereIterable<Iterable.E>")), new A.ImportCache_humanize_closure0(), t1._eval$1("MappedIterable<Iterable.E,Uri>")), new A.ImportCache_humanize_closure1()), new A.ImportCache_humanize_closure2(canonicalUrl));
  55895. return t1 == null ? canonicalUrl : t1;
  55896. },
  55897. sourceMapUrl$1(_, canonicalUrl) {
  55898. var t1 = this._resultsCache.$index(0, canonicalUrl);
  55899. t1 = t1 == null ? null : t1.get$sourceMapUrl(0);
  55900. return t1 == null ? canonicalUrl : t1;
  55901. },
  55902. clearCanonicalize$1(url) {
  55903. var t1 = this._canonicalizeCache;
  55904. t1.remove$1(0, new A._Record_2_forImport(url, false));
  55905. t1.remove$1(0, new A._Record_2_forImport(url, true));
  55906. this._perImporterCanonicalizeCache.removeWhere$1(0, new A.ImportCache_clearCanonicalize_closure(this, url));
  55907. },
  55908. clearImport$1(canonicalUrl) {
  55909. this._resultsCache.remove$1(0, canonicalUrl);
  55910. this._importCache.remove$1(0, canonicalUrl);
  55911. }
  55912. };
  55913. A.ImportCache_canonicalize_closure.prototype = {
  55914. call$0() {
  55915. var _this = this,
  55916. t1 = _this.$this,
  55917. t2 = _this.baseUrl,
  55918. _0_0 = t1._canonicalize$4(_this.baseImporter, _this.resolvedUrl, t2, _this.forImport);
  55919. if (t2 != null)
  55920. t1._nonCanonicalRelativeUrls.$indexSet(0, _this.key, _this.url);
  55921. return _0_0._0;
  55922. },
  55923. $signature: 138
  55924. };
  55925. A.ImportCache__canonicalize_closure.prototype = {
  55926. call$0() {
  55927. return this.importer.canonicalize$1(0, this.url);
  55928. },
  55929. $signature: 239
  55930. };
  55931. A.ImportCache_importCanonical_closure.prototype = {
  55932. call$0() {
  55933. var t2, t3, t4, _this = this,
  55934. t1 = _this.canonicalUrl,
  55935. result = _this.importer.load$1(0, t1);
  55936. if (result == null)
  55937. return null;
  55938. _this.$this._resultsCache.$indexSet(0, t1, result);
  55939. t2 = result.contents;
  55940. t3 = result.syntax;
  55941. t4 = _this.originalUrl;
  55942. return A.Stylesheet_Stylesheet$parse(t2, t3, t4 == null ? t1 : t4.resolveUri$1(t1));
  55943. },
  55944. $signature: 104
  55945. };
  55946. A.ImportCache_humanize_closure.prototype = {
  55947. call$1(result) {
  55948. return result._1.$eq(0, this.canonicalUrl);
  55949. },
  55950. $signature: 301
  55951. };
  55952. A.ImportCache_humanize_closure0.prototype = {
  55953. call$1(result) {
  55954. return result._2;
  55955. },
  55956. $signature: 302
  55957. };
  55958. A.ImportCache_humanize_closure1.prototype = {
  55959. call$1(url) {
  55960. return url.get$path(url).length;
  55961. },
  55962. $signature: 87
  55963. };
  55964. A.ImportCache_humanize_closure2.prototype = {
  55965. call$1(url) {
  55966. var t1 = $.$get$url(),
  55967. t2 = this.canonicalUrl;
  55968. return url.resolve$1(0, A.ParsedPath_ParsedPath$parse(t2.get$path(t2), t1.style).get$basename());
  55969. },
  55970. $signature: 50
  55971. };
  55972. A.ImportCache_clearCanonicalize_closure.prototype = {
  55973. call$2(key, _) {
  55974. var t1 = this.url;
  55975. return key._1.$eq(0, t1) || J.$eq$(this.$this._nonCanonicalRelativeUrls.$index(0, key), t1);
  55976. },
  55977. $signature: 304
  55978. };
  55979. A.Importer.prototype = {
  55980. modificationTime$1(url) {
  55981. return new A.DateTime(Date.now(), 0, false);
  55982. },
  55983. couldCanonicalize$2(url, canonicalUrl) {
  55984. return true;
  55985. },
  55986. isNonCanonicalScheme$1(scheme) {
  55987. return false;
  55988. }
  55989. };
  55990. A.AsyncImporter.prototype = {};
  55991. A.CanonicalizeContext.prototype = {};
  55992. A.FilesystemImporter.prototype = {
  55993. canonicalize$1(_, url) {
  55994. var resolved, _0_0;
  55995. if (url.get$scheme() === "file")
  55996. resolved = A.resolveImportPath($.$get$context().style.pathFromUri$1(A._parseUri(url)));
  55997. else if (url.get$scheme() !== "")
  55998. return null;
  55999. else {
  56000. _0_0 = this._loadPath;
  56001. if (_0_0 != null) {
  56002. resolved = A.resolveImportPath(A.join(_0_0, $.$get$context().style.pathFromUri$1(A._parseUri(url)), null));
  56003. if (resolved != null && this._loadPathDeprecated)
  56004. A.warnForDeprecation(string$.Using_t, B.Deprecation_vct);
  56005. } else
  56006. return null;
  56007. }
  56008. return A.NullableExtension_andThen(resolved, new A.FilesystemImporter_canonicalize_closure());
  56009. },
  56010. load$1(_, url) {
  56011. var path = $.$get$context().style.pathFromUri$1(A._parseUri(url)),
  56012. t1 = A.readFile(path),
  56013. t2 = A.Syntax_forPath(path),
  56014. t3 = url.get$scheme();
  56015. if (t3 === "")
  56016. A.throwExpression(A.ArgumentError$value(url, "sourceMapUrl", "must be absolute"));
  56017. return new A.ImporterResult(t1, url, t2);
  56018. },
  56019. modificationTime$1(url) {
  56020. return A.modificationTime($.$get$context().style.pathFromUri$1(A._parseUri(url)));
  56021. },
  56022. couldCanonicalize$2(url, canonicalUrl) {
  56023. var t1, t2, basename, canonicalBasename;
  56024. if (url.get$scheme() !== "file" && url.get$scheme() !== "")
  56025. return false;
  56026. if (canonicalUrl.get$scheme() !== "file")
  56027. return false;
  56028. t1 = $.$get$url();
  56029. t2 = t1.style;
  56030. basename = A.ParsedPath_ParsedPath$parse(url.get$path(url), t2).get$basename();
  56031. canonicalBasename = A.ParsedPath_ParsedPath$parse(canonicalUrl.get$path(canonicalUrl), t2).get$basename();
  56032. if (!B.JSString_methods.startsWith$1(basename, "_") && B.JSString_methods.startsWith$1(canonicalBasename, "_"))
  56033. canonicalBasename = B.JSString_methods.substring$1(canonicalBasename, 1);
  56034. return basename === canonicalBasename || basename === t1.withoutExtension$1(canonicalBasename);
  56035. },
  56036. toString$0(_) {
  56037. var t1 = this._loadPath;
  56038. return t1 == null ? "<absolute file importer>" : t1;
  56039. }
  56040. };
  56041. A.FilesystemImporter_canonicalize_closure.prototype = {
  56042. call$1(resolved) {
  56043. var t2, t0, _null = null,
  56044. t1 = A.isNodeJs() ? self.process : _null;
  56045. if (!J.$eq$(t1 == null ? _null : J.get$platform$x(t1), "win32")) {
  56046. t1 = A.isNodeJs() ? self.process : _null;
  56047. t1 = J.$eq$(t1 == null ? _null : J.get$platform$x(t1), "darwin");
  56048. } else
  56049. t1 = true;
  56050. if (t1) {
  56051. t1 = $.$get$context();
  56052. t2 = A._realCasePath(A.absolute(t1.normalize$1(resolved), _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null));
  56053. t0 = t2;
  56054. t2 = t1;
  56055. t1 = t0;
  56056. } else {
  56057. t1 = $.$get$context();
  56058. t2 = t1.canonicalize$1(0, resolved);
  56059. t0 = t2;
  56060. t2 = t1;
  56061. t1 = t0;
  56062. }
  56063. return t2.toUri$1(t1);
  56064. },
  56065. $signature: 128
  56066. };
  56067. A.NoOpImporter.prototype = {};
  56068. A.NodePackageImporter.prototype = {
  56069. isNonCanonicalScheme$1(scheme) {
  56070. return scheme === "pkg";
  56071. },
  56072. canonicalize$1(_, url) {
  56073. var packageName, jsonPath, jsonString, packageManifest, e, t1, t2, t3, t4, baseDirectory, parts, t5, $name, subpath, packageRoot, exception, _1_0, rootPath, subpathInRoot, _this = this, _null = null;
  56074. if (url.get$scheme() === "file")
  56075. return $.$get$FilesystemImporter_cwd().canonicalize$1(0, url);
  56076. if (url.get$scheme() !== "pkg")
  56077. return _null;
  56078. if (url.get$hasAuthority())
  56079. throw A.wrapException(string$.A_pkg_h);
  56080. else {
  56081. t1 = $.$get$url();
  56082. t2 = t1.style;
  56083. if (t2.rootLength$1(url.get$path(url)) > 0)
  56084. throw A.wrapException("A pkg: URL's path must not begin with /.");
  56085. else if (url.get$path(url).length === 0)
  56086. throw A.wrapException("A pkg: URL must not have an empty path.");
  56087. else if (url.get$hasQuery() || url.get$hasFragment())
  56088. throw A.wrapException(string$.A_pkg_q);
  56089. }
  56090. t3 = A.canonicalizeContext();
  56091. t3._wasContainingUrlAccessed = true;
  56092. t3 = t3._containingUrl;
  56093. if ((t3 == null ? _null : t3.get$scheme()) === "file") {
  56094. t3 = A.canonicalizeContext();
  56095. t3._wasContainingUrlAccessed = true;
  56096. t3 = t3._containingUrl;
  56097. t3.toString;
  56098. t4 = $.$get$context();
  56099. baseDirectory = t4.dirname$1(t4.style.pathFromUri$1(A._parseUri(t3)));
  56100. } else {
  56101. t3 = _this.__NodePackageImporter__entryPointDirectory_F;
  56102. t3 === $ && A.throwUnnamedLateFieldNI();
  56103. baseDirectory = t3;
  56104. }
  56105. packageName = null;
  56106. parts = t1.split$1(0, url.get$path(url));
  56107. t3 = B.JSArray_methods.removeAt$1(parts, 0);
  56108. t4 = $.$get$context();
  56109. t3.toString;
  56110. t5 = t4.style;
  56111. $name = t5.pathFromUri$1(A._parseUri(t3));
  56112. if (B.JSString_methods.startsWith$1($name, "@"))
  56113. $name = parts.length !== 0 ? t1.join$2(0, $name, B.JSArray_methods.removeAt$1(parts, 0)) : $name;
  56114. subpath = parts.length !== 0 ? t5.pathFromUri$1(A._parseUri(t1.joinAll$1(parts))) : _null;
  56115. packageName = $name;
  56116. t1 = true;
  56117. if (!J.startsWith$1$s(packageName, "."))
  56118. if (!J.contains$1$asx(packageName, "\\"))
  56119. if (!J.contains$1$asx(packageName, "%"))
  56120. t1 = J.startsWith$1$s(packageName, "@") && !J.contains$1$asx(packageName, t2.get$separator(t2));
  56121. if (t1)
  56122. return _null;
  56123. packageRoot = _this._resolvePackageRoot$2(packageName, baseDirectory);
  56124. if (packageRoot == null)
  56125. return _null;
  56126. jsonPath = A.join(packageRoot, "package.json", _null);
  56127. jsonString = A.readFile(jsonPath);
  56128. packageManifest = null;
  56129. try {
  56130. packageManifest = type$.Map_String_dynamic._as(B.C_JsonCodec.decode$1(jsonString));
  56131. } catch (exception) {
  56132. e = A.unwrapException(exception);
  56133. t1 = A.S(jsonPath);
  56134. t2 = A.S(packageName);
  56135. t3 = A.S(e);
  56136. throw A.wrapException("Failed to parse " + t1 + ' for "pkg:' + t2 + '": ' + t3);
  56137. }
  56138. _1_0 = _this._resolvePackageExports$4(packageRoot, subpath, packageManifest, packageName);
  56139. if (_1_0 != null)
  56140. if (B.Set_00.contains$1(0, A.ParsedPath_ParsedPath$parse(_1_0, t5)._splitExtension$1(1)[1]))
  56141. return t4.toUri$1(t4.canonicalize$1(0, _1_0));
  56142. else {
  56143. t1 = subpath == null ? "root" : subpath;
  56144. throw A.wrapException("The export for '" + t1 + "' in '" + A.S(packageName) + "' resolved to '" + _1_0 + string$.x27x2c_whi);
  56145. }
  56146. if (subpath == null) {
  56147. rootPath = _this._resolvePackageRootValues$2(packageRoot, packageManifest);
  56148. return rootPath != null ? t4.toUri$1(t4.canonicalize$1(0, rootPath)) : _null;
  56149. }
  56150. subpathInRoot = A.join(packageRoot, subpath, _null);
  56151. return $.$get$FilesystemImporter_cwd().canonicalize$1(0, t4.toUri$1(subpathInRoot));
  56152. },
  56153. load$1(_, url) {
  56154. return $.$get$FilesystemImporter_cwd().load$1(0, url);
  56155. },
  56156. _resolvePackageRoot$2(packageName, baseDirectory) {
  56157. var potentialPackage, t1;
  56158. for (; true;) {
  56159. potentialPackage = A.join(baseDirectory, "node_modules", packageName);
  56160. if (A.dirExists(potentialPackage))
  56161. return potentialPackage;
  56162. t1 = $.$get$context();
  56163. if (t1.split$1(0, baseDirectory).length === 1)
  56164. return null;
  56165. baseDirectory = t1.dirname$1(baseDirectory);
  56166. }
  56167. },
  56168. _resolvePackageRootValues$2(packageRoot, packageManifest) {
  56169. var t1, sassValue, _1_0, styleValue, _null = null,
  56170. _0_0 = packageManifest.$index(0, "sass");
  56171. if (typeof _0_0 == "string") {
  56172. t1 = B.Set_00.contains$1(0, A.ParsedPath_ParsedPath$parse(_0_0, $.$get$url().style)._splitExtension$1(1)[1]);
  56173. sassValue = _0_0;
  56174. } else {
  56175. sassValue = _null;
  56176. t1 = false;
  56177. }
  56178. if (t1)
  56179. return A.join(packageRoot, sassValue, _null);
  56180. else {
  56181. _1_0 = packageManifest.$index(0, "style");
  56182. if (typeof _1_0 == "string") {
  56183. t1 = B.Set_00.contains$1(0, A.ParsedPath_ParsedPath$parse(_1_0, $.$get$url().style)._splitExtension$1(1)[1]);
  56184. styleValue = _1_0;
  56185. } else {
  56186. styleValue = _null;
  56187. t1 = false;
  56188. }
  56189. if (t1)
  56190. return A.join(packageRoot, styleValue, _null);
  56191. }
  56192. return A.resolveImportPath(A.join(packageRoot, "index", _null));
  56193. },
  56194. _resolvePackageExports$4(packageRoot, subpath, packageManifest, packageName) {
  56195. var _0_0, _1_0, _this = this,
  56196. exports = packageManifest.$index(0, "exports");
  56197. if (exports == null)
  56198. return null;
  56199. _0_0 = _this._nodePackageExportsResolve$5(packageRoot, _this._exportsToCheck$1(subpath), exports, subpath, packageName);
  56200. if (_0_0 != null)
  56201. return _0_0;
  56202. if (subpath != null && A.ParsedPath_ParsedPath$parse(subpath, $.$get$url().style)._splitExtension$1(1)[1].length !== 0)
  56203. return null;
  56204. _1_0 = _this._nodePackageExportsResolve$5(packageRoot, _this._exportsToCheck$2$addIndex(subpath, true), exports, subpath, packageName);
  56205. if (_1_0 != null)
  56206. return _1_0;
  56207. return null;
  56208. },
  56209. _nodePackageExportsResolve$5(packageRoot, subpathVariants, exports, subpath, packageName) {
  56210. var t1, matches, _1_1, path;
  56211. if (type$.Map_String_dynamic._is(exports) && J.any$1$ax(exports.get$keys(exports), new A.NodePackageImporter__nodePackageExportsResolve_closure()) && J.any$1$ax(exports.get$keys(exports), new A.NodePackageImporter__nodePackageExportsResolve_closure0()))
  56212. throw A.wrapException("`exports` in " + packageName + string$.x20can_n + J.map$1$1$ax(J.get$keys$z(exports), new A.NodePackageImporter__nodePackageExportsResolve_closure1(), type$.String).join$1(0, ",") + " in " + A.join(packageRoot, "package.json", null) + ".");
  56213. t1 = type$.NonNullsIterable_String;
  56214. matches = A.List_List$of(new A.NonNullsIterable(new A.MappedListIterable(subpathVariants, new A.NodePackageImporter__nodePackageExportsResolve_closure2(this, exports, packageRoot), A._arrayInstanceType(subpathVariants)._eval$1("MappedListIterable<1,String?>")), t1), true, t1._eval$1("Iterable.E"));
  56215. $label0$1: {
  56216. _1_1 = matches.length;
  56217. if (_1_1 === 1) {
  56218. path = matches[0];
  56219. t1 = path;
  56220. break $label0$1;
  56221. }
  56222. if (_1_1 <= 0) {
  56223. t1 = null;
  56224. break $label0$1;
  56225. }
  56226. t1 = subpath == null ? "root" : subpath;
  56227. t1 = A.throwExpression(string$.Unable + t1 + " in " + packageName + " should be used. \n\nFound:\n" + B.JSArray_methods.join$1(matches, "\n"));
  56228. }
  56229. return t1;
  56230. },
  56231. _compareExpansionKeys$2(keyA, keyB) {
  56232. var t1 = B.JSString_methods.contains$1(keyA, "*"),
  56233. baseLengthA = t1 ? B.JSString_methods.indexOf$1(keyA, "*") + 1 : keyA.length,
  56234. t2 = B.JSString_methods.contains$1(keyB, "*"),
  56235. baseLengthB = t2 ? B.JSString_methods.indexOf$1(keyB, "*") + 1 : keyB.length;
  56236. if (baseLengthA > baseLengthB)
  56237. return -1;
  56238. if (baseLengthB > baseLengthA)
  56239. return 1;
  56240. if (!t1)
  56241. return 1;
  56242. if (!t2)
  56243. return -1;
  56244. t1 = keyA.length;
  56245. t2 = keyB.length;
  56246. if (t1 > t2)
  56247. return -1;
  56248. if (t2 > t1)
  56249. return 1;
  56250. return 0;
  56251. },
  56252. _packageTargetResolve$4(subpath, exports, packageRoot, patternMatch) {
  56253. var t2, string, path, map, key, value, _1_0, array, _2_0, _null = null,
  56254. t1 = typeof exports == "string";
  56255. if (t1) {
  56256. t2 = !B.JSString_methods.startsWith$1(exports, "./");
  56257. string = exports;
  56258. } else {
  56259. string = _null;
  56260. t2 = false;
  56261. }
  56262. if (t2)
  56263. throw A.wrapException("Export '" + A.S(string) + string$.x27x20must + packageRoot + "'.");
  56264. if (t1) {
  56265. t2 = patternMatch != null;
  56266. string = exports;
  56267. } else {
  56268. string = _null;
  56269. t2 = false;
  56270. }
  56271. if (t2) {
  56272. t1 = J.replaceFirst$2$s(string, "*", patternMatch);
  56273. t2 = $.$get$context();
  56274. path = t2.normalize$1(A.join(packageRoot, t2.style.pathFromUri$1(A._parseUri(t1)), _null));
  56275. return A.fileExists(path) ? path : _null;
  56276. }
  56277. string = t1 ? exports : _null;
  56278. if (t1) {
  56279. t1 = $.$get$context();
  56280. string.toString;
  56281. return A.join(packageRoot, t1.style.pathFromUri$1(A._parseUri(string)), _null);
  56282. }
  56283. t1 = type$.Map_String_dynamic._is(exports);
  56284. map = t1 ? exports : _null;
  56285. if (t1) {
  56286. for (t1 = A.MapExtensions_get_pairs(map, type$.String, type$.dynamic), t1 = t1.get$iterator(t1); t1.moveNext$0();) {
  56287. t2 = t1.get$current(t1);
  56288. key = t2._0;
  56289. value = t2._1;
  56290. if (!B.Set_TnQrk.contains$1(0, key))
  56291. continue;
  56292. if (value == null)
  56293. continue;
  56294. _1_0 = this._packageTargetResolve$4(subpath, value, packageRoot, patternMatch);
  56295. if (_1_0 != null)
  56296. return _1_0;
  56297. }
  56298. return _null;
  56299. }
  56300. if (type$.List_nullable_Object._is(exports) && J.get$length$asx(exports) <= 0)
  56301. return _null;
  56302. t1 = type$.List_dynamic._is(exports);
  56303. array = t1 ? exports : _null;
  56304. if (t1) {
  56305. for (t1 = J.get$iterator$ax(array); t1.moveNext$0();) {
  56306. value = t1.get$current(t1);
  56307. if (value == null)
  56308. continue;
  56309. _2_0 = this._packageTargetResolve$4(subpath, value, packageRoot, patternMatch);
  56310. if (_2_0 != null)
  56311. return _2_0;
  56312. }
  56313. return _null;
  56314. }
  56315. throw A.wrapException("Invalid 'exports' value " + A.S(exports) + " in " + A.join(packageRoot, "package.json", _null) + ".");
  56316. },
  56317. _packageTargetResolve$3(subpath, exports, packageRoot) {
  56318. return this._packageTargetResolve$4(subpath, exports, packageRoot, null);
  56319. },
  56320. _getMainExport$1(exports) {
  56321. var t1, t2, t3, map, _0_4, t4, $export;
  56322. $label0$0: {
  56323. t1 = null;
  56324. if (typeof exports == "string") {
  56325. t1 = exports;
  56326. break $label0$0;
  56327. }
  56328. if (type$.List_String._is(exports)) {
  56329. t1 = exports;
  56330. break $label0$0;
  56331. }
  56332. t2 = type$.Map_String_dynamic._is(exports);
  56333. if (t2) {
  56334. t3 = !J.any$1$ax(exports.get$keys(exports), new A.NodePackageImporter__getMainExport_closure());
  56335. map = exports;
  56336. } else {
  56337. map = t1;
  56338. t3 = false;
  56339. }
  56340. if (t3) {
  56341. t1 = map;
  56342. break $label0$0;
  56343. }
  56344. t3 = false;
  56345. if (t2) {
  56346. _0_4 = exports.$index(0, ".");
  56347. if (_0_4 == null)
  56348. t4 = exports.containsKey$1(".");
  56349. else
  56350. t4 = true;
  56351. if (t4)
  56352. t3 = _0_4 != null;
  56353. } else
  56354. _0_4 = null;
  56355. if (t3) {
  56356. $export = t2 ? _0_4 : J.$index$asx(exports, ".");
  56357. t1 = $export;
  56358. break $label0$0;
  56359. }
  56360. break $label0$0;
  56361. }
  56362. return t1;
  56363. },
  56364. _exportsToCheck$2$addIndex(subpath, addIndex) {
  56365. var basename, dirname, t3, t4, _i, path,
  56366. t1 = type$.JSArray_String,
  56367. paths = A._setArrayType([], t1),
  56368. t2 = subpath == null;
  56369. if (t2 && addIndex)
  56370. subpath = "index";
  56371. else if (!t2 && addIndex)
  56372. subpath = A.join(subpath, "index", null);
  56373. if (subpath == null)
  56374. return A._setArrayType([null], type$.JSArray_nullable_String);
  56375. if (B.Set_00.contains$1(0, A.ParsedPath_ParsedPath$parse(subpath, $.$get$url().style)._splitExtension$1(1)[1]))
  56376. paths.push(subpath);
  56377. else
  56378. B.JSArray_methods.addAll$1(paths, A._setArrayType([subpath, subpath + ".scss", subpath + ".sass", subpath + ".css"], t1));
  56379. t1 = $.$get$context();
  56380. t2 = t1.style;
  56381. basename = A.ParsedPath_ParsedPath$parse(subpath, t2).get$basename();
  56382. dirname = t1.dirname$1(subpath);
  56383. if (B.JSString_methods.startsWith$1(basename, "_"))
  56384. return paths;
  56385. t1 = A.List_List$of(paths, true, type$.nullable_String);
  56386. for (t3 = paths.length, t4 = dirname === ".", _i = 0; _i < paths.length; paths.length === t3 || (0, A.throwConcurrentModificationError)(paths), ++_i) {
  56387. path = paths[_i];
  56388. if (t4)
  56389. t1.push("_" + A.ParsedPath_ParsedPath$parse(path, t2).get$basename());
  56390. else
  56391. t1.push(A.join(dirname, "_" + A.ParsedPath_ParsedPath$parse(path, t2).get$basename(), null));
  56392. }
  56393. return t1;
  56394. },
  56395. _exportsToCheck$1(subpath) {
  56396. return this._exportsToCheck$2$addIndex(subpath, false);
  56397. }
  56398. };
  56399. A.NodePackageImporter__nodePackageExportsResolve_closure.prototype = {
  56400. call$1(key) {
  56401. return B.JSString_methods.startsWith$1(key, ".");
  56402. },
  56403. $signature: 5
  56404. };
  56405. A.NodePackageImporter__nodePackageExportsResolve_closure0.prototype = {
  56406. call$1(key) {
  56407. return !B.JSString_methods.startsWith$1(key, ".");
  56408. },
  56409. $signature: 5
  56410. };
  56411. A.NodePackageImporter__nodePackageExportsResolve_closure1.prototype = {
  56412. call$1(key) {
  56413. return '"' + key + '"';
  56414. },
  56415. $signature: 6
  56416. };
  56417. A.NodePackageImporter__nodePackageExportsResolve_closure2.prototype = {
  56418. call$1(variant) {
  56419. var t1, matchKey, t2, t3, t4, t5, t6, _i, expansionKey, _0_0, t7, patternBase, patternTrailer, t8, target, _this = this, _null = null;
  56420. if (variant == null) {
  56421. t1 = _this.$this;
  56422. return A.NullableExtension_andThen(t1._getMainExport$1(_this.exports), new A.NodePackageImporter__nodePackageExportsResolve__closure(t1, variant, _this.packageRoot));
  56423. } else {
  56424. t1 = _this.exports;
  56425. if (!type$.Map_String_dynamic._is(t1) || J.every$1$ax(t1.get$keys(t1), new A.NodePackageImporter__nodePackageExportsResolve__closure0()))
  56426. return _null;
  56427. }
  56428. matchKey = "./" + $.$get$context().toUri$1(variant).toString$0(0);
  56429. if (t1.containsKey$1(matchKey) && J.$index$asx(t1, matchKey) != null && !B.JSString_methods.contains$1(matchKey, "*")) {
  56430. t1 = J.$index$asx(t1, matchKey);
  56431. if (t1 == null)
  56432. t1 = type$.Object._as(t1);
  56433. return _this.$this._packageTargetResolve$3(matchKey, t1, _this.packageRoot);
  56434. }
  56435. t2 = A._setArrayType([], type$.JSArray_String);
  56436. for (t3 = J.getInterceptor$z(t1), t4 = J.get$iterator$ax(t3.get$keys(t1)); t4.moveNext$0();) {
  56437. t5 = t4.get$current(t4);
  56438. if (B.JSString_methods.allMatches$1("*", t5).get$length(0) === 1)
  56439. t2.push(t5);
  56440. }
  56441. t4 = _this.$this;
  56442. B.JSArray_methods.sort$1(t2, t4.get$_compareExpansionKeys());
  56443. for (t5 = t2.length, t6 = matchKey.length, _i = 0; _i < t2.length; t2.length === t5 || (0, A.throwConcurrentModificationError)(t2), ++_i) {
  56444. expansionKey = t2[_i];
  56445. _0_0 = expansionKey.split("*");
  56446. t7 = _0_0.length === 2;
  56447. if (t7) {
  56448. patternBase = _0_0[0];
  56449. patternTrailer = _0_0[1];
  56450. patternTrailer = patternTrailer;
  56451. } else {
  56452. patternTrailer = _null;
  56453. patternBase = patternTrailer;
  56454. }
  56455. if (!t7)
  56456. throw A.wrapException(A.StateError$("Pattern matching error"));
  56457. if (!B.JSString_methods.startsWith$1(matchKey, patternBase))
  56458. continue;
  56459. if (matchKey === patternBase)
  56460. continue;
  56461. t7 = patternTrailer.length;
  56462. if (t7 !== 0)
  56463. t8 = B.JSString_methods.endsWith$1(matchKey, patternTrailer) && t6 >= expansionKey.length;
  56464. else
  56465. t8 = true;
  56466. if (t8) {
  56467. target = t3.$index(t1, expansionKey);
  56468. if (target == null)
  56469. continue;
  56470. return t4._packageTargetResolve$4(variant, target, _this.packageRoot, B.JSString_methods.substring$2(matchKey, patternBase.length, t6 - t7));
  56471. }
  56472. }
  56473. return _null;
  56474. },
  56475. $signature: 143
  56476. };
  56477. A.NodePackageImporter__nodePackageExportsResolve__closure.prototype = {
  56478. call$1(mainExport) {
  56479. return this.$this._packageTargetResolve$3(this.variant, mainExport, this.packageRoot);
  56480. },
  56481. $signature: 144
  56482. };
  56483. A.NodePackageImporter__nodePackageExportsResolve__closure0.prototype = {
  56484. call$1(key) {
  56485. return !B.JSString_methods.startsWith$1(key, ".");
  56486. },
  56487. $signature: 5
  56488. };
  56489. A.NodePackageImporter__getMainExport_closure.prototype = {
  56490. call$1(key) {
  56491. return B.JSString_methods.startsWith$1(key, ".");
  56492. },
  56493. $signature: 5
  56494. };
  56495. A.ImporterResult.prototype = {
  56496. get$sourceMapUrl(_) {
  56497. return this._sourceMapUrl;
  56498. }
  56499. };
  56500. A.resolveImportPath_closure.prototype = {
  56501. call$0() {
  56502. return A._exactlyOne(A._tryPath($.$get$context().withoutExtension$1(this.path) + ".import" + this.extension));
  56503. },
  56504. $signature: 46
  56505. };
  56506. A.resolveImportPath_closure0.prototype = {
  56507. call$0() {
  56508. return A._exactlyOne(A._tryPathWithExtensions(this.path + ".import"));
  56509. },
  56510. $signature: 46
  56511. };
  56512. A._tryPathAsDirectory_closure.prototype = {
  56513. call$0() {
  56514. return A._exactlyOne(A._tryPathWithExtensions(A.join(this.path, "index.import", null)));
  56515. },
  56516. $signature: 46
  56517. };
  56518. A._exactlyOne_closure.prototype = {
  56519. call$1(path) {
  56520. var t1 = $.$get$context();
  56521. return " " + t1.prettyUri$1(t1.toUri$1(path));
  56522. },
  56523. $signature: 6
  56524. };
  56525. A.InterpolationBuffer.prototype = {
  56526. writeCharCode$1(character) {
  56527. var t1 = this._interpolation_buffer$_text,
  56528. t2 = A.Primitives_stringFromCharCode(character);
  56529. t1._contents += t2;
  56530. return null;
  56531. },
  56532. add$2(_, expression, span) {
  56533. this._flushText$0();
  56534. this._interpolation_buffer$_contents.push(expression);
  56535. this._spans.push(span);
  56536. },
  56537. addInterpolation$1(interpolation) {
  56538. var spansToAdd, _0_4_isSet, _0_4, _0_40, first, rest, t2, t3, _this = this,
  56539. toAdd = interpolation.contents,
  56540. t1 = toAdd.length;
  56541. if (t1 === 0)
  56542. return;
  56543. spansToAdd = interpolation.spans;
  56544. _0_4_isSet = t1 >= 1;
  56545. _0_4 = null;
  56546. if (_0_4_isSet) {
  56547. _0_40 = toAdd[0];
  56548. t1 = _0_40;
  56549. _0_4 = t1;
  56550. t1 = typeof t1 == "string";
  56551. } else
  56552. t1 = false;
  56553. if (t1) {
  56554. first = A._asString(_0_4_isSet ? _0_4 : toAdd[0]);
  56555. rest = B.JSArray_methods.sublist$1(toAdd, 1);
  56556. t1 = _this._interpolation_buffer$_text;
  56557. t1._contents += first;
  56558. spansToAdd = A.SubListIterable$(spansToAdd, 1, null, A._arrayInstanceType(spansToAdd)._precomputed1);
  56559. toAdd = rest;
  56560. }
  56561. _this._flushText$0();
  56562. t1 = _this._interpolation_buffer$_contents;
  56563. B.JSArray_methods.addAll$1(t1, toAdd);
  56564. t2 = _this._spans;
  56565. B.JSArray_methods.addAll$1(t2, spansToAdd);
  56566. if (typeof B.JSArray_methods.get$last(t1) == "string") {
  56567. t3 = _this._interpolation_buffer$_text;
  56568. t1 = A.S(t1.pop());
  56569. t3._contents += t1;
  56570. t2.pop();
  56571. }
  56572. },
  56573. _flushText$0() {
  56574. var t1 = this._interpolation_buffer$_text,
  56575. t2 = t1._contents;
  56576. if (t2.length === 0)
  56577. return;
  56578. this._interpolation_buffer$_contents.push(t2.charCodeAt(0) == 0 ? t2 : t2);
  56579. this._spans.push(null);
  56580. t1._contents = "";
  56581. },
  56582. interpolation$1(span) {
  56583. var t1 = A.List_List$of(this._interpolation_buffer$_contents, true, type$.Object),
  56584. t2 = this._interpolation_buffer$_text,
  56585. t3 = t2._contents;
  56586. if (t3.length !== 0)
  56587. t1.push(t3.charCodeAt(0) == 0 ? t3 : t3);
  56588. t3 = A.List_List$of(this._spans, true, type$.nullable_FileSpan);
  56589. if (t2._contents.length !== 0)
  56590. t3.push(null);
  56591. return A.Interpolation$(t1, t3, span);
  56592. },
  56593. toString$0(_) {
  56594. var t1, t2, _i, t3, element;
  56595. for (t1 = this._interpolation_buffer$_contents, t2 = t1.length, _i = 0, t3 = ""; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
  56596. element = t1[_i];
  56597. t3 = typeof element == "string" ? t3 + element : t3 + "#{" + A.S(element) + A.Primitives_stringFromCharCode(125);
  56598. }
  56599. t1 = t3 + this._interpolation_buffer$_text.toString$0(0);
  56600. return t1.charCodeAt(0) == 0 ? t1 : t1;
  56601. }
  56602. };
  56603. A.InterpolationMap.prototype = {
  56604. mapException$1(error) {
  56605. var t3, t4, _this = this,
  56606. target = error.get$span(error),
  56607. source = _this.mapSpan$1(target),
  56608. startIndex = _this._indexInContents$1(target.get$start(target)),
  56609. endIndex = _this._indexInContents$1(target.get$end(target)),
  56610. t1 = _this._interpolation.contents,
  56611. t2 = error._span_exception$_message;
  56612. if (!A.SubListIterable$(t1, startIndex, null, A._arrayInstanceType(t1)._precomputed1).take$1(0, endIndex - startIndex + 1).any$1(0, new A.InterpolationMap_mapException_closure()))
  56613. return new A.SourceSpanFormatException(error.get$source(), t2, source);
  56614. else {
  56615. t1 = type$.SourceSpan;
  56616. t3 = type$.String;
  56617. t4 = A.LinkedHashMap_LinkedHashMap$_literal([target, "error in interpolated output"], t1, t3);
  56618. return new A.MultiSourceSpanFormatException(error.get$source(), "", A.ConstantMap_ConstantMap$from(t4, t1, t3), t2, source);
  56619. }
  56620. },
  56621. mapSpan$1(target) {
  56622. var _0_10, t1, _0_2_isSet, _0_20, t2, start, end, _this = this, _null = null,
  56623. _0_1 = _this._mapLocation$1(target.get$start(target)),
  56624. _0_2 = _this._mapLocation$1(target.get$end(target));
  56625. $label0$0: {
  56626. _0_10 = _0_1;
  56627. t1 = type$.FileSpan;
  56628. _0_2_isSet = t1._is(_0_1);
  56629. _0_20 = _null;
  56630. t2 = false;
  56631. if (_0_2_isSet) {
  56632. t1._as(_0_10);
  56633. _0_20 = _0_2;
  56634. t2 = t1._is(_0_2);
  56635. start = _0_10;
  56636. _0_1 = start;
  56637. } else {
  56638. start = _null;
  56639. _0_1 = _0_10;
  56640. }
  56641. if (t2) {
  56642. t1 = start.expand$1(0, t1._as(_0_2_isSet ? _0_20 : _0_2));
  56643. break $label0$0;
  56644. }
  56645. t2 = false;
  56646. if (t1._is(_0_1)) {
  56647. if (_0_2_isSet)
  56648. t2 = _0_20;
  56649. else {
  56650. t2 = _0_2;
  56651. _0_20 = t2;
  56652. _0_2_isSet = true;
  56653. }
  56654. t2 = t2 instanceof A.FileLocation;
  56655. start = _0_1;
  56656. } else
  56657. start = _null;
  56658. if (t2) {
  56659. t1 = _0_2_isSet ? _0_20 : _0_2;
  56660. type$.FileLocation._as(t1);
  56661. t1 = _this._interpolation.span.file.span$2(0, _this._expandInterpolationSpanLeft$1(start.get$start(start)), t1.offset);
  56662. break $label0$0;
  56663. }
  56664. t2 = false;
  56665. if (_0_1 instanceof A.FileLocation) {
  56666. if (_0_2_isSet)
  56667. t2 = _0_20;
  56668. else {
  56669. t2 = _0_2;
  56670. _0_20 = t2;
  56671. _0_2_isSet = true;
  56672. }
  56673. t2 = t1._is(t2);
  56674. start = _0_1;
  56675. } else
  56676. start = _null;
  56677. if (t2) {
  56678. end = t1._as(_0_2_isSet ? _0_20 : _0_2);
  56679. t1 = _this._interpolation.span.file.span$2(0, start.offset, _this._expandInterpolationSpanRight$1(end.get$end(end)));
  56680. break $label0$0;
  56681. }
  56682. t1 = false;
  56683. if (_0_1 instanceof A.FileLocation) {
  56684. if (_0_2_isSet)
  56685. t1 = _0_20;
  56686. else {
  56687. t1 = _0_2;
  56688. _0_20 = t1;
  56689. _0_2_isSet = true;
  56690. }
  56691. t1 = t1 instanceof A.FileLocation;
  56692. start = _0_1;
  56693. } else
  56694. start = _null;
  56695. if (t1) {
  56696. t1 = _0_2_isSet ? _0_20 : _0_2;
  56697. type$.FileLocation._as(t1);
  56698. t1 = _this._interpolation.span.file.span$2(0, start.offset, t1.offset);
  56699. break $label0$0;
  56700. }
  56701. t1 = A.throwExpression("[BUG] Unreachable");
  56702. }
  56703. return t1;
  56704. },
  56705. _mapLocation$1(target) {
  56706. var t3, t4, previousLocation, _this = this,
  56707. index = _this._indexInContents$1(target),
  56708. t1 = _this._interpolation,
  56709. t2 = t1.contents,
  56710. _0_0 = t2[index];
  56711. if (_0_0 instanceof A.Expression)
  56712. return _0_0.get$span(_0_0);
  56713. t3 = index === 0;
  56714. t1 = t1.span;
  56715. t4 = t1.file;
  56716. if (t3)
  56717. previousLocation = A.FileLocation$_(t4, t1._file$_start);
  56718. else {
  56719. t1 = type$.Expression._as(t2[index - 1]);
  56720. t1 = t1.get$span(t1);
  56721. previousLocation = A.FileLocation$_(t4, _this._expandInterpolationSpanRight$1(t1.get$end(t1)));
  56722. }
  56723. t1 = t3 ? 0 : _this._targetLocations[index - 1].get$offset();
  56724. return A.FileLocation$_(previousLocation.file, previousLocation.offset + (target.offset - t1));
  56725. },
  56726. _indexInContents$1(target) {
  56727. var t1, t2, t3, i;
  56728. for (t1 = this._targetLocations, t2 = t1.length, t3 = target.offset, i = 0; i < t2; ++i)
  56729. if (t3 < t1[i].get$offset())
  56730. return i;
  56731. return this._interpolation.contents.length - 1;
  56732. },
  56733. _expandInterpolationSpanLeft$1(start) {
  56734. var i0, prev, char,
  56735. source = start.file._decodedChars,
  56736. i = start.offset - 1;
  56737. for (; i >= 0;) {
  56738. i0 = i - 1;
  56739. prev = source[i];
  56740. if (prev === 123) {
  56741. if (source[i0] === 35) {
  56742. i = i0;
  56743. break;
  56744. }
  56745. i = i0;
  56746. } else if (prev === 47) {
  56747. i = i0 - 1;
  56748. if (source[i0] === 42)
  56749. for (; true;) {
  56750. i0 = i - 1;
  56751. if (source[i] !== 42) {
  56752. i = i0;
  56753. continue;
  56754. }
  56755. i = i0;
  56756. do {
  56757. i0 = i - 1;
  56758. char = source[i];
  56759. if (char === 42) {
  56760. i = i0;
  56761. continue;
  56762. } else
  56763. break;
  56764. } while (true);
  56765. if (char === 47) {
  56766. i = i0;
  56767. break;
  56768. }
  56769. i = i0;
  56770. }
  56771. } else
  56772. i = i0;
  56773. }
  56774. return i;
  56775. },
  56776. _expandInterpolationSpanRight$1(end) {
  56777. var t1, i0, next, second, t2, char,
  56778. source = end.file._decodedChars,
  56779. i = end.offset;
  56780. for (t1 = source.length; i < t1;) {
  56781. i0 = i + 1;
  56782. next = source[i];
  56783. if (next === 125) {
  56784. i = i0;
  56785. break;
  56786. }
  56787. if (next === 47) {
  56788. i = i0 + 1;
  56789. second = source[i0];
  56790. if (second === 47) {
  56791. while (true) {
  56792. i0 = i + 1;
  56793. t2 = source[i];
  56794. if (!!(t2 === 10 || t2 === 13 || t2 === 12))
  56795. break;
  56796. i = i0;
  56797. }
  56798. i = i0;
  56799. } else if (second === 42)
  56800. for (; true;) {
  56801. i0 = i + 1;
  56802. if (source[i] !== 42) {
  56803. i = i0;
  56804. continue;
  56805. }
  56806. i = i0;
  56807. do {
  56808. i0 = i + 1;
  56809. char = source[i];
  56810. if (char === 42) {
  56811. i = i0;
  56812. continue;
  56813. } else
  56814. break;
  56815. } while (true);
  56816. if (char === 47) {
  56817. i = i0;
  56818. break;
  56819. }
  56820. i = i0;
  56821. }
  56822. } else
  56823. i = i0;
  56824. }
  56825. return i;
  56826. }
  56827. };
  56828. A.InterpolationMap_mapException_closure.prototype = {
  56829. call$1($content) {
  56830. return $content instanceof A.Expression;
  56831. },
  56832. $signature: 76
  56833. };
  56834. A._realCasePath_helper.prototype = {
  56835. call$1(path) {
  56836. var dirname = $.$get$context().dirname$1(path);
  56837. if (dirname === path)
  56838. return path;
  56839. return $._realCaseCache.putIfAbsent$2(path, new A._realCasePath_helper_closure(this, dirname, path));
  56840. },
  56841. $signature: 6
  56842. };
  56843. A._realCasePath_helper_closure.prototype = {
  56844. call$0() {
  56845. var matches, t1, _0_0, match, exception,
  56846. realDirname = this.helper.call$1(this.dirname),
  56847. t2 = this.path,
  56848. basename = A.ParsedPath_ParsedPath$parse(t2, $.$get$context().style).get$basename();
  56849. try {
  56850. matches = J.where$1$ax(A.listDir(realDirname, false), new A._realCasePath_helper__closure(basename)).toList$0(0);
  56851. t1 = null;
  56852. _0_0 = matches;
  56853. $label0$0: {
  56854. match = null;
  56855. if (J.get$length$asx(_0_0) === 1) {
  56856. match = J.$index$asx(_0_0, 0);
  56857. t1 = match;
  56858. break $label0$0;
  56859. }
  56860. t1 = A.join(realDirname, basename, null);
  56861. break $label0$0;
  56862. }
  56863. t1 = t1;
  56864. return t1;
  56865. } catch (exception) {
  56866. if (A.unwrapException(exception) instanceof A.FileSystemException)
  56867. return t2;
  56868. else
  56869. throw exception;
  56870. }
  56871. },
  56872. $signature: 31
  56873. };
  56874. A._realCasePath_helper__closure.prototype = {
  56875. call$1(realPath) {
  56876. return A.equalsIgnoreCase(A.ParsedPath_ParsedPath$parse(realPath, $.$get$context().style).get$basename(), this.basename);
  56877. },
  56878. $signature: 5
  56879. };
  56880. A.FileSystemException.prototype = {
  56881. toString$0(_) {
  56882. var t1 = $.$get$context();
  56883. return t1.prettyUri$1(t1.toUri$1(this.path)) + ": " + this.message;
  56884. },
  56885. get$message(receiver) {
  56886. return this.message;
  56887. }
  56888. };
  56889. A._readFile_closure.prototype = {
  56890. call$0() {
  56891. return J.readFileSync$2$x(A.fs(), this.path, this.encoding);
  56892. },
  56893. $signature: 65
  56894. };
  56895. A.writeFile_closure.prototype = {
  56896. call$0() {
  56897. return J.writeFileSync$2$x(A.fs(), this.path, this.contents);
  56898. },
  56899. $signature: 0
  56900. };
  56901. A.deleteFile_closure.prototype = {
  56902. call$0() {
  56903. return J.unlinkSync$1$x(A.fs(), this.path);
  56904. },
  56905. $signature: 0
  56906. };
  56907. A.readStdin_closure.prototype = {
  56908. call$1(result) {
  56909. this._box_0.contents = result;
  56910. this.completer.complete$1(result);
  56911. },
  56912. $signature: 84
  56913. };
  56914. A.readStdin_closure0.prototype = {
  56915. call$1(chunk) {
  56916. this.sink.add$1(0, type$.List_int._as(chunk));
  56917. },
  56918. call$0() {
  56919. return this.call$1(null);
  56920. },
  56921. "call*": "call$1",
  56922. $requiredArgCount: 0,
  56923. $defaultValues() {
  56924. return [null];
  56925. },
  56926. $signature: 86
  56927. };
  56928. A.readStdin_closure1.prototype = {
  56929. call$1(arg) {
  56930. this.sink.close$0(0);
  56931. },
  56932. call$0() {
  56933. return this.call$1(null);
  56934. },
  56935. "call*": "call$1",
  56936. $requiredArgCount: 0,
  56937. $defaultValues() {
  56938. return [null];
  56939. },
  56940. $signature: 86
  56941. };
  56942. A.readStdin_closure2.prototype = {
  56943. call$1(e) {
  56944. A.printError("Failed to read from stdin");
  56945. A.printError(e);
  56946. e.toString;
  56947. this.completer.completeError$1(e);
  56948. },
  56949. call$0() {
  56950. return this.call$1(null);
  56951. },
  56952. "call*": "call$1",
  56953. $requiredArgCount: 0,
  56954. $defaultValues() {
  56955. return [null];
  56956. },
  56957. $signature: 86
  56958. };
  56959. A.fileExists_closure.prototype = {
  56960. call$0() {
  56961. var error, systemError, exception,
  56962. t1 = this.path;
  56963. if (!J.existsSync$1$x(A.fs(), t1))
  56964. return false;
  56965. try {
  56966. t1 = J.isFile$0$x(J.statSync$1$x(A.fs(), t1));
  56967. return t1;
  56968. } catch (exception) {
  56969. error = A.unwrapException(exception);
  56970. systemError = type$.JsSystemError._as(error);
  56971. if (J.$eq$(J.get$code$x(systemError), "ENOENT"))
  56972. return false;
  56973. throw exception;
  56974. }
  56975. },
  56976. $signature: 24
  56977. };
  56978. A.dirExists_closure.prototype = {
  56979. call$0() {
  56980. var error, systemError, exception,
  56981. t1 = this.path;
  56982. if (!J.existsSync$1$x(A.fs(), t1))
  56983. return false;
  56984. try {
  56985. t1 = J.isDirectory$0$x(J.statSync$1$x(A.fs(), t1));
  56986. return t1;
  56987. } catch (exception) {
  56988. error = A.unwrapException(exception);
  56989. systemError = type$.JsSystemError._as(error);
  56990. if (J.$eq$(J.get$code$x(systemError), "ENOENT"))
  56991. return false;
  56992. throw exception;
  56993. }
  56994. },
  56995. $signature: 24
  56996. };
  56997. A.ensureDir_closure.prototype = {
  56998. call$0() {
  56999. var error, systemError, exception, t1;
  57000. try {
  57001. J.mkdirSync$1$x(A.fs(), this.path);
  57002. } catch (exception) {
  57003. error = A.unwrapException(exception);
  57004. systemError = type$.JsSystemError._as(error);
  57005. if (J.$eq$(J.get$code$x(systemError), "EEXIST"))
  57006. return;
  57007. if (!J.$eq$(J.get$code$x(systemError), "ENOENT"))
  57008. throw exception;
  57009. t1 = this.path;
  57010. A.ensureDir($.$get$context().dirname$1(t1));
  57011. J.mkdirSync$1$x(A.fs(), t1);
  57012. }
  57013. },
  57014. $signature: 0
  57015. };
  57016. A.listDir_closure.prototype = {
  57017. call$0() {
  57018. var t1 = this.path;
  57019. if (!this.recursive)
  57020. return J.map$1$1$ax(J.readdirSync$1$x(A.fs(), t1), new A.listDir__closure(t1), type$.String).super$Iterable$where(0, new A.listDir__closure0());
  57021. else
  57022. return new A.listDir_closure_list().call$1(t1);
  57023. },
  57024. $signature: 157
  57025. };
  57026. A.listDir__closure.prototype = {
  57027. call$1(child) {
  57028. return A.join(this.path, A._asString(child), null);
  57029. },
  57030. $signature: 130
  57031. };
  57032. A.listDir__closure0.prototype = {
  57033. call$1(child) {
  57034. return !A.dirExists(child);
  57035. },
  57036. $signature: 5
  57037. };
  57038. A.listDir_closure_list.prototype = {
  57039. call$1($parent) {
  57040. return J.expand$1$1$ax(J.readdirSync$1$x(A.fs(), $parent), new A.listDir__list_closure($parent, this), type$.String);
  57041. },
  57042. $signature: 158
  57043. };
  57044. A.listDir__list_closure.prototype = {
  57045. call$1(child) {
  57046. var path = A.join(this.parent, A._asString(child), null);
  57047. return A.dirExists(path) ? this.list.call$1(path) : A._setArrayType([path], type$.JSArray_String);
  57048. },
  57049. $signature: 139
  57050. };
  57051. A.modificationTime_closure.prototype = {
  57052. call$0() {
  57053. var t1 = J.getTime$0$x(J.get$mtime$x(J.statSync$1$x(A.fs(), this.path)));
  57054. if (t1 < -864e13 || t1 > 864e13)
  57055. A.throwExpression(A.RangeError$range(t1, -864e13, 864e13, "millisecondsSinceEpoch", null));
  57056. A.checkNotNullable(false, "isUtc", type$.bool);
  57057. return new A.DateTime(t1, 0, false);
  57058. },
  57059. $signature: 160
  57060. };
  57061. A.watchDir_closure.prototype = {
  57062. call$2(path, _) {
  57063. var t1 = this._box_0.controller;
  57064. return t1 == null ? null : t1.add$1(0, new A.WatchEvent(B.ChangeType_add, path));
  57065. },
  57066. call$1(path) {
  57067. return this.call$2(path, null);
  57068. },
  57069. "call*": "call$2",
  57070. $requiredArgCount: 1,
  57071. $defaultValues() {
  57072. return [null];
  57073. },
  57074. $signature: 161
  57075. };
  57076. A.watchDir_closure0.prototype = {
  57077. call$2(path, _) {
  57078. var t1 = this._box_0.controller;
  57079. return t1 == null ? null : t1.add$1(0, new A.WatchEvent(B.ChangeType_modify, path));
  57080. },
  57081. call$1(path) {
  57082. return this.call$2(path, null);
  57083. },
  57084. "call*": "call$2",
  57085. $requiredArgCount: 1,
  57086. $defaultValues() {
  57087. return [null];
  57088. },
  57089. $signature: 161
  57090. };
  57091. A.watchDir_closure1.prototype = {
  57092. call$1(path) {
  57093. var t1 = this._box_0.controller;
  57094. return t1 == null ? null : t1.add$1(0, new A.WatchEvent(B.ChangeType_remove, path));
  57095. },
  57096. $signature: 84
  57097. };
  57098. A.watchDir_closure2.prototype = {
  57099. call$1(error) {
  57100. var t1 = this._box_0.controller;
  57101. return t1 == null ? null : t1.addError$1(error);
  57102. },
  57103. $signature: 88
  57104. };
  57105. A.watchDir_closure3.prototype = {
  57106. call$0() {
  57107. var controller = A.StreamController_StreamController(new A.watchDir__closure(this.watcher), null, null, null, false, type$.WatchEvent);
  57108. this._box_0.controller = controller;
  57109. this.completer.complete$1(new A._ControllerStream(controller, A._instanceType(controller)._eval$1("_ControllerStream<1>")));
  57110. },
  57111. $signature: 1
  57112. };
  57113. A.watchDir__closure.prototype = {
  57114. call$0() {
  57115. J.close$0$x(this.watcher);
  57116. },
  57117. $signature: 1
  57118. };
  57119. A.watchDir_closure5.prototype = {
  57120. call$2(error, events) {
  57121. var t1, t2, t3, t4, t5, t6, lastEvent;
  57122. if (error != null) {
  57123. t1 = this._box_0.controller;
  57124. if (t1 != null)
  57125. t1.addError$1(error);
  57126. } else
  57127. for (t1 = A._instanceType(events), t2 = new A.ListIterator(events, events.get$length(events), t1._eval$1("ListIterator<ListBase.E>")), t1 = t1._eval$1("ListBase.E"), t3 = this._box_0; t2.moveNext$0();) {
  57128. t4 = t2.__internal$_current;
  57129. if (t4 == null)
  57130. t4 = t1._as(t4);
  57131. t5 = J.getInterceptor$x(t4);
  57132. switch (t5.get$type(t4)) {
  57133. case "create":
  57134. t6 = t3.controller;
  57135. if (t6 != null) {
  57136. t4 = new A.WatchEvent(B.ChangeType_add, t5.get$path(t4));
  57137. t5 = t6._state;
  57138. if (t5 >= 4)
  57139. A.throwExpression(t6._badEventState$0());
  57140. if ((t5 & 1) !== 0)
  57141. t6._sendData$1(t4);
  57142. else if ((t5 & 3) === 0) {
  57143. t5 = t6._ensurePendingEvents$0();
  57144. t4 = new A._DelayedData(t4);
  57145. lastEvent = t5.lastPendingEvent;
  57146. if (lastEvent == null)
  57147. t5.firstPendingEvent = t5.lastPendingEvent = t4;
  57148. else {
  57149. lastEvent.set$next(t4);
  57150. t5.lastPendingEvent = t4;
  57151. }
  57152. }
  57153. }
  57154. break;
  57155. case "update":
  57156. t6 = t3.controller;
  57157. if (t6 != null) {
  57158. t4 = new A.WatchEvent(B.ChangeType_modify, t5.get$path(t4));
  57159. t5 = t6._state;
  57160. if (t5 >= 4)
  57161. A.throwExpression(t6._badEventState$0());
  57162. if ((t5 & 1) !== 0)
  57163. t6._sendData$1(t4);
  57164. else if ((t5 & 3) === 0) {
  57165. t5 = t6._ensurePendingEvents$0();
  57166. t4 = new A._DelayedData(t4);
  57167. lastEvent = t5.lastPendingEvent;
  57168. if (lastEvent == null)
  57169. t5.firstPendingEvent = t5.lastPendingEvent = t4;
  57170. else {
  57171. lastEvent.set$next(t4);
  57172. t5.lastPendingEvent = t4;
  57173. }
  57174. }
  57175. }
  57176. break;
  57177. case "delete":
  57178. t6 = t3.controller;
  57179. if (t6 != null) {
  57180. t4 = new A.WatchEvent(B.ChangeType_remove, t5.get$path(t4));
  57181. t5 = t6._state;
  57182. if (t5 >= 4)
  57183. A.throwExpression(t6._badEventState$0());
  57184. if ((t5 & 1) !== 0)
  57185. t6._sendData$1(t4);
  57186. else if ((t5 & 3) === 0) {
  57187. t5 = t6._ensurePendingEvents$0();
  57188. t4 = new A._DelayedData(t4);
  57189. lastEvent = t5.lastPendingEvent;
  57190. if (lastEvent == null)
  57191. t5.firstPendingEvent = t5.lastPendingEvent = t4;
  57192. else {
  57193. lastEvent.set$next(t4);
  57194. t5.lastPendingEvent = t4;
  57195. }
  57196. }
  57197. }
  57198. break;
  57199. }
  57200. }
  57201. },
  57202. $signature: 329
  57203. };
  57204. A.watchDir_closure4.prototype = {
  57205. call$0() {
  57206. J.unsubscribe$0$x(this.subscription);
  57207. },
  57208. $signature: 1
  57209. };
  57210. A.JSArray0.prototype = {};
  57211. A.Chokidar.prototype = {};
  57212. A.ChokidarOptions.prototype = {};
  57213. A.ChokidarWatcher.prototype = {};
  57214. A.JSFunction.prototype = {};
  57215. A.ImmutableList.prototype = {};
  57216. A.ImmutableMap.prototype = {};
  57217. A.NodeImporterResult.prototype = {};
  57218. A.RenderContext.prototype = {};
  57219. A.RenderContextOptions.prototype = {};
  57220. A.RenderContextResult.prototype = {};
  57221. A.RenderContextResultStats.prototype = {};
  57222. A.JSModule.prototype = {};
  57223. A.JSModuleRequire.prototype = {};
  57224. A.ParcelWatcherSubscription.prototype = {};
  57225. A.ParcelWatcherEvent.prototype = {};
  57226. A.ParcelWatcher.prototype = {};
  57227. A.ParcelWatcher_subscribeFuture_closure.prototype = {
  57228. call$2(error, events) {
  57229. this.callback.call$2(error, J.cast$1$0$ax(events, type$.ParcelWatcherEvent));
  57230. },
  57231. $signature: 330
  57232. };
  57233. A.JSClass.prototype = {};
  57234. A.JSUrl.prototype = {};
  57235. A._PropertyDescriptor.prototype = {};
  57236. A._RequireMain.prototype = {};
  57237. A.LoggerWithDeprecationType0.prototype = {
  57238. warn$4$deprecation$span$trace(_, message, deprecation, span, trace) {
  57239. this.internalWarn$4$deprecation$span$trace(message, deprecation ? B.Deprecation_W1R : null, span, trace);
  57240. },
  57241. warn$3$span$trace(_, message, span, trace) {
  57242. return this.warn$4$deprecation$span$trace(0, message, false, span, trace);
  57243. },
  57244. warn$2$trace(_, message, trace) {
  57245. return this.warn$4$deprecation$span$trace(0, message, false, null, trace);
  57246. }
  57247. };
  57248. A._QuietLogger.prototype = {
  57249. warn$4$deprecation$span$trace(_, message, deprecation, span, trace) {
  57250. },
  57251. warn$1(_, message) {
  57252. return this.warn$4$deprecation$span$trace(0, message, false, null, null);
  57253. },
  57254. warn$3$span$trace(_, message, span, trace) {
  57255. return this.warn$4$deprecation$span$trace(0, message, false, span, trace);
  57256. },
  57257. debug$2(_, message, span) {
  57258. }
  57259. };
  57260. A.DeprecationProcessingLogger.prototype = {
  57261. validate$0() {
  57262. var t1, t2, t3, t4, t5, _this = this, _null = null;
  57263. for (t1 = _this.fatalDeprecations, t1 = t1.get$iterator(t1), t2 = _this.silenceDeprecations, t3 = _this._inner; t1.moveNext$0();) {
  57264. t4 = t1.get$current(t1);
  57265. t5 = t2.contains$1(0, t4);
  57266. if (t5) {
  57267. t4 = t4.toString$0(0);
  57268. t3.warn$3$span$trace(0, "Ignoring setting to silence " + t4 + string$.x20deprex2c, _null, _null);
  57269. continue;
  57270. }
  57271. }
  57272. for (t1 = A._LinkedHashSetIterator$(t2, t2._modifications, A._instanceType(t2)._precomputed1), t2 = t1.$ti._precomputed1, t4 = _this.futureDeprecations; t1.moveNext$0();) {
  57273. t5 = t1._collection$_current;
  57274. if (B.Deprecation_W1R === (t5 == null ? t2._as(t5) : t5)) {
  57275. t3.warn$3$span$trace(0, string$.User_a, _null, _null);
  57276. continue;
  57277. }
  57278. }
  57279. for (t1 = A._LinkedHashSetIterator$(t4, t4._modifications, A._instanceType(t4)._precomputed1), t2 = t1.$ti._precomputed1; t1.moveNext$0();) {
  57280. t4 = t1._collection$_current;
  57281. t4 = (t4 == null ? t2._as(t4) : t4).toString$0(0);
  57282. t3.warn$3$span$trace(0, t4 + string$.x20is_noaf, _null, _null);
  57283. }
  57284. },
  57285. internalWarn$4$deprecation$span$trace(message, deprecation, span, trace) {
  57286. if (deprecation != null)
  57287. this._handleDeprecation$4$span$trace(deprecation, message, span, trace);
  57288. else
  57289. this._inner.warn$3$span$trace(0, message, span, trace);
  57290. },
  57291. _handleDeprecation$4$span$trace(deprecation, message, span, trace) {
  57292. var _0_3_isSet, _0_3, t1, span0, t2, count, _this = this, _null = null;
  57293. if (_this.fatalDeprecations.contains$1(0, deprecation)) {
  57294. message += string$.x0a_This + deprecation.toString$0(0) + string$.x20deprex20;
  57295. $label0$0: {
  57296. _0_3_isSet = span != null;
  57297. _0_3 = _null;
  57298. t1 = false;
  57299. if (_0_3_isSet) {
  57300. span0 = span == null ? type$.FileSpan._as(span) : span;
  57301. t1 = trace != null;
  57302. _0_3 = trace;
  57303. } else
  57304. span0 = _null;
  57305. if (t1) {
  57306. if (_0_3_isSet)
  57307. trace = _0_3;
  57308. t1 = A.SassRuntimeException$(message, span0, trace == null ? type$.Trace._as(trace) : trace, _null);
  57309. break $label0$0;
  57310. }
  57311. t1 = false;
  57312. if (span != null)
  57313. t1 = (_0_3_isSet ? _0_3 : trace) == null;
  57314. else
  57315. span = _null;
  57316. if (t1) {
  57317. t1 = A.SassException$(message, span, _null);
  57318. break $label0$0;
  57319. }
  57320. t1 = A.SassScriptException$(message, _null);
  57321. break $label0$0;
  57322. }
  57323. throw A.wrapException(t1);
  57324. }
  57325. if (_this.silenceDeprecations.contains$1(0, deprecation))
  57326. return;
  57327. if (_this.limitRepetition) {
  57328. t1 = _this._warningCounts;
  57329. t2 = t1.$index(0, deprecation);
  57330. count = (t2 == null ? 0 : t2) + 1;
  57331. t1.$indexSet(0, deprecation, count);
  57332. if (count > 5)
  57333. return;
  57334. }
  57335. _this._inner.warn$4$deprecation$span$trace(0, message, true, span, trace);
  57336. },
  57337. debug$2(_, message, span) {
  57338. return this._inner.debug$2(0, message, span);
  57339. },
  57340. summarize$1$js(js) {
  57341. var t1 = this._warningCounts.get$values(0),
  57342. t2 = A._instanceType(t1),
  57343. total = A.IterableIntegerExtension_get_sum(new A.MappedIterable(new A.WhereIterable(t1, new A.DeprecationProcessingLogger_summarize_closure(), t2._eval$1("WhereIterable<Iterable.E>")), new A.DeprecationProcessingLogger_summarize_closure0(), t2._eval$1("MappedIterable<Iterable.E,int>")));
  57344. if (total > 0) {
  57345. t1 = js ? "" : string$.x0aRun_i;
  57346. this._inner.warn$1(0, "" + total + string$.x20repet + t1);
  57347. }
  57348. }
  57349. };
  57350. A.DeprecationProcessingLogger_summarize_closure.prototype = {
  57351. call$1(count) {
  57352. return count > 5;
  57353. },
  57354. $signature: 47
  57355. };
  57356. A.DeprecationProcessingLogger_summarize_closure0.prototype = {
  57357. call$1(count) {
  57358. return count - 5;
  57359. },
  57360. $signature: 168
  57361. };
  57362. A.StderrLogger.prototype = {
  57363. warn$4$deprecation$span$trace(_, message, deprecation, span, trace) {
  57364. var t2,
  57365. result = new A.StringBuffer(""),
  57366. t1 = this.color;
  57367. if (t1) {
  57368. t2 = result._contents = "" + "\x1b[33m\x1b[1m";
  57369. t2 = result._contents = (deprecation ? result._contents = t2 + "Deprecation " : t2) + "Warning\x1b[0m";
  57370. } else
  57371. t2 = result._contents = (deprecation ? result._contents = "" + "DEPRECATION " : "") + "WARNING";
  57372. if (span == null)
  57373. t1 = result._contents = t2 + (": " + message + "\n");
  57374. else if (trace != null) {
  57375. t1 = t2 + (": " + message + "\n\n" + span.highlight$1$color(t1) + "\n");
  57376. result._contents = t1;
  57377. } else {
  57378. t1 = t2 + (" on " + span.message$2$color(0, "\n" + message, t1) + "\n");
  57379. result._contents = t1;
  57380. }
  57381. if (trace != null)
  57382. result._contents = t1 + (A.indent(B.JSString_methods.trimRight$0(trace.toString$0(0)), 4) + "\n");
  57383. A.printError(result);
  57384. },
  57385. warn$1(_, message) {
  57386. return this.warn$4$deprecation$span$trace(0, message, false, null, null);
  57387. },
  57388. warn$3$span$trace(_, message, span, trace) {
  57389. return this.warn$4$deprecation$span$trace(0, message, false, span, trace);
  57390. },
  57391. warn$2$trace(_, message, trace) {
  57392. return this.warn$4$deprecation$span$trace(0, message, false, null, trace);
  57393. },
  57394. debug$2(_, message, span) {
  57395. var url, t3, t4,
  57396. t1 = span.file,
  57397. t2 = span._file$_start;
  57398. if (A.FileLocation$_(t1, t2).file.url == null)
  57399. url = "-";
  57400. else {
  57401. t3 = A.FileLocation$_(t1, t2).file.url;
  57402. t4 = $.$get$context();
  57403. t3.toString;
  57404. url = t4.prettyUri$1(t3);
  57405. }
  57406. t1 = A.FileLocation$_(t1, t2);
  57407. t1 = t1.file.getLine$1(t1.offset);
  57408. t2 = this.color ? "\x1b[1mDebug\x1b[0m" : "DEBUG";
  57409. t2 = "" + (url + ":" + (t1 + 1) + " ") + t2 + (": " + message);
  57410. A.printError(t2.charCodeAt(0) == 0 ? t2 : t2);
  57411. }
  57412. };
  57413. A.TrackingLogger.prototype = {
  57414. warn$4$deprecation$span$trace(_, message, deprecation, span, trace) {
  57415. this._emittedWarning = true;
  57416. this._tracking$_logger.warn$4$deprecation$span$trace(0, message, deprecation, span, trace);
  57417. },
  57418. warn$1(_, message) {
  57419. return this.warn$4$deprecation$span$trace(0, message, false, null, null);
  57420. },
  57421. warn$3$span$trace(_, message, span, trace) {
  57422. return this.warn$4$deprecation$span$trace(0, message, false, span, trace);
  57423. },
  57424. debug$2(_, message, span) {
  57425. this._emittedDebug = true;
  57426. this._tracking$_logger.debug$2(0, message, span);
  57427. }
  57428. };
  57429. A.BuiltInModule.prototype = {
  57430. get$upstream() {
  57431. return B.List_empty7;
  57432. },
  57433. get$variableNodes() {
  57434. return B.Map_empty4;
  57435. },
  57436. get$extensionStore() {
  57437. return B.C_EmptyExtensionStore;
  57438. },
  57439. get$css(_) {
  57440. return new A.CssStylesheet(B.List_empty3, A.SourceFile$decoded(B.List_empty4, this.url).span$2(0, 0, 0));
  57441. },
  57442. get$preModuleComments() {
  57443. return B.Map_empty2;
  57444. },
  57445. get$transitivelyContainsCss() {
  57446. return false;
  57447. },
  57448. get$transitivelyContainsExtensions() {
  57449. return false;
  57450. },
  57451. setVariable$3($name, value, nodeWithSpan) {
  57452. if (!this.variables.containsKey$1($name))
  57453. throw A.wrapException(A.SassScriptException$("Undefined variable.", null));
  57454. throw A.wrapException(A.SassScriptException$("Cannot modify built-in variable.", null));
  57455. },
  57456. variableIdentity$1($name) {
  57457. return this;
  57458. },
  57459. cloneCss$0() {
  57460. return this;
  57461. },
  57462. $isModule0: 1,
  57463. get$url(receiver) {
  57464. return this.url;
  57465. },
  57466. get$functions(receiver) {
  57467. return this.functions;
  57468. },
  57469. get$mixins() {
  57470. return this.mixins;
  57471. },
  57472. get$variables() {
  57473. return this.variables;
  57474. }
  57475. };
  57476. A.ForwardedModuleView.prototype = {
  57477. get$url(_) {
  57478. var t1 = this._forwarded_view$_inner;
  57479. return t1.get$url(t1);
  57480. },
  57481. get$upstream() {
  57482. return this._forwarded_view$_inner.get$upstream();
  57483. },
  57484. get$extensionStore() {
  57485. return this._forwarded_view$_inner.get$extensionStore();
  57486. },
  57487. get$css(_) {
  57488. var t1 = this._forwarded_view$_inner;
  57489. return t1.get$css(t1);
  57490. },
  57491. get$preModuleComments() {
  57492. return this._forwarded_view$_inner.get$preModuleComments();
  57493. },
  57494. get$transitivelyContainsCss() {
  57495. return this._forwarded_view$_inner.get$transitivelyContainsCss();
  57496. },
  57497. get$transitivelyContainsExtensions() {
  57498. return this._forwarded_view$_inner.get$transitivelyContainsExtensions();
  57499. },
  57500. setVariable$3($name, value, nodeWithSpan) {
  57501. var t2, _1_0, _2_0,
  57502. _s19_ = "Undefined variable.",
  57503. t1 = this._rule,
  57504. _0_0 = t1.shownVariables;
  57505. if (_0_0 != null)
  57506. t2 = !_0_0._base.contains$1(0, $name);
  57507. else
  57508. t2 = false;
  57509. if (t2)
  57510. throw A.wrapException(A.SassScriptException$(_s19_, null));
  57511. else {
  57512. _1_0 = t1.hiddenVariables;
  57513. if (_1_0 != null)
  57514. t2 = _1_0._base.contains$1(0, $name);
  57515. else
  57516. t2 = false;
  57517. if (t2)
  57518. throw A.wrapException(A.SassScriptException$(_s19_, null));
  57519. }
  57520. _2_0 = t1.prefix;
  57521. if (_2_0 != null) {
  57522. if (!B.JSString_methods.startsWith$1($name, _2_0))
  57523. throw A.wrapException(A.SassScriptException$(_s19_, null));
  57524. $name = B.JSString_methods.substring$1($name, _2_0.length);
  57525. }
  57526. return this._forwarded_view$_inner.setVariable$3($name, value, nodeWithSpan);
  57527. },
  57528. variableIdentity$1($name) {
  57529. var _0_0 = this._rule.prefix;
  57530. if (_0_0 != null)
  57531. $name = B.JSString_methods.substring$1($name, _0_0.length);
  57532. return this._forwarded_view$_inner.variableIdentity$1($name);
  57533. },
  57534. $eq(_, other) {
  57535. if (other == null)
  57536. return false;
  57537. return other instanceof A.ForwardedModuleView && this._forwarded_view$_inner.$eq(0, other._forwarded_view$_inner) && this._rule === other._rule;
  57538. },
  57539. get$hashCode(_) {
  57540. var t1 = this._forwarded_view$_inner;
  57541. return (t1.get$hashCode(t1) ^ A.Primitives_objectHashCode(this._rule)) >>> 0;
  57542. },
  57543. cloneCss$0() {
  57544. return A.ForwardedModuleView$(this._forwarded_view$_inner.cloneCss$0(), this._rule, this.$ti._precomputed1);
  57545. },
  57546. toString$0(_) {
  57547. return "forwarded " + this._forwarded_view$_inner.toString$0(0);
  57548. },
  57549. $isModule0: 1,
  57550. get$variables() {
  57551. return this.variables;
  57552. },
  57553. get$variableNodes() {
  57554. return this.variableNodes;
  57555. },
  57556. get$functions(receiver) {
  57557. return this.functions;
  57558. },
  57559. get$mixins() {
  57560. return this.mixins;
  57561. }
  57562. };
  57563. A.ShadowedModuleView.prototype = {
  57564. get$url(_) {
  57565. var t1 = this._shadowed_view$_inner;
  57566. return t1.get$url(t1);
  57567. },
  57568. get$upstream() {
  57569. return this._shadowed_view$_inner.get$upstream();
  57570. },
  57571. get$extensionStore() {
  57572. return this._shadowed_view$_inner.get$extensionStore();
  57573. },
  57574. get$css(_) {
  57575. var t1 = this._shadowed_view$_inner;
  57576. return t1.get$css(t1);
  57577. },
  57578. get$preModuleComments() {
  57579. return this._shadowed_view$_inner.get$preModuleComments();
  57580. },
  57581. get$transitivelyContainsCss() {
  57582. return this._shadowed_view$_inner.get$transitivelyContainsCss();
  57583. },
  57584. get$transitivelyContainsExtensions() {
  57585. return this._shadowed_view$_inner.get$transitivelyContainsExtensions();
  57586. },
  57587. setVariable$3($name, value, nodeWithSpan) {
  57588. if (!this.variables.containsKey$1($name))
  57589. throw A.wrapException(A.SassScriptException$("Undefined variable.", null));
  57590. else
  57591. this._shadowed_view$_inner.setVariable$3($name, value, nodeWithSpan);
  57592. },
  57593. variableIdentity$1($name) {
  57594. return this._shadowed_view$_inner.variableIdentity$1($name);
  57595. },
  57596. $eq(_, other) {
  57597. var t1, t2, t3, _this = this;
  57598. if (other == null)
  57599. return false;
  57600. t1 = false;
  57601. if (other instanceof A.ShadowedModuleView)
  57602. if (_this._shadowed_view$_inner.$eq(0, other._shadowed_view$_inner)) {
  57603. t2 = _this.variables;
  57604. t2 = t2.get$keys(t2);
  57605. t3 = other.variables;
  57606. if (B.C_IterableEquality.equals$2(0, t2, t3.get$keys(t3))) {
  57607. t2 = _this.functions;
  57608. t2 = t2.get$keys(t2);
  57609. t3 = other.functions;
  57610. if (B.C_IterableEquality.equals$2(0, t2, t3.get$keys(t3))) {
  57611. t1 = _this.mixins;
  57612. t1 = t1.get$keys(t1);
  57613. t2 = other.mixins;
  57614. t2 = B.C_IterableEquality.equals$2(0, t1, t2.get$keys(t2));
  57615. t1 = t2;
  57616. }
  57617. }
  57618. }
  57619. return t1;
  57620. },
  57621. get$hashCode(_) {
  57622. var t1 = this._shadowed_view$_inner;
  57623. return t1.get$hashCode(t1);
  57624. },
  57625. cloneCss$0() {
  57626. var _this = this;
  57627. return new A.ShadowedModuleView(_this._shadowed_view$_inner.cloneCss$0(), _this.variables, _this.variableNodes, _this.functions, _this.mixins, _this.$ti);
  57628. },
  57629. toString$0(_) {
  57630. return "shadowed " + this._shadowed_view$_inner.toString$0(0);
  57631. },
  57632. $isModule0: 1,
  57633. get$variables() {
  57634. return this.variables;
  57635. },
  57636. get$variableNodes() {
  57637. return this.variableNodes;
  57638. },
  57639. get$functions(receiver) {
  57640. return this.functions;
  57641. },
  57642. get$mixins() {
  57643. return this.mixins;
  57644. }
  57645. };
  57646. A.AtRootQueryParser.prototype = {
  57647. parse$0(_) {
  57648. return this.wrapSpanFormatException$1(new A.AtRootQueryParser_parse_closure(this));
  57649. }
  57650. };
  57651. A.AtRootQueryParser_parse_closure.prototype = {
  57652. call$0() {
  57653. var include, atRules,
  57654. t1 = this.$this,
  57655. t2 = t1.scanner;
  57656. t2.expectChar$1(40);
  57657. t1.whitespace$0();
  57658. include = t1.scanIdentifier$1("with");
  57659. if (!include)
  57660. t1.expectIdentifier$2$name("without", '"with" or "without"');
  57661. t1.whitespace$0();
  57662. t2.expectChar$1(58);
  57663. t1.whitespace$0();
  57664. atRules = A.LinkedHashSet_LinkedHashSet$_empty(type$.String);
  57665. do {
  57666. atRules.add$1(0, t1.identifier$0().toLowerCase());
  57667. t1.whitespace$0();
  57668. } while (t1.lookingAtIdentifier$0());
  57669. t2.expectChar$1(41);
  57670. t2.expectDone$0();
  57671. return new A.AtRootQuery(include, atRules, atRules.contains$1(0, "all"), atRules.contains$1(0, "rule"));
  57672. },
  57673. $signature: 338
  57674. };
  57675. A._disallowedFunctionNames_closure.prototype = {
  57676. call$1($function) {
  57677. return $function.name;
  57678. },
  57679. $signature: 339
  57680. };
  57681. A.CssParser.prototype = {
  57682. get$plainCss() {
  57683. return true;
  57684. },
  57685. silentComment$0() {
  57686. var t1, t2, _this = this;
  57687. if (_this._inExpression)
  57688. return false;
  57689. t1 = _this.scanner;
  57690. t2 = t1._string_scanner$_position;
  57691. _this.super$Parser$silentComment();
  57692. _this.error$2(0, string$.Silent, t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  57693. },
  57694. atRule$2$root(child, root) {
  57695. var $name, _0_0, _this = this,
  57696. t1 = _this.scanner,
  57697. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  57698. t1.expectChar$1(64);
  57699. $name = _this.interpolatedIdentifier$0();
  57700. _this.whitespace$0();
  57701. _0_0 = $name.get$asPlain();
  57702. $label0$0: {
  57703. if ("at-root" === _0_0 || "content" === _0_0 || "debug" === _0_0 || "each" === _0_0 || "error" === _0_0 || "extend" === _0_0 || "for" === _0_0 || "function" === _0_0 || "if" === _0_0 || "include" === _0_0 || "mixin" === _0_0 || "return" === _0_0 || "warn" === _0_0 || "while" === _0_0)
  57704. _this._forbiddenAtRule$1(start);
  57705. if ("import" === _0_0) {
  57706. t1 = _this._cssImportRule$1(start);
  57707. break $label0$0;
  57708. }
  57709. if ("media" === _0_0) {
  57710. t1 = _this.mediaRule$1(start);
  57711. break $label0$0;
  57712. }
  57713. if ("-moz-document" === _0_0) {
  57714. t1 = _this.mozDocumentRule$2(start, $name);
  57715. break $label0$0;
  57716. }
  57717. if ("supports" === _0_0) {
  57718. t1 = _this.supportsRule$1(start);
  57719. break $label0$0;
  57720. }
  57721. t1 = _this.unknownAtRule$2(start, $name);
  57722. break $label0$0;
  57723. }
  57724. return t1;
  57725. },
  57726. _forbiddenAtRule$1(start) {
  57727. this.almostAnyValue$0();
  57728. this.error$2(0, "This at-rule isn't allowed in plain CSS.", this.scanner.spanFrom$1(start));
  57729. },
  57730. _cssImportRule$1(start) {
  57731. var _0_0, t3, string, $name, _0_3, _0_4, t4, _0_8, t5, modifiers, _this = this, _null = null,
  57732. t1 = _this.scanner,
  57733. t2 = t1._string_scanner$_position,
  57734. _1_0 = t1.peekChar$0();
  57735. $label1$1: {
  57736. if (117 === _1_0 || 85 === _1_0) {
  57737. _0_0 = _this.dynamicUrl$0();
  57738. $label0$0: {
  57739. if (_0_0 instanceof A.StringExpression) {
  57740. t3 = _0_0.text;
  57741. break $label0$0;
  57742. }
  57743. string = _null;
  57744. t3 = false;
  57745. if (_0_0 instanceof A.InterpolatedFunctionExpression) {
  57746. $name = _0_0.name;
  57747. _0_3 = _0_0.$arguments;
  57748. _0_4 = _0_3.positional;
  57749. t4 = _0_4;
  57750. if (t4.length === 1) {
  57751. _0_8 = _0_4[0];
  57752. t4 = _0_8;
  57753. if (t4 instanceof A.StringExpression) {
  57754. type$.StringExpression._as(_0_8);
  57755. t4 = _0_3.named;
  57756. if (t4.get$isEmpty(t4))
  57757. if (_0_3.rest == null)
  57758. t3 = _0_3.keywordRest == null;
  57759. string = _0_8;
  57760. }
  57761. }
  57762. } else
  57763. $name = _null;
  57764. if (t3) {
  57765. t3 = new A.StringBuffer("");
  57766. t4 = new A.InterpolationBuffer(t3, A._setArrayType([], type$.JSArray_Object), A._setArrayType([], type$.JSArray_nullable_FileSpan));
  57767. t4.addInterpolation$1($name);
  57768. t5 = A.Primitives_stringFromCharCode(40);
  57769. t3._contents += t5;
  57770. t4.addInterpolation$1(string.asInterpolation$0());
  57771. t5 = A.Primitives_stringFromCharCode(41);
  57772. t3._contents += t5;
  57773. t4 = t4.interpolation$1(_0_0.span);
  57774. t3 = t4;
  57775. break $label0$0;
  57776. }
  57777. t3 = _this.error$2(0, "Unsupported plain CSS import.", _0_0.get$span(_0_0));
  57778. }
  57779. break $label1$1;
  57780. }
  57781. t3 = _this.interpolatedString$0().asInterpolation$1$static(true);
  57782. break $label1$1;
  57783. }
  57784. _this.whitespace$0();
  57785. modifiers = _this.tryImportModifiers$0();
  57786. _this.expectStatementSeparator$1("@import rule");
  57787. t2 = A._setArrayType([new A.StaticImport(t3, modifiers, t1.spanFrom$1(new A._SpanScannerState(t1, t2)))], type$.JSArray_Import);
  57788. t1 = t1.spanFrom$1(start);
  57789. return new A.ImportRule(A.List_List$unmodifiable(t2, type$.Import), t1);
  57790. },
  57791. parentheses$0() {
  57792. var expression,
  57793. t1 = this.scanner,
  57794. t2 = t1._string_scanner$_position;
  57795. t1.expectChar$1(40);
  57796. this.whitespace$0();
  57797. expression = this.expressionUntilComma$0();
  57798. t1.expectChar$1(41);
  57799. return new A.ParenthesizedExpression(expression, t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  57800. },
  57801. identifierLike$0() {
  57802. var t2, allowEmptySecondArg, $arguments, t3, t4, _this = this,
  57803. t1 = _this.scanner,
  57804. start = new A._SpanScannerState(t1, t1._string_scanner$_position),
  57805. identifier = _this.interpolatedIdentifier$0(),
  57806. plain = identifier.get$asPlain(),
  57807. lower = plain.toLowerCase(),
  57808. _0_0 = _this.trySpecialFunction$2(lower, start);
  57809. if (_0_0 != null)
  57810. return _0_0;
  57811. t2 = t1._string_scanner$_position;
  57812. if (t1.scanChar$1(46))
  57813. return _this.namespacedExpression$2(plain, start);
  57814. if (!t1.scanChar$1(40))
  57815. return new A.StringExpression(identifier, false);
  57816. allowEmptySecondArg = lower === "var";
  57817. $arguments = A._setArrayType([], type$.JSArray_Expression);
  57818. if (!t1.scanChar$1(41)) {
  57819. do {
  57820. _this.whitespace$0();
  57821. if (allowEmptySecondArg && $arguments.length === 1 && t1.peekChar$0() === 41) {
  57822. t3 = A.FileLocation$_(t1._sourceFile, t1._string_scanner$_position);
  57823. t4 = t3.offset;
  57824. t4 = A._FileSpan$(t3.file, t4, t4);
  57825. $arguments.push(new A.StringExpression(new A.Interpolation(A.List_List$unmodifiable([""], type$.Object), B.List_null, t4), false));
  57826. break;
  57827. }
  57828. $arguments.push(_this.expressionUntilComma$1$singleEquals(true));
  57829. _this.whitespace$0();
  57830. } while (t1.scanChar$1(44));
  57831. t1.expectChar$1(41);
  57832. }
  57833. if ($.$get$_disallowedFunctionNames().contains$1(0, plain))
  57834. _this.error$2(0, string$.This_f, t1.spanFrom$1(start));
  57835. t2 = t1.spanFrom$1(new A._SpanScannerState(t1, t2));
  57836. t3 = type$.Expression;
  57837. t4 = A.List_List$unmodifiable($arguments, t3);
  57838. t3 = A.ConstantMap_ConstantMap$from(B.Map_empty6, type$.String, t3);
  57839. t1 = t1.spanFrom$1(start);
  57840. return new A.FunctionExpression(null, A.stringReplaceAllUnchecked(plain, "_", "-"), plain, new A.ArgumentInvocation(t4, t3, null, null, t2), t1);
  57841. },
  57842. namespacedExpression$2(namespace, start) {
  57843. var expression = this.super$StylesheetParser$namespacedExpression(namespace, start);
  57844. this.error$2(0, string$.Modulen, expression.get$span(expression));
  57845. }
  57846. };
  57847. A.KeyframeSelectorParser.prototype = {
  57848. parse$0(_) {
  57849. return this.wrapSpanFormatException$1(new A.KeyframeSelectorParser_parse_closure(this));
  57850. },
  57851. _percentage$0() {
  57852. var $self, _0_0,
  57853. t1 = this.scanner,
  57854. t2 = t1.scanChar$1(43) ? "" + A.Primitives_stringFromCharCode(43) : "",
  57855. second = t1.peekChar$0();
  57856. if (!(second != null && second >= 48 && second <= 57) && second !== 46)
  57857. t1.error$1(0, "Expected number.");
  57858. while (true) {
  57859. $self = t1.peekChar$0();
  57860. if (!($self != null && $self >= 48 && $self <= 57))
  57861. break;
  57862. t2 += A.Primitives_stringFromCharCode(t1.readChar$0());
  57863. }
  57864. if (t1.peekChar$0() === 46) {
  57865. t2 += A.Primitives_stringFromCharCode(t1.readChar$0());
  57866. while (true) {
  57867. $self = t1.peekChar$0();
  57868. if (!($self != null && $self >= 48 && $self <= 57))
  57869. break;
  57870. t2 += A.Primitives_stringFromCharCode(t1.readChar$0());
  57871. }
  57872. }
  57873. if (this.scanIdentChar$1(101)) {
  57874. t2 += A.Primitives_stringFromCharCode(101);
  57875. _0_0 = t1.peekChar$0();
  57876. if (43 === _0_0 || 45 === _0_0)
  57877. t2 += A.Primitives_stringFromCharCode(t1.readChar$0());
  57878. $self = t1.peekChar$0();
  57879. if (!($self != null && $self >= 48 && $self <= 57))
  57880. t1.error$1(0, "Expected digit.");
  57881. do {
  57882. t2 += A.Primitives_stringFromCharCode(t1.readChar$0());
  57883. $self = t1.peekChar$0();
  57884. } while ($self != null && $self >= 48 && $self <= 57);
  57885. }
  57886. t1.expectChar$1(37);
  57887. t2 += A.Primitives_stringFromCharCode(37);
  57888. return t2.charCodeAt(0) == 0 ? t2 : t2;
  57889. }
  57890. };
  57891. A.KeyframeSelectorParser_parse_closure.prototype = {
  57892. call$0() {
  57893. var selectors = A._setArrayType([], type$.JSArray_String),
  57894. t1 = this.$this,
  57895. t2 = t1.scanner;
  57896. do {
  57897. t1.whitespace$0();
  57898. if (t1.lookingAtIdentifier$0())
  57899. if (t1.scanIdentifier$1("from"))
  57900. selectors.push("from");
  57901. else {
  57902. t1.expectIdentifier$2$name("to", '"to" or "from"');
  57903. selectors.push("to");
  57904. }
  57905. else
  57906. selectors.push(t1._percentage$0());
  57907. t1.whitespace$0();
  57908. } while (t2.scanChar$1(44));
  57909. t2.expectDone$0();
  57910. return selectors;
  57911. },
  57912. $signature: 132
  57913. };
  57914. A.MediaQueryParser.prototype = {
  57915. parse$0(_) {
  57916. return this.wrapSpanFormatException$1(new A.MediaQueryParser_parse_closure(this));
  57917. },
  57918. _mediaQuery$0() {
  57919. var conditions, conjunction, t1, identifier1, identifier2, type, modifier, _this = this, _s3_ = "and", _null = null;
  57920. if (_this.scanner.peekChar$0() === 40) {
  57921. conditions = A._setArrayType([_this._mediaInParens$0()], type$.JSArray_String);
  57922. _this.whitespace$0();
  57923. if (_this.scanIdentifier$1(_s3_)) {
  57924. _this.expectWhitespace$0();
  57925. B.JSArray_methods.addAll$1(conditions, _this._mediaLogicSequence$1(_s3_));
  57926. conjunction = true;
  57927. } else {
  57928. t1 = _this.scanIdentifier$1("or");
  57929. if (t1) {
  57930. _this.expectWhitespace$0();
  57931. B.JSArray_methods.addAll$1(conditions, _this._mediaLogicSequence$1("or"));
  57932. }
  57933. conjunction = !t1;
  57934. }
  57935. return A.CssMediaQuery$condition(conditions, conjunction);
  57936. }
  57937. identifier1 = _this.identifier$0();
  57938. if (A.equalsIgnoreCase(identifier1, "not")) {
  57939. _this.expectWhitespace$0();
  57940. if (!_this.lookingAtIdentifier$0())
  57941. return A.CssMediaQuery$condition(A._setArrayType(["(not " + _this._mediaInParens$0() + ")"], type$.JSArray_String), _null);
  57942. }
  57943. _this.whitespace$0();
  57944. if (!_this.lookingAtIdentifier$0())
  57945. return A.CssMediaQuery$type(identifier1, _null, _null);
  57946. identifier2 = _this.identifier$0();
  57947. if (A.equalsIgnoreCase(identifier2, _s3_)) {
  57948. _this.expectWhitespace$0();
  57949. type = identifier1;
  57950. modifier = _null;
  57951. } else {
  57952. _this.whitespace$0();
  57953. if (_this.scanIdentifier$1(_s3_))
  57954. _this.expectWhitespace$0();
  57955. else
  57956. return A.CssMediaQuery$type(identifier2, _null, identifier1);
  57957. type = identifier2;
  57958. modifier = identifier1;
  57959. }
  57960. if (_this.scanIdentifier$1("not")) {
  57961. _this.expectWhitespace$0();
  57962. return A.CssMediaQuery$type(type, A._setArrayType(["(not " + _this._mediaInParens$0() + ")"], type$.JSArray_String), modifier);
  57963. }
  57964. return A.CssMediaQuery$type(type, _this._mediaLogicSequence$1(_s3_), modifier);
  57965. },
  57966. _mediaLogicSequence$1(operator) {
  57967. var t1, t2, _this = this,
  57968. result = A._setArrayType([], type$.JSArray_String);
  57969. for (t1 = _this.scanner; true;) {
  57970. t1.expectChar$2$name(40, "media condition in parentheses");
  57971. t2 = _this.declarationValue$0();
  57972. t1.expectChar$1(41);
  57973. result.push("(" + t2 + ")");
  57974. _this.whitespace$0();
  57975. if (!_this.scanIdentifier$1(operator))
  57976. return result;
  57977. _this.expectWhitespace$0();
  57978. }
  57979. },
  57980. _mediaInParens$0() {
  57981. var t2,
  57982. t1 = this.scanner;
  57983. t1.expectChar$2$name(40, "media condition in parentheses");
  57984. t2 = this.declarationValue$0();
  57985. t1.expectChar$1(41);
  57986. return "(" + t2 + ")";
  57987. }
  57988. };
  57989. A.MediaQueryParser_parse_closure.prototype = {
  57990. call$0() {
  57991. var queries = A._setArrayType([], type$.JSArray_CssMediaQuery),
  57992. t1 = this.$this,
  57993. t2 = t1.scanner;
  57994. do {
  57995. t1.whitespace$0();
  57996. queries.push(t1._mediaQuery$0());
  57997. t1.whitespace$0();
  57998. } while (t2.scanChar$1(44));
  57999. t2.expectDone$0();
  58000. return queries;
  58001. },
  58002. $signature: 341
  58003. };
  58004. A.Parser.prototype = {
  58005. _parseIdentifier$0() {
  58006. return this.wrapSpanFormatException$1(new A.Parser__parseIdentifier_closure(this));
  58007. },
  58008. _isVariableDeclarationLike$0() {
  58009. var _this = this,
  58010. t1 = _this.scanner;
  58011. if (!t1.scanChar$1(36))
  58012. return false;
  58013. if (!_this.lookingAtIdentifier$0())
  58014. return false;
  58015. _this.identifier$0();
  58016. _this.whitespace$0();
  58017. return t1.scanChar$1(58);
  58018. },
  58019. whitespace$0() {
  58020. do
  58021. this.whitespaceWithoutComments$0();
  58022. while (this.scanComment$0());
  58023. },
  58024. whitespaceWithoutComments$0() {
  58025. var t3,
  58026. t1 = this.scanner,
  58027. t2 = t1.string.length;
  58028. while (true) {
  58029. if (t1._string_scanner$_position !== t2) {
  58030. t3 = t1.peekChar$0();
  58031. t3 = t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12;
  58032. } else
  58033. t3 = false;
  58034. if (!t3)
  58035. break;
  58036. t1.readChar$0();
  58037. }
  58038. },
  58039. spaces$0() {
  58040. var t3,
  58041. t1 = this.scanner,
  58042. t2 = t1.string.length;
  58043. while (true) {
  58044. if (t1._string_scanner$_position !== t2) {
  58045. t3 = t1.peekChar$0();
  58046. t3 = t3 === 32 || t3 === 9;
  58047. } else
  58048. t3 = false;
  58049. if (!t3)
  58050. break;
  58051. t1.readChar$0();
  58052. }
  58053. },
  58054. scanComment$0() {
  58055. var _0_0,
  58056. t1 = this.scanner;
  58057. if (t1.peekChar$0() !== 47)
  58058. return false;
  58059. _0_0 = t1.peekChar$1(1);
  58060. if (47 === _0_0)
  58061. return this.silentComment$0();
  58062. if (42 === _0_0) {
  58063. this.loudComment$0();
  58064. return true;
  58065. }
  58066. return false;
  58067. },
  58068. expectWhitespace$0() {
  58069. var t2, t3,
  58070. t1 = this.scanner;
  58071. if (t1._string_scanner$_position !== t1.string.length) {
  58072. t2 = t1.peekChar$0();
  58073. t3 = !(t2 === 32 || t2 === 9 || t2 === 10 || t2 === 13 || t2 === 12 || this.scanComment$0());
  58074. t2 = t3;
  58075. } else
  58076. t2 = true;
  58077. if (t2)
  58078. t1.error$1(0, "Expected whitespace.");
  58079. this.whitespace$0();
  58080. },
  58081. silentComment$0() {
  58082. var t2, t3,
  58083. t1 = this.scanner;
  58084. t1.expect$1("//");
  58085. t2 = t1.string.length;
  58086. while (true) {
  58087. if (t1._string_scanner$_position !== t2) {
  58088. t3 = t1.peekChar$0();
  58089. t3 = !(t3 === 10 || t3 === 13 || t3 === 12);
  58090. } else
  58091. t3 = false;
  58092. if (!t3)
  58093. break;
  58094. t1.readChar$0();
  58095. }
  58096. return true;
  58097. },
  58098. loudComment$0() {
  58099. var next,
  58100. t1 = this.scanner;
  58101. t1.expect$1("/*");
  58102. for (; true;) {
  58103. if (t1.readChar$0() !== 42)
  58104. continue;
  58105. do
  58106. next = t1.readChar$0();
  58107. while (next === 42);
  58108. if (next === 47)
  58109. break;
  58110. }
  58111. },
  58112. identifier$2$normalize$unit(normalize, unit) {
  58113. var t2, _0_0, _this = this,
  58114. _s20_ = "Expected identifier.",
  58115. text = new A.StringBuffer(""),
  58116. t1 = _this.scanner;
  58117. if (t1.scanChar$1(45)) {
  58118. t2 = text._contents = "" + A.Primitives_stringFromCharCode(45);
  58119. if (t1.scanChar$1(45)) {
  58120. text._contents = t2 + A.Primitives_stringFromCharCode(45);
  58121. _this._identifierBody$3$normalize$unit(text, normalize, unit);
  58122. t1 = text._contents;
  58123. return t1.charCodeAt(0) == 0 ? t1 : t1;
  58124. }
  58125. } else
  58126. t2 = "";
  58127. $label0$0: {
  58128. _0_0 = t1.peekChar$0();
  58129. if (_0_0 == null)
  58130. t1.error$1(0, _s20_);
  58131. if (95 === _0_0 && normalize) {
  58132. t1.readChar$0();
  58133. text._contents = t2 + A.Primitives_stringFromCharCode(45);
  58134. break $label0$0;
  58135. }
  58136. if (_0_0 === 95 || A.CharacterExtension_get_isAlphabetic(_0_0) || _0_0 >= 128) {
  58137. text._contents = t2 + A.Primitives_stringFromCharCode(t1.readChar$0());
  58138. break $label0$0;
  58139. }
  58140. if (92 === _0_0) {
  58141. text._contents = t2 + _this.escape$1$identifierStart(true);
  58142. break $label0$0;
  58143. }
  58144. t1.error$1(0, _s20_);
  58145. }
  58146. _this._identifierBody$3$normalize$unit(text, normalize, unit);
  58147. t1 = text._contents;
  58148. return t1.charCodeAt(0) == 0 ? t1 : t1;
  58149. },
  58150. identifier$0() {
  58151. return this.identifier$2$normalize$unit(false, false);
  58152. },
  58153. identifier$1$normalize(normalize) {
  58154. return this.identifier$2$normalize$unit(normalize, false);
  58155. },
  58156. identifier$1$unit(unit) {
  58157. return this.identifier$2$normalize$unit(false, unit);
  58158. },
  58159. _identifierBody$3$normalize$unit(text, normalize, unit) {
  58160. var t1, _1_0, _0_0, t2;
  58161. for (t1 = this.scanner; true;) {
  58162. _1_0 = t1.peekChar$0();
  58163. if (_1_0 == null)
  58164. break;
  58165. if (45 === _1_0 && unit) {
  58166. _0_0 = t1.peekChar$1(1);
  58167. if (46 !== _0_0)
  58168. t2 = A._isInt(_0_0) && _0_0 >= 48 && _0_0 <= 57;
  58169. else
  58170. t2 = true;
  58171. if (t2)
  58172. break;
  58173. t2 = A.Primitives_stringFromCharCode(t1.readChar$0());
  58174. text._contents += t2;
  58175. continue;
  58176. }
  58177. if (95 === _1_0 && normalize) {
  58178. t1.readChar$0();
  58179. t2 = A.Primitives_stringFromCharCode(45);
  58180. text._contents += t2;
  58181. continue;
  58182. }
  58183. if (_1_0 !== 95) {
  58184. if (!(_1_0 >= 97 && _1_0 <= 122))
  58185. t2 = _1_0 >= 65 && _1_0 <= 90;
  58186. else
  58187. t2 = true;
  58188. t2 = t2 || _1_0 >= 128;
  58189. } else
  58190. t2 = true;
  58191. if (!t2)
  58192. t2 = _1_0 >= 48 && _1_0 <= 57 || _1_0 === 45;
  58193. else
  58194. t2 = true;
  58195. if (t2) {
  58196. t2 = A.Primitives_stringFromCharCode(t1.readChar$0());
  58197. text._contents += t2;
  58198. continue;
  58199. }
  58200. if (92 === _1_0) {
  58201. t2 = this.escape$0();
  58202. text._contents += t2;
  58203. continue;
  58204. }
  58205. break;
  58206. }
  58207. },
  58208. _identifierBody$1(text) {
  58209. return this._identifierBody$3$normalize$unit(text, false, false);
  58210. },
  58211. string$0() {
  58212. var buffer, _0_0, t2,
  58213. t1 = this.scanner,
  58214. quote = t1.readChar$0();
  58215. if (quote !== 39 && quote !== 34)
  58216. t1.error$2$position(0, "Expected string.", t1._string_scanner$_position - 1);
  58217. buffer = new A.StringBuffer("");
  58218. for (; true;) {
  58219. _0_0 = t1.peekChar$0();
  58220. if (_0_0 === quote) {
  58221. t1.readChar$0();
  58222. break;
  58223. }
  58224. if (_0_0 == null || _0_0 === 10 || _0_0 === 13 || _0_0 === 12)
  58225. t1.error$1(0, "Expected " + A.Primitives_stringFromCharCode(quote) + ".");
  58226. if (92 === _0_0) {
  58227. t2 = t1.peekChar$1(1);
  58228. if (t2 === 10 || t2 === 13 || t2 === 12) {
  58229. t1.readChar$0();
  58230. t1.readChar$0();
  58231. } else {
  58232. t2 = A.Primitives_stringFromCharCode(A.consumeEscapedCharacter(t1));
  58233. buffer._contents += t2;
  58234. }
  58235. continue;
  58236. }
  58237. t2 = A.Primitives_stringFromCharCode(t1.readChar$0());
  58238. buffer._contents += t2;
  58239. }
  58240. t1 = buffer._contents;
  58241. return t1.charCodeAt(0) == 0 ? t1 : t1;
  58242. },
  58243. declarationValue$1$allowEmpty(allowEmpty) {
  58244. var t1, t2, wroteNewline, next, wroteNewline0, t3, start, end, _0_0, _this = this,
  58245. buffer = new A.StringBuffer(""),
  58246. brackets = A._setArrayType([], type$.JSArray_int);
  58247. for (t1 = _this.scanner, t2 = _this.get$string(), wroteNewline = false; true;) {
  58248. next = t1.peekChar$0();
  58249. if (next == null)
  58250. break;
  58251. wroteNewline0 = false;
  58252. if (92 === next) {
  58253. t3 = _this.escape$1$identifierStart(true);
  58254. buffer._contents += t3;
  58255. wroteNewline = wroteNewline0;
  58256. continue;
  58257. }
  58258. if (34 === next || 39 === next) {
  58259. start = t1._string_scanner$_position;
  58260. t2.call$0();
  58261. end = t1._string_scanner$_position;
  58262. buffer._contents += B.JSString_methods.substring$2(t1.string, start, end);
  58263. wroteNewline = wroteNewline0;
  58264. continue;
  58265. }
  58266. if (47 === next) {
  58267. if (t1.peekChar$1(1) === 42) {
  58268. t3 = _this.get$loudComment();
  58269. start = t1._string_scanner$_position;
  58270. t3.call$0();
  58271. end = t1._string_scanner$_position;
  58272. buffer._contents += B.JSString_methods.substring$2(t1.string, start, end);
  58273. } else {
  58274. t3 = A.Primitives_stringFromCharCode(t1.readChar$0());
  58275. buffer._contents += t3;
  58276. }
  58277. wroteNewline = wroteNewline0;
  58278. continue;
  58279. }
  58280. if (32 === next || 9 === next) {
  58281. if (!wroteNewline) {
  58282. t3 = t1.peekChar$1(1);
  58283. t3 = !(t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12);
  58284. } else
  58285. t3 = true;
  58286. if (t3) {
  58287. t3 = A.Primitives_stringFromCharCode(32);
  58288. buffer._contents += t3;
  58289. }
  58290. t1.readChar$0();
  58291. continue;
  58292. }
  58293. if (10 === next || 13 === next || 12 === next) {
  58294. t3 = t1.peekChar$1(-1);
  58295. if (!(t3 === 10 || t3 === 13 || t3 === 12))
  58296. buffer._contents += "\n";
  58297. t1.readChar$0();
  58298. wroteNewline = true;
  58299. continue;
  58300. }
  58301. if (40 === next || 123 === next || 91 === next) {
  58302. t3 = A.Primitives_stringFromCharCode(next);
  58303. buffer._contents += t3;
  58304. brackets.push(A.opposite(t1.readChar$0()));
  58305. wroteNewline = wroteNewline0;
  58306. continue;
  58307. }
  58308. if (41 === next || 125 === next || 93 === next) {
  58309. if (brackets.length === 0)
  58310. break;
  58311. t3 = A.Primitives_stringFromCharCode(next);
  58312. buffer._contents += t3;
  58313. t1.expectChar$1(brackets.pop());
  58314. wroteNewline = wroteNewline0;
  58315. continue;
  58316. }
  58317. if (59 === next) {
  58318. if (brackets.length === 0)
  58319. break;
  58320. t3 = A.Primitives_stringFromCharCode(t1.readChar$0());
  58321. buffer._contents += t3;
  58322. continue;
  58323. }
  58324. if (117 === next || 85 === next) {
  58325. _0_0 = _this.tryUrl$0();
  58326. if (_0_0 != null)
  58327. buffer._contents += _0_0;
  58328. else {
  58329. t3 = A.Primitives_stringFromCharCode(t1.readChar$0());
  58330. buffer._contents += t3;
  58331. }
  58332. wroteNewline = wroteNewline0;
  58333. continue;
  58334. }
  58335. if (_this.lookingAtIdentifier$0()) {
  58336. t3 = _this.identifier$0();
  58337. buffer._contents += t3;
  58338. } else {
  58339. t3 = A.Primitives_stringFromCharCode(t1.readChar$0());
  58340. buffer._contents += t3;
  58341. }
  58342. wroteNewline = wroteNewline0;
  58343. }
  58344. if (brackets.length !== 0)
  58345. t1.expectChar$1(B.JSArray_methods.get$last(brackets));
  58346. if (!allowEmpty && buffer._contents.length === 0)
  58347. t1.error$1(0, "Expected token.");
  58348. t1 = buffer._contents;
  58349. return t1.charCodeAt(0) == 0 ? t1 : t1;
  58350. },
  58351. declarationValue$0() {
  58352. return this.declarationValue$1$allowEmpty(false);
  58353. },
  58354. tryUrl$0() {
  58355. var buffer, _0_0, t2, _this = this,
  58356. t1 = _this.scanner,
  58357. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  58358. if (!_this.scanIdentifier$1("url"))
  58359. return null;
  58360. if (!t1.scanChar$1(40)) {
  58361. t1.set$state(start);
  58362. return null;
  58363. }
  58364. _this.whitespace$0();
  58365. buffer = new A.StringBuffer("");
  58366. buffer._contents = "" + "url(";
  58367. for (; true;) {
  58368. _0_0 = t1.peekChar$0();
  58369. if (_0_0 == null)
  58370. break;
  58371. if (92 === _0_0) {
  58372. t2 = _this.escape$0();
  58373. buffer._contents += t2;
  58374. continue;
  58375. }
  58376. t2 = true;
  58377. if (37 !== _0_0)
  58378. if (38 !== _0_0)
  58379. if (35 !== _0_0)
  58380. t2 = _0_0 >= 42 && _0_0 <= 126 || _0_0 >= 128;
  58381. if (t2) {
  58382. t2 = A.Primitives_stringFromCharCode(t1.readChar$0());
  58383. buffer._contents += t2;
  58384. continue;
  58385. }
  58386. if (_0_0 === 32 || _0_0 === 9 || _0_0 === 10 || _0_0 === 13 || _0_0 === 12) {
  58387. _this.whitespace$0();
  58388. if (t1.peekChar$0() !== 41)
  58389. break;
  58390. continue;
  58391. }
  58392. if (41 === _0_0) {
  58393. t2 = A.Primitives_stringFromCharCode(t1.readChar$0());
  58394. t2 = buffer._contents += t2;
  58395. return t2.charCodeAt(0) == 0 ? t2 : t2;
  58396. }
  58397. break;
  58398. }
  58399. t1.set$state(start);
  58400. return null;
  58401. },
  58402. variableName$0() {
  58403. this.scanner.expectChar$1(36);
  58404. return this.identifier$1$normalize(true);
  58405. },
  58406. escape$1$identifierStart(identifierStart) {
  58407. var value, _0_0, i, next, t2, exception,
  58408. _s25_ = "Expected escape sequence.",
  58409. t1 = this.scanner,
  58410. start = t1._string_scanner$_position;
  58411. t1.expectChar$1(92);
  58412. value = 0;
  58413. $label0$1: {
  58414. _0_0 = t1.peekChar$0();
  58415. if (_0_0 == null)
  58416. t1.error$1(0, _s25_);
  58417. if (_0_0 === 10 || _0_0 === 13 || _0_0 === 12)
  58418. t1.error$1(0, _s25_);
  58419. if (A.CharacterExtension_get_isHex(_0_0)) {
  58420. for (i = 0; i < 6; ++i) {
  58421. next = t1.peekChar$0();
  58422. if (next != null) {
  58423. t2 = true;
  58424. if (!(next >= 48 && next <= 57))
  58425. if (!(next >= 97 && next <= 102))
  58426. t2 = next >= 65 && next <= 70;
  58427. t2 = !t2;
  58428. } else
  58429. t2 = true;
  58430. if (t2)
  58431. break;
  58432. value *= 16;
  58433. value += A.asHex(t1.readChar$0());
  58434. }
  58435. this.scanCharIf$1(new A.Parser_escape_closure());
  58436. break $label0$1;
  58437. }
  58438. value = t1.readChar$0();
  58439. }
  58440. if (identifierStart) {
  58441. t2 = value;
  58442. t2 = t2 === 95 || A.CharacterExtension_get_isAlphabetic(t2) || t2 >= 128;
  58443. } else {
  58444. t2 = value;
  58445. if (!(t2 === 95 || A.CharacterExtension_get_isAlphabetic(t2) || t2 >= 128))
  58446. t2 = t2 >= 48 && t2 <= 57 || t2 === 45;
  58447. else
  58448. t2 = true;
  58449. }
  58450. if (t2)
  58451. try {
  58452. t2 = A.Primitives_stringFromCharCode(value);
  58453. return t2;
  58454. } catch (exception) {
  58455. if (type$.RangeError._is(A.unwrapException(exception)))
  58456. t1.error$3$length$position(0, "Invalid Unicode code point.", t1._string_scanner$_position - start, start);
  58457. else
  58458. throw exception;
  58459. }
  58460. else {
  58461. t1 = true;
  58462. if (!(value <= 31))
  58463. if (!J.$eq$(value, 127))
  58464. if (identifierStart) {
  58465. t1 = value;
  58466. t1 = t1 >= 48 && t1 <= 57;
  58467. } else
  58468. t1 = false;
  58469. if (t1) {
  58470. t1 = "" + A.Primitives_stringFromCharCode(92);
  58471. if (value > 15)
  58472. t1 += A.Primitives_stringFromCharCode(A.hexCharFor(B.JSNumber_methods._shrOtherPositive$1(value, 4)));
  58473. t1 = t1 + A.Primitives_stringFromCharCode(A.hexCharFor(value & 15)) + A.Primitives_stringFromCharCode(32);
  58474. return t1.charCodeAt(0) == 0 ? t1 : t1;
  58475. } else
  58476. return A.String_String$fromCharCodes(A._setArrayType([92, value], type$.JSArray_int), 0, null);
  58477. }
  58478. },
  58479. escape$0() {
  58480. return this.escape$1$identifierStart(false);
  58481. },
  58482. scanCharIf$1(condition) {
  58483. var t1 = this.scanner;
  58484. if (!condition.call$1(t1.peekChar$0()))
  58485. return false;
  58486. t1.readChar$0();
  58487. return true;
  58488. },
  58489. scanIdentChar$2$caseSensitive(char, caseSensitive) {
  58490. var t3,
  58491. t1 = new A.Parser_scanIdentChar_matches(caseSensitive, char),
  58492. t2 = this.scanner,
  58493. _0_0 = t2.peekChar$0();
  58494. if (_0_0 != null) {
  58495. t3 = t1.call$1(_0_0);
  58496. t3 = t3;
  58497. } else
  58498. t3 = false;
  58499. if (t3) {
  58500. t2.readChar$0();
  58501. return true;
  58502. }
  58503. if (92 === _0_0) {
  58504. t3 = t2._string_scanner$_position;
  58505. if (t1.call$1(A.consumeEscapedCharacter(t2)))
  58506. return true;
  58507. t2.set$state(new A._SpanScannerState(t2, t3));
  58508. }
  58509. return false;
  58510. },
  58511. scanIdentChar$1(char) {
  58512. return this.scanIdentChar$2$caseSensitive(char, false);
  58513. },
  58514. expectIdentChar$1(letter) {
  58515. var t1;
  58516. if (this.scanIdentChar$2$caseSensitive(letter, false))
  58517. return;
  58518. t1 = this.scanner;
  58519. t1.error$2$position(0, 'Expected "' + A.Primitives_stringFromCharCode(letter) + '".', t1._string_scanner$_position);
  58520. },
  58521. lookingAtIdentifier$1($forward) {
  58522. var t1, _1_0, t2, _0_0;
  58523. if ($forward == null)
  58524. $forward = 0;
  58525. t1 = this.scanner;
  58526. _1_0 = t1.peekChar$1($forward);
  58527. $label0$0: {
  58528. if (A._isInt(_1_0))
  58529. t2 = _1_0 === 95 || A.CharacterExtension_get_isAlphabetic(_1_0) || _1_0 >= 128;
  58530. else
  58531. t2 = false;
  58532. if (t2 || 92 === _1_0) {
  58533. t1 = true;
  58534. break $label0$0;
  58535. }
  58536. if (45 === _1_0) {
  58537. _0_0 = t1.peekChar$1($forward + 1);
  58538. $label1$1: {
  58539. if (A._isInt(_0_0))
  58540. t1 = _0_0 === 95 || A.CharacterExtension_get_isAlphabetic(_0_0) || _0_0 >= 128;
  58541. else
  58542. t1 = false;
  58543. t1 = t1 || 92 === _0_0 || 45 === _0_0;
  58544. if (t1)
  58545. break $label1$1;
  58546. break $label1$1;
  58547. }
  58548. break $label0$0;
  58549. }
  58550. t1 = false;
  58551. break $label0$0;
  58552. }
  58553. return t1;
  58554. },
  58555. lookingAtIdentifier$0() {
  58556. return this.lookingAtIdentifier$1(null);
  58557. },
  58558. lookingAtIdentifierBody$0() {
  58559. var t1,
  58560. next = this.scanner.peekChar$0();
  58561. if (next != null) {
  58562. if (!(next === 95 || A.CharacterExtension_get_isAlphabetic(next) || next >= 128))
  58563. t1 = next >= 48 && next <= 57 || next === 45;
  58564. else
  58565. t1 = true;
  58566. t1 = t1 || next === 92;
  58567. } else
  58568. t1 = false;
  58569. return t1;
  58570. },
  58571. scanIdentifier$2$caseSensitive(text, caseSensitive) {
  58572. var t1, t2, _this = this;
  58573. if (!_this.lookingAtIdentifier$0())
  58574. return false;
  58575. t1 = _this.scanner;
  58576. t2 = t1._string_scanner$_position;
  58577. if (_this._consumeIdentifier$2(text, caseSensitive) && !_this.lookingAtIdentifierBody$0())
  58578. return true;
  58579. else {
  58580. t1.set$state(new A._SpanScannerState(t1, t2));
  58581. return false;
  58582. }
  58583. },
  58584. scanIdentifier$1(text) {
  58585. return this.scanIdentifier$2$caseSensitive(text, false);
  58586. },
  58587. _consumeIdentifier$2(text, caseSensitive) {
  58588. var t1, t2, t3;
  58589. for (t1 = new A.CodeUnits(text), t2 = type$.CodeUnits, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t2 = t2._eval$1("ListBase.E"); t1.moveNext$0();) {
  58590. t3 = t1.__internal$_current;
  58591. if (!this.scanIdentChar$2$caseSensitive(t3 == null ? t2._as(t3) : t3, caseSensitive))
  58592. return false;
  58593. }
  58594. return true;
  58595. },
  58596. expectIdentifier$2$name(text, $name) {
  58597. var t1, start, t2, t3, t4, t5, t6;
  58598. if ($name == null)
  58599. $name = '"' + text + '"';
  58600. t1 = this.scanner;
  58601. start = t1._string_scanner$_position;
  58602. for (t2 = new A.CodeUnits(text), t3 = type$.CodeUnits, t2 = new A.ListIterator(t2, t2.get$length(0), t3._eval$1("ListIterator<ListBase.E>")), t4 = "Expected " + $name, t5 = t4 + ".", t3 = t3._eval$1("ListBase.E"); t2.moveNext$0();) {
  58603. t6 = t2.__internal$_current;
  58604. if (this.scanIdentChar$2$caseSensitive(t6 == null ? t3._as(t6) : t6, false))
  58605. continue;
  58606. t1.error$2$position(0, t5, start);
  58607. }
  58608. if (!this.lookingAtIdentifierBody$0())
  58609. return;
  58610. t1.error$2$position(0, t4, start);
  58611. },
  58612. expectIdentifier$1(text) {
  58613. return this.expectIdentifier$2$name(text, null);
  58614. },
  58615. rawText$1(consumer) {
  58616. var t1 = this.scanner,
  58617. start = t1._string_scanner$_position;
  58618. consumer.call$0();
  58619. return t1.substring$1(0, start);
  58620. },
  58621. spanFrom$1(state) {
  58622. var span = this.scanner.spanFrom$1(state);
  58623. return this._interpolationMap == null ? span : new A.LazyFileSpan(new A.Parser_spanFrom_closure(this, span));
  58624. },
  58625. error$3(_, message, span, trace) {
  58626. var exception = new A.StringScannerException(this.scanner.string, message, span);
  58627. if (trace == null)
  58628. throw A.wrapException(exception);
  58629. else
  58630. A.throwWithTrace(exception, this.get$error(this), trace);
  58631. },
  58632. error$2(_, message, span) {
  58633. return this.error$3(0, message, span, null);
  58634. },
  58635. withErrorMessage$1$2(message, callback) {
  58636. var error, stackTrace, t1, exception;
  58637. try {
  58638. t1 = callback.call$0();
  58639. return t1;
  58640. } catch (exception) {
  58641. t1 = A.unwrapException(exception);
  58642. if (type$.SourceSpanFormatException._is(t1)) {
  58643. error = t1;
  58644. stackTrace = A.getTraceFromException(exception);
  58645. t1 = J.get$span$z(error);
  58646. A.throwWithTrace(new A.SourceSpanFormatException(error.get$source(), message, t1), error, stackTrace);
  58647. } else
  58648. throw exception;
  58649. }
  58650. },
  58651. withErrorMessage$2(message, callback) {
  58652. return this.withErrorMessage$1$2(message, callback, type$.dynamic);
  58653. },
  58654. wrapSpanFormatException$1$1(callback) {
  58655. var error, stackTrace, map, error0, stackTrace0, span, secondarySpans, t1, t2, span0, description, _0_0, error1, stackTrace1, span1, t3, exception, t4, _this = this,
  58656. _s8_ = "expected";
  58657. try {
  58658. try {
  58659. t3 = callback.call$0();
  58660. return t3;
  58661. } catch (exception) {
  58662. t3 = A.unwrapException(exception);
  58663. if (type$.SourceSpanFormatException._is(t3)) {
  58664. error = t3;
  58665. stackTrace = A.getTraceFromException(exception);
  58666. map = _this._interpolationMap;
  58667. if (map == null)
  58668. throw exception;
  58669. A.throwWithTrace(map.mapException$1(error), error, stackTrace);
  58670. } else
  58671. throw exception;
  58672. }
  58673. } catch (exception) {
  58674. t3 = A.unwrapException(exception);
  58675. if (type$.MultiSourceSpanFormatException._is(t3)) {
  58676. error0 = t3;
  58677. stackTrace0 = A.getTraceFromException(exception);
  58678. span = J.get$span$z(error0);
  58679. t3 = type$.FileSpan;
  58680. t4 = type$.String;
  58681. secondarySpans = error0.get$secondarySpans().cast$2$0(0, t3, t4);
  58682. if (A.startsWithIgnoreCase(error0._span_exception$_message, _s8_)) {
  58683. span = _this._adjustExceptionSpan$1(span);
  58684. t1 = A.LinkedHashMap_LinkedHashMap$_empty(t3, t4);
  58685. for (t3 = A.MapExtensions_get_pairs(secondarySpans, t3, t4), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  58686. t2 = t3.get$current(t3);
  58687. span0 = null;
  58688. description = null;
  58689. _0_0 = t2;
  58690. span0 = _0_0._0;
  58691. description = _0_0._1;
  58692. J.$indexSet$ax(t1, _this._adjustExceptionSpan$1(span0), description);
  58693. }
  58694. secondarySpans = t1;
  58695. }
  58696. A.throwWithTrace(A.MultiSpanSassFormatException$(error0._span_exception$_message, span, error0.get$primaryLabel(), secondarySpans, null), error0, stackTrace0);
  58697. } else if (type$.SourceSpanFormatException._is(t3)) {
  58698. error1 = t3;
  58699. stackTrace1 = A.getTraceFromException(exception);
  58700. span1 = J.get$span$z(error1);
  58701. if (A.startsWithIgnoreCase(error1._span_exception$_message, _s8_))
  58702. span1 = _this._adjustExceptionSpan$1(span1);
  58703. t1 = error1._span_exception$_message;
  58704. t2 = span1;
  58705. A.throwWithTrace(new A.SassFormatException(B.Set_empty, t1, t2), error1, stackTrace1);
  58706. } else
  58707. throw exception;
  58708. }
  58709. },
  58710. wrapSpanFormatException$1(callback) {
  58711. return this.wrapSpanFormatException$1$1(callback, type$.dynamic);
  58712. },
  58713. _adjustExceptionSpan$1(span) {
  58714. var start, t1;
  58715. if (span.get$length(span) > 0)
  58716. return span;
  58717. start = this._firstNewlineBefore$1(span.get$start(span));
  58718. if (start.$eq(0, span.get$start(span)))
  58719. t1 = span;
  58720. else {
  58721. t1 = start.offset;
  58722. t1 = A._FileSpan$(start.file, t1, t1);
  58723. }
  58724. return t1;
  58725. },
  58726. _firstNewlineBefore$1($location) {
  58727. var lastNewline, codeUnit,
  58728. t1 = $location.file,
  58729. t2 = $location.offset,
  58730. text = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1._decodedChars, 0, t2), 0, null),
  58731. index = t2 - 1;
  58732. for (lastNewline = null; index >= 0;) {
  58733. codeUnit = text.charCodeAt(index);
  58734. if (!(codeUnit === 32 || codeUnit === 9 || codeUnit === 10 || codeUnit === 13 || codeUnit === 12)) {
  58735. if (lastNewline == null)
  58736. t1 = $location;
  58737. else {
  58738. t2 = new A.FileLocation(t1, lastNewline);
  58739. t2.FileLocation$_$2(t1, lastNewline);
  58740. t1 = t2;
  58741. }
  58742. return t1;
  58743. }
  58744. if (codeUnit === 10 || codeUnit === 13 || codeUnit === 12)
  58745. lastNewline = index;
  58746. --index;
  58747. }
  58748. return $location;
  58749. }
  58750. };
  58751. A.Parser__parseIdentifier_closure.prototype = {
  58752. call$0() {
  58753. var t1 = this.$this,
  58754. result = t1.identifier$0();
  58755. t1.scanner.expectDone$0();
  58756. return result;
  58757. },
  58758. $signature: 31
  58759. };
  58760. A.Parser_escape_closure.prototype = {
  58761. call$1(char) {
  58762. return char === 32 || char === 9 || char === 10 || char === 13 || char === 12;
  58763. },
  58764. $signature: 32
  58765. };
  58766. A.Parser_scanIdentChar_matches.prototype = {
  58767. call$1(actual) {
  58768. var t1 = this.char;
  58769. return this.caseSensitive ? actual === t1 : A.characterEqualsIgnoreCase(t1, actual);
  58770. },
  58771. $signature: 47
  58772. };
  58773. A.Parser_spanFrom_closure.prototype = {
  58774. call$0() {
  58775. return this.$this._interpolationMap.mapSpan$1(this.span);
  58776. },
  58777. $signature: 29
  58778. };
  58779. A.SassParser.prototype = {
  58780. get$currentIndentation() {
  58781. return this._currentIndentation;
  58782. },
  58783. get$indented() {
  58784. return true;
  58785. },
  58786. styleRuleSelector$0() {
  58787. var t4,
  58788. t1 = this.scanner,
  58789. t2 = t1._string_scanner$_position,
  58790. t3 = new A.StringBuffer(""),
  58791. buffer = new A.InterpolationBuffer(t3, A._setArrayType([], type$.JSArray_Object), A._setArrayType([], type$.JSArray_nullable_FileSpan));
  58792. do {
  58793. buffer.addInterpolation$1(this.almostAnyValue$1$omitComments(true));
  58794. t4 = A.Primitives_stringFromCharCode(10);
  58795. t4 = t3._contents += t4;
  58796. } while (B.JSString_methods.endsWith$1(B.JSString_methods.trimRight$0(t4.charCodeAt(0) == 0 ? t4 : t4), ",") && this.scanCharIf$1(new A.SassParser_styleRuleSelector_closure()));
  58797. return buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  58798. },
  58799. expectStatementSeparator$1($name) {
  58800. var t1, _this = this;
  58801. if (!_this.atEndOfStatement$0())
  58802. _this._expectNewline$0();
  58803. if (_this._peekIndentation$0() <= _this._currentIndentation)
  58804. return;
  58805. t1 = $name == null ? "here" : "beneath a " + $name;
  58806. _this.scanner.error$2$position(0, "Nothing may be indented " + t1 + ".", _this._nextIndentationEnd.position);
  58807. },
  58808. expectStatementSeparator$0() {
  58809. return this.expectStatementSeparator$1(null);
  58810. },
  58811. atEndOfStatement$0() {
  58812. var t1 = this.scanner.peekChar$0();
  58813. if (t1 == null)
  58814. t1 = null;
  58815. else
  58816. t1 = t1 === 10 || t1 === 13 || t1 === 12;
  58817. return t1 !== false;
  58818. },
  58819. lookingAtChildren$0() {
  58820. return this.atEndOfStatement$0() && this._peekIndentation$0() > this._currentIndentation;
  58821. },
  58822. importArgument$0() {
  58823. var url, span, innerError, stackTrace, t1, _0_0, start, next, t2, exception, _this = this;
  58824. $label0$0: {
  58825. t1 = _this.scanner;
  58826. _0_0 = t1.peekChar$0();
  58827. if (117 === _0_0 || 85 === _0_0) {
  58828. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  58829. if (_this.scanIdentifier$1("url"))
  58830. if (t1.scanChar$1(40)) {
  58831. t1.set$state(start);
  58832. return _this.super$StylesheetParser$importArgument();
  58833. } else
  58834. t1.set$state(start);
  58835. break $label0$0;
  58836. }
  58837. if (39 === _0_0 || 34 === _0_0)
  58838. return _this.super$StylesheetParser$importArgument();
  58839. }
  58840. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  58841. next = t1.peekChar$0();
  58842. while (true) {
  58843. t2 = false;
  58844. if (next != null)
  58845. if (next !== 44)
  58846. if (next !== 59)
  58847. t2 = !(next === 10 || next === 13 || next === 12);
  58848. if (!t2)
  58849. break;
  58850. t1.readChar$0();
  58851. next = t1.peekChar$0();
  58852. }
  58853. url = t1.substring$1(0, start.position);
  58854. span = t1.spanFrom$1(start);
  58855. if (_this.isPlainImportUrl$1(url))
  58856. return new A.StaticImport(new A.Interpolation(A.List_List$unmodifiable([A.serializeValue(new A.SassString(url, true), true, true)], type$.Object), B.List_null, span), null, span);
  58857. else
  58858. try {
  58859. t1 = _this.parseImportUrl$1(url);
  58860. return new A.DynamicImport(t1, span);
  58861. } catch (exception) {
  58862. t1 = A.unwrapException(exception);
  58863. if (type$.FormatException._is(t1)) {
  58864. innerError = t1;
  58865. stackTrace = A.getTraceFromException(exception);
  58866. _this.error$3(0, "Invalid URL: " + J.get$message$x(innerError), span, stackTrace);
  58867. } else
  58868. throw exception;
  58869. }
  58870. },
  58871. scanElse$1(ifIndentation) {
  58872. var t1, t2, startIndentation, startNextIndentation, startNextIndentationEnd, _this = this;
  58873. if (_this._peekIndentation$0() !== ifIndentation)
  58874. return false;
  58875. t1 = _this.scanner;
  58876. t2 = t1._string_scanner$_position;
  58877. startIndentation = _this._currentIndentation;
  58878. startNextIndentation = _this._nextIndentation;
  58879. startNextIndentationEnd = _this._nextIndentationEnd;
  58880. _this._readIndentation$0();
  58881. if (t1.scanChar$1(64) && _this.scanIdentifier$1("else"))
  58882. return true;
  58883. t1.set$state(new A._SpanScannerState(t1, t2));
  58884. _this._currentIndentation = startIndentation;
  58885. _this._nextIndentation = startNextIndentation;
  58886. _this._nextIndentationEnd = startNextIndentationEnd;
  58887. return false;
  58888. },
  58889. children$1(_, child) {
  58890. var children = A._setArrayType([], type$.JSArray_Statement);
  58891. this._whileIndentedLower$1(new A.SassParser_children_closure(this, child, children));
  58892. return children;
  58893. },
  58894. statements$1(statement) {
  58895. var statements, t2, _1_0,
  58896. t1 = this.scanner,
  58897. _0_0 = t1.peekChar$0();
  58898. if (9 === _0_0 || 32 === _0_0)
  58899. t1.error$3$length$position(0, string$.Indent, t1._string_scanner$_position, 0);
  58900. statements = A._setArrayType([], type$.JSArray_Statement);
  58901. for (t2 = t1.string.length; t1._string_scanner$_position !== t2;) {
  58902. _1_0 = this._child$1(statement);
  58903. if (_1_0 != null)
  58904. statements.push(_1_0);
  58905. this._readIndentation$0();
  58906. }
  58907. return statements;
  58908. },
  58909. _child$1(child) {
  58910. var _0_0, _this = this,
  58911. t1 = _this.scanner,
  58912. _1_0 = t1.peekChar$0();
  58913. $label0$0: {
  58914. if (13 === _1_0 || 10 === _1_0 || 12 === _1_0) {
  58915. t1 = null;
  58916. break $label0$0;
  58917. }
  58918. if (36 === _1_0) {
  58919. t1 = _this.variableDeclarationWithoutNamespace$0();
  58920. break $label0$0;
  58921. }
  58922. if (47 === _1_0) {
  58923. _0_0 = t1.peekChar$1(1);
  58924. $label1$1: {
  58925. if (47 === _0_0) {
  58926. t1 = _this._silentComment$0();
  58927. break $label1$1;
  58928. }
  58929. if (42 === _0_0) {
  58930. t1 = _this._loudComment$0();
  58931. break $label1$1;
  58932. }
  58933. t1 = child.call$0();
  58934. break $label1$1;
  58935. }
  58936. break $label0$0;
  58937. }
  58938. t1 = child.call$0();
  58939. break $label0$0;
  58940. }
  58941. return t1;
  58942. },
  58943. _silentComment$0() {
  58944. var buffer, parentIndentation, t3, t4, t5, commentPrefix, i, t6, i0, t7, _this = this,
  58945. t1 = _this.scanner,
  58946. t2 = t1._string_scanner$_position;
  58947. t1.expect$1("//");
  58948. buffer = new A.StringBuffer("");
  58949. parentIndentation = _this._currentIndentation;
  58950. t3 = t1.string.length;
  58951. t4 = 1 + parentIndentation;
  58952. t5 = 2 + parentIndentation;
  58953. $label0$0:
  58954. do {
  58955. commentPrefix = t1.scanChar$1(47) ? "///" : "//";
  58956. for (i = commentPrefix.length; true;) {
  58957. t6 = buffer._contents += commentPrefix;
  58958. for (i0 = i; i0 < _this._currentIndentation - parentIndentation; ++i0) {
  58959. t6 += A.Primitives_stringFromCharCode(32);
  58960. buffer._contents = t6;
  58961. }
  58962. while (true) {
  58963. if (t1._string_scanner$_position !== t3) {
  58964. t7 = t1.peekChar$0();
  58965. t7 = !(t7 === 10 || t7 === 13 || t7 === 12);
  58966. } else
  58967. t7 = false;
  58968. if (!t7)
  58969. break;
  58970. t6 += A.Primitives_stringFromCharCode(t1.readChar$0());
  58971. buffer._contents = t6;
  58972. }
  58973. buffer._contents = t6 + "\n";
  58974. if (_this._peekIndentation$0() < parentIndentation)
  58975. break $label0$0;
  58976. if (_this._peekIndentation$0() === parentIndentation) {
  58977. if (t1.peekChar$1(t4) === 47 && t1.peekChar$1(t5) === 47)
  58978. _this._readIndentation$0();
  58979. break;
  58980. }
  58981. _this._readIndentation$0();
  58982. }
  58983. } while (t1.scan$1("//"));
  58984. t3 = buffer._contents;
  58985. return _this.lastSilentComment = new A.SilentComment(t3.charCodeAt(0) == 0 ? t3 : t3, t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  58986. },
  58987. _loudComment$0() {
  58988. var t2, t3, t4, buffer, parentIndentation, t5, t6, first, beginningOfComment, t7, end, i, _1_0, _0_0, endPosition, span, _this = this,
  58989. t1 = _this.scanner,
  58990. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  58991. t1.expect$1("/*");
  58992. t2 = new A.StringBuffer("");
  58993. t3 = A._setArrayType([], type$.JSArray_Object);
  58994. t4 = A._setArrayType([], type$.JSArray_nullable_FileSpan);
  58995. buffer = new A.InterpolationBuffer(t2, t3, t4);
  58996. t2._contents = "" + "/*";
  58997. parentIndentation = _this._currentIndentation;
  58998. for (t5 = t1.string, t6 = t5.length, first = true; true; first = false) {
  58999. if (first) {
  59000. beginningOfComment = t1._string_scanner$_position;
  59001. _this.spaces$0();
  59002. t7 = t1.peekChar$0();
  59003. if (t7 === 10 || t7 === 13 || t7 === 12) {
  59004. _this._readIndentation$0();
  59005. t7 = A.Primitives_stringFromCharCode(32);
  59006. t2._contents += t7;
  59007. } else {
  59008. end = t1._string_scanner$_position;
  59009. t2._contents += B.JSString_methods.substring$2(t5, beginningOfComment, end);
  59010. }
  59011. } else {
  59012. t7 = t2._contents += "\n";
  59013. t2._contents = t7 + " * ";
  59014. }
  59015. for (i = 3; i < _this._currentIndentation - parentIndentation; ++i) {
  59016. t7 = A.Primitives_stringFromCharCode(32);
  59017. t2._contents += t7;
  59018. }
  59019. for (; t1._string_scanner$_position !== t6;) {
  59020. _1_0 = t1.peekChar$0();
  59021. if (10 === _1_0 || 13 === _1_0 || 12 === _1_0)
  59022. break;
  59023. if (35 === _1_0) {
  59024. if (t1.peekChar$1(1) === 123) {
  59025. _0_0 = _this.singleInterpolation$0();
  59026. buffer._flushText$0();
  59027. t3.push(_0_0._0);
  59028. t4.push(_0_0._1);
  59029. } else {
  59030. t7 = A.Primitives_stringFromCharCode(t1.readChar$0());
  59031. t2._contents += t7;
  59032. }
  59033. continue;
  59034. }
  59035. if (42 === _1_0) {
  59036. if (t1.peekChar$1(1) === 47) {
  59037. t3 = A.Primitives_stringFromCharCode(t1.readChar$0());
  59038. t2._contents += t3;
  59039. t3 = A.Primitives_stringFromCharCode(t1.readChar$0());
  59040. t2._contents += t3;
  59041. endPosition = t1._string_scanner$_position;
  59042. t2 = t1._sourceFile;
  59043. t3 = start.position;
  59044. span = new A._FileSpan(t2, t3, endPosition);
  59045. span._FileSpan$3(t2, t3, endPosition);
  59046. _this.whitespace$0();
  59047. while (true) {
  59048. t2 = t1.peekChar$0();
  59049. if (!((t2 === 10 || t2 === 13 || t2 === 12) && _this._peekIndentation$0() > parentIndentation))
  59050. break;
  59051. for (; _this._lookingAtDoubleNewline$0();)
  59052. _this._expectNewline$0();
  59053. _this._readIndentation$0();
  59054. _this.whitespace$0();
  59055. }
  59056. if (t1._string_scanner$_position !== t6) {
  59057. t2 = t1.peekChar$0();
  59058. t2 = !(t2 === 10 || t2 === 13 || t2 === 12);
  59059. } else
  59060. t2 = false;
  59061. if (t2) {
  59062. t2 = t1._string_scanner$_position;
  59063. while (true) {
  59064. if (t1._string_scanner$_position !== t6) {
  59065. t3 = t1.peekChar$0();
  59066. t3 = !(t3 === 10 || t3 === 13 || t3 === 12);
  59067. } else
  59068. t3 = false;
  59069. if (!t3)
  59070. break;
  59071. t1.readChar$0();
  59072. }
  59073. throw A.wrapException(A.MultiSpanSassFormatException$("Unexpected text after end of comment", t1.spanFrom$1(new A._SpanScannerState(t1, t2)), "extra text", A.LinkedHashMap_LinkedHashMap$_literal([span, "comment"], type$.FileSpan, type$.String), null));
  59074. } else
  59075. return new A.LoudComment(buffer.interpolation$1(span));
  59076. } else {
  59077. t7 = A.Primitives_stringFromCharCode(t1.readChar$0());
  59078. t2._contents += t7;
  59079. }
  59080. continue;
  59081. }
  59082. t7 = A.Primitives_stringFromCharCode(t1.readChar$0());
  59083. t2._contents += t7;
  59084. }
  59085. if (_this._peekIndentation$0() <= parentIndentation)
  59086. break;
  59087. for (; _this._lookingAtDoubleNewline$0();) {
  59088. _this._expectNewline$0();
  59089. t7 = t2._contents += "\n";
  59090. t2._contents = t7 + " *";
  59091. }
  59092. _this._readIndentation$0();
  59093. }
  59094. return new A.LoudComment(buffer.interpolation$1(t1.spanFrom$1(start)));
  59095. },
  59096. whitespaceWithoutComments$0() {
  59097. var t1, t2, next;
  59098. for (t1 = this.scanner, t2 = t1.string.length; t1._string_scanner$_position !== t2;) {
  59099. next = t1.peekChar$0();
  59100. if (next !== 9 && next !== 32)
  59101. break;
  59102. t1.readChar$0();
  59103. }
  59104. },
  59105. loudComment$0() {
  59106. var next,
  59107. t1 = this.scanner;
  59108. t1.expect$1("/*");
  59109. for (; true;) {
  59110. next = t1.readChar$0();
  59111. if (next === 10 || next === 13 || next === 12)
  59112. t1.error$1(0, "expected */.");
  59113. if (next !== 42)
  59114. continue;
  59115. do
  59116. next = t1.readChar$0();
  59117. while (next === 42);
  59118. if (next === 47)
  59119. break;
  59120. }
  59121. },
  59122. _expectNewline$0() {
  59123. var t1 = this.scanner,
  59124. _0_0 = t1.peekChar$0();
  59125. if (59 === _0_0)
  59126. t1.error$1(0, string$.semico);
  59127. if (13 === _0_0) {
  59128. t1.readChar$0();
  59129. if (t1.peekChar$0() === 10)
  59130. t1.readChar$0();
  59131. return;
  59132. }
  59133. if (10 === _0_0 || 12 === _0_0) {
  59134. t1.readChar$0();
  59135. return;
  59136. }
  59137. t1.error$1(0, "expected newline.");
  59138. },
  59139. _lookingAtDoubleNewline$0() {
  59140. var t2, _0_0,
  59141. t1 = this.scanner,
  59142. _1_0 = t1.peekChar$0();
  59143. $label1$1: {
  59144. t2 = false;
  59145. if (13 === _1_0) {
  59146. _0_0 = t1.peekChar$1(1);
  59147. $label0$0: {
  59148. if (10 === _0_0) {
  59149. t1 = t1.peekChar$1(2);
  59150. t1 = t1 === 10 || t1 === 13 || t1 === 12;
  59151. break $label0$0;
  59152. }
  59153. if (13 === _0_0 || 12 === _0_0) {
  59154. t1 = true;
  59155. break $label0$0;
  59156. }
  59157. t1 = t2;
  59158. break $label0$0;
  59159. }
  59160. break $label1$1;
  59161. }
  59162. if (10 === _1_0 || 12 === _1_0) {
  59163. t1 = t1.peekChar$1(1);
  59164. t1 = t1 === 10 || t1 === 13 || t1 === 12;
  59165. break $label1$1;
  59166. }
  59167. t1 = t2;
  59168. break $label1$1;
  59169. }
  59170. return t1;
  59171. },
  59172. _whileIndentedLower$1(body) {
  59173. var t1, t2, childIndentation, indentation, t3, t4, _this = this,
  59174. parentIndentation = _this._currentIndentation;
  59175. for (t1 = _this.scanner, t2 = t1._sourceFile, childIndentation = null; _this._peekIndentation$0() > parentIndentation;) {
  59176. indentation = _this._readIndentation$0();
  59177. if (childIndentation == null)
  59178. childIndentation = indentation;
  59179. if (childIndentation !== indentation) {
  59180. t3 = t1._string_scanner$_position;
  59181. t4 = t2.getColumn$1(t3);
  59182. t1.error$3$length$position(0, "Inconsistent indentation, expected " + childIndentation + " spaces.", t2.getColumn$1(t1._string_scanner$_position), t3 - t4);
  59183. }
  59184. body.call$0();
  59185. }
  59186. },
  59187. _readIndentation$0() {
  59188. var t1, _this = this,
  59189. currentIndentation = _this._nextIndentation;
  59190. if (currentIndentation == null)
  59191. currentIndentation = _this._nextIndentation = _this._peekIndentation$0();
  59192. _this._currentIndentation = currentIndentation;
  59193. t1 = _this._nextIndentationEnd;
  59194. t1.toString;
  59195. _this.scanner.set$state(t1);
  59196. _this._nextIndentationEnd = _this._nextIndentation = null;
  59197. return currentIndentation;
  59198. },
  59199. _peekIndentation$0() {
  59200. var t1, t2, t3, start, containsTab, containsSpace, nextIndentation, _1_0, t4, _this = this,
  59201. _0_0 = _this._nextIndentation;
  59202. if (_0_0 != null)
  59203. return _0_0;
  59204. t1 = _this.scanner;
  59205. t2 = t1._string_scanner$_position;
  59206. t3 = t1.string.length;
  59207. if (t2 === t3) {
  59208. _this._nextIndentation = 0;
  59209. _this._nextIndentationEnd = new A._SpanScannerState(t1, t2);
  59210. return 0;
  59211. }
  59212. start = new A._SpanScannerState(t1, t2);
  59213. if (!_this.scanCharIf$1(new A.SassParser__peekIndentation_closure()))
  59214. t1.error$2$position(0, "Expected newline.", t1._string_scanner$_position);
  59215. containsTab = A._Cell$();
  59216. containsSpace = A._Cell$();
  59217. nextIndentation = A._Cell$();
  59218. do {
  59219. containsSpace.__late_helper$_value = containsTab.__late_helper$_value = false;
  59220. nextIndentation.__late_helper$_value = 0;
  59221. for (; true;) {
  59222. $label0$0: {
  59223. _1_0 = t1.peekChar$0();
  59224. if (32 === _1_0) {
  59225. containsSpace.__late_helper$_value = true;
  59226. break $label0$0;
  59227. }
  59228. if (9 === _1_0) {
  59229. containsTab.__late_helper$_value = true;
  59230. break $label0$0;
  59231. }
  59232. break;
  59233. }
  59234. t2 = nextIndentation.__late_helper$_value;
  59235. if (t2 === nextIndentation)
  59236. A.throwExpression(A.LateError$localNI(""));
  59237. nextIndentation.__late_helper$_value = t2 + 1;
  59238. t1.readChar$0();
  59239. }
  59240. t2 = t1._string_scanner$_position;
  59241. if (t2 === t3) {
  59242. _this._nextIndentation = 0;
  59243. _this._nextIndentationEnd = new A._SpanScannerState(t1, t2);
  59244. t1.set$state(start);
  59245. return 0;
  59246. }
  59247. } while (_this.scanCharIf$1(new A.SassParser__peekIndentation_closure0()));
  59248. t2 = containsTab._readLocal$0();
  59249. t3 = containsSpace._readLocal$0();
  59250. if (t2) {
  59251. if (t3) {
  59252. t2 = t1._string_scanner$_position;
  59253. t3 = t1._sourceFile;
  59254. t4 = t3.getColumn$1(t2);
  59255. t1.error$3$length$position(0, "Tabs and spaces may not be mixed.", t3.getColumn$1(t1._string_scanner$_position), t2 - t4);
  59256. } else if (_this._spaces === true) {
  59257. t2 = t1._string_scanner$_position;
  59258. t3 = t1._sourceFile;
  59259. t4 = t3.getColumn$1(t2);
  59260. t1.error$3$length$position(0, "Expected spaces, was tabs.", t3.getColumn$1(t1._string_scanner$_position), t2 - t4);
  59261. }
  59262. } else if (t3 && _this._spaces === false) {
  59263. t2 = t1._string_scanner$_position;
  59264. t3 = t1._sourceFile;
  59265. t4 = t3.getColumn$1(t2);
  59266. t1.error$3$length$position(0, "Expected tabs, was spaces.", t3.getColumn$1(t1._string_scanner$_position), t2 - t4);
  59267. }
  59268. _this._nextIndentation = nextIndentation._readLocal$0();
  59269. if (nextIndentation._readLocal$0() > 0)
  59270. if (_this._spaces == null)
  59271. _this._spaces = containsSpace._readLocal$0();
  59272. _this._nextIndentationEnd = new A._SpanScannerState(t1, t1._string_scanner$_position);
  59273. t1.set$state(start);
  59274. return nextIndentation._readLocal$0();
  59275. }
  59276. };
  59277. A.SassParser_styleRuleSelector_closure.prototype = {
  59278. call$1(char) {
  59279. return char === 10 || char === 13 || char === 12;
  59280. },
  59281. $signature: 32
  59282. };
  59283. A.SassParser_children_closure.prototype = {
  59284. call$0() {
  59285. var _0_0 = this.$this._child$1(this.child);
  59286. if (_0_0 != null)
  59287. this.children.push(_0_0);
  59288. },
  59289. $signature: 0
  59290. };
  59291. A.SassParser__peekIndentation_closure.prototype = {
  59292. call$1(char) {
  59293. return char === 10 || char === 13 || char === 12;
  59294. },
  59295. $signature: 32
  59296. };
  59297. A.SassParser__peekIndentation_closure0.prototype = {
  59298. call$1(char) {
  59299. return char === 10 || char === 13 || char === 12;
  59300. },
  59301. $signature: 32
  59302. };
  59303. A.ScssParser.prototype = {
  59304. get$indented() {
  59305. return false;
  59306. },
  59307. get$currentIndentation() {
  59308. return 0;
  59309. },
  59310. styleRuleSelector$0() {
  59311. return this.almostAnyValue$0();
  59312. },
  59313. expectStatementSeparator$1($name) {
  59314. var t1, _0_0;
  59315. this.whitespaceWithoutComments$0();
  59316. t1 = this.scanner;
  59317. if (t1._string_scanner$_position === t1.string.length)
  59318. return;
  59319. _0_0 = t1.peekChar$0();
  59320. if (59 === _0_0 || 125 === _0_0)
  59321. return;
  59322. t1.expectChar$1(59);
  59323. },
  59324. expectStatementSeparator$0() {
  59325. return this.expectStatementSeparator$1(null);
  59326. },
  59327. atEndOfStatement$0() {
  59328. var next = this.scanner.peekChar$0();
  59329. return next == null || next === 59 || next === 125 || next === 123;
  59330. },
  59331. lookingAtChildren$0() {
  59332. return this.scanner.peekChar$0() === 123;
  59333. },
  59334. scanElse$1(ifIndentation) {
  59335. var t3, _this = this,
  59336. t1 = _this.scanner,
  59337. t2 = t1._string_scanner$_position;
  59338. _this.whitespace$0();
  59339. t3 = t1._string_scanner$_position;
  59340. if (t1.scanChar$1(64)) {
  59341. if (_this.scanIdentifier$2$caseSensitive("else", true))
  59342. return true;
  59343. if (_this.scanIdentifier$2$caseSensitive("elseif", true)) {
  59344. _this.warnings.push(new A._Record_3_deprecation_message_span(B.Deprecation_Aec, string$.x40elsei, t1.spanFrom$1(new A._SpanScannerState(t1, t3))));
  59345. t1.set$position(t1._string_scanner$_position - 2);
  59346. return true;
  59347. }
  59348. }
  59349. t1.set$state(new A._SpanScannerState(t1, t2));
  59350. return false;
  59351. },
  59352. children$1(_, child) {
  59353. var children, _this = this,
  59354. t1 = _this.scanner;
  59355. t1.expectChar$1(123);
  59356. _this.whitespaceWithoutComments$0();
  59357. children = A._setArrayType([], type$.JSArray_Statement);
  59358. for (; true;)
  59359. switch (t1.peekChar$0()) {
  59360. case 36:
  59361. children.push(_this.variableDeclarationWithoutNamespace$0());
  59362. break;
  59363. case 47:
  59364. switch (t1.peekChar$1(1)) {
  59365. case 47:
  59366. children.push(_this._scss$_silentComment$0());
  59367. _this.whitespaceWithoutComments$0();
  59368. break;
  59369. case 42:
  59370. children.push(_this._scss$_loudComment$0());
  59371. _this.whitespaceWithoutComments$0();
  59372. break;
  59373. default:
  59374. children.push(child.call$0());
  59375. }
  59376. break;
  59377. case 59:
  59378. t1.readChar$0();
  59379. _this.whitespaceWithoutComments$0();
  59380. break;
  59381. case 125:
  59382. t1.expectChar$1(125);
  59383. return children;
  59384. default:
  59385. children.push(child.call$0());
  59386. }
  59387. },
  59388. statements$1(statement) {
  59389. var t1, t2, _0_0, _1_0, _this = this,
  59390. statements = A._setArrayType([], type$.JSArray_Statement);
  59391. _this.whitespaceWithoutComments$0();
  59392. for (t1 = _this.scanner, t2 = t1.string.length; t1._string_scanner$_position !== t2;)
  59393. switch (t1.peekChar$0()) {
  59394. case 36:
  59395. statements.push(_this.variableDeclarationWithoutNamespace$0());
  59396. break;
  59397. case 47:
  59398. switch (t1.peekChar$1(1)) {
  59399. case 47:
  59400. statements.push(_this._scss$_silentComment$0());
  59401. _this.whitespaceWithoutComments$0();
  59402. break;
  59403. case 42:
  59404. statements.push(_this._scss$_loudComment$0());
  59405. _this.whitespaceWithoutComments$0();
  59406. break;
  59407. default:
  59408. _0_0 = statement.call$0();
  59409. if (_0_0 != null)
  59410. statements.push(_0_0);
  59411. }
  59412. break;
  59413. case 59:
  59414. t1.readChar$0();
  59415. _this.whitespaceWithoutComments$0();
  59416. break;
  59417. default:
  59418. _1_0 = statement.call$0();
  59419. if (_1_0 != null)
  59420. statements.push(_1_0);
  59421. }
  59422. return statements;
  59423. },
  59424. _scss$_silentComment$0() {
  59425. var t2, t3, _this = this,
  59426. t1 = _this.scanner,
  59427. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  59428. t1.expect$1("//");
  59429. t2 = t1.string.length;
  59430. do {
  59431. while (true) {
  59432. if (t1._string_scanner$_position !== t2) {
  59433. t3 = t1.readChar$0();
  59434. t3 = !(t3 === 10 || t3 === 13 || t3 === 12);
  59435. } else
  59436. t3 = false;
  59437. if (!t3)
  59438. break;
  59439. }
  59440. if (t1._string_scanner$_position === t2)
  59441. break;
  59442. _this.spaces$0();
  59443. } while (t1.scan$1("//"));
  59444. if (_this.get$plainCss())
  59445. _this.error$2(0, string$.Silent, t1.spanFrom$1(start));
  59446. return _this.lastSilentComment = new A.SilentComment(t1.substring$1(0, start.position), t1.spanFrom$1(start));
  59447. },
  59448. _scss$_loudComment$0() {
  59449. var t3, t4, t5, buffer, _0_0, t6, endPosition,
  59450. t1 = this.scanner,
  59451. t2 = t1._string_scanner$_position;
  59452. t1.expect$1("/*");
  59453. t3 = new A.StringBuffer("");
  59454. t4 = A._setArrayType([], type$.JSArray_Object);
  59455. t5 = A._setArrayType([], type$.JSArray_nullable_FileSpan);
  59456. buffer = new A.InterpolationBuffer(t3, t4, t5);
  59457. t3._contents = "" + "/*";
  59458. $label0$1:
  59459. for (; true;)
  59460. switch (t1.peekChar$0()) {
  59461. case 35:
  59462. if (t1.peekChar$1(1) === 123) {
  59463. _0_0 = this.singleInterpolation$0();
  59464. buffer._flushText$0();
  59465. t4.push(_0_0._0);
  59466. t5.push(_0_0._1);
  59467. } else {
  59468. t6 = A.Primitives_stringFromCharCode(t1.readChar$0());
  59469. t3._contents += t6;
  59470. }
  59471. break;
  59472. case 42:
  59473. t6 = A.Primitives_stringFromCharCode(t1.readChar$0());
  59474. t3._contents += t6;
  59475. if (t1.peekChar$0() !== 47)
  59476. continue $label0$1;
  59477. t4 = A.Primitives_stringFromCharCode(t1.readChar$0());
  59478. t3._contents += t4;
  59479. endPosition = t1._string_scanner$_position;
  59480. t3 = t1._sourceFile;
  59481. t4 = new A._SpanScannerState(t1, t2).position;
  59482. t1 = new A._FileSpan(t3, t4, endPosition);
  59483. t1._FileSpan$3(t3, t4, endPosition);
  59484. return new A.LoudComment(buffer.interpolation$1(t1));
  59485. case 13:
  59486. t1.readChar$0();
  59487. if (t1.peekChar$0() !== 10) {
  59488. t6 = A.Primitives_stringFromCharCode(10);
  59489. t3._contents += t6;
  59490. }
  59491. break;
  59492. case 12:
  59493. t1.readChar$0();
  59494. t6 = A.Primitives_stringFromCharCode(10);
  59495. t3._contents += t6;
  59496. break;
  59497. default:
  59498. t6 = A.Primitives_stringFromCharCode(t1.readChar$0());
  59499. t3._contents += t6;
  59500. }
  59501. }
  59502. };
  59503. A.SelectorParser.prototype = {
  59504. parse$0(_) {
  59505. return this.wrapSpanFormatException$1(new A.SelectorParser_parse_closure(this));
  59506. },
  59507. parseCompoundSelector$0() {
  59508. return this.wrapSpanFormatException$1(new A.SelectorParser_parseCompoundSelector_closure(this));
  59509. },
  59510. _selectorList$0() {
  59511. var t4, t5, lineBreak, _this = this,
  59512. t1 = _this.scanner,
  59513. t2 = t1._string_scanner$_position,
  59514. t3 = t1._sourceFile,
  59515. previousLine = t3.getLine$1(t2),
  59516. components = A._setArrayType([_this._complexSelector$0()], type$.JSArray_ComplexSelector);
  59517. _this.whitespace$0();
  59518. for (t4 = t1.string.length; t1.scanChar$1(44);) {
  59519. _this.whitespace$0();
  59520. if (t1.peekChar$0() === 44)
  59521. continue;
  59522. t5 = t1._string_scanner$_position;
  59523. if (t5 === t4)
  59524. break;
  59525. lineBreak = t3.getLine$1(t5) !== previousLine;
  59526. if (lineBreak)
  59527. previousLine = t3.getLine$1(t1._string_scanner$_position);
  59528. components.push(_this._complexSelector$1$lineBreak(lineBreak));
  59529. }
  59530. return A.SelectorList$(components, _this.spanFrom$1(new A._SpanScannerState(t1, t2)));
  59531. },
  59532. _complexSelector$1$lineBreak(lineBreak) {
  59533. var t4, lastCompound, initialCombinators, _0_0, t5, result, _this = this,
  59534. _s18_ = "expected selector.",
  59535. t1 = _this.scanner,
  59536. t2 = t1._string_scanner$_position,
  59537. componentStart = new A._SpanScannerState(t1, t2),
  59538. t3 = type$.JSArray_CssValue_Combinator,
  59539. combinators = A._setArrayType([], t3),
  59540. components = A._setArrayType([], type$.JSArray_ComplexSelectorComponent);
  59541. for (t4 = type$.CssValue_Combinator, lastCompound = null, initialCombinators = null; true;) {
  59542. _this.whitespace$0();
  59543. _0_0 = t1.peekChar$0();
  59544. if (43 === _0_0) {
  59545. t5 = t1._string_scanner$_position;
  59546. t1.readChar$0();
  59547. combinators.push(new A.CssValue(B.Combinator_gRV, _this.spanFrom$1(new A._SpanScannerState(t1, t5)), t4));
  59548. continue;
  59549. }
  59550. if (62 === _0_0) {
  59551. t5 = t1._string_scanner$_position;
  59552. t1.readChar$0();
  59553. combinators.push(new A.CssValue(B.Combinator_8I8, _this.spanFrom$1(new A._SpanScannerState(t1, t5)), t4));
  59554. continue;
  59555. }
  59556. if (126 === _0_0) {
  59557. t5 = t1._string_scanner$_position;
  59558. t1.readChar$0();
  59559. combinators.push(new A.CssValue(B.Combinator_y18, _this.spanFrom$1(new A._SpanScannerState(t1, t5)), t4));
  59560. continue;
  59561. }
  59562. if (_0_0 == null)
  59563. break;
  59564. t5 = true;
  59565. if (91 !== _0_0)
  59566. if (46 !== _0_0)
  59567. if (35 !== _0_0)
  59568. if (37 !== _0_0)
  59569. if (58 !== _0_0)
  59570. if (38 !== _0_0)
  59571. if (42 !== _0_0)
  59572. if (124 !== _0_0)
  59573. t5 = _this.lookingAtIdentifier$0();
  59574. if (t5) {
  59575. if (lastCompound != null) {
  59576. t5 = _this.spanFrom$1(componentStart);
  59577. result = A.List_List$from(combinators, false, t4);
  59578. result.fixed$length = Array;
  59579. result.immutable$list = Array;
  59580. components.push(new A.ComplexSelectorComponent(lastCompound, result, t5));
  59581. } else if (combinators.length !== 0) {
  59582. componentStart = new A._SpanScannerState(t1, t1._string_scanner$_position);
  59583. initialCombinators = combinators;
  59584. }
  59585. lastCompound = _this._compoundSelector$0();
  59586. combinators = A._setArrayType([], t3);
  59587. if (t1.peekChar$0() === 38)
  59588. t1.error$1(0, string$.x22x26__ma);
  59589. continue;
  59590. }
  59591. break;
  59592. }
  59593. t3 = combinators.length !== 0;
  59594. if (t3 && _this._plainCss)
  59595. t1.error$1(0, _s18_);
  59596. else if (lastCompound != null) {
  59597. t3 = _this.spanFrom$1(componentStart);
  59598. components.push(new A.ComplexSelectorComponent(lastCompound, A.List_List$unmodifiable(combinators, t4), t3));
  59599. } else if (t3)
  59600. initialCombinators = combinators;
  59601. else
  59602. t1.error$1(0, _s18_);
  59603. t3 = initialCombinators == null ? B.List_empty0 : initialCombinators;
  59604. return A.ComplexSelector$(t3, components, _this.spanFrom$1(new A._SpanScannerState(t1, t2)), lineBreak);
  59605. },
  59606. _complexSelector$0() {
  59607. return this._complexSelector$1$lineBreak(false);
  59608. },
  59609. _compoundSelector$0() {
  59610. var t3, _this = this,
  59611. t1 = _this.scanner,
  59612. t2 = t1._string_scanner$_position,
  59613. components = A._setArrayType([_this._simpleSelector$0()], type$.JSArray_SimpleSelector);
  59614. for (t3 = _this._plainCss; _this._isSimpleSelectorStart$1(t1.peekChar$0());)
  59615. components.push(_this._simpleSelector$1$allowParent(t3));
  59616. return A.CompoundSelector$(components, _this.spanFrom$1(new A._SpanScannerState(t1, t2)));
  59617. },
  59618. _simpleSelector$1$allowParent(allowParent) {
  59619. var t2, $name, text, t3, suffix, _this = this,
  59620. t1 = _this.scanner,
  59621. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  59622. if (allowParent == null)
  59623. allowParent = _this._allowParent;
  59624. switch (t1.peekChar$0()) {
  59625. case 91:
  59626. return _this._attributeSelector$0();
  59627. case 46:
  59628. t2 = t1._string_scanner$_position;
  59629. t1.expectChar$1(46);
  59630. return new A.ClassSelector(_this.identifier$0(), _this.spanFrom$1(new A._SpanScannerState(t1, t2)));
  59631. case 35:
  59632. t2 = t1._string_scanner$_position;
  59633. t1.expectChar$1(35);
  59634. return new A.IDSelector(_this.identifier$0(), _this.spanFrom$1(new A._SpanScannerState(t1, t2)));
  59635. case 37:
  59636. t2 = t1._string_scanner$_position;
  59637. t1.expectChar$1(37);
  59638. $name = _this.identifier$0();
  59639. t2 = _this.spanFrom$1(new A._SpanScannerState(t1, t2));
  59640. if (_this._plainCss)
  59641. _this.error$2(0, string$.Placeh, t1.spanFrom$1(start));
  59642. return new A.PlaceholderSelector($name, t2);
  59643. case 58:
  59644. return _this._pseudoSelector$0();
  59645. case 38:
  59646. t2 = t1._string_scanner$_position;
  59647. t1.expectChar$1(38);
  59648. if (_this.lookingAtIdentifierBody$0()) {
  59649. text = new A.StringBuffer("");
  59650. _this._identifierBody$1(text);
  59651. if (text._contents.length === 0)
  59652. t1.error$1(0, "Expected identifier body.");
  59653. t3 = text._contents;
  59654. suffix = t3.charCodeAt(0) == 0 ? t3 : t3;
  59655. } else
  59656. suffix = null;
  59657. if (_this._plainCss && suffix != null)
  59658. t1.error$3$length$position(0, string$.Parent, t1._string_scanner$_position - t2, t2);
  59659. t2 = _this.spanFrom$1(new A._SpanScannerState(t1, t2));
  59660. if (!allowParent)
  59661. _this.error$2(0, "Parent selectors aren't allowed here.", t1.spanFrom$1(start));
  59662. return new A.ParentSelector(suffix, t2);
  59663. default:
  59664. return _this._typeOrUniversalSelector$0();
  59665. }
  59666. },
  59667. _simpleSelector$0() {
  59668. return this._simpleSelector$1$allowParent(null);
  59669. },
  59670. _attributeSelector$0() {
  59671. var $name, operator, next, value, modifier, _this = this, _null = null,
  59672. t1 = _this.scanner,
  59673. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  59674. t1.expectChar$1(91);
  59675. _this.whitespace$0();
  59676. $name = _this._attributeName$0();
  59677. _this.whitespace$0();
  59678. if (t1.scanChar$1(93))
  59679. return new A.AttributeSelector($name, _null, _null, _null, _this.spanFrom$1(start));
  59680. operator = _this._attributeOperator$0();
  59681. _this.whitespace$0();
  59682. next = t1.peekChar$0();
  59683. value = next === 39 || next === 34 ? _this.string$0() : _this.identifier$0();
  59684. _this.whitespace$0();
  59685. next = t1.peekChar$0();
  59686. modifier = next != null && A.CharacterExtension_get_isAlphabetic(next) ? A.Primitives_stringFromCharCode(t1.readChar$0()) : _null;
  59687. t1.expectChar$1(93);
  59688. return new A.AttributeSelector($name, operator, value, modifier, _this.spanFrom$1(start));
  59689. },
  59690. _attributeName$0() {
  59691. var nameOrNamespace, _this = this,
  59692. t1 = _this.scanner;
  59693. if (t1.scanChar$1(42)) {
  59694. t1.expectChar$1(124);
  59695. return new A.QualifiedName(_this.identifier$0(), "*");
  59696. }
  59697. if (t1.scanChar$1(124))
  59698. return new A.QualifiedName(_this.identifier$0(), "");
  59699. nameOrNamespace = _this.identifier$0();
  59700. if (t1.peekChar$0() !== 124 || t1.peekChar$1(1) === 61)
  59701. return new A.QualifiedName(nameOrNamespace, null);
  59702. t1.readChar$0();
  59703. return new A.QualifiedName(_this.identifier$0(), nameOrNamespace);
  59704. },
  59705. _attributeOperator$0() {
  59706. var t1 = this.scanner,
  59707. t2 = t1._string_scanner$_position;
  59708. switch (t1.readChar$0()) {
  59709. case 61:
  59710. return B.AttributeOperator_4QF;
  59711. case 126:
  59712. t1.expectChar$1(61);
  59713. return B.AttributeOperator_yT8;
  59714. case 124:
  59715. t1.expectChar$1(61);
  59716. return B.AttributeOperator_jqB;
  59717. case 94:
  59718. t1.expectChar$1(61);
  59719. return B.AttributeOperator_cMb;
  59720. case 36:
  59721. t1.expectChar$1(61);
  59722. return B.AttributeOperator_qhE;
  59723. case 42:
  59724. t1.expectChar$1(61);
  59725. return B.AttributeOperator_61T;
  59726. default:
  59727. t1.error$2$position(0, 'Expected "]".', t2);
  59728. }
  59729. },
  59730. _pseudoSelector$0() {
  59731. var element, $name, unvendored, argument, selector, t2, _this = this, _null = null,
  59732. t1 = _this.scanner,
  59733. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  59734. t1.expectChar$1(58);
  59735. element = t1.scanChar$1(58);
  59736. $name = _this.identifier$0();
  59737. if (!t1.scanChar$1(40))
  59738. return A.PseudoSelector$($name, _this.spanFrom$1(start), _null, element, _null);
  59739. _this.whitespace$0();
  59740. unvendored = A.unvendor($name);
  59741. argument = _null;
  59742. selector = _null;
  59743. if (element)
  59744. if ($._selectorPseudoElements.contains$1(0, unvendored))
  59745. selector = _this._selectorList$0();
  59746. else
  59747. argument = _this.declarationValue$1$allowEmpty(true);
  59748. else if ($._selectorPseudoClasses.contains$1(0, unvendored))
  59749. selector = _this._selectorList$0();
  59750. else if (unvendored === "nth-child" || unvendored === "nth-last-child") {
  59751. argument = _this._aNPlusB$0();
  59752. _this.whitespace$0();
  59753. t2 = t1.peekChar$1(-1);
  59754. if ((t2 === 32 || t2 === 9 || t2 === 10 || t2 === 13 || t2 === 12) && t1.peekChar$0() !== 41) {
  59755. _this.expectIdentifier$1("of");
  59756. argument += " of";
  59757. _this.whitespace$0();
  59758. selector = _this._selectorList$0();
  59759. }
  59760. } else
  59761. argument = B.JSString_methods.trimRight$0(_this.declarationValue$1$allowEmpty(true));
  59762. t1.expectChar$1(41);
  59763. return A.PseudoSelector$($name, _this.spanFrom$1(start), argument, element, selector);
  59764. },
  59765. _aNPlusB$0() {
  59766. var t1, _0_0, t2, $self, next, _this = this;
  59767. $label0$0: {
  59768. t1 = _this.scanner;
  59769. _0_0 = t1.peekChar$0();
  59770. if (101 === _0_0 || 69 === _0_0) {
  59771. _this.expectIdentifier$1("even");
  59772. return "even";
  59773. }
  59774. if (111 === _0_0 || 79 === _0_0) {
  59775. _this.expectIdentifier$1("odd");
  59776. return "odd";
  59777. }
  59778. if (43 === _0_0 || 45 === _0_0) {
  59779. t2 = "" + A.Primitives_stringFromCharCode(t1.readChar$0());
  59780. break $label0$0;
  59781. }
  59782. t2 = "";
  59783. }
  59784. $self = t1.peekChar$0();
  59785. if ($self != null && $self >= 48 && $self <= 57) {
  59786. do {
  59787. t2 += A.Primitives_stringFromCharCode(t1.readChar$0());
  59788. $self = t1.peekChar$0();
  59789. } while ($self != null && $self >= 48 && $self <= 57);
  59790. _this.whitespace$0();
  59791. if (!_this.scanIdentChar$1(110))
  59792. return t2.charCodeAt(0) == 0 ? t2 : t2;
  59793. } else
  59794. _this.expectIdentChar$1(110);
  59795. t2 += A.Primitives_stringFromCharCode(110);
  59796. _this.whitespace$0();
  59797. next = t1.peekChar$0();
  59798. if (next !== 43 && next !== 45)
  59799. return t2.charCodeAt(0) == 0 ? t2 : t2;
  59800. t2 += A.Primitives_stringFromCharCode(t1.readChar$0());
  59801. _this.whitespace$0();
  59802. $self = t1.peekChar$0();
  59803. if (!($self != null && $self >= 48 && $self <= 57))
  59804. t1.error$1(0, "Expected a number.");
  59805. do {
  59806. t2 += A.Primitives_stringFromCharCode(t1.readChar$0());
  59807. $self = t1.peekChar$0();
  59808. } while ($self != null && $self >= 48 && $self <= 57);
  59809. return t2.charCodeAt(0) == 0 ? t2 : t2;
  59810. },
  59811. _typeOrUniversalSelector$0() {
  59812. var nameOrNamespace, _this = this,
  59813. t1 = _this.scanner,
  59814. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  59815. if (t1.scanChar$1(42)) {
  59816. if (!t1.scanChar$1(124))
  59817. return new A.UniversalSelector(null, _this.spanFrom$1(start));
  59818. return t1.scanChar$1(42) ? new A.UniversalSelector("*", _this.spanFrom$1(start)) : new A.TypeSelector(new A.QualifiedName(_this.identifier$0(), "*"), _this.spanFrom$1(start));
  59819. } else if (t1.scanChar$1(124))
  59820. return t1.scanChar$1(42) ? new A.UniversalSelector("", _this.spanFrom$1(start)) : new A.TypeSelector(new A.QualifiedName(_this.identifier$0(), ""), _this.spanFrom$1(start));
  59821. nameOrNamespace = _this.identifier$0();
  59822. if (!t1.scanChar$1(124))
  59823. return new A.TypeSelector(new A.QualifiedName(nameOrNamespace, null), _this.spanFrom$1(start));
  59824. else if (t1.scanChar$1(42))
  59825. return new A.UniversalSelector(nameOrNamespace, _this.spanFrom$1(start));
  59826. else
  59827. return new A.TypeSelector(new A.QualifiedName(_this.identifier$0(), nameOrNamespace), _this.spanFrom$1(start));
  59828. },
  59829. _isSimpleSelectorStart$1(character) {
  59830. var t1;
  59831. $label0$0: {
  59832. if (42 === character || 91 === character || 46 === character || 35 === character || 37 === character || 58 === character) {
  59833. t1 = true;
  59834. break $label0$0;
  59835. }
  59836. if (38 === character) {
  59837. t1 = this._plainCss;
  59838. break $label0$0;
  59839. }
  59840. t1 = false;
  59841. break $label0$0;
  59842. }
  59843. return t1;
  59844. }
  59845. };
  59846. A.SelectorParser_parse_closure.prototype = {
  59847. call$0() {
  59848. var t1 = this.$this,
  59849. selector = t1._selectorList$0();
  59850. t1 = t1.scanner;
  59851. if (t1._string_scanner$_position !== t1.string.length)
  59852. t1.error$1(0, "expected selector.");
  59853. return selector;
  59854. },
  59855. $signature: 346
  59856. };
  59857. A.SelectorParser_parseCompoundSelector_closure.prototype = {
  59858. call$0() {
  59859. var t1 = this.$this,
  59860. compound = t1._compoundSelector$0();
  59861. t1 = t1.scanner;
  59862. if (t1._string_scanner$_position !== t1.string.length)
  59863. t1.error$1(0, "expected selector.");
  59864. return compound;
  59865. },
  59866. $signature: 348
  59867. };
  59868. A.StylesheetParser.prototype = {
  59869. parse$0(_) {
  59870. return this.wrapSpanFormatException$1(new A.StylesheetParser_parse_closure(this));
  59871. },
  59872. parseArgumentDeclaration$0() {
  59873. return this._parseSingleProduction$1$1(new A.StylesheetParser_parseArgumentDeclaration_closure(this), type$.ArgumentDeclaration);
  59874. },
  59875. parseVariableDeclaration$0() {
  59876. return new A._Record_2(this._parseSingleProduction$1$1(new A.StylesheetParser_parseVariableDeclaration_closure(this), type$.VariableDeclaration), this.warnings);
  59877. },
  59878. parseUseRule$0() {
  59879. return new A._Record_2(this._parseSingleProduction$1$1(new A.StylesheetParser_parseUseRule_closure(this), type$.UseRule), this.warnings);
  59880. },
  59881. _parseSingleProduction$1$1(production, $T) {
  59882. return this.wrapSpanFormatException$1(new A.StylesheetParser__parseSingleProduction_closure(this, production, $T));
  59883. },
  59884. _statement$1$root(root) {
  59885. var t2, _this = this,
  59886. t1 = _this.scanner,
  59887. _0_0 = t1.peekChar$0();
  59888. if (64 === _0_0)
  59889. return _this.atRule$2$root(new A.StylesheetParser__statement_closure(_this), root);
  59890. if (43 === _0_0) {
  59891. if (!_this.get$indented() || !_this.lookingAtIdentifier$1(1))
  59892. return _this._styleRule$0();
  59893. _this._isUseAllowed = false;
  59894. t2 = t1._string_scanner$_position;
  59895. t1.readChar$0();
  59896. return _this._includeRule$1(new A._SpanScannerState(t1, t2));
  59897. }
  59898. if (61 === _0_0) {
  59899. if (!_this.get$indented())
  59900. return _this._styleRule$0();
  59901. _this._isUseAllowed = false;
  59902. t2 = t1._string_scanner$_position;
  59903. t1.readChar$0();
  59904. _this.whitespace$0();
  59905. return _this._mixinRule$1(new A._SpanScannerState(t1, t2));
  59906. }
  59907. if (125 === _0_0)
  59908. t1.error$2$length(0, 'unmatched "}".', 1);
  59909. return _this._inStyleRule || _this._stylesheet$_inUnknownAtRule || _this._stylesheet$_inMixin || _this._inContentBlock ? _this._declarationOrStyleRule$0() : _this._variableDeclarationOrStyleRule$0();
  59910. },
  59911. _statement$0() {
  59912. return this._statement$1$root(false);
  59913. },
  59914. _variableDeclarationWithNamespace$0() {
  59915. var t1 = this.scanner,
  59916. t2 = t1._string_scanner$_position,
  59917. namespace = this.identifier$0();
  59918. t1.expectChar$1(46);
  59919. return this.variableDeclarationWithoutNamespace$2(namespace, new A._SpanScannerState(t1, t2));
  59920. },
  59921. variableDeclarationWithoutNamespace$2(namespace, start_) {
  59922. var t1, start, $name, t2, value, flagStart, t3, guarded, global, _0_0, endPosition, t4, t5, t6, declaration, _this = this,
  59923. precedingComment = _this.lastSilentComment;
  59924. _this.lastSilentComment = null;
  59925. if (start_ == null) {
  59926. t1 = _this.scanner;
  59927. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  59928. } else
  59929. start = start_;
  59930. $name = _this.variableName$0();
  59931. t1 = namespace != null;
  59932. if (t1)
  59933. _this._assertPublic$2($name, new A.StylesheetParser_variableDeclarationWithoutNamespace_closure(_this, start));
  59934. if (_this.get$plainCss())
  59935. _this.error$2(0, string$.Sassx20v, _this.scanner.spanFrom$1(start));
  59936. _this.whitespace$0();
  59937. t2 = _this.scanner;
  59938. t2.expectChar$1(58);
  59939. _this.whitespace$0();
  59940. value = _this._expression$0();
  59941. flagStart = new A._SpanScannerState(t2, t2._string_scanner$_position);
  59942. for (t3 = _this.warnings, guarded = false, global = false; t2.scanChar$1(33);) {
  59943. $label0$0: {
  59944. _0_0 = _this.identifier$0();
  59945. if ("default" === _0_0) {
  59946. if (guarded) {
  59947. endPosition = t2._string_scanner$_position;
  59948. t4 = t2._sourceFile;
  59949. t5 = flagStart.position;
  59950. t6 = new A._FileSpan(t4, t5, endPosition);
  59951. t6._FileSpan$3(t4, t5, endPosition);
  59952. t3.push(new A._Record_3_deprecation_message_span(B.Deprecation_YUI, string$.x21defau, t6));
  59953. }
  59954. guarded = true;
  59955. break $label0$0;
  59956. }
  59957. if ("global" === _0_0) {
  59958. if (t1) {
  59959. endPosition = t2._string_scanner$_position;
  59960. t4 = t2._sourceFile;
  59961. t5 = flagStart.position;
  59962. t6 = new A._FileSpan(t4, t5, endPosition);
  59963. t6._FileSpan$3(t4, t5, endPosition);
  59964. _this.error$2(0, string$.x21globai, t6);
  59965. } else if (global) {
  59966. endPosition = t2._string_scanner$_position;
  59967. t4 = t2._sourceFile;
  59968. t5 = flagStart.position;
  59969. t6 = new A._FileSpan(t4, t5, endPosition);
  59970. t6._FileSpan$3(t4, t5, endPosition);
  59971. t3.push(new A._Record_3_deprecation_message_span(B.Deprecation_YUI, string$.x21globas, t6));
  59972. }
  59973. global = true;
  59974. break $label0$0;
  59975. }
  59976. endPosition = t2._string_scanner$_position;
  59977. t4 = t2._sourceFile;
  59978. t5 = flagStart.position;
  59979. t6 = new A._FileSpan(t4, t5, endPosition);
  59980. t6._FileSpan$3(t4, t5, endPosition);
  59981. _this.error$2(0, "Invalid flag name.", t6);
  59982. }
  59983. _this.whitespace$0();
  59984. flagStart = new A._SpanScannerState(t2, t2._string_scanner$_position);
  59985. }
  59986. _this.expectStatementSeparator$1("variable declaration");
  59987. declaration = A.VariableDeclaration$($name, value, t2.spanFrom$1(start), precedingComment, global, guarded, namespace);
  59988. if (global)
  59989. _this._globalVariables.putIfAbsent$2($name, new A.StylesheetParser_variableDeclarationWithoutNamespace_closure0(declaration));
  59990. return declaration;
  59991. },
  59992. variableDeclarationWithoutNamespace$0() {
  59993. return this.variableDeclarationWithoutNamespace$2(null, null);
  59994. },
  59995. _variableDeclarationOrStyleRule$0() {
  59996. var t1, t2, variableOrInterpolation, t3, _this = this;
  59997. if (_this.get$plainCss())
  59998. return _this._styleRule$0();
  59999. if (_this.get$indented() && _this.scanner.scanChar$1(92))
  60000. return _this._styleRule$0();
  60001. if (!_this.lookingAtIdentifier$0())
  60002. return _this._styleRule$0();
  60003. t1 = _this.scanner;
  60004. t2 = t1._string_scanner$_position;
  60005. variableOrInterpolation = _this._variableDeclarationOrInterpolation$0();
  60006. if (variableOrInterpolation instanceof A.VariableDeclaration)
  60007. t1 = variableOrInterpolation;
  60008. else {
  60009. t3 = new A.InterpolationBuffer(new A.StringBuffer(""), A._setArrayType([], type$.JSArray_Object), A._setArrayType([], type$.JSArray_nullable_FileSpan));
  60010. t3.addInterpolation$1(type$.Interpolation._as(variableOrInterpolation));
  60011. t2 = _this._styleRule$2(t3, new A._SpanScannerState(t1, t2));
  60012. t1 = t2;
  60013. }
  60014. return t1;
  60015. },
  60016. _declarationOrStyleRule$0() {
  60017. var t1, t2, declarationOrBuffer, _this = this;
  60018. if (_this.get$indented() && _this.scanner.scanChar$1(92))
  60019. return _this._styleRule$0();
  60020. t1 = _this.scanner;
  60021. t2 = t1._string_scanner$_position;
  60022. declarationOrBuffer = _this._declarationOrBuffer$0();
  60023. return declarationOrBuffer instanceof A.Statement ? declarationOrBuffer : _this._styleRule$2(type$.InterpolationBuffer._as(declarationOrBuffer), new A._SpanScannerState(t1, t2));
  60024. },
  60025. _declarationOrBuffer$0() {
  60026. var midBuffer, couldBeSelector, beforeDeclaration, value, additional, t2, t3, variableOrInterpolation, t4, t5, $name, postColonWhitespace, _0_0, exception, _1_0, _this = this,
  60027. t1 = _this.scanner,
  60028. start = new A._SpanScannerState(t1, t1._string_scanner$_position),
  60029. nameBuffer = new A.InterpolationBuffer(new A.StringBuffer(""), A._setArrayType([], type$.JSArray_Object), A._setArrayType([], type$.JSArray_nullable_FileSpan)),
  60030. startsWithPunctuation = _this._lookingAtPotentialPropertyHack$0();
  60031. if (startsWithPunctuation) {
  60032. t2 = t1.readChar$0();
  60033. t3 = nameBuffer._interpolation_buffer$_text;
  60034. t2 = A.Primitives_stringFromCharCode(t2);
  60035. t3._contents += t2;
  60036. t2 = _this.rawText$1(_this.get$whitespace());
  60037. t3 = nameBuffer._interpolation_buffer$_text;
  60038. t3._contents += t2;
  60039. }
  60040. if (!_this._lookingAtInterpolatedIdentifier$0())
  60041. return nameBuffer;
  60042. variableOrInterpolation = startsWithPunctuation ? _this.interpolatedIdentifier$0() : _this._variableDeclarationOrInterpolation$0();
  60043. if (variableOrInterpolation instanceof A.VariableDeclaration)
  60044. return variableOrInterpolation;
  60045. else
  60046. nameBuffer.addInterpolation$1(type$.Interpolation._as(variableOrInterpolation));
  60047. _this._isUseAllowed = false;
  60048. if (t1.matches$1("/*")) {
  60049. t2 = _this.rawText$1(_this.get$loudComment());
  60050. t3 = nameBuffer._interpolation_buffer$_text;
  60051. t3._contents += t2;
  60052. }
  60053. midBuffer = new A.StringBuffer("");
  60054. t2 = midBuffer;
  60055. t3 = _this.get$whitespace();
  60056. t4 = _this.rawText$1(t3);
  60057. t2._contents += t4;
  60058. t4 = t1._string_scanner$_position;
  60059. if (!t1.scanChar$1(58)) {
  60060. if (midBuffer._contents.length !== 0) {
  60061. t1 = nameBuffer._interpolation_buffer$_text;
  60062. t2 = A.Primitives_stringFromCharCode(32);
  60063. t1._contents += t2;
  60064. }
  60065. return nameBuffer;
  60066. }
  60067. t2 = midBuffer;
  60068. t5 = A.Primitives_stringFromCharCode(58);
  60069. t2._contents += t5;
  60070. $name = nameBuffer.interpolation$1(t1.spanFrom$2(start, new A._SpanScannerState(t1, t4)));
  60071. if (B.JSString_methods.startsWith$1($name.get$initialPlain(), "--")) {
  60072. t2 = _this._interpolatedDeclarationValue$1$silentComments(false);
  60073. _this.expectStatementSeparator$1("custom property");
  60074. return A.Declaration$($name, new A.StringExpression(t2, false), t1.spanFrom$1(start));
  60075. }
  60076. if (t1.scanChar$1(58)) {
  60077. t1 = nameBuffer;
  60078. t2 = t1._interpolation_buffer$_text;
  60079. t3 = A.S(midBuffer);
  60080. t2._contents += t3;
  60081. t3 = A.Primitives_stringFromCharCode(58);
  60082. t2._contents += t3;
  60083. return t1;
  60084. } else if (_this.get$indented() && _this._lookingAtInterpolatedIdentifier$0()) {
  60085. t1 = nameBuffer;
  60086. t2 = t1._interpolation_buffer$_text;
  60087. t3 = A.S(midBuffer);
  60088. t2._contents += t3;
  60089. return t1;
  60090. }
  60091. postColonWhitespace = _this.rawText$1(t3);
  60092. _0_0 = _this._tryDeclarationChildren$2($name, start);
  60093. if (_0_0 != null)
  60094. return _0_0;
  60095. midBuffer._contents += postColonWhitespace;
  60096. couldBeSelector = postColonWhitespace.length === 0 && _this._lookingAtInterpolatedIdentifier$0();
  60097. beforeDeclaration = new A._SpanScannerState(t1, t1._string_scanner$_position);
  60098. value = null;
  60099. try {
  60100. value = _this._expression$0();
  60101. if (_this.lookingAtChildren$0()) {
  60102. if (couldBeSelector)
  60103. _this.expectStatementSeparator$0();
  60104. } else if (!_this.atEndOfStatement$0())
  60105. _this.expectStatementSeparator$0();
  60106. } catch (exception) {
  60107. if (type$.FormatException._is(A.unwrapException(exception))) {
  60108. if (!couldBeSelector)
  60109. throw exception;
  60110. t1.set$state(beforeDeclaration);
  60111. additional = _this.almostAnyValue$0();
  60112. if (!_this.get$indented() && t1.peekChar$0() === 59)
  60113. throw exception;
  60114. t1 = nameBuffer._interpolation_buffer$_text;
  60115. t2 = A.S(midBuffer);
  60116. t1._contents += t2;
  60117. nameBuffer.addInterpolation$1(additional);
  60118. return nameBuffer;
  60119. } else
  60120. throw exception;
  60121. }
  60122. _1_0 = _this._tryDeclarationChildren$3$value($name, start, value);
  60123. if (_1_0 != null)
  60124. return _1_0;
  60125. else {
  60126. _this.expectStatementSeparator$0();
  60127. return A.Declaration$($name, value, t1.spanFrom$1(start));
  60128. }
  60129. },
  60130. _variableDeclarationOrInterpolation$0() {
  60131. var t1, start, identifier, t2, buffer, _this = this;
  60132. if (!_this.lookingAtIdentifier$0())
  60133. return _this.interpolatedIdentifier$0();
  60134. t1 = _this.scanner;
  60135. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  60136. identifier = _this.identifier$0();
  60137. if (t1.matches$1(".$")) {
  60138. t1.readChar$0();
  60139. return _this.variableDeclarationWithoutNamespace$2(identifier, start);
  60140. } else {
  60141. t2 = new A.StringBuffer("");
  60142. buffer = new A.InterpolationBuffer(t2, A._setArrayType([], type$.JSArray_Object), A._setArrayType([], type$.JSArray_nullable_FileSpan));
  60143. t2._contents = "" + identifier;
  60144. if (_this._lookingAtInterpolatedIdentifierBody$0())
  60145. buffer.addInterpolation$1(_this.interpolatedIdentifier$0());
  60146. return buffer.interpolation$1(t1.spanFrom$1(start));
  60147. }
  60148. },
  60149. _styleRule$2(buffer, start_) {
  60150. var t2, start, interpolation, wasInStyleRule, _this = this, t1 = {};
  60151. _this._isUseAllowed = false;
  60152. if (start_ == null) {
  60153. t2 = _this.scanner;
  60154. start = new A._SpanScannerState(t2, t2._string_scanner$_position);
  60155. } else
  60156. start = start_;
  60157. interpolation = t1.interpolation = _this.styleRuleSelector$0();
  60158. if (buffer != null) {
  60159. buffer.addInterpolation$1(interpolation);
  60160. t2 = t1.interpolation = buffer.interpolation$1(_this.scanner.spanFrom$1(start));
  60161. } else
  60162. t2 = interpolation;
  60163. if (t2.contents.length === 0)
  60164. _this.scanner.error$1(0, 'expected "}".');
  60165. wasInStyleRule = _this._inStyleRule;
  60166. _this._inStyleRule = true;
  60167. return _this._withChildren$3(_this.get$_statement(), start, new A.StylesheetParser__styleRule_closure(t1, _this, wasInStyleRule, start));
  60168. },
  60169. _styleRule$0() {
  60170. return this._styleRule$2(null, null);
  60171. },
  60172. _propertyOrVariableDeclaration$1$parseCustomProperties(parseCustomProperties) {
  60173. var t2, nameBuffer, t3, $name, variableOrInterpolation, _0_0, value, _1_0, _this = this,
  60174. t1 = _this.scanner,
  60175. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  60176. if (_this._lookingAtPotentialPropertyHack$0()) {
  60177. t2 = new A.StringBuffer("");
  60178. nameBuffer = new A.InterpolationBuffer(t2, A._setArrayType([], type$.JSArray_Object), A._setArrayType([], type$.JSArray_nullable_FileSpan));
  60179. t3 = A.Primitives_stringFromCharCode(t1.readChar$0());
  60180. t2._contents += t3;
  60181. t3 = _this.rawText$1(_this.get$whitespace());
  60182. t2._contents += t3;
  60183. nameBuffer.addInterpolation$1(_this.interpolatedIdentifier$0());
  60184. $name = nameBuffer.interpolation$1(t1.spanFrom$1(start));
  60185. } else if (!_this.get$plainCss()) {
  60186. variableOrInterpolation = _this._variableDeclarationOrInterpolation$0();
  60187. if (variableOrInterpolation instanceof A.VariableDeclaration)
  60188. return variableOrInterpolation;
  60189. else
  60190. type$.Interpolation._as(variableOrInterpolation);
  60191. $name = variableOrInterpolation;
  60192. } else
  60193. $name = _this.interpolatedIdentifier$0();
  60194. _this.whitespace$0();
  60195. t1.expectChar$1(58);
  60196. _this.whitespace$0();
  60197. _0_0 = _this._tryDeclarationChildren$2($name, start);
  60198. if (_0_0 != null)
  60199. return _0_0;
  60200. value = _this._expression$0();
  60201. _1_0 = _this._tryDeclarationChildren$3$value($name, start, value);
  60202. if (_1_0 != null)
  60203. return _1_0;
  60204. else {
  60205. _this.expectStatementSeparator$0();
  60206. return A.Declaration$($name, value, t1.spanFrom$1(start));
  60207. }
  60208. },
  60209. _tryDeclarationChildren$3$value($name, start, value) {
  60210. var _this = this;
  60211. if (!_this.lookingAtChildren$0())
  60212. return null;
  60213. if (_this.get$plainCss())
  60214. _this.scanner.error$1(0, string$.Nested);
  60215. return _this._withChildren$3(_this.get$_declarationChild(), start, new A.StylesheetParser__tryDeclarationChildren_closure($name, value));
  60216. },
  60217. _tryDeclarationChildren$2($name, start) {
  60218. return this._tryDeclarationChildren$3$value($name, start, null);
  60219. },
  60220. _declarationChild$0() {
  60221. return this.scanner.peekChar$0() === 64 ? this._declarationAtRule$0() : this._propertyOrVariableDeclaration$1$parseCustomProperties(false);
  60222. },
  60223. atRule$2$root(child, root) {
  60224. var $name, wasUseAllowed, value, optional, _this = this,
  60225. t1 = _this.scanner,
  60226. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  60227. t1.expectChar$2$name(64, "@-rule");
  60228. $name = _this.interpolatedIdentifier$0();
  60229. _this.whitespace$0();
  60230. wasUseAllowed = _this._isUseAllowed;
  60231. _this._isUseAllowed = false;
  60232. switch ($name.get$asPlain()) {
  60233. case "at-root":
  60234. return _this._atRootRule$1(start);
  60235. case "content":
  60236. return _this._contentRule$1(start);
  60237. case "debug":
  60238. return _this._debugRule$1(start);
  60239. case "each":
  60240. return _this._eachRule$2(start, child);
  60241. case "else":
  60242. return _this._disallowedAtRule$1(start);
  60243. case "error":
  60244. return _this._errorRule$1(start);
  60245. case "extend":
  60246. if (!_this._inStyleRule && !_this._stylesheet$_inMixin && !_this._inContentBlock)
  60247. _this.error$2(0, string$.x40exten, t1.spanFrom$1(start));
  60248. value = _this.almostAnyValue$0();
  60249. optional = t1.scanChar$1(33);
  60250. if (optional) {
  60251. _this.expectIdentifier$1("optional");
  60252. _this.whitespace$0();
  60253. }
  60254. _this.expectStatementSeparator$1("@extend rule");
  60255. return new A.ExtendRule(value, optional, t1.spanFrom$1(start));
  60256. case "for":
  60257. return _this._forRule$2(start, child);
  60258. case "forward":
  60259. _this._isUseAllowed = wasUseAllowed;
  60260. if (!root)
  60261. _this._disallowedAtRule$1(start);
  60262. return _this._forwardRule$1(start);
  60263. case "function":
  60264. return _this._functionRule$1(start);
  60265. case "if":
  60266. return _this._ifRule$2(start, child);
  60267. case "import":
  60268. return _this._importRule$1(start);
  60269. case "include":
  60270. return _this._includeRule$1(start);
  60271. case "media":
  60272. return _this.mediaRule$1(start);
  60273. case "mixin":
  60274. return _this._mixinRule$1(start);
  60275. case "-moz-document":
  60276. return _this.mozDocumentRule$2(start, $name);
  60277. case "return":
  60278. return _this._disallowedAtRule$1(start);
  60279. case "supports":
  60280. return _this.supportsRule$1(start);
  60281. case "use":
  60282. _this._isUseAllowed = wasUseAllowed;
  60283. if (!root)
  60284. _this._disallowedAtRule$1(start);
  60285. return _this._useRule$1(start);
  60286. case "warn":
  60287. return _this._warnRule$1(start);
  60288. case "while":
  60289. return _this._whileRule$2(start, child);
  60290. default:
  60291. return _this.unknownAtRule$2(start, $name);
  60292. }
  60293. },
  60294. _declarationAtRule$0() {
  60295. var _this = this,
  60296. t1 = _this.scanner,
  60297. start = new A._SpanScannerState(t1, t1._string_scanner$_position),
  60298. _0_0 = _this._plainAtRuleName$0();
  60299. $label0$0: {
  60300. if ("content" === _0_0) {
  60301. t1 = _this._contentRule$1(start);
  60302. break $label0$0;
  60303. }
  60304. if ("debug" === _0_0) {
  60305. t1 = _this._debugRule$1(start);
  60306. break $label0$0;
  60307. }
  60308. if ("each" === _0_0) {
  60309. t1 = _this._eachRule$2(start, _this.get$_declarationChild());
  60310. break $label0$0;
  60311. }
  60312. if ("else" === _0_0)
  60313. _this._disallowedAtRule$1(start);
  60314. if ("error" === _0_0) {
  60315. t1 = _this._errorRule$1(start);
  60316. break $label0$0;
  60317. }
  60318. if ("for" === _0_0) {
  60319. t1 = _this._forRule$2(start, _this.get$_declarationChild());
  60320. break $label0$0;
  60321. }
  60322. if ("if" === _0_0) {
  60323. t1 = _this._ifRule$2(start, _this.get$_declarationChild());
  60324. break $label0$0;
  60325. }
  60326. if ("include" === _0_0) {
  60327. t1 = _this._includeRule$1(start);
  60328. break $label0$0;
  60329. }
  60330. if ("warn" === _0_0) {
  60331. t1 = _this._warnRule$1(start);
  60332. break $label0$0;
  60333. }
  60334. if ("while" === _0_0) {
  60335. t1 = _this._whileRule$2(start, _this.get$_declarationChild());
  60336. break $label0$0;
  60337. }
  60338. t1 = _this._disallowedAtRule$1(start);
  60339. }
  60340. return t1;
  60341. },
  60342. _functionChild$0() {
  60343. var state, variableDeclarationError, stackTrace, statement, t2, exception, t3, start, _0_0, value, _this = this,
  60344. t1 = _this.scanner;
  60345. if (t1.peekChar$0() !== 64) {
  60346. state = new A._SpanScannerState(t1, t1._string_scanner$_position);
  60347. try {
  60348. t2 = _this._variableDeclarationWithNamespace$0();
  60349. return t2;
  60350. } catch (exception) {
  60351. t2 = A.unwrapException(exception);
  60352. t3 = type$.SourceSpanFormatException;
  60353. if (t3._is(t2)) {
  60354. variableDeclarationError = t2;
  60355. stackTrace = A.getTraceFromException(exception);
  60356. t1.set$state(state);
  60357. statement = null;
  60358. try {
  60359. statement = _this._declarationOrStyleRule$0();
  60360. } catch (exception) {
  60361. if (t3._is(A.unwrapException(exception)))
  60362. throw A.wrapException(variableDeclarationError);
  60363. else
  60364. throw exception;
  60365. }
  60366. t2 = statement instanceof A.StyleRule ? "style rules" : "declarations";
  60367. _this.error$3(0, "@function rules may not contain " + t2 + ".", J.get$span$z(statement), stackTrace);
  60368. } else
  60369. throw exception;
  60370. }
  60371. }
  60372. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  60373. _0_0 = _this._plainAtRuleName$0();
  60374. $label0$0: {
  60375. if ("debug" === _0_0) {
  60376. t1 = _this._debugRule$1(start);
  60377. break $label0$0;
  60378. }
  60379. if ("each" === _0_0) {
  60380. t1 = _this._eachRule$2(start, _this.get$_functionChild());
  60381. break $label0$0;
  60382. }
  60383. if ("else" === _0_0)
  60384. _this._disallowedAtRule$1(start);
  60385. if ("error" === _0_0) {
  60386. t1 = _this._errorRule$1(start);
  60387. break $label0$0;
  60388. }
  60389. if ("for" === _0_0) {
  60390. t1 = _this._forRule$2(start, _this.get$_functionChild());
  60391. break $label0$0;
  60392. }
  60393. if ("if" === _0_0) {
  60394. t1 = _this._ifRule$2(start, _this.get$_functionChild());
  60395. break $label0$0;
  60396. }
  60397. if ("return" === _0_0) {
  60398. value = _this._expression$0();
  60399. _this.expectStatementSeparator$1("@return rule");
  60400. t1 = new A.ReturnRule(value, t1.spanFrom$1(start));
  60401. break $label0$0;
  60402. }
  60403. if ("warn" === _0_0) {
  60404. t1 = _this._warnRule$1(start);
  60405. break $label0$0;
  60406. }
  60407. if ("while" === _0_0) {
  60408. t1 = _this._whileRule$2(start, _this.get$_functionChild());
  60409. break $label0$0;
  60410. }
  60411. t1 = _this._disallowedAtRule$1(start);
  60412. }
  60413. return t1;
  60414. },
  60415. _plainAtRuleName$0() {
  60416. this.scanner.expectChar$2$name(64, "@-rule");
  60417. var $name = this.identifier$0();
  60418. this.whitespace$0();
  60419. return $name;
  60420. },
  60421. _atRootRule$1(start) {
  60422. var t2, t3, buffer, t4, query, _this = this,
  60423. t1 = _this.scanner;
  60424. if (t1.peekChar$0() === 40) {
  60425. t2 = t1._string_scanner$_position;
  60426. t3 = new A.StringBuffer("");
  60427. buffer = new A.InterpolationBuffer(t3, A._setArrayType([], type$.JSArray_Object), A._setArrayType([], type$.JSArray_nullable_FileSpan));
  60428. t1.expectChar$1(40);
  60429. t4 = A.Primitives_stringFromCharCode(40);
  60430. t3._contents += t4;
  60431. _this.whitespace$0();
  60432. _this._addOrInject$2(buffer, _this._expression$0());
  60433. if (t1.scanChar$1(58)) {
  60434. _this.whitespace$0();
  60435. t4 = A.Primitives_stringFromCharCode(58);
  60436. t3._contents += t4;
  60437. t4 = A.Primitives_stringFromCharCode(32);
  60438. t3._contents += t4;
  60439. _this._addOrInject$2(buffer, _this._expression$0());
  60440. }
  60441. t1.expectChar$1(41);
  60442. _this.whitespace$0();
  60443. t4 = A.Primitives_stringFromCharCode(41);
  60444. t3._contents += t4;
  60445. query = buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  60446. _this.whitespace$0();
  60447. return _this._withChildren$3(_this.get$_statement(), start, new A.StylesheetParser__atRootRule_closure(query));
  60448. } else {
  60449. if (!_this.lookingAtChildren$0())
  60450. t2 = _this.get$indented() && _this.atEndOfStatement$0();
  60451. else
  60452. t2 = true;
  60453. if (t2)
  60454. return _this._withChildren$3(_this.get$_statement(), start, new A.StylesheetParser__atRootRule_closure0());
  60455. else
  60456. return A.AtRootRule$(A._setArrayType([_this._styleRule$0()], type$.JSArray_Statement), t1.spanFrom$1(start), null);
  60457. }
  60458. },
  60459. _contentRule$1(start) {
  60460. var t1, beforeWhitespace, $arguments, t2, _this = this;
  60461. if (!_this._stylesheet$_inMixin)
  60462. _this.error$2(0, string$.x40conte, _this.scanner.spanFrom$1(start));
  60463. t1 = _this.scanner;
  60464. beforeWhitespace = A.FileLocation$_(t1._sourceFile, t1._string_scanner$_position);
  60465. _this.whitespace$0();
  60466. if (t1.peekChar$0() === 40) {
  60467. $arguments = _this._argumentInvocation$1$mixin(true);
  60468. _this.whitespace$0();
  60469. } else {
  60470. t2 = beforeWhitespace.offset;
  60471. $arguments = A.ArgumentInvocation$empty(A._FileSpan$(beforeWhitespace.file, t2, t2));
  60472. }
  60473. _this.expectStatementSeparator$1("@content rule");
  60474. return new A.ContentRule($arguments, t1.spanFrom$1(start));
  60475. },
  60476. _debugRule$1(start) {
  60477. var value = this._expression$0();
  60478. this.expectStatementSeparator$1("@debug rule");
  60479. return new A.DebugRule(value, this.scanner.spanFrom$1(start));
  60480. },
  60481. _eachRule$2(start, child) {
  60482. var variables, t1, _this = this,
  60483. wasInControlDirective = _this._inControlDirective;
  60484. _this._inControlDirective = true;
  60485. variables = A._setArrayType([_this.variableName$0()], type$.JSArray_String);
  60486. _this.whitespace$0();
  60487. for (t1 = _this.scanner; t1.scanChar$1(44);) {
  60488. _this.whitespace$0();
  60489. t1.expectChar$1(36);
  60490. variables.push(_this.identifier$1$normalize(true));
  60491. _this.whitespace$0();
  60492. }
  60493. _this.expectIdentifier$1("in");
  60494. _this.whitespace$0();
  60495. return _this._withChildren$3(child, start, new A.StylesheetParser__eachRule_closure(_this, wasInControlDirective, variables, _this._expression$0()));
  60496. },
  60497. _errorRule$1(start) {
  60498. var value = this._expression$0();
  60499. this.expectStatementSeparator$1("@error rule");
  60500. return new A.ErrorRule(value, this.scanner.spanFrom$1(start));
  60501. },
  60502. _functionRule$1(start) {
  60503. var t1, t2, $name, $arguments, _0_0, _this = this,
  60504. precedingComment = _this.lastSilentComment;
  60505. _this.lastSilentComment = null;
  60506. t1 = _this.scanner;
  60507. t2 = t1._string_scanner$_position;
  60508. $name = _this.identifier$0();
  60509. if (B.JSString_methods.startsWith$1($name, "--"))
  60510. _this.warnings.push(new A._Record_3_deprecation_message_span(B.Deprecation_0, string$.Sassx20_fm, t1.spanFrom$1(new A._SpanScannerState(t1, t2))));
  60511. _this.whitespace$0();
  60512. $arguments = _this._argumentDeclaration$0();
  60513. if (_this._stylesheet$_inMixin || _this._inContentBlock)
  60514. _this.error$2(0, string$.Mixinscf, t1.spanFrom$1(start));
  60515. else if (_this._inControlDirective)
  60516. _this.error$2(0, string$.Functi, t1.spanFrom$1(start));
  60517. _0_0 = A.unvendor($name);
  60518. if ("calc" === _0_0 || "element" === _0_0 || "expression" === _0_0 || "url" === _0_0 || "and" === _0_0 || "or" === _0_0 || "not" === _0_0 || "clamp" === _0_0)
  60519. _this.error$2(0, "Invalid function name.", t1.spanFrom$1(start));
  60520. _this.whitespace$0();
  60521. return _this._withChildren$3(_this.get$_functionChild(), start, new A.StylesheetParser__functionRule_closure($name, $arguments, precedingComment));
  60522. },
  60523. _forRule$2(start, child) {
  60524. var variable, from, _this = this, t1 = {},
  60525. wasInControlDirective = _this._inControlDirective;
  60526. _this._inControlDirective = true;
  60527. variable = _this.variableName$0();
  60528. _this.whitespace$0();
  60529. _this.expectIdentifier$1("from");
  60530. _this.whitespace$0();
  60531. t1.exclusive = null;
  60532. from = _this._expression$1$until(new A.StylesheetParser__forRule_closure(t1, _this));
  60533. if (t1.exclusive == null)
  60534. _this.scanner.error$1(0, 'Expected "to" or "through".');
  60535. _this.whitespace$0();
  60536. return _this._withChildren$3(child, start, new A.StylesheetParser__forRule_closure0(t1, _this, wasInControlDirective, variable, from, _this._expression$0()));
  60537. },
  60538. _forwardRule$1(start) {
  60539. var prefix, hiddenMixinsAndFunctions, hiddenVariables, _0_0, shownMixinsAndFunctions, shownVariables, _1_0, configuration, span, t1, t2, t3, t4, _this = this, _null = null,
  60540. url = _this._urlString$0();
  60541. _this.whitespace$0();
  60542. if (_this.scanIdentifier$1("as")) {
  60543. _this.whitespace$0();
  60544. prefix = _this.identifier$1$normalize(true);
  60545. _this.scanner.expectChar$1(42);
  60546. _this.whitespace$0();
  60547. } else
  60548. prefix = _null;
  60549. hiddenMixinsAndFunctions = _null;
  60550. hiddenVariables = _null;
  60551. if (_this.scanIdentifier$1("show")) {
  60552. _0_0 = _this._memberList$0();
  60553. shownMixinsAndFunctions = _0_0._0;
  60554. shownVariables = _0_0._1;
  60555. } else {
  60556. if (_this.scanIdentifier$1("hide")) {
  60557. _1_0 = _this._memberList$0();
  60558. hiddenMixinsAndFunctions = _1_0._0;
  60559. hiddenVariables = _1_0._1;
  60560. }
  60561. shownVariables = _null;
  60562. shownMixinsAndFunctions = shownVariables;
  60563. }
  60564. configuration = _this._stylesheet$_configuration$1$allowGuarded(true);
  60565. _this.whitespace$0();
  60566. _this.expectStatementSeparator$1("@forward rule");
  60567. span = _this.scanner.spanFrom$1(start);
  60568. if (!_this._isUseAllowed)
  60569. _this.error$2(0, string$.x40forwa, span);
  60570. if (shownMixinsAndFunctions != null) {
  60571. shownVariables.toString;
  60572. t1 = type$.String;
  60573. t2 = A.LinkedHashSet_LinkedHashSet$of(shownMixinsAndFunctions, t1);
  60574. t3 = type$.UnmodifiableSetView_String;
  60575. t1 = A.LinkedHashSet_LinkedHashSet$of(shownVariables, t1);
  60576. t4 = configuration == null ? B.List_empty10 : A.List_List$unmodifiable(configuration, type$.ConfiguredVariable);
  60577. return new A.ForwardRule(url, new A.UnmodifiableSetView0(t2, t3), new A.UnmodifiableSetView0(t1, t3), _null, _null, prefix, t4, span);
  60578. } else if (hiddenMixinsAndFunctions != null) {
  60579. hiddenVariables.toString;
  60580. t1 = type$.String;
  60581. t2 = A.LinkedHashSet_LinkedHashSet$of(hiddenMixinsAndFunctions, t1);
  60582. t3 = type$.UnmodifiableSetView_String;
  60583. t1 = A.LinkedHashSet_LinkedHashSet$of(hiddenVariables, t1);
  60584. t4 = configuration == null ? B.List_empty10 : A.List_List$unmodifiable(configuration, type$.ConfiguredVariable);
  60585. return new A.ForwardRule(url, _null, _null, new A.UnmodifiableSetView0(t2, t3), new A.UnmodifiableSetView0(t1, t3), prefix, t4, span);
  60586. } else
  60587. return new A.ForwardRule(url, _null, _null, _null, _null, prefix, configuration == null ? B.List_empty10 : A.List_List$unmodifiable(configuration, type$.ConfiguredVariable), span);
  60588. },
  60589. _memberList$0() {
  60590. var _this = this,
  60591. t1 = type$.String,
  60592. identifiers = A.LinkedHashSet_LinkedHashSet$_empty(t1),
  60593. variables = A.LinkedHashSet_LinkedHashSet$_empty(t1);
  60594. t1 = _this.scanner;
  60595. do {
  60596. _this.whitespace$0();
  60597. _this.withErrorMessage$2(string$.Expectv, new A.StylesheetParser__memberList_closure(_this, variables, identifiers));
  60598. _this.whitespace$0();
  60599. } while (t1.scanChar$1(44));
  60600. return new A._Record_2(identifiers, variables);
  60601. },
  60602. _ifRule$2(start, child) {
  60603. var condition, children, clauses, lastClause, span, _this = this,
  60604. ifIndentation = _this.get$currentIndentation(),
  60605. wasInControlDirective = _this._inControlDirective;
  60606. _this._inControlDirective = true;
  60607. condition = _this._expression$0();
  60608. children = _this.children$1(0, child);
  60609. _this.whitespaceWithoutComments$0();
  60610. clauses = A._setArrayType([A.IfClause$(condition, children)], type$.JSArray_IfClause);
  60611. while (true) {
  60612. if (!_this.scanElse$1(ifIndentation)) {
  60613. lastClause = null;
  60614. break;
  60615. }
  60616. _this.whitespace$0();
  60617. if (_this.scanIdentifier$1("if")) {
  60618. _this.whitespace$0();
  60619. clauses.push(A.IfClause$(_this._expression$0(), _this.children$1(0, child)));
  60620. } else {
  60621. lastClause = A.ElseClause$(_this.children$1(0, child));
  60622. break;
  60623. }
  60624. }
  60625. _this._inControlDirective = wasInControlDirective;
  60626. span = _this.scanner.spanFrom$1(start);
  60627. _this.whitespaceWithoutComments$0();
  60628. return new A.IfRule(A.List_List$unmodifiable(clauses, type$.IfClause), lastClause, span);
  60629. },
  60630. _importRule$1(start) {
  60631. var argument, t3, _this = this,
  60632. imports = A._setArrayType([], type$.JSArray_Import),
  60633. t1 = _this.scanner,
  60634. t2 = _this.warnings;
  60635. do {
  60636. _this.whitespace$0();
  60637. argument = _this.importArgument$0();
  60638. t3 = argument instanceof A.DynamicImport;
  60639. if (t3)
  60640. t2.push(new A._Record_3_deprecation_message_span(B.Deprecation_MYu, string$.Sassx20_i, argument.span));
  60641. if ((_this._inControlDirective || _this._stylesheet$_inMixin) && t3)
  60642. _this._disallowedAtRule$1(start);
  60643. imports.push(argument);
  60644. _this.whitespace$0();
  60645. } while (t1.scanChar$1(44));
  60646. _this.expectStatementSeparator$1("@import rule");
  60647. t1 = t1.spanFrom$1(start);
  60648. return new A.ImportRule(A.List_List$unmodifiable(imports, type$.Import), t1);
  60649. },
  60650. importArgument$0() {
  60651. var url, urlSpan, innerError, stackTrace, modifiers, t2, exception, _this = this,
  60652. t1 = _this.scanner,
  60653. start = new A._SpanScannerState(t1, t1._string_scanner$_position),
  60654. _0_0 = t1.peekChar$0();
  60655. if (117 === _0_0 || 85 === _0_0) {
  60656. url = _this.dynamicUrl$0();
  60657. _this.whitespace$0();
  60658. modifiers = _this.tryImportModifiers$0();
  60659. t2 = url instanceof A.StringExpression ? url.text : A.Interpolation$(A._setArrayType([url], type$.JSArray_Object), A._setArrayType([url.get$span(url)], type$.JSArray_nullable_FileSpan), url.get$span(url));
  60660. return new A.StaticImport(t2, modifiers, t1.spanFrom$1(start));
  60661. }
  60662. url = _this.string$0();
  60663. urlSpan = t1.spanFrom$1(start);
  60664. _this.whitespace$0();
  60665. modifiers = _this.tryImportModifiers$0();
  60666. if (_this.isPlainImportUrl$1(url) || modifiers != null) {
  60667. t2 = urlSpan;
  60668. return new A.StaticImport(new A.Interpolation(A.List_List$unmodifiable([A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t2.file._decodedChars, t2._file$_start, t2._end), 0, null)], type$.Object), B.List_null, urlSpan), modifiers, t1.spanFrom$1(start));
  60669. } else
  60670. try {
  60671. t1 = _this.parseImportUrl$1(url);
  60672. return new A.DynamicImport(t1, urlSpan);
  60673. } catch (exception) {
  60674. t1 = A.unwrapException(exception);
  60675. if (type$.FormatException._is(t1)) {
  60676. innerError = t1;
  60677. stackTrace = A.getTraceFromException(exception);
  60678. _this.error$3(0, "Invalid URL: " + J.get$message$x(innerError), urlSpan, stackTrace);
  60679. } else
  60680. throw exception;
  60681. }
  60682. },
  60683. parseImportUrl$1(url) {
  60684. var t1 = $.$get$windows();
  60685. if (t1.style.rootLength$1(url) > 0 && !$.$get$url().style.isRootRelative$1(url))
  60686. return t1.toUri$1(url).toString$0(0);
  60687. A.Uri_parse(url);
  60688. return url;
  60689. },
  60690. isPlainImportUrl$1(url) {
  60691. var _0_0, t1;
  60692. if (url.length < 5)
  60693. return false;
  60694. if (B.JSString_methods.endsWith$1(url, ".css"))
  60695. return true;
  60696. _0_0 = url.charCodeAt(0);
  60697. $label0$0: {
  60698. if (47 === _0_0) {
  60699. t1 = url.charCodeAt(1) === 47;
  60700. break $label0$0;
  60701. }
  60702. if (104 === _0_0) {
  60703. t1 = B.JSString_methods.startsWith$1(url, "http://") || B.JSString_methods.startsWith$1(url, "https://");
  60704. break $label0$0;
  60705. }
  60706. t1 = false;
  60707. break $label0$0;
  60708. }
  60709. return t1;
  60710. },
  60711. tryImportModifiers$0() {
  60712. var t1, start, t2, t3, t4, buffer, t5, identifier, $name, query, t6, endPosition, _this = this;
  60713. if (!_this._lookingAtInterpolatedIdentifier$0() && _this.scanner.peekChar$0() !== 40)
  60714. return null;
  60715. t1 = _this.scanner;
  60716. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  60717. t2 = new A.StringBuffer("");
  60718. t3 = A._setArrayType([], type$.JSArray_Object);
  60719. t4 = A._setArrayType([], type$.JSArray_nullable_FileSpan);
  60720. buffer = new A.InterpolationBuffer(t2, t3, t4);
  60721. for (; true;)
  60722. if (_this._lookingAtInterpolatedIdentifier$0()) {
  60723. if (!(t3.length === 0 && t2._contents.length === 0)) {
  60724. t5 = A.Primitives_stringFromCharCode(32);
  60725. t2._contents += t5;
  60726. }
  60727. identifier = _this.interpolatedIdentifier$0();
  60728. buffer.addInterpolation$1(identifier);
  60729. t5 = identifier.get$asPlain();
  60730. $name = t5 == null ? null : t5.toLowerCase();
  60731. if ($name !== "and" && t1.scanChar$1(40)) {
  60732. if ($name === "supports") {
  60733. query = _this._importSupportsQuery$0();
  60734. t5 = !(query instanceof A.SupportsDeclaration);
  60735. if (t5) {
  60736. t6 = A.Primitives_stringFromCharCode(40);
  60737. t2._contents += t6;
  60738. }
  60739. t6 = query.get$span(query);
  60740. buffer._flushText$0();
  60741. t3.push(new A.SupportsExpression(query));
  60742. t4.push(t6);
  60743. if (t5) {
  60744. t5 = A.Primitives_stringFromCharCode(41);
  60745. t2._contents += t5;
  60746. }
  60747. } else {
  60748. t5 = A.Primitives_stringFromCharCode(40);
  60749. t2._contents += t5;
  60750. buffer.addInterpolation$1(_this._interpolatedDeclarationValue$2$allowEmpty$allowSemicolon(true, true));
  60751. t5 = A.Primitives_stringFromCharCode(41);
  60752. t2._contents += t5;
  60753. }
  60754. t1.expectChar$1(41);
  60755. _this.whitespace$0();
  60756. } else {
  60757. _this.whitespace$0();
  60758. if (t1.scanChar$1(44)) {
  60759. t2._contents += ", ";
  60760. buffer.addInterpolation$1(_this._mediaQueryList$0());
  60761. endPosition = t1._string_scanner$_position;
  60762. t2 = t1._sourceFile;
  60763. t3 = start.position;
  60764. t1 = new A._FileSpan(t2, t3, endPosition);
  60765. t1._FileSpan$3(t2, t3, endPosition);
  60766. return buffer.interpolation$1(t1);
  60767. }
  60768. }
  60769. } else if (t1.peekChar$0() === 40) {
  60770. if (!(t3.length === 0 && t2._contents.length === 0)) {
  60771. t3 = A.Primitives_stringFromCharCode(32);
  60772. t2._contents += t3;
  60773. }
  60774. buffer.addInterpolation$1(_this._mediaQueryList$0());
  60775. endPosition = t1._string_scanner$_position;
  60776. t1 = t1._sourceFile;
  60777. t2 = start.position;
  60778. t3 = new A._FileSpan(t1, t2, endPosition);
  60779. t3._FileSpan$3(t1, t2, endPosition);
  60780. return buffer.interpolation$1(t3);
  60781. } else {
  60782. endPosition = t1._string_scanner$_position;
  60783. t1 = t1._sourceFile;
  60784. t2 = start.position;
  60785. t3 = new A._FileSpan(t1, t2, endPosition);
  60786. t3._FileSpan$3(t1, t2, endPosition);
  60787. return buffer.interpolation$1(t3);
  60788. }
  60789. },
  60790. _importSupportsQuery$0() {
  60791. var t1, t2, _0_0, $name, _this = this;
  60792. if (_this.scanIdentifier$1("not")) {
  60793. _this.whitespace$0();
  60794. t1 = _this.scanner;
  60795. t2 = t1._string_scanner$_position;
  60796. return new A.SupportsNegation(_this._supportsConditionInParens$0(), t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  60797. } else {
  60798. t1 = _this.scanner;
  60799. if (t1.peekChar$0() === 40)
  60800. return _this._supportsCondition$0();
  60801. else {
  60802. _0_0 = _this._tryImportSupportsFunction$0();
  60803. if (_0_0 != null)
  60804. return _0_0;
  60805. t2 = t1._string_scanner$_position;
  60806. $name = _this._expression$0();
  60807. t1.expectChar$1(58);
  60808. return new A.SupportsDeclaration($name, _this._supportsDeclarationValue$1($name), t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  60809. }
  60810. }
  60811. },
  60812. _tryImportSupportsFunction$0() {
  60813. var t1, start, $name, value, _this = this;
  60814. if (!_this._lookingAtInterpolatedIdentifier$0())
  60815. return null;
  60816. t1 = _this.scanner;
  60817. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  60818. $name = _this.interpolatedIdentifier$0();
  60819. if (!t1.scanChar$1(40)) {
  60820. t1.set$state(start);
  60821. return null;
  60822. }
  60823. value = _this._interpolatedDeclarationValue$2$allowEmpty$allowSemicolon(true, true);
  60824. t1.expectChar$1(41);
  60825. return new A.SupportsFunction($name, value, t1.spanFrom$1(start));
  60826. },
  60827. _includeRule$1(start) {
  60828. var name0, namespace, $arguments, t2, t3, contentArguments, contentArguments_, wasInContentBlock, $content, span, _this = this, _null = null,
  60829. $name = _this.identifier$0(),
  60830. t1 = _this.scanner;
  60831. if (t1.scanChar$1(46)) {
  60832. name0 = _this._publicIdentifier$0();
  60833. namespace = $name;
  60834. $name = name0;
  60835. } else
  60836. namespace = _null;
  60837. _this.whitespace$0();
  60838. if (t1.peekChar$0() === 40)
  60839. $arguments = _this._argumentInvocation$1$mixin(true);
  60840. else {
  60841. t2 = A.FileLocation$_(t1._sourceFile, t1._string_scanner$_position);
  60842. t3 = t2.offset;
  60843. $arguments = A.ArgumentInvocation$empty(A._FileSpan$(t2.file, t3, t3));
  60844. }
  60845. _this.whitespace$0();
  60846. if (_this.scanIdentifier$1("using")) {
  60847. _this.whitespace$0();
  60848. contentArguments = _this._argumentDeclaration$0();
  60849. _this.whitespace$0();
  60850. } else
  60851. contentArguments = _null;
  60852. t2 = contentArguments == null;
  60853. if (!t2 || _this.lookingAtChildren$0()) {
  60854. if (t2) {
  60855. t2 = A.FileLocation$_(t1._sourceFile, t1._string_scanner$_position);
  60856. t3 = t2.offset;
  60857. contentArguments_ = new A.ArgumentDeclaration(B.List_empty12, _null, A._FileSpan$(t2.file, t3, t3));
  60858. } else
  60859. contentArguments_ = contentArguments;
  60860. wasInContentBlock = _this._inContentBlock;
  60861. _this._inContentBlock = true;
  60862. $content = _this._withChildren$3(_this.get$_statement(), start, new A.StylesheetParser__includeRule_closure(contentArguments_));
  60863. _this._inContentBlock = wasInContentBlock;
  60864. } else {
  60865. _this.expectStatementSeparator$0();
  60866. $content = _null;
  60867. }
  60868. t1 = t1.spanFrom$2(start, start);
  60869. t2 = $content == null ? $arguments : $content;
  60870. span = t1.expand$1(0, t2.get$span(t2));
  60871. return new A.IncludeRule(namespace, A.stringReplaceAllUnchecked($name, "_", "-"), $name, $arguments, $content, span);
  60872. },
  60873. mediaRule$1(start) {
  60874. return this._withChildren$3(this.get$_statement(), start, new A.StylesheetParser_mediaRule_closure(this._mediaQueryList$0()));
  60875. },
  60876. _mixinRule$1(start) {
  60877. var t1, t2, $name, $arguments, t3, _this = this,
  60878. precedingComment = _this.lastSilentComment;
  60879. _this.lastSilentComment = null;
  60880. t1 = _this.scanner;
  60881. t2 = t1._string_scanner$_position;
  60882. $name = _this.identifier$0();
  60883. if (B.JSString_methods.startsWith$1($name, "--"))
  60884. _this.warnings.push(new A._Record_3_deprecation_message_span(B.Deprecation_0, string$.Sassx20_m, t1.spanFrom$1(new A._SpanScannerState(t1, t2))));
  60885. _this.whitespace$0();
  60886. if (t1.peekChar$0() === 40)
  60887. $arguments = _this._argumentDeclaration$0();
  60888. else {
  60889. t2 = A.FileLocation$_(t1._sourceFile, t1._string_scanner$_position);
  60890. t3 = t2.offset;
  60891. $arguments = new A.ArgumentDeclaration(B.List_empty12, null, A._FileSpan$(t2.file, t3, t3));
  60892. }
  60893. if (_this._stylesheet$_inMixin || _this._inContentBlock)
  60894. _this.error$2(0, string$.Mixinscm, t1.spanFrom$1(start));
  60895. else if (_this._inControlDirective)
  60896. _this.error$2(0, string$.Mixinsb, t1.spanFrom$1(start));
  60897. _this.whitespace$0();
  60898. _this._stylesheet$_inMixin = true;
  60899. return _this._withChildren$3(_this.get$_statement(), start, new A.StylesheetParser__mixinRule_closure(_this, $name, $arguments, precedingComment));
  60900. },
  60901. mozDocumentRule$2(start, $name) {
  60902. var t6, _0_0, t7, identifier, _1_0, argument, trailing, endPosition, t8, t9, start0, end, _this = this, _box_0 = {},
  60903. t1 = _this.scanner,
  60904. t2 = t1._string_scanner$_position,
  60905. t3 = new A.StringBuffer(""),
  60906. t4 = A._setArrayType([], type$.JSArray_Object),
  60907. t5 = A._setArrayType([], type$.JSArray_nullable_FileSpan),
  60908. buffer = new A.InterpolationBuffer(t3, t4, t5);
  60909. _box_0.needsDeprecationWarning = false;
  60910. for (t6 = _this.get$whitespace(); true;) {
  60911. if (t1.peekChar$0() === 35) {
  60912. _0_0 = _this.singleInterpolation$0();
  60913. buffer._flushText$0();
  60914. t4.push(_0_0._0);
  60915. t5.push(_0_0._1);
  60916. _box_0.needsDeprecationWarning = true;
  60917. } else {
  60918. t7 = t1._string_scanner$_position;
  60919. identifier = _this.identifier$0();
  60920. $label0$0: {
  60921. if ("url" === identifier || "url-prefix" === identifier || "domain" === identifier) {
  60922. _1_0 = _this._tryUrlContents$2$name(new A._SpanScannerState(t1, t7), identifier);
  60923. if (_1_0 != null)
  60924. buffer.addInterpolation$1(_1_0);
  60925. else {
  60926. t1.expectChar$1(40);
  60927. _this.whitespace$0();
  60928. argument = _this.interpolatedString$0();
  60929. t1.expectChar$1(41);
  60930. t3._contents += identifier;
  60931. t7 = A.Primitives_stringFromCharCode(40);
  60932. t3._contents += t7;
  60933. buffer.addInterpolation$1(argument.asInterpolation$0());
  60934. t7 = A.Primitives_stringFromCharCode(41);
  60935. t3._contents += t7;
  60936. }
  60937. t7 = t3._contents;
  60938. trailing = t7.charCodeAt(0) == 0 ? t7 : t7;
  60939. if (!B.JSString_methods.endsWith$1(trailing, "url-prefix()") && !B.JSString_methods.endsWith$1(trailing, "url-prefix('')") && !B.JSString_methods.endsWith$1(trailing, 'url-prefix("")'))
  60940. _box_0.needsDeprecationWarning = true;
  60941. break $label0$0;
  60942. }
  60943. if ("regexp" === identifier) {
  60944. t3._contents += "regexp(";
  60945. t1.expectChar$1(40);
  60946. buffer.addInterpolation$1(_this.interpolatedString$0().asInterpolation$0());
  60947. t1.expectChar$1(41);
  60948. t7 = A.Primitives_stringFromCharCode(41);
  60949. t3._contents += t7;
  60950. _box_0.needsDeprecationWarning = true;
  60951. break $label0$0;
  60952. }
  60953. endPosition = t1._string_scanner$_position;
  60954. t8 = t1._sourceFile;
  60955. t9 = new A._FileSpan(t8, t7, endPosition);
  60956. t9._FileSpan$3(t8, t7, endPosition);
  60957. _this.error$2(0, "Invalid function name.", t9);
  60958. }
  60959. }
  60960. _this.whitespace$0();
  60961. if (!t1.scanChar$1(44))
  60962. break;
  60963. t7 = A.Primitives_stringFromCharCode(44);
  60964. t3._contents += t7;
  60965. start0 = t1._string_scanner$_position;
  60966. t6.call$0();
  60967. end = t1._string_scanner$_position;
  60968. t3._contents += B.JSString_methods.substring$2(t1.string, start0, end);
  60969. }
  60970. return _this._withChildren$3(_this.get$_statement(), start, new A.StylesheetParser_mozDocumentRule_closure(_box_0, _this, $name, buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2)))));
  60971. },
  60972. supportsRule$1(start) {
  60973. var _this = this,
  60974. condition = _this._supportsCondition$0();
  60975. _this.whitespace$0();
  60976. return _this._withChildren$3(_this.get$_statement(), start, new A.StylesheetParser_supportsRule_closure(condition));
  60977. },
  60978. _useRule$1(start) {
  60979. var namespace, configuration, span, t1, _this = this,
  60980. url = _this._urlString$0();
  60981. _this.whitespace$0();
  60982. namespace = _this._useNamespace$2(url, start);
  60983. _this.whitespace$0();
  60984. configuration = _this._stylesheet$_configuration$0();
  60985. _this.whitespace$0();
  60986. span = _this.scanner.spanFrom$1(start);
  60987. if (!_this._isUseAllowed)
  60988. _this.error$2(0, string$.x40use_r, span);
  60989. _this.expectStatementSeparator$1("@use rule");
  60990. t1 = new A.UseRule(url, namespace, configuration == null ? B.List_empty10 : A.List_List$unmodifiable(configuration, type$.ConfiguredVariable), span);
  60991. t1.UseRule$4$configuration(url, namespace, span, configuration);
  60992. return t1;
  60993. },
  60994. _useNamespace$2(url, start) {
  60995. var namespace, basename, dot, t1, exception, _this = this;
  60996. if (_this.scanIdentifier$1("as")) {
  60997. _this.whitespace$0();
  60998. return _this.scanner.scanChar$1(42) ? null : _this.identifier$0();
  60999. }
  61000. basename = url.get$pathSegments().length === 0 ? "" : B.JSArray_methods.get$last(url.get$pathSegments());
  61001. dot = B.JSString_methods.indexOf$1(basename, ".");
  61002. t1 = B.JSString_methods.startsWith$1(basename, "_") ? 1 : 0;
  61003. namespace = B.JSString_methods.substring$2(basename, t1, dot === -1 ? basename.length : dot);
  61004. try {
  61005. t1 = new A.Parser(A.SpanScanner$(namespace, null), null)._parseIdentifier$0();
  61006. return t1;
  61007. } catch (exception) {
  61008. if (type$.SassFormatException._is(A.unwrapException(exception)))
  61009. _this.error$2(0, 'The default namespace "' + A.S(namespace) + string$.x22x20is_n, _this.scanner.spanFrom$1(start));
  61010. else
  61011. throw exception;
  61012. }
  61013. },
  61014. _stylesheet$_configuration$1$allowGuarded(allowGuarded) {
  61015. var variableNames, configuration, t1, t2, $name, expression, t3, guarded, endPosition, t4, t5, span, _this = this;
  61016. if (!_this.scanIdentifier$1("with"))
  61017. return null;
  61018. variableNames = A.LinkedHashSet_LinkedHashSet$_empty(type$.String);
  61019. configuration = A._setArrayType([], type$.JSArray_ConfiguredVariable);
  61020. _this.whitespace$0();
  61021. t1 = _this.scanner;
  61022. t1.expectChar$1(40);
  61023. for (; true;) {
  61024. _this.whitespace$0();
  61025. t2 = t1._string_scanner$_position;
  61026. t1.expectChar$1(36);
  61027. $name = _this.identifier$1$normalize(true);
  61028. _this.whitespace$0();
  61029. t1.expectChar$1(58);
  61030. _this.whitespace$0();
  61031. expression = _this.expressionUntilComma$0();
  61032. t3 = t1._string_scanner$_position;
  61033. if (allowGuarded && t1.scanChar$1(33)) {
  61034. guarded = _this.identifier$0() === "default";
  61035. if (guarded)
  61036. _this.whitespace$0();
  61037. else {
  61038. endPosition = t1._string_scanner$_position;
  61039. t4 = t1._sourceFile;
  61040. t5 = new A._FileSpan(t4, t3, endPosition);
  61041. t5._FileSpan$3(t4, t3, endPosition);
  61042. _this.error$2(0, "Invalid flag name.", t5);
  61043. }
  61044. } else
  61045. guarded = false;
  61046. endPosition = t1._string_scanner$_position;
  61047. t3 = t1._sourceFile;
  61048. span = new A._FileSpan(t3, t2, endPosition);
  61049. span._FileSpan$3(t3, t2, endPosition);
  61050. if (variableNames.contains$1(0, $name))
  61051. _this.error$2(0, string$.The_sa, span);
  61052. variableNames.add$1(0, $name);
  61053. configuration.push(new A.ConfiguredVariable($name, expression, guarded, span));
  61054. if (!t1.scanChar$1(44))
  61055. break;
  61056. _this.whitespace$0();
  61057. if (!_this._lookingAtExpression$0())
  61058. break;
  61059. }
  61060. t1.expectChar$1(41);
  61061. return configuration;
  61062. },
  61063. _stylesheet$_configuration$0() {
  61064. return this._stylesheet$_configuration$1$allowGuarded(false);
  61065. },
  61066. _warnRule$1(start) {
  61067. var value = this._expression$0();
  61068. this.expectStatementSeparator$1("@warn rule");
  61069. return new A.WarnRule(value, this.scanner.spanFrom$1(start));
  61070. },
  61071. _whileRule$2(start, child) {
  61072. var _this = this,
  61073. wasInControlDirective = _this._inControlDirective;
  61074. _this._inControlDirective = true;
  61075. return _this._withChildren$3(child, start, new A.StylesheetParser__whileRule_closure(_this, wasInControlDirective, _this._expression$0()));
  61076. },
  61077. unknownAtRule$2(start, $name) {
  61078. var t2, t3, rule, _this = this, t1 = {},
  61079. wasInUnknownAtRule = _this._stylesheet$_inUnknownAtRule;
  61080. _this._stylesheet$_inUnknownAtRule = true;
  61081. t1.value = null;
  61082. t2 = _this.scanner;
  61083. t3 = t2.peekChar$0() !== 33 && !_this.atEndOfStatement$0() ? t1.value = _this._interpolatedDeclarationValue$1$allowOpenBrace(false) : null;
  61084. if (_this.lookingAtChildren$0())
  61085. rule = _this._withChildren$3(_this.get$_statement(), start, new A.StylesheetParser_unknownAtRule_closure(t1, $name));
  61086. else {
  61087. _this.expectStatementSeparator$0();
  61088. rule = A.AtRule$($name, t2.spanFrom$1(start), null, t3);
  61089. }
  61090. _this._stylesheet$_inUnknownAtRule = wasInUnknownAtRule;
  61091. return rule;
  61092. },
  61093. _disallowedAtRule$1(start) {
  61094. this._interpolatedDeclarationValue$2$allowEmpty$allowOpenBrace(true, false);
  61095. this.error$2(0, "This at-rule is not allowed here.", this.scanner.spanFrom$1(start));
  61096. },
  61097. _argumentDeclaration$0() {
  61098. var $arguments, named, restArgument, t3, $name, defaultValue, endPosition, t4, t5, _this = this,
  61099. t1 = _this.scanner,
  61100. t2 = t1._string_scanner$_position;
  61101. t1.expectChar$1(40);
  61102. _this.whitespace$0();
  61103. $arguments = A._setArrayType([], type$.JSArray_Argument);
  61104. named = A.LinkedHashSet_LinkedHashSet$_empty(type$.String);
  61105. for (; restArgument = null, t1.peekChar$0() === 36;) {
  61106. t3 = t1._string_scanner$_position;
  61107. t1.expectChar$1(36);
  61108. $name = _this.identifier$1$normalize(true);
  61109. _this.whitespace$0();
  61110. if (t1.scanChar$1(58)) {
  61111. _this.whitespace$0();
  61112. defaultValue = _this.expressionUntilComma$0();
  61113. } else {
  61114. if (t1.scanChar$1(46)) {
  61115. t1.expectChar$1(46);
  61116. t1.expectChar$1(46);
  61117. _this.whitespace$0();
  61118. restArgument = $name;
  61119. break;
  61120. }
  61121. defaultValue = null;
  61122. }
  61123. endPosition = t1._string_scanner$_position;
  61124. t4 = t1._sourceFile;
  61125. t5 = new A._FileSpan(t4, t3, endPosition);
  61126. t5._FileSpan$3(t4, t3, endPosition);
  61127. $arguments.push(new A.Argument($name, defaultValue, t5));
  61128. if (!named.add$1(0, $name))
  61129. _this.error$2(0, "Duplicate argument.", B.JSArray_methods.get$last($arguments).span);
  61130. if (!t1.scanChar$1(44))
  61131. break;
  61132. _this.whitespace$0();
  61133. }
  61134. t1.expectChar$1(41);
  61135. t1 = t1.spanFrom$1(new A._SpanScannerState(t1, t2));
  61136. return new A.ArgumentDeclaration(A.List_List$unmodifiable($arguments, type$.Argument), restArgument, t1);
  61137. },
  61138. _argumentInvocation$2$allowEmptySecondArg$mixin(allowEmptySecondArg, mixin) {
  61139. var positional, t3, t4, named, t5, rest, keywordRest, expression, t6, t7, result, _this = this,
  61140. t1 = _this.scanner,
  61141. t2 = t1._string_scanner$_position;
  61142. t1.expectChar$1(40);
  61143. _this.whitespace$0();
  61144. positional = A._setArrayType([], type$.JSArray_Expression);
  61145. t3 = type$.String;
  61146. t4 = type$.Expression;
  61147. named = A.LinkedHashMap_LinkedHashMap$_empty(t3, t4);
  61148. for (t5 = !mixin, rest = null; keywordRest = null, _this._lookingAtExpression$0();) {
  61149. expression = _this.expressionUntilComma$1$singleEquals(t5);
  61150. _this.whitespace$0();
  61151. if (expression instanceof A.VariableExpression && t1.scanChar$1(58)) {
  61152. _this.whitespace$0();
  61153. t6 = expression.name;
  61154. if (named.containsKey$1(t6))
  61155. _this.error$2(0, "Duplicate argument.", expression.span);
  61156. named.$indexSet(0, t6, _this.expressionUntilComma$1$singleEquals(t5));
  61157. } else if (t1.scanChar$1(46)) {
  61158. t1.expectChar$1(46);
  61159. t1.expectChar$1(46);
  61160. if (rest != null) {
  61161. _this.whitespace$0();
  61162. keywordRest = expression;
  61163. break;
  61164. }
  61165. rest = expression;
  61166. } else if (named.__js_helper$_length !== 0)
  61167. _this.error$2(0, string$.Positi, expression.get$span(expression));
  61168. else
  61169. positional.push(expression);
  61170. _this.whitespace$0();
  61171. if (!t1.scanChar$1(44))
  61172. break;
  61173. _this.whitespace$0();
  61174. if (allowEmptySecondArg && positional.length === 1 && named.__js_helper$_length === 0 && rest == null && t1.peekChar$0() === 41) {
  61175. t5 = t1._sourceFile;
  61176. t6 = t1._string_scanner$_position;
  61177. new A.FileLocation(t5, t6).FileLocation$_$2(t5, t6);
  61178. t7 = new A._FileSpan(t5, t6, t6);
  61179. t7._FileSpan$3(t5, t6, t6);
  61180. result = A.List_List$from([""], false, type$.Object);
  61181. result.fixed$length = Array;
  61182. result.immutable$list = Array;
  61183. positional.push(new A.StringExpression(new A.Interpolation(result, B.List_null, t7), false));
  61184. break;
  61185. }
  61186. }
  61187. t1.expectChar$1(41);
  61188. t1 = t1.spanFrom$1(new A._SpanScannerState(t1, t2));
  61189. return new A.ArgumentInvocation(A.List_List$unmodifiable(positional, t4), A.ConstantMap_ConstantMap$from(named, t3, t4), rest, keywordRest, t1);
  61190. },
  61191. _argumentInvocation$0() {
  61192. return this._argumentInvocation$2$allowEmptySecondArg$mixin(false, false);
  61193. },
  61194. _argumentInvocation$1$allowEmptySecondArg(allowEmptySecondArg) {
  61195. return this._argumentInvocation$2$allowEmptySecondArg$mixin(allowEmptySecondArg, false);
  61196. },
  61197. _argumentInvocation$1$mixin(mixin) {
  61198. return this._argumentInvocation$2$allowEmptySecondArg$mixin(false, mixin);
  61199. },
  61200. _expression$3$bracketList$singleEquals$until(bracketList, singleEquals, until) {
  61201. var t2, beforeBracket, start, wasInExpression, wasInParentheses, resetState, resolveOneOperation, resolveOperations, addSingleExpression, addOperator, resolveSpaceExpressions, t3, _3_0, _1_0, t4, _3_28, _2_0, _3_32, _3_40, commaExpressions, spaceExpressions, singleExpression, _this = this,
  61202. _s20_ = "Expected expression.",
  61203. _box_0 = {},
  61204. t1 = until != null;
  61205. if (t1 && until.call$0())
  61206. _this.scanner.error$1(0, _s20_);
  61207. if (bracketList) {
  61208. t2 = _this.scanner;
  61209. beforeBracket = new A._SpanScannerState(t2, t2._string_scanner$_position);
  61210. t2.expectChar$1(91);
  61211. _this.whitespace$0();
  61212. if (t2.scanChar$1(93)) {
  61213. t1 = A._setArrayType([], type$.JSArray_Expression);
  61214. t2 = t2.spanFrom$1(beforeBracket);
  61215. return new A.ListExpression(A.List_List$unmodifiable(t1, type$.Expression), B.ListSeparator_undecided_null_undecided, true, t2);
  61216. }
  61217. } else
  61218. beforeBracket = null;
  61219. t2 = _this.scanner;
  61220. start = new A._SpanScannerState(t2, t2._string_scanner$_position);
  61221. wasInExpression = _this._inExpression;
  61222. wasInParentheses = _this._inParentheses;
  61223. _this._inExpression = true;
  61224. _box_0.operands_ = _box_0.operators_ = _box_0.spaceExpressions_ = _box_0.commaExpressions_ = null;
  61225. _box_0.allowSlash = true;
  61226. _box_0.singleExpression_ = _this._singleExpression$0();
  61227. resetState = new A.StylesheetParser__expression_resetState(_box_0, _this, start);
  61228. resolveOneOperation = new A.StylesheetParser__expression_resolveOneOperation(_box_0, _this);
  61229. resolveOperations = new A.StylesheetParser__expression_resolveOperations(_box_0, resolveOneOperation);
  61230. addSingleExpression = new A.StylesheetParser__expression_addSingleExpression(_box_0, _this, resetState, resolveOperations);
  61231. addOperator = new A.StylesheetParser__expression_addOperator(_box_0, _this, resolveOneOperation);
  61232. resolveSpaceExpressions = new A.StylesheetParser__expression_resolveSpaceExpressions(_box_0, _this, resolveOperations);
  61233. for (t3 = type$.JSArray_Expression; true;) {
  61234. _this.whitespace$0();
  61235. if (t1 && until.call$0())
  61236. break;
  61237. _3_0 = t2.peekChar$0();
  61238. if (_3_0 == null)
  61239. break;
  61240. if (40 === _3_0) {
  61241. addSingleExpression.call$1(_this.parentheses$0());
  61242. continue;
  61243. }
  61244. if (91 === _3_0) {
  61245. addSingleExpression.call$1(_this._expression$1$bracketList(true));
  61246. continue;
  61247. }
  61248. if (36 === _3_0) {
  61249. addSingleExpression.call$1(_this._variable$0());
  61250. continue;
  61251. }
  61252. if (38 === _3_0) {
  61253. addSingleExpression.call$1(_this._selector$0());
  61254. continue;
  61255. }
  61256. if (39 === _3_0 || 34 === _3_0) {
  61257. addSingleExpression.call$1(_this.interpolatedString$0());
  61258. continue;
  61259. }
  61260. if (35 === _3_0) {
  61261. addSingleExpression.call$1(_this._hashExpression$0());
  61262. continue;
  61263. }
  61264. if (61 === _3_0) {
  61265. t2.readChar$0();
  61266. if (singleEquals && t2.peekChar$0() !== 61)
  61267. addOperator.call$1(B.BinaryOperator_wdM);
  61268. else {
  61269. t2.expectChar$1(61);
  61270. addOperator.call$1(B.BinaryOperator_g8k);
  61271. }
  61272. continue;
  61273. }
  61274. if (33 === _3_0) {
  61275. $label0$1: {
  61276. _1_0 = t2.peekChar$1(1);
  61277. if (61 === _1_0) {
  61278. t2.readChar$0();
  61279. t2.readChar$0();
  61280. addOperator.call$1(B.BinaryOperator_icU);
  61281. break $label0$1;
  61282. }
  61283. t4 = true;
  61284. if (_1_0 != null)
  61285. if (105 !== _1_0)
  61286. if (73 !== _1_0)
  61287. t4 = _1_0 === 32 || _1_0 === 9 || _1_0 === 10 || _1_0 === 13 || _1_0 === 12;
  61288. if (t4) {
  61289. addSingleExpression.call$1(_this._importantExpression$0());
  61290. break $label0$1;
  61291. }
  61292. break;
  61293. }
  61294. continue;
  61295. }
  61296. if (60 === _3_0) {
  61297. t2.readChar$0();
  61298. addOperator.call$1(t2.scanChar$1(61) ? B.BinaryOperator_SPQ : B.BinaryOperator_miq);
  61299. continue;
  61300. }
  61301. if (62 === _3_0) {
  61302. t2.readChar$0();
  61303. addOperator.call$1(t2.scanChar$1(61) ? B.BinaryOperator_oEm : B.BinaryOperator_bEa);
  61304. continue;
  61305. }
  61306. if (42 === _3_0) {
  61307. t2.readChar$0();
  61308. addOperator.call$1(B.BinaryOperator_2No);
  61309. continue;
  61310. }
  61311. _3_28 = 43 === _3_0;
  61312. if (_3_28 && _box_0.singleExpression_ == null) {
  61313. addSingleExpression.call$1(_this._unaryOperation$0());
  61314. continue;
  61315. }
  61316. if (_3_28) {
  61317. t2.readChar$0();
  61318. addOperator.call$1(B.BinaryOperator_u15);
  61319. continue;
  61320. }
  61321. if (45 === _3_0) {
  61322. _2_0 = t2.peekChar$1(1);
  61323. if (A._isInt(_2_0) && _2_0 >= 48 && _2_0 <= 57 || 46 === _2_0)
  61324. if (_box_0.singleExpression_ != null) {
  61325. t4 = t2.peekChar$1(-1);
  61326. t4 = t4 === 32 || t4 === 9 || t4 === 10 || t4 === 13 || t4 === 12;
  61327. } else
  61328. t4 = true;
  61329. else
  61330. t4 = false;
  61331. if (t4)
  61332. addSingleExpression.call$1(_this._number$0());
  61333. else if (_this._lookingAtInterpolatedIdentifier$0())
  61334. addSingleExpression.call$1(_this.identifierLike$0());
  61335. else if (_box_0.singleExpression_ == null)
  61336. addSingleExpression.call$1(_this._unaryOperation$0());
  61337. else {
  61338. t2.readChar$0();
  61339. addOperator.call$1(B.BinaryOperator_SjO);
  61340. }
  61341. continue;
  61342. }
  61343. _3_32 = 47 === _3_0;
  61344. if (_3_32 && _box_0.singleExpression_ == null) {
  61345. addSingleExpression.call$1(_this._unaryOperation$0());
  61346. continue;
  61347. }
  61348. if (_3_32) {
  61349. t2.readChar$0();
  61350. addOperator.call$1(B.BinaryOperator_U77);
  61351. continue;
  61352. }
  61353. if (37 === _3_0) {
  61354. t2.readChar$0();
  61355. addOperator.call$1(B.BinaryOperator_KNx);
  61356. continue;
  61357. }
  61358. if (_3_0 >= 48 && _3_0 <= 57) {
  61359. addSingleExpression.call$1(_this._number$0());
  61360. continue;
  61361. }
  61362. _3_40 = 46 === _3_0;
  61363. if (_3_40 && t2.peekChar$1(1) === 46)
  61364. break;
  61365. if (_3_40) {
  61366. addSingleExpression.call$1(_this._number$0());
  61367. continue;
  61368. }
  61369. if (97 === _3_0 && !_this.get$plainCss() && _this.scanIdentifier$1("and")) {
  61370. addOperator.call$1(B.BinaryOperator_eDt);
  61371. continue;
  61372. }
  61373. if (111 === _3_0 && !_this.get$plainCss() && _this.scanIdentifier$1("or")) {
  61374. addOperator.call$1(B.BinaryOperator_qNM);
  61375. continue;
  61376. }
  61377. if ((117 === _3_0 || 85 === _3_0) && t2.peekChar$1(1) === 43) {
  61378. addSingleExpression.call$1(_this._unicodeRange$0());
  61379. continue;
  61380. }
  61381. if (!(_3_0 >= 97 && _3_0 <= 122))
  61382. t4 = _3_0 >= 65 && _3_0 <= 90 || 95 === _3_0 || 92 === _3_0 || _3_0 >= 128;
  61383. else
  61384. t4 = true;
  61385. if (t4) {
  61386. addSingleExpression.call$1(_this.identifierLike$0());
  61387. continue;
  61388. }
  61389. if (44 === _3_0) {
  61390. if (_this._inParentheses) {
  61391. _this._inParentheses = false;
  61392. if (_box_0.allowSlash) {
  61393. resetState.call$0();
  61394. continue;
  61395. }
  61396. }
  61397. commaExpressions = _box_0.commaExpressions_;
  61398. if (commaExpressions == null)
  61399. commaExpressions = _box_0.commaExpressions_ = A._setArrayType([], t3);
  61400. if (_box_0.singleExpression_ == null)
  61401. t2.error$1(0, _s20_);
  61402. resolveSpaceExpressions.call$0();
  61403. t4 = _box_0.singleExpression_;
  61404. t4.toString;
  61405. commaExpressions.push(t4);
  61406. t2.readChar$0();
  61407. _box_0.allowSlash = true;
  61408. _box_0.singleExpression_ = null;
  61409. continue;
  61410. }
  61411. break;
  61412. }
  61413. if (bracketList)
  61414. t2.expectChar$1(93);
  61415. commaExpressions = _box_0.commaExpressions_;
  61416. spaceExpressions = _box_0.spaceExpressions_;
  61417. if (commaExpressions != null) {
  61418. resolveSpaceExpressions.call$0();
  61419. _this._inParentheses = wasInParentheses;
  61420. singleExpression = _box_0.singleExpression_;
  61421. if (singleExpression != null)
  61422. commaExpressions.push(singleExpression);
  61423. _this._inExpression = wasInExpression;
  61424. t1 = t2.spanFrom$1(beforeBracket == null ? start : beforeBracket);
  61425. return new A.ListExpression(A.List_List$unmodifiable(commaExpressions, type$.Expression), B.ListSeparator_ECn, bracketList, t1);
  61426. } else if (bracketList && spaceExpressions != null) {
  61427. resolveOperations.call$0();
  61428. _this._inExpression = wasInExpression;
  61429. t1 = _box_0.singleExpression_;
  61430. t1.toString;
  61431. spaceExpressions.push(t1);
  61432. beforeBracket.toString;
  61433. t2 = t2.spanFrom$1(beforeBracket);
  61434. return new A.ListExpression(A.List_List$unmodifiable(spaceExpressions, type$.Expression), B.ListSeparator_nbm, true, t2);
  61435. } else {
  61436. resolveSpaceExpressions.call$0();
  61437. if (bracketList) {
  61438. t1 = _box_0.singleExpression_;
  61439. t1.toString;
  61440. t3 = A._setArrayType([t1], t3);
  61441. beforeBracket.toString;
  61442. t2 = t2.spanFrom$1(beforeBracket);
  61443. _box_0.singleExpression_ = new A.ListExpression(A.List_List$unmodifiable(t3, type$.Expression), B.ListSeparator_undecided_null_undecided, true, t2);
  61444. }
  61445. _this._inExpression = wasInExpression;
  61446. t1 = _box_0.singleExpression_;
  61447. t1.toString;
  61448. return t1;
  61449. }
  61450. },
  61451. _expression$0() {
  61452. return this._expression$3$bracketList$singleEquals$until(false, false, null);
  61453. },
  61454. _expression$2$singleEquals$until(singleEquals, until) {
  61455. return this._expression$3$bracketList$singleEquals$until(false, singleEquals, until);
  61456. },
  61457. _expression$1$bracketList(bracketList) {
  61458. return this._expression$3$bracketList$singleEquals$until(bracketList, false, null);
  61459. },
  61460. _expression$1$until(until) {
  61461. return this._expression$3$bracketList$singleEquals$until(false, false, until);
  61462. },
  61463. expressionUntilComma$1$singleEquals(singleEquals) {
  61464. return this._expression$2$singleEquals$until(singleEquals, new A.StylesheetParser_expressionUntilComma_closure(this));
  61465. },
  61466. expressionUntilComma$0() {
  61467. return this.expressionUntilComma$1$singleEquals(false);
  61468. },
  61469. _isSlashOperand$1(expression) {
  61470. var t1 = true;
  61471. if (!(expression instanceof A.NumberExpression))
  61472. if (!(expression instanceof A.FunctionExpression))
  61473. t1 = expression instanceof A.BinaryOperationExpression && expression.allowsSlash;
  61474. return t1;
  61475. },
  61476. _singleExpression$0() {
  61477. var next, t2, _this = this,
  61478. _s20_ = "Expected expression.",
  61479. t1 = _this.scanner,
  61480. _0_0 = t1.peekChar$0();
  61481. $label0$0: {
  61482. if (_0_0 == null)
  61483. t1.error$1(0, _s20_);
  61484. if (40 === _0_0) {
  61485. t1 = _this.parentheses$0();
  61486. break $label0$0;
  61487. }
  61488. if (47 === _0_0) {
  61489. t1 = _this._unaryOperation$0();
  61490. break $label0$0;
  61491. }
  61492. if (46 === _0_0) {
  61493. t1 = _this._number$0();
  61494. break $label0$0;
  61495. }
  61496. if (91 === _0_0) {
  61497. t1 = _this._expression$1$bracketList(true);
  61498. break $label0$0;
  61499. }
  61500. if (36 === _0_0) {
  61501. t1 = _this._variable$0();
  61502. break $label0$0;
  61503. }
  61504. if (38 === _0_0) {
  61505. t1 = _this._selector$0();
  61506. break $label0$0;
  61507. }
  61508. if (39 === _0_0 || 34 === _0_0) {
  61509. t1 = _this.interpolatedString$0();
  61510. break $label0$0;
  61511. }
  61512. if (35 === _0_0) {
  61513. t1 = _this._hashExpression$0();
  61514. break $label0$0;
  61515. }
  61516. if (43 === _0_0) {
  61517. next = t1.peekChar$1(1);
  61518. t1 = next != null && next >= 48 && next <= 57 || next === 46 ? _this._number$0() : _this._unaryOperation$0();
  61519. break $label0$0;
  61520. }
  61521. if (45 === _0_0) {
  61522. t1 = _this._minusExpression$0();
  61523. break $label0$0;
  61524. }
  61525. if (33 === _0_0) {
  61526. t1 = _this._importantExpression$0();
  61527. break $label0$0;
  61528. }
  61529. if ((117 === _0_0 || 85 === _0_0) && t1.peekChar$1(1) === 43) {
  61530. t1 = _this._unicodeRange$0();
  61531. break $label0$0;
  61532. }
  61533. if (_0_0 >= 48 && _0_0 <= 57) {
  61534. t1 = _this._number$0();
  61535. break $label0$0;
  61536. }
  61537. if (!(_0_0 >= 97 && _0_0 <= 122))
  61538. t2 = _0_0 >= 65 && _0_0 <= 90 || 95 === _0_0 || 92 === _0_0 || _0_0 >= 128;
  61539. else
  61540. t2 = true;
  61541. if (t2) {
  61542. t1 = _this.identifierLike$0();
  61543. break $label0$0;
  61544. }
  61545. t1 = t1.error$1(0, _s20_);
  61546. }
  61547. return t1;
  61548. },
  61549. parentheses$0() {
  61550. var start, first, expressions, t1, t2, _this = this,
  61551. wasInParentheses = _this._inParentheses;
  61552. _this._inParentheses = true;
  61553. try {
  61554. t1 = _this.scanner;
  61555. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  61556. t1.expectChar$1(40);
  61557. _this.whitespace$0();
  61558. if (!_this._lookingAtExpression$0()) {
  61559. t1.expectChar$1(41);
  61560. t2 = A._setArrayType([], type$.JSArray_Expression);
  61561. t1 = t1.spanFrom$1(start);
  61562. t2 = A.List_List$unmodifiable(t2, type$.Expression);
  61563. return new A.ListExpression(t2, B.ListSeparator_undecided_null_undecided, false, t1);
  61564. }
  61565. first = _this.expressionUntilComma$0();
  61566. if (t1.scanChar$1(58)) {
  61567. _this.whitespace$0();
  61568. t1 = _this._stylesheet$_map$2(first, start);
  61569. return t1;
  61570. }
  61571. if (!t1.scanChar$1(44)) {
  61572. t1.expectChar$1(41);
  61573. t1 = t1.spanFrom$1(start);
  61574. return new A.ParenthesizedExpression(first, t1);
  61575. }
  61576. _this.whitespace$0();
  61577. expressions = A._setArrayType([first], type$.JSArray_Expression);
  61578. for (; true;) {
  61579. if (!_this._lookingAtExpression$0())
  61580. break;
  61581. J.add$1$ax(expressions, _this.expressionUntilComma$0());
  61582. if (!t1.scanChar$1(44))
  61583. break;
  61584. _this.whitespace$0();
  61585. }
  61586. t1.expectChar$1(41);
  61587. t1 = t1.spanFrom$1(start);
  61588. t2 = A.List_List$unmodifiable(expressions, type$.Expression);
  61589. return new A.ListExpression(t2, B.ListSeparator_ECn, false, t1);
  61590. } finally {
  61591. _this._inParentheses = wasInParentheses;
  61592. }
  61593. },
  61594. _stylesheet$_map$2(first, start) {
  61595. var t1, key, _this = this,
  61596. pairs = A._setArrayType([new A._Record_2(first, _this.expressionUntilComma$0())], type$.JSArray_Record_2_Expression_and_Expression);
  61597. for (t1 = _this.scanner; t1.scanChar$1(44);) {
  61598. _this.whitespace$0();
  61599. if (!_this._lookingAtExpression$0())
  61600. break;
  61601. key = _this.expressionUntilComma$0();
  61602. t1.expectChar$1(58);
  61603. _this.whitespace$0();
  61604. pairs.push(new A._Record_2(key, _this.expressionUntilComma$0()));
  61605. }
  61606. t1.expectChar$1(41);
  61607. t1 = t1.spanFrom$1(start);
  61608. return new A.MapExpression(A.List_List$unmodifiable(pairs, type$.Record_2_Expression_and_Expression), t1);
  61609. },
  61610. _hashExpression$0() {
  61611. var start, t2, identifier, buffer, t3, _this = this,
  61612. t1 = _this.scanner;
  61613. if (t1.peekChar$1(1) === 123)
  61614. return _this.identifierLike$0();
  61615. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  61616. t1.expectChar$1(35);
  61617. t2 = t1.peekChar$0();
  61618. if (t2 == null)
  61619. t2 = null;
  61620. else
  61621. t2 = t2 >= 48 && t2 <= 57;
  61622. if (t2 === true)
  61623. return new A.ColorExpression(_this._hexColorContents$1(start), t1.spanFrom$1(start));
  61624. t2 = t1._string_scanner$_position;
  61625. identifier = _this.interpolatedIdentifier$0();
  61626. if (_this._isHexColor$1(identifier)) {
  61627. t1.set$state(new A._SpanScannerState(t1, t2));
  61628. return new A.ColorExpression(_this._hexColorContents$1(start), t1.spanFrom$1(start));
  61629. }
  61630. t2 = new A.StringBuffer("");
  61631. buffer = new A.InterpolationBuffer(t2, A._setArrayType([], type$.JSArray_Object), A._setArrayType([], type$.JSArray_nullable_FileSpan));
  61632. t3 = A.Primitives_stringFromCharCode(35);
  61633. t2._contents += t3;
  61634. buffer.addInterpolation$1(identifier);
  61635. return new A.StringExpression(buffer.interpolation$1(t1.spanFrom$1(start)), false);
  61636. },
  61637. _hexColorContents$1(start) {
  61638. var red, green, blue, alpha, digit4, t2, t3, t4, _this = this,
  61639. digit1 = _this._hexDigit$0(),
  61640. digit2 = _this._hexDigit$0(),
  61641. digit3 = _this._hexDigit$0(),
  61642. t1 = _this.scanner,
  61643. $self = t1.peekChar$0();
  61644. if (!($self != null && A.CharacterExtension_get_isHex($self))) {
  61645. red = (digit1 << 4 >>> 0) + digit1;
  61646. green = (digit2 << 4 >>> 0) + digit2;
  61647. blue = (digit3 << 4 >>> 0) + digit3;
  61648. alpha = null;
  61649. } else {
  61650. digit4 = _this._hexDigit$0();
  61651. $self = t1.peekChar$0();
  61652. t2 = $self != null && A.CharacterExtension_get_isHex($self);
  61653. t3 = digit1 << 4 >>> 0;
  61654. t4 = digit3 << 4 >>> 0;
  61655. if (!t2) {
  61656. red = t3 + digit1;
  61657. green = (digit2 << 4 >>> 0) + digit2;
  61658. blue = t4 + digit3;
  61659. alpha = ((digit4 << 4 >>> 0) + digit4) / 255;
  61660. } else {
  61661. red = t3 + digit2;
  61662. green = t4 + digit4;
  61663. blue = (_this._hexDigit$0() << 4 >>> 0) + _this._hexDigit$0();
  61664. $self = t1.peekChar$0();
  61665. alpha = $self != null && A.CharacterExtension_get_isHex($self) ? ((_this._hexDigit$0() << 4 >>> 0) + _this._hexDigit$0()) / 255 : null;
  61666. }
  61667. }
  61668. t2 = alpha == null;
  61669. t3 = t2 ? 1 : alpha;
  61670. return A.SassColor_SassColor$rgbInternal(red, green, blue, t3, t2 ? new A.SpanColorFormat(t1.spanFrom$1(start)) : null);
  61671. },
  61672. _isHexColor$1(interpolation) {
  61673. var _0_2, t1,
  61674. plain = interpolation.get$asPlain();
  61675. if (typeof plain == "string") {
  61676. _0_2 = plain.length;
  61677. t1 = true;
  61678. if (3 !== _0_2)
  61679. if (4 !== _0_2)
  61680. if (6 !== _0_2)
  61681. t1 = 8 === _0_2;
  61682. } else
  61683. t1 = false;
  61684. if (t1) {
  61685. t1 = new A.CodeUnits(plain);
  61686. return t1.every$1(t1, new A.StylesheetParser__isHexColor_closure());
  61687. } else
  61688. return false;
  61689. },
  61690. _hexDigit$0() {
  61691. var t1 = this.scanner,
  61692. t2 = t1.peekChar$0();
  61693. t2 = t2 == null ? null : A.CharacterExtension_get_isHex(t2);
  61694. return t2 === true ? A.asHex(t1.readChar$0()) : t1.error$1(0, "Expected hex digit.");
  61695. },
  61696. _minusExpression$0() {
  61697. var _this = this,
  61698. _0_0 = _this.scanner.peekChar$1(1);
  61699. if (A._isInt(_0_0) && _0_0 >= 48 && _0_0 <= 57 || 46 === _0_0)
  61700. return _this._number$0();
  61701. if (_this._lookingAtInterpolatedIdentifier$0())
  61702. return _this.identifierLike$0();
  61703. return _this._unaryOperation$0();
  61704. },
  61705. _importantExpression$0() {
  61706. var t1 = this.scanner,
  61707. t2 = t1._string_scanner$_position;
  61708. t1.readChar$0();
  61709. this.whitespace$0();
  61710. this.expectIdentifier$1("important");
  61711. t2 = t1.spanFrom$1(new A._SpanScannerState(t1, t2));
  61712. return new A.StringExpression(new A.Interpolation(A.List_List$unmodifiable(["!important"], type$.Object), B.List_null, t2), false);
  61713. },
  61714. _unaryOperation$0() {
  61715. var _this = this,
  61716. t1 = _this.scanner,
  61717. t2 = t1._string_scanner$_position,
  61718. operator = _this._unaryOperatorFor$1(t1.readChar$0());
  61719. if (operator == null)
  61720. t1.error$2$position(0, "Expected unary operator.", t1._string_scanner$_position - 1);
  61721. else if (_this.get$plainCss() && operator !== B.UnaryOperator_SJr)
  61722. t1.error$3$length$position(0, "Operators aren't allowed in plain CSS.", 1, t1._string_scanner$_position - 1);
  61723. _this.whitespace$0();
  61724. return new A.UnaryOperationExpression(operator, _this._singleExpression$0(), t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  61725. },
  61726. _unaryOperatorFor$1(character) {
  61727. var t1;
  61728. $label0$0: {
  61729. if (43 === character) {
  61730. t1 = B.UnaryOperator_cLp;
  61731. break $label0$0;
  61732. }
  61733. if (45 === character) {
  61734. t1 = B.UnaryOperator_AiQ;
  61735. break $label0$0;
  61736. }
  61737. if (47 === character) {
  61738. t1 = B.UnaryOperator_SJr;
  61739. break $label0$0;
  61740. }
  61741. t1 = null;
  61742. break $label0$0;
  61743. }
  61744. return t1;
  61745. },
  61746. _number$0() {
  61747. var number, unit, _this = this,
  61748. t1 = _this.scanner,
  61749. t2 = t1._string_scanner$_position,
  61750. first = t1.peekChar$0(),
  61751. t3 = first !== 43;
  61752. if (!t3 || first === 45)
  61753. t1.readChar$0();
  61754. if (t1.peekChar$0() !== 46)
  61755. _this._consumeNaturalNumber$0();
  61756. _this._tryDecimal$1$allowTrailingDot(t1._string_scanner$_position !== t2 && t3 && first !== 45);
  61757. _this._tryExponent$0();
  61758. number = A.double_parse(t1.substring$1(0, t2));
  61759. if (t1.scanChar$1(37))
  61760. unit = "%";
  61761. else {
  61762. if (_this.lookingAtIdentifier$0())
  61763. t3 = t1.peekChar$0() !== 45 || t1.peekChar$1(1) !== 45;
  61764. else
  61765. t3 = false;
  61766. unit = t3 ? _this.identifier$1$unit(true) : null;
  61767. }
  61768. return new A.NumberExpression(number, unit, t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  61769. },
  61770. _consumeNaturalNumber$0() {
  61771. var $self,
  61772. t1 = this.scanner,
  61773. t2 = t1.readChar$0();
  61774. if (!(t2 >= 48 && t2 <= 57))
  61775. t1.error$2$position(0, "Expected digit.", t1._string_scanner$_position - 1);
  61776. while (true) {
  61777. $self = t1.peekChar$0();
  61778. if (!($self != null && $self >= 48 && $self <= 57))
  61779. break;
  61780. t1.readChar$0();
  61781. }
  61782. },
  61783. _tryDecimal$1$allowTrailingDot(allowTrailingDot) {
  61784. var $self,
  61785. t1 = this.scanner;
  61786. if (t1.peekChar$0() !== 46)
  61787. return;
  61788. $self = t1.peekChar$1(1);
  61789. if (!($self != null && $self >= 48 && $self <= 57)) {
  61790. if (allowTrailingDot)
  61791. return;
  61792. t1.error$2$position(0, "Expected digit.", t1._string_scanner$_position + 1);
  61793. }
  61794. t1.readChar$0();
  61795. while (true) {
  61796. $self = t1.peekChar$0();
  61797. if (!($self != null && $self >= 48 && $self <= 57))
  61798. break;
  61799. t1.readChar$0();
  61800. }
  61801. },
  61802. _tryExponent$0() {
  61803. var next, $self,
  61804. t1 = this.scanner,
  61805. first = t1.peekChar$0();
  61806. if (first !== 101 && first !== 69)
  61807. return;
  61808. next = t1.peekChar$1(1);
  61809. if (!(next != null && next >= 48 && next <= 57) && next !== 45 && next !== 43)
  61810. return;
  61811. t1.readChar$0();
  61812. if (43 === next || 45 === next)
  61813. t1.readChar$0();
  61814. $self = t1.peekChar$0();
  61815. if (!($self != null && $self >= 48 && $self <= 57))
  61816. t1.error$1(0, "Expected digit.");
  61817. while (true) {
  61818. $self = t1.peekChar$0();
  61819. if (!($self != null && $self >= 48 && $self <= 57))
  61820. break;
  61821. t1.readChar$0();
  61822. }
  61823. },
  61824. _unicodeRange$0() {
  61825. var firstRangeLength, hasQuestionMark, t2, secondRangeLength, _this = this,
  61826. _s26_ = "Expected at most 6 digits.",
  61827. t1 = _this.scanner,
  61828. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  61829. _this.expectIdentChar$1(117);
  61830. t1.expectChar$1(43);
  61831. for (firstRangeLength = 0; _this.scanCharIf$1(new A.StylesheetParser__unicodeRange_closure());)
  61832. ++firstRangeLength;
  61833. for (hasQuestionMark = false; t1.scanChar$1(63); hasQuestionMark = true)
  61834. ++firstRangeLength;
  61835. if (firstRangeLength === 0)
  61836. t1.error$1(0, 'Expected hex digit or "?".');
  61837. else if (firstRangeLength > 6)
  61838. _this.error$2(0, _s26_, t1.spanFrom$1(start));
  61839. else if (hasQuestionMark) {
  61840. t2 = t1.substring$1(0, start.position);
  61841. t1 = t1.spanFrom$1(start);
  61842. return new A.StringExpression(new A.Interpolation(A.List_List$unmodifiable([t2], type$.Object), B.List_null, t1), false);
  61843. }
  61844. if (t1.scanChar$1(45)) {
  61845. t2 = t1._string_scanner$_position;
  61846. for (secondRangeLength = 0; _this.scanCharIf$1(new A.StylesheetParser__unicodeRange_closure0());)
  61847. ++secondRangeLength;
  61848. if (secondRangeLength === 0)
  61849. t1.error$1(0, "Expected hex digit.");
  61850. else if (secondRangeLength > 6)
  61851. _this.error$2(0, _s26_, t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  61852. }
  61853. if (_this._lookingAtInterpolatedIdentifierBody$0())
  61854. t1.error$1(0, "Expected end of identifier.");
  61855. t2 = t1.substring$1(0, start.position);
  61856. t1 = t1.spanFrom$1(start);
  61857. return new A.StringExpression(new A.Interpolation(A.List_List$unmodifiable([t2], type$.Object), B.List_null, t1), false);
  61858. },
  61859. _variable$0() {
  61860. var _this = this,
  61861. t1 = _this.scanner,
  61862. start = new A._SpanScannerState(t1, t1._string_scanner$_position),
  61863. $name = _this.variableName$0();
  61864. if (_this.get$plainCss())
  61865. _this.error$2(0, string$.Sassx20v, t1.spanFrom$1(start));
  61866. return new A.VariableExpression(null, $name, t1.spanFrom$1(start));
  61867. },
  61868. _selector$0() {
  61869. var t1, start, _this = this;
  61870. if (_this.get$plainCss())
  61871. _this.scanner.error$2$length(0, string$.The_pa, 1);
  61872. t1 = _this.scanner;
  61873. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  61874. t1.expectChar$1(38);
  61875. if (t1.scanChar$1(38)) {
  61876. _this.warnings.push(new A._Record_3_deprecation_message_span(null, string$.In_Sas, t1.spanFrom$1(start)));
  61877. t1.set$position(t1._string_scanner$_position - 1);
  61878. }
  61879. return new A.SelectorExpression(t1.spanFrom$1(start));
  61880. },
  61881. interpolatedString$0() {
  61882. var t3, t4, t5, buffer, _1_0, second, t6, _0_0,
  61883. t1 = this.scanner,
  61884. t2 = t1._string_scanner$_position,
  61885. quote = t1.readChar$0();
  61886. if (quote !== 39 && quote !== 34)
  61887. t1.error$2$position(0, "Expected string.", t2);
  61888. t3 = new A.StringBuffer("");
  61889. t4 = A._setArrayType([], type$.JSArray_Object);
  61890. t5 = A._setArrayType([], type$.JSArray_nullable_FileSpan);
  61891. buffer = new A.InterpolationBuffer(t3, t4, t5);
  61892. for (; true;) {
  61893. _1_0 = t1.peekChar$0();
  61894. if (_1_0 === quote) {
  61895. t1.readChar$0();
  61896. break;
  61897. }
  61898. if (_1_0 == null || _1_0 === 10 || _1_0 === 13 || _1_0 === 12)
  61899. t1.error$1(0, "Expected " + A.Primitives_stringFromCharCode(quote) + ".");
  61900. if (92 === _1_0) {
  61901. second = t1.peekChar$1(1);
  61902. if (second === 10 || second === 13 || second === 12) {
  61903. t1.readChar$0();
  61904. t1.readChar$0();
  61905. if (second === 13)
  61906. t1.scanChar$1(10);
  61907. } else {
  61908. t6 = A.Primitives_stringFromCharCode(A.consumeEscapedCharacter(t1));
  61909. t3._contents += t6;
  61910. }
  61911. continue;
  61912. }
  61913. if (35 === _1_0 && t1.peekChar$1(1) === 123) {
  61914. _0_0 = this.singleInterpolation$0();
  61915. buffer._flushText$0();
  61916. t4.push(_0_0._0);
  61917. t5.push(_0_0._1);
  61918. continue;
  61919. }
  61920. t6 = A.Primitives_stringFromCharCode(t1.readChar$0());
  61921. t3._contents += t6;
  61922. }
  61923. return new A.StringExpression(buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2))), true);
  61924. },
  61925. identifierLike$0() {
  61926. var invocation, expression, _0_0, t3, t4, t5, _1_0, _2_0, _2_2, _2_4, _this = this,
  61927. t1 = _this.scanner,
  61928. start = new A._SpanScannerState(t1, t1._string_scanner$_position),
  61929. identifier = _this.interpolatedIdentifier$0(),
  61930. plain = identifier.get$asPlain(),
  61931. lower = A._Cell$(),
  61932. t2 = plain != null;
  61933. if (t2) {
  61934. if (plain === "if" && t1.peekChar$0() === 40) {
  61935. invocation = _this._argumentInvocation$0();
  61936. return new A.IfExpression(invocation, identifier.span.expand$1(0, invocation.span));
  61937. } else if (plain === "not") {
  61938. _this.whitespace$0();
  61939. expression = _this._singleExpression$0();
  61940. return new A.UnaryOperationExpression(B.UnaryOperator_not_not_not, expression, identifier.span.expand$1(0, expression.get$span(expression)));
  61941. }
  61942. lower.__late_helper$_value = plain.toLowerCase();
  61943. if (t1.peekChar$0() !== 40) {
  61944. switch (plain) {
  61945. case "false":
  61946. return new A.BooleanExpression(false, identifier.span);
  61947. case "null":
  61948. return new A.NullExpression(identifier.span);
  61949. case "true":
  61950. return new A.BooleanExpression(true, identifier.span);
  61951. }
  61952. _0_0 = $.$get$colorsByName().$index(0, lower._readLocal$0());
  61953. if (_0_0 != null) {
  61954. t1 = B.JSNumber_methods.round$0(_0_0._legacyChannel$2(B.RgbColorSpace_mlz, "red"));
  61955. t2 = B.JSNumber_methods.round$0(_0_0._legacyChannel$2(B.RgbColorSpace_mlz, "green"));
  61956. t3 = B.JSNumber_methods.round$0(_0_0._legacyChannel$2(B.RgbColorSpace_mlz, "blue"));
  61957. t4 = _0_0.alphaOrNull;
  61958. if (t4 == null)
  61959. t4 = 0;
  61960. t5 = identifier.span;
  61961. return new A.ColorExpression(A.SassColor_SassColor$rgbInternal(t1, t2, t3, t4, new A.SpanColorFormat(t5)), t5);
  61962. }
  61963. }
  61964. _1_0 = _this.trySpecialFunction$2(lower._readLocal$0(), start);
  61965. if (_1_0 != null)
  61966. return _1_0;
  61967. }
  61968. _2_0 = t1.peekChar$0();
  61969. _2_2 = 46 === _2_0;
  61970. if (_2_2 && t1.peekChar$1(1) === 46)
  61971. return new A.StringExpression(identifier, false);
  61972. if (_2_2) {
  61973. t1.readChar$0();
  61974. if (t2)
  61975. return _this.namespacedExpression$2(plain, start);
  61976. _this.error$2(0, string$.Interpn, identifier.span);
  61977. }
  61978. _2_4 = 40 === _2_0;
  61979. if (_2_4 && t2) {
  61980. t2 = _this._argumentInvocation$1$allowEmptySecondArg(J.$eq$(lower._readLocal$0(), "var"));
  61981. t1 = t1.spanFrom$1(start);
  61982. return new A.FunctionExpression(null, A.stringReplaceAllUnchecked(plain, "_", "-"), plain, t2, t1);
  61983. }
  61984. if (_2_4)
  61985. return new A.InterpolatedFunctionExpression(identifier, _this._argumentInvocation$0(), t1.spanFrom$1(start));
  61986. return new A.StringExpression(identifier, false);
  61987. },
  61988. namespacedExpression$2(namespace, start) {
  61989. var $name, t2, t3, _this = this,
  61990. t1 = _this.scanner;
  61991. if (t1.peekChar$0() === 36) {
  61992. $name = _this.variableName$0();
  61993. _this._assertPublic$2($name, new A.StylesheetParser_namespacedExpression_closure(_this, start));
  61994. return new A.VariableExpression(namespace, $name, t1.spanFrom$1(start));
  61995. }
  61996. t2 = _this._publicIdentifier$0();
  61997. t3 = _this._argumentInvocation$0();
  61998. t1 = t1.spanFrom$1(start);
  61999. return new A.FunctionExpression(namespace, A.stringReplaceAllUnchecked(t2, "_", "-"), t2, t3, t1);
  62000. },
  62001. trySpecialFunction$2($name, start) {
  62002. var t1, buffer, t2, next, t3, _this = this,
  62003. normalized = A.unvendor($name);
  62004. $label0$0: {
  62005. if (!("calc" === normalized && normalized !== $name && _this.scanner.scanChar$1(40)))
  62006. t1 = ("element" === normalized || "expression" === normalized) && _this.scanner.scanChar$1(40);
  62007. else
  62008. t1 = true;
  62009. if (t1) {
  62010. t1 = new A.StringBuffer("");
  62011. buffer = new A.InterpolationBuffer(t1, A._setArrayType([], type$.JSArray_Object), A._setArrayType([], type$.JSArray_nullable_FileSpan));
  62012. t1._contents = "" + $name;
  62013. t2 = A.Primitives_stringFromCharCode(40);
  62014. t1._contents += t2;
  62015. break $label0$0;
  62016. }
  62017. if ("progid" === normalized && _this.scanner.scanChar$1(58)) {
  62018. t1 = new A.StringBuffer("");
  62019. buffer = new A.InterpolationBuffer(t1, A._setArrayType([], type$.JSArray_Object), A._setArrayType([], type$.JSArray_nullable_FileSpan));
  62020. t1._contents = "" + $name;
  62021. t2 = A.Primitives_stringFromCharCode(58);
  62022. t1._contents += t2;
  62023. t2 = _this.scanner;
  62024. next = t2.peekChar$0();
  62025. while (true) {
  62026. if (next != null) {
  62027. if (!(next >= 97 && next <= 122))
  62028. t3 = next >= 65 && next <= 90;
  62029. else
  62030. t3 = true;
  62031. t3 = t3 || next === 46;
  62032. } else
  62033. t3 = false;
  62034. if (!t3)
  62035. break;
  62036. t3 = A.Primitives_stringFromCharCode(t2.readChar$0());
  62037. t1._contents += t3;
  62038. next = t2.peekChar$0();
  62039. }
  62040. t2.expectChar$1(40);
  62041. t2 = A.Primitives_stringFromCharCode(40);
  62042. t1._contents += t2;
  62043. break $label0$0;
  62044. }
  62045. if ("url" === normalized)
  62046. return A.NullableExtension_andThen(_this._tryUrlContents$1(start), new A.StylesheetParser_trySpecialFunction_closure());
  62047. return null;
  62048. }
  62049. buffer.addInterpolation$1(_this._interpolatedDeclarationValue$1$allowEmpty(true));
  62050. t1 = _this.scanner;
  62051. t1.expectChar$1(41);
  62052. t2 = buffer._interpolation_buffer$_text;
  62053. t3 = A.Primitives_stringFromCharCode(41);
  62054. t2._contents += t3;
  62055. return new A.StringExpression(buffer.interpolation$1(t1.spanFrom$1(start)), false);
  62056. },
  62057. _tryUrlContents$2$name(start, $name) {
  62058. var t3, t4, t5, buffer, t6, _1_0, _1_6, _0_0, endPosition, _this = this,
  62059. t1 = _this.scanner,
  62060. t2 = t1._string_scanner$_position;
  62061. if (!t1.scanChar$1(40))
  62062. return null;
  62063. _this.whitespaceWithoutComments$0();
  62064. t3 = new A.StringBuffer("");
  62065. t4 = A._setArrayType([], type$.JSArray_Object);
  62066. t5 = A._setArrayType([], type$.JSArray_nullable_FileSpan);
  62067. buffer = new A.InterpolationBuffer(t3, t4, t5);
  62068. t3._contents = "" + ($name == null ? "url" : $name);
  62069. t6 = A.Primitives_stringFromCharCode(40);
  62070. t3._contents += t6;
  62071. for (; true;) {
  62072. _1_0 = t1.peekChar$0();
  62073. if (_1_0 == null)
  62074. break;
  62075. if (92 === _1_0) {
  62076. t6 = _this.escape$0();
  62077. t3._contents += t6;
  62078. continue;
  62079. }
  62080. _1_6 = 35 === _1_0;
  62081. if (_1_6 && t1.peekChar$1(1) === 123) {
  62082. _0_0 = _this.singleInterpolation$0();
  62083. buffer._flushText$0();
  62084. t4.push(_0_0._0);
  62085. t5.push(_0_0._1);
  62086. continue;
  62087. }
  62088. t6 = true;
  62089. if (33 !== _1_0)
  62090. if (37 !== _1_0)
  62091. if (38 !== _1_0)
  62092. if (!_1_6)
  62093. t6 = _1_0 >= 42 && _1_0 <= 126 || _1_0 >= 128;
  62094. if (t6) {
  62095. t6 = A.Primitives_stringFromCharCode(t1.readChar$0());
  62096. t3._contents += t6;
  62097. continue;
  62098. }
  62099. if (_1_0 === 32 || _1_0 === 9 || _1_0 === 10 || _1_0 === 13 || _1_0 === 12) {
  62100. _this.whitespaceWithoutComments$0();
  62101. if (t1.peekChar$0() !== 41)
  62102. break;
  62103. continue;
  62104. }
  62105. if (41 === _1_0) {
  62106. t2 = A.Primitives_stringFromCharCode(t1.readChar$0());
  62107. t3._contents += t2;
  62108. endPosition = t1._string_scanner$_position;
  62109. t2 = t1._sourceFile;
  62110. t3 = start.position;
  62111. t1 = new A._FileSpan(t2, t3, endPosition);
  62112. t1._FileSpan$3(t2, t3, endPosition);
  62113. return buffer.interpolation$1(t1);
  62114. }
  62115. break;
  62116. }
  62117. t1.set$state(new A._SpanScannerState(t1, t2));
  62118. return null;
  62119. },
  62120. _tryUrlContents$1(start) {
  62121. return this._tryUrlContents$2$name(start, null);
  62122. },
  62123. dynamicUrl$0() {
  62124. var _0_0, t2, _this = this,
  62125. t1 = _this.scanner,
  62126. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  62127. _this.expectIdentifier$1("url");
  62128. _0_0 = _this._tryUrlContents$1(start);
  62129. if (_0_0 != null)
  62130. return new A.StringExpression(_0_0, false);
  62131. t2 = t1.spanFrom$1(start);
  62132. return new A.InterpolatedFunctionExpression(new A.Interpolation(A.List_List$unmodifiable(["url"], type$.Object), B.List_null, t2), _this._argumentInvocation$0(), t1.spanFrom$1(start));
  62133. },
  62134. almostAnyValue$1$omitComments(omitComments) {
  62135. var t4, t5, t6, _2_0, t7, _0_0, _0_2, start, end, _0_4, identifier, _1_0, _this = this,
  62136. t1 = _this.scanner,
  62137. t2 = t1._string_scanner$_position,
  62138. t3 = new A.StringBuffer(""),
  62139. buffer = new A.InterpolationBuffer(t3, A._setArrayType([], type$.JSArray_Object), A._setArrayType([], type$.JSArray_nullable_FileSpan));
  62140. for (t4 = t1.string, t5 = t4.length, t6 = !omitComments; true;)
  62141. $label0$0: {
  62142. _2_0 = t1.peekChar$0();
  62143. if (92 === _2_0) {
  62144. t7 = A.Primitives_stringFromCharCode(t1.readChar$0());
  62145. t3._contents += t7;
  62146. t7 = A.Primitives_stringFromCharCode(t1.readChar$0());
  62147. t3._contents += t7;
  62148. break $label0$0;
  62149. }
  62150. if (34 === _2_0 || 39 === _2_0) {
  62151. buffer.addInterpolation$1(_this.interpolatedString$0().asInterpolation$0());
  62152. break $label0$0;
  62153. }
  62154. if (47 === _2_0) {
  62155. $label1$1: {
  62156. _0_0 = t1.peekChar$1(1);
  62157. _0_2 = 42 === _0_0;
  62158. if (_0_2 && t6) {
  62159. t7 = _this.get$loudComment();
  62160. start = t1._string_scanner$_position;
  62161. t7.call$0();
  62162. end = t1._string_scanner$_position;
  62163. t3._contents += B.JSString_methods.substring$2(t4, start, end);
  62164. break $label1$1;
  62165. }
  62166. if (_0_2) {
  62167. _this.loudComment$0();
  62168. break $label1$1;
  62169. }
  62170. _0_4 = 47 === _0_0;
  62171. if (_0_4 && t6) {
  62172. t7 = _this.get$silentComment();
  62173. start = t1._string_scanner$_position;
  62174. t7.call$0();
  62175. end = t1._string_scanner$_position;
  62176. t3._contents += B.JSString_methods.substring$2(t4, start, end);
  62177. break $label1$1;
  62178. }
  62179. if (_0_4) {
  62180. _this.silentComment$0();
  62181. break $label1$1;
  62182. }
  62183. t7 = A.Primitives_stringFromCharCode(t1.readChar$0());
  62184. t3._contents += t7;
  62185. }
  62186. break $label0$0;
  62187. }
  62188. if (35 === _2_0 && t1.peekChar$1(1) === 123) {
  62189. buffer.addInterpolation$1(_this.interpolatedIdentifier$0());
  62190. break $label0$0;
  62191. }
  62192. if (13 === _2_0 || 10 === _2_0 || 12 === _2_0) {
  62193. if (_this.get$indented())
  62194. break;
  62195. t7 = A.Primitives_stringFromCharCode(t1.readChar$0());
  62196. t3._contents += t7;
  62197. break $label0$0;
  62198. }
  62199. if (33 === _2_0 || 59 === _2_0 || 123 === _2_0 || 125 === _2_0)
  62200. break;
  62201. if (117 === _2_0 || 85 === _2_0) {
  62202. t7 = t1._string_scanner$_position;
  62203. identifier = _this.identifier$0();
  62204. if (identifier !== "url" && identifier !== "url-prefix") {
  62205. t3._contents += identifier;
  62206. continue;
  62207. }
  62208. _1_0 = _this._tryUrlContents$2$name(new A._SpanScannerState(t1, t7), identifier);
  62209. if (_1_0 != null)
  62210. buffer.addInterpolation$1(_1_0);
  62211. else {
  62212. if ((t7 === 0 ? 1 / t7 < 0 : t7 < 0) || t7 > t5)
  62213. A.throwExpression(A.ArgumentError$("Invalid position " + t7, null));
  62214. t1._string_scanner$_position = t7;
  62215. t1._lastMatch = null;
  62216. t7 = A.Primitives_stringFromCharCode(t1.readChar$0());
  62217. t3._contents += t7;
  62218. }
  62219. break $label0$0;
  62220. }
  62221. if (_2_0 == null)
  62222. break;
  62223. t7 = _this.lookingAtIdentifier$0();
  62224. if (t7) {
  62225. t7 = _this.identifier$0();
  62226. t3._contents += t7;
  62227. break $label0$0;
  62228. }
  62229. t7 = A.Primitives_stringFromCharCode(t1.readChar$0());
  62230. t3._contents += t7;
  62231. }
  62232. return buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  62233. },
  62234. almostAnyValue$0() {
  62235. return this.almostAnyValue$1$omitComments(false);
  62236. },
  62237. _interpolatedDeclarationValue$5$allowColon$allowEmpty$allowOpenBrace$allowSemicolon$silentComments(allowColon, allowEmpty, allowOpenBrace, allowSemicolon, silentComments) {
  62238. var t4, t5, t6, t7, t8, wroteNewline, _2_0, wroteNewline0, t9, _0_0, start, end, _2_14_isSet, _2_14, t10, _2_18_isSet, _2_20, _2_18, _2_20_isSet, _2_22, bracket, identifier, _1_0, _this = this, _null = null,
  62239. t1 = _this.scanner,
  62240. t2 = t1._string_scanner$_position,
  62241. t3 = new A.StringBuffer(""),
  62242. buffer = new A.InterpolationBuffer(t3, A._setArrayType([], type$.JSArray_Object), A._setArrayType([], type$.JSArray_nullable_FileSpan)),
  62243. brackets = A._setArrayType([], type$.JSArray_int);
  62244. for (t4 = !allowOpenBrace, t5 = t1.string, t6 = t5.length, t7 = !allowColon, t8 = !allowSemicolon, wroteNewline = false; true;)
  62245. $label0$0: {
  62246. _2_0 = t1.peekChar$0();
  62247. wroteNewline0 = false;
  62248. if (92 === _2_0) {
  62249. t9 = _this.escape$1$identifierStart(true);
  62250. t3._contents += t9;
  62251. wroteNewline = wroteNewline0;
  62252. break $label0$0;
  62253. }
  62254. if (34 === _2_0 || 39 === _2_0) {
  62255. buffer.addInterpolation$1(_this.interpolatedString$0().asInterpolation$0());
  62256. wroteNewline = wroteNewline0;
  62257. break $label0$0;
  62258. }
  62259. if (47 === _2_0) {
  62260. $label1$1: {
  62261. _0_0 = t1.peekChar$1(1);
  62262. if (42 === _0_0) {
  62263. t9 = _this.get$loudComment();
  62264. start = t1._string_scanner$_position;
  62265. t9.call$0();
  62266. end = t1._string_scanner$_position;
  62267. t3._contents += B.JSString_methods.substring$2(t5, start, end);
  62268. break $label1$1;
  62269. }
  62270. if (47 === _0_0 && silentComments) {
  62271. _this.silentComment$0();
  62272. break $label1$1;
  62273. }
  62274. t9 = A.Primitives_stringFromCharCode(t1.readChar$0());
  62275. t3._contents += t9;
  62276. }
  62277. wroteNewline = wroteNewline0;
  62278. break $label0$0;
  62279. }
  62280. if (35 === _2_0 && t1.peekChar$1(1) === 123) {
  62281. buffer.addInterpolation$1(_this.interpolatedIdentifier$0());
  62282. wroteNewline = wroteNewline0;
  62283. break $label0$0;
  62284. }
  62285. _2_14_isSet = 32 !== _2_0;
  62286. if (_2_14_isSet) {
  62287. _2_14 = 9 === _2_0;
  62288. t9 = _2_14;
  62289. } else {
  62290. _2_14 = _null;
  62291. t9 = true;
  62292. }
  62293. t10 = false;
  62294. if (t9)
  62295. if (!wroteNewline) {
  62296. t9 = t1.peekChar$1(1);
  62297. t9 = t9 === 32 || t9 === 9 || t9 === 10 || t9 === 13 || t9 === 12;
  62298. } else
  62299. t9 = t10;
  62300. else
  62301. t9 = t10;
  62302. if (t9) {
  62303. t1.readChar$0();
  62304. break $label0$0;
  62305. }
  62306. if (_2_14_isSet)
  62307. t9 = _2_14;
  62308. else
  62309. t9 = true;
  62310. if (t9) {
  62311. t9 = A.Primitives_stringFromCharCode(t1.readChar$0());
  62312. t3._contents += t9;
  62313. break $label0$0;
  62314. }
  62315. _2_18_isSet = 10 !== _2_0;
  62316. _2_20 = _null;
  62317. t9 = true;
  62318. if (_2_18_isSet) {
  62319. _2_18 = 13 === _2_0;
  62320. _2_20_isSet = !_2_18;
  62321. if (_2_20_isSet) {
  62322. _2_20 = 12 === _2_0;
  62323. t9 = _2_20;
  62324. }
  62325. } else {
  62326. _2_18 = _null;
  62327. _2_20_isSet = false;
  62328. }
  62329. if (t9 && _this.get$indented())
  62330. break;
  62331. t9 = true;
  62332. if (_2_18_isSet)
  62333. if (!_2_18)
  62334. t9 = _2_20_isSet ? _2_20 : 12 === _2_0;
  62335. if (t9) {
  62336. t9 = t1.peekChar$1(-1);
  62337. if (!(t9 === 10 || t9 === 13 || t9 === 12))
  62338. t3._contents += "\n";
  62339. t1.readChar$0();
  62340. wroteNewline = true;
  62341. break $label0$0;
  62342. }
  62343. _2_22 = 123 === _2_0;
  62344. if (_2_22 && t4)
  62345. break;
  62346. if (40 !== _2_0)
  62347. t9 = _2_22 || 91 === _2_0;
  62348. else
  62349. t9 = true;
  62350. if (t9) {
  62351. bracket = t1.readChar$0();
  62352. t9 = A.Primitives_stringFromCharCode(bracket);
  62353. t3._contents += t9;
  62354. brackets.push(A.opposite(bracket));
  62355. wroteNewline = wroteNewline0;
  62356. break $label0$0;
  62357. }
  62358. if (41 === _2_0 || 125 === _2_0 || 93 === _2_0) {
  62359. if (brackets.length === 0)
  62360. break;
  62361. bracket = brackets.pop();
  62362. t1.expectChar$1(bracket);
  62363. t9 = A.Primitives_stringFromCharCode(bracket);
  62364. t3._contents += t9;
  62365. wroteNewline = wroteNewline0;
  62366. break $label0$0;
  62367. }
  62368. if (59 === _2_0) {
  62369. if (t8 && brackets.length === 0)
  62370. break;
  62371. t9 = A.Primitives_stringFromCharCode(t1.readChar$0());
  62372. t3._contents += t9;
  62373. wroteNewline = wroteNewline0;
  62374. break $label0$0;
  62375. }
  62376. if (58 === _2_0) {
  62377. if (t7 && brackets.length === 0)
  62378. break;
  62379. t9 = A.Primitives_stringFromCharCode(t1.readChar$0());
  62380. t3._contents += t9;
  62381. wroteNewline = wroteNewline0;
  62382. break $label0$0;
  62383. }
  62384. if (117 === _2_0 || 85 === _2_0) {
  62385. t9 = t1._string_scanner$_position;
  62386. identifier = _this.identifier$0();
  62387. if (identifier !== "url" && identifier !== "url-prefix") {
  62388. t3._contents += identifier;
  62389. wroteNewline = wroteNewline0;
  62390. continue;
  62391. }
  62392. _1_0 = _this._tryUrlContents$2$name(new A._SpanScannerState(t1, t9), identifier);
  62393. if (_1_0 != null)
  62394. buffer.addInterpolation$1(_1_0);
  62395. else {
  62396. if ((t9 === 0 ? 1 / t9 < 0 : t9 < 0) || t9 > t6)
  62397. A.throwExpression(A.ArgumentError$("Invalid position " + t9, _null));
  62398. t1._string_scanner$_position = t9;
  62399. t1._lastMatch = null;
  62400. t9 = A.Primitives_stringFromCharCode(t1.readChar$0());
  62401. t3._contents += t9;
  62402. }
  62403. wroteNewline = wroteNewline0;
  62404. break $label0$0;
  62405. }
  62406. if (_2_0 == null)
  62407. break;
  62408. t9 = _this.lookingAtIdentifier$0();
  62409. if (t9) {
  62410. t9 = _this.identifier$0();
  62411. t3._contents += t9;
  62412. wroteNewline = wroteNewline0;
  62413. break $label0$0;
  62414. }
  62415. t9 = A.Primitives_stringFromCharCode(t1.readChar$0());
  62416. t3._contents += t9;
  62417. wroteNewline = wroteNewline0;
  62418. }
  62419. if (brackets.length !== 0)
  62420. t1.expectChar$1(B.JSArray_methods.get$last(brackets));
  62421. if (!allowEmpty && buffer._interpolation_buffer$_contents.length === 0 && t3._contents.length === 0)
  62422. t1.error$1(0, "Expected token.");
  62423. return buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  62424. },
  62425. _interpolatedDeclarationValue$1$allowEmpty(allowEmpty) {
  62426. return this._interpolatedDeclarationValue$5$allowColon$allowEmpty$allowOpenBrace$allowSemicolon$silentComments(true, allowEmpty, true, false, true);
  62427. },
  62428. _interpolatedDeclarationValue$1$allowOpenBrace(allowOpenBrace) {
  62429. return this._interpolatedDeclarationValue$5$allowColon$allowEmpty$allowOpenBrace$allowSemicolon$silentComments(true, false, allowOpenBrace, false, true);
  62430. },
  62431. _interpolatedDeclarationValue$2$allowEmpty$allowSemicolon(allowEmpty, allowSemicolon) {
  62432. return this._interpolatedDeclarationValue$5$allowColon$allowEmpty$allowOpenBrace$allowSemicolon$silentComments(true, allowEmpty, true, allowSemicolon, true);
  62433. },
  62434. _interpolatedDeclarationValue$3$allowColon$allowEmpty$allowSemicolon(allowColon, allowEmpty, allowSemicolon) {
  62435. return this._interpolatedDeclarationValue$5$allowColon$allowEmpty$allowOpenBrace$allowSemicolon$silentComments(allowColon, allowEmpty, true, allowSemicolon, true);
  62436. },
  62437. _interpolatedDeclarationValue$0() {
  62438. return this._interpolatedDeclarationValue$5$allowColon$allowEmpty$allowOpenBrace$allowSemicolon$silentComments(true, false, true, false, true);
  62439. },
  62440. _interpolatedDeclarationValue$2$allowEmpty$allowOpenBrace(allowEmpty, allowOpenBrace) {
  62441. return this._interpolatedDeclarationValue$5$allowColon$allowEmpty$allowOpenBrace$allowSemicolon$silentComments(true, allowEmpty, allowOpenBrace, false, true);
  62442. },
  62443. _interpolatedDeclarationValue$1$silentComments(silentComments) {
  62444. return this._interpolatedDeclarationValue$5$allowColon$allowEmpty$allowOpenBrace$allowSemicolon$silentComments(true, false, true, false, silentComments);
  62445. },
  62446. interpolatedIdentifier$0() {
  62447. var t3, _1_0, _0_0, _this = this,
  62448. _s20_ = "Expected identifier.",
  62449. t1 = _this.scanner,
  62450. start = new A._SpanScannerState(t1, t1._string_scanner$_position),
  62451. t2 = new A.StringBuffer(""),
  62452. buffer = new A.InterpolationBuffer(t2, A._setArrayType([], type$.JSArray_Object), A._setArrayType([], type$.JSArray_nullable_FileSpan));
  62453. if (t1.scanChar$1(45)) {
  62454. t3 = A.Primitives_stringFromCharCode(45);
  62455. t2._contents += t3;
  62456. if (t1.scanChar$1(45)) {
  62457. t3 = A.Primitives_stringFromCharCode(45);
  62458. t2._contents += t3;
  62459. _this._interpolatedIdentifierBody$1(buffer);
  62460. return buffer.interpolation$1(t1.spanFrom$1(start));
  62461. }
  62462. }
  62463. $label0$0: {
  62464. _1_0 = t1.peekChar$0();
  62465. if (_1_0 == null)
  62466. t1.error$1(0, _s20_);
  62467. if (_1_0 === 95 || A.CharacterExtension_get_isAlphabetic(_1_0) || _1_0 >= 128) {
  62468. t3 = A.Primitives_stringFromCharCode(t1.readChar$0());
  62469. t2._contents += t3;
  62470. break $label0$0;
  62471. }
  62472. if (92 === _1_0) {
  62473. t3 = _this.escape$1$identifierStart(true);
  62474. t2._contents += t3;
  62475. break $label0$0;
  62476. }
  62477. if (35 === _1_0 && t1.peekChar$1(1) === 123) {
  62478. _0_0 = _this.singleInterpolation$0();
  62479. buffer.add$2(0, _0_0._0, _0_0._1);
  62480. break $label0$0;
  62481. }
  62482. t1.error$1(0, _s20_);
  62483. }
  62484. _this._interpolatedIdentifierBody$1(buffer);
  62485. return buffer.interpolation$1(t1.spanFrom$1(start));
  62486. },
  62487. _interpolatedIdentifierBody$1(buffer) {
  62488. var t1, t2, t3, t4, _1_0, t5, _0_0;
  62489. for (t1 = buffer._interpolation_buffer$_contents, t2 = buffer._spans, t3 = this.scanner, t4 = buffer._interpolation_buffer$_text; true;) {
  62490. _1_0 = t3.peekChar$0();
  62491. if (_1_0 == null)
  62492. break;
  62493. t5 = true;
  62494. if (95 !== _1_0)
  62495. if (45 !== _1_0) {
  62496. if (!(_1_0 >= 97 && _1_0 <= 122))
  62497. t5 = _1_0 >= 65 && _1_0 <= 90;
  62498. else
  62499. t5 = true;
  62500. if (!t5)
  62501. t5 = _1_0 >= 48 && _1_0 <= 57;
  62502. else
  62503. t5 = true;
  62504. t5 = t5 || _1_0 >= 128;
  62505. }
  62506. if (t5) {
  62507. t5 = A.Primitives_stringFromCharCode(t3.readChar$0());
  62508. t4._contents += t5;
  62509. continue;
  62510. }
  62511. if (92 === _1_0) {
  62512. t5 = this.escape$0();
  62513. t4._contents += t5;
  62514. continue;
  62515. }
  62516. if (35 === _1_0 && t3.peekChar$1(1) === 123) {
  62517. _0_0 = this.singleInterpolation$0();
  62518. buffer._flushText$0();
  62519. t1.push(_0_0._0);
  62520. t2.push(_0_0._1);
  62521. continue;
  62522. }
  62523. break;
  62524. }
  62525. },
  62526. singleInterpolation$0() {
  62527. var contents, span, _this = this,
  62528. t1 = _this.scanner,
  62529. t2 = t1._string_scanner$_position;
  62530. t1.expect$1("#{");
  62531. _this.whitespace$0();
  62532. contents = _this._expression$0();
  62533. t1.expectChar$1(125);
  62534. span = t1.spanFrom$1(new A._SpanScannerState(t1, t2));
  62535. if (_this.get$plainCss())
  62536. _this.error$2(0, string$.Interpp, span);
  62537. return new A._Record_2(contents, span);
  62538. },
  62539. _mediaQueryList$0() {
  62540. var t4, _this = this,
  62541. t1 = _this.scanner,
  62542. t2 = t1._string_scanner$_position,
  62543. t3 = new A.StringBuffer(""),
  62544. buffer = new A.InterpolationBuffer(t3, A._setArrayType([], type$.JSArray_Object), A._setArrayType([], type$.JSArray_nullable_FileSpan));
  62545. for (; true;) {
  62546. _this.whitespace$0();
  62547. _this._stylesheet$_mediaQuery$1(buffer);
  62548. _this.whitespace$0();
  62549. if (!t1.scanChar$1(44))
  62550. break;
  62551. t4 = A.Primitives_stringFromCharCode(44);
  62552. t3._contents += t4;
  62553. t4 = A.Primitives_stringFromCharCode(32);
  62554. t3._contents += t4;
  62555. }
  62556. return buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  62557. },
  62558. _stylesheet$_mediaQuery$1(buffer) {
  62559. var identifier1, t1, t2, identifier2, _this = this, _s3_ = "and";
  62560. if (_this.scanner.peekChar$0() === 40) {
  62561. _this._stylesheet$_mediaInParens$1(buffer);
  62562. _this.whitespace$0();
  62563. if (_this.scanIdentifier$1(_s3_)) {
  62564. buffer._interpolation_buffer$_text._contents += " and ";
  62565. _this.expectWhitespace$0();
  62566. _this._stylesheet$_mediaLogicSequence$2(buffer, _s3_);
  62567. } else if (_this.scanIdentifier$1("or")) {
  62568. buffer._interpolation_buffer$_text._contents += " or ";
  62569. _this.expectWhitespace$0();
  62570. _this._stylesheet$_mediaLogicSequence$2(buffer, "or");
  62571. }
  62572. return;
  62573. }
  62574. identifier1 = _this.interpolatedIdentifier$0();
  62575. if (A.equalsIgnoreCase(identifier1.get$asPlain(), "not")) {
  62576. _this.expectWhitespace$0();
  62577. if (!_this._lookingAtInterpolatedIdentifier$0()) {
  62578. buffer._interpolation_buffer$_text._contents += "not ";
  62579. _this._mediaOrInterp$1(buffer);
  62580. return;
  62581. }
  62582. }
  62583. _this.whitespace$0();
  62584. buffer.addInterpolation$1(identifier1);
  62585. if (!_this._lookingAtInterpolatedIdentifier$0())
  62586. return;
  62587. t1 = buffer._interpolation_buffer$_text;
  62588. t2 = A.Primitives_stringFromCharCode(32);
  62589. t1._contents += t2;
  62590. identifier2 = _this.interpolatedIdentifier$0();
  62591. if (A.equalsIgnoreCase(identifier2.get$asPlain(), _s3_)) {
  62592. _this.expectWhitespace$0();
  62593. t1._contents += " and ";
  62594. } else {
  62595. _this.whitespace$0();
  62596. buffer.addInterpolation$1(identifier2);
  62597. if (_this.scanIdentifier$1(_s3_)) {
  62598. _this.expectWhitespace$0();
  62599. t1._contents += " and ";
  62600. } else
  62601. return;
  62602. }
  62603. if (_this.scanIdentifier$1("not")) {
  62604. _this.expectWhitespace$0();
  62605. t1._contents += "not ";
  62606. _this._mediaOrInterp$1(buffer);
  62607. return;
  62608. }
  62609. _this._stylesheet$_mediaLogicSequence$2(buffer, _s3_);
  62610. return;
  62611. },
  62612. _stylesheet$_mediaLogicSequence$2(buffer, operator) {
  62613. var t1, t2, _this = this;
  62614. for (t1 = buffer._interpolation_buffer$_text; true;) {
  62615. _this._mediaOrInterp$1(buffer);
  62616. _this.whitespace$0();
  62617. if (!_this.scanIdentifier$1(operator))
  62618. return;
  62619. _this.expectWhitespace$0();
  62620. t2 = A.Primitives_stringFromCharCode(32);
  62621. t2 = t1._contents += t2;
  62622. t1._contents = t2 + operator;
  62623. t2 = A.Primitives_stringFromCharCode(32);
  62624. t1._contents += t2;
  62625. }
  62626. },
  62627. _mediaOrInterp$1(buffer) {
  62628. var _0_0;
  62629. if (this.scanner.peekChar$0() === 35) {
  62630. _0_0 = this.singleInterpolation$0();
  62631. buffer.add$2(0, _0_0._0, _0_0._1);
  62632. } else
  62633. this._stylesheet$_mediaInParens$1(buffer);
  62634. },
  62635. _stylesheet$_mediaInParens$1(buffer) {
  62636. var t2, t3, expressionBefore, expressionAfter, next, t4, expressionMiddle, _this = this,
  62637. t1 = _this.scanner;
  62638. t1.expectChar$2$name(40, "media condition in parentheses");
  62639. t2 = buffer._interpolation_buffer$_text;
  62640. t3 = A.Primitives_stringFromCharCode(40);
  62641. t2._contents += t3;
  62642. _this.whitespace$0();
  62643. if (t1.peekChar$0() === 40) {
  62644. _this._stylesheet$_mediaInParens$1(buffer);
  62645. _this.whitespace$0();
  62646. if (_this.scanIdentifier$1("and")) {
  62647. t2._contents += " and ";
  62648. _this.expectWhitespace$0();
  62649. _this._stylesheet$_mediaLogicSequence$2(buffer, "and");
  62650. } else if (_this.scanIdentifier$1("or")) {
  62651. t2._contents += " or ";
  62652. _this.expectWhitespace$0();
  62653. _this._stylesheet$_mediaLogicSequence$2(buffer, "or");
  62654. }
  62655. } else if (_this.scanIdentifier$1("not")) {
  62656. t2._contents += "not ";
  62657. _this.expectWhitespace$0();
  62658. _this._mediaOrInterp$1(buffer);
  62659. } else {
  62660. expressionBefore = _this._expressionUntilComparison$0();
  62661. buffer.add$2(0, expressionBefore, expressionBefore.get$span(expressionBefore));
  62662. if (t1.scanChar$1(58)) {
  62663. _this.whitespace$0();
  62664. t3 = A.Primitives_stringFromCharCode(58);
  62665. t2._contents += t3;
  62666. t3 = A.Primitives_stringFromCharCode(32);
  62667. t2._contents += t3;
  62668. expressionAfter = _this._expression$0();
  62669. buffer.add$2(0, expressionAfter, expressionAfter.get$span(expressionAfter));
  62670. } else {
  62671. next = t1.peekChar$0();
  62672. t3 = 60 !== next;
  62673. if (!t3 || 62 === next || 61 === next) {
  62674. t4 = A.Primitives_stringFromCharCode(32);
  62675. t2._contents += t4;
  62676. t4 = A.Primitives_stringFromCharCode(t1.readChar$0());
  62677. t2._contents += t4;
  62678. if ((!t3 || 62 === next) && t1.scanChar$1(61)) {
  62679. t4 = A.Primitives_stringFromCharCode(61);
  62680. t2._contents += t4;
  62681. }
  62682. t4 = A.Primitives_stringFromCharCode(32);
  62683. t2._contents += t4;
  62684. _this.whitespace$0();
  62685. expressionMiddle = _this._expressionUntilComparison$0();
  62686. buffer.add$2(0, expressionMiddle, expressionMiddle.get$span(expressionMiddle));
  62687. if (!t3 || 62 === next) {
  62688. next.toString;
  62689. t3 = t1.scanChar$1(next);
  62690. } else
  62691. t3 = false;
  62692. if (t3) {
  62693. t3 = A.Primitives_stringFromCharCode(32);
  62694. t2._contents += t3;
  62695. t3 = A.Primitives_stringFromCharCode(next);
  62696. t2._contents += t3;
  62697. if (t1.scanChar$1(61)) {
  62698. t3 = A.Primitives_stringFromCharCode(61);
  62699. t2._contents += t3;
  62700. }
  62701. t3 = A.Primitives_stringFromCharCode(32);
  62702. t2._contents += t3;
  62703. _this.whitespace$0();
  62704. expressionAfter = _this._expressionUntilComparison$0();
  62705. buffer.add$2(0, expressionAfter, expressionAfter.get$span(expressionAfter));
  62706. }
  62707. }
  62708. }
  62709. }
  62710. t1.expectChar$1(41);
  62711. _this.whitespace$0();
  62712. t1 = A.Primitives_stringFromCharCode(41);
  62713. t2._contents += t1;
  62714. },
  62715. _expressionUntilComparison$0() {
  62716. return this._expression$1$until(new A.StylesheetParser__expressionUntilComparison_closure(this));
  62717. },
  62718. _supportsCondition$0() {
  62719. var condition, operator, right, endPosition, t3, t4, lowerOperator, _this = this,
  62720. t1 = _this.scanner,
  62721. t2 = t1._string_scanner$_position;
  62722. if (_this.scanIdentifier$1("not")) {
  62723. _this.whitespace$0();
  62724. return new A.SupportsNegation(_this._supportsConditionInParens$0(), t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  62725. }
  62726. condition = _this._supportsConditionInParens$0();
  62727. _this.whitespace$0();
  62728. for (operator = null; _this.lookingAtIdentifier$0();) {
  62729. if (operator != null)
  62730. _this.expectIdentifier$1(operator);
  62731. else if (_this.scanIdentifier$1("or"))
  62732. operator = "or";
  62733. else {
  62734. _this.expectIdentifier$1("and");
  62735. operator = "and";
  62736. }
  62737. _this.whitespace$0();
  62738. right = _this._supportsConditionInParens$0();
  62739. endPosition = t1._string_scanner$_position;
  62740. t3 = t1._sourceFile;
  62741. t4 = new A._FileSpan(t3, t2, endPosition);
  62742. t4._FileSpan$3(t3, t2, endPosition);
  62743. condition = new A.SupportsOperation(condition, right, operator, t4);
  62744. lowerOperator = operator.toLowerCase();
  62745. if (lowerOperator !== "and" && lowerOperator !== "or")
  62746. A.throwExpression(A.ArgumentError$value(operator, "operator", 'may only be "and" or "or".'));
  62747. _this.whitespace$0();
  62748. }
  62749. return condition;
  62750. },
  62751. _supportsConditionInParens$0() {
  62752. var $name, nameStart, wasInParentheses, identifier, _1_0, operation, contents, identifier0, t2, $arguments, _0_0, _0_4_isSet, _0_4, _0_40, condition, exception, value, _this = this,
  62753. t1 = _this.scanner,
  62754. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  62755. if (_this._lookingAtInterpolatedIdentifier$0()) {
  62756. identifier0 = _this.interpolatedIdentifier$0();
  62757. t2 = identifier0.get$asPlain();
  62758. if ((t2 == null ? null : t2.toLowerCase()) === "not")
  62759. _this.error$2(0, '"not" is not a valid identifier here.', identifier0.span);
  62760. if (t1.scanChar$1(40)) {
  62761. $arguments = _this._interpolatedDeclarationValue$2$allowEmpty$allowSemicolon(true, true);
  62762. t1.expectChar$1(41);
  62763. return new A.SupportsFunction(identifier0, $arguments, t1.spanFrom$1(start));
  62764. } else {
  62765. _0_0 = identifier0.contents;
  62766. _0_4_isSet = _0_0.length === 1;
  62767. _0_4 = null;
  62768. if (_0_4_isSet) {
  62769. _0_40 = _0_0[0];
  62770. t2 = _0_40;
  62771. _0_4 = t2;
  62772. t2 = t2 instanceof A.Expression;
  62773. } else
  62774. t2 = false;
  62775. if (t2) {
  62776. t2 = _0_4_isSet ? _0_4 : _0_0[0];
  62777. return new A.SupportsInterpolation(type$.Expression._as(t2), t1.spanFrom$1(start));
  62778. } else
  62779. _this.error$2(0, "Expected @supports condition.", identifier0.span);
  62780. }
  62781. }
  62782. t1.expectChar$1(40);
  62783. _this.whitespace$0();
  62784. if (_this.scanIdentifier$1("not")) {
  62785. _this.whitespace$0();
  62786. condition = _this._supportsConditionInParens$0();
  62787. t1.expectChar$1(41);
  62788. return new A.SupportsNegation(condition, t1.spanFrom$1(start));
  62789. } else if (t1.peekChar$0() === 40) {
  62790. condition = _this._supportsCondition$0();
  62791. t1.expectChar$1(41);
  62792. return condition.withSpan$1(t1.spanFrom$1(start));
  62793. }
  62794. $name = null;
  62795. nameStart = new A._SpanScannerState(t1, t1._string_scanner$_position);
  62796. wasInParentheses = _this._inParentheses;
  62797. try {
  62798. $name = _this._expression$0();
  62799. t1.expectChar$1(58);
  62800. } catch (exception) {
  62801. if (type$.FormatException._is(A.unwrapException(exception))) {
  62802. t1.set$state(nameStart);
  62803. _this._inParentheses = wasInParentheses;
  62804. identifier = _this.interpolatedIdentifier$0();
  62805. _1_0 = _this._trySupportsOperation$2(identifier, nameStart);
  62806. operation = null;
  62807. if (_1_0 != null) {
  62808. operation = _1_0;
  62809. t1.expectChar$1(41);
  62810. t2 = operation;
  62811. t1 = t1.spanFrom$1(start);
  62812. return A.SupportsOperation$(t2.left, t2.right, t2.operator, t1);
  62813. }
  62814. t2 = new A.InterpolationBuffer(new A.StringBuffer(""), A._setArrayType([], type$.JSArray_Object), A._setArrayType([], type$.JSArray_nullable_FileSpan));
  62815. t2.addInterpolation$1(identifier);
  62816. t2.addInterpolation$1(_this._interpolatedDeclarationValue$3$allowColon$allowEmpty$allowSemicolon(false, true, true));
  62817. contents = t2.interpolation$1(t1.spanFrom$1(nameStart));
  62818. if (t1.peekChar$0() === 58)
  62819. throw exception;
  62820. t1.expectChar$1(41);
  62821. return new A.SupportsAnything(contents, t1.spanFrom$1(start));
  62822. } else
  62823. throw exception;
  62824. }
  62825. value = _this._supportsDeclarationValue$1($name);
  62826. t1.expectChar$1(41);
  62827. return new A.SupportsDeclaration($name, value, t1.spanFrom$1(start));
  62828. },
  62829. _supportsDeclarationValue$1($name) {
  62830. var t1 = false;
  62831. if ($name instanceof A.StringExpression)
  62832. if (!$name.hasQuotes)
  62833. t1 = B.JSString_methods.startsWith$1($name.text.get$initialPlain(), "--");
  62834. if (t1)
  62835. return new A.StringExpression(this._interpolatedDeclarationValue$0(), false);
  62836. else {
  62837. this.whitespace$0();
  62838. return this._expression$0();
  62839. }
  62840. },
  62841. _trySupportsOperation$2(interpolation, start) {
  62842. var expression, beforeWhitespace, t2, t3, operator, operation, right, t4, endPosition, t5, t6, lowerOperator, _this = this, _null = null,
  62843. t1 = interpolation.contents;
  62844. if (t1.length !== 1)
  62845. return _null;
  62846. expression = B.JSArray_methods.get$first(t1);
  62847. if (!(expression instanceof A.Expression))
  62848. return _null;
  62849. t1 = _this.scanner;
  62850. beforeWhitespace = new A._SpanScannerState(t1, t1._string_scanner$_position);
  62851. _this.whitespace$0();
  62852. for (t2 = start.position, t3 = interpolation.span, operator = _null, operation = operator; _this.lookingAtIdentifier$0();) {
  62853. if (operator != null)
  62854. _this.expectIdentifier$1(operator);
  62855. else if (_this.scanIdentifier$1("and"))
  62856. operator = "and";
  62857. else {
  62858. if (!_this.scanIdentifier$1("or")) {
  62859. if (beforeWhitespace._scanner !== t1)
  62860. A.throwExpression(A.ArgumentError$(string$.The_gi, _null));
  62861. t2 = beforeWhitespace.position;
  62862. if ((t2 === 0 ? 1 / t2 < 0 : t2 < 0) || t2 > t1.string.length)
  62863. A.throwExpression(A.ArgumentError$("Invalid position " + t2, _null));
  62864. t1._string_scanner$_position = t2;
  62865. return t1._lastMatch = null;
  62866. }
  62867. operator = "or";
  62868. }
  62869. _this.whitespace$0();
  62870. right = _this._supportsConditionInParens$0();
  62871. t4 = operation == null ? new A.SupportsInterpolation(expression, t3) : operation;
  62872. endPosition = t1._string_scanner$_position;
  62873. t5 = t1._sourceFile;
  62874. t6 = new A._FileSpan(t5, t2, endPosition);
  62875. t6._FileSpan$3(t5, t2, endPosition);
  62876. operation = new A.SupportsOperation(t4, right, operator, t6);
  62877. lowerOperator = operator.toLowerCase();
  62878. if (lowerOperator !== "and" && lowerOperator !== "or")
  62879. A.throwExpression(A.ArgumentError$value(operator, "operator", 'may only be "and" or "or".'));
  62880. _this.whitespace$0();
  62881. }
  62882. return operation;
  62883. },
  62884. _lookingAtInterpolatedIdentifier$0() {
  62885. var t2, _0_0,
  62886. t1 = this.scanner,
  62887. _1_0 = t1.peekChar$0();
  62888. $label0$0: {
  62889. t2 = false;
  62890. if (_1_0 == null) {
  62891. t1 = t2;
  62892. break $label0$0;
  62893. }
  62894. if (_1_0 === 95 || A.CharacterExtension_get_isAlphabetic(_1_0) || _1_0 >= 128 || 92 === _1_0) {
  62895. t1 = true;
  62896. break $label0$0;
  62897. }
  62898. if (35 === _1_0) {
  62899. t1 = t1.peekChar$1(1) === 123;
  62900. break $label0$0;
  62901. }
  62902. if (45 === _1_0) {
  62903. _0_0 = t1.peekChar$1(1);
  62904. $label1$1: {
  62905. if (_0_0 == null) {
  62906. t1 = t2;
  62907. break $label1$1;
  62908. }
  62909. if (35 === _0_0) {
  62910. t1 = t1.peekChar$1(2) === 123;
  62911. break $label1$1;
  62912. }
  62913. if (_0_0 === 95 || A.CharacterExtension_get_isAlphabetic(_0_0) || _0_0 >= 128 || 92 === _0_0 || 45 === _0_0) {
  62914. t1 = true;
  62915. break $label1$1;
  62916. }
  62917. t1 = t2;
  62918. break $label1$1;
  62919. }
  62920. break $label0$0;
  62921. }
  62922. t1 = t2;
  62923. break $label0$0;
  62924. }
  62925. return t1;
  62926. },
  62927. _lookingAtPotentialPropertyHack$0() {
  62928. var t1 = this.scanner,
  62929. _0_0 = t1.peekChar$0();
  62930. $label0$0: {
  62931. if (58 === _0_0 || 42 === _0_0 || 46 === _0_0) {
  62932. t1 = true;
  62933. break $label0$0;
  62934. }
  62935. if (35 === _0_0) {
  62936. t1 = t1.peekChar$1(1) !== 123;
  62937. break $label0$0;
  62938. }
  62939. t1 = false;
  62940. break $label0$0;
  62941. }
  62942. return t1;
  62943. },
  62944. _lookingAtInterpolatedIdentifierBody$0() {
  62945. var t2, t3,
  62946. t1 = this.scanner,
  62947. _0_0 = t1.peekChar$0();
  62948. $label0$0: {
  62949. t2 = false;
  62950. if (_0_0 == null) {
  62951. t1 = t2;
  62952. break $label0$0;
  62953. }
  62954. if (!(_0_0 === 95 || A.CharacterExtension_get_isAlphabetic(_0_0) || _0_0 >= 128))
  62955. t3 = _0_0 >= 48 && _0_0 <= 57 || _0_0 === 45;
  62956. else
  62957. t3 = true;
  62958. if (t3 || 92 === _0_0) {
  62959. t1 = true;
  62960. break $label0$0;
  62961. }
  62962. if (35 === _0_0) {
  62963. t1 = t1.peekChar$1(1) === 123;
  62964. break $label0$0;
  62965. }
  62966. t1 = t2;
  62967. break $label0$0;
  62968. }
  62969. return t1;
  62970. },
  62971. _lookingAtExpression$0() {
  62972. var t2, _0_0,
  62973. t1 = this.scanner,
  62974. _1_0 = t1.peekChar$0();
  62975. $label0$0: {
  62976. t2 = true;
  62977. if (_1_0 == null) {
  62978. t1 = false;
  62979. break $label0$0;
  62980. }
  62981. if (46 === _1_0) {
  62982. t1 = t1.peekChar$1(1) !== 46;
  62983. break $label0$0;
  62984. }
  62985. if (33 === _1_0) {
  62986. _0_0 = t1.peekChar$1(1);
  62987. $label1$1: {
  62988. if (_0_0 != null)
  62989. if (105 !== _0_0)
  62990. if (73 !== _0_0)
  62991. t1 = _0_0 === 32 || _0_0 === 9 || _0_0 === 10 || _0_0 === 13 || _0_0 === 12;
  62992. else
  62993. t1 = t2;
  62994. else
  62995. t1 = t2;
  62996. else
  62997. t1 = t2;
  62998. if (t1)
  62999. break $label1$1;
  63000. break $label1$1;
  63001. }
  63002. break $label0$0;
  63003. }
  63004. t1 = true;
  63005. if (40 !== _1_0)
  63006. if (47 !== _1_0)
  63007. if (91 !== _1_0)
  63008. if (39 !== _1_0)
  63009. if (34 !== _1_0)
  63010. if (35 !== _1_0)
  63011. if (43 !== _1_0)
  63012. if (45 !== _1_0)
  63013. if (92 !== _1_0)
  63014. if (36 !== _1_0)
  63015. if (38 !== _1_0)
  63016. if (!(_1_0 === 95 || A.CharacterExtension_get_isAlphabetic(_1_0) || _1_0 >= 128))
  63017. t1 = _1_0 >= 48 && _1_0 <= 57;
  63018. if (t1) {
  63019. t1 = t2;
  63020. break $label0$0;
  63021. }
  63022. t1 = false;
  63023. break $label0$0;
  63024. }
  63025. return t1;
  63026. },
  63027. _withChildren$1$3(child, start, create) {
  63028. var result = create.call$2(this.children$1(0, child), this.scanner.spanFrom$1(start));
  63029. this.whitespaceWithoutComments$0();
  63030. return result;
  63031. },
  63032. _withChildren$3(child, start, create) {
  63033. return this._withChildren$1$3(child, start, create, type$.dynamic);
  63034. },
  63035. _urlString$0() {
  63036. var innerError, stackTrace, t2, exception,
  63037. t1 = this.scanner,
  63038. start = new A._SpanScannerState(t1, t1._string_scanner$_position),
  63039. url = this.string$0();
  63040. try {
  63041. t2 = A.Uri_parse(url);
  63042. return t2;
  63043. } catch (exception) {
  63044. t2 = A.unwrapException(exception);
  63045. if (type$.FormatException._is(t2)) {
  63046. innerError = t2;
  63047. stackTrace = A.getTraceFromException(exception);
  63048. this.error$3(0, "Invalid URL: " + J.get$message$x(innerError), t1.spanFrom$1(start), stackTrace);
  63049. } else
  63050. throw exception;
  63051. }
  63052. },
  63053. _publicIdentifier$0() {
  63054. var _this = this,
  63055. t1 = _this.scanner,
  63056. t2 = t1._string_scanner$_position,
  63057. result = _this.identifier$0();
  63058. _this._assertPublic$2(result, new A.StylesheetParser__publicIdentifier_closure(_this, new A._SpanScannerState(t1, t2)));
  63059. return result;
  63060. },
  63061. _assertPublic$2(identifier, span) {
  63062. var first = identifier.charCodeAt(0);
  63063. if (!(first === 45 || first === 95))
  63064. return;
  63065. this.error$2(0, string$.Privat, span.call$0());
  63066. },
  63067. _addOrInject$2(buffer, expression) {
  63068. if (expression instanceof A.StringExpression && !expression.hasQuotes)
  63069. buffer.addInterpolation$1(expression.text);
  63070. else
  63071. buffer.add$2(0, expression, expression.get$span(expression));
  63072. },
  63073. get$plainCss() {
  63074. return false;
  63075. }
  63076. };
  63077. A.StylesheetParser_parse_closure.prototype = {
  63078. call$0() {
  63079. var statements, t4,
  63080. t1 = this.$this,
  63081. t2 = t1.scanner,
  63082. t3 = t2._string_scanner$_position;
  63083. t2.scanChar$1(65279);
  63084. statements = t1.statements$1(new A.StylesheetParser_parse__closure(t1));
  63085. t2.expectDone$0();
  63086. t4 = t1._globalVariables.get$values(0);
  63087. B.JSArray_methods.addAll$1(statements, A.MappedIterable_MappedIterable(t4, new A.StylesheetParser_parse__closure0(), A._instanceType(t4)._eval$1("Iterable.E"), type$.Statement));
  63088. return A.Stylesheet$internal(statements, t2.spanFrom$1(new A._SpanScannerState(t2, t3)), t1.warnings, t1.get$plainCss());
  63089. },
  63090. $signature: 354
  63091. };
  63092. A.StylesheetParser_parse__closure.prototype = {
  63093. call$0() {
  63094. var t1 = this.$this;
  63095. if (t1.scanner.scan$1("@charset")) {
  63096. t1.whitespace$0();
  63097. t1.string$0();
  63098. return null;
  63099. }
  63100. return t1._statement$1$root(true);
  63101. },
  63102. $signature: 355
  63103. };
  63104. A.StylesheetParser_parse__closure0.prototype = {
  63105. call$1(declaration) {
  63106. var t1 = declaration.expression;
  63107. return A.VariableDeclaration$(declaration.name, new A.NullExpression(t1.get$span(t1)), declaration.span, null, false, true, null);
  63108. },
  63109. $signature: 357
  63110. };
  63111. A.StylesheetParser_parseArgumentDeclaration_closure.prototype = {
  63112. call$0() {
  63113. var $arguments,
  63114. t1 = this.$this,
  63115. t2 = t1.scanner;
  63116. t2.expectChar$2$name(64, "@-rule");
  63117. t1.identifier$0();
  63118. t1.whitespace$0();
  63119. t1.identifier$0();
  63120. $arguments = t1._argumentDeclaration$0();
  63121. t1.whitespace$0();
  63122. t2.expectChar$1(123);
  63123. return $arguments;
  63124. },
  63125. $signature: 359
  63126. };
  63127. A.StylesheetParser_parseVariableDeclaration_closure.prototype = {
  63128. call$0() {
  63129. var t1 = this.$this;
  63130. return t1.lookingAtIdentifier$0() ? t1._variableDeclarationWithNamespace$0() : t1.variableDeclarationWithoutNamespace$0();
  63131. },
  63132. $signature: 177
  63133. };
  63134. A.StylesheetParser_parseUseRule_closure.prototype = {
  63135. call$0() {
  63136. var t1 = this.$this,
  63137. t2 = t1.scanner,
  63138. t3 = t2._string_scanner$_position;
  63139. t2.expectChar$2$name(64, "@-rule");
  63140. t1.expectIdentifier$1("use");
  63141. t1.whitespace$0();
  63142. return t1._useRule$1(new A._SpanScannerState(t2, t3));
  63143. },
  63144. $signature: 361
  63145. };
  63146. A.StylesheetParser__parseSingleProduction_closure.prototype = {
  63147. call$0() {
  63148. var result = this.production.call$0();
  63149. this.$this.scanner.expectDone$0();
  63150. return result;
  63151. },
  63152. $signature() {
  63153. return this.T._eval$1("0()");
  63154. }
  63155. };
  63156. A.StylesheetParser__statement_closure.prototype = {
  63157. call$0() {
  63158. return this.$this._statement$0();
  63159. },
  63160. $signature: 125
  63161. };
  63162. A.StylesheetParser_variableDeclarationWithoutNamespace_closure.prototype = {
  63163. call$0() {
  63164. return this.$this.scanner.spanFrom$1(this.start);
  63165. },
  63166. $signature: 29
  63167. };
  63168. A.StylesheetParser_variableDeclarationWithoutNamespace_closure0.prototype = {
  63169. call$0() {
  63170. return this.declaration;
  63171. },
  63172. $signature: 177
  63173. };
  63174. A.StylesheetParser__styleRule_closure.prototype = {
  63175. call$2(children, span) {
  63176. var _this = this,
  63177. t1 = _this.$this;
  63178. if (t1.get$indented() && children.length === 0)
  63179. t1.warnings.push(new A._Record_3_deprecation_message_span(null, string$.This_s, _this._box_0.interpolation.span));
  63180. t1._inStyleRule = _this.wasInStyleRule;
  63181. return A.StyleRule$(_this._box_0.interpolation, children, t1.scanner.spanFrom$1(_this.start));
  63182. },
  63183. $signature: 362
  63184. };
  63185. A.StylesheetParser__tryDeclarationChildren_closure.prototype = {
  63186. call$2(children, span) {
  63187. return A.Declaration$nested(this.name, children, span, this.value);
  63188. },
  63189. $signature: 363
  63190. };
  63191. A.StylesheetParser__atRootRule_closure.prototype = {
  63192. call$2(children, span) {
  63193. return A.AtRootRule$(children, span, this.query);
  63194. },
  63195. $signature: 178
  63196. };
  63197. A.StylesheetParser__atRootRule_closure0.prototype = {
  63198. call$2(children, span) {
  63199. return A.AtRootRule$(children, span, null);
  63200. },
  63201. $signature: 178
  63202. };
  63203. A.StylesheetParser__eachRule_closure.prototype = {
  63204. call$2(children, span) {
  63205. var _this = this;
  63206. _this.$this._inControlDirective = _this.wasInControlDirective;
  63207. return A.EachRule$(_this.variables, _this.list, children, span);
  63208. },
  63209. $signature: 370
  63210. };
  63211. A.StylesheetParser__functionRule_closure.prototype = {
  63212. call$2(children, span) {
  63213. return A.FunctionRule$(this.name, this.$arguments, children, span, this.precedingComment);
  63214. },
  63215. $signature: 371
  63216. };
  63217. A.StylesheetParser__forRule_closure.prototype = {
  63218. call$0() {
  63219. var t1 = this.$this;
  63220. if (!t1.lookingAtIdentifier$0())
  63221. return false;
  63222. if (t1.scanIdentifier$1("to"))
  63223. return this._box_0.exclusive = true;
  63224. else if (t1.scanIdentifier$1("through")) {
  63225. this._box_0.exclusive = false;
  63226. return true;
  63227. } else
  63228. return false;
  63229. },
  63230. $signature: 24
  63231. };
  63232. A.StylesheetParser__forRule_closure0.prototype = {
  63233. call$2(children, span) {
  63234. var t1, _this = this;
  63235. _this.$this._inControlDirective = _this.wasInControlDirective;
  63236. t1 = _this._box_0.exclusive;
  63237. t1.toString;
  63238. return A.ForRule$(_this.variable, _this.from, _this.to, children, span, t1);
  63239. },
  63240. $signature: 372
  63241. };
  63242. A.StylesheetParser__memberList_closure.prototype = {
  63243. call$0() {
  63244. var t1 = this.$this;
  63245. if (t1.scanner.peekChar$0() === 36)
  63246. this.variables.add$1(0, t1.variableName$0());
  63247. else
  63248. this.identifiers.add$1(0, t1.identifier$1$normalize(true));
  63249. },
  63250. $signature: 1
  63251. };
  63252. A.StylesheetParser__includeRule_closure.prototype = {
  63253. call$2(children, span) {
  63254. return A.ContentBlock$(this.contentArguments_, children, span);
  63255. },
  63256. $signature: 373
  63257. };
  63258. A.StylesheetParser_mediaRule_closure.prototype = {
  63259. call$2(children, span) {
  63260. return A.MediaRule$(this.query, children, span);
  63261. },
  63262. $signature: 382
  63263. };
  63264. A.StylesheetParser__mixinRule_closure.prototype = {
  63265. call$2(children, span) {
  63266. var _this = this;
  63267. _this.$this._stylesheet$_inMixin = false;
  63268. return A.MixinRule$(_this.name, _this.$arguments, children, span, _this.precedingComment);
  63269. },
  63270. $signature: 389
  63271. };
  63272. A.StylesheetParser_mozDocumentRule_closure.prototype = {
  63273. call$2(children, span) {
  63274. var _this = this;
  63275. if (_this._box_0.needsDeprecationWarning)
  63276. _this.$this.warnings.push(new A._Record_3_deprecation_message_span(B.Deprecation_T5f, string$.x40_moz_, span));
  63277. return A.AtRule$(_this.name, span, children, _this.value);
  63278. },
  63279. $signature: 179
  63280. };
  63281. A.StylesheetParser_supportsRule_closure.prototype = {
  63282. call$2(children, span) {
  63283. return A.SupportsRule$(this.condition, children, span);
  63284. },
  63285. $signature: 391
  63286. };
  63287. A.StylesheetParser__whileRule_closure.prototype = {
  63288. call$2(children, span) {
  63289. this.$this._inControlDirective = this.wasInControlDirective;
  63290. return A.WhileRule$(this.condition, children, span);
  63291. },
  63292. $signature: 392
  63293. };
  63294. A.StylesheetParser_unknownAtRule_closure.prototype = {
  63295. call$2(children, span) {
  63296. return A.AtRule$(this.name, span, children, this._box_0.value);
  63297. },
  63298. $signature: 179
  63299. };
  63300. A.StylesheetParser__expression_resetState.prototype = {
  63301. call$0() {
  63302. var t2,
  63303. t1 = this._box_0;
  63304. t1.operands_ = t1.operators_ = t1.spaceExpressions_ = t1.commaExpressions_ = null;
  63305. t2 = this.$this;
  63306. t2.scanner.set$state(this.start);
  63307. t1.allowSlash = true;
  63308. t1.singleExpression_ = t2._singleExpression$0();
  63309. },
  63310. $signature: 0
  63311. };
  63312. A.StylesheetParser__expression_resolveOneOperation.prototype = {
  63313. call$0() {
  63314. var t2, t3, t4, t5, t6, t7, _this = this,
  63315. t1 = _this._box_0,
  63316. operator = t1.operators_.pop(),
  63317. left = t1.operands_.pop(),
  63318. right = t1.singleExpression_;
  63319. if (right == null) {
  63320. t2 = _this.$this.scanner;
  63321. t3 = operator.operator.length;
  63322. t2.error$3$length$position(0, "Expected expression.", t3, t2._string_scanner$_position - t3);
  63323. }
  63324. if (t1.allowSlash) {
  63325. t2 = _this.$this;
  63326. t2 = !t2._inParentheses && operator === B.BinaryOperator_U77 && t2._isSlashOperand$1(left) && t2._isSlashOperand$1(right);
  63327. } else
  63328. t2 = false;
  63329. if (t2)
  63330. t1.singleExpression_ = new A.BinaryOperationExpression(B.BinaryOperator_U77, left, right, true);
  63331. else {
  63332. t1.singleExpression_ = new A.BinaryOperationExpression(operator, left, right, false);
  63333. t2 = t1.allowSlash = false;
  63334. if (B.BinaryOperator_u15 === operator || B.BinaryOperator_SjO === operator) {
  63335. t3 = _this.$this;
  63336. t4 = t3.scanner.string;
  63337. t5 = right.get$span(right);
  63338. t5 = t5.get$start(t5);
  63339. t6 = right.get$span(right);
  63340. t7 = operator.operator;
  63341. if (B.JSString_methods.substring$2(t4, t5.offset - 1, t6.get$start(t6).offset) === t7) {
  63342. t2 = left.get$span(left);
  63343. t2 = t4.charCodeAt(t2.get$end(t2).offset);
  63344. t2 = t2 === 32 || t2 === 9 || t2 === 10 || t2 === 13 || t2 === 12;
  63345. }
  63346. if (t2) {
  63347. t2 = left.toString$0(0);
  63348. t4 = right.toString$0(0);
  63349. t5 = left.toString$0(0);
  63350. t6 = right.toString$0(0);
  63351. t1 = t1.singleExpression_;
  63352. t3.warnings.push(new A._Record_3_deprecation_message_span(B.Deprecation_2My, "This operation is parsed as:\n\n " + t2 + " " + t7 + " " + t4 + string$.x0a_but_ + t5 + " (" + t7 + t6 + ")\n\nAdd a space after " + t7 + string$.x20to_cl, t1.get$span(t1)));
  63353. }
  63354. }
  63355. }
  63356. },
  63357. $signature: 0
  63358. };
  63359. A.StylesheetParser__expression_resolveOperations.prototype = {
  63360. call$0() {
  63361. var t1,
  63362. operators = this._box_0.operators_;
  63363. if (operators == null)
  63364. return;
  63365. for (t1 = this.resolveOneOperation; operators.length !== 0;)
  63366. t1.call$0();
  63367. },
  63368. $signature: 0
  63369. };
  63370. A.StylesheetParser__expression_addSingleExpression.prototype = {
  63371. call$1(expression) {
  63372. var t2, spaceExpressions, _this = this,
  63373. t1 = _this._box_0;
  63374. if (t1.singleExpression_ != null) {
  63375. t2 = _this.$this;
  63376. if (t2._inParentheses) {
  63377. t2._inParentheses = false;
  63378. if (t1.allowSlash) {
  63379. _this.resetState.call$0();
  63380. return;
  63381. }
  63382. }
  63383. spaceExpressions = t1.spaceExpressions_;
  63384. if (spaceExpressions == null)
  63385. spaceExpressions = t1.spaceExpressions_ = A._setArrayType([], type$.JSArray_Expression);
  63386. _this.resolveOperations.call$0();
  63387. t2 = t1.singleExpression_;
  63388. t2.toString;
  63389. spaceExpressions.push(t2);
  63390. t1.allowSlash = true;
  63391. }
  63392. t1.singleExpression_ = expression;
  63393. },
  63394. $signature: 393
  63395. };
  63396. A.StylesheetParser__expression_addOperator.prototype = {
  63397. call$1(operator) {
  63398. var t2, t3, operators, operands, t4, singleExpression,
  63399. t1 = this.$this;
  63400. if (t1.get$plainCss() && operator !== B.BinaryOperator_wdM && operator !== B.BinaryOperator_u15 && operator !== B.BinaryOperator_SjO && operator !== B.BinaryOperator_2No && operator !== B.BinaryOperator_U77) {
  63401. t2 = t1.scanner;
  63402. t3 = operator.operator.length;
  63403. t2.error$3$length$position(0, "Operators aren't allowed in plain CSS.", t3, t2._string_scanner$_position - t3);
  63404. }
  63405. t2 = this._box_0;
  63406. t2.allowSlash = t2.allowSlash && operator === B.BinaryOperator_U77;
  63407. operators = t2.operators_;
  63408. if (operators == null)
  63409. operators = t2.operators_ = A._setArrayType([], type$.JSArray_BinaryOperator);
  63410. operands = t2.operands_;
  63411. if (operands == null)
  63412. operands = t2.operands_ = A._setArrayType([], type$.JSArray_Expression);
  63413. t3 = this.resolveOneOperation;
  63414. t4 = operator.precedence;
  63415. while (true) {
  63416. if (!(operators.length !== 0 && B.JSArray_methods.get$last(operators).precedence >= t4))
  63417. break;
  63418. t3.call$0();
  63419. }
  63420. operators.push(operator);
  63421. singleExpression = t2.singleExpression_;
  63422. if (singleExpression == null) {
  63423. t3 = t1.scanner;
  63424. t4 = operator.operator.length;
  63425. t3.error$3$length$position(0, "Expected expression.", t4, t3._string_scanner$_position - t4);
  63426. }
  63427. operands.push(singleExpression);
  63428. t1.whitespace$0();
  63429. t2.singleExpression_ = t1._singleExpression$0();
  63430. },
  63431. $signature: 394
  63432. };
  63433. A.StylesheetParser__expression_resolveSpaceExpressions.prototype = {
  63434. call$0() {
  63435. var t1, spaceExpressions, singleExpression, t2;
  63436. this.resolveOperations.call$0();
  63437. t1 = this._box_0;
  63438. spaceExpressions = t1.spaceExpressions_;
  63439. if (spaceExpressions == null)
  63440. return;
  63441. singleExpression = t1.singleExpression_;
  63442. if (singleExpression == null)
  63443. this.$this.scanner.error$1(0, "Expected expression.");
  63444. spaceExpressions.push(singleExpression);
  63445. t2 = B.JSArray_methods.get$first(spaceExpressions);
  63446. t2 = t2.get$span(t2).expand$1(0, singleExpression.get$span(singleExpression));
  63447. t1.singleExpression_ = new A.ListExpression(A.List_List$unmodifiable(spaceExpressions, type$.Expression), B.ListSeparator_nbm, false, t2);
  63448. t1.spaceExpressions_ = null;
  63449. },
  63450. $signature: 0
  63451. };
  63452. A.StylesheetParser_expressionUntilComma_closure.prototype = {
  63453. call$0() {
  63454. return this.$this.scanner.peekChar$0() === 44;
  63455. },
  63456. $signature: 24
  63457. };
  63458. A.StylesheetParser__isHexColor_closure.prototype = {
  63459. call$1(char) {
  63460. return A.CharacterExtension_get_isHex(char);
  63461. },
  63462. $signature: 47
  63463. };
  63464. A.StylesheetParser__unicodeRange_closure.prototype = {
  63465. call$1(char) {
  63466. return char != null && A.CharacterExtension_get_isHex(char);
  63467. },
  63468. $signature: 32
  63469. };
  63470. A.StylesheetParser__unicodeRange_closure0.prototype = {
  63471. call$1(char) {
  63472. return char != null && A.CharacterExtension_get_isHex(char);
  63473. },
  63474. $signature: 32
  63475. };
  63476. A.StylesheetParser_namespacedExpression_closure.prototype = {
  63477. call$0() {
  63478. return this.$this.scanner.spanFrom$1(this.start);
  63479. },
  63480. $signature: 29
  63481. };
  63482. A.StylesheetParser_trySpecialFunction_closure.prototype = {
  63483. call$1(contents) {
  63484. return new A.StringExpression(contents, false);
  63485. },
  63486. $signature: 395
  63487. };
  63488. A.StylesheetParser__expressionUntilComparison_closure.prototype = {
  63489. call$0() {
  63490. var t1 = this.$this.scanner,
  63491. _0_0 = t1.peekChar$0();
  63492. $label0$0: {
  63493. if (61 === _0_0) {
  63494. t1 = t1.peekChar$1(1) !== 61;
  63495. break $label0$0;
  63496. }
  63497. if (60 === _0_0 || 62 === _0_0) {
  63498. t1 = true;
  63499. break $label0$0;
  63500. }
  63501. t1 = false;
  63502. break $label0$0;
  63503. }
  63504. return t1;
  63505. },
  63506. $signature: 24
  63507. };
  63508. A.StylesheetParser__publicIdentifier_closure.prototype = {
  63509. call$0() {
  63510. return this.$this.scanner.spanFrom$1(this.start);
  63511. },
  63512. $signature: 29
  63513. };
  63514. A.StylesheetGraph.prototype = {
  63515. modifiedSince$3(url, since, baseImporter) {
  63516. var node = this._stylesheet_graph$_add$3(url, baseImporter, null);
  63517. if (node == null)
  63518. return true;
  63519. return new A.StylesheetGraph_modifiedSince_transitiveModificationTime(this).call$1(node).isAfter$1(since);
  63520. },
  63521. _stylesheet_graph$_add$3(url, baseImporter, baseUrl) {
  63522. var importer, canonicalUrl, _this = this,
  63523. result = _this._ignoreErrors$1(new A.StylesheetGraph__add_closure(_this, url, baseImporter, baseUrl));
  63524. if (type$.Record_3_nullable_Object_and_nullable_Object_and_nullable_Object_originalUrl._is(result)) {
  63525. importer = result._0;
  63526. canonicalUrl = result._1;
  63527. _this.addCanonical$3(importer, canonicalUrl, result._2);
  63528. return _this._nodes.$index(0, canonicalUrl);
  63529. } else
  63530. return null;
  63531. },
  63532. addCanonical$4$recanonicalize(importer, canonicalUrl, originalUrl, recanonicalize) {
  63533. var stylesheet, _this = this,
  63534. t1 = _this._nodes;
  63535. if (t1.$index(0, canonicalUrl) != null)
  63536. return B.Set_empty3;
  63537. stylesheet = _this._ignoreErrors$1(new A.StylesheetGraph_addCanonical_closure(_this, importer, canonicalUrl, originalUrl));
  63538. if (stylesheet == null)
  63539. return B.Set_empty3;
  63540. t1.$indexSet(0, canonicalUrl, A.StylesheetNode$_(stylesheet, importer, canonicalUrl, _this._upstreamNodes$3(stylesheet, importer, canonicalUrl)));
  63541. return recanonicalize ? _this._recanonicalizeImports$2(importer, canonicalUrl) : B.Set_empty3;
  63542. },
  63543. addCanonical$3(importer, canonicalUrl, originalUrl) {
  63544. return this.addCanonical$4$recanonicalize(importer, canonicalUrl, originalUrl, true);
  63545. },
  63546. _upstreamNodes$3(stylesheet, baseImporter, baseUrl) {
  63547. var t6, t7, t8, t9, t10,
  63548. t1 = type$.Uri,
  63549. active = A.LinkedHashSet_LinkedHashSet$_literal([baseUrl], t1),
  63550. t2 = A.LinkedHashSet_LinkedHashSet$_empty(t1),
  63551. t3 = A.LinkedHashSet_LinkedHashSet$_empty(t1),
  63552. t4 = A.LinkedHashSet_LinkedHashSet$_empty(t1),
  63553. t5 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
  63554. new A._FindDependenciesVisitor(t2, t3, t4, t5, A.LinkedHashSet_LinkedHashSet$_empty(type$.nullable_String)).visitChildren$1(stylesheet.children);
  63555. t6 = type$.UnmodifiableSetView_Uri;
  63556. t2 = new A.UnmodifiableSetView0(t2, t6);
  63557. t3 = new A.UnmodifiableSetView0(t3, t6);
  63558. t4 = new A.UnmodifiableSetView0(t4, t6);
  63559. t7 = type$.nullable_StylesheetNode;
  63560. t8 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t7);
  63561. for (t9 = new A.UnionSet(A.LinkedHashSet_LinkedHashSet$_literal([t2, t3, t4], type$.Set_Uri), type$.UnionSet_Uri).get$_union_set$_iterable(), t9 = t9.get$iterator(t9); t9.moveNext$0();) {
  63562. t10 = t9.get$current(t9);
  63563. t8.$indexSet(0, t10, this._nodeFor$4(t10, baseImporter, baseUrl, active));
  63564. }
  63565. t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t7);
  63566. for (t2 = new A.DependencyReport(t2, t3, t4, new A.UnmodifiableSetView0(t5, t6)).imports._base.get$iterator(0); t2.moveNext$0();) {
  63567. t3 = t2.get$current(0);
  63568. t1.$indexSet(0, t3, this._nodeFor$5$forImport(t3, baseImporter, baseUrl, active, true));
  63569. }
  63570. return new A._Record_2_imports_modules(t1, t8);
  63571. },
  63572. reload$1(canonicalUrl) {
  63573. var stylesheet, upstream, _this = this,
  63574. node = _this._nodes.$index(0, canonicalUrl);
  63575. if (node == null)
  63576. throw A.wrapException(A.StateError$(canonicalUrl.toString$0(0) + " is not in the dependency graph."));
  63577. _this._transitiveModificationTimes.clear$0(0);
  63578. _this.importCache.clearImport$1(canonicalUrl);
  63579. stylesheet = _this._ignoreErrors$1(new A.StylesheetGraph_reload_closure(_this, node, canonicalUrl));
  63580. if (stylesheet == null)
  63581. return false;
  63582. node._stylesheet = stylesheet;
  63583. upstream = _this._upstreamNodes$3(stylesheet, node.importer, canonicalUrl);
  63584. node._replaceUpstream$2(upstream._1, upstream._0);
  63585. return true;
  63586. },
  63587. _recanonicalizeImports$2(importer, canonicalUrl) {
  63588. var t1, t2, t3, t4, t5, newUpstream, newUpstreamImports, _this = this,
  63589. changed = A.LinkedHashSet_LinkedHashSet$_empty(type$.StylesheetNode);
  63590. for (t1 = _this._nodes.get$values(0).get$iterator(0), t2 = type$.UnmodifiableMapView_of_Uri_and_nullable_StylesheetNode, t3 = type$.Uri, t4 = type$.nullable_StylesheetNode; t1.moveNext$0();) {
  63591. t5 = t1.get$current(0);
  63592. newUpstream = _this._recanonicalizeImportsForNode$4$forImport(t5, importer, canonicalUrl, false);
  63593. newUpstreamImports = _this._recanonicalizeImportsForNode$4$forImport(t5, importer, canonicalUrl, true);
  63594. if (newUpstream.__js_helper$_length !== 0 || newUpstreamImports.__js_helper$_length !== 0) {
  63595. changed.add$1(0, t5);
  63596. t5._replaceUpstream$2(A.mergeMaps(new A.UnmodifiableMapView(t5._upstream, t2), newUpstream, t3, t4), A.mergeMaps(new A.UnmodifiableMapView(t5._upstreamImports, t2), newUpstreamImports, t3, t4));
  63597. }
  63598. }
  63599. if (changed._collection$_length !== 0)
  63600. _this._transitiveModificationTimes.clear$0(0);
  63601. return changed;
  63602. },
  63603. _recanonicalizeImportsForNode$4$forImport(node, importer, canonicalUrl, forImport) {
  63604. var url, result, t2, newMap, t3, t4, t5, t6, upstream, exception, newCanonicalUrl,
  63605. t1 = type$.UnmodifiableMapView_of_Uri_and_nullable_StylesheetNode,
  63606. map = forImport ? new A.UnmodifiableMapView(node._upstreamImports, t1) : new A.UnmodifiableMapView(node._upstream, t1);
  63607. t1 = type$.Uri;
  63608. t2 = type$.nullable_StylesheetNode;
  63609. newMap = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
  63610. for (t1 = A.MapExtensions_get_pairs(map, t1, t2), t1 = t1.get$iterator(t1), t2 = this._nodes, t3 = this.importCache, t4 = node.importer, t5 = node.canonicalUrl; t1.moveNext$0();) {
  63611. t6 = t1.get$current(t1);
  63612. url = null;
  63613. url = t6._0;
  63614. upstream = t6._1;
  63615. if (!importer.couldCanonicalize$2(url, canonicalUrl))
  63616. continue;
  63617. t3.clearCanonicalize$1(url);
  63618. result = null;
  63619. try {
  63620. result = t3.canonicalize$4$baseImporter$baseUrl$forImport(0, url, t4, t5, forImport);
  63621. } catch (exception) {
  63622. }
  63623. t6 = result;
  63624. newCanonicalUrl = t6 == null ? null : t6._1;
  63625. if (J.$eq$(newCanonicalUrl, upstream == null ? null : upstream.canonicalUrl))
  63626. continue;
  63627. t6 = url;
  63628. newMap.$indexSet(0, t6, result == null ? null : t2.$index(0, newCanonicalUrl));
  63629. }
  63630. return newMap;
  63631. },
  63632. _nodeFor$5$forImport(url, baseImporter, baseUrl, active, forImport) {
  63633. var canonicalUrl, t2, _1_0, stylesheet, t3, t4, node, _this = this, t1 = {},
  63634. result = _this._ignoreErrors$1(new A.StylesheetGraph__nodeFor_closure(_this, url, baseImporter, baseUrl, forImport));
  63635. if (result == null)
  63636. return null;
  63637. t1.originalUrl = t1.canonicalUrl = t1.importer = null;
  63638. t1.importer = result._0;
  63639. canonicalUrl = t1.canonicalUrl = result._1;
  63640. t1.originalUrl = result._2;
  63641. t2 = _this._nodes;
  63642. _1_0 = t2.$index(0, canonicalUrl);
  63643. if (_1_0 != null)
  63644. return _1_0;
  63645. if (active.contains$1(0, canonicalUrl))
  63646. return null;
  63647. stylesheet = _this._ignoreErrors$1(new A.StylesheetGraph__nodeFor_closure0(t1, _this));
  63648. if (stylesheet == null)
  63649. return null;
  63650. active.add$1(0, t1.canonicalUrl);
  63651. t3 = t1.importer;
  63652. t4 = t1.canonicalUrl;
  63653. node = A.StylesheetNode$_(stylesheet, t3, t4, _this._upstreamNodes$3(stylesheet, t3, t4));
  63654. active.remove$1(0, t1.canonicalUrl);
  63655. t2.$indexSet(0, t1.canonicalUrl, node);
  63656. return node;
  63657. },
  63658. _nodeFor$4(url, baseImporter, baseUrl, active) {
  63659. return this._nodeFor$5$forImport(url, baseImporter, baseUrl, active, false);
  63660. },
  63661. _ignoreErrors$1$1(callback) {
  63662. var t1, exception;
  63663. try {
  63664. t1 = callback.call$0();
  63665. return t1;
  63666. } catch (exception) {
  63667. return null;
  63668. }
  63669. },
  63670. _ignoreErrors$1(callback) {
  63671. return this._ignoreErrors$1$1(callback, type$.dynamic);
  63672. }
  63673. };
  63674. A.StylesheetGraph_modifiedSince_transitiveModificationTime.prototype = {
  63675. call$1(node) {
  63676. return this.$this._transitiveModificationTimes.putIfAbsent$2(node.canonicalUrl, new A.StylesheetGraph_modifiedSince_transitiveModificationTime_closure(node, this));
  63677. },
  63678. $signature: 398
  63679. };
  63680. A.StylesheetGraph_modifiedSince_transitiveModificationTime_closure.prototype = {
  63681. call$0() {
  63682. var t2, t3, upstreamTime, t4,
  63683. t1 = this.node,
  63684. latest = t1.importer.modificationTime$1(t1.canonicalUrl);
  63685. for (t1 = t1._upstream.get$values(0).followedBy$1(0, t1._upstreamImports.get$values(0)), t1 = new A.FollowedByIterator(J.get$iterator$ax(t1.__internal$_first), t1._second), t2 = this.transitiveModificationTime; t1.moveNext$0();) {
  63686. t3 = t1._currentIterator;
  63687. t3 = t3.get$current(t3);
  63688. upstreamTime = t3 == null ? new A.DateTime(Date.now(), 0, false) : t2.call$1(t3);
  63689. t3 = upstreamTime._value;
  63690. t4 = latest._value;
  63691. if (t3 <= t4)
  63692. t3 = t3 === t4 && upstreamTime._microsecond > latest._microsecond;
  63693. else
  63694. t3 = true;
  63695. if (t3)
  63696. latest = upstreamTime;
  63697. }
  63698. return latest;
  63699. },
  63700. $signature: 160
  63701. };
  63702. A.StylesheetGraph__add_closure.prototype = {
  63703. call$0() {
  63704. var _this = this;
  63705. return _this.$this.importCache.canonicalize$3$baseImporter$baseUrl(0, _this.url, _this.baseImporter, _this.baseUrl);
  63706. },
  63707. $signature: 138
  63708. };
  63709. A.StylesheetGraph_addCanonical_closure.prototype = {
  63710. call$0() {
  63711. var _this = this;
  63712. return _this.$this.importCache.importCanonical$3$originalUrl(_this.importer, _this.canonicalUrl, _this.originalUrl);
  63713. },
  63714. $signature: 104
  63715. };
  63716. A.StylesheetGraph_reload_closure.prototype = {
  63717. call$0() {
  63718. return this.$this.importCache.importCanonical$2(this.node.importer, this.canonicalUrl);
  63719. },
  63720. $signature: 104
  63721. };
  63722. A.StylesheetGraph__nodeFor_closure.prototype = {
  63723. call$0() {
  63724. var _this = this;
  63725. return _this.$this.importCache.canonicalize$4$baseImporter$baseUrl$forImport(0, _this.url, _this.baseImporter, _this.baseUrl, _this.forImport);
  63726. },
  63727. $signature: 138
  63728. };
  63729. A.StylesheetGraph__nodeFor_closure0.prototype = {
  63730. call$0() {
  63731. var t1 = this._box_0;
  63732. return this.$this.importCache.importCanonical$3$originalUrl(t1.importer, t1.canonicalUrl, t1.originalUrl);
  63733. },
  63734. $signature: 104
  63735. };
  63736. A.StylesheetNode.prototype = {
  63737. StylesheetNode$_$4(_stylesheet, importer, canonicalUrl, allUpstream) {
  63738. var t1, t2;
  63739. for (t1 = this._upstream.get$values(0).followedBy$1(0, this._upstreamImports.get$values(0)), t1 = new A.FollowedByIterator(J.get$iterator$ax(t1.__internal$_first), t1._second); t1.moveNext$0();) {
  63740. t2 = t1._currentIterator;
  63741. t2 = t2.get$current(t2);
  63742. if (t2 != null)
  63743. t2._downstream.add$1(0, this);
  63744. }
  63745. },
  63746. _replaceUpstream$2(newUpstream, newUpstreamImports) {
  63747. var t3, oldUpstream, newUpstreamSet, _this = this,
  63748. t1 = type$.nullable_StylesheetNode,
  63749. t2 = A.LinkedHashSet_LinkedHashSet$of(_this._upstream.get$values(0), t1);
  63750. t2.addAll$1(0, _this._upstreamImports.get$values(0));
  63751. t3 = type$.StylesheetNode;
  63752. oldUpstream = A.SetExtension_removeNull(t2, t3);
  63753. t1 = A.LinkedHashSet_LinkedHashSet$of(newUpstream.get$values(0), t1);
  63754. t1.addAll$1(0, newUpstreamImports.get$values(0));
  63755. newUpstreamSet = A.SetExtension_removeNull(t1, t3);
  63756. for (t1 = oldUpstream.difference$1(newUpstreamSet), t1 = t1.get$iterator(t1); t1.moveNext$0();)
  63757. t1.get$current(t1)._downstream.remove$1(0, _this);
  63758. for (t1 = newUpstreamSet.difference$1(oldUpstream), t1 = t1.get$iterator(t1); t1.moveNext$0();)
  63759. t1.get$current(t1)._downstream.add$1(0, _this);
  63760. _this._upstream = newUpstream;
  63761. _this._upstreamImports = newUpstreamImports;
  63762. },
  63763. _stylesheet_graph$_remove$0() {
  63764. var t1, t2, t3, t4, _i, url, _this = this;
  63765. for (t1 = A.LinkedHashSet_LinkedHashSet$of(_this._upstream.get$values(0), type$.nullable_StylesheetNode), t1.addAll$1(0, _this._upstreamImports.get$values(0)), t1 = A._LinkedHashSetIterator$(t1, t1._modifications, A._instanceType(t1)._precomputed1), t2 = t1.$ti._precomputed1; t1.moveNext$0();) {
  63766. t3 = t1._collection$_current;
  63767. if (t3 == null)
  63768. t3 = t2._as(t3);
  63769. if (t3 == null)
  63770. continue;
  63771. t3._downstream.remove$1(0, _this);
  63772. }
  63773. for (t1 = _this._downstream.get$iterator(0); t1.moveNext$0();) {
  63774. t2 = t1.get$current(0);
  63775. for (t3 = t2._upstream, t4 = A._instanceType(t3)._eval$1("LinkedHashMapKeyIterable<1>"), t4 = A.List_List$of(new A.LinkedHashMapKeyIterable(t3, t4), true, t4._eval$1("Iterable.E")), t3 = t4.length, _i = 0; _i < t3; ++_i) {
  63776. url = t4[_i];
  63777. if (J.$eq$(t2._upstream.$index(0, url), _this)) {
  63778. t2._upstream.$indexSet(0, url, null);
  63779. break;
  63780. }
  63781. }
  63782. for (t3 = t2._upstreamImports, t4 = A._instanceType(t3)._eval$1("LinkedHashMapKeyIterable<1>"), t4 = A.List_List$of(new A.LinkedHashMapKeyIterable(t3, t4), true, t4._eval$1("Iterable.E")), t3 = t4.length, _i = 0; _i < t3; ++_i) {
  63783. url = t4[_i];
  63784. if (J.$eq$(t2._upstreamImports.$index(0, url), _this)) {
  63785. t2._upstreamImports.$indexSet(0, url, null);
  63786. break;
  63787. }
  63788. }
  63789. }
  63790. },
  63791. toString$0(_) {
  63792. var t1 = this._stylesheet.span;
  63793. t1 = A.NullableExtension_andThen(t1.get$sourceUrl(t1), A.path__prettyUri$closure());
  63794. return t1 == null ? "<unknown>" : t1;
  63795. }
  63796. };
  63797. A.Syntax.prototype = {
  63798. _enumToString$0() {
  63799. return "Syntax." + this._name;
  63800. },
  63801. toString$0(_) {
  63802. return this._syntax$_name;
  63803. }
  63804. };
  63805. A.Box.prototype = {
  63806. $eq(_, other) {
  63807. if (other == null)
  63808. return false;
  63809. return this.$ti._is(other) && other._box$_inner === this._box$_inner;
  63810. },
  63811. get$hashCode(_) {
  63812. return A.Primitives_objectHashCode(this._box$_inner);
  63813. }
  63814. };
  63815. A.ModifiableBox.prototype = {};
  63816. A.LazyFileSpan.prototype = {
  63817. get$span(_) {
  63818. var t1 = this._lazy_file_span$_span;
  63819. return t1 == null ? this._lazy_file_span$_span = this._builder.call$0() : t1;
  63820. },
  63821. compareTo$1(_, other) {
  63822. return this.get$span(0).compareTo$1(0, other);
  63823. },
  63824. get$context(_) {
  63825. var t1 = this.get$span(0);
  63826. return t1.get$context(t1);
  63827. },
  63828. get$end(_) {
  63829. var t1 = this.get$span(0);
  63830. return t1.get$end(t1);
  63831. },
  63832. expand$1(_, other) {
  63833. return this.get$span(0).expand$1(0, other);
  63834. },
  63835. get$file(_) {
  63836. var t1 = this.get$span(0);
  63837. return t1.get$file(t1);
  63838. },
  63839. highlight$1$color(color) {
  63840. return this.get$span(0).highlight$1$color(color);
  63841. },
  63842. get$length(_) {
  63843. var t1 = this.get$span(0);
  63844. return t1.get$length(t1);
  63845. },
  63846. message$2$color(_, message, color) {
  63847. return this.get$span(0).message$2$color(0, message, color);
  63848. },
  63849. message$1(_, message) {
  63850. return this.message$2$color(0, message, null);
  63851. },
  63852. get$sourceUrl(_) {
  63853. var t1 = this.get$span(0);
  63854. return t1.get$sourceUrl(t1);
  63855. },
  63856. get$start(_) {
  63857. var t1 = this.get$span(0);
  63858. return t1.get$start(t1);
  63859. },
  63860. get$text() {
  63861. return this.get$span(0).get$text();
  63862. },
  63863. $isComparable: 1,
  63864. $isFileSpan: 1,
  63865. $isSourceSpan: 1,
  63866. $isSourceSpanWithContext: 1
  63867. };
  63868. A.LimitedMapView.prototype = {
  63869. get$keys(_) {
  63870. return this._limited_map_view$_keys;
  63871. },
  63872. get$length(_) {
  63873. return this._limited_map_view$_keys._collection$_length;
  63874. },
  63875. get$isEmpty(_) {
  63876. return this._limited_map_view$_keys._collection$_length === 0;
  63877. },
  63878. get$isNotEmpty(_) {
  63879. return this._limited_map_view$_keys._collection$_length !== 0;
  63880. },
  63881. $index(_, key) {
  63882. return this._limited_map_view$_keys.contains$1(0, key) ? this._limited_map_view$_map.$index(0, key) : null;
  63883. },
  63884. containsKey$1(key) {
  63885. return this._limited_map_view$_keys.contains$1(0, key);
  63886. },
  63887. remove$1(_, key) {
  63888. return this._limited_map_view$_keys.contains$1(0, key) ? this._limited_map_view$_map.remove$1(0, key) : null;
  63889. }
  63890. };
  63891. A.MapExtensions_get_pairs_closure.prototype = {
  63892. call$1(e) {
  63893. return new A._Record_2(e.key, e.value);
  63894. },
  63895. $signature() {
  63896. return this.K._eval$1("@<0>")._bind$1(this.V)._eval$1("+(1,2)(MapEntry<1,2>)");
  63897. }
  63898. };
  63899. A.MergedMapView.prototype = {
  63900. get$keys(_) {
  63901. var t1 = this._mapsByKey;
  63902. return new A.LinkedHashMapKeyIterable(t1, A._instanceType(t1)._eval$1("LinkedHashMapKeyIterable<1>"));
  63903. },
  63904. get$length(_) {
  63905. return this._mapsByKey.__js_helper$_length;
  63906. },
  63907. get$isEmpty(_) {
  63908. return this._mapsByKey.__js_helper$_length === 0;
  63909. },
  63910. get$isNotEmpty(_) {
  63911. return this._mapsByKey.__js_helper$_length !== 0;
  63912. },
  63913. MergedMapView$1(maps, $K, $V) {
  63914. var t1, t2, t3, _i, map, t4, t5, t6;
  63915. for (t1 = maps.length, t2 = this._mapsByKey, t3 = $K._eval$1("@<0>")._bind$1($V)._eval$1("MergedMapView<1,2>"), _i = 0; _i < maps.length; maps.length === t1 || (0, A.throwConcurrentModificationError)(maps), ++_i) {
  63916. map = maps[_i];
  63917. if (t3._is(map))
  63918. for (t4 = map._mapsByKey.get$values(0), t5 = A._instanceType(t4), t4 = new A.MappedIterator(J.get$iterator$ax(t4.__internal$_iterable), t4._f, t5._eval$1("MappedIterator<1,2>")), t5 = t5._rest[1]; t4.moveNext$0();) {
  63919. t6 = t4.__internal$_current;
  63920. if (t6 == null)
  63921. t6 = t5._as(t6);
  63922. A.setAll(t2, t6.get$keys(t6), t6);
  63923. }
  63924. else
  63925. A.setAll(t2, map.get$keys(map), map);
  63926. }
  63927. },
  63928. $index(_, key) {
  63929. var t1 = this._mapsByKey.$index(0, this.$ti._precomputed1._as(key));
  63930. return t1 == null ? null : t1.$index(0, key);
  63931. },
  63932. $indexSet(_, key, value) {
  63933. var _0_0 = this._mapsByKey.$index(0, key);
  63934. if (_0_0 != null)
  63935. _0_0.$indexSet(0, key, value);
  63936. else
  63937. throw A.wrapException(A.UnsupportedError$(string$.New_en));
  63938. },
  63939. remove$1(_, key) {
  63940. throw A.wrapException(A.UnsupportedError$(string$.Entrie));
  63941. },
  63942. containsKey$1(key) {
  63943. return this._mapsByKey.containsKey$1(key);
  63944. }
  63945. };
  63946. A.MultiDirWatcher.prototype = {
  63947. watch$1(_, directory) {
  63948. var t1, t2, t3, t4, isParentOfExistingDir, _i, t5, _0_1, existingWatcher, future, completer;
  63949. for (t1 = this._watchers, t2 = A.MapExtensions_get_pairs(t1, type$.nullable_String, type$.Stream_WatchEvent).toList$0(0), t3 = t2.length, t1 = t1._map, t4 = this._group, isParentOfExistingDir = false, _i = 0; _i < t2.length; t2.length === t3 || (0, A.throwConcurrentModificationError)(t2), ++_i) {
  63950. t5 = t2[_i];
  63951. _0_1 = t5._0;
  63952. _0_1.toString;
  63953. existingWatcher = t5._1;
  63954. if (!isParentOfExistingDir) {
  63955. t5 = $.$get$context();
  63956. t5 = t5._isWithinOrEquals$2(_0_1, directory) === B._PathRelation_equal || t5._isWithinOrEquals$2(_0_1, directory) === B._PathRelation_within;
  63957. } else
  63958. t5 = false;
  63959. if (t5) {
  63960. t1 = new A._Future($.Zone__current, type$._Future_void);
  63961. t1._asyncComplete$1(null);
  63962. return t1;
  63963. }
  63964. if ($.$get$context()._isWithinOrEquals$2(directory, _0_1) === B._PathRelation_within) {
  63965. t1.remove$1(0, _0_1);
  63966. t4.remove$1(0, existingWatcher);
  63967. isParentOfExistingDir = true;
  63968. }
  63969. }
  63970. future = A.watchDir(directory, this._poll);
  63971. t2 = new A._CompleterStream(type$._CompleterStream_WatchEvent);
  63972. completer = new A.StreamCompleter(t2, type$.StreamCompleter_WatchEvent);
  63973. future.then$1$2$onError(0, completer.get$setSourceStream(), completer.get$setError(), type$.void);
  63974. t1.$indexSet(0, directory, t2);
  63975. t4.add$1(0, t2);
  63976. return future;
  63977. }
  63978. };
  63979. A.MultiSpan.prototype = {
  63980. get$start(_) {
  63981. var t1 = this._multi_span$_primary;
  63982. return t1.get$start(t1);
  63983. },
  63984. get$end(_) {
  63985. var t1 = this._multi_span$_primary;
  63986. return t1.get$end(t1);
  63987. },
  63988. get$text() {
  63989. return this._multi_span$_primary.get$text();
  63990. },
  63991. get$context(_) {
  63992. var t1 = this._multi_span$_primary;
  63993. return t1.get$context(t1);
  63994. },
  63995. get$file(_) {
  63996. var t1 = this._multi_span$_primary;
  63997. return t1.get$file(t1);
  63998. },
  63999. get$length(_) {
  64000. var t1 = this._multi_span$_primary;
  64001. return t1.get$length(t1);
  64002. },
  64003. get$sourceUrl(_) {
  64004. var t1 = this._multi_span$_primary;
  64005. return t1.get$sourceUrl(t1);
  64006. },
  64007. compareTo$1(_, other) {
  64008. return this._multi_span$_primary.compareTo$1(0, other);
  64009. },
  64010. toString$0(_) {
  64011. return this._multi_span$_primary.toString$0(0);
  64012. },
  64013. expand$1(_, other) {
  64014. return new A.MultiSpan(this._multi_span$_primary.expand$1(0, other), this.primaryLabel, this.secondarySpans);
  64015. },
  64016. highlight$1$color(color) {
  64017. return A.Highlighter$multiple(this._multi_span$_primary, this.primaryLabel, this.secondarySpans, color === true, null, null).highlight$0();
  64018. },
  64019. message$2$color(_, message, color) {
  64020. var t1 = J.$eq$(color, true) || typeof color == "string",
  64021. t2 = typeof color == "string" ? color : null;
  64022. return A.SourceSpanExtension_messageMultiple(this._multi_span$_primary, message, this.primaryLabel, this.secondarySpans, t1, t2, null);
  64023. },
  64024. message$1(_, message) {
  64025. return this.message$2$color(0, message, null);
  64026. },
  64027. $isComparable: 1,
  64028. $isFileSpan: 1,
  64029. $isSourceSpan: 1,
  64030. $isSourceSpanWithContext: 1
  64031. };
  64032. A.NoSourceMapBuffer.prototype = {
  64033. get$length(_) {
  64034. return this._no_source_map_buffer$_buffer._contents.length;
  64035. },
  64036. forSpan$1$2(span, callback) {
  64037. return callback.call$0();
  64038. },
  64039. forSpan$2(span, callback) {
  64040. return this.forSpan$1$2(span, callback, type$.dynamic);
  64041. },
  64042. write$1(_, object) {
  64043. var t1 = this._no_source_map_buffer$_buffer,
  64044. t2 = A.S(object);
  64045. t1._contents += t2;
  64046. return null;
  64047. },
  64048. writeCharCode$1(charCode) {
  64049. var t1 = this._no_source_map_buffer$_buffer,
  64050. t2 = A.Primitives_stringFromCharCode(charCode);
  64051. t1._contents += t2;
  64052. return null;
  64053. },
  64054. toString$0(_) {
  64055. var t1 = this._no_source_map_buffer$_buffer._contents;
  64056. return t1.charCodeAt(0) == 0 ? t1 : t1;
  64057. },
  64058. buildSourceMap$1$prefix(prefix) {
  64059. return A.throwExpression(A.UnsupportedError$(string$.NoSour));
  64060. }
  64061. };
  64062. A.PrefixedMapView.prototype = {
  64063. get$keys(_) {
  64064. return new A._PrefixedKeys(this);
  64065. },
  64066. get$length(_) {
  64067. var t1 = this._prefixed_map_view$_map;
  64068. return t1.get$length(t1);
  64069. },
  64070. get$isEmpty(_) {
  64071. var t1 = this._prefixed_map_view$_map;
  64072. return t1.get$isEmpty(t1);
  64073. },
  64074. get$isNotEmpty(_) {
  64075. var t1 = this._prefixed_map_view$_map;
  64076. return t1.get$isNotEmpty(t1);
  64077. },
  64078. $index(_, key) {
  64079. return typeof key == "string" && B.JSString_methods.startsWith$1(key, this._prefix) ? this._prefixed_map_view$_map.$index(0, J.substring$1$s(key, this._prefix.length)) : null;
  64080. },
  64081. containsKey$1(key) {
  64082. return typeof key == "string" && B.JSString_methods.startsWith$1(key, this._prefix) && this._prefixed_map_view$_map.containsKey$1(J.substring$1$s(key, this._prefix.length));
  64083. }
  64084. };
  64085. A._PrefixedKeys.prototype = {
  64086. get$length(_) {
  64087. var t1 = this._view._prefixed_map_view$_map;
  64088. return t1.get$length(t1);
  64089. },
  64090. get$iterator(_) {
  64091. var t1 = this._view._prefixed_map_view$_map;
  64092. t1 = J.map$1$1$ax(t1.get$keys(t1), new A._PrefixedKeys_iterator_closure(this), type$.String);
  64093. return t1.get$iterator(t1);
  64094. },
  64095. contains$1(_, key) {
  64096. return this._view.containsKey$1(key);
  64097. }
  64098. };
  64099. A._PrefixedKeys_iterator_closure.prototype = {
  64100. call$1(key) {
  64101. return this.$this._view._prefix + key;
  64102. },
  64103. $signature: 6
  64104. };
  64105. A.PublicMemberMapView.prototype = {
  64106. get$keys(_) {
  64107. var t1 = this._public_member_map_view$_inner;
  64108. return J.where$1$ax(t1.get$keys(t1), A.utils__isPublic$closure());
  64109. },
  64110. containsKey$1(key) {
  64111. return typeof key == "string" && A.isPublic(key) && this._public_member_map_view$_inner.containsKey$1(key);
  64112. },
  64113. $index(_, key) {
  64114. if (typeof key == "string" && A.isPublic(key))
  64115. return this._public_member_map_view$_inner.$index(0, key);
  64116. return null;
  64117. }
  64118. };
  64119. A.SourceMapBuffer.prototype = {
  64120. get$_targetLocation() {
  64121. var t1 = this._source_map_buffer$_buffer._contents,
  64122. t2 = this._line;
  64123. return A.SourceLocation$(t1.length, this._column, t2, null);
  64124. },
  64125. get$length(_) {
  64126. return this._source_map_buffer$_buffer._contents.length;
  64127. },
  64128. forSpan$1$2(span, callback) {
  64129. var t1, _this = this,
  64130. wasInSpan = _this._inSpan;
  64131. _this._inSpan = true;
  64132. _this._addEntry$2(span.get$start(span), _this.get$_targetLocation());
  64133. try {
  64134. t1 = callback.call$0();
  64135. return t1;
  64136. } finally {
  64137. _this._inSpan = wasInSpan;
  64138. }
  64139. },
  64140. forSpan$2(span, callback) {
  64141. return this.forSpan$1$2(span, callback, type$.dynamic);
  64142. },
  64143. _addEntry$2(source, target) {
  64144. var entry, t2,
  64145. t1 = this._entries;
  64146. if (t1.length !== 0) {
  64147. entry = B.JSArray_methods.get$last(t1);
  64148. t2 = entry.source;
  64149. if (t2.file.getLine$1(t2.offset) === source.file.getLine$1(source.offset) && entry.target.line === target.line)
  64150. return;
  64151. if (entry.target.offset === target.offset)
  64152. return;
  64153. }
  64154. t1.push(new A.Entry(source, target, null));
  64155. },
  64156. write$1(_, object) {
  64157. var t1, i,
  64158. string = J.toString$0$(object);
  64159. this._source_map_buffer$_buffer._contents += string;
  64160. for (t1 = string.length, i = 0; i < t1; ++i)
  64161. if (string.charCodeAt(i) === 10)
  64162. this._source_map_buffer$_writeLine$0();
  64163. else
  64164. ++this._column;
  64165. },
  64166. writeCharCode$1(charCode) {
  64167. var t1 = this._source_map_buffer$_buffer,
  64168. t2 = A.Primitives_stringFromCharCode(charCode);
  64169. t1._contents += t2;
  64170. if (charCode === 10)
  64171. this._source_map_buffer$_writeLine$0();
  64172. else
  64173. ++this._column;
  64174. },
  64175. _source_map_buffer$_writeLine$0() {
  64176. var _this = this,
  64177. t1 = _this._entries;
  64178. if (B.JSArray_methods.get$last(t1).target.line === _this._line && B.JSArray_methods.get$last(t1).target.column === _this._column)
  64179. t1.pop();
  64180. ++_this._line;
  64181. _this._column = 0;
  64182. if (_this._inSpan)
  64183. t1.push(new A.Entry(B.JSArray_methods.get$last(t1).source, _this.get$_targetLocation(), null));
  64184. },
  64185. toString$0(_) {
  64186. var t1 = this._source_map_buffer$_buffer._contents;
  64187. return t1.charCodeAt(0) == 0 ? t1 : t1;
  64188. },
  64189. buildSourceMap$1$prefix(prefix) {
  64190. var i, t2, prefixColumn, _box_0 = {},
  64191. t1 = prefix.length;
  64192. if (t1 === 0)
  64193. return A.SingleMapping_SingleMapping$fromEntries(this._entries);
  64194. _box_0.prefixColumn = _box_0.prefixLines = 0;
  64195. for (i = 0, t2 = 0; i < t1; ++i)
  64196. if (prefix.charCodeAt(i) === 10) {
  64197. ++_box_0.prefixLines;
  64198. _box_0.prefixColumn = 0;
  64199. t2 = 0;
  64200. } else {
  64201. prefixColumn = t2 + 1;
  64202. _box_0.prefixColumn = prefixColumn;
  64203. t2 = prefixColumn;
  64204. }
  64205. t2 = this._entries;
  64206. return A.SingleMapping_SingleMapping$fromEntries(new A.MappedListIterable(t2, new A.SourceMapBuffer_buildSourceMap_closure(_box_0, t1), A._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Entry>")));
  64207. }
  64208. };
  64209. A.SourceMapBuffer_buildSourceMap_closure.prototype = {
  64210. call$1(entry) {
  64211. var t1 = entry.target,
  64212. t2 = t1.line,
  64213. t3 = this._box_0,
  64214. t4 = t3.prefixLines;
  64215. t3 = t2 === 0 ? t3.prefixColumn : 0;
  64216. return new A.Entry(entry.source, A.SourceLocation$(t1.offset + this.prefixLength, t1.column + t3, t2 + t4, null), entry.identifierName);
  64217. },
  64218. $signature: 185
  64219. };
  64220. A.UnprefixedMapView.prototype = {
  64221. get$keys(_) {
  64222. return new A._UnprefixedKeys(this);
  64223. },
  64224. $index(_, key) {
  64225. return typeof key == "string" ? this._unprefixed_map_view$_map.$index(0, this._unprefixed_map_view$_prefix + key) : null;
  64226. },
  64227. containsKey$1(key) {
  64228. return typeof key == "string" && this._unprefixed_map_view$_map.containsKey$1(this._unprefixed_map_view$_prefix + key);
  64229. },
  64230. remove$1(_, key) {
  64231. return typeof key == "string" ? this._unprefixed_map_view$_map.remove$1(0, this._unprefixed_map_view$_prefix + key) : null;
  64232. }
  64233. };
  64234. A._UnprefixedKeys.prototype = {
  64235. get$iterator(_) {
  64236. var t1 = this._unprefixed_map_view$_view._unprefixed_map_view$_map;
  64237. t1 = J.where$1$ax(t1.get$keys(t1), new A._UnprefixedKeys_iterator_closure(this)).map$1$1(0, new A._UnprefixedKeys_iterator_closure0(this), type$.String);
  64238. return t1.get$iterator(t1);
  64239. },
  64240. contains$1(_, key) {
  64241. return this._unprefixed_map_view$_view.containsKey$1(key);
  64242. }
  64243. };
  64244. A._UnprefixedKeys_iterator_closure.prototype = {
  64245. call$1(key) {
  64246. return B.JSString_methods.startsWith$1(key, this.$this._unprefixed_map_view$_view._unprefixed_map_view$_prefix);
  64247. },
  64248. $signature: 5
  64249. };
  64250. A._UnprefixedKeys_iterator_closure0.prototype = {
  64251. call$1(key) {
  64252. return B.JSString_methods.substring$1(key, this.$this._unprefixed_map_view$_view._unprefixed_map_view$_prefix.length);
  64253. },
  64254. $signature: 6
  64255. };
  64256. A.indent_closure.prototype = {
  64257. call$1(line) {
  64258. return B.JSString_methods.$mul(" ", this.indentation) + line;
  64259. },
  64260. $signature: 6
  64261. };
  64262. A.flattenVertically_closure.prototype = {
  64263. call$1(inner) {
  64264. return A.QueueList_QueueList$from(inner, this.T);
  64265. },
  64266. $signature() {
  64267. return this.T._eval$1("QueueList<0>(Iterable<0>)");
  64268. }
  64269. };
  64270. A.flattenVertically_closure0.prototype = {
  64271. call$1(queue) {
  64272. this.result.push(queue.removeFirst$0());
  64273. return queue.get$length(0) === 0;
  64274. },
  64275. $signature() {
  64276. return this.T._eval$1("bool(QueueList<0>)");
  64277. }
  64278. };
  64279. A.longestCommonSubsequence_backtrack.prototype = {
  64280. call$2(i, j) {
  64281. var selection, t1, _this = this;
  64282. if (i === -1 || j === -1)
  64283. return A._setArrayType([], _this.T._eval$1("JSArray<0>"));
  64284. selection = _this.selections[i][j];
  64285. if (selection != null) {
  64286. t1 = _this.call$2(i - 1, j - 1);
  64287. J.add$1$ax(t1, selection);
  64288. return t1;
  64289. }
  64290. t1 = _this.lengths;
  64291. return t1[i + 1][j] > t1[i][j + 1] ? _this.call$2(i, j - 1) : _this.call$2(i - 1, j);
  64292. },
  64293. $signature() {
  64294. return this.T._eval$1("List<0>(int,int)");
  64295. }
  64296. };
  64297. A.mapAddAll2_closure.prototype = {
  64298. call$2(key, inner) {
  64299. var t1 = this.destination,
  64300. _0_0 = t1.$index(0, key);
  64301. if (_0_0 != null)
  64302. _0_0.addAll$1(0, inner);
  64303. else
  64304. t1.$indexSet(0, key, inner);
  64305. },
  64306. $signature() {
  64307. return this.K1._eval$1("@<0>")._bind$1(this.K2)._bind$1(this.V)._eval$1("~(1,Map<2,3>)");
  64308. }
  64309. };
  64310. A.Value.prototype = {
  64311. get$isTruthy() {
  64312. return true;
  64313. },
  64314. get$separator(_) {
  64315. return B.ListSeparator_undecided_null_undecided;
  64316. },
  64317. get$hasBrackets() {
  64318. return false;
  64319. },
  64320. get$asList() {
  64321. return A._setArrayType([this], type$.JSArray_Value);
  64322. },
  64323. get$lengthAsList() {
  64324. return 1;
  64325. },
  64326. get$isBlank() {
  64327. return false;
  64328. },
  64329. get$isSpecialNumber() {
  64330. return false;
  64331. },
  64332. get$isVar() {
  64333. return false;
  64334. },
  64335. get$realNull() {
  64336. return this;
  64337. },
  64338. sassIndexToListIndex$2(sassIndex, $name) {
  64339. var t1, index,
  64340. indexValue = sassIndex.assertNumber$1($name);
  64341. if (indexValue.get$hasUnits()) {
  64342. t1 = indexValue.get$unitString();
  64343. A.warnForDeprecation("$" + $name + ": Passing a number with unit " + t1 + string$.x20is_de + indexValue.unitSuggestion$1($name) + string$.x0a_Morex3af, B.Deprecation_int);
  64344. }
  64345. index = indexValue.assertInt$1($name);
  64346. if (index === 0)
  64347. throw A.wrapException(A.SassScriptException$("List index may not be 0.", $name));
  64348. if (Math.abs(index) > this.get$lengthAsList())
  64349. throw A.wrapException(A.SassScriptException$("Invalid index " + sassIndex.toString$0(0) + " for a list with " + this.get$lengthAsList() + " elements.", $name));
  64350. return index < 0 ? this.get$lengthAsList() + index : index - 1;
  64351. },
  64352. assertCalculation$1($name) {
  64353. return A.throwExpression(A.SassScriptException$(this.toString$0(0) + " is not a calculation.", $name));
  64354. },
  64355. assertColor$1($name) {
  64356. return A.throwExpression(A.SassScriptException$(this.toString$0(0) + " is not a color.", $name));
  64357. },
  64358. assertFunction$1($name) {
  64359. return A.throwExpression(A.SassScriptException$(this.toString$0(0) + " is not a function reference.", $name));
  64360. },
  64361. assertMixin$1($name) {
  64362. return A.throwExpression(A.SassScriptException$(this.toString$0(0) + " is not a mixin reference.", $name));
  64363. },
  64364. assertMap$1($name) {
  64365. return A.throwExpression(A.SassScriptException$(this.toString$0(0) + " is not a map.", $name));
  64366. },
  64367. tryMap$0() {
  64368. return null;
  64369. },
  64370. assertNumber$1($name) {
  64371. return A.throwExpression(A.SassScriptException$(this.toString$0(0) + " is not a number.", $name));
  64372. },
  64373. assertNumber$0() {
  64374. return this.assertNumber$1(null);
  64375. },
  64376. assertString$1($name) {
  64377. return A.throwExpression(A.SassScriptException$(this.toString$0(0) + " is not a string.", $name));
  64378. },
  64379. assertCommonListStyle$2$allowSlash($name, allowSlash) {
  64380. var invalidSeparator, buffer, t1, _this = this,
  64381. _s8_ = "Expected";
  64382. if (_this.get$separator(_this) !== B.ListSeparator_ECn)
  64383. invalidSeparator = !allowSlash && _this.get$separator(_this) === B.ListSeparator_cQA;
  64384. else
  64385. invalidSeparator = true;
  64386. if (!invalidSeparator && !_this.get$hasBrackets())
  64387. return _this.get$asList();
  64388. buffer = new A.StringBuffer(_s8_);
  64389. if (_this.get$hasBrackets()) {
  64390. t1 = "Expected" + " an unbracketed";
  64391. buffer._contents = t1;
  64392. } else
  64393. t1 = _s8_;
  64394. if (invalidSeparator) {
  64395. t1 += _this.get$hasBrackets() ? "," : " a";
  64396. buffer._contents = t1;
  64397. t1 = buffer._contents = t1 + " space-";
  64398. t1 = buffer._contents = (allowSlash ? buffer._contents = t1 + " or slash-" : t1) + "separated";
  64399. }
  64400. buffer._contents = t1 + (" list, was " + _this.toString$0(0));
  64401. throw A.wrapException(A.SassScriptException$(buffer.toString$0(0), $name));
  64402. },
  64403. _selectorString$1($name) {
  64404. var _0_0 = this._selectorStringOrNull$0();
  64405. if (_0_0 != null)
  64406. return _0_0;
  64407. throw A.wrapException(A.SassScriptException$(this.toString$0(0) + string$.x20is_noav, $name));
  64408. },
  64409. _selectorStringOrNull$0() {
  64410. var t1, t2, result, _1_0, _i, complex, string, compound, _this = this, _null = null;
  64411. if (_this instanceof A.SassString)
  64412. return _this._string$_text;
  64413. if (!(_this instanceof A.SassList))
  64414. return _null;
  64415. t1 = _this._list$_contents;
  64416. t2 = t1.length;
  64417. if (t2 === 0)
  64418. return _null;
  64419. result = A._setArrayType([], type$.JSArray_String);
  64420. $label0$1: {
  64421. _1_0 = _this._separator;
  64422. if (B.ListSeparator_ECn === _1_0) {
  64423. for (_i = 0; _i < t2; ++_i) {
  64424. complex = t1[_i];
  64425. if (complex instanceof A.SassString) {
  64426. result.push(complex._string$_text);
  64427. continue;
  64428. }
  64429. if (complex instanceof A.SassList && B.ListSeparator_nbm === complex._separator) {
  64430. string = complex._selectorStringOrNull$0();
  64431. if (string == null)
  64432. return _null;
  64433. result.push(string);
  64434. continue;
  64435. }
  64436. return _null;
  64437. }
  64438. break $label0$1;
  64439. }
  64440. if (B.ListSeparator_cQA === _1_0)
  64441. return _null;
  64442. for (_i = 0; _i < t2; ++_i) {
  64443. compound = t1[_i];
  64444. if (!(compound instanceof A.SassString))
  64445. return _null;
  64446. result.push(compound._string$_text);
  64447. }
  64448. break $label0$1;
  64449. }
  64450. return B.JSArray_methods.join$1(result, _1_0 === B.ListSeparator_ECn ? ", " : " ");
  64451. },
  64452. withListContents$2$separator(contents, separator) {
  64453. var t1 = separator == null ? this.get$separator(this) : separator,
  64454. t2 = this.get$hasBrackets();
  64455. return A.SassList$(contents, t1, t2);
  64456. },
  64457. withListContents$1(contents) {
  64458. return this.withListContents$2$separator(contents, null);
  64459. },
  64460. greaterThan$1(other) {
  64461. return A.throwExpression(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " > " + other.toString$0(0) + '".', null));
  64462. },
  64463. greaterThanOrEquals$1(other) {
  64464. return A.throwExpression(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " >= " + other.toString$0(0) + '".', null));
  64465. },
  64466. lessThan$1(other) {
  64467. return A.throwExpression(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " < " + other.toString$0(0) + '".', null));
  64468. },
  64469. lessThanOrEquals$1(other) {
  64470. return A.throwExpression(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " <= " + other.toString$0(0) + '".', null));
  64471. },
  64472. times$1(other) {
  64473. return A.throwExpression(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " * " + other.toString$0(0) + '".', null));
  64474. },
  64475. modulo$1(other) {
  64476. return A.throwExpression(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " % " + other.toString$0(0) + '".', null));
  64477. },
  64478. plus$1(other) {
  64479. var t1;
  64480. $label0$0: {
  64481. if (other instanceof A.SassString) {
  64482. t1 = new A.SassString(A.serializeValue(this, false, true) + other._string$_text, other._hasQuotes);
  64483. break $label0$0;
  64484. }
  64485. if (other instanceof A.SassCalculation)
  64486. A.throwExpression(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " + " + other.toString$0(0) + '".', null));
  64487. t1 = new A.SassString(A.serializeValue(this, false, true) + A.serializeValue(other, false, true), false);
  64488. break $label0$0;
  64489. }
  64490. return t1;
  64491. },
  64492. minus$1(other) {
  64493. return other instanceof A.SassCalculation ? A.throwExpression(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " - " + other.toString$0(0) + '".', null)) : new A.SassString(A.serializeValue(this, false, true) + "-" + A.serializeValue(other, false, true), false);
  64494. },
  64495. dividedBy$1(other) {
  64496. return new A.SassString(A.serializeValue(this, false, true) + "/" + A.serializeValue(other, false, true), false);
  64497. },
  64498. unaryPlus$0() {
  64499. return new A.SassString("+" + A.serializeValue(this, false, true), false);
  64500. },
  64501. unaryMinus$0() {
  64502. return new A.SassString("-" + A.serializeValue(this, false, true), false);
  64503. },
  64504. unaryNot$0() {
  64505. return B.SassBoolean_false;
  64506. },
  64507. withoutSlash$0() {
  64508. return this;
  64509. },
  64510. toString$0(_) {
  64511. return A.serializeValue(this, true, true);
  64512. }
  64513. };
  64514. A.SassArgumentList.prototype = {};
  64515. A.SassBoolean.prototype = {
  64516. get$isTruthy() {
  64517. return this.value;
  64518. },
  64519. accept$1$1(visitor) {
  64520. return visitor._serialize$_buffer.write$1(0, String(this.value));
  64521. },
  64522. accept$1(visitor) {
  64523. return this.accept$1$1(visitor, type$.dynamic);
  64524. },
  64525. unaryNot$0() {
  64526. return this.value ? B.SassBoolean_false : B.SassBoolean_true;
  64527. }
  64528. };
  64529. A.SassCalculation.prototype = {
  64530. get$isSpecialNumber() {
  64531. return true;
  64532. },
  64533. accept$1$1(visitor) {
  64534. return visitor.visitCalculation$1(this);
  64535. },
  64536. accept$1(visitor) {
  64537. return this.accept$1$1(visitor, type$.dynamic);
  64538. },
  64539. assertCalculation$1($name) {
  64540. return this;
  64541. },
  64542. plus$1(other) {
  64543. if (other instanceof A.SassString)
  64544. return this.super$Value$plus(other);
  64545. throw A.wrapException(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " + " + other.toString$0(0) + '".', null));
  64546. },
  64547. minus$1(other) {
  64548. return A.throwExpression(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " - " + other.toString$0(0) + '".', null));
  64549. },
  64550. unaryPlus$0() {
  64551. return A.throwExpression(A.SassScriptException$('Undefined operation "+' + this.toString$0(0) + '".', null));
  64552. },
  64553. unaryMinus$0() {
  64554. return A.throwExpression(A.SassScriptException$('Undefined operation "-' + this.toString$0(0) + '".', null));
  64555. },
  64556. $eq(_, other) {
  64557. if (other == null)
  64558. return false;
  64559. return other instanceof A.SassCalculation && this.name === other.name && B.C_ListEquality.equals$2(0, this.$arguments, other.$arguments);
  64560. },
  64561. get$hashCode(_) {
  64562. return B.JSString_methods.get$hashCode(this.name) ^ B.C_ListEquality0.hash$1(this.$arguments);
  64563. }
  64564. };
  64565. A.SassCalculation__verifyLength_closure.prototype = {
  64566. call$1(arg) {
  64567. return arg instanceof A.SassString;
  64568. },
  64569. $signature: 76
  64570. };
  64571. A.CalculationOperation.prototype = {
  64572. $eq(_, other) {
  64573. if (other == null)
  64574. return false;
  64575. return other instanceof A.CalculationOperation && this._operator === other._operator && J.$eq$(this._left, other._left) && J.$eq$(this._right, other._right);
  64576. },
  64577. get$hashCode(_) {
  64578. return (A.Primitives_objectHashCode(this._operator) ^ J.get$hashCode$(this._left) ^ J.get$hashCode$(this._right)) >>> 0;
  64579. },
  64580. toString$0(_) {
  64581. var parenthesized = A.serializeValue(new A.SassCalculation("", A._setArrayType([this], type$.JSArray_Object)), true, true);
  64582. return B.JSString_methods.substring$2(parenthesized, 1, parenthesized.length - 1);
  64583. }
  64584. };
  64585. A.CalculationOperator.prototype = {
  64586. _enumToString$0() {
  64587. return "CalculationOperator." + this._name;
  64588. },
  64589. toString$0(_) {
  64590. return this.name;
  64591. }
  64592. };
  64593. A.SassColor.prototype = {
  64594. get$channels() {
  64595. var t2, t3,
  64596. t1 = this.channel0OrNull;
  64597. if (t1 == null)
  64598. t1 = 0;
  64599. t2 = this.channel1OrNull;
  64600. if (t2 == null)
  64601. t2 = 0;
  64602. t3 = this.channel2OrNull;
  64603. return A.List_List$unmodifiable([t1, t2, t3 == null ? 0 : t3], type$.double);
  64604. },
  64605. get$channelsOrNull() {
  64606. return A.List_List$unmodifiable([this.channel0OrNull, this.channel1OrNull, this.channel2OrNull], type$.nullable_double);
  64607. },
  64608. get$isChannel0Powerless() {
  64609. var t1, t2, _this = this,
  64610. _0_0 = _this._space;
  64611. $label0$0: {
  64612. if (B.HslColorSpace_gsm === _0_0) {
  64613. t1 = _this.channel1OrNull;
  64614. t1 = A.fuzzyEquals(t1 == null ? 0 : t1, 0);
  64615. break $label0$0;
  64616. }
  64617. if (B.HwbColorSpace_06z === _0_0) {
  64618. t1 = _this.channel1OrNull;
  64619. if (t1 == null)
  64620. t1 = 0;
  64621. t2 = _this.channel2OrNull;
  64622. t1 += t2 == null ? 0 : t2;
  64623. t1 = t1 > 100 || A.fuzzyEquals(t1, 100);
  64624. break $label0$0;
  64625. }
  64626. t1 = false;
  64627. break $label0$0;
  64628. }
  64629. return t1;
  64630. },
  64631. get$isChannel2Powerless() {
  64632. var t1,
  64633. _0_0 = this._space;
  64634. $label0$0: {
  64635. if (B.LchColorSpace_wv8 === _0_0 || B.OklchColorSpace_li8 === _0_0) {
  64636. t1 = this.channel1OrNull;
  64637. t1 = A.fuzzyEquals(t1 == null ? 0 : t1, 0);
  64638. break $label0$0;
  64639. }
  64640. t1 = false;
  64641. break $label0$0;
  64642. }
  64643. return t1;
  64644. },
  64645. get$isInGamut() {
  64646. var t2, t3, _this = this,
  64647. t1 = _this._space;
  64648. if (!t1.get$isBoundedInternal())
  64649. return true;
  64650. t2 = _this.channel0OrNull;
  64651. if (t2 == null)
  64652. t2 = 0;
  64653. t1 = t1._channels;
  64654. t3 = false;
  64655. if (_this._isChannelInGamut$2(t2, t1[0])) {
  64656. t2 = _this.channel1OrNull;
  64657. if (t2 == null)
  64658. t2 = 0;
  64659. if (_this._isChannelInGamut$2(t2, t1[1])) {
  64660. t2 = _this.channel2OrNull;
  64661. if (t2 == null)
  64662. t2 = 0;
  64663. t1 = _this._isChannelInGamut$2(t2, t1[2]);
  64664. } else
  64665. t1 = t3;
  64666. } else
  64667. t1 = t3;
  64668. return t1;
  64669. },
  64670. _isChannelInGamut$2(value, channel) {
  64671. var min, max, t1;
  64672. $label0$0: {
  64673. if (channel instanceof A.LinearChannel) {
  64674. min = channel.min;
  64675. max = channel.max;
  64676. if (value < max || A.fuzzyEquals(value, max))
  64677. t1 = value > min || A.fuzzyEquals(value, min);
  64678. else
  64679. t1 = false;
  64680. break $label0$0;
  64681. }
  64682. t1 = true;
  64683. break $label0$0;
  64684. }
  64685. return t1;
  64686. },
  64687. accept$1$1(visitor) {
  64688. return visitor.visitColor$1(this);
  64689. },
  64690. accept$1(visitor) {
  64691. return this.accept$1$1(visitor, type$.dynamic);
  64692. },
  64693. assertColor$1($name) {
  64694. return this;
  64695. },
  64696. assertLegacy$1($name) {
  64697. if (this._space.get$isLegacyInternal())
  64698. return;
  64699. throw A.wrapException(A.SassScriptException$("Expected " + this.toString$0(0) + string$.x20to_be, $name));
  64700. },
  64701. channel$1(_, channel) {
  64702. var t1, _this = this,
  64703. channels = _this._space._channels;
  64704. if (channel === channels[0].name) {
  64705. t1 = _this.channel0OrNull;
  64706. return t1 == null ? 0 : t1;
  64707. }
  64708. if (channel === channels[1].name) {
  64709. t1 = _this.channel1OrNull;
  64710. return t1 == null ? 0 : t1;
  64711. }
  64712. if (channel === channels[2].name) {
  64713. t1 = _this.channel2OrNull;
  64714. return t1 == null ? 0 : t1;
  64715. }
  64716. if (channel === "alpha") {
  64717. t1 = _this.alphaOrNull;
  64718. return t1 == null ? 0 : t1;
  64719. }
  64720. throw A.wrapException(A.SassScriptException$("Color " + _this.toString$0(0) + " doesn't have a channel named \"" + channel + '".', null));
  64721. },
  64722. isChannelMissing$3$channelName$colorName(channel, channelName, colorName) {
  64723. var _this = this,
  64724. channels = _this._space._channels;
  64725. if (channel === channels[0].name)
  64726. return _this.channel0OrNull == null;
  64727. if (channel === channels[1].name)
  64728. return _this.channel1OrNull == null;
  64729. if (channel === channels[2].name)
  64730. return _this.channel2OrNull == null;
  64731. if (channel === "alpha")
  64732. return _this.alphaOrNull == null;
  64733. throw A.wrapException(A.SassScriptException$("Color " + _this.toString$0(0) + " doesn't have a channel named \"" + channel + '".', channelName));
  64734. },
  64735. isChannelMissing$1(channel) {
  64736. return this.isChannelMissing$3$channelName$colorName(channel, null, null);
  64737. },
  64738. isChannelPowerless$3$channelName$colorName(channel, channelName, colorName) {
  64739. var _this = this,
  64740. channels = _this._space._channels;
  64741. if (channel === channels[0].name)
  64742. return _this.get$isChannel0Powerless();
  64743. if (channel === channels[1].name)
  64744. return false;
  64745. if (channel === channels[2].name)
  64746. return _this.get$isChannel2Powerless();
  64747. if (channel === "alpha")
  64748. return false;
  64749. throw A.wrapException(A.SassScriptException$("Color " + _this.toString$0(0) + " doesn't have a channel named \"" + channel + '".', channelName));
  64750. },
  64751. _legacyChannel$2(space, channel) {
  64752. if (!this._space.get$isLegacyInternal())
  64753. throw A.wrapException(A.SassScriptException$("color." + channel + string$.x28__is_oc, null));
  64754. return this.toSpace$1(space).channel$1(0, channel);
  64755. },
  64756. toSpace$2$legacyMissing(space, legacyMissing) {
  64757. var t2, converted, t3, t4, _this = this,
  64758. t1 = _this._space;
  64759. if (t1 === space)
  64760. return _this;
  64761. t2 = _this.alphaOrNull;
  64762. if (t2 == null)
  64763. t2 = 0;
  64764. converted = t1.convert$5(space, _this.channel0OrNull, _this.channel1OrNull, _this.channel2OrNull, t2);
  64765. t1 = false;
  64766. if (!legacyMissing)
  64767. if (converted._space.get$isLegacyInternal())
  64768. t1 = converted.channel0OrNull == null || converted.channel1OrNull == null || converted.channel2OrNull == null || converted.alphaOrNull == null;
  64769. if (t1) {
  64770. t1 = converted.channel0OrNull;
  64771. if (t1 == null)
  64772. t1 = 0;
  64773. t2 = converted.channel1OrNull;
  64774. if (t2 == null)
  64775. t2 = 0;
  64776. t3 = converted.channel2OrNull;
  64777. if (t3 == null)
  64778. t3 = 0;
  64779. t4 = converted.alphaOrNull;
  64780. if (t4 == null)
  64781. t4 = 0;
  64782. t4 = A.SassColor_SassColor$forSpaceInternal(converted._space, t1, t2, t3, t4);
  64783. t1 = t4;
  64784. } else
  64785. t1 = converted;
  64786. return t1;
  64787. },
  64788. toSpace$1(space) {
  64789. return this.toSpace$2$legacyMissing(space, true);
  64790. },
  64791. changeHsl$3$hue$lightness$saturation(hue, lightness, saturation) {
  64792. var t2, t3, t4, t5, _this = this, _null = null,
  64793. t1 = _this._space;
  64794. if (!t1.get$isLegacyInternal())
  64795. throw A.wrapException(A.SassScriptException$(string$.color_c, _null));
  64796. t2 = hue == null ? _null : hue;
  64797. if (t2 == null)
  64798. t2 = _this._legacyChannel$2(B.HslColorSpace_gsm, "hue");
  64799. t3 = saturation == null ? _null : saturation;
  64800. if (t3 == null)
  64801. t3 = _this._legacyChannel$2(B.HslColorSpace_gsm, "saturation");
  64802. t4 = lightness == null ? _null : lightness;
  64803. if (t4 == null)
  64804. t4 = _this._legacyChannel$2(B.HslColorSpace_gsm, "lightness");
  64805. t5 = _this.alphaOrNull;
  64806. if (t5 == null)
  64807. t5 = 0;
  64808. return A.SassColor_SassColor$hsl(t2, t3, t4, t5).toSpace$1(t1);
  64809. },
  64810. changeHsl$1$saturation(saturation) {
  64811. return this.changeHsl$3$hue$lightness$saturation(null, null, saturation);
  64812. },
  64813. changeHsl$1$lightness(lightness) {
  64814. return this.changeHsl$3$hue$lightness$saturation(null, lightness, null);
  64815. },
  64816. changeHsl$1$hue(hue) {
  64817. return this.changeHsl$3$hue$lightness$saturation(hue, null, null);
  64818. },
  64819. changeAlpha$1(alpha) {
  64820. var t2, t3, _this = this,
  64821. t1 = _this.channel0OrNull;
  64822. if (t1 == null)
  64823. t1 = 0;
  64824. t2 = _this.channel1OrNull;
  64825. if (t2 == null)
  64826. t2 = 0;
  64827. t3 = _this.channel2OrNull;
  64828. if (t3 == null)
  64829. t3 = 0;
  64830. return A.SassColor_SassColor$forSpaceInternal(_this._space, t1, t2, t3, alpha);
  64831. },
  64832. interpolate$4$legacyMissing$weight(other, method, legacyMissing, weight) {
  64833. var t1, color1, color2, missing1_0, missing1_1, missing1_2, missing2_0, missing2_1, missing2_2, channel1_0, channel1_1, channel1_2, channel2_0, channel2_1, channel2_2, alpha1, t2, t3, alpha10, alpha2, alpha20, thisMultiplier, t4, t5, otherMultiplier, mixedAlpha, mixed0, mixed1, mixed2, _this = this, _null = null;
  64834. if (A.fuzzyEquals(weight, 0))
  64835. return other;
  64836. if (A.fuzzyEquals(weight, 1))
  64837. return _this;
  64838. t1 = method.space;
  64839. color1 = _this.toSpace$1(t1);
  64840. color2 = other.toSpace$1(t1);
  64841. if (weight < 0 || weight > 1)
  64842. throw A.wrapException(A.RangeError$range(weight, 0, 1, "weight", _null));
  64843. missing1_0 = _this._isAnalogousChannelMissing$3(_this, color1, 0);
  64844. missing1_1 = _this._isAnalogousChannelMissing$3(_this, color1, 1);
  64845. missing1_2 = _this._isAnalogousChannelMissing$3(_this, color1, 2);
  64846. missing2_0 = _this._isAnalogousChannelMissing$3(other, color2, 0);
  64847. missing2_1 = _this._isAnalogousChannelMissing$3(other, color2, 1);
  64848. missing2_2 = _this._isAnalogousChannelMissing$3(other, color2, 2);
  64849. channel1_0 = (missing1_0 ? color2 : color1).channel0OrNull;
  64850. if (channel1_0 == null)
  64851. channel1_0 = 0;
  64852. channel1_1 = (missing1_1 ? color2 : color1).channel1OrNull;
  64853. if (channel1_1 == null)
  64854. channel1_1 = 0;
  64855. channel1_2 = (missing1_2 ? color2 : color1).channel2OrNull;
  64856. if (channel1_2 == null)
  64857. channel1_2 = 0;
  64858. channel2_0 = (missing2_0 ? color1 : color2).channel0OrNull;
  64859. if (channel2_0 == null)
  64860. channel2_0 = 0;
  64861. channel2_1 = (missing2_1 ? color1 : color2).channel1OrNull;
  64862. if (channel2_1 == null)
  64863. channel2_1 = 0;
  64864. channel2_2 = (missing2_2 ? color1 : color2).channel2OrNull;
  64865. if (channel2_2 == null)
  64866. channel2_2 = 0;
  64867. alpha1 = _this.alphaOrNull;
  64868. t2 = alpha1 == null;
  64869. if (t2) {
  64870. t3 = other.alphaOrNull;
  64871. alpha10 = t3 == null ? 0 : t3;
  64872. } else
  64873. alpha10 = alpha1;
  64874. alpha2 = other.alphaOrNull;
  64875. t3 = alpha2 == null;
  64876. if (t3)
  64877. alpha20 = t2 ? 0 : alpha1;
  64878. else
  64879. alpha20 = alpha2;
  64880. thisMultiplier = (t2 ? 1 : alpha1) * weight;
  64881. t4 = t3 ? 1 : alpha2;
  64882. t5 = 1 - weight;
  64883. otherMultiplier = t4 * t5;
  64884. mixedAlpha = t2 && t3 ? _null : alpha10 * weight + alpha20 * t5;
  64885. if (missing1_0 && missing2_0)
  64886. mixed0 = _null;
  64887. else {
  64888. t2 = mixedAlpha == null ? 1 : mixedAlpha;
  64889. mixed0 = (channel1_0 * thisMultiplier + channel2_0 * otherMultiplier) / t2;
  64890. }
  64891. if (missing1_1 && missing2_1)
  64892. mixed1 = _null;
  64893. else {
  64894. t2 = mixedAlpha == null ? 1 : mixedAlpha;
  64895. mixed1 = (channel1_1 * thisMultiplier + channel2_1 * otherMultiplier) / t2;
  64896. }
  64897. if (missing1_2 && missing2_2)
  64898. mixed2 = _null;
  64899. else {
  64900. t2 = mixedAlpha == null ? 1 : mixedAlpha;
  64901. mixed2 = (channel1_2 * thisMultiplier + channel2_2 * otherMultiplier) / t2;
  64902. }
  64903. $label0$0: {
  64904. if (B.HslColorSpace_gsm === t1 || B.HwbColorSpace_06z === t1) {
  64905. if (missing1_0 && missing2_0)
  64906. t2 = _null;
  64907. else {
  64908. t2 = method.hue;
  64909. t2.toString;
  64910. t2 = _this._interpolateHues$4(channel1_0, channel2_0, t2, weight);
  64911. }
  64912. t2 = A.SassColor_SassColor$forSpaceInternal(t1, t2, mixed1, mixed2, mixedAlpha);
  64913. t1 = t2;
  64914. break $label0$0;
  64915. }
  64916. if (B.LchColorSpace_wv8 === t1 || B.OklchColorSpace_li8 === t1) {
  64917. if (missing1_2 && missing2_2)
  64918. t2 = _null;
  64919. else {
  64920. t2 = method.hue;
  64921. t2.toString;
  64922. t2 = _this._interpolateHues$4(channel1_2, channel2_2, t2, weight);
  64923. }
  64924. t2 = A.SassColor_SassColor$forSpaceInternal(t1, mixed0, mixed1, t2, mixedAlpha);
  64925. t1 = t2;
  64926. break $label0$0;
  64927. }
  64928. t1 = A.SassColor_SassColor$forSpaceInternal(t1, mixed0, mixed1, mixed2, mixedAlpha);
  64929. break $label0$0;
  64930. }
  64931. return t1.toSpace$2$legacyMissing(_this._space, false);
  64932. },
  64933. _isAnalogousChannelMissing$3(original, output, outputChannelIndex) {
  64934. var originalChannel;
  64935. if (output.get$channelsOrNull()[outputChannelIndex] == null)
  64936. return true;
  64937. if (original === output)
  64938. return false;
  64939. originalChannel = A.IterableExtension_firstWhereOrNull(original._space._channels, output._space._channels[outputChannelIndex].get$isAnalogous());
  64940. if (originalChannel == null)
  64941. return false;
  64942. return original.isChannelMissing$1(originalChannel.name);
  64943. },
  64944. _interpolateHues$4(hue1, hue2, method, weight) {
  64945. var _0_0, _1_0;
  64946. $label1$1: {
  64947. if (B.HueInterpolationMethod_0 === method) {
  64948. $label0$0: {
  64949. _0_0 = hue2 - hue1;
  64950. if (_0_0 > 180) {
  64951. hue1 += 360;
  64952. break $label0$0;
  64953. }
  64954. if (_0_0 < -180)
  64955. hue2 += 360;
  64956. }
  64957. break $label1$1;
  64958. }
  64959. if (B.HueInterpolationMethod_1 === method) {
  64960. $label2$2: {
  64961. _1_0 = hue2 - hue1;
  64962. if (_1_0 > 0 && _1_0 < 180) {
  64963. hue2 += 360;
  64964. break $label2$2;
  64965. }
  64966. if (_1_0 > -180 && _1_0 <= 0)
  64967. hue1 += 360;
  64968. }
  64969. break $label1$1;
  64970. }
  64971. if (B.HueInterpolationMethod_2 === method && hue2 < hue1) {
  64972. hue2 += 360;
  64973. break $label1$1;
  64974. }
  64975. if (B.HueInterpolationMethod_3 === method && hue1 < hue2) {
  64976. hue1 += 360;
  64977. break $label1$1;
  64978. }
  64979. break $label1$1;
  64980. }
  64981. return hue1 * weight + hue2 * (1 - weight);
  64982. },
  64983. plus$1(other) {
  64984. if (!(other instanceof A.SassNumber) && !(other instanceof A.SassColor))
  64985. return this.super$Value$plus(other);
  64986. throw A.wrapException(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " + " + other.toString$0(0) + '".', null));
  64987. },
  64988. minus$1(other) {
  64989. if (!(other instanceof A.SassNumber) && !(other instanceof A.SassColor))
  64990. return this.super$Value$minus(other);
  64991. throw A.wrapException(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " - " + other.toString$0(0) + '".', null));
  64992. },
  64993. dividedBy$1(other) {
  64994. if (!(other instanceof A.SassNumber) && !(other instanceof A.SassColor))
  64995. return this.super$Value$dividedBy(other);
  64996. throw A.wrapException(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " / " + other.toString$0(0) + '".', null));
  64997. },
  64998. $eq(_, other) {
  64999. var t1, t2, _this = this;
  65000. if (other == null)
  65001. return false;
  65002. if (!(other instanceof A.SassColor))
  65003. return false;
  65004. t1 = _this._space;
  65005. if (t1.get$isLegacyInternal()) {
  65006. t2 = other._space;
  65007. if (!t2.get$isLegacyInternal())
  65008. return false;
  65009. if (!A.fuzzyEqualsNullable(_this.alphaOrNull, other.alphaOrNull))
  65010. return false;
  65011. if (t1 === t2)
  65012. return A.fuzzyEqualsNullable(_this.channel0OrNull, other.channel0OrNull) && A.fuzzyEqualsNullable(_this.channel1OrNull, other.channel1OrNull) && A.fuzzyEqualsNullable(_this.channel2OrNull, other.channel2OrNull);
  65013. else
  65014. return _this.toSpace$1(B.RgbColorSpace_mlz).$eq(0, other.toSpace$1(B.RgbColorSpace_mlz));
  65015. }
  65016. return t1 === other._space && A.fuzzyEqualsNullable(_this.channel0OrNull, other.channel0OrNull) && A.fuzzyEqualsNullable(_this.channel1OrNull, other.channel1OrNull) && A.fuzzyEqualsNullable(_this.channel2OrNull, other.channel2OrNull) && A.fuzzyEqualsNullable(_this.alphaOrNull, other.alphaOrNull);
  65017. },
  65018. get$hashCode(_) {
  65019. var rgb, t2, t3, t4, t5, _this = this,
  65020. t1 = _this._space;
  65021. if (t1.get$isLegacyInternal()) {
  65022. rgb = _this.toSpace$1(B.RgbColorSpace_mlz);
  65023. t1 = rgb.channel0OrNull;
  65024. t1 = A.fuzzyHashCode(t1 == null ? 0 : t1);
  65025. t2 = rgb.channel1OrNull;
  65026. t2 = A.fuzzyHashCode(t2 == null ? 0 : t2);
  65027. t3 = rgb.channel2OrNull;
  65028. t3 = A.fuzzyHashCode(t3 == null ? 0 : t3);
  65029. t4 = _this.alphaOrNull;
  65030. return t1 ^ t2 ^ t3 ^ A.fuzzyHashCode(t4 == null ? 0 : t4);
  65031. } else {
  65032. t1 = A.Primitives_objectHashCode(t1);
  65033. t2 = _this.channel0OrNull;
  65034. t2 = A.fuzzyHashCode(t2 == null ? 0 : t2);
  65035. t3 = _this.channel1OrNull;
  65036. t3 = A.fuzzyHashCode(t3 == null ? 0 : t3);
  65037. t4 = _this.channel2OrNull;
  65038. t4 = A.fuzzyHashCode(t4 == null ? 0 : t4);
  65039. t5 = _this.alphaOrNull;
  65040. return (t1 ^ t2 ^ t3 ^ t4 ^ A.fuzzyHashCode(t5 == null ? 0 : t5)) >>> 0;
  65041. }
  65042. }
  65043. };
  65044. A.SassColor$_forSpace_closure.prototype = {
  65045. call$1(alpha) {
  65046. return A.fuzzyAssertRange(alpha, 0, 1, "alpha");
  65047. },
  65048. $signature: 15
  65049. };
  65050. A._ColorFormatEnum.prototype = {
  65051. toString$0(_) {
  65052. return "rgbFunction";
  65053. }
  65054. };
  65055. A.SpanColorFormat.prototype = {};
  65056. A.ColorChannel.prototype = {
  65057. isAnalogous$1(other) {
  65058. var _0_6_isSet, t1, _0_60, t2, _0_6_isSet0,
  65059. _0_1 = this.name,
  65060. _0_6 = other.name;
  65061. $label0$0: {
  65062. if ("red" !== _0_1)
  65063. _0_6_isSet = "x" === _0_1;
  65064. else
  65065. _0_6_isSet = true;
  65066. if (_0_6_isSet) {
  65067. if ("red" !== _0_6)
  65068. t1 = "x" === _0_6;
  65069. else
  65070. t1 = true;
  65071. _0_60 = _0_6;
  65072. } else {
  65073. _0_60 = null;
  65074. t1 = false;
  65075. }
  65076. t2 = true;
  65077. if (!t1) {
  65078. if ("green" !== _0_1)
  65079. t1 = "y" === _0_1;
  65080. else
  65081. t1 = true;
  65082. if (t1) {
  65083. _0_6_isSet0 = true;
  65084. if (_0_6_isSet)
  65085. t1 = _0_60;
  65086. else {
  65087. t1 = _0_6;
  65088. _0_6_isSet = _0_6_isSet0;
  65089. _0_60 = t1;
  65090. }
  65091. if ("green" !== t1) {
  65092. if (_0_6_isSet)
  65093. t1 = _0_60;
  65094. else {
  65095. t1 = _0_6;
  65096. _0_6_isSet = _0_6_isSet0;
  65097. _0_60 = t1;
  65098. }
  65099. t1 = "y" === t1;
  65100. } else
  65101. t1 = true;
  65102. } else
  65103. t1 = false;
  65104. if (!t1) {
  65105. if ("blue" !== _0_1)
  65106. t1 = "z" === _0_1;
  65107. else
  65108. t1 = true;
  65109. if (t1) {
  65110. _0_6_isSet0 = true;
  65111. if (_0_6_isSet)
  65112. t1 = _0_60;
  65113. else {
  65114. t1 = _0_6;
  65115. _0_6_isSet = _0_6_isSet0;
  65116. _0_60 = t1;
  65117. }
  65118. if ("blue" !== t1) {
  65119. if (_0_6_isSet)
  65120. t1 = _0_60;
  65121. else {
  65122. t1 = _0_6;
  65123. _0_6_isSet = _0_6_isSet0;
  65124. _0_60 = t1;
  65125. }
  65126. t1 = "z" === t1;
  65127. } else
  65128. t1 = true;
  65129. } else
  65130. t1 = false;
  65131. if (!t1) {
  65132. if ("chroma" !== _0_1)
  65133. t1 = "saturation" === _0_1;
  65134. else
  65135. t1 = true;
  65136. if (t1) {
  65137. _0_6_isSet0 = true;
  65138. if (_0_6_isSet)
  65139. t1 = _0_60;
  65140. else {
  65141. t1 = _0_6;
  65142. _0_6_isSet = _0_6_isSet0;
  65143. _0_60 = t1;
  65144. }
  65145. if ("chroma" !== t1) {
  65146. if (_0_6_isSet)
  65147. t1 = _0_60;
  65148. else {
  65149. t1 = _0_6;
  65150. _0_6_isSet = _0_6_isSet0;
  65151. _0_60 = t1;
  65152. }
  65153. t1 = "saturation" === t1;
  65154. } else
  65155. t1 = true;
  65156. } else
  65157. t1 = false;
  65158. if (!t1) {
  65159. if ("lightness" === _0_1) {
  65160. if (_0_6_isSet)
  65161. t1 = _0_60;
  65162. else {
  65163. t1 = _0_6;
  65164. _0_60 = t1;
  65165. _0_6_isSet = true;
  65166. }
  65167. t1 = "lightness" === t1;
  65168. } else
  65169. t1 = false;
  65170. if (!t1)
  65171. if ("hue" === _0_1)
  65172. t1 = "hue" === (_0_6_isSet ? _0_60 : _0_6);
  65173. else
  65174. t1 = false;
  65175. else
  65176. t1 = t2;
  65177. } else
  65178. t1 = t2;
  65179. } else
  65180. t1 = t2;
  65181. } else
  65182. t1 = t2;
  65183. } else
  65184. t1 = t2;
  65185. if (t1)
  65186. break $label0$0;
  65187. break $label0$0;
  65188. }
  65189. return t1;
  65190. }
  65191. };
  65192. A.LinearChannel.prototype = {};
  65193. A.GamutMapMethod.prototype = {
  65194. toString$0(_) {
  65195. return this.name;
  65196. }
  65197. };
  65198. A.ClipGamutMap.prototype = {
  65199. map$1(_, color) {
  65200. var t1 = color._space,
  65201. t2 = t1._channels;
  65202. return A.SassColor_SassColor$forSpaceInternal(t1, this._clampChannel$2(color.channel0OrNull, t2[0]), this._clampChannel$2(color.channel1OrNull, t2[1]), this._clampChannel$2(color.channel2OrNull, t2[2]), color.alphaOrNull);
  65203. },
  65204. _clampChannel$2(value, channel) {
  65205. var t1, min;
  65206. if (value == null)
  65207. t1 = null;
  65208. else
  65209. $label0$0: {
  65210. if (channel instanceof A.LinearChannel) {
  65211. min = channel.min;
  65212. t1 = isNaN(value) ? min : B.JSNumber_methods.clamp$2(value, min, channel.max);
  65213. break $label0$0;
  65214. }
  65215. t1 = value;
  65216. break $label0$0;
  65217. }
  65218. return t1;
  65219. }
  65220. };
  65221. A.LocalMindeGamutMap.prototype = {
  65222. map$1(_, color) {
  65223. var clipped, max, min, minInGamut, chroma, current, e,
  65224. originOklch = color.toSpace$1(B.OklchColorSpace_li8),
  65225. lightness = originOklch.channel0OrNull,
  65226. hue = originOklch.channel2OrNull,
  65227. alpha = originOklch.alphaOrNull,
  65228. t1 = lightness == null,
  65229. t2 = t1 ? 0 : lightness;
  65230. if (t2 > 1 || A.fuzzyEquals(t2, 1)) {
  65231. t1 = color._space;
  65232. t2 = color.alphaOrNull;
  65233. return t1.get$isLegacyInternal() ? A.SassColor_SassColor$rgbInternal(255, 255, 255, t2, null).toSpace$1(t1) : A.SassColor_SassColor$forSpaceInternal(t1, 1, 1, 1, t2);
  65234. } else {
  65235. t1 = t1 ? 0 : lightness;
  65236. if (t1 < 0 || A.fuzzyEquals(t1, 0))
  65237. return A.SassColor_SassColor$rgbInternal(0, 0, 0, color.alphaOrNull, null).toSpace$1(color._space);
  65238. }
  65239. clipped = color.get$isInGamut() ? color : B.ClipGamutMap_clip.map$1(0, color);
  65240. if (this._deltaEOK$2(clipped, color) < 0.02)
  65241. return clipped;
  65242. max = originOklch.channel1OrNull;
  65243. if (max == null)
  65244. max = 0;
  65245. for (t1 = color._space, min = 0, minInGamut = true; max - min > 0.0001;) {
  65246. chroma = (min + max) / 2;
  65247. current = B.OklchColorSpace_li8.convert$5(t1, lightness, chroma, hue, alpha);
  65248. if (minInGamut && current.get$isInGamut()) {
  65249. min = chroma;
  65250. continue;
  65251. }
  65252. clipped = current.get$isInGamut() ? current : B.ClipGamutMap_clip.map$1(0, current);
  65253. e = this._deltaEOK$2(clipped, current);
  65254. if (e < 0.02) {
  65255. if (0.02 - e < 0.0001)
  65256. return clipped;
  65257. min = chroma;
  65258. minInGamut = false;
  65259. } else
  65260. max = chroma;
  65261. }
  65262. return clipped;
  65263. },
  65264. _deltaEOK$2(color1, color2) {
  65265. var t2, t3, t4,
  65266. lab1 = color1.toSpace$1(B.OklabColorSpace_yrt),
  65267. lab2 = color2.toSpace$1(B.OklabColorSpace_yrt),
  65268. t1 = lab1.channel0OrNull;
  65269. if (t1 == null)
  65270. t1 = 0;
  65271. t2 = lab2.channel0OrNull;
  65272. t1 = Math.pow(t1 - (t2 == null ? 0 : t2), 2);
  65273. t2 = lab1.channel1OrNull;
  65274. if (t2 == null)
  65275. t2 = 0;
  65276. t3 = lab2.channel1OrNull;
  65277. t2 = Math.pow(t2 - (t3 == null ? 0 : t3), 2);
  65278. t3 = lab1.channel2OrNull;
  65279. if (t3 == null)
  65280. t3 = 0;
  65281. t4 = lab2.channel2OrNull;
  65282. return Math.sqrt(t1 + t2 + Math.pow(t3 - (t4 == null ? 0 : t4), 2));
  65283. }
  65284. };
  65285. A.InterpolationMethod.prototype = {
  65286. toString$0(_) {
  65287. var t1 = this.hue;
  65288. t1 = t1 == null ? "" : " " + t1.toString$0(0) + " hue";
  65289. return this.space.name + t1;
  65290. }
  65291. };
  65292. A.HueInterpolationMethod.prototype = {
  65293. _enumToString$0() {
  65294. return "HueInterpolationMethod." + this._name;
  65295. }
  65296. };
  65297. A.ColorSpace.prototype = {
  65298. get$isLegacyInternal() {
  65299. return false;
  65300. },
  65301. get$isPolarInternal() {
  65302. return false;
  65303. },
  65304. convert$5(dest, channel0, channel1, channel2, alpha) {
  65305. return this.convertLinear$5(dest, channel0, channel1, channel2, alpha);
  65306. },
  65307. convertLinear$10$missingA$missingB$missingChroma$missingHue$missingLightness(dest, red, green, blue, alpha, missingA, missingB, missingChroma, missingHue, missingLightness) {
  65308. var t1, t2, transformedBlue, transformedGreen, transformedRed, linearRed, linearGreen, linearBlue, matrix, _this = this;
  65309. $label0$0: {
  65310. t1 = B.HslColorSpace_gsm !== dest;
  65311. if (!t1 || B.HwbColorSpace_06z === dest) {
  65312. t2 = B.SrgbColorSpace_AD4;
  65313. break $label0$0;
  65314. }
  65315. if (B.LabColorSpace_IF2 === dest || B.LchColorSpace_wv8 === dest) {
  65316. t2 = B.XyzD50ColorSpace_2No;
  65317. break $label0$0;
  65318. }
  65319. if (B.OklabColorSpace_yrt === dest || B.OklchColorSpace_li8 === dest) {
  65320. t2 = B.LmsColorSpace_8I8;
  65321. break $label0$0;
  65322. }
  65323. t2 = dest;
  65324. break $label0$0;
  65325. }
  65326. if (t2 === _this) {
  65327. transformedBlue = blue;
  65328. transformedGreen = green;
  65329. transformedRed = red;
  65330. } else {
  65331. linearRed = _this.toLinear$1(red == null ? 0 : red);
  65332. linearGreen = _this.toLinear$1(green == null ? 0 : green);
  65333. linearBlue = _this.toLinear$1(blue == null ? 0 : blue);
  65334. matrix = _this.transformationMatrix$1(t2);
  65335. transformedRed = t2.fromLinear$1(matrix[0] * linearRed + matrix[1] * linearGreen + matrix[2] * linearBlue);
  65336. transformedGreen = t2.fromLinear$1(matrix[3] * linearRed + matrix[4] * linearGreen + matrix[5] * linearBlue);
  65337. transformedBlue = t2.fromLinear$1(matrix[6] * linearRed + matrix[7] * linearGreen + matrix[8] * linearBlue);
  65338. }
  65339. $label1$1: {
  65340. if (!t1 || B.HwbColorSpace_06z === dest) {
  65341. t1 = B.SrgbColorSpace_AD4.convert$8$missingChroma$missingHue$missingLightness(dest, transformedRed, transformedGreen, transformedBlue, alpha, missingChroma, missingHue, missingLightness);
  65342. break $label1$1;
  65343. }
  65344. if (B.LabColorSpace_IF2 === dest || B.LchColorSpace_wv8 === dest) {
  65345. t1 = B.XyzD50ColorSpace_2No.convert$10$missingA$missingB$missingChroma$missingHue$missingLightness(dest, transformedRed, transformedGreen, transformedBlue, alpha, missingA, missingB, missingChroma, missingHue, missingLightness);
  65346. break $label1$1;
  65347. }
  65348. if (B.OklabColorSpace_yrt === dest || B.OklchColorSpace_li8 === dest) {
  65349. t1 = B.LmsColorSpace_8I8.convert$10$missingA$missingB$missingChroma$missingHue$missingLightness(dest, transformedRed, transformedGreen, transformedBlue, alpha, missingA, missingB, missingChroma, missingHue, missingLightness);
  65350. break $label1$1;
  65351. }
  65352. t1 = red == null ? null : transformedRed;
  65353. t2 = green == null ? null : transformedGreen;
  65354. t1 = A.SassColor_SassColor$forSpaceInternal(dest, t1, t2, blue == null ? null : transformedBlue, alpha);
  65355. break $label1$1;
  65356. }
  65357. return t1;
  65358. },
  65359. convertLinear$5(dest, red, green, blue, alpha) {
  65360. return this.convertLinear$10$missingA$missingB$missingChroma$missingHue$missingLightness(dest, red, green, blue, alpha, false, false, false, false, false);
  65361. },
  65362. toLinear$1(channel) {
  65363. return A.throwExpression(A.UnimplementedError$("[BUG] Color space " + this.toString$0(0) + " doesn't support linear conversions."));
  65364. },
  65365. fromLinear$1(channel) {
  65366. return A.throwExpression(A.UnimplementedError$("[BUG] Color space " + this.toString$0(0) + " doesn't support linear conversions."));
  65367. },
  65368. transformationMatrix$1(dest) {
  65369. return A.throwExpression(A.UnimplementedError$("[BUG] Color space conversion from " + this.toString$0(0) + " to " + dest.toString$0(0) + " not implemented."));
  65370. },
  65371. toString$0(_) {
  65372. return this.name;
  65373. }
  65374. };
  65375. A.A98RgbColorSpace.prototype = {
  65376. get$isBoundedInternal() {
  65377. return true;
  65378. },
  65379. toLinear$1(channel) {
  65380. return J.get$sign$in(channel) * Math.pow(Math.abs(channel), 2.19921875);
  65381. },
  65382. fromLinear$1(channel) {
  65383. return J.get$sign$in(channel) * Math.pow(Math.abs(channel), 0.4547069271758437);
  65384. },
  65385. transformationMatrix$1(dest) {
  65386. var t1;
  65387. $label0$0: {
  65388. if (B.SrgbLinearColorSpace_sEs === dest || B.SrgbColorSpace_AD4 === dest || B.RgbColorSpace_mlz === dest) {
  65389. t1 = $.$get$linearA98RgbToLinearSrgb();
  65390. break $label0$0;
  65391. }
  65392. if (B.DisplayP3ColorSpace_NQk === dest) {
  65393. t1 = $.$get$linearA98RgbToLinearDisplayP3();
  65394. break $label0$0;
  65395. }
  65396. if (B.ProphotoRgbColorSpace_KiG === dest) {
  65397. t1 = $.$get$linearA98RgbToLinearProphotoRgb();
  65398. break $label0$0;
  65399. }
  65400. if (B.Rec2020ColorSpace_2jN === dest) {
  65401. t1 = $.$get$linearA98RgbToLinearRec2020();
  65402. break $label0$0;
  65403. }
  65404. if (B.XyzD65ColorSpace_4CA === dest) {
  65405. t1 = $.$get$linearA98RgbToXyzD65();
  65406. break $label0$0;
  65407. }
  65408. if (B.XyzD50ColorSpace_2No === dest) {
  65409. t1 = $.$get$linearA98RgbToXyzD50();
  65410. break $label0$0;
  65411. }
  65412. if (B.LmsColorSpace_8I8 === dest) {
  65413. t1 = $.$get$linearA98RgbToLms();
  65414. break $label0$0;
  65415. }
  65416. t1 = this.super$ColorSpace$transformationMatrix(dest);
  65417. break $label0$0;
  65418. }
  65419. return t1;
  65420. }
  65421. };
  65422. A.DisplayP3ColorSpace.prototype = {
  65423. get$isBoundedInternal() {
  65424. return true;
  65425. },
  65426. toLinear$1(channel) {
  65427. return A.srgbAndDisplayP3ToLinear(channel);
  65428. },
  65429. fromLinear$1(channel) {
  65430. return A.srgbAndDisplayP3FromLinear(channel);
  65431. },
  65432. transformationMatrix$1(dest) {
  65433. var t1;
  65434. $label0$0: {
  65435. if (B.SrgbLinearColorSpace_sEs === dest || B.SrgbColorSpace_AD4 === dest || B.RgbColorSpace_mlz === dest) {
  65436. t1 = $.$get$linearDisplayP3ToLinearSrgb();
  65437. break $label0$0;
  65438. }
  65439. if (B.A98RgbColorSpace_bdu === dest) {
  65440. t1 = $.$get$linearDisplayP3ToLinearA98Rgb();
  65441. break $label0$0;
  65442. }
  65443. if (B.ProphotoRgbColorSpace_KiG === dest) {
  65444. t1 = $.$get$linearDisplayP3ToLinearProphotoRgb();
  65445. break $label0$0;
  65446. }
  65447. if (B.Rec2020ColorSpace_2jN === dest) {
  65448. t1 = $.$get$linearDisplayP3ToLinearRec2020();
  65449. break $label0$0;
  65450. }
  65451. if (B.XyzD65ColorSpace_4CA === dest) {
  65452. t1 = $.$get$linearDisplayP3ToXyzD65();
  65453. break $label0$0;
  65454. }
  65455. if (B.XyzD50ColorSpace_2No === dest) {
  65456. t1 = $.$get$linearDisplayP3ToXyzD50();
  65457. break $label0$0;
  65458. }
  65459. if (B.LmsColorSpace_8I8 === dest) {
  65460. t1 = $.$get$linearDisplayP3ToLms();
  65461. break $label0$0;
  65462. }
  65463. t1 = this.super$ColorSpace$transformationMatrix(dest);
  65464. break $label0$0;
  65465. }
  65466. return t1;
  65467. }
  65468. };
  65469. A.HslColorSpace.prototype = {
  65470. get$isBoundedInternal() {
  65471. return true;
  65472. },
  65473. get$isLegacyInternal() {
  65474. return true;
  65475. },
  65476. get$isPolarInternal() {
  65477. return true;
  65478. },
  65479. convert$5(dest, hue, saturation, lightness, alpha) {
  65480. var t1 = hue == null,
  65481. scaledHue = B.JSNumber_methods.$mod((t1 ? 0 : hue) / 360, 1),
  65482. t2 = saturation == null,
  65483. scaledSaturation = (t2 ? 0 : saturation) / 100,
  65484. t3 = lightness == null,
  65485. scaledLightness = (t3 ? 0 : lightness) / 100,
  65486. m2 = scaledLightness <= 0.5 ? scaledLightness * (scaledSaturation + 1) : scaledLightness + scaledSaturation - scaledLightness * scaledSaturation,
  65487. m1 = scaledLightness * 2 - m2;
  65488. return B.SrgbColorSpace_AD4.convert$8$missingChroma$missingHue$missingLightness(dest, A.hueToRgb(m1, m2, scaledHue + 0.3333333333333333), A.hueToRgb(m1, m2, scaledHue), A.hueToRgb(m1, m2, scaledHue - 0.3333333333333333), alpha, t2, t1, t3);
  65489. }
  65490. };
  65491. A.HwbColorSpace.prototype = {
  65492. get$isBoundedInternal() {
  65493. return true;
  65494. },
  65495. get$isLegacyInternal() {
  65496. return true;
  65497. },
  65498. get$isPolarInternal() {
  65499. return true;
  65500. },
  65501. convert$5(dest, hue, whiteness, blackness, alpha) {
  65502. var t3, t1 = {},
  65503. t2 = hue == null,
  65504. scaledHue = B.JSNumber_methods.$mod(t2 ? 0 : hue, 360) / 360,
  65505. scaledWhiteness = t1.scaledWhiteness = (whiteness == null ? 0 : whiteness) / 100,
  65506. scaledBlackness = (blackness == null ? 0 : blackness) / 100,
  65507. sum = scaledWhiteness + scaledBlackness;
  65508. if (sum > 1) {
  65509. t3 = t1.scaledWhiteness = scaledWhiteness / sum;
  65510. scaledBlackness /= sum;
  65511. } else
  65512. t3 = scaledWhiteness;
  65513. t3 = new A.HwbColorSpace_convert_toRgb(t1, 1 - t3 - scaledBlackness);
  65514. return B.SrgbColorSpace_AD4.convert$6$missingHue(dest, t3.call$1(scaledHue + 0.3333333333333333), t3.call$1(scaledHue), t3.call$1(scaledHue - 0.3333333333333333), alpha, t2);
  65515. }
  65516. };
  65517. A.HwbColorSpace_convert_toRgb.prototype = {
  65518. call$1(hue) {
  65519. return A.hueToRgb(0, 1, hue) * this.factor + this._box_0.scaledWhiteness;
  65520. },
  65521. $signature: 15
  65522. };
  65523. A.LabColorSpace.prototype = {
  65524. get$isBoundedInternal() {
  65525. return false;
  65526. },
  65527. convert$7$missingChroma$missingHue(dest, lightness, a, b, alpha, missingChroma, missingHue) {
  65528. var powerlessAB, t1, missingLightness, f1, t2, t3, t4;
  65529. switch (dest) {
  65530. case B.LabColorSpace_IF2:
  65531. powerlessAB = lightness == null || A.fuzzyEquals(lightness, 0);
  65532. t1 = a == null || powerlessAB ? null : a;
  65533. return A.SassColor$_forSpace(B.LabColorSpace_IF2, lightness, t1, b == null || powerlessAB ? null : b, alpha, null);
  65534. case B.LchColorSpace_wv8:
  65535. return A.labToLch(dest, lightness, a, b, alpha, false, false);
  65536. default:
  65537. missingLightness = lightness == null;
  65538. if (missingLightness)
  65539. lightness = 0;
  65540. f1 = (lightness + 16) / 116;
  65541. t1 = a == null;
  65542. t2 = this._convertFToXorZ$1((t1 ? 0 : a) / 500 + f1);
  65543. t3 = lightness > 8 ? Math.pow(f1, 3) : lightness / 903.2962962962963;
  65544. t4 = b == null;
  65545. return B.XyzD50ColorSpace_2No.convert$10$missingA$missingB$missingChroma$missingHue$missingLightness(dest, t2 * 0.9642956764295677, t3, this._convertFToXorZ$1(f1 - (t4 ? 0 : b) / 200) * 0.8251046025104602, alpha, t1, t4, missingChroma, missingHue, missingLightness);
  65546. }
  65547. },
  65548. convert$5(dest, lightness, a, b, alpha) {
  65549. return this.convert$7$missingChroma$missingHue(dest, lightness, a, b, alpha, false, false);
  65550. },
  65551. _convertFToXorZ$1(component) {
  65552. var cubed = Math.pow(component, 3) + 0;
  65553. return cubed > 0.008856451679035631 ? cubed : (116 * component - 16) / 903.2962962962963;
  65554. }
  65555. };
  65556. A.LchColorSpace.prototype = {
  65557. get$isBoundedInternal() {
  65558. return false;
  65559. },
  65560. get$isPolarInternal() {
  65561. return true;
  65562. },
  65563. convert$5(dest, lightness, chroma, hue, alpha) {
  65564. var t1 = hue == null,
  65565. hueRadians = (t1 ? 0 : hue) * 3.141592653589793 / 180,
  65566. t2 = chroma == null,
  65567. t3 = t2 ? 0 : chroma,
  65568. t4 = Math.cos(hueRadians),
  65569. t5 = t2 ? 0 : chroma;
  65570. return B.LabColorSpace_IF2.convert$7$missingChroma$missingHue(dest, lightness, t3 * t4, t5 * Math.sin(hueRadians), alpha, t2, t1);
  65571. }
  65572. };
  65573. A.LmsColorSpace.prototype = {
  65574. get$isBoundedInternal() {
  65575. return false;
  65576. },
  65577. convert$10$missingA$missingB$missingChroma$missingHue$missingLightness(dest, long, medium, short, alpha, missingA, missingB, missingChroma, missingHue, missingLightness) {
  65578. var t1, longScaled, mediumScaled, shortScaled, lightness, t2, t3, _null = null;
  65579. switch (dest) {
  65580. case B.OklabColorSpace_yrt:
  65581. t1 = long == null ? 0 : long;
  65582. longScaled = Math.pow(Math.abs(t1), 0.3333333333333333) * J.get$sign$in(t1);
  65583. t1 = medium == null ? 0 : medium;
  65584. mediumScaled = Math.pow(Math.abs(t1), 0.3333333333333333) * J.get$sign$in(t1);
  65585. t1 = short == null ? 0 : short;
  65586. shortScaled = Math.pow(Math.abs(t1), 0.3333333333333333) * J.get$sign$in(t1);
  65587. t1 = $.$get$lmsToOklab();
  65588. lightness = t1[0] * longScaled + t1[1] * mediumScaled + t1[2] * shortScaled;
  65589. t2 = missingLightness ? _null : lightness;
  65590. t3 = missingA ? _null : t1[3] * longScaled + t1[4] * mediumScaled + t1[5] * shortScaled;
  65591. return A.SassColor$_forSpace(B.OklabColorSpace_yrt, t2, t3, missingB ? _null : t1[6] * longScaled + t1[7] * mediumScaled + t1[8] * shortScaled, alpha, _null);
  65592. case B.OklchColorSpace_li8:
  65593. t1 = long == null ? 0 : long;
  65594. longScaled = Math.pow(Math.abs(t1), 0.3333333333333333) * J.get$sign$in(t1);
  65595. t1 = medium == null ? 0 : medium;
  65596. mediumScaled = Math.pow(Math.abs(t1), 0.3333333333333333) * J.get$sign$in(t1);
  65597. t1 = short == null ? 0 : short;
  65598. shortScaled = Math.pow(Math.abs(t1), 0.3333333333333333) * J.get$sign$in(t1);
  65599. if (missingLightness)
  65600. t1 = _null;
  65601. else {
  65602. t1 = $.$get$lmsToOklab();
  65603. t1 = t1[0] * longScaled + t1[1] * mediumScaled + t1[2] * shortScaled;
  65604. }
  65605. t2 = $.$get$lmsToOklab();
  65606. return A.labToLch(dest, t1, t2[3] * longScaled + t2[4] * mediumScaled + t2[5] * shortScaled, t2[6] * longScaled + t2[7] * mediumScaled + t2[8] * shortScaled, alpha, missingChroma, missingHue);
  65607. default:
  65608. return this.super$ColorSpace$convertLinear(dest, long, medium, short, alpha, missingA, missingB, missingChroma, missingHue, missingLightness);
  65609. }
  65610. },
  65611. convert$5(dest, long, medium, short, alpha) {
  65612. return this.convert$10$missingA$missingB$missingChroma$missingHue$missingLightness(dest, long, medium, short, alpha, false, false, false, false, false);
  65613. },
  65614. toLinear$1(channel) {
  65615. return channel;
  65616. },
  65617. fromLinear$1(channel) {
  65618. return channel;
  65619. },
  65620. transformationMatrix$1(dest) {
  65621. var t1;
  65622. $label0$0: {
  65623. if (B.SrgbLinearColorSpace_sEs === dest || B.SrgbColorSpace_AD4 === dest || B.RgbColorSpace_mlz === dest) {
  65624. t1 = $.$get$lmsToLinearSrgb();
  65625. break $label0$0;
  65626. }
  65627. if (B.A98RgbColorSpace_bdu === dest) {
  65628. t1 = $.$get$lmsToLinearA98Rgb();
  65629. break $label0$0;
  65630. }
  65631. if (B.ProphotoRgbColorSpace_KiG === dest) {
  65632. t1 = $.$get$lmsToLinearProphotoRgb();
  65633. break $label0$0;
  65634. }
  65635. if (B.DisplayP3ColorSpace_NQk === dest) {
  65636. t1 = $.$get$lmsToLinearDisplayP3();
  65637. break $label0$0;
  65638. }
  65639. if (B.Rec2020ColorSpace_2jN === dest) {
  65640. t1 = $.$get$lmsToLinearRec2020();
  65641. break $label0$0;
  65642. }
  65643. if (B.XyzD65ColorSpace_4CA === dest) {
  65644. t1 = $.$get$lmsToXyzD65();
  65645. break $label0$0;
  65646. }
  65647. if (B.XyzD50ColorSpace_2No === dest) {
  65648. t1 = $.$get$lmsToXyzD50();
  65649. break $label0$0;
  65650. }
  65651. t1 = this.super$ColorSpace$transformationMatrix(dest);
  65652. break $label0$0;
  65653. }
  65654. return t1;
  65655. }
  65656. };
  65657. A.OklabColorSpace.prototype = {
  65658. get$isBoundedInternal() {
  65659. return false;
  65660. },
  65661. convert$7$missingChroma$missingHue(dest, lightness, a, b, alpha, missingChroma, missingHue) {
  65662. var missingLightness, missingA, missingB, t1;
  65663. if (dest === B.OklchColorSpace_li8)
  65664. return A.labToLch(dest, lightness, a, b, alpha, missingChroma, missingHue);
  65665. missingLightness = lightness == null;
  65666. missingA = a == null;
  65667. missingB = b == null;
  65668. if (missingLightness)
  65669. lightness = 0;
  65670. if (missingA)
  65671. a = 0;
  65672. if (missingB)
  65673. b = 0;
  65674. t1 = $.$get$oklabToLms();
  65675. return B.LmsColorSpace_8I8.convert$10$missingA$missingB$missingChroma$missingHue$missingLightness(dest, Math.pow(t1[0] * lightness + t1[1] * a + t1[2] * b, 3) + 0, Math.pow(t1[3] * lightness + t1[4] * a + t1[5] * b, 3) + 0, Math.pow(t1[6] * lightness + t1[7] * a + t1[8] * b, 3) + 0, alpha, missingA, missingB, missingChroma, missingHue, missingLightness);
  65676. },
  65677. convert$5(dest, lightness, a, b, alpha) {
  65678. return this.convert$7$missingChroma$missingHue(dest, lightness, a, b, alpha, false, false);
  65679. }
  65680. };
  65681. A.OklchColorSpace.prototype = {
  65682. get$isBoundedInternal() {
  65683. return false;
  65684. },
  65685. get$isPolarInternal() {
  65686. return true;
  65687. },
  65688. convert$5(dest, lightness, chroma, hue, alpha) {
  65689. var t1 = hue == null,
  65690. hueRadians = (t1 ? 0 : hue) * 3.141592653589793 / 180,
  65691. t2 = chroma == null,
  65692. t3 = t2 ? 0 : chroma,
  65693. t4 = Math.cos(hueRadians),
  65694. t5 = t2 ? 0 : chroma;
  65695. return B.OklabColorSpace_yrt.convert$7$missingChroma$missingHue(dest, lightness, t3 * t4, t5 * Math.sin(hueRadians), alpha, t2, t1);
  65696. }
  65697. };
  65698. A.ProphotoRgbColorSpace.prototype = {
  65699. get$isBoundedInternal() {
  65700. return true;
  65701. },
  65702. toLinear$1(channel) {
  65703. var abs = Math.abs(channel);
  65704. return abs <= 0.03125 ? channel / 16 : J.get$sign$in(channel) * Math.pow(abs, 1.8);
  65705. },
  65706. fromLinear$1(channel) {
  65707. var abs = Math.abs(channel);
  65708. return abs >= 0.001953125 ? J.get$sign$in(channel) * Math.pow(abs, 0.5555555555555556) : 16 * channel;
  65709. },
  65710. transformationMatrix$1(dest) {
  65711. var t1;
  65712. $label0$0: {
  65713. if (B.SrgbLinearColorSpace_sEs === dest || B.SrgbColorSpace_AD4 === dest || B.RgbColorSpace_mlz === dest) {
  65714. t1 = $.$get$linearProphotoRgbToLinearSrgb();
  65715. break $label0$0;
  65716. }
  65717. if (B.A98RgbColorSpace_bdu === dest) {
  65718. t1 = $.$get$linearProphotoRgbToLinearA98Rgb();
  65719. break $label0$0;
  65720. }
  65721. if (B.DisplayP3ColorSpace_NQk === dest) {
  65722. t1 = $.$get$linearProphotoRgbToLinearDisplayP3();
  65723. break $label0$0;
  65724. }
  65725. if (B.Rec2020ColorSpace_2jN === dest) {
  65726. t1 = $.$get$linearProphotoRgbToLinearRec2020();
  65727. break $label0$0;
  65728. }
  65729. if (B.XyzD65ColorSpace_4CA === dest) {
  65730. t1 = $.$get$linearProphotoRgbToXyzD65();
  65731. break $label0$0;
  65732. }
  65733. if (B.XyzD50ColorSpace_2No === dest) {
  65734. t1 = $.$get$linearProphotoRgbToXyzD50();
  65735. break $label0$0;
  65736. }
  65737. if (B.LmsColorSpace_8I8 === dest) {
  65738. t1 = $.$get$linearProphotoRgbToLms();
  65739. break $label0$0;
  65740. }
  65741. t1 = this.super$ColorSpace$transformationMatrix(dest);
  65742. break $label0$0;
  65743. }
  65744. return t1;
  65745. }
  65746. };
  65747. A.Rec2020ColorSpace.prototype = {
  65748. get$isBoundedInternal() {
  65749. return true;
  65750. },
  65751. toLinear$1(channel) {
  65752. var abs = Math.abs(channel);
  65753. return abs < 0.08124285829863151 ? channel / 4.5 : J.get$sign$in(channel) * Math.pow((abs + 1.09929682680944 - 1) / 1.09929682680944, 2.2222222222222223);
  65754. },
  65755. fromLinear$1(channel) {
  65756. var abs = Math.abs(channel);
  65757. return abs > 0.018053968510807 ? J.get$sign$in(channel) * (1.09929682680944 * Math.pow(abs, 0.45) - 0.09929682680944008) : 4.5 * channel;
  65758. },
  65759. transformationMatrix$1(dest) {
  65760. var t1;
  65761. $label0$0: {
  65762. if (B.SrgbLinearColorSpace_sEs === dest || B.SrgbColorSpace_AD4 === dest || B.RgbColorSpace_mlz === dest) {
  65763. t1 = $.$get$linearRec2020ToLinearSrgb();
  65764. break $label0$0;
  65765. }
  65766. if (B.A98RgbColorSpace_bdu === dest) {
  65767. t1 = $.$get$linearRec2020ToLinearA98Rgb();
  65768. break $label0$0;
  65769. }
  65770. if (B.DisplayP3ColorSpace_NQk === dest) {
  65771. t1 = $.$get$linearRec2020ToLinearDisplayP3();
  65772. break $label0$0;
  65773. }
  65774. if (B.ProphotoRgbColorSpace_KiG === dest) {
  65775. t1 = $.$get$linearRec2020ToLinearProphotoRgb();
  65776. break $label0$0;
  65777. }
  65778. if (B.XyzD65ColorSpace_4CA === dest) {
  65779. t1 = $.$get$linearRec2020ToXyzD65();
  65780. break $label0$0;
  65781. }
  65782. if (B.XyzD50ColorSpace_2No === dest) {
  65783. t1 = $.$get$linearRec2020ToXyzD50();
  65784. break $label0$0;
  65785. }
  65786. if (B.LmsColorSpace_8I8 === dest) {
  65787. t1 = $.$get$linearRec2020ToLms();
  65788. break $label0$0;
  65789. }
  65790. t1 = this.super$ColorSpace$transformationMatrix(dest);
  65791. break $label0$0;
  65792. }
  65793. return t1;
  65794. }
  65795. };
  65796. A.RgbColorSpace.prototype = {
  65797. get$isBoundedInternal() {
  65798. return true;
  65799. },
  65800. get$isLegacyInternal() {
  65801. return true;
  65802. },
  65803. convert$5(dest, red, green, blue, alpha) {
  65804. var t1 = red == null ? null : red / 255,
  65805. t2 = green == null ? null : green / 255;
  65806. return B.SrgbColorSpace_AD4.convert$5(dest, t1, t2, blue == null ? null : blue / 255, alpha);
  65807. },
  65808. toLinear$1(channel) {
  65809. return A.srgbAndDisplayP3ToLinear(channel / 255);
  65810. },
  65811. fromLinear$1(channel) {
  65812. return A.srgbAndDisplayP3FromLinear(channel) * 255;
  65813. }
  65814. };
  65815. A.SrgbColorSpace.prototype = {
  65816. get$isBoundedInternal() {
  65817. return true;
  65818. },
  65819. convert$8$missingChroma$missingHue$missingLightness(dest, red, green, blue, alpha, missingChroma, missingHue, missingLightness) {
  65820. var max, min, delta, hue, lightness, saturation, t1, t2, whiteness, blackness, _null = null;
  65821. if (B.HslColorSpace_gsm === dest || B.HwbColorSpace_06z === dest) {
  65822. if (red == null)
  65823. red = 0;
  65824. if (green == null)
  65825. green = 0;
  65826. if (blue == null)
  65827. blue = 0;
  65828. max = Math.max(Math.max(red, green), blue);
  65829. min = Math.min(Math.min(red, green), blue);
  65830. delta = max - min;
  65831. if (max === min)
  65832. hue = 0;
  65833. else if (max === red)
  65834. hue = 60 * (green - blue) / delta + 360;
  65835. else
  65836. hue = max === green ? 60 * (blue - red) / delta + 120 : 60 * (red - green) / delta + 240;
  65837. if (dest === B.HslColorSpace_gsm) {
  65838. lightness = (min + max) / 2;
  65839. saturation = lightness === 0 || lightness === 1 ? 0 : 100 * (max - lightness) / Math.min(lightness, 1 - lightness);
  65840. if (saturation < 0) {
  65841. hue += 180;
  65842. saturation = Math.abs(saturation);
  65843. }
  65844. t1 = missingHue || A.fuzzyEquals(saturation, 0) ? _null : B.JSNumber_methods.$mod(hue, 360);
  65845. t2 = missingChroma ? _null : saturation;
  65846. return A.SassColor_SassColor$forSpaceInternal(dest, t1, t2, missingLightness ? _null : lightness * 100, alpha);
  65847. } else {
  65848. whiteness = min * 100;
  65849. blackness = 100 - max * 100;
  65850. if (!missingHue) {
  65851. t1 = whiteness + blackness;
  65852. t1 = t1 > 100 || A.fuzzyEquals(t1, 100);
  65853. } else
  65854. t1 = true;
  65855. return A.SassColor_SassColor$forSpaceInternal(dest, t1 ? _null : B.JSNumber_methods.$mod(hue, 360), whiteness, blackness, alpha);
  65856. }
  65857. }
  65858. if (B.RgbColorSpace_mlz === dest) {
  65859. t1 = red == null ? _null : red * 255;
  65860. t2 = green == null ? _null : green * 255;
  65861. return A.SassColor_SassColor$rgbInternal(t1, t2, blue == null ? _null : blue * 255, alpha, _null);
  65862. }
  65863. if (B.SrgbLinearColorSpace_sEs === dest) {
  65864. t1 = this.get$toLinear();
  65865. return A.SassColor_SassColor$forSpaceInternal(dest, A.NullableExtension_andThen(red, t1), A.NullableExtension_andThen(green, t1), A.NullableExtension_andThen(blue, t1), alpha);
  65866. }
  65867. return this.super$ColorSpace$convertLinear(dest, red, green, blue, alpha, false, false, missingChroma, missingHue, missingLightness);
  65868. },
  65869. convert$5(dest, red, green, blue, alpha) {
  65870. return this.convert$8$missingChroma$missingHue$missingLightness(dest, red, green, blue, alpha, false, false, false);
  65871. },
  65872. convert$6$missingHue(dest, red, green, blue, alpha, missingHue) {
  65873. return this.convert$8$missingChroma$missingHue$missingLightness(dest, red, green, blue, alpha, false, missingHue, false);
  65874. },
  65875. toLinear$1(channel) {
  65876. return A.srgbAndDisplayP3ToLinear(channel);
  65877. },
  65878. fromLinear$1(channel) {
  65879. return A.srgbAndDisplayP3FromLinear(channel);
  65880. },
  65881. transformationMatrix$1(dest) {
  65882. var t1;
  65883. $label0$0: {
  65884. if (B.DisplayP3ColorSpace_NQk === dest) {
  65885. t1 = $.$get$linearSrgbToLinearDisplayP3();
  65886. break $label0$0;
  65887. }
  65888. if (B.A98RgbColorSpace_bdu === dest) {
  65889. t1 = $.$get$linearSrgbToLinearA98Rgb();
  65890. break $label0$0;
  65891. }
  65892. if (B.ProphotoRgbColorSpace_KiG === dest) {
  65893. t1 = $.$get$linearSrgbToLinearProphotoRgb();
  65894. break $label0$0;
  65895. }
  65896. if (B.Rec2020ColorSpace_2jN === dest) {
  65897. t1 = $.$get$linearSrgbToLinearRec2020();
  65898. break $label0$0;
  65899. }
  65900. if (B.XyzD65ColorSpace_4CA === dest) {
  65901. t1 = $.$get$linearSrgbToXyzD65();
  65902. break $label0$0;
  65903. }
  65904. if (B.XyzD50ColorSpace_2No === dest) {
  65905. t1 = $.$get$linearSrgbToXyzD50();
  65906. break $label0$0;
  65907. }
  65908. if (B.LmsColorSpace_8I8 === dest) {
  65909. t1 = $.$get$linearSrgbToLms();
  65910. break $label0$0;
  65911. }
  65912. t1 = this.super$ColorSpace$transformationMatrix(dest);
  65913. break $label0$0;
  65914. }
  65915. return t1;
  65916. }
  65917. };
  65918. A.SrgbLinearColorSpace.prototype = {
  65919. get$isBoundedInternal() {
  65920. return true;
  65921. },
  65922. convert$5(dest, red, green, blue, alpha) {
  65923. var t1;
  65924. $label0$0: {
  65925. if (B.RgbColorSpace_mlz === dest || B.HslColorSpace_gsm === dest || B.HwbColorSpace_06z === dest || B.SrgbColorSpace_AD4 === dest) {
  65926. t1 = B.SrgbColorSpace_AD4.convert$5(dest, A.NullableExtension_andThen(red, A.utils0__srgbAndDisplayP3FromLinear$closure()), A.NullableExtension_andThen(green, A.utils0__srgbAndDisplayP3FromLinear$closure()), A.NullableExtension_andThen(blue, A.utils0__srgbAndDisplayP3FromLinear$closure()), alpha);
  65927. break $label0$0;
  65928. }
  65929. t1 = this.super$ColorSpace$convert(dest, red, green, blue, alpha);
  65930. break $label0$0;
  65931. }
  65932. return t1;
  65933. },
  65934. toLinear$1(channel) {
  65935. return channel;
  65936. },
  65937. fromLinear$1(channel) {
  65938. return channel;
  65939. },
  65940. transformationMatrix$1(dest) {
  65941. var t1;
  65942. $label0$0: {
  65943. if (B.DisplayP3ColorSpace_NQk === dest) {
  65944. t1 = $.$get$linearSrgbToLinearDisplayP3();
  65945. break $label0$0;
  65946. }
  65947. if (B.A98RgbColorSpace_bdu === dest) {
  65948. t1 = $.$get$linearSrgbToLinearA98Rgb();
  65949. break $label0$0;
  65950. }
  65951. if (B.ProphotoRgbColorSpace_KiG === dest) {
  65952. t1 = $.$get$linearSrgbToLinearProphotoRgb();
  65953. break $label0$0;
  65954. }
  65955. if (B.Rec2020ColorSpace_2jN === dest) {
  65956. t1 = $.$get$linearSrgbToLinearRec2020();
  65957. break $label0$0;
  65958. }
  65959. if (B.XyzD65ColorSpace_4CA === dest) {
  65960. t1 = $.$get$linearSrgbToXyzD65();
  65961. break $label0$0;
  65962. }
  65963. if (B.XyzD50ColorSpace_2No === dest) {
  65964. t1 = $.$get$linearSrgbToXyzD50();
  65965. break $label0$0;
  65966. }
  65967. if (B.LmsColorSpace_8I8 === dest) {
  65968. t1 = $.$get$linearSrgbToLms();
  65969. break $label0$0;
  65970. }
  65971. t1 = this.super$ColorSpace$transformationMatrix(dest);
  65972. break $label0$0;
  65973. }
  65974. return t1;
  65975. }
  65976. };
  65977. A.XyzD50ColorSpace.prototype = {
  65978. get$isBoundedInternal() {
  65979. return false;
  65980. },
  65981. convert$10$missingA$missingB$missingChroma$missingHue$missingLightness(dest, x, y, z, alpha, missingA, missingB, missingChroma, missingHue, missingLightness) {
  65982. var f0, f1, f2, lightness, a, b, t1, _this = this, _null = null;
  65983. if (B.LabColorSpace_IF2 === dest || B.LchColorSpace_wv8 === dest) {
  65984. f0 = _this._convertComponentToLabF$1((x == null ? 0 : x) / 0.9642956764295677);
  65985. f1 = _this._convertComponentToLabF$1((y == null ? 0 : y) / 1);
  65986. f2 = _this._convertComponentToLabF$1((z == null ? 0 : z) / 0.8251046025104602);
  65987. lightness = missingLightness ? _null : 116 * f1 - 16;
  65988. a = 500 * (f0 - f1);
  65989. b = 200 * (f1 - f2);
  65990. if (dest === B.LabColorSpace_IF2) {
  65991. t1 = missingA ? _null : a;
  65992. t1 = A.SassColor$_forSpace(B.LabColorSpace_IF2, lightness, t1, missingB ? _null : b, alpha, _null);
  65993. } else
  65994. t1 = A.labToLch(B.LchColorSpace_wv8, lightness, a, b, alpha, missingChroma, missingHue);
  65995. return t1;
  65996. }
  65997. return _this.super$ColorSpace$convertLinear(dest, x, y, z, alpha, missingA, missingB, missingChroma, missingHue, missingLightness);
  65998. },
  65999. convert$5(dest, x, y, z, alpha) {
  66000. return this.convert$10$missingA$missingB$missingChroma$missingHue$missingLightness(dest, x, y, z, alpha, false, false, false, false, false);
  66001. },
  66002. _convertComponentToLabF$1(component) {
  66003. return component > 0.008856451679035631 ? Math.pow(component, 0.3333333333333333) + 0 : (903.2962962962963 * component + 16) / 116;
  66004. },
  66005. toLinear$1(channel) {
  66006. return channel;
  66007. },
  66008. fromLinear$1(channel) {
  66009. return channel;
  66010. },
  66011. transformationMatrix$1(dest) {
  66012. var t1;
  66013. $label0$0: {
  66014. if (B.SrgbLinearColorSpace_sEs === dest || B.SrgbColorSpace_AD4 === dest || B.RgbColorSpace_mlz === dest) {
  66015. t1 = $.$get$xyzD50ToLinearSrgb();
  66016. break $label0$0;
  66017. }
  66018. if (B.A98RgbColorSpace_bdu === dest) {
  66019. t1 = $.$get$xyzD50ToLinearA98Rgb();
  66020. break $label0$0;
  66021. }
  66022. if (B.ProphotoRgbColorSpace_KiG === dest) {
  66023. t1 = $.$get$xyzD50ToLinearProphotoRgb();
  66024. break $label0$0;
  66025. }
  66026. if (B.DisplayP3ColorSpace_NQk === dest) {
  66027. t1 = $.$get$xyzD50ToLinearDisplayP3();
  66028. break $label0$0;
  66029. }
  66030. if (B.Rec2020ColorSpace_2jN === dest) {
  66031. t1 = $.$get$xyzD50ToLinearRec2020();
  66032. break $label0$0;
  66033. }
  66034. if (B.XyzD65ColorSpace_4CA === dest) {
  66035. t1 = $.$get$xyzD50ToXyzD65();
  66036. break $label0$0;
  66037. }
  66038. if (B.LmsColorSpace_8I8 === dest) {
  66039. t1 = $.$get$xyzD50ToLms();
  66040. break $label0$0;
  66041. }
  66042. t1 = this.super$ColorSpace$transformationMatrix(dest);
  66043. break $label0$0;
  66044. }
  66045. return t1;
  66046. }
  66047. };
  66048. A.XyzD65ColorSpace.prototype = {
  66049. get$isBoundedInternal() {
  66050. return false;
  66051. },
  66052. toLinear$1(channel) {
  66053. return channel;
  66054. },
  66055. fromLinear$1(channel) {
  66056. return channel;
  66057. },
  66058. transformationMatrix$1(dest) {
  66059. var t1;
  66060. $label0$0: {
  66061. if (B.SrgbLinearColorSpace_sEs === dest || B.SrgbColorSpace_AD4 === dest || B.RgbColorSpace_mlz === dest) {
  66062. t1 = $.$get$xyzD65ToLinearSrgb();
  66063. break $label0$0;
  66064. }
  66065. if (B.A98RgbColorSpace_bdu === dest) {
  66066. t1 = $.$get$xyzD65ToLinearA98Rgb();
  66067. break $label0$0;
  66068. }
  66069. if (B.ProphotoRgbColorSpace_KiG === dest) {
  66070. t1 = $.$get$xyzD65ToLinearProphotoRgb();
  66071. break $label0$0;
  66072. }
  66073. if (B.DisplayP3ColorSpace_NQk === dest) {
  66074. t1 = $.$get$xyzD65ToLinearDisplayP3();
  66075. break $label0$0;
  66076. }
  66077. if (B.Rec2020ColorSpace_2jN === dest) {
  66078. t1 = $.$get$xyzD65ToLinearRec2020();
  66079. break $label0$0;
  66080. }
  66081. if (B.XyzD50ColorSpace_2No === dest) {
  66082. t1 = $.$get$xyzD65ToXyzD50();
  66083. break $label0$0;
  66084. }
  66085. if (B.LmsColorSpace_8I8 === dest) {
  66086. t1 = $.$get$xyzD65ToLms();
  66087. break $label0$0;
  66088. }
  66089. t1 = this.super$ColorSpace$transformationMatrix(dest);
  66090. break $label0$0;
  66091. }
  66092. return t1;
  66093. }
  66094. };
  66095. A.SassFunction.prototype = {
  66096. accept$1$1(visitor) {
  66097. var t1, t2;
  66098. if (!visitor._inspect)
  66099. A.throwExpression(A.SassScriptException$(this.toString$0(0) + " isn't a valid CSS value.", null));
  66100. t1 = visitor._serialize$_buffer;
  66101. t1.write$1(0, "get-function(");
  66102. t2 = this.callable;
  66103. visitor._visitQuotedString$1(t2.get$name(t2));
  66104. t1.writeCharCode$1(41);
  66105. return null;
  66106. },
  66107. accept$1(visitor) {
  66108. return this.accept$1$1(visitor, type$.dynamic);
  66109. },
  66110. assertFunction$1($name) {
  66111. return this;
  66112. },
  66113. $eq(_, other) {
  66114. if (other == null)
  66115. return false;
  66116. return other instanceof A.SassFunction && this.callable.$eq(0, other.callable);
  66117. },
  66118. get$hashCode(_) {
  66119. var t1 = this.callable;
  66120. return t1.get$hashCode(t1);
  66121. }
  66122. };
  66123. A.SassList.prototype = {
  66124. get$separator(_) {
  66125. return this._separator;
  66126. },
  66127. get$hasBrackets() {
  66128. return this._hasBrackets;
  66129. },
  66130. get$isBlank() {
  66131. return !this._hasBrackets && B.JSArray_methods.every$1(this._list$_contents, new A.SassList_isBlank_closure());
  66132. },
  66133. get$asList() {
  66134. return this._list$_contents;
  66135. },
  66136. get$lengthAsList() {
  66137. return this._list$_contents.length;
  66138. },
  66139. SassList$3$brackets(contents, _separator, brackets) {
  66140. if (this._separator === B.ListSeparator_undecided_null_undecided && this._list$_contents.length > 1)
  66141. throw A.wrapException(A.ArgumentError$(string$.A_list, null));
  66142. },
  66143. toString$0(_) {
  66144. var t2, _this = this,
  66145. t1 = true;
  66146. if (!_this._hasBrackets) {
  66147. t2 = _this._list$_contents.length;
  66148. if (t2 !== 0)
  66149. t1 = t2 === 1 && _this._separator === B.ListSeparator_ECn;
  66150. }
  66151. if (t1)
  66152. return _this.super$Value$toString(0);
  66153. return "(" + _this.super$Value$toString(0) + ")";
  66154. },
  66155. accept$1$1(visitor) {
  66156. return visitor.visitList$1(this);
  66157. },
  66158. accept$1(visitor) {
  66159. return this.accept$1$1(visitor, type$.dynamic);
  66160. },
  66161. assertMap$1($name) {
  66162. return this._list$_contents.length === 0 ? B.SassMap_Map_empty : this.super$Value$assertMap($name);
  66163. },
  66164. tryMap$0() {
  66165. return this._list$_contents.length === 0 ? B.SassMap_Map_empty : null;
  66166. },
  66167. $eq(_, other) {
  66168. var t1, _this = this;
  66169. if (other == null)
  66170. return false;
  66171. if (!(other instanceof A.SassList && other._separator === _this._separator && other._hasBrackets === _this._hasBrackets && B.C_ListEquality.equals$2(0, other._list$_contents, _this._list$_contents)))
  66172. t1 = _this._list$_contents.length === 0 && other instanceof A.SassMap && other.get$asList().length === 0;
  66173. else
  66174. t1 = true;
  66175. return t1;
  66176. },
  66177. get$hashCode(_) {
  66178. return B.C_ListEquality0.hash$1(this._list$_contents);
  66179. }
  66180. };
  66181. A.SassList_isBlank_closure.prototype = {
  66182. call$1(element) {
  66183. return element.get$isBlank();
  66184. },
  66185. $signature: 77
  66186. };
  66187. A.ListSeparator.prototype = {
  66188. _enumToString$0() {
  66189. return "ListSeparator." + this._name;
  66190. },
  66191. toString$0(_) {
  66192. return this._list$_name;
  66193. }
  66194. };
  66195. A.SassMap.prototype = {
  66196. get$separator(_) {
  66197. var t1 = this._map$_contents;
  66198. return t1.get$isEmpty(t1) ? B.ListSeparator_undecided_null_undecided : B.ListSeparator_ECn;
  66199. },
  66200. get$asList() {
  66201. var t3, t4, t5, result,
  66202. t1 = type$.JSArray_Value,
  66203. t2 = A._setArrayType([], t1);
  66204. for (t3 = type$.Value, t4 = A.MapExtensions_get_pairs(this._map$_contents, t3, t3), t4 = t4.get$iterator(t4); t4.moveNext$0();) {
  66205. t5 = t4.get$current(t4);
  66206. result = A.List_List$from(A._setArrayType([t5._0, t5._1], t1), false, t3);
  66207. result.fixed$length = Array;
  66208. result.immutable$list = Array;
  66209. t2.push(new A.SassList(result, B.ListSeparator_nbm, false));
  66210. }
  66211. return t2;
  66212. },
  66213. get$lengthAsList() {
  66214. var t1 = this._map$_contents;
  66215. return t1.get$length(t1);
  66216. },
  66217. accept$1$1(visitor) {
  66218. return visitor.visitMap$1(this);
  66219. },
  66220. accept$1(visitor) {
  66221. return this.accept$1$1(visitor, type$.dynamic);
  66222. },
  66223. assertMap$1($name) {
  66224. return this;
  66225. },
  66226. tryMap$0() {
  66227. return this;
  66228. },
  66229. $eq(_, other) {
  66230. var t1;
  66231. if (other == null)
  66232. return false;
  66233. if (!(other instanceof A.SassMap && B.C_MapEquality.equals$2(0, other._map$_contents, this._map$_contents))) {
  66234. t1 = this._map$_contents;
  66235. t1 = t1.get$isEmpty(t1) && other instanceof A.SassList && other._list$_contents.length === 0;
  66236. } else
  66237. t1 = true;
  66238. return t1;
  66239. },
  66240. get$hashCode(_) {
  66241. var t1 = this._map$_contents;
  66242. return t1.get$isEmpty(t1) ? B.C_ListEquality0.hash$1(B.List_empty8) : B.C_MapEquality.hash$1(t1);
  66243. }
  66244. };
  66245. A.SassMixin.prototype = {
  66246. accept$1$1(visitor) {
  66247. var t1, t2;
  66248. if (!visitor._inspect)
  66249. A.throwExpression(A.SassScriptException$(this.toString$0(0) + " isn't a valid CSS value.", null));
  66250. t1 = visitor._serialize$_buffer;
  66251. t1.write$1(0, "get-mixin(");
  66252. t2 = this.callable;
  66253. visitor._visitQuotedString$1(t2.get$name(t2));
  66254. t1.writeCharCode$1(41);
  66255. return null;
  66256. },
  66257. accept$1(visitor) {
  66258. return this.accept$1$1(visitor, type$.dynamic);
  66259. },
  66260. assertMixin$1($name) {
  66261. return this;
  66262. },
  66263. $eq(_, other) {
  66264. if (other == null)
  66265. return false;
  66266. return other instanceof A.SassMixin && this.callable.$eq(0, other.callable);
  66267. },
  66268. get$hashCode(_) {
  66269. var t1 = this.callable;
  66270. return t1.get$hashCode(t1);
  66271. }
  66272. };
  66273. A._SassNull.prototype = {
  66274. get$isTruthy() {
  66275. return false;
  66276. },
  66277. get$isBlank() {
  66278. return true;
  66279. },
  66280. get$realNull() {
  66281. return null;
  66282. },
  66283. accept$1$1(visitor) {
  66284. if (visitor._inspect)
  66285. visitor._serialize$_buffer.write$1(0, "null");
  66286. return null;
  66287. },
  66288. accept$1(visitor) {
  66289. return this.accept$1$1(visitor, type$.dynamic);
  66290. },
  66291. unaryNot$0() {
  66292. return B.SassBoolean_true;
  66293. }
  66294. };
  66295. A.SassNumber.prototype = {
  66296. get$unitString() {
  66297. var _this = this;
  66298. return _this.get$hasUnits() ? _this._unitString$2(_this.get$numeratorUnits(_this), _this.get$denominatorUnits(_this)) : "";
  66299. },
  66300. accept$1$1(visitor) {
  66301. return visitor.visitNumber$1(this);
  66302. },
  66303. accept$1(visitor) {
  66304. return this.accept$1$1(visitor, type$.dynamic);
  66305. },
  66306. withoutSlash$0() {
  66307. var _this = this;
  66308. return _this.asSlash == null ? _this : _this.withValue$1(_this._number$_value);
  66309. },
  66310. assertNumber$1($name) {
  66311. return this;
  66312. },
  66313. assertNumber$0() {
  66314. return this.assertNumber$1(null);
  66315. },
  66316. assertInt$1($name) {
  66317. var _0_0 = A.fuzzyAsInt(this._number$_value);
  66318. if (_0_0 != null)
  66319. return _0_0;
  66320. throw A.wrapException(A.SassScriptException$(this.toString$0(0) + " is not an int.", $name));
  66321. },
  66322. assertInt$0() {
  66323. return this.assertInt$1(null);
  66324. },
  66325. valueInRange$3(min, max, $name) {
  66326. var _this = this,
  66327. _0_0 = A.fuzzyCheckRange(_this._number$_value, min, max);
  66328. if (_0_0 != null)
  66329. return _0_0;
  66330. throw A.wrapException(A.SassScriptException$("Expected " + _this.toString$0(0) + " to be within " + min + _this.get$unitString() + " and " + max + _this.get$unitString() + ".", $name));
  66331. },
  66332. valueInRangeWithUnit$4(min, max, $name, unit) {
  66333. var _0_0 = A.fuzzyCheckRange(this._number$_value, min, max);
  66334. if (_0_0 != null)
  66335. return _0_0;
  66336. throw A.wrapException(A.SassScriptException$("Expected " + this.toString$0(0) + " to be within " + min + unit + " and " + max + unit + ".", $name));
  66337. },
  66338. hasCompatibleUnits$1(other) {
  66339. var _this = this;
  66340. if (_this.get$numeratorUnits(_this).length !== other.get$numeratorUnits(other).length)
  66341. return false;
  66342. if (_this.get$denominatorUnits(_this).length !== other.get$denominatorUnits(other).length)
  66343. return false;
  66344. return _this.isComparableTo$1(other);
  66345. },
  66346. assertUnit$2(unit, $name) {
  66347. if (this.hasUnit$1(unit))
  66348. return;
  66349. throw A.wrapException(A.SassScriptException$("Expected " + this.toString$0(0) + ' to have unit "' + unit + '".', $name));
  66350. },
  66351. assertNoUnits$1($name) {
  66352. if (!this.get$hasUnits())
  66353. return;
  66354. throw A.wrapException(A.SassScriptException$("Expected " + this.toString$0(0) + " to have no units.", $name));
  66355. },
  66356. assertNoUnits$0() {
  66357. return this.assertNoUnits$1(null);
  66358. },
  66359. convertValueToMatch$3(other, $name, otherName) {
  66360. return this._coerceOrConvertValue$6$coerceUnitless$name$other$otherName(other.get$numeratorUnits(other), other.get$denominatorUnits(other), false, $name, other, otherName);
  66361. },
  66362. convertValueToMatch$1(other) {
  66363. return this.convertValueToMatch$3(other, null, null);
  66364. },
  66365. coerce$3(newNumerators, newDenominators, $name) {
  66366. return A.SassNumber_SassNumber$withUnits(this.coerceValue$3(newNumerators, newDenominators, $name), newDenominators, newNumerators);
  66367. },
  66368. coerce$2(newNumerators, newDenominators) {
  66369. return this.coerce$3(newNumerators, newDenominators, null);
  66370. },
  66371. coerceValue$3(newNumerators, newDenominators, $name) {
  66372. return this._coerceOrConvertValue$4$coerceUnitless$name(newNumerators, newDenominators, true, $name);
  66373. },
  66374. coerceValueToUnit$2(unit, $name) {
  66375. var t1 = type$.JSArray_String;
  66376. return this.coerceValue$3(A._setArrayType([unit], t1), A._setArrayType([], t1), $name);
  66377. },
  66378. coerceValueToUnit$1(unit) {
  66379. return this.coerceValueToUnit$2(unit, null);
  66380. },
  66381. coerceToMatch$3(other, $name, otherName) {
  66382. var t1 = this.coerceValueToMatch$3(other, $name, otherName),
  66383. t2 = other.get$numeratorUnits(other);
  66384. return A.SassNumber_SassNumber$withUnits(t1, other.get$denominatorUnits(other), t2);
  66385. },
  66386. coerceValueToMatch$3(other, $name, otherName) {
  66387. return this._coerceOrConvertValue$6$coerceUnitless$name$other$otherName(other.get$numeratorUnits(other), other.get$denominatorUnits(other), true, $name, other, otherName);
  66388. },
  66389. coerceValueToMatch$1(other) {
  66390. return this.coerceValueToMatch$3(other, null, null);
  66391. },
  66392. _coerceOrConvertValue$6$coerceUnitless$name$other$otherName(newNumerators, newDenominators, coerceUnitless, $name, other, otherName) {
  66393. var otherHasUnits, t1, compatibilityException, oldNumerators, _i, oldDenominators, _this = this, _box_0 = {};
  66394. if (B.C_ListEquality.equals$2(0, _this.get$numeratorUnits(_this), newNumerators) && B.C_ListEquality.equals$2(0, _this.get$denominatorUnits(_this), newDenominators))
  66395. return _this._number$_value;
  66396. otherHasUnits = newNumerators.length !== 0 || newDenominators.length !== 0;
  66397. if (coerceUnitless)
  66398. t1 = !_this.get$hasUnits() || !otherHasUnits;
  66399. else
  66400. t1 = false;
  66401. if (t1)
  66402. return _this._number$_value;
  66403. compatibilityException = new A.SassNumber__coerceOrConvertValue_compatibilityException(_this, other, otherName, otherHasUnits, $name, newNumerators, newDenominators);
  66404. _box_0.value = _this._number$_value;
  66405. t1 = _this.get$numeratorUnits(_this);
  66406. oldNumerators = A._setArrayType(t1.slice(0), A._arrayInstanceType(t1));
  66407. for (t1 = newNumerators.length, _i = 0; _i < newNumerators.length; newNumerators.length === t1 || (0, A.throwConcurrentModificationError)(newNumerators), ++_i)
  66408. A.removeFirstWhere(oldNumerators, new A.SassNumber__coerceOrConvertValue_closure(_box_0, newNumerators[_i]), new A.SassNumber__coerceOrConvertValue_closure0(compatibilityException));
  66409. t1 = _this.get$denominatorUnits(_this);
  66410. oldDenominators = A._setArrayType(t1.slice(0), A._arrayInstanceType(t1));
  66411. for (t1 = newDenominators.length, _i = 0; _i < newDenominators.length; newDenominators.length === t1 || (0, A.throwConcurrentModificationError)(newDenominators), ++_i)
  66412. A.removeFirstWhere(oldDenominators, new A.SassNumber__coerceOrConvertValue_closure1(_box_0, newDenominators[_i]), new A.SassNumber__coerceOrConvertValue_closure2(compatibilityException));
  66413. if (oldNumerators.length !== 0 || oldDenominators.length !== 0)
  66414. throw A.wrapException(compatibilityException.call$0());
  66415. return _box_0.value;
  66416. },
  66417. _coerceOrConvertValue$4$coerceUnitless$name(newNumerators, newDenominators, coerceUnitless, $name) {
  66418. return this._coerceOrConvertValue$6$coerceUnitless$name$other$otherName(newNumerators, newDenominators, coerceUnitless, $name, null, null);
  66419. },
  66420. isComparableTo$1(other) {
  66421. var exception;
  66422. if (!this.get$hasUnits() || !other.get$hasUnits())
  66423. return true;
  66424. try {
  66425. this.greaterThan$1(other);
  66426. return true;
  66427. } catch (exception) {
  66428. if (A.unwrapException(exception) instanceof A.SassScriptException)
  66429. return false;
  66430. else
  66431. throw exception;
  66432. }
  66433. },
  66434. greaterThan$1(other) {
  66435. if (other instanceof A.SassNumber)
  66436. return this._coerceUnits$2(other, A.number0__fuzzyGreaterThan$closure()) ? B.SassBoolean_true : B.SassBoolean_false;
  66437. throw A.wrapException(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " > " + other.toString$0(0) + '".', null));
  66438. },
  66439. greaterThanOrEquals$1(other) {
  66440. if (other instanceof A.SassNumber)
  66441. return this._coerceUnits$2(other, A.number0__fuzzyGreaterThanOrEquals$closure()) ? B.SassBoolean_true : B.SassBoolean_false;
  66442. throw A.wrapException(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " >= " + other.toString$0(0) + '".', null));
  66443. },
  66444. lessThan$1(other) {
  66445. if (other instanceof A.SassNumber)
  66446. return this._coerceUnits$2(other, A.number0__fuzzyLessThan$closure()) ? B.SassBoolean_true : B.SassBoolean_false;
  66447. throw A.wrapException(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " < " + other.toString$0(0) + '".', null));
  66448. },
  66449. lessThanOrEquals$1(other) {
  66450. if (other instanceof A.SassNumber)
  66451. return this._coerceUnits$2(other, A.number0__fuzzyLessThanOrEquals$closure()) ? B.SassBoolean_true : B.SassBoolean_false;
  66452. throw A.wrapException(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " <= " + other.toString$0(0) + '".', null));
  66453. },
  66454. modulo$1(other) {
  66455. if (other instanceof A.SassNumber)
  66456. return this.withValue$1(this._coerceUnits$2(other, A.number0__moduloLikeSass$closure()));
  66457. throw A.wrapException(A.SassScriptException$('Undefined operation "' + this.toString$0(0) + " % " + other.toString$0(0) + '".', null));
  66458. },
  66459. plus$1(other) {
  66460. var _this = this;
  66461. if (other instanceof A.SassNumber)
  66462. return _this.withValue$1(_this._coerceUnits$2(other, new A.SassNumber_plus_closure()));
  66463. if (!(other instanceof A.SassColor))
  66464. return _this.super$Value$plus(other);
  66465. throw A.wrapException(A.SassScriptException$('Undefined operation "' + _this.toString$0(0) + " + " + other.toString$0(0) + '".', null));
  66466. },
  66467. minus$1(other) {
  66468. var _this = this;
  66469. if (other instanceof A.SassNumber)
  66470. return _this.withValue$1(_this._coerceUnits$2(other, new A.SassNumber_minus_closure()));
  66471. if (!(other instanceof A.SassColor))
  66472. return _this.super$Value$minus(other);
  66473. throw A.wrapException(A.SassScriptException$('Undefined operation "' + _this.toString$0(0) + " - " + other.toString$0(0) + '".', null));
  66474. },
  66475. times$1(other) {
  66476. var _this = this;
  66477. if (other instanceof A.SassNumber) {
  66478. if (!other.get$hasUnits())
  66479. return _this.withValue$1(_this._number$_value * other._number$_value);
  66480. return _this.multiplyUnits$3(_this._number$_value * other._number$_value, other.get$numeratorUnits(other), other.get$denominatorUnits(other));
  66481. }
  66482. throw A.wrapException(A.SassScriptException$('Undefined operation "' + _this.toString$0(0) + " * " + other.toString$0(0) + '".', null));
  66483. },
  66484. dividedBy$1(other) {
  66485. var _this = this;
  66486. if (other instanceof A.SassNumber) {
  66487. if (!other.get$hasUnits())
  66488. return _this.withValue$1(_this._number$_value / other._number$_value);
  66489. return _this.multiplyUnits$3(_this._number$_value / other._number$_value, other.get$denominatorUnits(other), other.get$numeratorUnits(other));
  66490. }
  66491. return _this.super$Value$dividedBy(other);
  66492. },
  66493. unaryPlus$0() {
  66494. return this;
  66495. },
  66496. _coerceUnits$1$2(other, operation) {
  66497. var t1, exception;
  66498. try {
  66499. t1 = operation.call$2(this._number$_value, other.coerceValueToMatch$1(this));
  66500. return t1;
  66501. } catch (exception) {
  66502. if (A.unwrapException(exception) instanceof A.SassScriptException) {
  66503. this.coerceValueToMatch$1(other);
  66504. throw exception;
  66505. } else
  66506. throw exception;
  66507. }
  66508. },
  66509. _coerceUnits$2(other, operation) {
  66510. return this._coerceUnits$1$2(other, operation, type$.dynamic);
  66511. },
  66512. multiplyUnits$3(value, otherNumerators, otherDenominators) {
  66513. var t1, _0_1, _0_6, _0_3, _0_9, _0_9_isSet, _0_7, _0_7_isSet, t2, _0_2, denominators_case_0, _0_11_isSet, _0_11, _0_13, _0_13_isSet, _0_10, numerators_case_0, t4, t3, t5, t6, t7, numerators_case_1, denominators_case_1, t0, newNumerators, mutableOtherDenominators, _i, numerator, mutableDenominatorUnits, _this = this, _null = null, _box_0 = {};
  66514. _box_0.value = value;
  66515. t1 = [_this.get$numeratorUnits(_this), _this.get$denominatorUnits(_this), otherNumerators, otherDenominators];
  66516. _0_1 = t1[0];
  66517. _0_6 = _null;
  66518. _0_3 = _null;
  66519. _0_9 = _null;
  66520. _0_9_isSet = false;
  66521. _0_7 = _null;
  66522. _0_7_isSet = false;
  66523. t2 = false;
  66524. _0_2 = t1[1];
  66525. _0_3 = t1[2];
  66526. _0_6 = _0_3.length <= 0;
  66527. _0_7_isSet = _0_6;
  66528. if (_0_7_isSet) {
  66529. _0_7 = t1[3];
  66530. _0_9 = _0_7.length <= 0;
  66531. t2 = _0_9;
  66532. }
  66533. _0_9_isSet = _0_7_isSet;
  66534. denominators_case_0 = _0_2;
  66535. _0_11_isSet = !t2;
  66536. _0_11 = _null;
  66537. _0_13 = _null;
  66538. if (_0_11_isSet) {
  66539. _0_11 = _0_1.length <= 0;
  66540. _0_13_isSet = _0_11;
  66541. _0_10 = _0_1;
  66542. if (_0_13_isSet) {
  66543. _0_13 = _0_2.length <= 0;
  66544. t2 = _0_13;
  66545. if (t2) {
  66546. if (_0_7_isSet)
  66547. denominators_case_0 = _0_7;
  66548. else {
  66549. _0_7 = t1[3];
  66550. denominators_case_0 = _0_7;
  66551. _0_7_isSet = true;
  66552. }
  66553. numerators_case_0 = _0_3;
  66554. } else
  66555. numerators_case_0 = _0_1;
  66556. } else {
  66557. numerators_case_0 = _0_1;
  66558. t2 = false;
  66559. }
  66560. _0_1 = _0_10;
  66561. } else {
  66562. numerators_case_0 = _0_1;
  66563. _0_13_isSet = false;
  66564. t2 = true;
  66565. }
  66566. if (t2) {
  66567. t4 = denominators_case_0;
  66568. t3 = numerators_case_0;
  66569. } else {
  66570. t4 = _null;
  66571. t3 = t4;
  66572. }
  66573. if (!t2) {
  66574. t2 = _null;
  66575. t5 = _null;
  66576. if (_0_11_isSet)
  66577. t6 = _0_11;
  66578. else {
  66579. _0_11 = _0_1.length <= 0;
  66580. t6 = _0_11;
  66581. }
  66582. t7 = false;
  66583. if (t6) {
  66584. if (_0_9_isSet)
  66585. t2 = _0_9;
  66586. else {
  66587. if (_0_7_isSet)
  66588. t2 = _0_7;
  66589. else {
  66590. _0_7 = t1[3];
  66591. t2 = _0_7;
  66592. _0_7_isSet = true;
  66593. }
  66594. _0_9 = t2.length <= 0;
  66595. t2 = _0_9;
  66596. }
  66597. numerators_case_1 = _0_3;
  66598. denominators_case_1 = _0_2;
  66599. } else {
  66600. numerators_case_1 = t2;
  66601. t2 = t7;
  66602. denominators_case_1 = t5;
  66603. }
  66604. if (!t2) {
  66605. t2 = false;
  66606. if (_0_13_isSet)
  66607. t5 = _0_13;
  66608. else {
  66609. _0_13 = _0_2.length <= 0;
  66610. t5 = _0_13;
  66611. }
  66612. if (t5) {
  66613. if (_0_6)
  66614. denominators_case_1 = _0_7_isSet ? _0_7 : t1[3];
  66615. t1 = _0_6;
  66616. } else
  66617. t1 = t2;
  66618. numerators_case_1 = _0_1;
  66619. } else
  66620. t1 = true;
  66621. if (t1) {
  66622. t1 = !_this._areAnyConvertible$2(numerators_case_1, denominators_case_1);
  66623. if (t1) {
  66624. t3 = denominators_case_1;
  66625. t2 = numerators_case_1;
  66626. } else {
  66627. t2 = t3;
  66628. t3 = t4;
  66629. }
  66630. t0 = t3;
  66631. t3 = t1;
  66632. t1 = t2;
  66633. t2 = t0;
  66634. } else {
  66635. t2 = t4;
  66636. t1 = t3;
  66637. t3 = false;
  66638. }
  66639. } else {
  66640. t2 = t4;
  66641. t1 = t3;
  66642. t3 = true;
  66643. }
  66644. if (t3)
  66645. return A.SassNumber_SassNumber$withUnits(value, t2, t1);
  66646. newNumerators = A._setArrayType([], type$.JSArray_String);
  66647. mutableOtherDenominators = A._setArrayType(otherDenominators.slice(0), A._arrayInstanceType(otherDenominators));
  66648. for (t1 = _this.get$numeratorUnits(_this), t2 = t1.length, _i = 0; _i < t2; ++_i) {
  66649. numerator = t1[_i];
  66650. A.removeFirstWhere(mutableOtherDenominators, new A.SassNumber_multiplyUnits_closure(_box_0, numerator), new A.SassNumber_multiplyUnits_closure0(newNumerators, numerator));
  66651. }
  66652. t1 = _this.get$denominatorUnits(_this);
  66653. mutableDenominatorUnits = A._setArrayType(t1.slice(0), A._arrayInstanceType(t1));
  66654. for (t1 = otherNumerators.length, _i = 0; _i < t1; ++_i) {
  66655. numerator = otherNumerators[_i];
  66656. A.removeFirstWhere(mutableDenominatorUnits, new A.SassNumber_multiplyUnits_closure1(_box_0, numerator), new A.SassNumber_multiplyUnits_closure2(newNumerators, numerator));
  66657. }
  66658. t1 = _box_0.value;
  66659. B.JSArray_methods.addAll$1(mutableDenominatorUnits, mutableOtherDenominators);
  66660. return A.SassNumber_SassNumber$withUnits(t1, mutableDenominatorUnits, newNumerators);
  66661. },
  66662. _areAnyConvertible$2(units1, units2) {
  66663. return B.JSArray_methods.any$1(units1, new A.SassNumber__areAnyConvertible_closure(units2));
  66664. },
  66665. _unitString$2(numerators, denominators) {
  66666. var _0_4, _0_7, _0_6, _0_5, t1, _0_9, _0_6_isSet, _0_5_isSet, _0_10, denominator, _null = null;
  66667. $label0$0: {
  66668. _0_4 = numerators.length <= 0;
  66669. _0_7 = _null;
  66670. _0_6 = _null;
  66671. _0_5 = _null;
  66672. if (_0_4) {
  66673. _0_6 = denominators.length;
  66674. t1 = _0_6;
  66675. _0_7 = t1 <= 0;
  66676. t1 = _0_7;
  66677. _0_5 = denominators;
  66678. } else
  66679. t1 = false;
  66680. if (t1) {
  66681. t1 = "no units";
  66682. break $label0$0;
  66683. }
  66684. _0_9 = _null;
  66685. if (_0_4) {
  66686. _0_9 = _0_6 === 1;
  66687. t1 = _0_9;
  66688. _0_6_isSet = true;
  66689. _0_5_isSet = true;
  66690. } else {
  66691. _0_5_isSet = _0_4;
  66692. _0_6_isSet = _0_5_isSet;
  66693. t1 = false;
  66694. }
  66695. if (t1) {
  66696. _0_10 = (_0_5_isSet ? _0_5 : denominators)[0];
  66697. denominator = _0_10;
  66698. t1 = denominator + "^-1";
  66699. break $label0$0;
  66700. }
  66701. if (_0_4) {
  66702. t1 = "(" + B.JSArray_methods.join$1(denominators, "*") + ")^-1";
  66703. break $label0$0;
  66704. }
  66705. if (_0_6_isSet)
  66706. t1 = _0_6;
  66707. else {
  66708. if (_0_5_isSet)
  66709. t1 = _0_5;
  66710. else {
  66711. t1 = denominators;
  66712. _0_5 = t1;
  66713. _0_5_isSet = true;
  66714. }
  66715. _0_6 = t1.length;
  66716. t1 = _0_6;
  66717. _0_6_isSet = true;
  66718. }
  66719. _0_7 = t1 <= 0;
  66720. t1 = _0_7;
  66721. if (t1) {
  66722. t1 = B.JSArray_methods.join$1(numerators, "*");
  66723. break $label0$0;
  66724. }
  66725. if (_0_6_isSet)
  66726. t1 = _0_6;
  66727. else {
  66728. if (_0_5_isSet)
  66729. t1 = _0_5;
  66730. else {
  66731. t1 = denominators;
  66732. _0_5 = t1;
  66733. _0_5_isSet = true;
  66734. }
  66735. _0_6 = t1.length;
  66736. t1 = _0_6;
  66737. }
  66738. _0_9 = t1 === 1;
  66739. t1 = _0_9;
  66740. if (t1) {
  66741. _0_10 = (_0_5_isSet ? _0_5 : denominators)[0];
  66742. denominator = _0_10;
  66743. t1 = B.JSArray_methods.join$1(numerators, "*") + "/" + denominator;
  66744. break $label0$0;
  66745. }
  66746. t1 = B.JSArray_methods.join$1(numerators, "*") + "/(" + B.JSArray_methods.join$1(denominators, "*") + ")";
  66747. break $label0$0;
  66748. }
  66749. return t1;
  66750. },
  66751. $eq(_, other) {
  66752. var _this = this;
  66753. if (other == null)
  66754. return false;
  66755. if (!(other instanceof A.SassNumber))
  66756. return false;
  66757. if (_this.get$numeratorUnits(_this).length !== other.get$numeratorUnits(other).length || _this.get$denominatorUnits(_this).length !== other.get$denominatorUnits(other).length)
  66758. return false;
  66759. if (!_this.get$hasUnits())
  66760. return A.fuzzyEquals(_this._number$_value, other._number$_value);
  66761. if (!B.C_ListEquality.equals$2(0, _this._canonicalizeUnitList$1(_this.get$numeratorUnits(_this)), _this._canonicalizeUnitList$1(other.get$numeratorUnits(other))) || !B.C_ListEquality.equals$2(0, _this._canonicalizeUnitList$1(_this.get$denominatorUnits(_this)), _this._canonicalizeUnitList$1(other.get$denominatorUnits(other))))
  66762. return false;
  66763. return A.fuzzyEquals(_this._number$_value * _this._canonicalMultiplier$1(_this.get$numeratorUnits(_this)) / _this._canonicalMultiplier$1(_this.get$denominatorUnits(_this)), other._number$_value * _this._canonicalMultiplier$1(other.get$numeratorUnits(other)) / _this._canonicalMultiplier$1(other.get$denominatorUnits(other)));
  66764. },
  66765. get$hashCode(_) {
  66766. var _this = this,
  66767. t1 = _this.hashCache;
  66768. return t1 == null ? _this.hashCache = A.fuzzyHashCode(_this._number$_value * _this._canonicalMultiplier$1(_this.get$numeratorUnits(_this)) / _this._canonicalMultiplier$1(_this.get$denominatorUnits(_this))) : t1;
  66769. },
  66770. _canonicalizeUnitList$1(units) {
  66771. var type,
  66772. t1 = units.length;
  66773. if (t1 === 0)
  66774. return units;
  66775. if (t1 === 1) {
  66776. type = $.$get$_typesByUnit().$index(0, B.JSArray_methods.get$first(units));
  66777. if (type == null)
  66778. t1 = units;
  66779. else {
  66780. t1 = B.Map_397RH.$index(0, type);
  66781. t1.toString;
  66782. t1 = A._setArrayType([B.JSArray_methods.get$first(t1)], type$.JSArray_String);
  66783. }
  66784. return t1;
  66785. }
  66786. t1 = A._arrayInstanceType(units)._eval$1("MappedListIterable<1,String>");
  66787. t1 = A.List_List$of(new A.MappedListIterable(units, new A.SassNumber__canonicalizeUnitList_closure(), t1), true, t1._eval$1("ListIterable.E"));
  66788. B.JSArray_methods.sort$0(t1);
  66789. return t1;
  66790. },
  66791. _canonicalMultiplier$1(units) {
  66792. return B.JSArray_methods.fold$2(units, 1, new A.SassNumber__canonicalMultiplier_closure(this));
  66793. },
  66794. canonicalMultiplierForUnit$1(unit) {
  66795. var t1,
  66796. innerMap = B.Map_gQqJO.$index(0, unit);
  66797. if (innerMap == null)
  66798. t1 = 1;
  66799. else {
  66800. t1 = innerMap.get$values(innerMap);
  66801. t1 = 1 / t1.get$first(t1);
  66802. }
  66803. return t1;
  66804. },
  66805. unitSuggestion$2($name, unit) {
  66806. var t2, t3, result, _this = this,
  66807. t1 = _this.get$denominatorUnits(_this);
  66808. t1 = new A.MappedListIterable(t1, new A.SassNumber_unitSuggestion_closure(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$0(0);
  66809. t2 = _this.get$numeratorUnits(_this);
  66810. t2 = new A.MappedListIterable(t2, new A.SassNumber_unitSuggestion_closure0(), A._arrayInstanceType(t2)._eval$1("MappedListIterable<1,String>")).join$0(0);
  66811. t3 = unit == null ? "" : " * 1" + unit;
  66812. result = "$" + $name + t1 + t2 + t3;
  66813. return _this.get$numeratorUnits(_this).length === 0 ? result : "calc(" + result + ")";
  66814. },
  66815. unitSuggestion$1($name) {
  66816. return this.unitSuggestion$2($name, null);
  66817. }
  66818. };
  66819. A.SassNumber__coerceOrConvertValue_compatibilityException.prototype = {
  66820. call$0() {
  66821. var t2, t3, message, t4, type, unit, _this = this,
  66822. t1 = _this.other;
  66823. if (t1 != null) {
  66824. t2 = _this.$this;
  66825. t3 = t2.toString$0(0) + " and";
  66826. message = new A.StringBuffer(t3);
  66827. t4 = _this.otherName;
  66828. if (t4 != null)
  66829. t3 = message._contents = t3 + (" $" + t4 + ":");
  66830. t1 = t3 + (" " + t1.toString$0(0) + " have incompatible units");
  66831. message._contents = t1;
  66832. if (!t2.get$hasUnits() || !_this.otherHasUnits)
  66833. message._contents = t1 + " (one has units and the other doesn't)";
  66834. t1 = message.toString$0(0) + ".";
  66835. t2 = _this.name;
  66836. return new A.SassScriptException(t2 == null ? t1 : "$" + t2 + ": " + t1);
  66837. } else if (!_this.otherHasUnits) {
  66838. t1 = "Expected " + _this.$this.toString$0(0) + " to have no units.";
  66839. t2 = _this.name;
  66840. return new A.SassScriptException(t2 == null ? t1 : "$" + t2 + ": " + t1);
  66841. } else {
  66842. t1 = _this.newNumerators;
  66843. if (t1.length === 1 && _this.newDenominators.length === 0) {
  66844. type = $.$get$_typesByUnit().$index(0, B.JSArray_methods.get$first(t1));
  66845. if (type != null) {
  66846. t1 = _this.$this.toString$0(0);
  66847. t2 = B.JSArray_methods.contains$1(A._setArrayType([97, 101, 105, 111, 117], type$.JSArray_int), type.charCodeAt(0)) ? "an " + type : "a " + type;
  66848. t3 = B.Map_397RH.$index(0, type);
  66849. t3.toString;
  66850. t3 = "Expected " + t1 + " to have " + t2 + " unit (" + B.JSArray_methods.join$1(t3, ", ") + ").";
  66851. t2 = _this.name;
  66852. return new A.SassScriptException(t2 == null ? t3 : "$" + t2 + ": " + t3);
  66853. }
  66854. }
  66855. t2 = _this.newDenominators;
  66856. unit = A.pluralize("unit", t1.length + t2.length, null);
  66857. t3 = _this.$this;
  66858. t2 = "Expected " + t3.toString$0(0) + " to have " + unit + " " + t3._unitString$2(t1, t2) + ".";
  66859. t1 = _this.name;
  66860. return new A.SassScriptException(t1 == null ? t2 : "$" + t1 + ": " + t2);
  66861. }
  66862. },
  66863. $signature: 418
  66864. };
  66865. A.SassNumber__coerceOrConvertValue_closure.prototype = {
  66866. call$1(oldNumerator) {
  66867. var factor = A.conversionFactor(this.newNumerator, oldNumerator);
  66868. if (factor == null)
  66869. return false;
  66870. this._box_0.value *= factor;
  66871. return true;
  66872. },
  66873. $signature: 5
  66874. };
  66875. A.SassNumber__coerceOrConvertValue_closure0.prototype = {
  66876. call$0() {
  66877. return A.throwExpression(this.compatibilityException.call$0());
  66878. },
  66879. $signature: 0
  66880. };
  66881. A.SassNumber__coerceOrConvertValue_closure1.prototype = {
  66882. call$1(oldDenominator) {
  66883. var factor = A.conversionFactor(this.newDenominator, oldDenominator);
  66884. if (factor == null)
  66885. return false;
  66886. this._box_0.value /= factor;
  66887. return true;
  66888. },
  66889. $signature: 5
  66890. };
  66891. A.SassNumber__coerceOrConvertValue_closure2.prototype = {
  66892. call$0() {
  66893. return A.throwExpression(this.compatibilityException.call$0());
  66894. },
  66895. $signature: 0
  66896. };
  66897. A.SassNumber_plus_closure.prototype = {
  66898. call$2(num1, num2) {
  66899. return num1 + num2;
  66900. },
  66901. $signature: 62
  66902. };
  66903. A.SassNumber_minus_closure.prototype = {
  66904. call$2(num1, num2) {
  66905. return num1 - num2;
  66906. },
  66907. $signature: 62
  66908. };
  66909. A.SassNumber_multiplyUnits_closure.prototype = {
  66910. call$1(denominator) {
  66911. var factor = A.conversionFactor(this.numerator, denominator);
  66912. if (factor == null)
  66913. return false;
  66914. this._box_0.value /= factor;
  66915. return true;
  66916. },
  66917. $signature: 5
  66918. };
  66919. A.SassNumber_multiplyUnits_closure0.prototype = {
  66920. call$0() {
  66921. return this.newNumerators.push(this.numerator);
  66922. },
  66923. $signature: 0
  66924. };
  66925. A.SassNumber_multiplyUnits_closure1.prototype = {
  66926. call$1(denominator) {
  66927. var factor = A.conversionFactor(this.numerator, denominator);
  66928. if (factor == null)
  66929. return false;
  66930. this._box_0.value /= factor;
  66931. return true;
  66932. },
  66933. $signature: 5
  66934. };
  66935. A.SassNumber_multiplyUnits_closure2.prototype = {
  66936. call$0() {
  66937. return this.newNumerators.push(this.numerator);
  66938. },
  66939. $signature: 0
  66940. };
  66941. A.SassNumber__areAnyConvertible_closure.prototype = {
  66942. call$1(unit1) {
  66943. var t1,
  66944. _0_0 = B.Map_gQqJO.$index(0, unit1);
  66945. $label0$0: {
  66946. if (_0_0 != null) {
  66947. t1 = B.JSArray_methods.any$1(this.units2, _0_0.get$containsKey());
  66948. break $label0$0;
  66949. }
  66950. t1 = B.JSArray_methods.contains$1(this.units2, unit1);
  66951. break $label0$0;
  66952. }
  66953. return t1;
  66954. },
  66955. $signature: 5
  66956. };
  66957. A.SassNumber__canonicalizeUnitList_closure.prototype = {
  66958. call$1(unit) {
  66959. var t1,
  66960. type = $.$get$_typesByUnit().$index(0, unit);
  66961. if (type == null)
  66962. t1 = unit;
  66963. else {
  66964. t1 = B.Map_397RH.$index(0, type);
  66965. t1.toString;
  66966. t1 = B.JSArray_methods.get$first(t1);
  66967. }
  66968. return t1;
  66969. },
  66970. $signature: 6
  66971. };
  66972. A.SassNumber__canonicalMultiplier_closure.prototype = {
  66973. call$2(multiplier, unit) {
  66974. return multiplier * this.$this.canonicalMultiplierForUnit$1(unit);
  66975. },
  66976. $signature: 187
  66977. };
  66978. A.SassNumber_unitSuggestion_closure.prototype = {
  66979. call$1(unit) {
  66980. return " * 1" + unit;
  66981. },
  66982. $signature: 6
  66983. };
  66984. A.SassNumber_unitSuggestion_closure0.prototype = {
  66985. call$1(unit) {
  66986. return " / 1" + unit;
  66987. },
  66988. $signature: 6
  66989. };
  66990. A.ComplexSassNumber.prototype = {
  66991. get$numeratorUnits(_) {
  66992. return this._numeratorUnits;
  66993. },
  66994. get$denominatorUnits(_) {
  66995. return this._denominatorUnits;
  66996. },
  66997. get$hasUnits() {
  66998. return true;
  66999. },
  67000. get$hasComplexUnits() {
  67001. return true;
  67002. },
  67003. hasUnit$1(unit) {
  67004. return false;
  67005. },
  67006. compatibleWithUnit$1(unit) {
  67007. return false;
  67008. },
  67009. hasPossiblyCompatibleUnits$1(other) {
  67010. throw A.wrapException(A.UnimplementedError$(string$.Comple));
  67011. },
  67012. withValue$1(value) {
  67013. return new A.ComplexSassNumber(this._numeratorUnits, this._denominatorUnits, value, null);
  67014. },
  67015. withSlash$2(numerator, denominator) {
  67016. return new A.ComplexSassNumber(this._numeratorUnits, this._denominatorUnits, this._number$_value, new A._Record_2(numerator, denominator));
  67017. }
  67018. };
  67019. A.SingleUnitSassNumber.prototype = {
  67020. get$numeratorUnits(_) {
  67021. return A.List_List$unmodifiable([this._unit], type$.String);
  67022. },
  67023. get$denominatorUnits(_) {
  67024. return B.List_empty;
  67025. },
  67026. get$hasUnits() {
  67027. return true;
  67028. },
  67029. get$hasComplexUnits() {
  67030. return false;
  67031. },
  67032. withValue$1(value) {
  67033. return new A.SingleUnitSassNumber(this._unit, value, null);
  67034. },
  67035. withSlash$2(numerator, denominator) {
  67036. return new A.SingleUnitSassNumber(this._unit, this._number$_value, new A._Record_2(numerator, denominator));
  67037. },
  67038. hasUnit$1(unit) {
  67039. return unit === this._unit;
  67040. },
  67041. hasCompatibleUnits$1(other) {
  67042. return other instanceof A.SingleUnitSassNumber && A.conversionFactor(this._unit, other._unit) != null;
  67043. },
  67044. hasPossiblyCompatibleUnits$1(other) {
  67045. var t1, knownCompatibilities, otherUnit;
  67046. if (!(other instanceof A.SingleUnitSassNumber))
  67047. return false;
  67048. t1 = $.$get$_knownCompatibilitiesByUnit();
  67049. knownCompatibilities = t1.$index(0, this._unit.toLowerCase());
  67050. if (knownCompatibilities == null)
  67051. return true;
  67052. otherUnit = other._unit.toLowerCase();
  67053. return knownCompatibilities.contains$1(0, otherUnit) || !t1.containsKey$1(otherUnit);
  67054. },
  67055. compatibleWithUnit$1(unit) {
  67056. return A.conversionFactor(this._unit, unit) != null;
  67057. },
  67058. coerceToMatch$1(other) {
  67059. var t1 = other instanceof A.SingleUnitSassNumber ? this._coerceToUnit$1(other._unit) : null;
  67060. return t1 == null ? this.super$SassNumber$coerceToMatch(other, null, null) : t1;
  67061. },
  67062. coerceValueToMatch$3(other, $name, otherName) {
  67063. var t1 = other instanceof A.SingleUnitSassNumber ? this._coerceValueToUnit$1(other._unit) : null;
  67064. return t1 == null ? this.super$SassNumber$coerceValueToMatch(other, $name, otherName) : t1;
  67065. },
  67066. coerceValueToMatch$1(other) {
  67067. return this.coerceValueToMatch$3(other, null, null);
  67068. },
  67069. convertValueToMatch$3(other, $name, otherName) {
  67070. var t1 = other instanceof A.SingleUnitSassNumber ? this._coerceValueToUnit$1(other._unit) : null;
  67071. return t1 == null ? this.super$SassNumber$convertValueToMatch(other, $name, otherName) : t1;
  67072. },
  67073. convertValueToMatch$1(other) {
  67074. return this.convertValueToMatch$3(other, null, null);
  67075. },
  67076. coerce$2(newNumerators, newDenominators) {
  67077. var t1 = newNumerators.length === 1 && newDenominators.length === 0 ? this._coerceToUnit$1(newNumerators[0]) : null;
  67078. return t1 == null ? this.super$SassNumber$coerce(newNumerators, newDenominators, null) : t1;
  67079. },
  67080. coerceValue$3(newNumerators, newDenominators, $name) {
  67081. var t1 = newNumerators.length === 1 && newDenominators.length === 0 ? this._coerceValueToUnit$1(newNumerators[0]) : null;
  67082. return t1 == null ? this.super$SassNumber$coerceValue(newNumerators, newDenominators, $name) : t1;
  67083. },
  67084. coerceValueToUnit$2(unit, $name) {
  67085. var t1 = this._coerceValueToUnit$1(unit);
  67086. return t1 == null ? this.super$SassNumber$coerceValueToUnit(unit, $name) : t1;
  67087. },
  67088. coerceValueToUnit$1(unit) {
  67089. return this.coerceValueToUnit$2(unit, null);
  67090. },
  67091. _coerceToUnit$1(unit) {
  67092. var t1 = this._unit;
  67093. if (t1 === unit)
  67094. return this;
  67095. return A.NullableExtension_andThen(A.conversionFactor(unit, t1), new A.SingleUnitSassNumber__coerceToUnit_closure(this, unit));
  67096. },
  67097. _coerceValueToUnit$1(unit) {
  67098. return A.NullableExtension_andThen(A.conversionFactor(unit, this._unit), new A.SingleUnitSassNumber__coerceValueToUnit_closure(this));
  67099. },
  67100. multiplyUnits$3(value, otherNumerators, otherDenominators) {
  67101. var mutableOtherDenominators, t1 = {};
  67102. t1.value = value;
  67103. t1.newNumerators = otherNumerators;
  67104. mutableOtherDenominators = A._setArrayType(otherDenominators.slice(0), A._arrayInstanceType(otherDenominators));
  67105. A.removeFirstWhere(mutableOtherDenominators, new A.SingleUnitSassNumber_multiplyUnits_closure(t1, this), new A.SingleUnitSassNumber_multiplyUnits_closure0(t1, this));
  67106. return A.SassNumber_SassNumber$withUnits(t1.value, mutableOtherDenominators, t1.newNumerators);
  67107. },
  67108. unaryMinus$0() {
  67109. return new A.SingleUnitSassNumber(this._unit, -this._number$_value, null);
  67110. },
  67111. $eq(_, other) {
  67112. var factor;
  67113. if (other == null)
  67114. return false;
  67115. if (other instanceof A.SingleUnitSassNumber) {
  67116. factor = A.conversionFactor(other._unit, this._unit);
  67117. return factor != null && A.fuzzyEquals(this._number$_value * factor, other._number$_value);
  67118. } else
  67119. return false;
  67120. },
  67121. get$hashCode(_) {
  67122. var _this = this,
  67123. t1 = _this.hashCache;
  67124. return t1 == null ? _this.hashCache = A.fuzzyHashCode(_this._number$_value * _this.canonicalMultiplierForUnit$1(_this._unit)) : t1;
  67125. }
  67126. };
  67127. A.SingleUnitSassNumber__coerceToUnit_closure.prototype = {
  67128. call$1(factor) {
  67129. return new A.SingleUnitSassNumber(this.unit, this.$this._number$_value * factor, null);
  67130. },
  67131. $signature: 422
  67132. };
  67133. A.SingleUnitSassNumber__coerceValueToUnit_closure.prototype = {
  67134. call$1(factor) {
  67135. return this.$this._number$_value * factor;
  67136. },
  67137. $signature: 15
  67138. };
  67139. A.SingleUnitSassNumber_multiplyUnits_closure.prototype = {
  67140. call$1(denominator) {
  67141. var factor = A.conversionFactor(denominator, this.$this._unit);
  67142. if (factor == null)
  67143. return false;
  67144. this._box_0.value *= factor;
  67145. return true;
  67146. },
  67147. $signature: 5
  67148. };
  67149. A.SingleUnitSassNumber_multiplyUnits_closure0.prototype = {
  67150. call$0() {
  67151. var t1 = A._setArrayType([this.$this._unit], type$.JSArray_String),
  67152. t2 = this._box_0;
  67153. B.JSArray_methods.addAll$1(t1, t2.newNumerators);
  67154. t2.newNumerators = t1;
  67155. },
  67156. $signature: 0
  67157. };
  67158. A.UnitlessSassNumber.prototype = {
  67159. get$numeratorUnits(_) {
  67160. return B.List_empty;
  67161. },
  67162. get$denominatorUnits(_) {
  67163. return B.List_empty;
  67164. },
  67165. get$hasUnits() {
  67166. return false;
  67167. },
  67168. get$hasComplexUnits() {
  67169. return false;
  67170. },
  67171. withValue$1(value) {
  67172. return new A.UnitlessSassNumber(value, null);
  67173. },
  67174. withSlash$2(numerator, denominator) {
  67175. return new A.UnitlessSassNumber(this._number$_value, new A._Record_2(numerator, denominator));
  67176. },
  67177. hasUnit$1(unit) {
  67178. return false;
  67179. },
  67180. hasCompatibleUnits$1(other) {
  67181. return other instanceof A.UnitlessSassNumber;
  67182. },
  67183. hasPossiblyCompatibleUnits$1(other) {
  67184. return other instanceof A.UnitlessSassNumber;
  67185. },
  67186. compatibleWithUnit$1(unit) {
  67187. return true;
  67188. },
  67189. coerceToMatch$1(other) {
  67190. return other.withValue$1(this._number$_value);
  67191. },
  67192. coerceValueToMatch$3(other, $name, otherName) {
  67193. return this._number$_value;
  67194. },
  67195. coerceValueToMatch$1(other) {
  67196. return this.coerceValueToMatch$3(other, null, null);
  67197. },
  67198. convertValueToMatch$3(other, $name, otherName) {
  67199. return other.get$hasUnits() ? this.super$SassNumber$convertValueToMatch(other, $name, otherName) : this._number$_value;
  67200. },
  67201. convertValueToMatch$1(other) {
  67202. return this.convertValueToMatch$3(other, null, null);
  67203. },
  67204. coerce$2(newNumerators, newDenominators) {
  67205. return A.SassNumber_SassNumber$withUnits(this._number$_value, newDenominators, newNumerators);
  67206. },
  67207. coerceValue$3(newNumerators, newDenominators, $name) {
  67208. return this._number$_value;
  67209. },
  67210. coerceValueToUnit$2(unit, $name) {
  67211. return this._number$_value;
  67212. },
  67213. coerceValueToUnit$1(unit) {
  67214. return this.coerceValueToUnit$2(unit, null);
  67215. },
  67216. greaterThan$1(other) {
  67217. var t1, t2;
  67218. if (other instanceof A.SassNumber) {
  67219. t1 = this._number$_value;
  67220. t2 = other._number$_value;
  67221. return t1 > t2 && !A.fuzzyEquals(t1, t2) ? B.SassBoolean_true : B.SassBoolean_false;
  67222. }
  67223. return this.super$SassNumber$greaterThan(other);
  67224. },
  67225. greaterThanOrEquals$1(other) {
  67226. var t1, t2;
  67227. if (other instanceof A.SassNumber) {
  67228. t1 = this._number$_value;
  67229. t2 = other._number$_value;
  67230. return t1 > t2 || A.fuzzyEquals(t1, t2) ? B.SassBoolean_true : B.SassBoolean_false;
  67231. }
  67232. return this.super$SassNumber$greaterThanOrEquals(other);
  67233. },
  67234. lessThan$1(other) {
  67235. var t1, t2;
  67236. if (other instanceof A.SassNumber) {
  67237. t1 = this._number$_value;
  67238. t2 = other._number$_value;
  67239. return t1 < t2 && !A.fuzzyEquals(t1, t2) ? B.SassBoolean_true : B.SassBoolean_false;
  67240. }
  67241. return this.super$SassNumber$lessThan(other);
  67242. },
  67243. lessThanOrEquals$1(other) {
  67244. var t1, t2;
  67245. if (other instanceof A.SassNumber) {
  67246. t1 = this._number$_value;
  67247. t2 = other._number$_value;
  67248. return t1 < t2 || A.fuzzyEquals(t1, t2) ? B.SassBoolean_true : B.SassBoolean_false;
  67249. }
  67250. return this.super$SassNumber$lessThanOrEquals(other);
  67251. },
  67252. modulo$1(other) {
  67253. if (other instanceof A.SassNumber)
  67254. return other.withValue$1(A.moduloLikeSass(this._number$_value, other._number$_value));
  67255. return this.super$SassNumber$modulo(other);
  67256. },
  67257. plus$1(other) {
  67258. if (other instanceof A.SassNumber)
  67259. return other.withValue$1(this._number$_value + other._number$_value);
  67260. return this.super$SassNumber$plus(other);
  67261. },
  67262. minus$1(other) {
  67263. if (other instanceof A.SassNumber)
  67264. return other.withValue$1(this._number$_value - other._number$_value);
  67265. return this.super$SassNumber$minus(other);
  67266. },
  67267. times$1(other) {
  67268. if (other instanceof A.SassNumber)
  67269. return other.withValue$1(this._number$_value * other._number$_value);
  67270. return this.super$SassNumber$times(other);
  67271. },
  67272. dividedBy$1(other) {
  67273. var t1, t2;
  67274. if (other instanceof A.SassNumber) {
  67275. t1 = this._number$_value / other._number$_value;
  67276. if (other.get$hasUnits()) {
  67277. t2 = other.get$denominatorUnits(other);
  67278. t2 = A.SassNumber_SassNumber$withUnits(t1, other.get$numeratorUnits(other), t2);
  67279. t1 = t2;
  67280. } else
  67281. t1 = new A.UnitlessSassNumber(t1, null);
  67282. return t1;
  67283. }
  67284. return this.super$SassNumber$dividedBy(other);
  67285. },
  67286. unaryMinus$0() {
  67287. return new A.UnitlessSassNumber(-this._number$_value, null);
  67288. },
  67289. $eq(_, other) {
  67290. if (other == null)
  67291. return false;
  67292. return other instanceof A.UnitlessSassNumber && A.fuzzyEquals(this._number$_value, other._number$_value);
  67293. },
  67294. get$hashCode(_) {
  67295. var t1 = this.hashCache;
  67296. return t1 == null ? this.hashCache = A.fuzzyHashCode(this._number$_value) : t1;
  67297. }
  67298. };
  67299. A.SassString.prototype = {
  67300. get$_sassLength() {
  67301. var result, _this = this,
  67302. value = _this.__SassString__sassLength_FI;
  67303. if (value === $) {
  67304. result = new A.Runes(_this._string$_text).get$length(0);
  67305. _this.__SassString__sassLength_FI !== $ && A.throwUnnamedLateFieldADI();
  67306. _this.__SassString__sassLength_FI = result;
  67307. value = result;
  67308. }
  67309. return value;
  67310. },
  67311. get$isSpecialNumber() {
  67312. var t1, _2_0, t2, _0_0, _1_0;
  67313. if (this._hasQuotes)
  67314. return false;
  67315. t1 = this._string$_text;
  67316. if (t1.length < 6)
  67317. return false;
  67318. _2_0 = t1.charCodeAt(0);
  67319. $label1$1: {
  67320. t2 = false;
  67321. if (99 === _2_0 || 67 === _2_0) {
  67322. _0_0 = t1.charCodeAt(1);
  67323. $label0$0: {
  67324. if (108 === _0_0 || 76 === _0_0) {
  67325. t1 = (t1.charCodeAt(2) | 32) === 97 && (t1.charCodeAt(3) | 32) === 109 && (t1.charCodeAt(4) | 32) === 112 && t1.charCodeAt(5) === 40;
  67326. break $label0$0;
  67327. }
  67328. if (97 === _0_0 || 65 === _0_0) {
  67329. t1 = (t1.charCodeAt(2) | 32) === 108 && (t1.charCodeAt(3) | 32) === 99 && t1.charCodeAt(4) === 40;
  67330. break $label0$0;
  67331. }
  67332. t1 = t2;
  67333. break $label0$0;
  67334. }
  67335. break $label1$1;
  67336. }
  67337. if (118 === _2_0 || 86 === _2_0) {
  67338. t1 = (t1.charCodeAt(1) | 32) === 97 && (t1.charCodeAt(2) | 32) === 114 && t1.charCodeAt(3) === 40;
  67339. break $label1$1;
  67340. }
  67341. if (101 === _2_0 || 69 === _2_0) {
  67342. t1 = (t1.charCodeAt(1) | 32) === 110 && (t1.charCodeAt(2) | 32) === 118 && t1.charCodeAt(3) === 40;
  67343. break $label1$1;
  67344. }
  67345. if (109 === _2_0 || 77 === _2_0) {
  67346. _1_0 = t1.charCodeAt(1);
  67347. $label2$2: {
  67348. if (97 === _1_0 || 65 === _1_0) {
  67349. t1 = (t1.charCodeAt(2) | 32) === 120 && t1.charCodeAt(3) === 40;
  67350. break $label2$2;
  67351. }
  67352. if (105 === _1_0 || 73 === _1_0) {
  67353. t1 = (t1.charCodeAt(2) | 32) === 110 && t1.charCodeAt(3) === 40;
  67354. break $label2$2;
  67355. }
  67356. t1 = t2;
  67357. break $label2$2;
  67358. }
  67359. break $label1$1;
  67360. }
  67361. t1 = t2;
  67362. break $label1$1;
  67363. }
  67364. return t1;
  67365. },
  67366. get$isVar() {
  67367. if (this._hasQuotes)
  67368. return false;
  67369. var t1 = this._string$_text;
  67370. if (t1.length < 8)
  67371. return false;
  67372. return (t1.charCodeAt(0) | 32) === 118 && (t1.charCodeAt(1) | 32) === 97 && (t1.charCodeAt(2) | 32) === 114 && t1.charCodeAt(3) === 40;
  67373. },
  67374. get$isBlank() {
  67375. return !this._hasQuotes && this._string$_text.length === 0;
  67376. },
  67377. assertQuoted$1($name) {
  67378. if (this._hasQuotes)
  67379. return;
  67380. throw A.wrapException(A.SassScriptException$("Expected " + this.toString$0(0) + " to be a quoted string.", $name));
  67381. },
  67382. assertUnquoted$1($name) {
  67383. if (!this._hasQuotes)
  67384. return;
  67385. throw A.wrapException(A.SassScriptException$("Expected " + this.toString$0(0) + " to be an unquoted string.", $name));
  67386. },
  67387. assertUnquoted$0() {
  67388. return this.assertUnquoted$1(null);
  67389. },
  67390. accept$1$1(visitor) {
  67391. var t1 = visitor._quote && this._hasQuotes,
  67392. t2 = this._string$_text;
  67393. if (t1)
  67394. visitor._visitQuotedString$1(t2);
  67395. else
  67396. visitor._visitUnquotedString$1(t2);
  67397. return null;
  67398. },
  67399. accept$1(visitor) {
  67400. return this.accept$1$1(visitor, type$.dynamic);
  67401. },
  67402. assertString$1($name) {
  67403. return this;
  67404. },
  67405. plus$1(other) {
  67406. var t1 = this._string$_text,
  67407. t2 = this._hasQuotes;
  67408. return other instanceof A.SassString ? new A.SassString(t1 + other._string$_text, t2) : new A.SassString(t1 + A.serializeValue(other, false, true), t2);
  67409. },
  67410. $eq(_, other) {
  67411. if (other == null)
  67412. return false;
  67413. return other instanceof A.SassString && this._string$_text === other._string$_text;
  67414. },
  67415. get$hashCode(_) {
  67416. var t1 = this._hashCache;
  67417. return t1 == null ? this._hashCache = B.JSString_methods.get$hashCode(this._string$_text) : t1;
  67418. }
  67419. };
  67420. A.AnySelectorVisitor.prototype = {
  67421. visitComplexSelector$1(complex) {
  67422. return B.JSArray_methods.any$1(complex.components, new A.AnySelectorVisitor_visitComplexSelector_closure(this));
  67423. },
  67424. visitCompoundSelector$1(compound) {
  67425. return B.JSArray_methods.any$1(compound.components, new A.AnySelectorVisitor_visitCompoundSelector_closure(this));
  67426. },
  67427. visitPseudoSelector$1(pseudo) {
  67428. var selector = pseudo.selector;
  67429. return selector == null ? false : this.visitSelectorList$1(selector);
  67430. },
  67431. visitSelectorList$1(list) {
  67432. return B.JSArray_methods.any$1(list.components, this.get$visitComplexSelector());
  67433. },
  67434. visitAttributeSelector$1(attribute) {
  67435. return false;
  67436. },
  67437. visitClassSelector$1(klass) {
  67438. return false;
  67439. },
  67440. visitIDSelector$1(id) {
  67441. return false;
  67442. },
  67443. visitParentSelector$1($parent) {
  67444. return false;
  67445. },
  67446. visitPlaceholderSelector$1(placeholder) {
  67447. return false;
  67448. },
  67449. visitTypeSelector$1(type) {
  67450. return false;
  67451. },
  67452. visitUniversalSelector$1(universal) {
  67453. return false;
  67454. }
  67455. };
  67456. A.AnySelectorVisitor_visitComplexSelector_closure.prototype = {
  67457. call$1(component) {
  67458. return this.$this.visitCompoundSelector$1(component.selector);
  67459. },
  67460. $signature: 53
  67461. };
  67462. A.AnySelectorVisitor_visitCompoundSelector_closure.prototype = {
  67463. call$1(simple) {
  67464. return simple.accept$1(this.$this);
  67465. },
  67466. $signature: 13
  67467. };
  67468. A._EvaluateVisitor0.prototype = {
  67469. _EvaluateVisitor$6$functions$importCache$logger$nodeImporter$quietDeps$sourceMap0(functions, importCache, logger, nodeImporter, quietDeps, sourceMap) {
  67470. var t2, metaModule, t3, _i, module, $function, t4, _this = this,
  67471. _s20_ = "$name, $module: null",
  67472. _s9_ = "sass:meta",
  67473. _s7_ = "$module",
  67474. t1 = type$.JSArray_AsyncBuiltInCallable,
  67475. metaFunctions = A._setArrayType([A.BuiltInCallable$function("global-variable-exists", _s20_, new A._EvaluateVisitor_closure12(_this), _s9_), A.BuiltInCallable$function("variable-exists", "$name", new A._EvaluateVisitor_closure13(_this), _s9_), A.BuiltInCallable$function("function-exists", _s20_, new A._EvaluateVisitor_closure14(_this), _s9_), A.BuiltInCallable$function("mixin-exists", _s20_, new A._EvaluateVisitor_closure15(_this), _s9_), A.BuiltInCallable$function("content-exists", "", new A._EvaluateVisitor_closure16(_this), _s9_), A.BuiltInCallable$function("module-variables", _s7_, new A._EvaluateVisitor_closure17(_this), _s9_), A.BuiltInCallable$function("module-functions", _s7_, new A._EvaluateVisitor_closure18(_this), _s9_), A.BuiltInCallable$function("module-mixins", _s7_, new A._EvaluateVisitor_closure19(_this), _s9_), A.BuiltInCallable$function("get-function", "$name, $css: false, $module: null", new A._EvaluateVisitor_closure20(_this), _s9_), A.BuiltInCallable$function("get-mixin", _s20_, new A._EvaluateVisitor_closure21(_this), _s9_), new A.AsyncBuiltInCallable("call", A.ScssParser$("@function call($function, $args...) {", _s9_).parseArgumentDeclaration$0(), new A._EvaluateVisitor_closure22(_this), false)], t1),
  67476. metaMixins = A._setArrayType([A.AsyncBuiltInCallable$mixin("load-css", "$url, $with: null", new A._EvaluateVisitor_closure23(_this), false, _s9_), A.AsyncBuiltInCallable$mixin("apply", "$mixin, $args...", new A._EvaluateVisitor_closure24(_this), true, _s9_)], t1);
  67477. t1 = type$.AsyncBuiltInCallable;
  67478. t2 = A.List_List$of($.$get$moduleFunctions(), true, t1);
  67479. B.JSArray_methods.addAll$1(t2, metaFunctions);
  67480. metaModule = A.BuiltInModule$("meta", t2, metaMixins, null, t1);
  67481. for (t1 = A.List_List$of($.$get$coreModules(), true, type$.BuiltInModule_AsyncCallable), t1.push(metaModule), t2 = t1.length, t3 = _this._async_evaluate$_builtInModules, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
  67482. module = t1[_i];
  67483. t3.$indexSet(0, module.url, module);
  67484. }
  67485. t1 = type$.JSArray_AsyncCallable;
  67486. t2 = A._setArrayType([], t1);
  67487. B.JSArray_methods.addAll$1(t2, $.$get$globalFunctions());
  67488. t1 = A._setArrayType([], t1);
  67489. for (_i = 0; _i < 11; ++_i)
  67490. t1.push(metaFunctions[_i].withDeprecationWarning$1("meta"));
  67491. B.JSArray_methods.addAll$1(t2, t1);
  67492. for (t1 = t2.length, t3 = _this._async_evaluate$_builtInFunctions, _i = 0; _i < t2.length; t2.length === t1 || (0, A.throwConcurrentModificationError)(t2), ++_i) {
  67493. $function = t2[_i];
  67494. t4 = J.get$name$x($function);
  67495. t3.$indexSet(0, A.stringReplaceAllUnchecked(t4, "_", "-"), $function);
  67496. }
  67497. },
  67498. run$2(_, importer, node) {
  67499. return this.run$body$_EvaluateVisitor(0, importer, node);
  67500. },
  67501. run$body$_EvaluateVisitor(_, importer, node) {
  67502. var $async$goto = 0,
  67503. $async$completer = A._makeAsyncAwaitCompleter(type$.Record_2_Set_Uri_loadedUrls_and_CssStylesheet_stylesheet),
  67504. $async$returnValue, $async$handler = 2, $async$currentError, $async$self = this, error, stackTrace, t1, exception, $async$exception;
  67505. var $async$run$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  67506. if ($async$errorCode === 1) {
  67507. $async$currentError = $async$result;
  67508. $async$goto = $async$handler;
  67509. }
  67510. while (true)
  67511. switch ($async$goto) {
  67512. case 0:
  67513. // Function start
  67514. $async$handler = 4;
  67515. t1 = type$.nullable_Object;
  67516. t1 = A.runZoned(new A._EvaluateVisitor_run_closure0($async$self, node, importer), A.LinkedHashMap_LinkedHashMap$_literal([B.Symbol__evaluationContext, new A._EvaluationContext0($async$self, node)], t1, t1), type$.FutureOr_Record_2_Set_Uri_loadedUrls_and_CssStylesheet_stylesheet);
  67517. $async$goto = 7;
  67518. return A._asyncAwait(type$.Future_Record_2_Set_Uri_loadedUrls_and_CssStylesheet_stylesheet._is(t1) ? t1 : A._Future$value(t1, type$.Record_2_Set_Uri_loadedUrls_and_CssStylesheet_stylesheet), $async$run$2);
  67519. case 7:
  67520. // returning from await.
  67521. t1 = $async$result;
  67522. $async$returnValue = t1;
  67523. // goto return
  67524. $async$goto = 1;
  67525. break;
  67526. $async$handler = 2;
  67527. // goto after finally
  67528. $async$goto = 6;
  67529. break;
  67530. case 4:
  67531. // catch
  67532. $async$handler = 3;
  67533. $async$exception = $async$currentError;
  67534. t1 = A.unwrapException($async$exception);
  67535. if (t1 instanceof A.SassException) {
  67536. error = t1;
  67537. stackTrace = A.getTraceFromException($async$exception);
  67538. A.throwWithTrace(error.withLoadedUrls$1($async$self._async_evaluate$_loadedUrls), error, stackTrace);
  67539. } else
  67540. throw $async$exception;
  67541. // goto after finally
  67542. $async$goto = 6;
  67543. break;
  67544. case 3:
  67545. // uncaught
  67546. // goto rethrow
  67547. $async$goto = 2;
  67548. break;
  67549. case 6:
  67550. // after finally
  67551. case 1:
  67552. // return
  67553. return A._asyncReturn($async$returnValue, $async$completer);
  67554. case 2:
  67555. // rethrow
  67556. return A._asyncRethrow($async$currentError, $async$completer);
  67557. }
  67558. });
  67559. return A._asyncStartSync($async$run$2, $async$completer);
  67560. },
  67561. _async_evaluate$_assertInModule$1$2(value, $name) {
  67562. if (value != null)
  67563. return value;
  67564. throw A.wrapException(A.StateError$("Can't access " + $name + " outside of a module."));
  67565. },
  67566. _async_evaluate$_assertInModule$2(value, $name) {
  67567. return this._async_evaluate$_assertInModule$1$2(value, $name, type$.dynamic);
  67568. },
  67569. _async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors) {
  67570. return this._loadModule$body$_EvaluateVisitor(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors);
  67571. },
  67572. _async_evaluate$_loadModule$5$configuration(url, stackFrame, nodeWithSpan, callback, configuration) {
  67573. return this._async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, configuration, false);
  67574. },
  67575. _async_evaluate$_loadModule$4(url, stackFrame, nodeWithSpan, callback) {
  67576. return this._async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, null, false);
  67577. },
  67578. _loadModule$body$_EvaluateVisitor(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors) {
  67579. var $async$goto = 0,
  67580. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  67581. $async$returnValue, $async$self = this, t2, t1, _0_0;
  67582. var $async$_async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  67583. if ($async$errorCode === 1)
  67584. return A._asyncRethrow($async$result, $async$completer);
  67585. while (true)
  67586. switch ($async$goto) {
  67587. case 0:
  67588. // Function start
  67589. t1 = {};
  67590. _0_0 = $async$self._async_evaluate$_builtInModules.$index(0, url);
  67591. t1.builtInModule = null;
  67592. $async$goto = _0_0 != null ? 3 : 4;
  67593. break;
  67594. case 3:
  67595. // then
  67596. t1.builtInModule = _0_0;
  67597. if (configuration instanceof A.ExplicitConfiguration) {
  67598. t1 = namesInErrors ? "Built-in module " + url.toString$0(0) + " can't be configured." : "Built-in modules can't be configured.";
  67599. t2 = configuration.nodeWithSpan;
  67600. throw A.wrapException($async$self._async_evaluate$_exception$2(t1, t2.get$span(t2)));
  67601. }
  67602. $async$goto = 5;
  67603. return A._asyncAwait($async$self._addExceptionSpanAsync$1$2(nodeWithSpan, new A._EvaluateVisitor__loadModule_closure1(t1, callback), type$.void), $async$_async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors);
  67604. case 5:
  67605. // returning from await.
  67606. // goto return
  67607. $async$goto = 1;
  67608. break;
  67609. case 4:
  67610. // join
  67611. $async$goto = 6;
  67612. return A._asyncAwait($async$self._async_evaluate$_withStackFrame$1$3(stackFrame, nodeWithSpan, new A._EvaluateVisitor__loadModule_closure2($async$self, url, nodeWithSpan, baseUrl, namesInErrors, configuration, callback), type$.Null), $async$_async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors);
  67613. case 6:
  67614. // returning from await.
  67615. case 1:
  67616. // return
  67617. return A._asyncReturn($async$returnValue, $async$completer);
  67618. }
  67619. });
  67620. return A._asyncStartSync($async$_async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors, $async$completer);
  67621. },
  67622. _async_evaluate$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, configuration, namesInErrors, nodeWithSpan) {
  67623. return this._execute$body$_EvaluateVisitor(importer, stylesheet, configuration, namesInErrors, nodeWithSpan);
  67624. },
  67625. _async_evaluate$_execute$2(importer, stylesheet) {
  67626. return this._async_evaluate$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, null, false, null);
  67627. },
  67628. _execute$body$_EvaluateVisitor(importer, stylesheet, configuration, namesInErrors, nodeWithSpan) {
  67629. var $async$goto = 0,
  67630. $async$completer = A._makeAsyncAwaitCompleter(type$.Module_AsyncCallable),
  67631. $async$returnValue, $async$self = this, _0_0, currentConfiguration, t2, t3, message, existingSpan, configurationSpan, environment, css, preModuleComments, extensionStore, module, t1, url;
  67632. var $async$_async_evaluate$_execute$5$configuration$namesInErrors$nodeWithSpan = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  67633. if ($async$errorCode === 1)
  67634. return A._asyncRethrow($async$result, $async$completer);
  67635. while (true)
  67636. switch ($async$goto) {
  67637. case 0:
  67638. // Function start
  67639. t1 = stylesheet.span;
  67640. url = t1.get$sourceUrl(t1);
  67641. t1 = $async$self._async_evaluate$_modules;
  67642. _0_0 = t1.$index(0, url);
  67643. if (_0_0 != null) {
  67644. t1 = configuration == null;
  67645. currentConfiguration = t1 ? $async$self._async_evaluate$_configuration : configuration;
  67646. t2 = $async$self._async_evaluate$_moduleConfigurations.$index(0, url);
  67647. t3 = t2.__originalConfiguration;
  67648. t2 = t3 == null ? t2 : t3;
  67649. t3 = currentConfiguration.__originalConfiguration;
  67650. if (t2 !== (t3 == null ? currentConfiguration : t3) && currentConfiguration instanceof A.ExplicitConfiguration) {
  67651. if (namesInErrors) {
  67652. t2 = $.$get$context();
  67653. url.toString;
  67654. message = t2.prettyUri$1(url) + string$.x20was_a;
  67655. } else
  67656. message = string$.This_mw;
  67657. t2 = $async$self._async_evaluate$_moduleNodes.$index(0, url);
  67658. existingSpan = t2 == null ? null : t2.get$span(t2);
  67659. if (t1) {
  67660. t1 = currentConfiguration.nodeWithSpan;
  67661. configurationSpan = t1.get$span(t1);
  67662. } else
  67663. configurationSpan = null;
  67664. t1 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
  67665. if (existingSpan != null)
  67666. t1.$indexSet(0, existingSpan, "original load");
  67667. if (configurationSpan != null)
  67668. t1.$indexSet(0, configurationSpan, "configuration");
  67669. throw A.wrapException(t1.get$isEmpty(0) ? $async$self._async_evaluate$_exception$1(message) : $async$self._async_evaluate$_multiSpanException$3(message, "new load", t1));
  67670. }
  67671. $async$returnValue = _0_0;
  67672. // goto return
  67673. $async$goto = 1;
  67674. break;
  67675. }
  67676. environment = A.AsyncEnvironment$();
  67677. css = A._Cell$();
  67678. preModuleComments = A._Cell$();
  67679. extensionStore = A.ExtensionStore$();
  67680. $async$goto = 3;
  67681. return A._asyncAwait($async$self._async_evaluate$_withEnvironment$1$2(environment, new A._EvaluateVisitor__execute_closure0($async$self, importer, stylesheet, extensionStore, configuration, css, preModuleComments), type$.Null), $async$_async_evaluate$_execute$5$configuration$namesInErrors$nodeWithSpan);
  67682. case 3:
  67683. // returning from await.
  67684. t2 = css._readLocal$0();
  67685. t3 = preModuleComments._readLocal$0();
  67686. module = environment.toModule$3(t2, t3 == null ? B.Map_empty7 : t3, extensionStore);
  67687. if (url != null) {
  67688. t1.$indexSet(0, url, module);
  67689. $async$self._async_evaluate$_moduleConfigurations.$indexSet(0, url, $async$self._async_evaluate$_configuration);
  67690. if (nodeWithSpan != null)
  67691. $async$self._async_evaluate$_moduleNodes.$indexSet(0, url, nodeWithSpan);
  67692. }
  67693. $async$returnValue = module;
  67694. // goto return
  67695. $async$goto = 1;
  67696. break;
  67697. case 1:
  67698. // return
  67699. return A._asyncReturn($async$returnValue, $async$completer);
  67700. }
  67701. });
  67702. return A._asyncStartSync($async$_async_evaluate$_execute$5$configuration$namesInErrors$nodeWithSpan, $async$completer);
  67703. },
  67704. _async_evaluate$_addOutOfOrderImports$0() {
  67705. var t1, t2, _this = this, _s5_ = "_root",
  67706. _s13_ = "_endOfImports",
  67707. _0_0 = _this._async_evaluate$_outOfOrderImports;
  67708. $label0$0: {
  67709. if (_0_0 == null) {
  67710. t1 = _this._async_evaluate$_assertInModule$2(_this._async_evaluate$__root, _s5_).children;
  67711. break $label0$0;
  67712. }
  67713. t1 = _this._async_evaluate$_assertInModule$2(_this._async_evaluate$__root, _s5_).children;
  67714. t1 = A.List_List$of(A.SubListIterable$(t1, 0, A.checkNotNullable(_this._async_evaluate$_assertInModule$2(_this._async_evaluate$__endOfImports, _s13_), "count", type$.int), t1.$ti._eval$1("ListBase.E")), true, type$.ModifiableCssNode);
  67715. B.JSArray_methods.addAll$1(t1, _0_0);
  67716. t2 = _this._async_evaluate$_assertInModule$2(_this._async_evaluate$__root, _s5_).children;
  67717. B.JSArray_methods.addAll$1(t1, A.SubListIterable$(t2, _this._async_evaluate$_assertInModule$2(_this._async_evaluate$__endOfImports, _s13_), null, t2.$ti._eval$1("ListBase.E")));
  67718. break $label0$0;
  67719. }
  67720. return t1;
  67721. },
  67722. _async_evaluate$_combineCss$2$clone(root, clone) {
  67723. var selectors, _0_0, t1, imports, css, sorted, t2;
  67724. if (!B.JSArray_methods.any$1(root.get$upstream(), new A._EvaluateVisitor__combineCss_closure1())) {
  67725. selectors = root.get$extensionStore().get$simpleSelectors();
  67726. _0_0 = A.IterableExtension_get_firstOrNull(root.get$extensionStore().extensionsWhereTarget$1(new A._EvaluateVisitor__combineCss_closure2(selectors)));
  67727. if (_0_0 != null)
  67728. this._async_evaluate$_throwForUnsatisfiedExtension$1(_0_0);
  67729. return root.get$css(root);
  67730. }
  67731. t1 = type$.JSArray_CssNode;
  67732. imports = A._setArrayType([], t1);
  67733. css = A._setArrayType([], t1);
  67734. t1 = type$.Module_AsyncCallable;
  67735. sorted = A.ListQueue$(t1);
  67736. new A._EvaluateVisitor__combineCss_visitModule0(this, A.LinkedHashSet_LinkedHashSet$_empty(t1), clone, css, imports, sorted).call$1(root);
  67737. if (root.get$transitivelyContainsExtensions())
  67738. this._async_evaluate$_extendModules$1(sorted);
  67739. t1 = B.JSArray_methods.$add(imports, css);
  67740. t2 = root.get$css(root);
  67741. return new A.CssStylesheet(new A.UnmodifiableListView(t1, type$.UnmodifiableListView_CssNode), t2.get$span(t2));
  67742. },
  67743. _async_evaluate$_combineCss$1(root) {
  67744. return this._async_evaluate$_combineCss$2$clone(root, false);
  67745. },
  67746. _async_evaluate$_extendModules$1(sortedModules) {
  67747. var t1, t2, t3, originalSelectors, $self, t4, t5, _i, upstream, _0_0,
  67748. downstreamExtensionStores = A.LinkedHashMap_LinkedHashMap$_empty(type$.Uri, type$.List_ExtensionStore),
  67749. unsatisfiedExtensions = new A._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_Extension);
  67750. for (t1 = A._ListQueueIterator$(sortedModules, sortedModules.$ti._precomputed1), t2 = t1.$ti._precomputed1; t1.moveNext$0();) {
  67751. t3 = t1._collection$_current;
  67752. if (t3 == null)
  67753. t3 = t2._as(t3);
  67754. originalSelectors = t3.get$extensionStore().get$simpleSelectors().toSet$0(0);
  67755. unsatisfiedExtensions.addAll$1(0, t3.get$extensionStore().extensionsWhereTarget$1(new A._EvaluateVisitor__extendModules_closure1(originalSelectors)));
  67756. $self = downstreamExtensionStores.$index(0, t3.get$url(t3));
  67757. t4 = t3.get$extensionStore().get$addExtensions();
  67758. if ($self != null)
  67759. t4.call$1($self);
  67760. t4 = t3.get$extensionStore();
  67761. if (t4.get$isEmpty(t4))
  67762. continue;
  67763. for (t4 = t3.get$upstream(), t5 = t4.length, _i = 0; _i < t4.length; t4.length === t5 || (0, A.throwConcurrentModificationError)(t4), ++_i) {
  67764. upstream = t4[_i];
  67765. _0_0 = upstream.get$url(upstream);
  67766. if (_0_0 != null)
  67767. J.add$1$ax(downstreamExtensionStores.putIfAbsent$2(_0_0, new A._EvaluateVisitor__extendModules_closure2()), t3.get$extensionStore());
  67768. }
  67769. unsatisfiedExtensions.removeAll$1(t3.get$extensionStore().extensionsWhereTarget$1(originalSelectors.get$contains(originalSelectors)));
  67770. }
  67771. if (unsatisfiedExtensions._collection$_length !== 0)
  67772. this._async_evaluate$_throwForUnsatisfiedExtension$1(unsatisfiedExtensions.get$first(0));
  67773. },
  67774. _async_evaluate$_throwForUnsatisfiedExtension$1(extension) {
  67775. throw A.wrapException(A.SassException$(string$.The_ta + extension.target.toString$0(0) + ' !optional" to avoid this error.', extension.span, null));
  67776. },
  67777. _async_evaluate$_indexAfterImports$1(statements) {
  67778. var t1, lastImport, i, _0_0;
  67779. for (t1 = J.getInterceptor$asx(statements), lastImport = -1, i = 0; i < t1.get$length(statements); ++i) {
  67780. $label0$0: {
  67781. _0_0 = t1.$index(statements, i);
  67782. if (_0_0 instanceof A.ModifiableCssImport)
  67783. break $label0$0;
  67784. if (_0_0 instanceof A.ModifiableCssComment)
  67785. continue;
  67786. break;
  67787. }
  67788. lastImport = i;
  67789. }
  67790. return lastImport + 1;
  67791. },
  67792. visitStylesheet$1(_, node) {
  67793. return this.visitStylesheet$body$_EvaluateVisitor(0, node);
  67794. },
  67795. visitStylesheet$body$_EvaluateVisitor(_, node) {
  67796. var $async$goto = 0,
  67797. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  67798. $async$returnValue, $async$self = this, t1, t2, warning, _i;
  67799. var $async$visitStylesheet$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  67800. if ($async$errorCode === 1)
  67801. return A._asyncRethrow($async$result, $async$completer);
  67802. while (true)
  67803. switch ($async$goto) {
  67804. case 0:
  67805. // Function start
  67806. for (t1 = node.parseTimeWarnings, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t2 = t2._eval$1("ListBase.E"); t1.moveNext$0();) {
  67807. warning = t1.__internal$_current;
  67808. if (warning == null)
  67809. warning = t2._as(warning);
  67810. $async$self._async_evaluate$_warn$3(warning._1, warning._2, warning._0);
  67811. }
  67812. t1 = node.children, t2 = t1.length, _i = 0;
  67813. case 3:
  67814. // for condition
  67815. if (!(_i < t2)) {
  67816. // goto after for
  67817. $async$goto = 5;
  67818. break;
  67819. }
  67820. $async$goto = 6;
  67821. return A._asyncAwait(t1[_i].accept$1($async$self), $async$visitStylesheet$1);
  67822. case 6:
  67823. // returning from await.
  67824. case 4:
  67825. // for update
  67826. ++_i;
  67827. // goto for condition
  67828. $async$goto = 3;
  67829. break;
  67830. case 5:
  67831. // after for
  67832. $async$returnValue = null;
  67833. // goto return
  67834. $async$goto = 1;
  67835. break;
  67836. case 1:
  67837. // return
  67838. return A._asyncReturn($async$returnValue, $async$completer);
  67839. }
  67840. });
  67841. return A._asyncStartSync($async$visitStylesheet$1, $async$completer);
  67842. },
  67843. visitAtRootRule$1(_, node) {
  67844. return this.visitAtRootRule$body$_EvaluateVisitor(0, node);
  67845. },
  67846. visitAtRootRule$body$_EvaluateVisitor(_, node) {
  67847. var $async$goto = 0,
  67848. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  67849. $async$returnValue, $async$self = this, _1_0, resolved, query, $parent, included, t1, _2_0, root, first, rest, innerCopy, outerCopy, _i, copy, _0_0;
  67850. var $async$visitAtRootRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  67851. if ($async$errorCode === 1)
  67852. return A._asyncRethrow($async$result, $async$completer);
  67853. while (true)
  67854. switch ($async$goto) {
  67855. case 0:
  67856. // Function start
  67857. _0_0 = node.query;
  67858. $async$goto = _0_0 != null ? 3 : 5;
  67859. break;
  67860. case 3:
  67861. // then
  67862. $async$goto = 6;
  67863. return A._asyncAwait($async$self._async_evaluate$_performInterpolationWithMap$2$warnForColor(_0_0, true), $async$visitAtRootRule$1);
  67864. case 6:
  67865. // returning from await.
  67866. _1_0 = $async$result;
  67867. resolved = _1_0._0;
  67868. _1_0._1;
  67869. query = new A.AtRootQueryParser(A.SpanScanner$(resolved, null), null).parse$0(0);
  67870. // goto join
  67871. $async$goto = 4;
  67872. break;
  67873. case 5:
  67874. // else
  67875. query = B.AtRootQuery_n2q;
  67876. case 4:
  67877. // join
  67878. $parent = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent");
  67879. included = A._setArrayType([], type$.JSArray_ModifiableCssParentNode);
  67880. for (t1 = type$.CssStylesheet; !t1._is($parent); $parent = _2_0) {
  67881. if (!query.excludes$1($parent))
  67882. included.push($parent);
  67883. _2_0 = $parent._parent;
  67884. if (_2_0 == null)
  67885. throw A.wrapException(A.StateError$(string$.CssNod));
  67886. }
  67887. root = $async$self._async_evaluate$_trimIncluded$1(included);
  67888. $async$goto = root === $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent") ? 7 : 8;
  67889. break;
  67890. case 7:
  67891. // then
  67892. $async$goto = 9;
  67893. return A._asyncAwait($async$self._async_evaluate$_environment.scope$1$2$when(new A._EvaluateVisitor_visitAtRootRule_closure1($async$self, node), node.hasDeclarations, type$.Null), $async$visitAtRootRule$1);
  67894. case 9:
  67895. // returning from await.
  67896. $async$returnValue = null;
  67897. // goto return
  67898. $async$goto = 1;
  67899. break;
  67900. case 8:
  67901. // join
  67902. if (included.length >= 1) {
  67903. first = included[0];
  67904. rest = B.JSArray_methods.sublist$1(included, 1);
  67905. innerCopy = first.copyWithoutChildren$0();
  67906. for (t1 = rest.length, outerCopy = innerCopy, _i = 0; _i < rest.length; rest.length === t1 || (0, A.throwConcurrentModificationError)(rest), ++_i, outerCopy = copy) {
  67907. copy = rest[_i].copyWithoutChildren$0();
  67908. copy.addChild$1(outerCopy);
  67909. }
  67910. root.addChild$1(outerCopy);
  67911. } else
  67912. innerCopy = root;
  67913. $async$goto = 10;
  67914. return A._asyncAwait($async$self._async_evaluate$_scopeForAtRoot$4(node, innerCopy, query, included).call$1(new A._EvaluateVisitor_visitAtRootRule_closure2($async$self, node)), $async$visitAtRootRule$1);
  67915. case 10:
  67916. // returning from await.
  67917. $async$returnValue = null;
  67918. // goto return
  67919. $async$goto = 1;
  67920. break;
  67921. case 1:
  67922. // return
  67923. return A._asyncReturn($async$returnValue, $async$completer);
  67924. }
  67925. });
  67926. return A._asyncStartSync($async$visitAtRootRule$1, $async$completer);
  67927. },
  67928. _async_evaluate$_trimIncluded$1(nodes) {
  67929. var $parent, t1, innermostContiguous, i, t2, _0_0, _1_0, root, _this = this, _null = null, _s5_ = "_root",
  67930. _s22_ = " to be an ancestor of ";
  67931. if (nodes.length === 0)
  67932. return _this._async_evaluate$_assertInModule$2(_this._async_evaluate$__root, _s5_);
  67933. $parent = _this._async_evaluate$_assertInModule$2(_this._async_evaluate$__parent, "__parent");
  67934. for (t1 = nodes.length, innermostContiguous = _null, i = 0; i < t1; ++i, $parent = _1_0) {
  67935. for (; t2 = nodes[i], $parent !== t2; innermostContiguous = _null, $parent = _0_0) {
  67936. _0_0 = $parent._parent;
  67937. if (_0_0 == null)
  67938. throw A.wrapException(A.ArgumentError$("Expected " + t2.toString$0(0) + _s22_ + _this.toString$0(0) + ".", _null));
  67939. }
  67940. if (innermostContiguous == null)
  67941. innermostContiguous = i;
  67942. _1_0 = $parent._parent;
  67943. if (_1_0 == null)
  67944. throw A.wrapException(A.ArgumentError$("Expected " + t2.toString$0(0) + _s22_ + _this.toString$0(0) + ".", _null));
  67945. }
  67946. if ($parent !== _this._async_evaluate$_assertInModule$2(_this._async_evaluate$__root, _s5_))
  67947. return _this._async_evaluate$_assertInModule$2(_this._async_evaluate$__root, _s5_);
  67948. innermostContiguous.toString;
  67949. root = nodes[innermostContiguous];
  67950. B.JSArray_methods.removeRange$2(nodes, innermostContiguous, nodes.length);
  67951. return root;
  67952. },
  67953. _async_evaluate$_scopeForAtRoot$4(node, newParent, query, included) {
  67954. var _this = this,
  67955. scope = new A._EvaluateVisitor__scopeForAtRoot_closure5(_this, newParent, node),
  67956. t1 = query._all || query._at_root_query$_rule;
  67957. if (t1 !== query.include)
  67958. scope = new A._EvaluateVisitor__scopeForAtRoot_closure6(_this, scope);
  67959. if (_this._async_evaluate$_mediaQueries != null && query.excludesName$1("media"))
  67960. scope = new A._EvaluateVisitor__scopeForAtRoot_closure7(_this, scope);
  67961. if (_this._async_evaluate$_inKeyframes && query.excludesName$1("keyframes"))
  67962. scope = new A._EvaluateVisitor__scopeForAtRoot_closure8(_this, scope);
  67963. return _this._async_evaluate$_inUnknownAtRule && !B.JSArray_methods.any$1(included, new A._EvaluateVisitor__scopeForAtRoot_closure9()) ? new A._EvaluateVisitor__scopeForAtRoot_closure10(_this, scope) : scope;
  67964. },
  67965. visitContentBlock$1(_, node) {
  67966. return A.throwExpression(A.UnsupportedError$(string$.Evalua));
  67967. },
  67968. visitContentRule$1(_, node) {
  67969. return this.visitContentRule$body$_EvaluateVisitor(0, node);
  67970. },
  67971. visitContentRule$body$_EvaluateVisitor(_, node) {
  67972. var $async$goto = 0,
  67973. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  67974. $async$returnValue, $async$self = this, $content;
  67975. var $async$visitContentRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  67976. if ($async$errorCode === 1)
  67977. return A._asyncRethrow($async$result, $async$completer);
  67978. while (true)
  67979. switch ($async$goto) {
  67980. case 0:
  67981. // Function start
  67982. $content = $async$self._async_evaluate$_environment._async_environment$_content;
  67983. if ($content == null) {
  67984. $async$returnValue = null;
  67985. // goto return
  67986. $async$goto = 1;
  67987. break;
  67988. }
  67989. $async$goto = 3;
  67990. return A._asyncAwait($async$self._async_evaluate$_runUserDefinedCallable$1$4(node.$arguments, $content, node, new A._EvaluateVisitor_visitContentRule_closure0($async$self, $content), type$.Null), $async$visitContentRule$1);
  67991. case 3:
  67992. // returning from await.
  67993. $async$returnValue = null;
  67994. // goto return
  67995. $async$goto = 1;
  67996. break;
  67997. case 1:
  67998. // return
  67999. return A._asyncReturn($async$returnValue, $async$completer);
  68000. }
  68001. });
  68002. return A._asyncStartSync($async$visitContentRule$1, $async$completer);
  68003. },
  68004. visitDebugRule$1(_, node) {
  68005. return this.visitDebugRule$body$_EvaluateVisitor(0, node);
  68006. },
  68007. visitDebugRule$body$_EvaluateVisitor(_, node) {
  68008. var $async$goto = 0,
  68009. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  68010. $async$returnValue, $async$self = this, value, t1;
  68011. var $async$visitDebugRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68012. if ($async$errorCode === 1)
  68013. return A._asyncRethrow($async$result, $async$completer);
  68014. while (true)
  68015. switch ($async$goto) {
  68016. case 0:
  68017. // Function start
  68018. $async$goto = 3;
  68019. return A._asyncAwait(node.expression.accept$1($async$self), $async$visitDebugRule$1);
  68020. case 3:
  68021. // returning from await.
  68022. value = $async$result;
  68023. t1 = value instanceof A.SassString ? value._string$_text : A.serializeValue(value, true, true);
  68024. $async$self._async_evaluate$_logger.debug$2(0, t1, node.span);
  68025. $async$returnValue = null;
  68026. // goto return
  68027. $async$goto = 1;
  68028. break;
  68029. case 1:
  68030. // return
  68031. return A._asyncReturn($async$returnValue, $async$completer);
  68032. }
  68033. });
  68034. return A._asyncStartSync($async$visitDebugRule$1, $async$completer);
  68035. },
  68036. visitDeclaration$1(_, node) {
  68037. return this.visitDeclaration$body$_EvaluateVisitor(0, node);
  68038. },
  68039. visitDeclaration$body$_EvaluateVisitor(_, node) {
  68040. var $async$goto = 0,
  68041. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  68042. $async$returnValue, $async$self = this, siblings, interleavedRules, t1, t2, t3, t4, t5, t6, rule, rule0, $name, _1_0, _2_0, value, _3_0, oldDeclarationName, _box_0;
  68043. var $async$visitDeclaration$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68044. if ($async$errorCode === 1)
  68045. return A._asyncRethrow($async$result, $async$completer);
  68046. while (true)
  68047. switch ($async$goto) {
  68048. case 0:
  68049. // Function start
  68050. _box_0 = {};
  68051. if (($async$self._async_evaluate$_atRootExcludingStyleRule ? null : $async$self._async_evaluate$_styleRuleIgnoringAtRoot) == null && !$async$self._async_evaluate$_inUnknownAtRule && !$async$self._async_evaluate$_inKeyframes)
  68052. throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Declarm, node.span));
  68053. if ($async$self._async_evaluate$_declarationName != null && B.JSString_methods.startsWith$1(node.name.get$initialPlain(), "--"))
  68054. throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Declarw, node.span));
  68055. siblings = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent")._parent.children;
  68056. interleavedRules = A._setArrayType([], type$.JSArray_CssStyleRule);
  68057. if (siblings.get$last(siblings) !== $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent")) {
  68058. if ($async$self._async_evaluate$_quietDeps)
  68059. if (!$async$self._async_evaluate$_inDependency) {
  68060. t1 = $async$self._async_evaluate$_currentCallable;
  68061. t1 = t1 == null ? null : t1.inDependency;
  68062. t1 = t1 === true;
  68063. } else
  68064. t1 = true;
  68065. else
  68066. t1 = false;
  68067. t1 = !t1;
  68068. } else
  68069. t1 = false;
  68070. if (t1)
  68071. for (t1 = A.SubListIterable$(siblings, siblings.indexOf$1(siblings, $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent")) + 1, null, siblings.$ti._eval$1("ListBase.E")), t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListIterable.E>")), t3 = node.span, t4 = type$.SourceSpan, t5 = type$.String, t2 = t2._eval$1("ListIterable.E"); t1.moveNext$0();) {
  68072. t6 = t1.__internal$_current;
  68073. rule = t6 == null ? t2._as(t6) : t6;
  68074. $label0$1: {
  68075. if (rule instanceof A.ModifiableCssComment)
  68076. continue;
  68077. t6 = rule instanceof A.ModifiableCssStyleRule;
  68078. rule0 = t6 ? rule : null;
  68079. if (t6) {
  68080. interleavedRules.push(rule0);
  68081. break $label0$1;
  68082. }
  68083. $async$self._async_evaluate$_warn$3(string$.Sassx27s, new A.MultiSpan(t3, "declaration", A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_literal([rule.get$span(rule), "nested rule"], t4, t5), t4, t5)), B.Deprecation_u1l);
  68084. B.JSArray_methods.clear$0(interleavedRules);
  68085. break $label0$1;
  68086. }
  68087. }
  68088. t1 = node.name;
  68089. $async$goto = 3;
  68090. return A._asyncAwait($async$self._async_evaluate$_interpolationToValue$2$warnForColor(t1, true), $async$visitDeclaration$1);
  68091. case 3:
  68092. // returning from await.
  68093. $name = $async$result;
  68094. _1_0 = $async$self._async_evaluate$_declarationName;
  68095. if (_1_0 != null)
  68096. $name = new A.CssValue(_1_0 + "-" + A.S($name.value), $name.span, type$.CssValue_String);
  68097. _2_0 = node.value;
  68098. $async$goto = _2_0 != null ? 4 : 5;
  68099. break;
  68100. case 4:
  68101. // then
  68102. $async$goto = 6;
  68103. return A._asyncAwait(_2_0.accept$1($async$self), $async$visitDeclaration$1);
  68104. case 6:
  68105. // returning from await.
  68106. value = $async$result;
  68107. if (!value.get$isBlank() || value.get$asList().length === 0) {
  68108. t2 = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent");
  68109. t3 = _2_0.get$span(_2_0);
  68110. t4 = node.span;
  68111. t1 = B.JSString_methods.startsWith$1(t1.get$initialPlain(), "--");
  68112. t5 = interleavedRules.length === 0 ? null : $async$self._async_evaluate$_stackTrace$1(t4);
  68113. if ($async$self._async_evaluate$_sourceMap) {
  68114. t6 = A.NullableExtension_andThen(_2_0, $async$self.get$_async_evaluate$_expressionNode());
  68115. t6 = t6 == null ? null : J.get$span$z(t6);
  68116. } else
  68117. t6 = null;
  68118. t2.addChild$1(A.ModifiableCssDeclaration$($name, new A.CssValue(value, t3, type$.CssValue_Value), t4, interleavedRules, t1, t5, t6));
  68119. } else if (J.startsWith$1$s($name.value, "--"))
  68120. throw A.wrapException($async$self._async_evaluate$_exception$2("Custom property values may not be empty.", _2_0.get$span(_2_0)));
  68121. case 5:
  68122. // join
  68123. _3_0 = node.children;
  68124. _box_0.children = null;
  68125. $async$goto = _3_0 != null ? 7 : 8;
  68126. break;
  68127. case 7:
  68128. // then
  68129. _box_0.children = _3_0;
  68130. oldDeclarationName = $async$self._async_evaluate$_declarationName;
  68131. $async$self._async_evaluate$_declarationName = $name.value;
  68132. $async$goto = 9;
  68133. return A._asyncAwait($async$self._async_evaluate$_environment.scope$1$2$when(new A._EvaluateVisitor_visitDeclaration_closure0(_box_0, $async$self), node.hasDeclarations, type$.Null), $async$visitDeclaration$1);
  68134. case 9:
  68135. // returning from await.
  68136. $async$self._async_evaluate$_declarationName = oldDeclarationName;
  68137. case 8:
  68138. // join
  68139. $async$returnValue = null;
  68140. // goto return
  68141. $async$goto = 1;
  68142. break;
  68143. case 1:
  68144. // return
  68145. return A._asyncReturn($async$returnValue, $async$completer);
  68146. }
  68147. });
  68148. return A._asyncStartSync($async$visitDeclaration$1, $async$completer);
  68149. },
  68150. visitEachRule$1(_, node) {
  68151. return this.visitEachRule$body$_EvaluateVisitor(0, node);
  68152. },
  68153. visitEachRule$body$_EvaluateVisitor(_, node) {
  68154. var $async$goto = 0,
  68155. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  68156. $async$returnValue, $async$self = this, _box_0, t1, list, nodeWithSpan, _0_0;
  68157. var $async$visitEachRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68158. if ($async$errorCode === 1)
  68159. return A._asyncRethrow($async$result, $async$completer);
  68160. while (true)
  68161. switch ($async$goto) {
  68162. case 0:
  68163. // Function start
  68164. _box_0 = {};
  68165. t1 = node.list;
  68166. $async$goto = 3;
  68167. return A._asyncAwait(t1.accept$1($async$self), $async$visitEachRule$1);
  68168. case 3:
  68169. // returning from await.
  68170. list = $async$result;
  68171. nodeWithSpan = $async$self._async_evaluate$_expressionNode$1(t1);
  68172. _0_0 = node.variables;
  68173. $label0$0: {
  68174. _box_0.variable = null;
  68175. if (_0_0.length === 1) {
  68176. _box_0.variable = _0_0[0];
  68177. t1 = new A._EvaluateVisitor_visitEachRule_closure2(_box_0, $async$self, nodeWithSpan);
  68178. break $label0$0;
  68179. }
  68180. _box_0.variables = null;
  68181. _box_0.variables = _0_0;
  68182. t1 = new A._EvaluateVisitor_visitEachRule_closure3(_box_0, $async$self, nodeWithSpan);
  68183. break $label0$0;
  68184. }
  68185. $async$returnValue = $async$self._async_evaluate$_environment.scope$1$2$semiGlobal(new A._EvaluateVisitor_visitEachRule_closure4($async$self, list, t1, node), true, type$.nullable_Value);
  68186. // goto return
  68187. $async$goto = 1;
  68188. break;
  68189. case 1:
  68190. // return
  68191. return A._asyncReturn($async$returnValue, $async$completer);
  68192. }
  68193. });
  68194. return A._asyncStartSync($async$visitEachRule$1, $async$completer);
  68195. },
  68196. _async_evaluate$_setMultipleVariables$3(variables, value, nodeWithSpan) {
  68197. var i,
  68198. list = value.get$asList(),
  68199. t1 = variables.length,
  68200. minLength = Math.min(t1, list.length);
  68201. for (i = 0; i < minLength; ++i)
  68202. this._async_evaluate$_environment.setLocalVariable$3(variables[i], this._async_evaluate$_withoutSlash$2(list[i], nodeWithSpan), nodeWithSpan);
  68203. for (i = minLength; i < t1; ++i)
  68204. this._async_evaluate$_environment.setLocalVariable$3(variables[i], B.C__SassNull, nodeWithSpan);
  68205. },
  68206. visitErrorRule$1(_, node) {
  68207. return this.visitErrorRule$body$_EvaluateVisitor(0, node);
  68208. },
  68209. visitErrorRule$body$_EvaluateVisitor(_, node) {
  68210. var $async$goto = 0,
  68211. $async$completer = A._makeAsyncAwaitCompleter(type$.Value),
  68212. $async$self = this, $async$temp1, $async$temp2;
  68213. var $async$visitErrorRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68214. if ($async$errorCode === 1)
  68215. return A._asyncRethrow($async$result, $async$completer);
  68216. while (true)
  68217. switch ($async$goto) {
  68218. case 0:
  68219. // Function start
  68220. $async$temp1 = A;
  68221. $async$temp2 = J;
  68222. $async$goto = 2;
  68223. return A._asyncAwait(node.expression.accept$1($async$self), $async$visitErrorRule$1);
  68224. case 2:
  68225. // returning from await.
  68226. throw $async$temp1.wrapException($async$self._async_evaluate$_exception$2($async$temp2.toString$0$($async$result), node.span));
  68227. // implicit return
  68228. return A._asyncReturn(null, $async$completer);
  68229. }
  68230. });
  68231. return A._asyncStartSync($async$visitErrorRule$1, $async$completer);
  68232. },
  68233. visitExtendRule$1(_, node) {
  68234. return this.visitExtendRule$body$_EvaluateVisitor(0, node);
  68235. },
  68236. visitExtendRule$body$_EvaluateVisitor(_, node) {
  68237. var $async$goto = 0,
  68238. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  68239. $async$returnValue, $async$self = this, t1, t2, t3, t4, t5, _i, complex, visitor, t6, t7, _0_0, targetText, targetMap, compound, styleRule;
  68240. var $async$visitExtendRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68241. if ($async$errorCode === 1)
  68242. return A._asyncRethrow($async$result, $async$completer);
  68243. while (true)
  68244. switch ($async$goto) {
  68245. case 0:
  68246. // Function start
  68247. styleRule = $async$self._async_evaluate$_atRootExcludingStyleRule ? null : $async$self._async_evaluate$_styleRuleIgnoringAtRoot;
  68248. if (styleRule == null || $async$self._async_evaluate$_declarationName != null)
  68249. throw A.wrapException($async$self._async_evaluate$_exception$2(string$.x40exten, node.span));
  68250. for (t1 = styleRule.originalSelector.components, t2 = t1.length, t3 = node.span, t4 = type$.SourceSpan, t5 = type$.String, _i = 0; _i < t2; ++_i) {
  68251. complex = t1[_i];
  68252. if (!complex.accept$1(B._IsBogusVisitor_true))
  68253. continue;
  68254. visitor = A._SerializeVisitor$(null, true, null, null, true, false, null, true);
  68255. complex.accept$1(visitor);
  68256. t6 = B.JSString_methods.trim$0(visitor._serialize$_buffer.toString$0(0));
  68257. t7 = complex.accept$1(B.C__IsUselessVisitor) ? "can't" : "shouldn't";
  68258. $async$self._async_evaluate$_warn$3('The selector "' + t6 + '" is invalid CSS and ' + t7 + string$.x20be_an, new A.MultiSpan(A.SpanExtensions_trimRight(complex.span), "invalid selector", A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_literal([t3, "@extend rule"], t4, t5), t4, t5)), B.Deprecation_C9i);
  68259. }
  68260. $async$goto = 3;
  68261. return A._asyncAwait($async$self._async_evaluate$_performInterpolationWithMap$2$warnForColor(node.selector, true), $async$visitExtendRule$1);
  68262. case 3:
  68263. // returning from await.
  68264. _0_0 = $async$result;
  68265. targetText = _0_0._0;
  68266. targetMap = _0_0._1;
  68267. for (t1 = A.SelectorList_SelectorList$parse(A.trimAscii(targetText, true), false, targetMap, false).components, t2 = t1.length, t3 = styleRule._style_rule$_selector._box$_inner, _i = 0; _i < t2; ++_i) {
  68268. complex = t1[_i];
  68269. compound = complex.get$singleCompound();
  68270. if (compound == null)
  68271. throw A.wrapException(A.SassFormatException$("complex selectors may not be extended.", complex.span, null));
  68272. t4 = compound.components;
  68273. t5 = t4.length === 1 ? B.JSArray_methods.get$first(t4) : null;
  68274. if (t5 == null)
  68275. throw A.wrapException(A.SassFormatException$(string$.compou + B.JSArray_methods.join$1(t4, ", ") + string$.x60_inst, compound.span, null));
  68276. $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__extensionStore, "_extensionStore").addExtension$4(t3.value, t5, node, $async$self._async_evaluate$_mediaQueries);
  68277. }
  68278. $async$returnValue = null;
  68279. // goto return
  68280. $async$goto = 1;
  68281. break;
  68282. case 1:
  68283. // return
  68284. return A._asyncReturn($async$returnValue, $async$completer);
  68285. }
  68286. });
  68287. return A._asyncStartSync($async$visitExtendRule$1, $async$completer);
  68288. },
  68289. visitAtRule$1(_, node) {
  68290. return this.visitAtRule$body$_EvaluateVisitor(0, node);
  68291. },
  68292. visitAtRule$body$_EvaluateVisitor(_, node) {
  68293. var $async$goto = 0,
  68294. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  68295. $async$returnValue, $async$self = this, $name, t1, value, children, wasInKeyframes, wasInUnknownAtRule;
  68296. var $async$visitAtRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68297. if ($async$errorCode === 1)
  68298. return A._asyncRethrow($async$result, $async$completer);
  68299. while (true)
  68300. switch ($async$goto) {
  68301. case 0:
  68302. // Function start
  68303. if ($async$self._async_evaluate$_declarationName != null)
  68304. throw A.wrapException($async$self._async_evaluate$_exception$2(string$.At_rul, node.span));
  68305. $async$goto = 3;
  68306. return A._asyncAwait($async$self._async_evaluate$_interpolationToValue$1(node.name), $async$visitAtRule$1);
  68307. case 3:
  68308. // returning from await.
  68309. $name = $async$result;
  68310. t1 = A.NullableExtension_andThen(node.value, new A._EvaluateVisitor_visitAtRule_closure2($async$self));
  68311. $async$goto = 4;
  68312. return A._asyncAwait(type$.Future_nullable_CssValue_String._is(t1) ? t1 : A._Future$value(t1, type$.nullable_CssValue_String), $async$visitAtRule$1);
  68313. case 4:
  68314. // returning from await.
  68315. value = $async$result;
  68316. children = node.children;
  68317. if (children == null) {
  68318. $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent").addChild$1(A.ModifiableCssAtRule$($name, node.span, true, value));
  68319. $async$returnValue = null;
  68320. // goto return
  68321. $async$goto = 1;
  68322. break;
  68323. }
  68324. wasInKeyframes = $async$self._async_evaluate$_inKeyframes;
  68325. wasInUnknownAtRule = $async$self._async_evaluate$_inUnknownAtRule;
  68326. if (A.unvendor($name.value) === "keyframes")
  68327. $async$self._async_evaluate$_inKeyframes = true;
  68328. else
  68329. $async$self._async_evaluate$_inUnknownAtRule = true;
  68330. $async$goto = 5;
  68331. return A._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(A.ModifiableCssAtRule$($name, node.span, false, value), new A._EvaluateVisitor_visitAtRule_closure3($async$self, $name, children), node.hasDeclarations, new A._EvaluateVisitor_visitAtRule_closure4(), type$.ModifiableCssAtRule, type$.Null), $async$visitAtRule$1);
  68332. case 5:
  68333. // returning from await.
  68334. $async$self._async_evaluate$_inUnknownAtRule = wasInUnknownAtRule;
  68335. $async$self._async_evaluate$_inKeyframes = wasInKeyframes;
  68336. $async$returnValue = null;
  68337. // goto return
  68338. $async$goto = 1;
  68339. break;
  68340. case 1:
  68341. // return
  68342. return A._asyncReturn($async$returnValue, $async$completer);
  68343. }
  68344. });
  68345. return A._asyncStartSync($async$visitAtRule$1, $async$completer);
  68346. },
  68347. visitForRule$1(_, node) {
  68348. return this.visitForRule$body$_EvaluateVisitor(0, node);
  68349. },
  68350. visitForRule$body$_EvaluateVisitor(_, node) {
  68351. var $async$goto = 0,
  68352. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  68353. $async$returnValue, $async$self = this, t1, t2, t3, fromNumber, t4, toNumber, from, to, direction;
  68354. var $async$visitForRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68355. if ($async$errorCode === 1)
  68356. return A._asyncRethrow($async$result, $async$completer);
  68357. while (true)
  68358. switch ($async$goto) {
  68359. case 0:
  68360. // Function start
  68361. t1 = {};
  68362. t2 = node.from;
  68363. t3 = type$.SassNumber;
  68364. $async$goto = 3;
  68365. return A._asyncAwait($async$self._addExceptionSpanAsync$1$2(t2, new A._EvaluateVisitor_visitForRule_closure4($async$self, node), t3), $async$visitForRule$1);
  68366. case 3:
  68367. // returning from await.
  68368. fromNumber = $async$result;
  68369. t4 = node.to;
  68370. $async$goto = 4;
  68371. return A._asyncAwait($async$self._addExceptionSpanAsync$1$2(t4, new A._EvaluateVisitor_visitForRule_closure5($async$self, node), t3), $async$visitForRule$1);
  68372. case 4:
  68373. // returning from await.
  68374. toNumber = $async$result;
  68375. from = $async$self._async_evaluate$_addExceptionSpan$2(t2, new A._EvaluateVisitor_visitForRule_closure6(fromNumber));
  68376. to = t1.to = $async$self._async_evaluate$_addExceptionSpan$2(t4, new A._EvaluateVisitor_visitForRule_closure7(toNumber, fromNumber));
  68377. direction = from > to ? -1 : 1;
  68378. if (from === (!node.isExclusive ? t1.to = to + direction : to)) {
  68379. $async$returnValue = null;
  68380. // goto return
  68381. $async$goto = 1;
  68382. break;
  68383. }
  68384. $async$returnValue = $async$self._async_evaluate$_environment.scope$1$2$semiGlobal(new A._EvaluateVisitor_visitForRule_closure8(t1, $async$self, node, from, direction, fromNumber), true, type$.nullable_Value);
  68385. // goto return
  68386. $async$goto = 1;
  68387. break;
  68388. case 1:
  68389. // return
  68390. return A._asyncReturn($async$returnValue, $async$completer);
  68391. }
  68392. });
  68393. return A._asyncStartSync($async$visitForRule$1, $async$completer);
  68394. },
  68395. visitForwardRule$1(_, node) {
  68396. return this.visitForwardRule$body$_EvaluateVisitor(0, node);
  68397. },
  68398. visitForwardRule$body$_EvaluateVisitor(_, node) {
  68399. var $async$goto = 0,
  68400. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  68401. $async$returnValue, $async$self = this, newConfiguration, t4, _i, variable, $name, oldConfiguration, adjustedConfiguration, t1, t2, t3;
  68402. var $async$visitForwardRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68403. if ($async$errorCode === 1)
  68404. return A._asyncRethrow($async$result, $async$completer);
  68405. while (true)
  68406. switch ($async$goto) {
  68407. case 0:
  68408. // Function start
  68409. oldConfiguration = $async$self._async_evaluate$_configuration;
  68410. adjustedConfiguration = oldConfiguration.throughForward$1(node);
  68411. t1 = node.configuration;
  68412. t2 = t1.length;
  68413. t3 = node.url;
  68414. $async$goto = t2 !== 0 ? 3 : 5;
  68415. break;
  68416. case 3:
  68417. // then
  68418. $async$goto = 6;
  68419. return A._asyncAwait($async$self._async_evaluate$_addForwardConfiguration$2(adjustedConfiguration, node), $async$visitForwardRule$1);
  68420. case 6:
  68421. // returning from await.
  68422. newConfiguration = $async$result;
  68423. $async$goto = 7;
  68424. return A._asyncAwait($async$self._async_evaluate$_loadModule$5$configuration(t3, "@forward", node, new A._EvaluateVisitor_visitForwardRule_closure1($async$self, node), newConfiguration), $async$visitForwardRule$1);
  68425. case 7:
  68426. // returning from await.
  68427. t3 = type$.String;
  68428. t4 = A.LinkedHashSet_LinkedHashSet$_empty(t3);
  68429. for (_i = 0; _i < t2; ++_i) {
  68430. variable = t1[_i];
  68431. if (!variable.isGuarded)
  68432. t4.add$1(0, variable.name);
  68433. }
  68434. $async$self._async_evaluate$_removeUsedConfiguration$3$except(adjustedConfiguration, newConfiguration, t4);
  68435. t3 = A.LinkedHashSet_LinkedHashSet$_empty(t3);
  68436. for (_i = 0; _i < t2; ++_i)
  68437. t3.add$1(0, t1[_i].name);
  68438. for (t1 = newConfiguration._configuration$_values, t2 = J.toList$0$ax(t1.get$keys(t1)), t4 = t2.length, _i = 0; _i < t2.length; t2.length === t4 || (0, A.throwConcurrentModificationError)(t2), ++_i) {
  68439. $name = t2[_i];
  68440. if (!t3.contains$1(0, $name))
  68441. if (!t1.get$isEmpty(t1))
  68442. t1.remove$1(0, $name);
  68443. }
  68444. $async$self._async_evaluate$_assertConfigurationIsEmpty$1(newConfiguration);
  68445. // goto join
  68446. $async$goto = 4;
  68447. break;
  68448. case 5:
  68449. // else
  68450. $async$self._async_evaluate$_configuration = adjustedConfiguration;
  68451. $async$goto = 8;
  68452. return A._asyncAwait($async$self._async_evaluate$_loadModule$4(t3, "@forward", node, new A._EvaluateVisitor_visitForwardRule_closure2($async$self, node)), $async$visitForwardRule$1);
  68453. case 8:
  68454. // returning from await.
  68455. $async$self._async_evaluate$_configuration = oldConfiguration;
  68456. case 4:
  68457. // join
  68458. $async$returnValue = null;
  68459. // goto return
  68460. $async$goto = 1;
  68461. break;
  68462. case 1:
  68463. // return
  68464. return A._asyncReturn($async$returnValue, $async$completer);
  68465. }
  68466. });
  68467. return A._asyncStartSync($async$visitForwardRule$1, $async$completer);
  68468. },
  68469. _async_evaluate$_addForwardConfiguration$2(configuration, node) {
  68470. return this._addForwardConfiguration$body$_EvaluateVisitor(configuration, node);
  68471. },
  68472. _addForwardConfiguration$body$_EvaluateVisitor(configuration, node) {
  68473. var $async$goto = 0,
  68474. $async$completer = A._makeAsyncAwaitCompleter(type$.Configuration),
  68475. $async$returnValue, $async$self = this, t2, t3, t4, t5, _i, variable, t6, oldValue, t7, variableNodeWithSpan, t8, t1, newValues, $async$temp1, $async$temp2, $async$temp3;
  68476. var $async$_async_evaluate$_addForwardConfiguration$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68477. if ($async$errorCode === 1)
  68478. return A._asyncRethrow($async$result, $async$completer);
  68479. while (true)
  68480. switch ($async$goto) {
  68481. case 0:
  68482. // Function start
  68483. t1 = configuration._configuration$_values;
  68484. newValues = A.LinkedHashMap_LinkedHashMap$of(new A.UnmodifiableMapView(t1, type$.UnmodifiableMapView_String_ConfiguredValue), type$.String, type$.ConfiguredValue);
  68485. t2 = node.configuration, t3 = t2.length, t4 = type$._Future_Value, t5 = type$.Future_Value, _i = 0;
  68486. case 3:
  68487. // for condition
  68488. if (!(_i < t3)) {
  68489. // goto after for
  68490. $async$goto = 5;
  68491. break;
  68492. }
  68493. variable = t2[_i];
  68494. if (variable.isGuarded) {
  68495. t6 = variable.name;
  68496. oldValue = t1.get$isEmpty(t1) ? null : t1.remove$1(0, t6);
  68497. if (oldValue != null)
  68498. t7 = !oldValue.value.$eq(0, B.C__SassNull);
  68499. else {
  68500. oldValue = null;
  68501. t7 = false;
  68502. }
  68503. if (t7) {
  68504. newValues.$indexSet(0, t6, oldValue);
  68505. // goto for update
  68506. $async$goto = 4;
  68507. break;
  68508. }
  68509. }
  68510. t6 = variable.expression;
  68511. variableNodeWithSpan = $async$self._async_evaluate$_expressionNode$1(t6);
  68512. t7 = variable.name;
  68513. t6 = t6.accept$1($async$self);
  68514. if (!t5._is(t6)) {
  68515. t8 = new A._Future($.Zone__current, t4);
  68516. t8._state = 8;
  68517. t8._resultOrListeners = t6;
  68518. t6 = t8;
  68519. }
  68520. $async$temp1 = newValues;
  68521. $async$temp2 = t7;
  68522. $async$temp3 = A;
  68523. $async$goto = 6;
  68524. return A._asyncAwait(t6, $async$_async_evaluate$_addForwardConfiguration$2);
  68525. case 6:
  68526. // returning from await.
  68527. $async$temp1.$indexSet(0, $async$temp2, new $async$temp3.ConfiguredValue($async$self._async_evaluate$_withoutSlash$2($async$result, variableNodeWithSpan), variable.span, variableNodeWithSpan));
  68528. case 4:
  68529. // for update
  68530. ++_i;
  68531. // goto for condition
  68532. $async$goto = 3;
  68533. break;
  68534. case 5:
  68535. // after for
  68536. if (configuration instanceof A.ExplicitConfiguration || t1.get$isEmpty(t1)) {
  68537. $async$returnValue = new A.ExplicitConfiguration(node, newValues, null);
  68538. // goto return
  68539. $async$goto = 1;
  68540. break;
  68541. } else {
  68542. $async$returnValue = new A.Configuration(newValues, null);
  68543. // goto return
  68544. $async$goto = 1;
  68545. break;
  68546. }
  68547. case 1:
  68548. // return
  68549. return A._asyncReturn($async$returnValue, $async$completer);
  68550. }
  68551. });
  68552. return A._asyncStartSync($async$_async_evaluate$_addForwardConfiguration$2, $async$completer);
  68553. },
  68554. _async_evaluate$_registerCommentsForModule$1(module) {
  68555. var _this = this, _s5_ = "_root",
  68556. t1 = _this._async_evaluate$__root;
  68557. if (t1 == null)
  68558. return;
  68559. if (_this._async_evaluate$_assertInModule$2(t1, _s5_).children.get$length(0) === 0 || !module.get$transitivelyContainsCss())
  68560. return;
  68561. t1 = _this._async_evaluate$_preModuleComments;
  68562. if (t1 == null)
  68563. t1 = _this._async_evaluate$_preModuleComments = A.LinkedHashMap_LinkedHashMap$_empty(type$.Module_AsyncCallable, type$.List_CssComment);
  68564. J.addAll$1$ax(t1.putIfAbsent$2(module, new A._EvaluateVisitor__registerCommentsForModule_closure0()), new A.UnmodifiableListView(J.cast$1$0$ax(_this._async_evaluate$_assertInModule$2(_this._async_evaluate$__root, _s5_).children._collection$_source, type$.CssComment), type$.UnmodifiableListView_CssComment));
  68565. _this._async_evaluate$_assertInModule$2(_this._async_evaluate$__root, _s5_).clearChildren$0();
  68566. _this._async_evaluate$__endOfImports = 0;
  68567. },
  68568. _async_evaluate$_removeUsedConfiguration$3$except(upstream, downstream, except) {
  68569. var t1, t2, t3, t4, _i, $name;
  68570. for (t1 = upstream._configuration$_values, t2 = J.toList$0$ax(t1.get$keys(t1)), t3 = t2.length, t4 = downstream._configuration$_values, _i = 0; _i < t2.length; t2.length === t3 || (0, A.throwConcurrentModificationError)(t2), ++_i) {
  68571. $name = t2[_i];
  68572. if (except.contains$1(0, $name))
  68573. continue;
  68574. if (!t4.containsKey$1($name))
  68575. if (!t1.get$isEmpty(t1))
  68576. t1.remove$1(0, $name);
  68577. }
  68578. },
  68579. _async_evaluate$_assertConfigurationIsEmpty$2$nameInError(configuration, nameInError) {
  68580. var t1, _0_0, $name, value;
  68581. if (!(configuration instanceof A.ExplicitConfiguration))
  68582. return;
  68583. t1 = configuration._configuration$_values;
  68584. if (t1.get$isEmpty(t1))
  68585. return;
  68586. t1 = A.MapExtensions_get_pairs(new A.UnmodifiableMapView(t1, type$.UnmodifiableMapView_String_ConfiguredValue), type$.String, type$.ConfiguredValue);
  68587. _0_0 = t1.get$first(t1);
  68588. $name = _0_0._0;
  68589. value = _0_0._1;
  68590. t1 = nameInError ? "$" + $name + string$.x20was_n : string$.This_v;
  68591. throw A.wrapException(this._async_evaluate$_exception$2(t1, value.configurationSpan));
  68592. },
  68593. _async_evaluate$_assertConfigurationIsEmpty$1(configuration) {
  68594. return this._async_evaluate$_assertConfigurationIsEmpty$2$nameInError(configuration, false);
  68595. },
  68596. visitFunctionRule$1(_, node) {
  68597. return this.visitFunctionRule$body$_EvaluateVisitor(0, node);
  68598. },
  68599. visitFunctionRule$body$_EvaluateVisitor(_, node) {
  68600. var $async$goto = 0,
  68601. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  68602. $async$returnValue, $async$self = this, t1, t2, t3, t4, index, t5;
  68603. var $async$visitFunctionRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68604. if ($async$errorCode === 1)
  68605. return A._asyncRethrow($async$result, $async$completer);
  68606. while (true)
  68607. switch ($async$goto) {
  68608. case 0:
  68609. // Function start
  68610. t1 = $async$self._async_evaluate$_environment;
  68611. t2 = t1.closure$0();
  68612. t3 = $async$self._async_evaluate$_inDependency;
  68613. t4 = t1._async_environment$_functions;
  68614. index = t4.length - 1;
  68615. t5 = node.name;
  68616. t1._async_environment$_functionIndices.$indexSet(0, t5, index);
  68617. J.$indexSet$ax(t4[index], t5, new A.UserDefinedCallable(node, t2, t3, type$.UserDefinedCallable_AsyncEnvironment));
  68618. $async$returnValue = null;
  68619. // goto return
  68620. $async$goto = 1;
  68621. break;
  68622. case 1:
  68623. // return
  68624. return A._asyncReturn($async$returnValue, $async$completer);
  68625. }
  68626. });
  68627. return A._asyncStartSync($async$visitFunctionRule$1, $async$completer);
  68628. },
  68629. visitIfRule$1(_, node) {
  68630. return this.visitIfRule$body$_EvaluateVisitor(0, node);
  68631. },
  68632. visitIfRule$body$_EvaluateVisitor(_, node) {
  68633. var $async$goto = 0,
  68634. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  68635. $async$returnValue, $async$self = this, t1, t2, _i, clauseToCheck, clause;
  68636. var $async$visitIfRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68637. if ($async$errorCode === 1)
  68638. return A._asyncRethrow($async$result, $async$completer);
  68639. while (true)
  68640. switch ($async$goto) {
  68641. case 0:
  68642. // Function start
  68643. clause = node.lastClause;
  68644. t1 = node.clauses, t2 = t1.length, _i = 0;
  68645. case 3:
  68646. // for condition
  68647. if (!(_i < t2)) {
  68648. // goto after for
  68649. $async$goto = 5;
  68650. break;
  68651. }
  68652. clauseToCheck = t1[_i];
  68653. $async$goto = 6;
  68654. return A._asyncAwait(clauseToCheck.expression.accept$1($async$self), $async$visitIfRule$1);
  68655. case 6:
  68656. // returning from await.
  68657. if ($async$result.get$isTruthy()) {
  68658. clause = clauseToCheck;
  68659. // goto after for
  68660. $async$goto = 5;
  68661. break;
  68662. }
  68663. case 4:
  68664. // for update
  68665. ++_i;
  68666. // goto for condition
  68667. $async$goto = 3;
  68668. break;
  68669. case 5:
  68670. // after for
  68671. t1 = A.NullableExtension_andThen(clause, new A._EvaluateVisitor_visitIfRule_closure0($async$self));
  68672. $async$goto = 7;
  68673. return A._asyncAwait(type$.Future_nullable_Value._is(t1) ? t1 : A._Future$value(t1, type$.nullable_Value), $async$visitIfRule$1);
  68674. case 7:
  68675. // returning from await.
  68676. $async$returnValue = $async$result;
  68677. // goto return
  68678. $async$goto = 1;
  68679. break;
  68680. case 1:
  68681. // return
  68682. return A._asyncReturn($async$returnValue, $async$completer);
  68683. }
  68684. });
  68685. return A._asyncStartSync($async$visitIfRule$1, $async$completer);
  68686. },
  68687. visitImportRule$1(_, node) {
  68688. return this.visitImportRule$body$_EvaluateVisitor(0, node);
  68689. },
  68690. visitImportRule$body$_EvaluateVisitor(_, node) {
  68691. var $async$goto = 0,
  68692. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  68693. $async$returnValue, $async$self = this, t1, t2, t3, _i, $import;
  68694. var $async$visitImportRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68695. if ($async$errorCode === 1)
  68696. return A._asyncRethrow($async$result, $async$completer);
  68697. while (true)
  68698. switch ($async$goto) {
  68699. case 0:
  68700. // Function start
  68701. t1 = node.imports, t2 = t1.length, t3 = type$.StaticImport, _i = 0;
  68702. case 3:
  68703. // for condition
  68704. if (!(_i < t2)) {
  68705. // goto after for
  68706. $async$goto = 5;
  68707. break;
  68708. }
  68709. $import = t1[_i];
  68710. $async$goto = $import instanceof A.DynamicImport ? 6 : 8;
  68711. break;
  68712. case 6:
  68713. // then
  68714. $async$goto = 9;
  68715. return A._asyncAwait($async$self._async_evaluate$_visitDynamicImport$1($import), $async$visitImportRule$1);
  68716. case 9:
  68717. // returning from await.
  68718. // goto join
  68719. $async$goto = 7;
  68720. break;
  68721. case 8:
  68722. // else
  68723. $async$goto = 10;
  68724. return A._asyncAwait($async$self._visitStaticImport$1(t3._as($import)), $async$visitImportRule$1);
  68725. case 10:
  68726. // returning from await.
  68727. case 7:
  68728. // join
  68729. case 4:
  68730. // for update
  68731. ++_i;
  68732. // goto for condition
  68733. $async$goto = 3;
  68734. break;
  68735. case 5:
  68736. // after for
  68737. $async$returnValue = null;
  68738. // goto return
  68739. $async$goto = 1;
  68740. break;
  68741. case 1:
  68742. // return
  68743. return A._asyncReturn($async$returnValue, $async$completer);
  68744. }
  68745. });
  68746. return A._asyncStartSync($async$visitImportRule$1, $async$completer);
  68747. },
  68748. _async_evaluate$_visitDynamicImport$1($import) {
  68749. return this._async_evaluate$_withStackFrame$1$3("@import", $import, new A._EvaluateVisitor__visitDynamicImport_closure0(this, $import), type$.void);
  68750. },
  68751. _async_evaluate$_loadStylesheet$4$baseUrl$forImport(url, span, baseUrl, forImport) {
  68752. return this._loadStylesheet$body$_EvaluateVisitor(url, span, baseUrl, forImport);
  68753. },
  68754. _async_evaluate$_loadStylesheet$3$baseUrl(url, span, baseUrl) {
  68755. return this._async_evaluate$_loadStylesheet$4$baseUrl$forImport(url, span, baseUrl, false);
  68756. },
  68757. _async_evaluate$_loadStylesheet$3$forImport(url, span, forImport) {
  68758. return this._async_evaluate$_loadStylesheet$4$baseUrl$forImport(url, span, null, forImport);
  68759. },
  68760. _loadStylesheet$body$_EvaluateVisitor(url, span, baseUrl, forImport) {
  68761. var $async$goto = 0,
  68762. $async$completer = A._makeAsyncAwaitCompleter(type$.Record_3_Stylesheet_and_nullable_AsyncImporter_importer_and_bool_isDependency),
  68763. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, _0_0, importCache, _1_0, importer, canonicalUrl, originalUrl, isDependency, _2_0, stylesheet, error, stackTrace, error0, stackTrace0, t1, t2, exception, $async$exception;
  68764. var $async$_async_evaluate$_loadStylesheet$4$baseUrl$forImport = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68765. if ($async$errorCode === 1) {
  68766. $async$currentError = $async$result;
  68767. $async$goto = $async$handler;
  68768. }
  68769. while (true)
  68770. switch ($async$goto) {
  68771. case 0:
  68772. // Function start
  68773. baseUrl = baseUrl;
  68774. $async$handler = 4;
  68775. $async$self._async_evaluate$_importSpan = span;
  68776. _0_0 = $async$self._async_evaluate$_importCache;
  68777. importCache = null;
  68778. $async$goto = _0_0 != null ? 7 : 8;
  68779. break;
  68780. case 7:
  68781. // then
  68782. importCache = _0_0;
  68783. if (baseUrl == null) {
  68784. t1 = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__stylesheet, "_stylesheet").span;
  68785. baseUrl = t1.get$sourceUrl(t1);
  68786. }
  68787. $async$goto = 9;
  68788. return A._asyncAwait(J.canonicalize$4$baseImporter$baseUrl$forImport$x(importCache, A.Uri_parse(url), $async$self._async_evaluate$_importer, baseUrl, forImport), $async$_async_evaluate$_loadStylesheet$4$baseUrl$forImport);
  68789. case 9:
  68790. // returning from await.
  68791. _1_0 = $async$result;
  68792. importer = null;
  68793. canonicalUrl = null;
  68794. originalUrl = null;
  68795. $async$goto = type$.Record_3_nullable_Object_and_nullable_Object_and_nullable_Object_originalUrl._is(_1_0) ? 10 : 11;
  68796. break;
  68797. case 10:
  68798. // then
  68799. importer = _1_0._0;
  68800. canonicalUrl = _1_0._1;
  68801. originalUrl = _1_0._2;
  68802. if (canonicalUrl.get$scheme() === "")
  68803. A.WarnForDeprecation_warnForDeprecation($async$self._async_evaluate$_logger, B.Deprecation_INA, "Importer " + A.S(importer) + " canonicalized " + url + " to " + A.S(canonicalUrl) + string$.x2e_Rela, null, null);
  68804. $async$self._async_evaluate$_loadedUrls.add$1(0, canonicalUrl);
  68805. isDependency = $async$self._async_evaluate$_inDependency || !J.$eq$(importer, $async$self._async_evaluate$_importer);
  68806. $async$goto = 12;
  68807. return A._asyncAwait(importCache.importCanonical$3$originalUrl(importer, canonicalUrl, originalUrl), $async$_async_evaluate$_loadStylesheet$4$baseUrl$forImport);
  68808. case 12:
  68809. // returning from await.
  68810. _2_0 = $async$result;
  68811. stylesheet = null;
  68812. if (_2_0 != null) {
  68813. stylesheet = _2_0;
  68814. t1 = stylesheet;
  68815. t2 = importer;
  68816. $async$returnValue = new A._Record_3_importer_isDependency(t1, t2, isDependency);
  68817. $async$next = [1];
  68818. // goto finally
  68819. $async$goto = 5;
  68820. break;
  68821. }
  68822. case 11:
  68823. // join
  68824. case 8:
  68825. // join
  68826. t1 = B.JSString_methods.startsWith$1(url, "package:");
  68827. if (t1)
  68828. throw A.wrapException(string$.x22packa);
  68829. else
  68830. throw A.wrapException("Can't find stylesheet to import.");
  68831. $async$next.push(6);
  68832. // goto finally
  68833. $async$goto = 5;
  68834. break;
  68835. case 4:
  68836. // catch
  68837. $async$handler = 3;
  68838. $async$exception = $async$currentError;
  68839. t1 = A.unwrapException($async$exception);
  68840. if (t1 instanceof A.SassException)
  68841. throw $async$exception;
  68842. else if (t1 instanceof A.ArgumentError) {
  68843. error = t1;
  68844. stackTrace = A.getTraceFromException($async$exception);
  68845. A.throwWithTrace($async$self._async_evaluate$_exception$1(J.toString$0$(error)), error, stackTrace);
  68846. } else {
  68847. error0 = t1;
  68848. stackTrace0 = A.getTraceFromException($async$exception);
  68849. A.throwWithTrace($async$self._async_evaluate$_exception$1($async$self._async_evaluate$_getErrorMessage$1(error0)), error0, stackTrace0);
  68850. }
  68851. $async$next.push(6);
  68852. // goto finally
  68853. $async$goto = 5;
  68854. break;
  68855. case 3:
  68856. // uncaught
  68857. $async$next = [2];
  68858. case 5:
  68859. // finally
  68860. $async$handler = 2;
  68861. $async$self._async_evaluate$_importSpan = null;
  68862. // goto the next finally handler
  68863. $async$goto = $async$next.pop();
  68864. break;
  68865. case 6:
  68866. // after finally
  68867. case 1:
  68868. // return
  68869. return A._asyncReturn($async$returnValue, $async$completer);
  68870. case 2:
  68871. // rethrow
  68872. return A._asyncRethrow($async$currentError, $async$completer);
  68873. }
  68874. });
  68875. return A._asyncStartSync($async$_async_evaluate$_loadStylesheet$4$baseUrl$forImport, $async$completer);
  68876. },
  68877. _visitStaticImport$1($import) {
  68878. return this._visitStaticImport$body$_EvaluateVisitor($import);
  68879. },
  68880. _visitStaticImport$body$_EvaluateVisitor($import) {
  68881. var $async$goto = 0,
  68882. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  68883. $async$self = this, t1, t2, node, $async$temp1, $async$temp2;
  68884. var $async$_visitStaticImport$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68885. if ($async$errorCode === 1)
  68886. return A._asyncRethrow($async$result, $async$completer);
  68887. while (true)
  68888. switch ($async$goto) {
  68889. case 0:
  68890. // Function start
  68891. $async$goto = 2;
  68892. return A._asyncAwait($async$self._async_evaluate$_interpolationToValue$1($import.url), $async$_visitStaticImport$1);
  68893. case 2:
  68894. // returning from await.
  68895. t1 = $async$result;
  68896. t2 = A.NullableExtension_andThen($import.modifiers, $async$self.get$_async_evaluate$_interpolationToValue());
  68897. $async$temp1 = A;
  68898. $async$temp2 = t1;
  68899. $async$goto = 3;
  68900. return A._asyncAwait(type$.Future_nullable_CssValue_String._is(t2) ? t2 : A._Future$value(t2, type$.nullable_CssValue_String), $async$_visitStaticImport$1);
  68901. case 3:
  68902. // returning from await.
  68903. node = new $async$temp1.ModifiableCssImport($async$temp2, $async$result, $import.span);
  68904. if ($async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent") !== $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__root, "_root"))
  68905. $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent").addChild$1(node);
  68906. else if ($async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__endOfImports, "_endOfImports") === J.get$length$asx($async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__root, "_root").children._collection$_source)) {
  68907. $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__root, "_root").addChild$1(node);
  68908. $async$self._async_evaluate$__endOfImports = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__endOfImports, "_endOfImports") + 1;
  68909. } else {
  68910. t1 = $async$self._async_evaluate$_outOfOrderImports;
  68911. (t1 == null ? $async$self._async_evaluate$_outOfOrderImports = A._setArrayType([], type$.JSArray_ModifiableCssImport) : t1).push(node);
  68912. }
  68913. // implicit return
  68914. return A._asyncReturn(null, $async$completer);
  68915. }
  68916. });
  68917. return A._asyncStartSync($async$_visitStaticImport$1, $async$completer);
  68918. },
  68919. _async_evaluate$_applyMixin$5(mixin, contentCallable, $arguments, nodeWithSpan, nodeWithSpanWithoutContent) {
  68920. return this._applyMixin$body$_EvaluateVisitor(mixin, contentCallable, $arguments, nodeWithSpan, nodeWithSpanWithoutContent);
  68921. },
  68922. _applyMixin$body$_EvaluateVisitor(mixin, contentCallable, $arguments, nodeWithSpan, nodeWithSpanWithoutContent) {
  68923. var $async$goto = 0,
  68924. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  68925. $async$self = this, t1, _0_0, t2, _1_8;
  68926. var $async$_async_evaluate$_applyMixin$5 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  68927. if ($async$errorCode === 1)
  68928. return A._asyncRethrow($async$result, $async$completer);
  68929. while (true)
  68930. switch ($async$goto) {
  68931. case 0:
  68932. // Function start
  68933. if (mixin == null)
  68934. throw A.wrapException($async$self._async_evaluate$_exception$2("Undefined mixin.", nodeWithSpan.get$span(nodeWithSpan)));
  68935. t1 = type$.AsyncBuiltInCallable._is(mixin);
  68936. $async$goto = t1 && !mixin.get$acceptsContent() && contentCallable != null ? 3 : 4;
  68937. break;
  68938. case 3:
  68939. // then
  68940. $async$goto = 5;
  68941. return A._asyncAwait($async$self._async_evaluate$_evaluateArguments$1($arguments), $async$_async_evaluate$_applyMixin$5);
  68942. case 5:
  68943. // returning from await.
  68944. t1 = $async$result._values;
  68945. _0_0 = mixin.callbackFor$2(J.get$length$asx(t1[2]), new A.MapKeySet(t1[0], type$.MapKeySet_String));
  68946. throw A.wrapException(A.MultiSpanSassRuntimeException$("Mixin doesn't accept a content block.", nodeWithSpanWithoutContent.get$span(nodeWithSpanWithoutContent), "invocation", A.LinkedHashMap_LinkedHashMap$_literal([_0_0._0.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), $async$self._async_evaluate$_stackTrace$1(nodeWithSpanWithoutContent.get$span(nodeWithSpanWithoutContent)), null));
  68947. case 4:
  68948. // join
  68949. $async$goto = t1 ? 6 : 7;
  68950. break;
  68951. case 6:
  68952. // then
  68953. $async$goto = 8;
  68954. return A._asyncAwait($async$self._async_evaluate$_environment.withContent$2(contentCallable, new A._EvaluateVisitor__applyMixin_closure1($async$self, $arguments, mixin, nodeWithSpanWithoutContent)), $async$_async_evaluate$_applyMixin$5);
  68955. case 8:
  68956. // returning from await.
  68957. // goto break $label0$0
  68958. $async$goto = 2;
  68959. break;
  68960. case 7:
  68961. // join
  68962. t1 = type$.UserDefinedCallable_AsyncEnvironment._is(mixin);
  68963. t2 = false;
  68964. if (t1) {
  68965. _1_8 = mixin.declaration;
  68966. if (_1_8 instanceof A.MixinRule)
  68967. t2 = !type$.MixinRule._as(_1_8).get$hasContent() && contentCallable != null;
  68968. }
  68969. if (t2)
  68970. throw A.wrapException(A.MultiSpanSassRuntimeException$("Mixin doesn't accept a content block.", nodeWithSpanWithoutContent.get$span(nodeWithSpanWithoutContent), "invocation", A.LinkedHashMap_LinkedHashMap$_literal([mixin.declaration.$arguments.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), $async$self._async_evaluate$_stackTrace$1(nodeWithSpanWithoutContent.get$span(nodeWithSpanWithoutContent)), null));
  68971. $async$goto = t1 ? 9 : 10;
  68972. break;
  68973. case 9:
  68974. // then
  68975. $async$goto = 11;
  68976. return A._asyncAwait($async$self._async_evaluate$_runUserDefinedCallable$1$4($arguments, mixin, nodeWithSpanWithoutContent, new A._EvaluateVisitor__applyMixin_closure2($async$self, contentCallable, mixin, nodeWithSpanWithoutContent), type$.Null), $async$_async_evaluate$_applyMixin$5);
  68977. case 11:
  68978. // returning from await.
  68979. // goto break $label0$0
  68980. $async$goto = 2;
  68981. break;
  68982. case 10:
  68983. // join
  68984. throw A.wrapException(A.UnsupportedError$("Unknown callable type " + mixin.toString$0(0) + "."));
  68985. case 2:
  68986. // break $label0$0
  68987. // implicit return
  68988. return A._asyncReturn(null, $async$completer);
  68989. }
  68990. });
  68991. return A._asyncStartSync($async$_async_evaluate$_applyMixin$5, $async$completer);
  68992. },
  68993. visitIncludeRule$1(_, node) {
  68994. return this.visitIncludeRule$body$_EvaluateVisitor(0, node);
  68995. },
  68996. visitIncludeRule$body$_EvaluateVisitor(_, node) {
  68997. var $async$goto = 0,
  68998. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  68999. $async$returnValue, $async$self = this, mixin;
  69000. var $async$visitIncludeRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  69001. if ($async$errorCode === 1)
  69002. return A._asyncRethrow($async$result, $async$completer);
  69003. while (true)
  69004. switch ($async$goto) {
  69005. case 0:
  69006. // Function start
  69007. mixin = $async$self._async_evaluate$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitIncludeRule_closure2($async$self, node));
  69008. if (B.JSString_methods.startsWith$1(node.originalName, "--") && mixin instanceof A.UserDefinedCallable && !B.JSString_methods.startsWith$1(mixin.declaration.originalName, "--"))
  69009. $async$self._async_evaluate$_warn$3(string$.Sassx20_m, node.get$nameSpan(), B.Deprecation_0);
  69010. $async$goto = 3;
  69011. return A._asyncAwait($async$self._async_evaluate$_applyMixin$5(mixin, A.NullableExtension_andThen(node.content, new A._EvaluateVisitor_visitIncludeRule_closure3($async$self)), node.$arguments, node, new A._FakeAstNode(new A._EvaluateVisitor_visitIncludeRule_closure4(node))), $async$visitIncludeRule$1);
  69012. case 3:
  69013. // returning from await.
  69014. $async$returnValue = null;
  69015. // goto return
  69016. $async$goto = 1;
  69017. break;
  69018. case 1:
  69019. // return
  69020. return A._asyncReturn($async$returnValue, $async$completer);
  69021. }
  69022. });
  69023. return A._asyncStartSync($async$visitIncludeRule$1, $async$completer);
  69024. },
  69025. visitMixinRule$1(_, node) {
  69026. return this.visitMixinRule$body$_EvaluateVisitor(0, node);
  69027. },
  69028. visitMixinRule$body$_EvaluateVisitor(_, node) {
  69029. var $async$goto = 0,
  69030. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  69031. $async$returnValue, $async$self = this, t1, t2, t3, t4, index, t5;
  69032. var $async$visitMixinRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  69033. if ($async$errorCode === 1)
  69034. return A._asyncRethrow($async$result, $async$completer);
  69035. while (true)
  69036. switch ($async$goto) {
  69037. case 0:
  69038. // Function start
  69039. t1 = $async$self._async_evaluate$_environment;
  69040. t2 = t1.closure$0();
  69041. t3 = $async$self._async_evaluate$_inDependency;
  69042. t4 = t1._async_environment$_mixins;
  69043. index = t4.length - 1;
  69044. t5 = node.name;
  69045. t1._async_environment$_mixinIndices.$indexSet(0, t5, index);
  69046. J.$indexSet$ax(t4[index], t5, new A.UserDefinedCallable(node, t2, t3, type$.UserDefinedCallable_AsyncEnvironment));
  69047. $async$returnValue = null;
  69048. // goto return
  69049. $async$goto = 1;
  69050. break;
  69051. case 1:
  69052. // return
  69053. return A._asyncReturn($async$returnValue, $async$completer);
  69054. }
  69055. });
  69056. return A._asyncStartSync($async$visitMixinRule$1, $async$completer);
  69057. },
  69058. visitLoudComment$1(_, node) {
  69059. return this.visitLoudComment$body$_EvaluateVisitor(0, node);
  69060. },
  69061. visitLoudComment$body$_EvaluateVisitor(_, node) {
  69062. var $async$goto = 0,
  69063. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  69064. $async$returnValue, $async$self = this, t1, text;
  69065. var $async$visitLoudComment$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  69066. if ($async$errorCode === 1)
  69067. return A._asyncRethrow($async$result, $async$completer);
  69068. while (true)
  69069. switch ($async$goto) {
  69070. case 0:
  69071. // Function start
  69072. if ($async$self._async_evaluate$_inFunction) {
  69073. $async$returnValue = null;
  69074. // goto return
  69075. $async$goto = 1;
  69076. break;
  69077. }
  69078. if ($async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent") === $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__root, "_root") && $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__endOfImports, "_endOfImports") === J.get$length$asx($async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__root, "_root").children._collection$_source))
  69079. $async$self._async_evaluate$__endOfImports = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__endOfImports, "_endOfImports") + 1;
  69080. t1 = node.text;
  69081. $async$goto = 3;
  69082. return A._asyncAwait($async$self._async_evaluate$_performInterpolation$1(t1), $async$visitLoudComment$1);
  69083. case 3:
  69084. // returning from await.
  69085. text = $async$result;
  69086. if (!B.JSString_methods.endsWith$1(text, "*/"))
  69087. text += " */";
  69088. $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent").addChild$1(new A.ModifiableCssComment(text, t1.span));
  69089. $async$returnValue = null;
  69090. // goto return
  69091. $async$goto = 1;
  69092. break;
  69093. case 1:
  69094. // return
  69095. return A._asyncReturn($async$returnValue, $async$completer);
  69096. }
  69097. });
  69098. return A._asyncStartSync($async$visitLoudComment$1, $async$completer);
  69099. },
  69100. visitMediaRule$1(_, node) {
  69101. return this.visitMediaRule$body$_EvaluateVisitor(0, node);
  69102. },
  69103. visitMediaRule$body$_EvaluateVisitor(_, node) {
  69104. var $async$goto = 0,
  69105. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  69106. $async$returnValue, $async$self = this, queries, mergedQueries, t1, mergedSources, t2, t3;
  69107. var $async$visitMediaRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  69108. if ($async$errorCode === 1)
  69109. return A._asyncRethrow($async$result, $async$completer);
  69110. while (true)
  69111. switch ($async$goto) {
  69112. case 0:
  69113. // Function start
  69114. if ($async$self._async_evaluate$_declarationName != null)
  69115. throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Media_, node.span));
  69116. $async$goto = 3;
  69117. return A._asyncAwait($async$self._visitMediaQueries$1(node.query), $async$visitMediaRule$1);
  69118. case 3:
  69119. // returning from await.
  69120. queries = $async$result;
  69121. mergedQueries = A.NullableExtension_andThen($async$self._async_evaluate$_mediaQueries, new A._EvaluateVisitor_visitMediaRule_closure2($async$self, queries));
  69122. t1 = mergedQueries == null;
  69123. if (!t1 && J.get$isEmpty$asx(mergedQueries)) {
  69124. $async$returnValue = null;
  69125. // goto return
  69126. $async$goto = 1;
  69127. break;
  69128. }
  69129. if (t1)
  69130. mergedSources = B.Set_empty1;
  69131. else {
  69132. t2 = $async$self._async_evaluate$_mediaQuerySources;
  69133. t2.toString;
  69134. t2 = A.LinkedHashSet_LinkedHashSet$of(t2, type$.CssMediaQuery);
  69135. t3 = $async$self._async_evaluate$_mediaQueries;
  69136. t3.toString;
  69137. t2.addAll$1(0, t3);
  69138. t2.addAll$1(0, queries);
  69139. mergedSources = t2;
  69140. }
  69141. t1 = t1 ? queries : mergedQueries;
  69142. $async$goto = 4;
  69143. return A._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(A.ModifiableCssMediaRule$(t1, node.span), new A._EvaluateVisitor_visitMediaRule_closure3($async$self, mergedQueries, queries, mergedSources, node), node.hasDeclarations, new A._EvaluateVisitor_visitMediaRule_closure4(mergedSources), type$.ModifiableCssMediaRule, type$.Null), $async$visitMediaRule$1);
  69144. case 4:
  69145. // returning from await.
  69146. $async$returnValue = null;
  69147. // goto return
  69148. $async$goto = 1;
  69149. break;
  69150. case 1:
  69151. // return
  69152. return A._asyncReturn($async$returnValue, $async$completer);
  69153. }
  69154. });
  69155. return A._asyncStartSync($async$visitMediaRule$1, $async$completer);
  69156. },
  69157. _visitMediaQueries$1(interpolation) {
  69158. return this._visitMediaQueries$body$_EvaluateVisitor(interpolation);
  69159. },
  69160. _visitMediaQueries$body$_EvaluateVisitor(interpolation) {
  69161. var $async$goto = 0,
  69162. $async$completer = A._makeAsyncAwaitCompleter(type$.List_CssMediaQuery),
  69163. $async$returnValue, $async$self = this, _0_0, resolved, map;
  69164. var $async$_visitMediaQueries$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  69165. if ($async$errorCode === 1)
  69166. return A._asyncRethrow($async$result, $async$completer);
  69167. while (true)
  69168. switch ($async$goto) {
  69169. case 0:
  69170. // Function start
  69171. $async$goto = 3;
  69172. return A._asyncAwait($async$self._async_evaluate$_performInterpolationWithMap$2$warnForColor(interpolation, true), $async$_visitMediaQueries$1);
  69173. case 3:
  69174. // returning from await.
  69175. _0_0 = $async$result;
  69176. resolved = _0_0._0;
  69177. map = _0_0._1;
  69178. $async$returnValue = new A.MediaQueryParser(A.SpanScanner$(resolved, null), map).parse$0(0);
  69179. // goto return
  69180. $async$goto = 1;
  69181. break;
  69182. case 1:
  69183. // return
  69184. return A._asyncReturn($async$returnValue, $async$completer);
  69185. }
  69186. });
  69187. return A._asyncStartSync($async$_visitMediaQueries$1, $async$completer);
  69188. },
  69189. _async_evaluate$_mergeMediaQueries$2(queries1, queries2) {
  69190. var t1, t2, t3, t4, _0_0, t5, result,
  69191. queries = A._setArrayType([], type$.JSArray_CssMediaQuery);
  69192. for (t1 = J.get$iterator$ax(queries1), t2 = J.getInterceptor$ax(queries2); t1.moveNext$0();) {
  69193. t3 = t1.get$current(t1);
  69194. for (t4 = t2.get$iterator(queries2); t4.moveNext$0();)
  69195. $label0$1: {
  69196. _0_0 = t3.merge$1(t4.get$current(t4));
  69197. if (B._SingletonCssMediaQueryMergeResult_0 === _0_0)
  69198. continue;
  69199. if (B._SingletonCssMediaQueryMergeResult_1 === _0_0)
  69200. return null;
  69201. t5 = _0_0 instanceof A.MediaQuerySuccessfulMergeResult;
  69202. result = t5 ? _0_0 : null;
  69203. if (t5)
  69204. queries.push(result.query);
  69205. break $label0$1;
  69206. }
  69207. }
  69208. return queries;
  69209. },
  69210. visitReturnRule$1(_, node) {
  69211. return this.visitReturnRule$body$_EvaluateVisitor(0, node);
  69212. },
  69213. visitReturnRule$body$_EvaluateVisitor(_, node) {
  69214. var $async$goto = 0,
  69215. $async$completer = A._makeAsyncAwaitCompleter(type$.Value),
  69216. $async$returnValue, $async$self = this, t1, t2;
  69217. var $async$visitReturnRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  69218. if ($async$errorCode === 1)
  69219. return A._asyncRethrow($async$result, $async$completer);
  69220. while (true)
  69221. switch ($async$goto) {
  69222. case 0:
  69223. // Function start
  69224. t1 = node.expression;
  69225. t2 = t1.accept$1($async$self);
  69226. $async$goto = 3;
  69227. return A._asyncAwait(type$.Future_Value._is(t2) ? t2 : A._Future$value(t2, type$.Value), $async$visitReturnRule$1);
  69228. case 3:
  69229. // returning from await.
  69230. $async$returnValue = $async$self._async_evaluate$_withoutSlash$2($async$result, t1);
  69231. // goto return
  69232. $async$goto = 1;
  69233. break;
  69234. case 1:
  69235. // return
  69236. return A._asyncReturn($async$returnValue, $async$completer);
  69237. }
  69238. });
  69239. return A._asyncStartSync($async$visitReturnRule$1, $async$completer);
  69240. },
  69241. visitSilentComment$1(_, node) {
  69242. return this.visitSilentComment$body$_EvaluateVisitor(0, node);
  69243. },
  69244. visitSilentComment$body$_EvaluateVisitor(_, node) {
  69245. var $async$goto = 0,
  69246. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  69247. $async$returnValue;
  69248. var $async$visitSilentComment$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  69249. if ($async$errorCode === 1)
  69250. return A._asyncRethrow($async$result, $async$completer);
  69251. while (true)
  69252. switch ($async$goto) {
  69253. case 0:
  69254. // Function start
  69255. $async$returnValue = null;
  69256. // goto return
  69257. $async$goto = 1;
  69258. break;
  69259. case 1:
  69260. // return
  69261. return A._asyncReturn($async$returnValue, $async$completer);
  69262. }
  69263. });
  69264. return A._asyncStartSync($async$visitSilentComment$1, $async$completer);
  69265. },
  69266. visitStyleRule$1(_, node) {
  69267. return this.visitStyleRule$body$_EvaluateVisitor(0, node);
  69268. },
  69269. visitStyleRule$body$_EvaluateVisitor(_, node) {
  69270. var $async$goto = 0,
  69271. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  69272. $async$returnValue, $async$self = this, t1, _0_0, selectorText, selectorMap, parsedSelector, nest, t2, _i, _1_0, first, t3, rule, oldAtRootExcludingStyleRule;
  69273. var $async$visitStyleRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  69274. if ($async$errorCode === 1)
  69275. return A._asyncRethrow($async$result, $async$completer);
  69276. while (true)
  69277. switch ($async$goto) {
  69278. case 0:
  69279. // Function start
  69280. if ($async$self._async_evaluate$_declarationName != null)
  69281. throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Style_n, node.span));
  69282. else if ($async$self._async_evaluate$_inKeyframes && $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent") instanceof A.ModifiableCssKeyframeBlock)
  69283. throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Style_k, node.span));
  69284. t1 = node.selector;
  69285. $async$goto = 3;
  69286. return A._asyncAwait($async$self._async_evaluate$_performInterpolationWithMap$2$warnForColor(t1, true), $async$visitStyleRule$1);
  69287. case 3:
  69288. // returning from await.
  69289. _0_0 = $async$result;
  69290. selectorText = _0_0._0;
  69291. selectorMap = _0_0._1;
  69292. $async$goto = $async$self._async_evaluate$_inKeyframes ? 4 : 5;
  69293. break;
  69294. case 4:
  69295. // then
  69296. $async$goto = 6;
  69297. return A._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(A.ModifiableCssKeyframeBlock$(new A.CssValue(A.List_List$unmodifiable(new A.KeyframeSelectorParser(A.SpanScanner$(selectorText, null), selectorMap).parse$0(0), type$.String), t1.span, type$.CssValue_List_String), node.span), new A._EvaluateVisitor_visitStyleRule_closure3($async$self, node), node.hasDeclarations, new A._EvaluateVisitor_visitStyleRule_closure4(), type$.ModifiableCssKeyframeBlock, type$.Null), $async$visitStyleRule$1);
  69298. case 6:
  69299. // returning from await.
  69300. $async$returnValue = null;
  69301. // goto return
  69302. $async$goto = 1;
  69303. break;
  69304. case 5:
  69305. // join
  69306. parsedSelector = A.SelectorList_SelectorList$parse(selectorText, true, selectorMap, $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__stylesheet, "_stylesheet").plainCss);
  69307. t1 = $async$self._async_evaluate$_atRootExcludingStyleRule ? null : $async$self._async_evaluate$_styleRuleIgnoringAtRoot;
  69308. t1 = t1 == null ? null : t1.fromPlainCss;
  69309. nest = t1 !== true;
  69310. if (nest) {
  69311. if ($async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__stylesheet, "_stylesheet").plainCss)
  69312. for (t1 = parsedSelector.components, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  69313. _1_0 = t1[_i].leadingCombinators;
  69314. if (_1_0.length >= 1) {
  69315. first = _1_0[0];
  69316. t3 = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__stylesheet, "_stylesheet");
  69317. t3 = t3.plainCss;
  69318. } else {
  69319. first = null;
  69320. t3 = false;
  69321. }
  69322. if (t3)
  69323. throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Top_lel, first.span));
  69324. }
  69325. t1 = $async$self._async_evaluate$_styleRuleIgnoringAtRoot;
  69326. t1 = t1 == null ? null : t1.originalSelector;
  69327. parsedSelector = parsedSelector.nestWithin$3$implicitParent$preserveParentSelectors(t1, !$async$self._async_evaluate$_atRootExcludingStyleRule, $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__stylesheet, "_stylesheet").plainCss);
  69328. }
  69329. rule = A.ModifiableCssStyleRule$($async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__extensionStore, "_extensionStore").addSelector$2(parsedSelector, $async$self._async_evaluate$_mediaQueries), node.span, $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__stylesheet, "_stylesheet").plainCss, parsedSelector);
  69330. oldAtRootExcludingStyleRule = $async$self._async_evaluate$_atRootExcludingStyleRule;
  69331. t1 = $async$self._async_evaluate$_atRootExcludingStyleRule = false;
  69332. t2 = nest ? new A._EvaluateVisitor_visitStyleRule_closure5() : null;
  69333. $async$goto = 7;
  69334. return A._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(rule, new A._EvaluateVisitor_visitStyleRule_closure6($async$self, rule, node), node.hasDeclarations, t2, type$.ModifiableCssStyleRule, type$.Null), $async$visitStyleRule$1);
  69335. case 7:
  69336. // returning from await.
  69337. $async$self._async_evaluate$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  69338. $async$self._async_evaluate$_warnForBogusCombinators$1(rule);
  69339. if (($async$self._async_evaluate$_atRootExcludingStyleRule ? null : $async$self._async_evaluate$_styleRuleIgnoringAtRoot) == null) {
  69340. t1 = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent").children;
  69341. t1 = !t1.get$isEmpty(t1);
  69342. }
  69343. if (t1) {
  69344. t1 = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent").children;
  69345. t1.get$last(t1).isGroupEnd = true;
  69346. }
  69347. $async$returnValue = null;
  69348. // goto return
  69349. $async$goto = 1;
  69350. break;
  69351. case 1:
  69352. // return
  69353. return A._asyncReturn($async$returnValue, $async$completer);
  69354. }
  69355. });
  69356. return A._asyncStartSync($async$visitStyleRule$1, $async$completer);
  69357. },
  69358. _async_evaluate$_warnForBogusCombinators$1(rule) {
  69359. var t1, t2, t3, t4, t5, _i, complex, visitor, t6, t7, t8, t9, _this = this, _null = null;
  69360. if (!rule.accept$1(B._IsInvisibleVisitor_false_false))
  69361. for (t1 = rule._style_rule$_selector._box$_inner.value.components, t2 = t1.length, t3 = type$.SourceSpan, t4 = type$.String, t5 = rule.children, _i = 0; _i < t2; ++_i) {
  69362. complex = t1[_i];
  69363. if (!complex.accept$1(B._IsBogusVisitor_true))
  69364. continue;
  69365. if (complex.accept$1(B.C__IsUselessVisitor)) {
  69366. visitor = A._SerializeVisitor$(_null, true, _null, _null, true, false, _null, true);
  69367. complex.accept$1(visitor);
  69368. _this._async_evaluate$_warn$3('The selector "' + B.JSString_methods.trim$0(visitor._serialize$_buffer.toString$0(0)) + string$.x22x20is_ix20, A.SpanExtensions_trimRight(complex.span), B.Deprecation_C9i);
  69369. } else if (complex.leadingCombinators.length !== 0) {
  69370. if (!_this._async_evaluate$_assertInModule$2(_this._async_evaluate$__stylesheet, "_stylesheet").plainCss) {
  69371. visitor = A._SerializeVisitor$(_null, true, _null, _null, true, false, _null, true);
  69372. complex.accept$1(visitor);
  69373. _this._async_evaluate$_warn$3('The selector "' + B.JSString_methods.trim$0(visitor._serialize$_buffer.toString$0(0)) + string$.x22x20is_ix0a, A.SpanExtensions_trimRight(complex.span), B.Deprecation_C9i);
  69374. }
  69375. } else {
  69376. visitor = A._SerializeVisitor$(_null, true, _null, _null, true, false, _null, true);
  69377. complex.accept$1(visitor);
  69378. t6 = B.JSString_methods.trim$0(visitor._serialize$_buffer.toString$0(0));
  69379. t7 = complex.accept$1(B._IsBogusVisitor_false) ? string$.x20It_wi : "";
  69380. t8 = A.SpanExtensions_trimRight(complex.span);
  69381. if (t5.get$length(0) === 0)
  69382. A.throwExpression(A.IterableElementError_noElement());
  69383. t9 = J.get$span$z(t5.$index(0, 0));
  69384. _this._async_evaluate$_warn$3('The selector "' + t6 + string$.x22x20is_o + t7 + string$.x0aThis_, new A.MultiSpan(t8, "invalid selector", A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_literal([t9, "this is not a style rule" + (t5.every$1(t5, new A._EvaluateVisitor__warnForBogusCombinators_closure0()) ? "\n(try converting to a //-style comment)" : "")], t3, t4), t3, t4)), B.Deprecation_C9i);
  69385. }
  69386. }
  69387. },
  69388. visitSupportsRule$1(_, node) {
  69389. return this.visitSupportsRule$body$_EvaluateVisitor(0, node);
  69390. },
  69391. visitSupportsRule$body$_EvaluateVisitor(_, node) {
  69392. var $async$goto = 0,
  69393. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  69394. $async$returnValue, $async$self = this, t1, $async$temp1, $async$temp2;
  69395. var $async$visitSupportsRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  69396. if ($async$errorCode === 1)
  69397. return A._asyncRethrow($async$result, $async$completer);
  69398. while (true)
  69399. switch ($async$goto) {
  69400. case 0:
  69401. // Function start
  69402. if ($async$self._async_evaluate$_declarationName != null)
  69403. throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Suppor, node.span));
  69404. t1 = node.condition;
  69405. $async$temp1 = A;
  69406. $async$temp2 = A;
  69407. $async$goto = 4;
  69408. return A._asyncAwait($async$self._async_evaluate$_visitSupportsCondition$1(t1), $async$visitSupportsRule$1);
  69409. case 4:
  69410. // returning from await.
  69411. $async$goto = 3;
  69412. return A._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through($async$temp1.ModifiableCssSupportsRule$(new $async$temp2.CssValue($async$result, t1.get$span(t1), type$.CssValue_String), node.span), new A._EvaluateVisitor_visitSupportsRule_closure1($async$self, node), node.hasDeclarations, new A._EvaluateVisitor_visitSupportsRule_closure2(), type$.ModifiableCssSupportsRule, type$.Null), $async$visitSupportsRule$1);
  69413. case 3:
  69414. // returning from await.
  69415. $async$returnValue = null;
  69416. // goto return
  69417. $async$goto = 1;
  69418. break;
  69419. case 1:
  69420. // return
  69421. return A._asyncReturn($async$returnValue, $async$completer);
  69422. }
  69423. });
  69424. return A._asyncStartSync($async$visitSupportsRule$1, $async$completer);
  69425. },
  69426. _async_evaluate$_visitSupportsCondition$1(condition) {
  69427. return this._visitSupportsCondition$body$_EvaluateVisitor(condition);
  69428. },
  69429. _visitSupportsCondition$body$_EvaluateVisitor(condition) {
  69430. var $async$goto = 0,
  69431. $async$completer = A._makeAsyncAwaitCompleter(type$.String),
  69432. $async$returnValue, $async$self = this, t1, _box_0, $async$temp1, $async$temp2;
  69433. var $async$_async_evaluate$_visitSupportsCondition$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  69434. if ($async$errorCode === 1)
  69435. return A._asyncRethrow($async$result, $async$completer);
  69436. while (true)
  69437. switch ($async$goto) {
  69438. case 0:
  69439. // Function start
  69440. _box_0 = {};
  69441. $async$goto = condition instanceof A.SupportsOperation ? 4 : 5;
  69442. break;
  69443. case 4:
  69444. // then
  69445. t1 = condition.operator;
  69446. $async$temp1 = A;
  69447. $async$goto = 6;
  69448. return A._asyncAwait($async$self._async_evaluate$_parenthesize$2(condition.left, t1), $async$_async_evaluate$_visitSupportsCondition$1);
  69449. case 6:
  69450. // returning from await.
  69451. $async$temp1 = $async$temp1.S($async$result) + " " + t1 + " ";
  69452. $async$temp2 = A;
  69453. $async$goto = 7;
  69454. return A._asyncAwait($async$self._async_evaluate$_parenthesize$2(condition.right, t1), $async$_async_evaluate$_visitSupportsCondition$1);
  69455. case 7:
  69456. // returning from await.
  69457. t1 = $async$temp1 + $async$temp2.S($async$result);
  69458. // goto break $label0$0
  69459. $async$goto = 3;
  69460. break;
  69461. case 5:
  69462. // join
  69463. $async$goto = condition instanceof A.SupportsNegation ? 8 : 9;
  69464. break;
  69465. case 8:
  69466. // then
  69467. $async$temp1 = A;
  69468. $async$goto = 10;
  69469. return A._asyncAwait($async$self._async_evaluate$_parenthesize$1(condition.condition), $async$_async_evaluate$_visitSupportsCondition$1);
  69470. case 10:
  69471. // returning from await.
  69472. t1 = "not " + $async$temp1.S($async$result);
  69473. // goto break $label0$0
  69474. $async$goto = 3;
  69475. break;
  69476. case 9:
  69477. // join
  69478. $async$goto = condition instanceof A.SupportsInterpolation ? 11 : 12;
  69479. break;
  69480. case 11:
  69481. // then
  69482. $async$goto = 13;
  69483. return A._asyncAwait($async$self._evaluateToCss$2$quote(condition.expression, false), $async$_async_evaluate$_visitSupportsCondition$1);
  69484. case 13:
  69485. // returning from await.
  69486. t1 = $async$result;
  69487. // goto break $label0$0
  69488. $async$goto = 3;
  69489. break;
  69490. case 12:
  69491. // join
  69492. _box_0.declaration = null;
  69493. $async$goto = condition instanceof A.SupportsDeclaration ? 14 : 15;
  69494. break;
  69495. case 14:
  69496. // then
  69497. _box_0.declaration = condition;
  69498. $async$goto = 16;
  69499. return A._asyncAwait($async$self._async_evaluate$_withSupportsDeclaration$1$1(new A._EvaluateVisitor__visitSupportsCondition_closure0(_box_0, $async$self), type$.String), $async$_async_evaluate$_visitSupportsCondition$1);
  69500. case 16:
  69501. // returning from await.
  69502. t1 = $async$result;
  69503. // goto break $label0$0
  69504. $async$goto = 3;
  69505. break;
  69506. case 15:
  69507. // join
  69508. $async$goto = condition instanceof A.SupportsFunction ? 17 : 18;
  69509. break;
  69510. case 17:
  69511. // then
  69512. $async$temp1 = A;
  69513. $async$goto = 19;
  69514. return A._asyncAwait($async$self._async_evaluate$_performInterpolation$1(condition.name), $async$_async_evaluate$_visitSupportsCondition$1);
  69515. case 19:
  69516. // returning from await.
  69517. $async$temp1 = $async$temp1.S($async$result) + "(";
  69518. $async$temp2 = A;
  69519. $async$goto = 20;
  69520. return A._asyncAwait($async$self._async_evaluate$_performInterpolation$1(condition.$arguments), $async$_async_evaluate$_visitSupportsCondition$1);
  69521. case 20:
  69522. // returning from await.
  69523. t1 = $async$temp1 + $async$temp2.S($async$result) + ")";
  69524. // goto break $label0$0
  69525. $async$goto = 3;
  69526. break;
  69527. case 18:
  69528. // join
  69529. $async$goto = condition instanceof A.SupportsAnything ? 21 : 22;
  69530. break;
  69531. case 21:
  69532. // then
  69533. $async$temp1 = A;
  69534. $async$goto = 23;
  69535. return A._asyncAwait($async$self._async_evaluate$_performInterpolation$1(condition.contents), $async$_async_evaluate$_visitSupportsCondition$1);
  69536. case 23:
  69537. // returning from await.
  69538. t1 = "(" + $async$temp1.S($async$result) + ")";
  69539. // goto break $label0$0
  69540. $async$goto = 3;
  69541. break;
  69542. case 22:
  69543. // join
  69544. t1 = A.throwExpression(A.ArgumentError$("Unknown supports condition type " + A.getRuntimeTypeOfDartObject(condition).toString$0(0) + ".", null));
  69545. case 3:
  69546. // break $label0$0
  69547. $async$returnValue = t1;
  69548. // goto return
  69549. $async$goto = 1;
  69550. break;
  69551. case 1:
  69552. // return
  69553. return A._asyncReturn($async$returnValue, $async$completer);
  69554. }
  69555. });
  69556. return A._asyncStartSync($async$_async_evaluate$_visitSupportsCondition$1, $async$completer);
  69557. },
  69558. _async_evaluate$_withSupportsDeclaration$1$1(callback, $T) {
  69559. return this._withSupportsDeclaration$body$_EvaluateVisitor(callback, $T, $T);
  69560. },
  69561. _withSupportsDeclaration$body$_EvaluateVisitor(callback, $T, $async$type) {
  69562. var $async$goto = 0,
  69563. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  69564. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, t1, oldInSupportsDeclaration;
  69565. var $async$_async_evaluate$_withSupportsDeclaration$1$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  69566. if ($async$errorCode === 1) {
  69567. $async$currentError = $async$result;
  69568. $async$goto = $async$handler;
  69569. }
  69570. while (true)
  69571. switch ($async$goto) {
  69572. case 0:
  69573. // Function start
  69574. oldInSupportsDeclaration = $async$self._async_evaluate$_inSupportsDeclaration;
  69575. $async$self._async_evaluate$_inSupportsDeclaration = true;
  69576. $async$handler = 3;
  69577. t1 = callback.call$0();
  69578. $async$goto = 6;
  69579. return A._asyncAwait($T._eval$1("Future<0>")._is(t1) ? t1 : A._Future$value(t1, $T), $async$_async_evaluate$_withSupportsDeclaration$1$1);
  69580. case 6:
  69581. // returning from await.
  69582. t1 = $async$result;
  69583. $async$returnValue = t1;
  69584. $async$next = [1];
  69585. // goto finally
  69586. $async$goto = 4;
  69587. break;
  69588. $async$next.push(5);
  69589. // goto finally
  69590. $async$goto = 4;
  69591. break;
  69592. case 3:
  69593. // uncaught
  69594. $async$next = [2];
  69595. case 4:
  69596. // finally
  69597. $async$handler = 2;
  69598. $async$self._async_evaluate$_inSupportsDeclaration = oldInSupportsDeclaration;
  69599. // goto the next finally handler
  69600. $async$goto = $async$next.pop();
  69601. break;
  69602. case 5:
  69603. // after finally
  69604. case 1:
  69605. // return
  69606. return A._asyncReturn($async$returnValue, $async$completer);
  69607. case 2:
  69608. // rethrow
  69609. return A._asyncRethrow($async$currentError, $async$completer);
  69610. }
  69611. });
  69612. return A._asyncStartSync($async$_async_evaluate$_withSupportsDeclaration$1$1, $async$completer);
  69613. },
  69614. _async_evaluate$_parenthesize$2(condition, operator) {
  69615. return this._parenthesize$body$_EvaluateVisitor(condition, operator);
  69616. },
  69617. _async_evaluate$_parenthesize$1(condition) {
  69618. return this._async_evaluate$_parenthesize$2(condition, null);
  69619. },
  69620. _parenthesize$body$_EvaluateVisitor(condition, operator) {
  69621. var $async$goto = 0,
  69622. $async$completer = A._makeAsyncAwaitCompleter(type$.String),
  69623. $async$returnValue, $async$self = this, t1, $async$temp1;
  69624. var $async$_async_evaluate$_parenthesize$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  69625. if ($async$errorCode === 1)
  69626. return A._asyncRethrow($async$result, $async$completer);
  69627. while (true)
  69628. switch ($async$goto) {
  69629. case 0:
  69630. // Function start
  69631. if (!(condition instanceof A.SupportsNegation))
  69632. if (condition instanceof A.SupportsOperation)
  69633. t1 = operator == null || operator !== condition.operator;
  69634. else
  69635. t1 = false;
  69636. else
  69637. t1 = true;
  69638. $async$goto = t1 ? 3 : 4;
  69639. break;
  69640. case 3:
  69641. // then
  69642. $async$temp1 = A;
  69643. $async$goto = 5;
  69644. return A._asyncAwait($async$self._async_evaluate$_visitSupportsCondition$1(condition), $async$_async_evaluate$_parenthesize$2);
  69645. case 5:
  69646. // returning from await.
  69647. $async$returnValue = "(" + $async$temp1.S($async$result) + ")";
  69648. // goto return
  69649. $async$goto = 1;
  69650. break;
  69651. case 4:
  69652. // join
  69653. $async$goto = 6;
  69654. return A._asyncAwait($async$self._async_evaluate$_visitSupportsCondition$1(condition), $async$_async_evaluate$_parenthesize$2);
  69655. case 6:
  69656. // returning from await.
  69657. $async$returnValue = $async$result;
  69658. // goto return
  69659. $async$goto = 1;
  69660. break;
  69661. case 1:
  69662. // return
  69663. return A._asyncReturn($async$returnValue, $async$completer);
  69664. }
  69665. });
  69666. return A._asyncStartSync($async$_async_evaluate$_parenthesize$2, $async$completer);
  69667. },
  69668. visitVariableDeclaration$1(_, node) {
  69669. return this.visitVariableDeclaration$body$_EvaluateVisitor(0, node);
  69670. },
  69671. visitVariableDeclaration$body$_EvaluateVisitor(_, node) {
  69672. var $async$goto = 0,
  69673. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  69674. $async$returnValue, $async$self = this, t2, value, t1, $async$temp1, $async$temp2, $async$temp3;
  69675. var $async$visitVariableDeclaration$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  69676. if ($async$errorCode === 1)
  69677. return A._asyncRethrow($async$result, $async$completer);
  69678. while (true)
  69679. switch ($async$goto) {
  69680. case 0:
  69681. // Function start
  69682. t1 = {};
  69683. if (node.isGuarded) {
  69684. if (node.namespace == null && $async$self._async_evaluate$_environment._async_environment$_variables.length === 1) {
  69685. t2 = $async$self._async_evaluate$_configuration._configuration$_values;
  69686. t2 = t2.get$isEmpty(t2) ? null : t2.remove$1(0, node.name);
  69687. t1.override = null;
  69688. if (t2 != null) {
  69689. t1.override = t2;
  69690. t2 = !t2.value.$eq(0, B.C__SassNull);
  69691. } else
  69692. t2 = false;
  69693. if (t2) {
  69694. $async$self._async_evaluate$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableDeclaration_closure2(t1, $async$self, node));
  69695. $async$returnValue = null;
  69696. // goto return
  69697. $async$goto = 1;
  69698. break;
  69699. }
  69700. }
  69701. value = $async$self._async_evaluate$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableDeclaration_closure3($async$self, node));
  69702. if (value != null && !value.$eq(0, B.C__SassNull)) {
  69703. $async$returnValue = null;
  69704. // goto return
  69705. $async$goto = 1;
  69706. break;
  69707. }
  69708. }
  69709. if (node.isGlobal && !$async$self._async_evaluate$_environment.globalVariableExists$1(node.name)) {
  69710. t1 = $async$self._async_evaluate$_environment._async_environment$_variables.length === 1 ? string$.As_of_S : string$.As_of_R + A.declarationName(node.span) + ": null` at the stylesheet root.";
  69711. $async$self._async_evaluate$_warn$3(t1, node.span, B.Deprecation_KIf);
  69712. }
  69713. t1 = node.expression;
  69714. t2 = t1.accept$1($async$self);
  69715. $async$temp1 = node;
  69716. $async$temp2 = A;
  69717. $async$temp3 = node;
  69718. $async$goto = 3;
  69719. return A._asyncAwait(type$.Future_Value._is(t2) ? t2 : A._Future$value(t2, type$.Value), $async$visitVariableDeclaration$1);
  69720. case 3:
  69721. // returning from await.
  69722. $async$self._async_evaluate$_addExceptionSpan$2($async$temp1, new $async$temp2._EvaluateVisitor_visitVariableDeclaration_closure4($async$self, $async$temp3, $async$self._async_evaluate$_withoutSlash$2($async$result, t1)));
  69723. $async$returnValue = null;
  69724. // goto return
  69725. $async$goto = 1;
  69726. break;
  69727. case 1:
  69728. // return
  69729. return A._asyncReturn($async$returnValue, $async$completer);
  69730. }
  69731. });
  69732. return A._asyncStartSync($async$visitVariableDeclaration$1, $async$completer);
  69733. },
  69734. visitUseRule$1(_, node) {
  69735. return this.visitUseRule$body$_EvaluateVisitor(0, node);
  69736. },
  69737. visitUseRule$body$_EvaluateVisitor(_, node) {
  69738. var $async$goto = 0,
  69739. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  69740. $async$returnValue, $async$self = this, values, t3, t4, _i, variable, t5, variableNodeWithSpan, t6, t7, configuration, t1, t2, $async$temp1, $async$temp2, $async$temp3;
  69741. var $async$visitUseRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  69742. if ($async$errorCode === 1)
  69743. return A._asyncRethrow($async$result, $async$completer);
  69744. while (true)
  69745. switch ($async$goto) {
  69746. case 0:
  69747. // Function start
  69748. t1 = node.configuration;
  69749. t2 = t1.length;
  69750. $async$goto = t2 !== 0 ? 3 : 5;
  69751. break;
  69752. case 3:
  69753. // then
  69754. values = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue);
  69755. t3 = type$._Future_Value, t4 = type$.Future_Value, _i = 0;
  69756. case 6:
  69757. // for condition
  69758. if (!(_i < t2)) {
  69759. // goto after for
  69760. $async$goto = 8;
  69761. break;
  69762. }
  69763. variable = t1[_i];
  69764. t5 = variable.expression;
  69765. variableNodeWithSpan = $async$self._async_evaluate$_expressionNode$1(t5);
  69766. t6 = variable.name;
  69767. t5 = t5.accept$1($async$self);
  69768. if (!t4._is(t5)) {
  69769. t7 = new A._Future($.Zone__current, t3);
  69770. t7._state = 8;
  69771. t7._resultOrListeners = t5;
  69772. t5 = t7;
  69773. }
  69774. $async$temp1 = values;
  69775. $async$temp2 = t6;
  69776. $async$temp3 = A;
  69777. $async$goto = 9;
  69778. return A._asyncAwait(t5, $async$visitUseRule$1);
  69779. case 9:
  69780. // returning from await.
  69781. $async$temp1.$indexSet(0, $async$temp2, new $async$temp3.ConfiguredValue($async$self._async_evaluate$_withoutSlash$2($async$result, variableNodeWithSpan), variable.span, variableNodeWithSpan));
  69782. case 7:
  69783. // for update
  69784. ++_i;
  69785. // goto for condition
  69786. $async$goto = 6;
  69787. break;
  69788. case 8:
  69789. // after for
  69790. configuration = new A.ExplicitConfiguration(node, values, null);
  69791. // goto join
  69792. $async$goto = 4;
  69793. break;
  69794. case 5:
  69795. // else
  69796. configuration = B.Configuration_Map_empty_null;
  69797. case 4:
  69798. // join
  69799. $async$goto = 10;
  69800. return A._asyncAwait($async$self._async_evaluate$_loadModule$5$configuration(node.url, "@use", node, new A._EvaluateVisitor_visitUseRule_closure0($async$self, node), configuration), $async$visitUseRule$1);
  69801. case 10:
  69802. // returning from await.
  69803. $async$self._async_evaluate$_assertConfigurationIsEmpty$1(configuration);
  69804. $async$returnValue = null;
  69805. // goto return
  69806. $async$goto = 1;
  69807. break;
  69808. case 1:
  69809. // return
  69810. return A._asyncReturn($async$returnValue, $async$completer);
  69811. }
  69812. });
  69813. return A._asyncStartSync($async$visitUseRule$1, $async$completer);
  69814. },
  69815. visitWarnRule$1(_, node) {
  69816. return this.visitWarnRule$body$_EvaluateVisitor(0, node);
  69817. },
  69818. visitWarnRule$body$_EvaluateVisitor(_, node) {
  69819. var $async$goto = 0,
  69820. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  69821. $async$returnValue, $async$self = this, value, t1;
  69822. var $async$visitWarnRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  69823. if ($async$errorCode === 1)
  69824. return A._asyncRethrow($async$result, $async$completer);
  69825. while (true)
  69826. switch ($async$goto) {
  69827. case 0:
  69828. // Function start
  69829. $async$goto = 3;
  69830. return A._asyncAwait($async$self._addExceptionSpanAsync$1$2(node, new A._EvaluateVisitor_visitWarnRule_closure0($async$self, node), type$.Value), $async$visitWarnRule$1);
  69831. case 3:
  69832. // returning from await.
  69833. value = $async$result;
  69834. t1 = value instanceof A.SassString ? value._string$_text : $async$self._async_evaluate$_serialize$2(value, node.expression);
  69835. $async$self._async_evaluate$_logger.warn$2$trace(0, t1, $async$self._async_evaluate$_stackTrace$1(node.span));
  69836. $async$returnValue = null;
  69837. // goto return
  69838. $async$goto = 1;
  69839. break;
  69840. case 1:
  69841. // return
  69842. return A._asyncReturn($async$returnValue, $async$completer);
  69843. }
  69844. });
  69845. return A._asyncStartSync($async$visitWarnRule$1, $async$completer);
  69846. },
  69847. visitWhileRule$1(_, node) {
  69848. return this._async_evaluate$_environment.scope$1$3$semiGlobal$when(new A._EvaluateVisitor_visitWhileRule_closure0(this, node), true, node.hasDeclarations, type$.nullable_Value);
  69849. },
  69850. visitBinaryOperationExpression$1(_, node) {
  69851. var t1, _this = this;
  69852. if (_this._async_evaluate$_assertInModule$2(_this._async_evaluate$__stylesheet, "_stylesheet").plainCss) {
  69853. t1 = node.operator;
  69854. t1 = t1 !== B.BinaryOperator_wdM && t1 !== B.BinaryOperator_U77;
  69855. } else
  69856. t1 = false;
  69857. if (t1)
  69858. throw A.wrapException(_this._async_evaluate$_exception$2("Operators aren't allowed in plain CSS.", node.get$operatorSpan()));
  69859. return _this._addExceptionSpanAsync$1$2(node, new A._EvaluateVisitor_visitBinaryOperationExpression_closure0(_this, node), type$.Value);
  69860. },
  69861. _async_evaluate$_slash$3(left, right, node) {
  69862. var t2, _1_1,
  69863. result = left.dividedBy$1(right),
  69864. _1_2_isSet = left instanceof A.SassNumber,
  69865. _1_2 = null, right0 = null,
  69866. t1 = false;
  69867. if (_1_2_isSet) {
  69868. t2 = type$.SassNumber;
  69869. t2._as(left);
  69870. if (right instanceof A.SassNumber) {
  69871. t2._as(right);
  69872. t1 = node.allowsSlash && this._async_evaluate$_operandAllowsSlash$1(node.left) && this._async_evaluate$_operandAllowsSlash$1(node.right);
  69873. right0 = right;
  69874. _1_2 = right0;
  69875. } else
  69876. _1_2 = right;
  69877. _1_1 = left;
  69878. } else {
  69879. _1_1 = left;
  69880. left = null;
  69881. }
  69882. if (t1)
  69883. return type$.SassNumber._as(result).withSlash$2(left, right0);
  69884. if (_1_1 instanceof A.SassNumber)
  69885. t1 = (_1_2_isSet ? _1_2 : right) instanceof A.SassNumber;
  69886. else
  69887. t1 = false;
  69888. if (t1) {
  69889. this._async_evaluate$_warn$3(string$.Using__o + A.S(new A._EvaluateVisitor__slash_recommendation0().call$1(node)) + " or " + A.expressionToCalc(node).toString$0(0) + string$.x0a_Morex20, node.get$span(0), B.Deprecation_mRl);
  69890. return result;
  69891. }
  69892. return result;
  69893. },
  69894. _async_evaluate$_operandAllowsSlash$1(node) {
  69895. var t1;
  69896. if (node instanceof A.FunctionExpression)
  69897. if (node.namespace == null) {
  69898. t1 = node.name;
  69899. t1 = B.Set_yHF81.contains$1(0, t1.toLowerCase()) && this._async_evaluate$_environment.getFunction$1(t1) == null;
  69900. } else
  69901. t1 = false;
  69902. else
  69903. t1 = true;
  69904. return t1;
  69905. },
  69906. visitValueExpression$1(_, node) {
  69907. return this.visitValueExpression$body$_EvaluateVisitor(0, node);
  69908. },
  69909. visitValueExpression$body$_EvaluateVisitor(_, node) {
  69910. var $async$goto = 0,
  69911. $async$completer = A._makeAsyncAwaitCompleter(type$.Value),
  69912. $async$returnValue;
  69913. var $async$visitValueExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  69914. if ($async$errorCode === 1)
  69915. return A._asyncRethrow($async$result, $async$completer);
  69916. while (true)
  69917. switch ($async$goto) {
  69918. case 0:
  69919. // Function start
  69920. $async$returnValue = node.value;
  69921. // goto return
  69922. $async$goto = 1;
  69923. break;
  69924. case 1:
  69925. // return
  69926. return A._asyncReturn($async$returnValue, $async$completer);
  69927. }
  69928. });
  69929. return A._asyncStartSync($async$visitValueExpression$1, $async$completer);
  69930. },
  69931. visitVariableExpression$1(_, node) {
  69932. return this.visitVariableExpression$body$_EvaluateVisitor(0, node);
  69933. },
  69934. visitVariableExpression$body$_EvaluateVisitor(_, node) {
  69935. var $async$goto = 0,
  69936. $async$completer = A._makeAsyncAwaitCompleter(type$.Value),
  69937. $async$returnValue, $async$self = this, result;
  69938. var $async$visitVariableExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  69939. if ($async$errorCode === 1)
  69940. return A._asyncRethrow($async$result, $async$completer);
  69941. while (true)
  69942. switch ($async$goto) {
  69943. case 0:
  69944. // Function start
  69945. result = $async$self._async_evaluate$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableExpression_closure0($async$self, node));
  69946. if (result != null) {
  69947. $async$returnValue = result;
  69948. // goto return
  69949. $async$goto = 1;
  69950. break;
  69951. }
  69952. throw A.wrapException($async$self._async_evaluate$_exception$2("Undefined variable.", node.span));
  69953. case 1:
  69954. // return
  69955. return A._asyncReturn($async$returnValue, $async$completer);
  69956. }
  69957. });
  69958. return A._asyncStartSync($async$visitVariableExpression$1, $async$completer);
  69959. },
  69960. visitUnaryOperationExpression$1(_, node) {
  69961. return this.visitUnaryOperationExpression$body$_EvaluateVisitor(0, node);
  69962. },
  69963. visitUnaryOperationExpression$body$_EvaluateVisitor(_, node) {
  69964. var $async$goto = 0,
  69965. $async$completer = A._makeAsyncAwaitCompleter(type$.Value),
  69966. $async$returnValue, $async$self = this, $async$temp1, $async$temp2, $async$temp3;
  69967. var $async$visitUnaryOperationExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  69968. if ($async$errorCode === 1)
  69969. return A._asyncRethrow($async$result, $async$completer);
  69970. while (true)
  69971. switch ($async$goto) {
  69972. case 0:
  69973. // Function start
  69974. $async$temp1 = node;
  69975. $async$temp2 = A;
  69976. $async$temp3 = node;
  69977. $async$goto = 3;
  69978. return A._asyncAwait(node.operand.accept$1($async$self), $async$visitUnaryOperationExpression$1);
  69979. case 3:
  69980. // returning from await.
  69981. $async$returnValue = $async$self._async_evaluate$_addExceptionSpan$2($async$temp1, new $async$temp2._EvaluateVisitor_visitUnaryOperationExpression_closure0($async$temp3, $async$result));
  69982. // goto return
  69983. $async$goto = 1;
  69984. break;
  69985. case 1:
  69986. // return
  69987. return A._asyncReturn($async$returnValue, $async$completer);
  69988. }
  69989. });
  69990. return A._asyncStartSync($async$visitUnaryOperationExpression$1, $async$completer);
  69991. },
  69992. visitBooleanExpression$1(_, node) {
  69993. return this.visitBooleanExpression$body$_EvaluateVisitor(0, node);
  69994. },
  69995. visitBooleanExpression$body$_EvaluateVisitor(_, node) {
  69996. var $async$goto = 0,
  69997. $async$completer = A._makeAsyncAwaitCompleter(type$.SassBoolean),
  69998. $async$returnValue;
  69999. var $async$visitBooleanExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  70000. if ($async$errorCode === 1)
  70001. return A._asyncRethrow($async$result, $async$completer);
  70002. while (true)
  70003. switch ($async$goto) {
  70004. case 0:
  70005. // Function start
  70006. $async$returnValue = node.value ? B.SassBoolean_true : B.SassBoolean_false;
  70007. // goto return
  70008. $async$goto = 1;
  70009. break;
  70010. case 1:
  70011. // return
  70012. return A._asyncReturn($async$returnValue, $async$completer);
  70013. }
  70014. });
  70015. return A._asyncStartSync($async$visitBooleanExpression$1, $async$completer);
  70016. },
  70017. visitIfExpression$1(_, node) {
  70018. return this.visitIfExpression$body$_EvaluateVisitor(0, node);
  70019. },
  70020. visitIfExpression$body$_EvaluateVisitor(_, node) {
  70021. var $async$goto = 0,
  70022. $async$completer = A._makeAsyncAwaitCompleter(type$.Value),
  70023. $async$returnValue, $async$self = this, condition, t1, ifTrue, ifFalse, result, _0_0, positional, named;
  70024. var $async$visitIfExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  70025. if ($async$errorCode === 1)
  70026. return A._asyncRethrow($async$result, $async$completer);
  70027. while (true)
  70028. switch ($async$goto) {
  70029. case 0:
  70030. // Function start
  70031. $async$goto = 3;
  70032. return A._asyncAwait($async$self._async_evaluate$_evaluateMacroArguments$1(node), $async$visitIfExpression$1);
  70033. case 3:
  70034. // returning from await.
  70035. _0_0 = $async$result;
  70036. positional = _0_0._0;
  70037. named = _0_0._1;
  70038. $async$self._async_evaluate$_verifyArguments$4(J.get$length$asx(positional), named, $.$get$IfExpression_declaration(), node);
  70039. condition = A.ListExtensions_elementAtOrNull(positional, 0);
  70040. if (condition == null) {
  70041. t1 = named.$index(0, "condition");
  70042. t1.toString;
  70043. condition = t1;
  70044. }
  70045. ifTrue = A.ListExtensions_elementAtOrNull(positional, 1);
  70046. if (ifTrue == null) {
  70047. t1 = named.$index(0, "if-true");
  70048. t1.toString;
  70049. ifTrue = t1;
  70050. }
  70051. ifFalse = A.ListExtensions_elementAtOrNull(positional, 2);
  70052. if (ifFalse == null) {
  70053. t1 = named.$index(0, "if-false");
  70054. t1.toString;
  70055. ifFalse = t1;
  70056. }
  70057. $async$goto = 4;
  70058. return A._asyncAwait(condition.accept$1($async$self), $async$visitIfExpression$1);
  70059. case 4:
  70060. // returning from await.
  70061. result = $async$result.get$isTruthy() ? ifTrue : ifFalse;
  70062. t1 = result.accept$1($async$self);
  70063. $async$goto = 5;
  70064. return A._asyncAwait(type$.Future_Value._is(t1) ? t1 : A._Future$value(t1, type$.Value), $async$visitIfExpression$1);
  70065. case 5:
  70066. // returning from await.
  70067. $async$returnValue = $async$self._async_evaluate$_withoutSlash$2($async$result, $async$self._async_evaluate$_expressionNode$1(result));
  70068. // goto return
  70069. $async$goto = 1;
  70070. break;
  70071. case 1:
  70072. // return
  70073. return A._asyncReturn($async$returnValue, $async$completer);
  70074. }
  70075. });
  70076. return A._asyncStartSync($async$visitIfExpression$1, $async$completer);
  70077. },
  70078. visitNullExpression$1(_, node) {
  70079. return this.visitNullExpression$body$_EvaluateVisitor(0, node);
  70080. },
  70081. visitNullExpression$body$_EvaluateVisitor(_, node) {
  70082. var $async$goto = 0,
  70083. $async$completer = A._makeAsyncAwaitCompleter(type$.Value),
  70084. $async$returnValue;
  70085. var $async$visitNullExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  70086. if ($async$errorCode === 1)
  70087. return A._asyncRethrow($async$result, $async$completer);
  70088. while (true)
  70089. switch ($async$goto) {
  70090. case 0:
  70091. // Function start
  70092. $async$returnValue = B.C__SassNull;
  70093. // goto return
  70094. $async$goto = 1;
  70095. break;
  70096. case 1:
  70097. // return
  70098. return A._asyncReturn($async$returnValue, $async$completer);
  70099. }
  70100. });
  70101. return A._asyncStartSync($async$visitNullExpression$1, $async$completer);
  70102. },
  70103. visitNumberExpression$1(_, node) {
  70104. return this.visitNumberExpression$body$_EvaluateVisitor(0, node);
  70105. },
  70106. visitNumberExpression$body$_EvaluateVisitor(_, node) {
  70107. var $async$goto = 0,
  70108. $async$completer = A._makeAsyncAwaitCompleter(type$.SassNumber),
  70109. $async$returnValue;
  70110. var $async$visitNumberExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  70111. if ($async$errorCode === 1)
  70112. return A._asyncRethrow($async$result, $async$completer);
  70113. while (true)
  70114. switch ($async$goto) {
  70115. case 0:
  70116. // Function start
  70117. $async$returnValue = A.SassNumber_SassNumber(node.value, node.unit);
  70118. // goto return
  70119. $async$goto = 1;
  70120. break;
  70121. case 1:
  70122. // return
  70123. return A._asyncReturn($async$returnValue, $async$completer);
  70124. }
  70125. });
  70126. return A._asyncStartSync($async$visitNumberExpression$1, $async$completer);
  70127. },
  70128. visitParenthesizedExpression$1(_, node) {
  70129. var _this = this;
  70130. return _this._async_evaluate$_assertInModule$2(_this._async_evaluate$__stylesheet, "_stylesheet").plainCss ? A.throwExpression(_this._async_evaluate$_exception$2("Parentheses aren't allowed in plain CSS.", node.span)) : node.expression.accept$1(_this);
  70131. },
  70132. visitColorExpression$1(_, node) {
  70133. return this.visitColorExpression$body$_EvaluateVisitor(0, node);
  70134. },
  70135. visitColorExpression$body$_EvaluateVisitor(_, node) {
  70136. var $async$goto = 0,
  70137. $async$completer = A._makeAsyncAwaitCompleter(type$.SassColor),
  70138. $async$returnValue;
  70139. var $async$visitColorExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  70140. if ($async$errorCode === 1)
  70141. return A._asyncRethrow($async$result, $async$completer);
  70142. while (true)
  70143. switch ($async$goto) {
  70144. case 0:
  70145. // Function start
  70146. $async$returnValue = node.value;
  70147. // goto return
  70148. $async$goto = 1;
  70149. break;
  70150. case 1:
  70151. // return
  70152. return A._asyncReturn($async$returnValue, $async$completer);
  70153. }
  70154. });
  70155. return A._asyncStartSync($async$visitColorExpression$1, $async$completer);
  70156. },
  70157. visitListExpression$1(_, node) {
  70158. return this.visitListExpression$body$_EvaluateVisitor(0, node);
  70159. },
  70160. visitListExpression$body$_EvaluateVisitor(_, node) {
  70161. var $async$goto = 0,
  70162. $async$completer = A._makeAsyncAwaitCompleter(type$.SassList),
  70163. $async$returnValue, $async$self = this, $async$temp1;
  70164. var $async$visitListExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  70165. if ($async$errorCode === 1)
  70166. return A._asyncRethrow($async$result, $async$completer);
  70167. while (true)
  70168. switch ($async$goto) {
  70169. case 0:
  70170. // Function start
  70171. $async$temp1 = A;
  70172. $async$goto = 3;
  70173. return A._asyncAwait(A.mapAsync(node.contents, new A._EvaluateVisitor_visitListExpression_closure0($async$self), type$.Expression, type$.Value), $async$visitListExpression$1);
  70174. case 3:
  70175. // returning from await.
  70176. $async$returnValue = $async$temp1.SassList$($async$result, node.separator, node.hasBrackets);
  70177. // goto return
  70178. $async$goto = 1;
  70179. break;
  70180. case 1:
  70181. // return
  70182. return A._asyncReturn($async$returnValue, $async$completer);
  70183. }
  70184. });
  70185. return A._asyncStartSync($async$visitListExpression$1, $async$completer);
  70186. },
  70187. visitMapExpression$1(_, node) {
  70188. return this.visitMapExpression$body$_EvaluateVisitor(0, node);
  70189. },
  70190. visitMapExpression$body$_EvaluateVisitor(_, node) {
  70191. var $async$goto = 0,
  70192. $async$completer = A._makeAsyncAwaitCompleter(type$.SassMap),
  70193. $async$returnValue, $async$self = this, t2, t3, _i, t4, key, value, keyValue, valueValue, oldValueSpan, t1, map, keyNodes;
  70194. var $async$visitMapExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  70195. if ($async$errorCode === 1)
  70196. return A._asyncRethrow($async$result, $async$completer);
  70197. while (true)
  70198. switch ($async$goto) {
  70199. case 0:
  70200. // Function start
  70201. t1 = type$.Value;
  70202. map = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  70203. keyNodes = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.AstNode);
  70204. t2 = node.pairs, t3 = t2.length, _i = 0;
  70205. case 3:
  70206. // for condition
  70207. if (!(_i < t3)) {
  70208. // goto after for
  70209. $async$goto = 5;
  70210. break;
  70211. }
  70212. t4 = t2[_i];
  70213. key = t4._0;
  70214. value = t4._1;
  70215. $async$goto = 6;
  70216. return A._asyncAwait(key.accept$1($async$self), $async$visitMapExpression$1);
  70217. case 6:
  70218. // returning from await.
  70219. keyValue = $async$result;
  70220. $async$goto = 7;
  70221. return A._asyncAwait(value.accept$1($async$self), $async$visitMapExpression$1);
  70222. case 7:
  70223. // returning from await.
  70224. valueValue = $async$result;
  70225. if (map.containsKey$1(keyValue)) {
  70226. t1 = keyNodes.$index(0, keyValue);
  70227. oldValueSpan = t1 == null ? null : t1.get$span(t1);
  70228. t1 = key.get$span(key);
  70229. t2 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
  70230. if (oldValueSpan != null)
  70231. t2.$indexSet(0, oldValueSpan, "first key");
  70232. throw A.wrapException(A.MultiSpanSassRuntimeException$("Duplicate key.", t1, "second key", t2, $async$self._async_evaluate$_stackTrace$1(key.get$span(key)), null));
  70233. }
  70234. map.$indexSet(0, keyValue, valueValue);
  70235. keyNodes.$indexSet(0, keyValue, key);
  70236. case 4:
  70237. // for update
  70238. ++_i;
  70239. // goto for condition
  70240. $async$goto = 3;
  70241. break;
  70242. case 5:
  70243. // after for
  70244. $async$returnValue = new A.SassMap(A.ConstantMap_ConstantMap$from(map, t1, t1));
  70245. // goto return
  70246. $async$goto = 1;
  70247. break;
  70248. case 1:
  70249. // return
  70250. return A._asyncReturn($async$returnValue, $async$completer);
  70251. }
  70252. });
  70253. return A._asyncStartSync($async$visitMapExpression$1, $async$completer);
  70254. },
  70255. visitFunctionExpression$1(_, node) {
  70256. return this.visitFunctionExpression$body$_EvaluateVisitor(0, node);
  70257. },
  70258. visitFunctionExpression$body$_EvaluateVisitor(_, node) {
  70259. var $async$goto = 0,
  70260. $async$completer = A._makeAsyncAwaitCompleter(type$.Value),
  70261. $async$returnValue, $async$self = this, t2, _0_0, t3, t4, oldInFunction, result, t1, $function;
  70262. var $async$visitFunctionExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  70263. if ($async$errorCode === 1)
  70264. return A._asyncRethrow($async$result, $async$completer);
  70265. while (true)
  70266. switch ($async$goto) {
  70267. case 0:
  70268. // Function start
  70269. t1 = {};
  70270. $function = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__stylesheet, "_stylesheet").plainCss ? null : $async$self._async_evaluate$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitFunctionExpression_closure2($async$self, node));
  70271. t1.$function = $function;
  70272. $async$goto = $function == null ? 3 : 5;
  70273. break;
  70274. case 3:
  70275. // then
  70276. if (node.namespace != null)
  70277. throw A.wrapException($async$self._async_evaluate$_exception$2("Undefined function.", node.span));
  70278. t2 = node.name;
  70279. _0_0 = t2.toLowerCase();
  70280. if ("min" === _0_0 || "max" === _0_0 || "round" === _0_0 || "abs" === _0_0) {
  70281. t3 = node.$arguments;
  70282. t4 = t3.named;
  70283. t3 = t4.get$isEmpty(t4) && t3.rest == null && B.JSArray_methods.every$1(t3.positional, new A._EvaluateVisitor_visitFunctionExpression_closure3());
  70284. } else
  70285. t3 = false;
  70286. $async$goto = t3 ? 6 : 7;
  70287. break;
  70288. case 6:
  70289. // then
  70290. $async$goto = 8;
  70291. return A._asyncAwait($async$self._async_evaluate$_visitCalculation$2$inLegacySassFunction(node, true), $async$visitFunctionExpression$1);
  70292. case 8:
  70293. // returning from await.
  70294. $async$returnValue = $async$result;
  70295. // goto return
  70296. $async$goto = 1;
  70297. break;
  70298. case 7:
  70299. // join
  70300. $async$goto = "calc" === _0_0 || "clamp" === _0_0 || "hypot" === _0_0 || "sin" === _0_0 || "cos" === _0_0 || "tan" === _0_0 || "asin" === _0_0 || "acos" === _0_0 || "atan" === _0_0 || "sqrt" === _0_0 || "exp" === _0_0 || "sign" === _0_0 || "mod" === _0_0 || "rem" === _0_0 || "atan2" === _0_0 || "pow" === _0_0 || "log" === _0_0 ? 9 : 10;
  70301. break;
  70302. case 9:
  70303. // then
  70304. $async$goto = 11;
  70305. return A._asyncAwait($async$self._async_evaluate$_visitCalculation$1(node), $async$visitFunctionExpression$1);
  70306. case 11:
  70307. // returning from await.
  70308. $async$returnValue = $async$result;
  70309. // goto return
  70310. $async$goto = 1;
  70311. break;
  70312. case 10:
  70313. // join
  70314. $function = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__stylesheet, "_stylesheet").plainCss ? null : $async$self._async_evaluate$_builtInFunctions.$index(0, t2);
  70315. t2 = t1.$function = $function == null ? new A.PlainCssCallable(node.originalName) : $function;
  70316. // goto join
  70317. $async$goto = 4;
  70318. break;
  70319. case 5:
  70320. // else
  70321. t2 = $function;
  70322. case 4:
  70323. // join
  70324. if (B.JSString_methods.startsWith$1(node.originalName, "--") && t2 instanceof A.UserDefinedCallable && !B.JSString_methods.startsWith$1(t2.declaration.originalName, "--"))
  70325. $async$self._async_evaluate$_warn$3(string$.Sassx20_ff, node.get$nameSpan(), B.Deprecation_0);
  70326. oldInFunction = $async$self._async_evaluate$_inFunction;
  70327. $async$self._async_evaluate$_inFunction = true;
  70328. $async$goto = 12;
  70329. return A._asyncAwait($async$self._async_evaluate$_addErrorSpan$1$2(node, new A._EvaluateVisitor_visitFunctionExpression_closure4(t1, $async$self, node), type$.Value), $async$visitFunctionExpression$1);
  70330. case 12:
  70331. // returning from await.
  70332. result = $async$result;
  70333. $async$self._async_evaluate$_inFunction = oldInFunction;
  70334. $async$returnValue = result;
  70335. // goto return
  70336. $async$goto = 1;
  70337. break;
  70338. case 1:
  70339. // return
  70340. return A._asyncReturn($async$returnValue, $async$completer);
  70341. }
  70342. });
  70343. return A._asyncStartSync($async$visitFunctionExpression$1, $async$completer);
  70344. },
  70345. _async_evaluate$_visitCalculation$2$inLegacySassFunction(node, inLegacySassFunction) {
  70346. return this._visitCalculation$body$_EvaluateVisitor(node, inLegacySassFunction);
  70347. },
  70348. _async_evaluate$_visitCalculation$1(node) {
  70349. return this._async_evaluate$_visitCalculation$2$inLegacySassFunction(node, false);
  70350. },
  70351. _visitCalculation$body$_EvaluateVisitor(node, inLegacySassFunction) {
  70352. var $async$goto = 0,
  70353. $async$completer = A._makeAsyncAwaitCompleter(type$.Value),
  70354. $async$returnValue, $async$next = [], $async$self = this, $arguments, oldCallableNode, t1, _0_0, error, stackTrace, t4, _i, exception, t2, t3, $async$temp1;
  70355. var $async$_async_evaluate$_visitCalculation$2$inLegacySassFunction = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  70356. if ($async$errorCode === 1)
  70357. return A._asyncRethrow($async$result, $async$completer);
  70358. while (true)
  70359. switch ($async$goto) {
  70360. case 0:
  70361. // Function start
  70362. t2 = node.$arguments;
  70363. t3 = t2.named;
  70364. if (t3.get$isNotEmpty(t3))
  70365. throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Keywor, node.span));
  70366. else if (t2.rest != null)
  70367. throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Rest_a, node.span));
  70368. $async$self._async_evaluate$_checkCalculationArguments$1(node);
  70369. t3 = A._setArrayType([], type$.JSArray_Object);
  70370. t2 = t2.positional, t4 = t2.length, _i = 0;
  70371. case 3:
  70372. // for condition
  70373. if (!(_i < t4)) {
  70374. // goto after for
  70375. $async$goto = 5;
  70376. break;
  70377. }
  70378. $async$temp1 = t3;
  70379. $async$goto = 6;
  70380. return A._asyncAwait($async$self._async_evaluate$_visitCalculationExpression$2$inLegacySassFunction(t2[_i], inLegacySassFunction), $async$_async_evaluate$_visitCalculation$2$inLegacySassFunction);
  70381. case 6:
  70382. // returning from await.
  70383. $async$temp1.push($async$result);
  70384. case 4:
  70385. // for update
  70386. ++_i;
  70387. // goto for condition
  70388. $async$goto = 3;
  70389. break;
  70390. case 5:
  70391. // after for
  70392. $arguments = t3;
  70393. if ($async$self._async_evaluate$_inSupportsDeclaration) {
  70394. $async$returnValue = new A.SassCalculation(node.name, A.List_List$unmodifiable($arguments, type$.Object));
  70395. // goto return
  70396. $async$goto = 1;
  70397. break;
  70398. }
  70399. oldCallableNode = $async$self._async_evaluate$_callableNode;
  70400. $async$self._async_evaluate$_callableNode = node;
  70401. try {
  70402. t1 = null;
  70403. t3 = node.name;
  70404. _0_0 = t3.toLowerCase();
  70405. $label0$0: {
  70406. if ("calc" === _0_0) {
  70407. t1 = A.SassCalculation_calc(J.$index$asx($arguments, 0));
  70408. break $label0$0;
  70409. }
  70410. if ("sqrt" === _0_0) {
  70411. t1 = A.SassCalculation__singleArgument("sqrt", J.$index$asx($arguments, 0), A.number0__sqrt$closure(), true);
  70412. break $label0$0;
  70413. }
  70414. if ("sin" === _0_0) {
  70415. t1 = A.SassCalculation__singleArgument("sin", J.$index$asx($arguments, 0), A.number0__sin$closure(), false);
  70416. break $label0$0;
  70417. }
  70418. if ("cos" === _0_0) {
  70419. t1 = A.SassCalculation__singleArgument("cos", J.$index$asx($arguments, 0), A.number0__cos$closure(), false);
  70420. break $label0$0;
  70421. }
  70422. if ("tan" === _0_0) {
  70423. t1 = A.SassCalculation__singleArgument("tan", J.$index$asx($arguments, 0), A.number0__tan$closure(), false);
  70424. break $label0$0;
  70425. }
  70426. if ("asin" === _0_0) {
  70427. t1 = A.SassCalculation__singleArgument("asin", J.$index$asx($arguments, 0), A.number0__asin$closure(), true);
  70428. break $label0$0;
  70429. }
  70430. if ("acos" === _0_0) {
  70431. t1 = A.SassCalculation__singleArgument("acos", J.$index$asx($arguments, 0), A.number0__acos$closure(), true);
  70432. break $label0$0;
  70433. }
  70434. if ("atan" === _0_0) {
  70435. t1 = A.SassCalculation__singleArgument("atan", J.$index$asx($arguments, 0), A.number0__atan$closure(), true);
  70436. break $label0$0;
  70437. }
  70438. if ("abs" === _0_0) {
  70439. t1 = A.SassCalculation_abs(J.$index$asx($arguments, 0));
  70440. break $label0$0;
  70441. }
  70442. if ("exp" === _0_0) {
  70443. t1 = A.SassCalculation_exp(J.$index$asx($arguments, 0));
  70444. break $label0$0;
  70445. }
  70446. if ("sign" === _0_0) {
  70447. t1 = A.SassCalculation_sign(J.$index$asx($arguments, 0));
  70448. break $label0$0;
  70449. }
  70450. if ("min" === _0_0) {
  70451. t1 = A.SassCalculation_min($arguments);
  70452. break $label0$0;
  70453. }
  70454. if ("max" === _0_0) {
  70455. t1 = A.SassCalculation_max($arguments);
  70456. break $label0$0;
  70457. }
  70458. if ("hypot" === _0_0) {
  70459. t1 = A.SassCalculation_hypot($arguments);
  70460. break $label0$0;
  70461. }
  70462. if ("pow" === _0_0) {
  70463. t1 = A.SassCalculation_pow(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1));
  70464. break $label0$0;
  70465. }
  70466. if ("atan2" === _0_0) {
  70467. t1 = A.SassCalculation_atan2(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1));
  70468. break $label0$0;
  70469. }
  70470. if ("log" === _0_0) {
  70471. t1 = A.SassCalculation_log(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1));
  70472. break $label0$0;
  70473. }
  70474. if ("mod" === _0_0) {
  70475. t1 = A.SassCalculation_mod(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1));
  70476. break $label0$0;
  70477. }
  70478. if ("rem" === _0_0) {
  70479. t1 = A.SassCalculation_rem(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1));
  70480. break $label0$0;
  70481. }
  70482. if ("round" === _0_0) {
  70483. t1 = A.SassCalculation_round(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1), A.ListExtensions_elementAtOrNull($arguments, 2));
  70484. break $label0$0;
  70485. }
  70486. if ("clamp" === _0_0) {
  70487. t1 = A.SassCalculation_clamp(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1), A.ListExtensions_elementAtOrNull($arguments, 2));
  70488. break $label0$0;
  70489. }
  70490. t3 = A.UnsupportedError$('Unknown calculation name "' + t3 + '".');
  70491. t1 = A.throwExpression(t3);
  70492. }
  70493. t1 = t1;
  70494. $async$returnValue = t1;
  70495. // goto return
  70496. $async$goto = 1;
  70497. break;
  70498. } catch (exception) {
  70499. t1 = A.unwrapException(exception);
  70500. if (t1 instanceof A.SassScriptException) {
  70501. error = t1;
  70502. stackTrace = A.getTraceFromException(exception);
  70503. if (B.JSString_methods.contains$1(error.message, "compatible"))
  70504. $async$self._async_evaluate$_verifyCompatibleNumbers$2($arguments, t2);
  70505. A.throwWithTrace($async$self._async_evaluate$_exception$2(error.message, node.span), error, stackTrace);
  70506. } else
  70507. throw exception;
  70508. } finally {
  70509. $async$self._async_evaluate$_callableNode = oldCallableNode;
  70510. }
  70511. case 1:
  70512. // return
  70513. return A._asyncReturn($async$returnValue, $async$completer);
  70514. }
  70515. });
  70516. return A._asyncStartSync($async$_async_evaluate$_visitCalculation$2$inLegacySassFunction, $async$completer);
  70517. },
  70518. _async_evaluate$_checkCalculationArguments$1(node) {
  70519. var t1, _0_0,
  70520. check = new A._EvaluateVisitor__checkCalculationArguments_check0(this, node);
  70521. $label0$0: {
  70522. t1 = node.name;
  70523. _0_0 = t1.toLowerCase();
  70524. if ("calc" === _0_0 || "sqrt" === _0_0 || "sin" === _0_0 || "cos" === _0_0 || "tan" === _0_0 || "asin" === _0_0 || "acos" === _0_0 || "atan" === _0_0 || "abs" === _0_0 || "exp" === _0_0 || "sign" === _0_0) {
  70525. check.call$1(1);
  70526. break $label0$0;
  70527. }
  70528. if ("min" === _0_0 || "max" === _0_0 || "hypot" === _0_0) {
  70529. check.call$0();
  70530. break $label0$0;
  70531. }
  70532. if ("pow" === _0_0 || "atan2" === _0_0 || "log" === _0_0 || "mod" === _0_0 || "rem" === _0_0) {
  70533. check.call$1(2);
  70534. break $label0$0;
  70535. }
  70536. if ("round" === _0_0 || "clamp" === _0_0) {
  70537. check.call$1(3);
  70538. break $label0$0;
  70539. }
  70540. throw A.wrapException(A.UnsupportedError$('Unknown calculation name "' + t1 + '".'));
  70541. }
  70542. },
  70543. _async_evaluate$_verifyCompatibleNumbers$2(args, nodesWithSpans) {
  70544. var i, t1, _0_0, arg, number1, j, number2;
  70545. for (i = 0; t1 = args.length, i < t1; ++i) {
  70546. _0_0 = args[i];
  70547. if (_0_0 instanceof A.SassNumber) {
  70548. t1 = _0_0.get$hasComplexUnits();
  70549. arg = _0_0;
  70550. } else {
  70551. arg = null;
  70552. t1 = false;
  70553. }
  70554. if (t1)
  70555. throw A.wrapException(this._async_evaluate$_exception$2("Number " + A.S(arg) + " isn't compatible with CSS calculations.", J.get$span$z(nodesWithSpans[i])));
  70556. }
  70557. for (i = 0; i < t1 - 1; ++i) {
  70558. number1 = args[i];
  70559. if (!(number1 instanceof A.SassNumber))
  70560. continue;
  70561. for (j = i + 1; t1 = args.length, j < t1; ++j) {
  70562. number2 = args[j];
  70563. if (!(number2 instanceof A.SassNumber))
  70564. continue;
  70565. if (number1.hasPossiblyCompatibleUnits$1(number2))
  70566. continue;
  70567. throw A.wrapException(A.MultiSpanSassRuntimeException$(number1.toString$0(0) + " and " + number2.toString$0(0) + " are incompatible.", J.get$span$z(nodesWithSpans[i]), number1.toString$0(0), A.LinkedHashMap_LinkedHashMap$_literal([J.get$span$z(nodesWithSpans[j]), number2.toString$0(0)], type$.FileSpan, type$.String), this._async_evaluate$_stackTrace$1(J.get$span$z(nodesWithSpans[i])), null));
  70568. }
  70569. }
  70570. },
  70571. _async_evaluate$_visitCalculationExpression$2$inLegacySassFunction(node, inLegacySassFunction) {
  70572. return this._visitCalculationExpression$body$_EvaluateVisitor(node, inLegacySassFunction);
  70573. },
  70574. _visitCalculationExpression$body$_EvaluateVisitor(node, inLegacySassFunction) {
  70575. var $async$goto = 0,
  70576. $async$completer = A._makeAsyncAwaitCompleter(type$.Object),
  70577. $async$returnValue, $async$self = this, result, t2, _0_0, _1_0, t3, _i, i, _box_0, t1, inner, $async$temp1;
  70578. var $async$_async_evaluate$_visitCalculationExpression$2$inLegacySassFunction = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  70579. if ($async$errorCode === 1)
  70580. return A._asyncRethrow($async$result, $async$completer);
  70581. while (true)
  70582. switch ($async$goto) {
  70583. case 0:
  70584. // Function start
  70585. _box_0 = {};
  70586. t1 = node instanceof A.ParenthesizedExpression;
  70587. inner = t1 ? node.expression : null;
  70588. $async$goto = t1 ? 3 : 4;
  70589. break;
  70590. case 3:
  70591. // then
  70592. $async$goto = 5;
  70593. return A._asyncAwait($async$self._async_evaluate$_visitCalculationExpression$2$inLegacySassFunction(inner, inLegacySassFunction), $async$_async_evaluate$_visitCalculationExpression$2$inLegacySassFunction);
  70594. case 5:
  70595. // returning from await.
  70596. result = $async$result;
  70597. $async$returnValue = result instanceof A.SassString ? new A.SassString("(" + result._string$_text + ")", false) : result;
  70598. // goto return
  70599. $async$goto = 1;
  70600. break;
  70601. case 4:
  70602. // join
  70603. $async$goto = node instanceof A.StringExpression && node.accept$1(B.C_IsCalculationSafeVisitor) ? 6 : 7;
  70604. break;
  70605. case 6:
  70606. // then
  70607. t1 = node.text;
  70608. t2 = t1.get$asPlain();
  70609. _0_0 = t2 == null ? null : t2.toLowerCase();
  70610. if ("pi" === _0_0) {
  70611. t1 = A.SassNumber_SassNumber(3.141592653589793, null);
  70612. // goto break $label0$0
  70613. $async$goto = 8;
  70614. break;
  70615. }
  70616. if ("e" === _0_0) {
  70617. t1 = A.SassNumber_SassNumber(2.718281828459045, null);
  70618. // goto break $label0$0
  70619. $async$goto = 8;
  70620. break;
  70621. }
  70622. if ("infinity" === _0_0) {
  70623. t1 = A.SassNumber_SassNumber(1 / 0, null);
  70624. // goto break $label0$0
  70625. $async$goto = 8;
  70626. break;
  70627. }
  70628. if ("-infinity" === _0_0) {
  70629. t1 = A.SassNumber_SassNumber(-1 / 0, null);
  70630. // goto break $label0$0
  70631. $async$goto = 8;
  70632. break;
  70633. }
  70634. if ("nan" === _0_0) {
  70635. t1 = A.SassNumber_SassNumber(0 / 0, null);
  70636. // goto break $label0$0
  70637. $async$goto = 8;
  70638. break;
  70639. }
  70640. $async$temp1 = A;
  70641. $async$goto = 9;
  70642. return A._asyncAwait($async$self._async_evaluate$_performInterpolation$1(t1), $async$_async_evaluate$_visitCalculationExpression$2$inLegacySassFunction);
  70643. case 9:
  70644. // returning from await.
  70645. t1 = new $async$temp1.SassString($async$result, false);
  70646. // goto break $label0$0
  70647. $async$goto = 8;
  70648. break;
  70649. case 8:
  70650. // break $label0$0
  70651. $async$returnValue = t1;
  70652. // goto return
  70653. $async$goto = 1;
  70654. break;
  70655. case 7:
  70656. // join
  70657. _box_0.right = _box_0.left = _box_0.operator = null;
  70658. t1 = node instanceof A.BinaryOperationExpression;
  70659. if (t1) {
  70660. _box_0.operator = node.operator;
  70661. _box_0.left = node.left;
  70662. _box_0.right = node.right;
  70663. }
  70664. $async$goto = t1 ? 10 : 11;
  70665. break;
  70666. case 10:
  70667. // then
  70668. $async$self._async_evaluate$_checkWhitespaceAroundCalculationOperator$1(node);
  70669. $async$goto = 12;
  70670. return A._asyncAwait($async$self._addExceptionSpanAsync$1$2(node, new A._EvaluateVisitor__visitCalculationExpression_closure0(_box_0, $async$self, node, inLegacySassFunction), type$.Object), $async$_async_evaluate$_visitCalculationExpression$2$inLegacySassFunction);
  70671. case 12:
  70672. // returning from await.
  70673. $async$returnValue = $async$result;
  70674. // goto return
  70675. $async$goto = 1;
  70676. break;
  70677. case 11:
  70678. // join
  70679. $async$goto = node instanceof A.NumberExpression || node instanceof A.VariableExpression || node instanceof A.FunctionExpression || node instanceof A.IfExpression ? 13 : 14;
  70680. break;
  70681. case 13:
  70682. // then
  70683. $async$goto = 15;
  70684. return A._asyncAwait(node.accept$1($async$self), $async$_async_evaluate$_visitCalculationExpression$2$inLegacySassFunction);
  70685. case 15:
  70686. // returning from await.
  70687. _1_0 = $async$result;
  70688. $label1$1: {
  70689. if (_1_0 instanceof A.SassNumber) {
  70690. t1 = _1_0;
  70691. break $label1$1;
  70692. }
  70693. if (_1_0 instanceof A.SassCalculation) {
  70694. t1 = _1_0;
  70695. break $label1$1;
  70696. }
  70697. if (_1_0 instanceof A.SassString) {
  70698. t1 = !_1_0._hasQuotes;
  70699. result = _1_0;
  70700. } else {
  70701. result = null;
  70702. t1 = false;
  70703. }
  70704. if (t1) {
  70705. t1 = result;
  70706. break $label1$1;
  70707. }
  70708. t1 = A.throwExpression($async$self._async_evaluate$_exception$2("Value " + _1_0.toString$0(0) + " can't be used in a calculation.", node.get$span(node)));
  70709. }
  70710. $async$returnValue = t1;
  70711. // goto return
  70712. $async$goto = 1;
  70713. break;
  70714. case 14:
  70715. // join
  70716. $async$goto = node instanceof A.ListExpression && !node.hasBrackets && B.ListSeparator_nbm === node.separator && node.contents.length >= 2 ? 16 : 17;
  70717. break;
  70718. case 16:
  70719. // then
  70720. t1 = A._setArrayType([], type$.JSArray_Object);
  70721. t2 = node.contents, t3 = t2.length, _i = 0;
  70722. case 18:
  70723. // for condition
  70724. if (!(_i < t3)) {
  70725. // goto after for
  70726. $async$goto = 20;
  70727. break;
  70728. }
  70729. $async$temp1 = t1;
  70730. $async$goto = 21;
  70731. return A._asyncAwait($async$self._async_evaluate$_visitCalculationExpression$2$inLegacySassFunction(t2[_i], inLegacySassFunction), $async$_async_evaluate$_visitCalculationExpression$2$inLegacySassFunction);
  70732. case 21:
  70733. // returning from await.
  70734. $async$temp1.push($async$result);
  70735. case 19:
  70736. // for update
  70737. ++_i;
  70738. // goto for condition
  70739. $async$goto = 18;
  70740. break;
  70741. case 20:
  70742. // after for
  70743. $async$self._async_evaluate$_checkAdjacentCalculationValues$2(t1, node);
  70744. for (i = 0; i < t1.length; ++i) {
  70745. t3 = t1[i];
  70746. if (t3 instanceof A.CalculationOperation && t2[i] instanceof A.ParenthesizedExpression)
  70747. t1[i] = new A.SassString("(" + A.S(t3) + ")", false);
  70748. }
  70749. $async$returnValue = new A.SassString(B.JSArray_methods.join$1(t1, " "), false);
  70750. // goto return
  70751. $async$goto = 1;
  70752. break;
  70753. case 17:
  70754. // join
  70755. throw A.wrapException($async$self._async_evaluate$_exception$2(string$.This_e, node.get$span(node)));
  70756. case 1:
  70757. // return
  70758. return A._asyncReturn($async$returnValue, $async$completer);
  70759. }
  70760. });
  70761. return A._asyncStartSync($async$_async_evaluate$_visitCalculationExpression$2$inLegacySassFunction, $async$completer);
  70762. },
  70763. _async_evaluate$_checkWhitespaceAroundCalculationOperator$1(node) {
  70764. var t2, t3, t4, textBetweenOperands, first, last,
  70765. t1 = node.operator;
  70766. if (t1 !== B.BinaryOperator_u15 && t1 !== B.BinaryOperator_SjO)
  70767. return;
  70768. t1 = node.left;
  70769. t2 = t1.get$span(t1);
  70770. t2 = t2.get$file(t2);
  70771. t3 = node.right;
  70772. t4 = t3.get$span(t3);
  70773. if (t2 !== t4.get$file(t4))
  70774. return;
  70775. t2 = t1.get$span(t1);
  70776. t2 = t2.get$end(t2);
  70777. t4 = t3.get$span(t3);
  70778. if (t2.offset >= t4.get$start(t4).offset)
  70779. return;
  70780. t2 = t1.get$span(t1);
  70781. t2 = t2.get$file(t2);
  70782. t1 = t1.get$span(t1);
  70783. t1 = t1.get$end(t1);
  70784. t3 = t3.get$span(t3);
  70785. textBetweenOperands = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t2._decodedChars, t1.offset, t3.get$start(t3).offset), 0, null);
  70786. first = textBetweenOperands.charCodeAt(0);
  70787. last = textBetweenOperands.charCodeAt(textBetweenOperands.length - 1);
  70788. if (first === 32 || first === 9 || first === 10 || first === 13 || first === 12 || first === 47)
  70789. t1 = !(last === 32 || last === 9 || last === 10 || last === 13 || last === 12 || last === 47);
  70790. else
  70791. t1 = true;
  70792. if (t1)
  70793. throw A.wrapException(this._async_evaluate$_exception$2(string$.x22x2b__an, node.get$operatorSpan()));
  70794. },
  70795. _async_evaluate$_binaryOperatorToCalculationOperator$2(operator, node) {
  70796. var t1;
  70797. $label0$0: {
  70798. if (B.BinaryOperator_u15 === operator) {
  70799. t1 = B.CalculationOperator_g2q;
  70800. break $label0$0;
  70801. }
  70802. if (B.BinaryOperator_SjO === operator) {
  70803. t1 = B.CalculationOperator_CxF;
  70804. break $label0$0;
  70805. }
  70806. if (B.BinaryOperator_2No === operator) {
  70807. t1 = B.CalculationOperator_171;
  70808. break $label0$0;
  70809. }
  70810. if (B.BinaryOperator_U77 === operator) {
  70811. t1 = B.CalculationOperator_Qf1;
  70812. break $label0$0;
  70813. }
  70814. t1 = A.throwExpression(this._async_evaluate$_exception$2(string$.This_o, node.get$operatorSpan()));
  70815. }
  70816. return t1;
  70817. },
  70818. _async_evaluate$_checkAdjacentCalculationValues$2(elements, node) {
  70819. var t1, i, t2, previous, current, previousNode, currentNode, _0_2;
  70820. for (t1 = elements.length, i = 1; i < t1; ++i) {
  70821. t2 = i - 1;
  70822. previous = elements[t2];
  70823. current = elements[i];
  70824. if (previous instanceof A.SassString || current instanceof A.SassString)
  70825. continue;
  70826. t1 = node.contents;
  70827. previousNode = t1[t2];
  70828. currentNode = t1[i];
  70829. if (currentNode instanceof A.UnaryOperationExpression) {
  70830. _0_2 = currentNode.operator;
  70831. if (B.UnaryOperator_AiQ !== _0_2)
  70832. t1 = B.UnaryOperator_cLp === _0_2;
  70833. else
  70834. t1 = true;
  70835. } else
  70836. t1 = false;
  70837. if (!t1)
  70838. t1 = currentNode instanceof A.NumberExpression && currentNode.value < 0;
  70839. else
  70840. t1 = true;
  70841. if (t1)
  70842. throw A.wrapException(this._async_evaluate$_exception$2(string$.x22x2b__an, A.FileSpanExtension_subspan(currentNode.get$span(currentNode), 0, 1)));
  70843. else
  70844. throw A.wrapException(this._async_evaluate$_exception$2("Missing math operator.", previousNode.get$span(previousNode).expand$1(0, currentNode.get$span(currentNode))));
  70845. }
  70846. },
  70847. visitInterpolatedFunctionExpression$1(_, node) {
  70848. return this.visitInterpolatedFunctionExpression$body$_EvaluateVisitor(0, node);
  70849. },
  70850. visitInterpolatedFunctionExpression$body$_EvaluateVisitor(_, node) {
  70851. var $async$goto = 0,
  70852. $async$completer = A._makeAsyncAwaitCompleter(type$.Value),
  70853. $async$returnValue, $async$self = this, result, t1, oldInFunction;
  70854. var $async$visitInterpolatedFunctionExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  70855. if ($async$errorCode === 1)
  70856. return A._asyncRethrow($async$result, $async$completer);
  70857. while (true)
  70858. switch ($async$goto) {
  70859. case 0:
  70860. // Function start
  70861. $async$goto = 3;
  70862. return A._asyncAwait($async$self._async_evaluate$_performInterpolation$1(node.name), $async$visitInterpolatedFunctionExpression$1);
  70863. case 3:
  70864. // returning from await.
  70865. t1 = $async$result;
  70866. oldInFunction = $async$self._async_evaluate$_inFunction;
  70867. $async$self._async_evaluate$_inFunction = true;
  70868. $async$goto = 4;
  70869. return A._asyncAwait($async$self._async_evaluate$_addErrorSpan$1$2(node, new A._EvaluateVisitor_visitInterpolatedFunctionExpression_closure0($async$self, node, new A.PlainCssCallable(t1)), type$.Value), $async$visitInterpolatedFunctionExpression$1);
  70870. case 4:
  70871. // returning from await.
  70872. result = $async$result;
  70873. $async$self._async_evaluate$_inFunction = oldInFunction;
  70874. $async$returnValue = result;
  70875. // goto return
  70876. $async$goto = 1;
  70877. break;
  70878. case 1:
  70879. // return
  70880. return A._asyncReturn($async$returnValue, $async$completer);
  70881. }
  70882. });
  70883. return A._asyncStartSync($async$visitInterpolatedFunctionExpression$1, $async$completer);
  70884. },
  70885. _async_evaluate$_runUserDefinedCallable$1$4($arguments, callable, nodeWithSpan, run, $V) {
  70886. return this._runUserDefinedCallable$body$_EvaluateVisitor($arguments, callable, nodeWithSpan, run, $V, $V);
  70887. },
  70888. _runUserDefinedCallable$body$_EvaluateVisitor($arguments, callable, nodeWithSpan, run, $V, $async$type) {
  70889. var $async$goto = 0,
  70890. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  70891. $async$returnValue, $async$self = this, oldCallable, result, evaluated, $name;
  70892. var $async$_async_evaluate$_runUserDefinedCallable$1$4 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  70893. if ($async$errorCode === 1)
  70894. return A._asyncRethrow($async$result, $async$completer);
  70895. while (true)
  70896. switch ($async$goto) {
  70897. case 0:
  70898. // Function start
  70899. $async$goto = 3;
  70900. return A._asyncAwait($async$self._async_evaluate$_evaluateArguments$1($arguments), $async$_async_evaluate$_runUserDefinedCallable$1$4);
  70901. case 3:
  70902. // returning from await.
  70903. evaluated = $async$result;
  70904. $name = callable.declaration.name;
  70905. if ($name !== "@content")
  70906. $name += "()";
  70907. oldCallable = $async$self._async_evaluate$_currentCallable;
  70908. $async$self._async_evaluate$_currentCallable = callable;
  70909. $async$goto = 4;
  70910. return A._asyncAwait($async$self._async_evaluate$_withStackFrame$1$3($name, nodeWithSpan, new A._EvaluateVisitor__runUserDefinedCallable_closure0($async$self, callable, evaluated, nodeWithSpan, run, $V), $V), $async$_async_evaluate$_runUserDefinedCallable$1$4);
  70911. case 4:
  70912. // returning from await.
  70913. result = $async$result;
  70914. $async$self._async_evaluate$_currentCallable = oldCallable;
  70915. $async$returnValue = result;
  70916. // goto return
  70917. $async$goto = 1;
  70918. break;
  70919. case 1:
  70920. // return
  70921. return A._asyncReturn($async$returnValue, $async$completer);
  70922. }
  70923. });
  70924. return A._asyncStartSync($async$_async_evaluate$_runUserDefinedCallable$1$4, $async$completer);
  70925. },
  70926. _async_evaluate$_runFunctionCallable$3($arguments, callable, nodeWithSpan) {
  70927. return this._runFunctionCallable$body$_EvaluateVisitor($arguments, callable, nodeWithSpan);
  70928. },
  70929. _runFunctionCallable$body$_EvaluateVisitor($arguments, callable, nodeWithSpan) {
  70930. var $async$goto = 0,
  70931. $async$completer = A._makeAsyncAwaitCompleter(type$.Value),
  70932. $async$returnValue, $async$handler = 2, $async$currentError, $async$self = this, buffer, first, argument, restArg, rest, error, t1, t2, _i, t3, t4, exception, $async$exception, $async$temp1;
  70933. var $async$_async_evaluate$_runFunctionCallable$3 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  70934. if ($async$errorCode === 1) {
  70935. $async$currentError = $async$result;
  70936. $async$goto = $async$handler;
  70937. }
  70938. while (true)
  70939. switch ($async$goto) {
  70940. case 0:
  70941. // Function start
  70942. $async$goto = type$.AsyncBuiltInCallable._is(callable) ? 3 : 5;
  70943. break;
  70944. case 3:
  70945. // then
  70946. $async$goto = 6;
  70947. return A._asyncAwait($async$self._async_evaluate$_runBuiltInCallable$3($arguments, callable, nodeWithSpan), $async$_async_evaluate$_runFunctionCallable$3);
  70948. case 6:
  70949. // returning from await.
  70950. $async$returnValue = $async$self._async_evaluate$_withoutSlash$2($async$result, nodeWithSpan);
  70951. // goto return
  70952. $async$goto = 1;
  70953. break;
  70954. // goto join
  70955. $async$goto = 4;
  70956. break;
  70957. case 5:
  70958. // else
  70959. $async$goto = type$.UserDefinedCallable_AsyncEnvironment._is(callable) ? 7 : 9;
  70960. break;
  70961. case 7:
  70962. // then
  70963. $async$goto = 10;
  70964. return A._asyncAwait($async$self._async_evaluate$_runUserDefinedCallable$1$4($arguments, callable, nodeWithSpan, new A._EvaluateVisitor__runFunctionCallable_closure0($async$self, callable), type$.Value), $async$_async_evaluate$_runFunctionCallable$3);
  70965. case 10:
  70966. // returning from await.
  70967. $async$returnValue = $async$result;
  70968. // goto return
  70969. $async$goto = 1;
  70970. break;
  70971. // goto join
  70972. $async$goto = 8;
  70973. break;
  70974. case 9:
  70975. // else
  70976. $async$goto = callable instanceof A.PlainCssCallable ? 11 : 13;
  70977. break;
  70978. case 11:
  70979. // then
  70980. t1 = $arguments.named;
  70981. if (t1.get$isNotEmpty(t1) || $arguments.keywordRest != null)
  70982. throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Plain_, nodeWithSpan.get$span(nodeWithSpan)));
  70983. buffer = new A.StringBuffer(callable.name + "(");
  70984. $async$handler = 15;
  70985. first = true;
  70986. t1 = $arguments.positional, t2 = t1.length, _i = 0;
  70987. case 18:
  70988. // for condition
  70989. if (!(_i < t2)) {
  70990. // goto after for
  70991. $async$goto = 20;
  70992. break;
  70993. }
  70994. argument = t1[_i];
  70995. if (first)
  70996. first = false;
  70997. else
  70998. buffer._contents += ", ";
  70999. t3 = buffer;
  71000. $async$temp1 = A;
  71001. $async$goto = 21;
  71002. return A._asyncAwait($async$self._evaluateToCss$1(argument), $async$_async_evaluate$_runFunctionCallable$3);
  71003. case 21:
  71004. // returning from await.
  71005. t4 = $async$temp1.S($async$result);
  71006. t3._contents += t4;
  71007. case 19:
  71008. // for update
  71009. ++_i;
  71010. // goto for condition
  71011. $async$goto = 18;
  71012. break;
  71013. case 20:
  71014. // after for
  71015. restArg = $arguments.rest;
  71016. $async$goto = restArg != null ? 22 : 23;
  71017. break;
  71018. case 22:
  71019. // then
  71020. $async$goto = 24;
  71021. return A._asyncAwait(restArg.accept$1($async$self), $async$_async_evaluate$_runFunctionCallable$3);
  71022. case 24:
  71023. // returning from await.
  71024. rest = $async$result;
  71025. if (!first)
  71026. buffer._contents += ", ";
  71027. t1 = buffer;
  71028. t2 = $async$self._async_evaluate$_serialize$2(rest, restArg);
  71029. t1._contents += t2;
  71030. case 23:
  71031. // join
  71032. $async$handler = 2;
  71033. // goto after finally
  71034. $async$goto = 17;
  71035. break;
  71036. case 15:
  71037. // catch
  71038. $async$handler = 14;
  71039. $async$exception = $async$currentError;
  71040. t1 = A.unwrapException($async$exception);
  71041. if (type$.SassRuntimeException._is(t1)) {
  71042. error = t1;
  71043. if (!B.JSString_methods.endsWith$1(error._span_exception$_message, "isn't a valid CSS value."))
  71044. throw $async$exception;
  71045. throw A.wrapException(A.MultiSpanSassRuntimeException$(error._span_exception$_message, J.get$span$z(error), "value", A.LinkedHashMap_LinkedHashMap$_literal([nodeWithSpan.get$span(nodeWithSpan), "unknown function treated as plain CSS"], type$.FileSpan, type$.String), J.get$trace$z(error), null));
  71046. } else
  71047. throw $async$exception;
  71048. // goto after finally
  71049. $async$goto = 17;
  71050. break;
  71051. case 14:
  71052. // uncaught
  71053. // goto rethrow
  71054. $async$goto = 2;
  71055. break;
  71056. case 17:
  71057. // after finally
  71058. t1 = buffer;
  71059. t2 = A.Primitives_stringFromCharCode(41);
  71060. t1._contents += t2;
  71061. t2 = buffer._contents;
  71062. $async$returnValue = new A.SassString(t2.charCodeAt(0) == 0 ? t2 : t2, false);
  71063. // goto return
  71064. $async$goto = 1;
  71065. break;
  71066. // goto join
  71067. $async$goto = 12;
  71068. break;
  71069. case 13:
  71070. // else
  71071. throw A.wrapException(A.ArgumentError$("Unknown callable type " + J.get$runtimeType$(callable).toString$0(0) + ".", null));
  71072. case 12:
  71073. // join
  71074. case 8:
  71075. // join
  71076. case 4:
  71077. // join
  71078. case 1:
  71079. // return
  71080. return A._asyncReturn($async$returnValue, $async$completer);
  71081. case 2:
  71082. // rethrow
  71083. return A._asyncRethrow($async$currentError, $async$completer);
  71084. }
  71085. });
  71086. return A._asyncStartSync($async$_async_evaluate$_runFunctionCallable$3, $async$completer);
  71087. },
  71088. _async_evaluate$_runBuiltInCallable$3($arguments, callable, nodeWithSpan) {
  71089. return this._runBuiltInCallable$body$_EvaluateVisitor($arguments, callable, nodeWithSpan);
  71090. },
  71091. _runBuiltInCallable$body$_EvaluateVisitor($arguments, callable, nodeWithSpan) {
  71092. var $async$goto = 0,
  71093. $async$completer = A._makeAsyncAwaitCompleter(type$.Value),
  71094. $async$returnValue, $async$handler = 2, $async$currentError, $async$self = this, result, error, stackTrace, namedSet, _0_0, declaredArguments, i, t1, t2, t3, argument, t4, t5, t6, t7, rest, argumentList, exception, _box_0, evaluated, oldCallableNode, $async$exception;
  71095. var $async$_async_evaluate$_runBuiltInCallable$3 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  71096. if ($async$errorCode === 1) {
  71097. $async$currentError = $async$result;
  71098. $async$goto = $async$handler;
  71099. }
  71100. while (true)
  71101. switch ($async$goto) {
  71102. case 0:
  71103. // Function start
  71104. _box_0 = {};
  71105. $async$goto = 3;
  71106. return A._asyncAwait($async$self._async_evaluate$_evaluateArguments$1($arguments), $async$_async_evaluate$_runBuiltInCallable$3);
  71107. case 3:
  71108. // returning from await.
  71109. evaluated = $async$result;
  71110. oldCallableNode = $async$self._async_evaluate$_callableNode;
  71111. $async$self._async_evaluate$_callableNode = nodeWithSpan;
  71112. namedSet = new A.MapKeySet(evaluated._values[0], type$.MapKeySet_String);
  71113. _box_0.callback = _box_0.overload = null;
  71114. _0_0 = callable.callbackFor$2(J.get$length$asx(evaluated._values[2]), namedSet);
  71115. _box_0.overload = _0_0._0;
  71116. _box_0.callback = _0_0._1;
  71117. $async$self._async_evaluate$_addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__runBuiltInCallable_closure2(_box_0, evaluated, namedSet));
  71118. declaredArguments = _box_0.overload.$arguments;
  71119. i = J.get$length$asx(evaluated._values[2]), t1 = declaredArguments.length, t2 = type$._Future_Value, t3 = type$.Future_Value;
  71120. case 4:
  71121. // for condition
  71122. if (!(i < t1)) {
  71123. // goto after for
  71124. $async$goto = 6;
  71125. break;
  71126. }
  71127. argument = declaredArguments[i];
  71128. t4 = evaluated._values[2];
  71129. t5 = evaluated._values[0].remove$1(0, argument.name);
  71130. $async$goto = t5 == null ? 7 : 8;
  71131. break;
  71132. case 7:
  71133. // then
  71134. t5 = argument.defaultValue;
  71135. t6 = t5.accept$1($async$self);
  71136. if (!t3._is(t6)) {
  71137. t7 = new A._Future($.Zone__current, t2);
  71138. t7._state = 8;
  71139. t7._resultOrListeners = t6;
  71140. t6 = t7;
  71141. }
  71142. $async$goto = 9;
  71143. return A._asyncAwait(t6, $async$_async_evaluate$_runBuiltInCallable$3);
  71144. case 9:
  71145. // returning from await.
  71146. t5 = $async$self._async_evaluate$_withoutSlash$2($async$result, t5);
  71147. case 8:
  71148. // join
  71149. J.add$1$ax(t4, t5);
  71150. case 5:
  71151. // for update
  71152. ++i;
  71153. // goto for condition
  71154. $async$goto = 4;
  71155. break;
  71156. case 6:
  71157. // after for
  71158. if (_box_0.overload.restArgument != null) {
  71159. if (J.get$length$asx(evaluated._values[2]) > t1) {
  71160. rest = J.sublist$1$ax(evaluated._values[2], t1);
  71161. J.removeRange$2$ax(evaluated._values[2], t1, J.get$length$asx(evaluated._values[2]));
  71162. } else
  71163. rest = B.List_empty8;
  71164. t1 = evaluated._values[0];
  71165. argumentList = A.SassArgumentList$(rest, t1, evaluated._values[4] === B.ListSeparator_undecided_null_undecided ? B.ListSeparator_ECn : evaluated._values[4]);
  71166. J.add$1$ax(evaluated._values[2], argumentList);
  71167. } else
  71168. argumentList = null;
  71169. result = null;
  71170. $async$handler = 11;
  71171. $async$goto = 14;
  71172. return A._asyncAwait($async$self._addExceptionSpanAsync$1$2(nodeWithSpan, new A._EvaluateVisitor__runBuiltInCallable_closure3(_box_0, evaluated), type$.Value), $async$_async_evaluate$_runBuiltInCallable$3);
  71173. case 14:
  71174. // returning from await.
  71175. result = $async$result;
  71176. $async$handler = 2;
  71177. // goto after finally
  71178. $async$goto = 13;
  71179. break;
  71180. case 11:
  71181. // catch
  71182. $async$handler = 10;
  71183. $async$exception = $async$currentError;
  71184. t1 = A.unwrapException($async$exception);
  71185. if (t1 instanceof A.SassException)
  71186. throw $async$exception;
  71187. else {
  71188. error = t1;
  71189. stackTrace = A.getTraceFromException($async$exception);
  71190. A.throwWithTrace($async$self._async_evaluate$_exception$2($async$self._async_evaluate$_getErrorMessage$1(error), nodeWithSpan.get$span(nodeWithSpan)), error, stackTrace);
  71191. }
  71192. // goto after finally
  71193. $async$goto = 13;
  71194. break;
  71195. case 10:
  71196. // uncaught
  71197. // goto rethrow
  71198. $async$goto = 2;
  71199. break;
  71200. case 13:
  71201. // after finally
  71202. $async$self._async_evaluate$_callableNode = oldCallableNode;
  71203. if (argumentList == null) {
  71204. $async$returnValue = result;
  71205. // goto return
  71206. $async$goto = 1;
  71207. break;
  71208. }
  71209. t1 = evaluated._values[0];
  71210. if (t1.get$isEmpty(t1)) {
  71211. $async$returnValue = result;
  71212. // goto return
  71213. $async$goto = 1;
  71214. break;
  71215. }
  71216. if (argumentList._wereKeywordsAccessed) {
  71217. $async$returnValue = result;
  71218. // goto return
  71219. $async$goto = 1;
  71220. break;
  71221. }
  71222. t1 = evaluated._values[0];
  71223. t1 = A.pluralize("argument", J.get$length$asx(t1.get$keys(t1)), null);
  71224. t2 = evaluated._values[0];
  71225. throw A.wrapException(A.MultiSpanSassRuntimeException$("No " + t1 + " named " + A.toSentence(J.map$1$1$ax(t2.get$keys(t2), new A._EvaluateVisitor__runBuiltInCallable_closure4(), type$.Object), "or") + ".", nodeWithSpan.get$span(nodeWithSpan), "invocation", A.LinkedHashMap_LinkedHashMap$_literal([_box_0.overload.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), $async$self._async_evaluate$_stackTrace$1(nodeWithSpan.get$span(nodeWithSpan)), null));
  71226. case 1:
  71227. // return
  71228. return A._asyncReturn($async$returnValue, $async$completer);
  71229. case 2:
  71230. // rethrow
  71231. return A._asyncRethrow($async$currentError, $async$completer);
  71232. }
  71233. });
  71234. return A._asyncStartSync($async$_async_evaluate$_runBuiltInCallable$3, $async$completer);
  71235. },
  71236. _async_evaluate$_evaluateArguments$1($arguments) {
  71237. return this._evaluateArguments$body$_EvaluateVisitor($arguments);
  71238. },
  71239. _evaluateArguments$body$_EvaluateVisitor($arguments) {
  71240. var $async$goto = 0,
  71241. $async$completer = A._makeAsyncAwaitCompleter(type$.Record_5_Map_String_Value_named_and_Map_String_AstNode_namedNodes_and_List_Value_positional_and_List_AstNode_positionalNodes_and_ListSeparator_separator),
  71242. $async$returnValue, $async$self = this, t1, t2, t3, t4, _i, expression, nodeForSpan, t5, t6, named, namedNodes, $name, value, t7, restArgs, rest, restNodeForSpan, separator, keywordRestArgs, keywordRest, keywordRestNodeForSpan, positional, positionalNodes, $async$temp1, $async$temp2;
  71243. var $async$_async_evaluate$_evaluateArguments$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  71244. if ($async$errorCode === 1)
  71245. return A._asyncRethrow($async$result, $async$completer);
  71246. while (true)
  71247. switch ($async$goto) {
  71248. case 0:
  71249. // Function start
  71250. positional = A._setArrayType([], type$.JSArray_Value);
  71251. positionalNodes = A._setArrayType([], type$.JSArray_AstNode);
  71252. t1 = $arguments.positional, t2 = t1.length, t3 = type$._Future_Value, t4 = type$.Future_Value, _i = 0;
  71253. case 3:
  71254. // for condition
  71255. if (!(_i < t2)) {
  71256. // goto after for
  71257. $async$goto = 5;
  71258. break;
  71259. }
  71260. expression = t1[_i];
  71261. nodeForSpan = $async$self._async_evaluate$_expressionNode$1(expression);
  71262. t5 = expression.accept$1($async$self);
  71263. if (!t4._is(t5)) {
  71264. t6 = new A._Future($.Zone__current, t3);
  71265. t6._state = 8;
  71266. t6._resultOrListeners = t5;
  71267. t5 = t6;
  71268. }
  71269. $async$temp1 = positional;
  71270. $async$goto = 6;
  71271. return A._asyncAwait(t5, $async$_async_evaluate$_evaluateArguments$1);
  71272. case 6:
  71273. // returning from await.
  71274. $async$temp1.push($async$self._async_evaluate$_withoutSlash$2($async$result, nodeForSpan));
  71275. positionalNodes.push(nodeForSpan);
  71276. case 4:
  71277. // for update
  71278. ++_i;
  71279. // goto for condition
  71280. $async$goto = 3;
  71281. break;
  71282. case 5:
  71283. // after for
  71284. t1 = type$.String;
  71285. named = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Value);
  71286. t2 = type$.AstNode;
  71287. namedNodes = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
  71288. t5 = A.MapExtensions_get_pairs($arguments.named, t1, type$.Expression), t5 = t5.get$iterator(t5);
  71289. case 7:
  71290. // for condition
  71291. if (!t5.moveNext$0()) {
  71292. // goto after for
  71293. $async$goto = 8;
  71294. break;
  71295. }
  71296. t6 = t5.get$current(t5);
  71297. $name = t6._0;
  71298. value = t6._1;
  71299. nodeForSpan = $async$self._async_evaluate$_expressionNode$1(value);
  71300. t6 = value.accept$1($async$self);
  71301. if (!t4._is(t6)) {
  71302. t7 = new A._Future($.Zone__current, t3);
  71303. t7._state = 8;
  71304. t7._resultOrListeners = t6;
  71305. t6 = t7;
  71306. }
  71307. $async$temp1 = named;
  71308. $async$temp2 = $name;
  71309. $async$goto = 9;
  71310. return A._asyncAwait(t6, $async$_async_evaluate$_evaluateArguments$1);
  71311. case 9:
  71312. // returning from await.
  71313. $async$temp1.$indexSet(0, $async$temp2, $async$self._async_evaluate$_withoutSlash$2($async$result, nodeForSpan));
  71314. namedNodes.$indexSet(0, $name, nodeForSpan);
  71315. // goto for condition
  71316. $async$goto = 7;
  71317. break;
  71318. case 8:
  71319. // after for
  71320. restArgs = $arguments.rest;
  71321. if (restArgs == null) {
  71322. $async$returnValue = new A._Record_5_named_namedNodes_positional_positionalNodes_separator([named, namedNodes, positional, positionalNodes, B.ListSeparator_undecided_null_undecided]);
  71323. // goto return
  71324. $async$goto = 1;
  71325. break;
  71326. }
  71327. $async$goto = 10;
  71328. return A._asyncAwait(restArgs.accept$1($async$self), $async$_async_evaluate$_evaluateArguments$1);
  71329. case 10:
  71330. // returning from await.
  71331. rest = $async$result;
  71332. restNodeForSpan = $async$self._async_evaluate$_expressionNode$1(restArgs);
  71333. if (rest instanceof A.SassMap) {
  71334. $async$self._async_evaluate$_addRestMap$4(named, rest, restArgs, new A._EvaluateVisitor__evaluateArguments_closure3());
  71335. t3 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
  71336. for (t4 = rest._map$_contents, t4 = J.get$iterator$ax(t4.get$keys(t4)), t5 = type$.SassString; t4.moveNext$0();)
  71337. t3.$indexSet(0, t5._as(t4.get$current(t4))._string$_text, restNodeForSpan);
  71338. namedNodes.addAll$1(0, t3);
  71339. separator = B.ListSeparator_undecided_null_undecided;
  71340. } else if (rest instanceof A.SassList) {
  71341. t3 = rest._list$_contents;
  71342. B.JSArray_methods.addAll$1(positional, new A.MappedListIterable(t3, new A._EvaluateVisitor__evaluateArguments_closure4($async$self, restNodeForSpan), A._arrayInstanceType(t3)._eval$1("MappedListIterable<1,Value>")));
  71343. B.JSArray_methods.addAll$1(positionalNodes, A.List_List$filled(t3.length, restNodeForSpan, false, t2));
  71344. separator = rest._separator;
  71345. if (rest instanceof A.SassArgumentList) {
  71346. rest._wereKeywordsAccessed = true;
  71347. rest._keywords.forEach$1(0, new A._EvaluateVisitor__evaluateArguments_closure5($async$self, named, restNodeForSpan, namedNodes));
  71348. }
  71349. } else {
  71350. positional.push($async$self._async_evaluate$_withoutSlash$2(rest, restNodeForSpan));
  71351. positionalNodes.push(restNodeForSpan);
  71352. separator = B.ListSeparator_undecided_null_undecided;
  71353. }
  71354. keywordRestArgs = $arguments.keywordRest;
  71355. if (keywordRestArgs == null) {
  71356. $async$returnValue = new A._Record_5_named_namedNodes_positional_positionalNodes_separator([named, namedNodes, positional, positionalNodes, separator]);
  71357. // goto return
  71358. $async$goto = 1;
  71359. break;
  71360. }
  71361. $async$goto = 11;
  71362. return A._asyncAwait(keywordRestArgs.accept$1($async$self), $async$_async_evaluate$_evaluateArguments$1);
  71363. case 11:
  71364. // returning from await.
  71365. keywordRest = $async$result;
  71366. keywordRestNodeForSpan = $async$self._async_evaluate$_expressionNode$1(keywordRestArgs);
  71367. if (keywordRest instanceof A.SassMap) {
  71368. $async$self._async_evaluate$_addRestMap$4(named, keywordRest, keywordRestArgs, new A._EvaluateVisitor__evaluateArguments_closure6());
  71369. t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
  71370. for (t2 = keywordRest._map$_contents, t2 = J.get$iterator$ax(t2.get$keys(t2)), t3 = type$.SassString; t2.moveNext$0();)
  71371. t1.$indexSet(0, t3._as(t2.get$current(t2))._string$_text, keywordRestNodeForSpan);
  71372. namedNodes.addAll$1(0, t1);
  71373. $async$returnValue = new A._Record_5_named_namedNodes_positional_positionalNodes_separator([named, namedNodes, positional, positionalNodes, separator]);
  71374. // goto return
  71375. $async$goto = 1;
  71376. break;
  71377. } else
  71378. throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Variabs + keywordRest.toString$0(0) + ").", keywordRestArgs.get$span(keywordRestArgs)));
  71379. case 1:
  71380. // return
  71381. return A._asyncReturn($async$returnValue, $async$completer);
  71382. }
  71383. });
  71384. return A._asyncStartSync($async$_async_evaluate$_evaluateArguments$1, $async$completer);
  71385. },
  71386. _async_evaluate$_evaluateMacroArguments$1(invocation) {
  71387. return this._evaluateMacroArguments$body$_EvaluateVisitor(invocation);
  71388. },
  71389. _evaluateMacroArguments$body$_EvaluateVisitor(invocation) {
  71390. var $async$goto = 0,
  71391. $async$completer = A._makeAsyncAwaitCompleter(type$.Record_2_List_Expression_and_Map_String_Expression),
  71392. $async$returnValue, $async$self = this, t2, positional, named, rest, restNodeForSpan, keywordRestArgs_, keywordRest, keywordRestNodeForSpan, t1, restArgs_;
  71393. var $async$_async_evaluate$_evaluateMacroArguments$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  71394. if ($async$errorCode === 1)
  71395. return A._asyncRethrow($async$result, $async$completer);
  71396. while (true)
  71397. switch ($async$goto) {
  71398. case 0:
  71399. // Function start
  71400. t1 = invocation.$arguments;
  71401. restArgs_ = t1.rest;
  71402. if (restArgs_ == null) {
  71403. $async$returnValue = new A._Record_2(t1.positional, t1.named);
  71404. // goto return
  71405. $async$goto = 1;
  71406. break;
  71407. }
  71408. t2 = t1.positional;
  71409. positional = A._setArrayType(t2.slice(0), A._arrayInstanceType(t2));
  71410. named = A.LinkedHashMap_LinkedHashMap$of(t1.named, type$.String, type$.Expression);
  71411. $async$goto = 3;
  71412. return A._asyncAwait(restArgs_.accept$1($async$self), $async$_async_evaluate$_evaluateMacroArguments$1);
  71413. case 3:
  71414. // returning from await.
  71415. rest = $async$result;
  71416. restNodeForSpan = $async$self._async_evaluate$_expressionNode$1(restArgs_);
  71417. if (rest instanceof A.SassMap)
  71418. $async$self._async_evaluate$_addRestMap$4(named, rest, invocation, new A._EvaluateVisitor__evaluateMacroArguments_closure3(restArgs_));
  71419. else if (rest instanceof A.SassList) {
  71420. t2 = rest._list$_contents;
  71421. B.JSArray_methods.addAll$1(positional, new A.MappedListIterable(t2, new A._EvaluateVisitor__evaluateMacroArguments_closure4($async$self, restNodeForSpan, restArgs_), A._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Expression>")));
  71422. if (rest instanceof A.SassArgumentList) {
  71423. rest._wereKeywordsAccessed = true;
  71424. rest._keywords.forEach$1(0, new A._EvaluateVisitor__evaluateMacroArguments_closure5($async$self, named, restNodeForSpan, restArgs_));
  71425. }
  71426. } else
  71427. positional.push(new A.ValueExpression($async$self._async_evaluate$_withoutSlash$2(rest, restNodeForSpan), restArgs_.get$span(restArgs_)));
  71428. keywordRestArgs_ = t1.keywordRest;
  71429. if (keywordRestArgs_ == null) {
  71430. $async$returnValue = new A._Record_2(positional, named);
  71431. // goto return
  71432. $async$goto = 1;
  71433. break;
  71434. }
  71435. $async$goto = 4;
  71436. return A._asyncAwait(keywordRestArgs_.accept$1($async$self), $async$_async_evaluate$_evaluateMacroArguments$1);
  71437. case 4:
  71438. // returning from await.
  71439. keywordRest = $async$result;
  71440. keywordRestNodeForSpan = $async$self._async_evaluate$_expressionNode$1(keywordRestArgs_);
  71441. if (keywordRest instanceof A.SassMap) {
  71442. $async$self._async_evaluate$_addRestMap$4(named, keywordRest, invocation, new A._EvaluateVisitor__evaluateMacroArguments_closure6($async$self, keywordRestNodeForSpan, keywordRestArgs_));
  71443. $async$returnValue = new A._Record_2(positional, named);
  71444. // goto return
  71445. $async$goto = 1;
  71446. break;
  71447. } else
  71448. throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Variabs + keywordRest.toString$0(0) + ").", keywordRestArgs_.get$span(keywordRestArgs_)));
  71449. case 1:
  71450. // return
  71451. return A._asyncReturn($async$returnValue, $async$completer);
  71452. }
  71453. });
  71454. return A._asyncStartSync($async$_async_evaluate$_evaluateMacroArguments$1, $async$completer);
  71455. },
  71456. _async_evaluate$_addRestMap$1$4(values, map, nodeWithSpan, convert) {
  71457. map._map$_contents.forEach$1(0, new A._EvaluateVisitor__addRestMap_closure0(this, values, convert, this._async_evaluate$_expressionNode$1(nodeWithSpan), map, nodeWithSpan));
  71458. },
  71459. _async_evaluate$_addRestMap$4(values, map, nodeWithSpan, convert) {
  71460. return this._async_evaluate$_addRestMap$1$4(values, map, nodeWithSpan, convert, type$.dynamic);
  71461. },
  71462. _async_evaluate$_verifyArguments$4(positional, named, $arguments, nodeWithSpan) {
  71463. return this._async_evaluate$_addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__verifyArguments_closure0($arguments, positional, named));
  71464. },
  71465. visitSelectorExpression$1(_, node) {
  71466. return this.visitSelectorExpression$body$_EvaluateVisitor(0, node);
  71467. },
  71468. visitSelectorExpression$body$_EvaluateVisitor(_, node) {
  71469. var $async$goto = 0,
  71470. $async$completer = A._makeAsyncAwaitCompleter(type$.Value),
  71471. $async$returnValue, $async$self = this, t1;
  71472. var $async$visitSelectorExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  71473. if ($async$errorCode === 1)
  71474. return A._asyncRethrow($async$result, $async$completer);
  71475. while (true)
  71476. switch ($async$goto) {
  71477. case 0:
  71478. // Function start
  71479. t1 = $async$self._async_evaluate$_styleRuleIgnoringAtRoot;
  71480. t1 = t1 == null ? null : t1.originalSelector.get$asSassList();
  71481. $async$returnValue = t1 == null ? B.C__SassNull : t1;
  71482. // goto return
  71483. $async$goto = 1;
  71484. break;
  71485. case 1:
  71486. // return
  71487. return A._asyncReturn($async$returnValue, $async$completer);
  71488. }
  71489. });
  71490. return A._asyncStartSync($async$visitSelectorExpression$1, $async$completer);
  71491. },
  71492. visitStringExpression$1(_, node) {
  71493. return this.visitStringExpression$body$_EvaluateVisitor(0, node);
  71494. },
  71495. visitStringExpression$body$_EvaluateVisitor(_, node) {
  71496. var $async$goto = 0,
  71497. $async$completer = A._makeAsyncAwaitCompleter(type$.SassString),
  71498. $async$returnValue, $async$self = this, t1, t2, t3, _i, value, t4, _0_0, text, oldInSupportsDeclaration;
  71499. var $async$visitStringExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  71500. if ($async$errorCode === 1)
  71501. return A._asyncRethrow($async$result, $async$completer);
  71502. while (true)
  71503. switch ($async$goto) {
  71504. case 0:
  71505. // Function start
  71506. oldInSupportsDeclaration = $async$self._async_evaluate$_inSupportsDeclaration;
  71507. $async$self._async_evaluate$_inSupportsDeclaration = false;
  71508. t1 = A._setArrayType([], type$.JSArray_String);
  71509. t2 = node.text.contents, t3 = t2.length, _i = 0;
  71510. case 3:
  71511. // for condition
  71512. if (!(_i < t3)) {
  71513. // goto after for
  71514. $async$goto = 5;
  71515. break;
  71516. }
  71517. value = t2[_i];
  71518. if (typeof value == "string") {
  71519. t4 = value;
  71520. // goto break $label0$0
  71521. $async$goto = 6;
  71522. break;
  71523. }
  71524. $async$goto = value instanceof A.Expression ? 7 : 8;
  71525. break;
  71526. case 7:
  71527. // then
  71528. $async$goto = 9;
  71529. return A._asyncAwait(value.accept$1($async$self), $async$visitStringExpression$1);
  71530. case 9:
  71531. // returning from await.
  71532. _0_0 = $async$result;
  71533. $label1$1: {
  71534. if (_0_0 instanceof A.SassString) {
  71535. text = _0_0._string$_text;
  71536. t4 = text;
  71537. break $label1$1;
  71538. }
  71539. t4 = $async$self._async_evaluate$_serialize$3$quote(_0_0, value, false);
  71540. break $label1$1;
  71541. }
  71542. // goto break $label0$0
  71543. $async$goto = 6;
  71544. break;
  71545. case 8:
  71546. // join
  71547. t4 = A.throwExpression(A.UnsupportedError$("Unknown interpolation value " + A.S(value)));
  71548. case 6:
  71549. // break $label0$0
  71550. t1.push(t4);
  71551. case 4:
  71552. // for update
  71553. ++_i;
  71554. // goto for condition
  71555. $async$goto = 3;
  71556. break;
  71557. case 5:
  71558. // after for
  71559. t1 = B.JSArray_methods.join$0(t1);
  71560. $async$self._async_evaluate$_inSupportsDeclaration = oldInSupportsDeclaration;
  71561. $async$returnValue = new A.SassString(t1, node.hasQuotes);
  71562. // goto return
  71563. $async$goto = 1;
  71564. break;
  71565. case 1:
  71566. // return
  71567. return A._asyncReturn($async$returnValue, $async$completer);
  71568. }
  71569. });
  71570. return A._asyncStartSync($async$visitStringExpression$1, $async$completer);
  71571. },
  71572. visitSupportsExpression$1(_, expression) {
  71573. return this.visitSupportsExpression$body$_EvaluateVisitor(0, expression);
  71574. },
  71575. visitSupportsExpression$body$_EvaluateVisitor(_, expression) {
  71576. var $async$goto = 0,
  71577. $async$completer = A._makeAsyncAwaitCompleter(type$.SassString),
  71578. $async$returnValue, $async$self = this, $async$temp1;
  71579. var $async$visitSupportsExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  71580. if ($async$errorCode === 1)
  71581. return A._asyncRethrow($async$result, $async$completer);
  71582. while (true)
  71583. switch ($async$goto) {
  71584. case 0:
  71585. // Function start
  71586. $async$temp1 = A;
  71587. $async$goto = 3;
  71588. return A._asyncAwait($async$self._async_evaluate$_visitSupportsCondition$1(expression.condition), $async$visitSupportsExpression$1);
  71589. case 3:
  71590. // returning from await.
  71591. $async$returnValue = new $async$temp1.SassString($async$result, false);
  71592. // goto return
  71593. $async$goto = 1;
  71594. break;
  71595. case 1:
  71596. // return
  71597. return A._asyncReturn($async$returnValue, $async$completer);
  71598. }
  71599. });
  71600. return A._asyncStartSync($async$visitSupportsExpression$1, $async$completer);
  71601. },
  71602. visitCssAtRule$1(node) {
  71603. return this.visitCssAtRule$body$_EvaluateVisitor(node);
  71604. },
  71605. visitCssAtRule$body$_EvaluateVisitor(node) {
  71606. var $async$goto = 0,
  71607. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  71608. $async$returnValue, $async$self = this, wasInKeyframes, wasInUnknownAtRule, t1;
  71609. var $async$visitCssAtRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  71610. if ($async$errorCode === 1)
  71611. return A._asyncRethrow($async$result, $async$completer);
  71612. while (true)
  71613. switch ($async$goto) {
  71614. case 0:
  71615. // Function start
  71616. if ($async$self._async_evaluate$_declarationName != null)
  71617. throw A.wrapException($async$self._async_evaluate$_exception$2(string$.At_rul, node.span));
  71618. if (node.isChildless) {
  71619. $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent").addChild$1(A.ModifiableCssAtRule$(node.name, node.span, true, node.value));
  71620. // goto return
  71621. $async$goto = 1;
  71622. break;
  71623. }
  71624. wasInKeyframes = $async$self._async_evaluate$_inKeyframes;
  71625. wasInUnknownAtRule = $async$self._async_evaluate$_inUnknownAtRule;
  71626. t1 = node.name;
  71627. if (A.unvendor(t1.value) === "keyframes")
  71628. $async$self._async_evaluate$_inKeyframes = true;
  71629. else
  71630. $async$self._async_evaluate$_inUnknownAtRule = true;
  71631. $async$goto = 3;
  71632. return A._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(A.ModifiableCssAtRule$(t1, node.span, false, node.value), new A._EvaluateVisitor_visitCssAtRule_closure1($async$self, node), false, new A._EvaluateVisitor_visitCssAtRule_closure2(), type$.ModifiableCssAtRule, type$.Null), $async$visitCssAtRule$1);
  71633. case 3:
  71634. // returning from await.
  71635. $async$self._async_evaluate$_inUnknownAtRule = wasInUnknownAtRule;
  71636. $async$self._async_evaluate$_inKeyframes = wasInKeyframes;
  71637. case 1:
  71638. // return
  71639. return A._asyncReturn($async$returnValue, $async$completer);
  71640. }
  71641. });
  71642. return A._asyncStartSync($async$visitCssAtRule$1, $async$completer);
  71643. },
  71644. visitCssComment$1(node) {
  71645. return this.visitCssComment$body$_EvaluateVisitor(node);
  71646. },
  71647. visitCssComment$body$_EvaluateVisitor(node) {
  71648. var $async$goto = 0,
  71649. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  71650. $async$self = this;
  71651. var $async$visitCssComment$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  71652. if ($async$errorCode === 1)
  71653. return A._asyncRethrow($async$result, $async$completer);
  71654. while (true)
  71655. switch ($async$goto) {
  71656. case 0:
  71657. // Function start
  71658. if ($async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent") === $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__root, "_root") && $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__endOfImports, "_endOfImports") === J.get$length$asx($async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__root, "_root").children._collection$_source))
  71659. $async$self._async_evaluate$__endOfImports = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__endOfImports, "_endOfImports") + 1;
  71660. $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent").addChild$1(new A.ModifiableCssComment(node.text, node.span));
  71661. // implicit return
  71662. return A._asyncReturn(null, $async$completer);
  71663. }
  71664. });
  71665. return A._asyncStartSync($async$visitCssComment$1, $async$completer);
  71666. },
  71667. visitCssDeclaration$1(node) {
  71668. return this.visitCssDeclaration$body$_EvaluateVisitor(node);
  71669. },
  71670. visitCssDeclaration$body$_EvaluateVisitor(node) {
  71671. var $async$goto = 0,
  71672. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  71673. $async$self = this;
  71674. var $async$visitCssDeclaration$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  71675. if ($async$errorCode === 1)
  71676. return A._asyncRethrow($async$result, $async$completer);
  71677. while (true)
  71678. switch ($async$goto) {
  71679. case 0:
  71680. // Function start
  71681. $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent").addChild$1(A.ModifiableCssDeclaration$(node.name, node.value, node.span, null, node.parsedAsCustomProperty, null, node.valueSpanForMap));
  71682. // implicit return
  71683. return A._asyncReturn(null, $async$completer);
  71684. }
  71685. });
  71686. return A._asyncStartSync($async$visitCssDeclaration$1, $async$completer);
  71687. },
  71688. visitCssImport$1(node) {
  71689. return this.visitCssImport$body$_EvaluateVisitor(node);
  71690. },
  71691. visitCssImport$body$_EvaluateVisitor(node) {
  71692. var $async$goto = 0,
  71693. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  71694. $async$self = this, t1, modifiableNode;
  71695. var $async$visitCssImport$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  71696. if ($async$errorCode === 1)
  71697. return A._asyncRethrow($async$result, $async$completer);
  71698. while (true)
  71699. switch ($async$goto) {
  71700. case 0:
  71701. // Function start
  71702. modifiableNode = new A.ModifiableCssImport(node.url, node.modifiers, node.span);
  71703. if ($async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent") !== $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__root, "_root"))
  71704. $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent").addChild$1(modifiableNode);
  71705. else if ($async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__endOfImports, "_endOfImports") === J.get$length$asx($async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__root, "_root").children._collection$_source)) {
  71706. $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__root, "_root").addChild$1(modifiableNode);
  71707. $async$self._async_evaluate$__endOfImports = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__endOfImports, "_endOfImports") + 1;
  71708. } else {
  71709. t1 = $async$self._async_evaluate$_outOfOrderImports;
  71710. (t1 == null ? $async$self._async_evaluate$_outOfOrderImports = A._setArrayType([], type$.JSArray_ModifiableCssImport) : t1).push(modifiableNode);
  71711. }
  71712. // implicit return
  71713. return A._asyncReturn(null, $async$completer);
  71714. }
  71715. });
  71716. return A._asyncStartSync($async$visitCssImport$1, $async$completer);
  71717. },
  71718. visitCssKeyframeBlock$1(node) {
  71719. return this.visitCssKeyframeBlock$body$_EvaluateVisitor(node);
  71720. },
  71721. visitCssKeyframeBlock$body$_EvaluateVisitor(node) {
  71722. var $async$goto = 0,
  71723. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  71724. $async$self = this;
  71725. var $async$visitCssKeyframeBlock$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  71726. if ($async$errorCode === 1)
  71727. return A._asyncRethrow($async$result, $async$completer);
  71728. while (true)
  71729. switch ($async$goto) {
  71730. case 0:
  71731. // Function start
  71732. $async$goto = 2;
  71733. return A._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(A.ModifiableCssKeyframeBlock$(node.selector, node.span), new A._EvaluateVisitor_visitCssKeyframeBlock_closure1($async$self, node), false, new A._EvaluateVisitor_visitCssKeyframeBlock_closure2(), type$.ModifiableCssKeyframeBlock, type$.Null), $async$visitCssKeyframeBlock$1);
  71734. case 2:
  71735. // returning from await.
  71736. // implicit return
  71737. return A._asyncReturn(null, $async$completer);
  71738. }
  71739. });
  71740. return A._asyncStartSync($async$visitCssKeyframeBlock$1, $async$completer);
  71741. },
  71742. visitCssMediaRule$1(node) {
  71743. return this.visitCssMediaRule$body$_EvaluateVisitor(node);
  71744. },
  71745. visitCssMediaRule$body$_EvaluateVisitor(node) {
  71746. var $async$goto = 0,
  71747. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  71748. $async$returnValue, $async$self = this, mergedQueries, t1, mergedSources, t2, t3;
  71749. var $async$visitCssMediaRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  71750. if ($async$errorCode === 1)
  71751. return A._asyncRethrow($async$result, $async$completer);
  71752. while (true)
  71753. switch ($async$goto) {
  71754. case 0:
  71755. // Function start
  71756. if ($async$self._async_evaluate$_declarationName != null)
  71757. throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Media_, node.span));
  71758. mergedQueries = A.NullableExtension_andThen($async$self._async_evaluate$_mediaQueries, new A._EvaluateVisitor_visitCssMediaRule_closure2($async$self, node));
  71759. t1 = mergedQueries == null;
  71760. if (!t1 && J.get$isEmpty$asx(mergedQueries)) {
  71761. // goto return
  71762. $async$goto = 1;
  71763. break;
  71764. }
  71765. if (t1)
  71766. mergedSources = B.Set_empty1;
  71767. else {
  71768. t2 = $async$self._async_evaluate$_mediaQuerySources;
  71769. t2.toString;
  71770. t2 = A.LinkedHashSet_LinkedHashSet$of(t2, type$.CssMediaQuery);
  71771. t3 = $async$self._async_evaluate$_mediaQueries;
  71772. t3.toString;
  71773. t2.addAll$1(0, t3);
  71774. t2.addAll$1(0, node.queries);
  71775. mergedSources = t2;
  71776. }
  71777. t1 = t1 ? node.queries : mergedQueries;
  71778. $async$goto = 3;
  71779. return A._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(A.ModifiableCssMediaRule$(t1, node.span), new A._EvaluateVisitor_visitCssMediaRule_closure3($async$self, mergedQueries, node, mergedSources), false, new A._EvaluateVisitor_visitCssMediaRule_closure4(mergedSources), type$.ModifiableCssMediaRule, type$.Null), $async$visitCssMediaRule$1);
  71780. case 3:
  71781. // returning from await.
  71782. case 1:
  71783. // return
  71784. return A._asyncReturn($async$returnValue, $async$completer);
  71785. }
  71786. });
  71787. return A._asyncStartSync($async$visitCssMediaRule$1, $async$completer);
  71788. },
  71789. visitCssStyleRule$1(node) {
  71790. return this.visitCssStyleRule$body$_EvaluateVisitor(node);
  71791. },
  71792. visitCssStyleRule$body$_EvaluateVisitor(node) {
  71793. var $async$goto = 0,
  71794. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  71795. $async$self = this, t1, styleRule, t2, nest, t3, originalSelector, rule, oldAtRootExcludingStyleRule, _0_1, lastChild;
  71796. var $async$visitCssStyleRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  71797. if ($async$errorCode === 1)
  71798. return A._asyncRethrow($async$result, $async$completer);
  71799. while (true)
  71800. switch ($async$goto) {
  71801. case 0:
  71802. // Function start
  71803. if ($async$self._async_evaluate$_declarationName != null)
  71804. throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Style_n, node.span));
  71805. else if ($async$self._async_evaluate$_inKeyframes && $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent") instanceof A.ModifiableCssKeyframeBlock)
  71806. throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Style_k, node.span));
  71807. t1 = $async$self._async_evaluate$_atRootExcludingStyleRule;
  71808. styleRule = t1 ? null : $async$self._async_evaluate$_styleRuleIgnoringAtRoot;
  71809. t2 = t1 ? null : $async$self._async_evaluate$_styleRuleIgnoringAtRoot;
  71810. t2 = t2 == null ? null : t2.fromPlainCss;
  71811. nest = t2 !== true;
  71812. t2 = node._style_rule$_selector._box$_inner;
  71813. if (nest) {
  71814. t2 = t2.value;
  71815. t3 = styleRule == null ? null : styleRule.originalSelector;
  71816. originalSelector = t2.nestWithin$3$implicitParent$preserveParentSelectors(t3, !t1, node.fromPlainCss);
  71817. } else
  71818. originalSelector = t2.value;
  71819. rule = A.ModifiableCssStyleRule$($async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__extensionStore, "_extensionStore").addSelector$2(originalSelector, $async$self._async_evaluate$_mediaQueries), node.span, node.fromPlainCss, originalSelector);
  71820. oldAtRootExcludingStyleRule = $async$self._async_evaluate$_atRootExcludingStyleRule;
  71821. $async$self._async_evaluate$_atRootExcludingStyleRule = false;
  71822. t1 = nest ? new A._EvaluateVisitor_visitCssStyleRule_closure1() : null;
  71823. $async$goto = 2;
  71824. return A._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(rule, new A._EvaluateVisitor_visitCssStyleRule_closure2($async$self, rule, node), false, t1, type$.ModifiableCssStyleRule, type$.Null), $async$visitCssStyleRule$1);
  71825. case 2:
  71826. // returning from await.
  71827. $async$self._async_evaluate$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  71828. t1 = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent").children._collection$_source;
  71829. t2 = J.getInterceptor$asx(t1);
  71830. _0_1 = t2.get$length(t1);
  71831. if (_0_1 >= 1) {
  71832. lastChild = t2.elementAt$1(t1, _0_1 - 1);
  71833. t1 = styleRule == null;
  71834. } else {
  71835. lastChild = null;
  71836. t1 = false;
  71837. }
  71838. if (t1)
  71839. lastChild.isGroupEnd = true;
  71840. // implicit return
  71841. return A._asyncReturn(null, $async$completer);
  71842. }
  71843. });
  71844. return A._asyncStartSync($async$visitCssStyleRule$1, $async$completer);
  71845. },
  71846. visitCssStylesheet$1(node) {
  71847. return this.visitCssStylesheet$body$_EvaluateVisitor(node);
  71848. },
  71849. visitCssStylesheet$body$_EvaluateVisitor(node) {
  71850. var $async$goto = 0,
  71851. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  71852. $async$self = this, t1;
  71853. var $async$visitCssStylesheet$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  71854. if ($async$errorCode === 1)
  71855. return A._asyncRethrow($async$result, $async$completer);
  71856. while (true)
  71857. switch ($async$goto) {
  71858. case 0:
  71859. // Function start
  71860. t1 = J.get$iterator$ax(node.get$children(node));
  71861. case 2:
  71862. // for condition
  71863. if (!t1.moveNext$0()) {
  71864. // goto after for
  71865. $async$goto = 3;
  71866. break;
  71867. }
  71868. $async$goto = 4;
  71869. return A._asyncAwait(t1.get$current(t1).accept$1($async$self), $async$visitCssStylesheet$1);
  71870. case 4:
  71871. // returning from await.
  71872. // goto for condition
  71873. $async$goto = 2;
  71874. break;
  71875. case 3:
  71876. // after for
  71877. // implicit return
  71878. return A._asyncReturn(null, $async$completer);
  71879. }
  71880. });
  71881. return A._asyncStartSync($async$visitCssStylesheet$1, $async$completer);
  71882. },
  71883. visitCssSupportsRule$1(node) {
  71884. return this.visitCssSupportsRule$body$_EvaluateVisitor(node);
  71885. },
  71886. visitCssSupportsRule$body$_EvaluateVisitor(node) {
  71887. var $async$goto = 0,
  71888. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  71889. $async$self = this;
  71890. var $async$visitCssSupportsRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  71891. if ($async$errorCode === 1)
  71892. return A._asyncRethrow($async$result, $async$completer);
  71893. while (true)
  71894. switch ($async$goto) {
  71895. case 0:
  71896. // Function start
  71897. if ($async$self._async_evaluate$_declarationName != null)
  71898. throw A.wrapException($async$self._async_evaluate$_exception$2(string$.Suppor, node.span));
  71899. $async$goto = 2;
  71900. return A._asyncAwait($async$self._async_evaluate$_withParent$2$4$scopeWhen$through(A.ModifiableCssSupportsRule$(node.condition, node.span), new A._EvaluateVisitor_visitCssSupportsRule_closure1($async$self, node), false, new A._EvaluateVisitor_visitCssSupportsRule_closure2(), type$.ModifiableCssSupportsRule, type$.Null), $async$visitCssSupportsRule$1);
  71901. case 2:
  71902. // returning from await.
  71903. // implicit return
  71904. return A._asyncReturn(null, $async$completer);
  71905. }
  71906. });
  71907. return A._asyncStartSync($async$visitCssSupportsRule$1, $async$completer);
  71908. },
  71909. _async_evaluate$_handleReturn$1$2(list, callback) {
  71910. return this._handleReturn$body$_EvaluateVisitor(list, callback);
  71911. },
  71912. _async_evaluate$_handleReturn$2(list, callback) {
  71913. return this._async_evaluate$_handleReturn$1$2(list, callback, type$.dynamic);
  71914. },
  71915. _handleReturn$body$_EvaluateVisitor(list, callback) {
  71916. var $async$goto = 0,
  71917. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  71918. $async$returnValue, t1, _i, _0_0;
  71919. var $async$_async_evaluate$_handleReturn$1$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  71920. if ($async$errorCode === 1)
  71921. return A._asyncRethrow($async$result, $async$completer);
  71922. while (true)
  71923. switch ($async$goto) {
  71924. case 0:
  71925. // Function start
  71926. t1 = list.length, _i = 0;
  71927. case 3:
  71928. // for condition
  71929. if (!(_i < list.length)) {
  71930. // goto after for
  71931. $async$goto = 5;
  71932. break;
  71933. }
  71934. $async$goto = 6;
  71935. return A._asyncAwait(callback.call$1(list[_i]), $async$_async_evaluate$_handleReturn$1$2);
  71936. case 6:
  71937. // returning from await.
  71938. _0_0 = $async$result;
  71939. if (_0_0 != null) {
  71940. $async$returnValue = _0_0;
  71941. // goto return
  71942. $async$goto = 1;
  71943. break;
  71944. }
  71945. case 4:
  71946. // for update
  71947. list.length === t1 || (0, A.throwConcurrentModificationError)(list), ++_i;
  71948. // goto for condition
  71949. $async$goto = 3;
  71950. break;
  71951. case 5:
  71952. // after for
  71953. $async$returnValue = null;
  71954. // goto return
  71955. $async$goto = 1;
  71956. break;
  71957. case 1:
  71958. // return
  71959. return A._asyncReturn($async$returnValue, $async$completer);
  71960. }
  71961. });
  71962. return A._asyncStartSync($async$_async_evaluate$_handleReturn$1$2, $async$completer);
  71963. },
  71964. _async_evaluate$_withEnvironment$1$2(environment, callback, $T) {
  71965. return this._withEnvironment$body$_EvaluateVisitor(environment, callback, $T, $T);
  71966. },
  71967. _withEnvironment$body$_EvaluateVisitor(environment, callback, $T, $async$type) {
  71968. var $async$goto = 0,
  71969. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  71970. $async$returnValue, $async$self = this, result, oldEnvironment;
  71971. var $async$_async_evaluate$_withEnvironment$1$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  71972. if ($async$errorCode === 1)
  71973. return A._asyncRethrow($async$result, $async$completer);
  71974. while (true)
  71975. switch ($async$goto) {
  71976. case 0:
  71977. // Function start
  71978. oldEnvironment = $async$self._async_evaluate$_environment;
  71979. $async$self._async_evaluate$_environment = environment;
  71980. $async$goto = 3;
  71981. return A._asyncAwait(callback.call$0(), $async$_async_evaluate$_withEnvironment$1$2);
  71982. case 3:
  71983. // returning from await.
  71984. result = $async$result;
  71985. $async$self._async_evaluate$_environment = oldEnvironment;
  71986. $async$returnValue = result;
  71987. // goto return
  71988. $async$goto = 1;
  71989. break;
  71990. case 1:
  71991. // return
  71992. return A._asyncReturn($async$returnValue, $async$completer);
  71993. }
  71994. });
  71995. return A._asyncStartSync($async$_async_evaluate$_withEnvironment$1$2, $async$completer);
  71996. },
  71997. _async_evaluate$_interpolationToValue$3$trim$warnForColor(interpolation, trim, warnForColor) {
  71998. return this._interpolationToValue$body$_EvaluateVisitor(interpolation, trim, warnForColor);
  71999. },
  72000. _async_evaluate$_interpolationToValue$1(interpolation) {
  72001. return this._async_evaluate$_interpolationToValue$3$trim$warnForColor(interpolation, false, false);
  72002. },
  72003. _async_evaluate$_interpolationToValue$2$warnForColor(interpolation, warnForColor) {
  72004. return this._async_evaluate$_interpolationToValue$3$trim$warnForColor(interpolation, false, warnForColor);
  72005. },
  72006. _interpolationToValue$body$_EvaluateVisitor(interpolation, trim, warnForColor) {
  72007. var $async$goto = 0,
  72008. $async$completer = A._makeAsyncAwaitCompleter(type$.CssValue_String),
  72009. $async$returnValue, $async$self = this, result, t1;
  72010. var $async$_async_evaluate$_interpolationToValue$3$trim$warnForColor = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  72011. if ($async$errorCode === 1)
  72012. return A._asyncRethrow($async$result, $async$completer);
  72013. while (true)
  72014. switch ($async$goto) {
  72015. case 0:
  72016. // Function start
  72017. $async$goto = 3;
  72018. return A._asyncAwait($async$self._async_evaluate$_performInterpolation$2$warnForColor(interpolation, warnForColor), $async$_async_evaluate$_interpolationToValue$3$trim$warnForColor);
  72019. case 3:
  72020. // returning from await.
  72021. result = $async$result;
  72022. t1 = trim ? A.trimAscii(result, true) : result;
  72023. $async$returnValue = new A.CssValue(t1, interpolation.span, type$.CssValue_String);
  72024. // goto return
  72025. $async$goto = 1;
  72026. break;
  72027. case 1:
  72028. // return
  72029. return A._asyncReturn($async$returnValue, $async$completer);
  72030. }
  72031. });
  72032. return A._asyncStartSync($async$_async_evaluate$_interpolationToValue$3$trim$warnForColor, $async$completer);
  72033. },
  72034. _async_evaluate$_performInterpolation$2$warnForColor(interpolation, warnForColor) {
  72035. return this._performInterpolation$body$_EvaluateVisitor(interpolation, warnForColor);
  72036. },
  72037. _async_evaluate$_performInterpolation$1(interpolation) {
  72038. return this._async_evaluate$_performInterpolation$2$warnForColor(interpolation, false);
  72039. },
  72040. _performInterpolation$body$_EvaluateVisitor(interpolation, warnForColor) {
  72041. var $async$goto = 0,
  72042. $async$completer = A._makeAsyncAwaitCompleter(type$.String),
  72043. $async$returnValue, $async$self = this;
  72044. var $async$_async_evaluate$_performInterpolation$2$warnForColor = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  72045. if ($async$errorCode === 1)
  72046. return A._asyncRethrow($async$result, $async$completer);
  72047. while (true)
  72048. switch ($async$goto) {
  72049. case 0:
  72050. // Function start
  72051. $async$goto = 3;
  72052. return A._asyncAwait($async$self._async_evaluate$_performInterpolationHelper$3$sourceMap$warnForColor(interpolation, false, warnForColor), $async$_async_evaluate$_performInterpolation$2$warnForColor);
  72053. case 3:
  72054. // returning from await.
  72055. $async$returnValue = $async$result._0;
  72056. // goto return
  72057. $async$goto = 1;
  72058. break;
  72059. case 1:
  72060. // return
  72061. return A._asyncReturn($async$returnValue, $async$completer);
  72062. }
  72063. });
  72064. return A._asyncStartSync($async$_async_evaluate$_performInterpolation$2$warnForColor, $async$completer);
  72065. },
  72066. _async_evaluate$_performInterpolationWithMap$2$warnForColor(interpolation, warnForColor) {
  72067. return this._performInterpolationWithMap$body$_EvaluateVisitor(interpolation, true);
  72068. },
  72069. _performInterpolationWithMap$body$_EvaluateVisitor(interpolation, warnForColor) {
  72070. var $async$goto = 0,
  72071. $async$completer = A._makeAsyncAwaitCompleter(type$.Record_2_String_and_InterpolationMap),
  72072. $async$returnValue, $async$self = this, _0_0, result, map;
  72073. var $async$_async_evaluate$_performInterpolationWithMap$2$warnForColor = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  72074. if ($async$errorCode === 1)
  72075. return A._asyncRethrow($async$result, $async$completer);
  72076. while (true)
  72077. switch ($async$goto) {
  72078. case 0:
  72079. // Function start
  72080. $async$goto = 3;
  72081. return A._asyncAwait($async$self._async_evaluate$_performInterpolationHelper$3$sourceMap$warnForColor(interpolation, true, true), $async$_async_evaluate$_performInterpolationWithMap$2$warnForColor);
  72082. case 3:
  72083. // returning from await.
  72084. _0_0 = $async$result;
  72085. result = _0_0._0;
  72086. map = _0_0._1;
  72087. map.toString;
  72088. $async$returnValue = new A._Record_2(result, map);
  72089. // goto return
  72090. $async$goto = 1;
  72091. break;
  72092. case 1:
  72093. // return
  72094. return A._asyncReturn($async$returnValue, $async$completer);
  72095. }
  72096. });
  72097. return A._asyncStartSync($async$_async_evaluate$_performInterpolationWithMap$2$warnForColor, $async$completer);
  72098. },
  72099. _async_evaluate$_performInterpolationHelper$3$sourceMap$warnForColor(interpolation, sourceMap, warnForColor) {
  72100. return this._performInterpolationHelper$body$_EvaluateVisitor(interpolation, sourceMap, warnForColor);
  72101. },
  72102. _performInterpolationHelper$body$_EvaluateVisitor(interpolation, sourceMap, warnForColor) {
  72103. var $async$goto = 0,
  72104. $async$completer = A._makeAsyncAwaitCompleter(type$.Record_2_String_and_nullable_InterpolationMap),
  72105. $async$returnValue, $async$self = this, t1, t2, t3, t4, t5, t6, first, _i, t7, value, result, result0, t8, targetLocations, oldInSupportsDeclaration;
  72106. var $async$_async_evaluate$_performInterpolationHelper$3$sourceMap$warnForColor = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  72107. if ($async$errorCode === 1)
  72108. return A._asyncRethrow($async$result, $async$completer);
  72109. while (true)
  72110. switch ($async$goto) {
  72111. case 0:
  72112. // Function start
  72113. targetLocations = sourceMap ? A._setArrayType([], type$.JSArray_SourceLocation) : null;
  72114. oldInSupportsDeclaration = $async$self._async_evaluate$_inSupportsDeclaration;
  72115. $async$self._async_evaluate$_inSupportsDeclaration = false;
  72116. t1 = interpolation.contents, t2 = t1.length, t3 = type$.Expression, t4 = targetLocations == null, t5 = interpolation.span, t6 = type$.Object, first = true, _i = 0, t7 = "";
  72117. case 3:
  72118. // for condition
  72119. if (!(_i < t2)) {
  72120. // goto after for
  72121. $async$goto = 5;
  72122. break;
  72123. }
  72124. value = t1[_i];
  72125. if (!first)
  72126. if (!t4)
  72127. targetLocations.push(A.SourceLocation$(t7.length, null, null, null));
  72128. if (typeof value == "string") {
  72129. t7 += value;
  72130. // goto for update
  72131. $async$goto = 4;
  72132. break;
  72133. }
  72134. t3._as(value);
  72135. $async$goto = 6;
  72136. return A._asyncAwait(value.accept$1($async$self), $async$_async_evaluate$_performInterpolationHelper$3$sourceMap$warnForColor);
  72137. case 6:
  72138. // returning from await.
  72139. result = $async$result;
  72140. if (warnForColor && $.$get$namesByColor().containsKey$1(result)) {
  72141. result0 = A.List_List$from([""], false, t6);
  72142. result0.fixed$length = Array;
  72143. result0.immutable$list = Array;
  72144. t8 = $.$get$namesByColor();
  72145. $async$self._async_evaluate$_warn$2(string$.You_pr + A.S(t8.$index(0, result)) + string$.x20in_in + result.toString$0(0) + string$.x2c_whicw + A.S(t8.$index(0, result)) + string$.x22x29__If + new A.BinaryOperationExpression(B.BinaryOperator_u15, new A.StringExpression(new A.Interpolation(result0, B.List_null, t5), true), value, false).toString$0(0) + "'.", value.get$span(value));
  72146. }
  72147. t7 += $async$self._async_evaluate$_serialize$3$quote(result, value, false);
  72148. case 4:
  72149. // for update
  72150. ++_i, first = false;
  72151. // goto for condition
  72152. $async$goto = 3;
  72153. break;
  72154. case 5:
  72155. // after for
  72156. $async$self._async_evaluate$_inSupportsDeclaration = oldInSupportsDeclaration;
  72157. $async$returnValue = new A._Record_2(t7.charCodeAt(0) == 0 ? t7 : t7, A.NullableExtension_andThen(targetLocations, new A._EvaluateVisitor__performInterpolationHelper_closure0(interpolation)));
  72158. // goto return
  72159. $async$goto = 1;
  72160. break;
  72161. case 1:
  72162. // return
  72163. return A._asyncReturn($async$returnValue, $async$completer);
  72164. }
  72165. });
  72166. return A._asyncStartSync($async$_async_evaluate$_performInterpolationHelper$3$sourceMap$warnForColor, $async$completer);
  72167. },
  72168. _evaluateToCss$2$quote(expression, quote) {
  72169. return this._evaluateToCss$body$_EvaluateVisitor(expression, quote);
  72170. },
  72171. _evaluateToCss$1(expression) {
  72172. return this._evaluateToCss$2$quote(expression, true);
  72173. },
  72174. _evaluateToCss$body$_EvaluateVisitor(expression, quote) {
  72175. var $async$goto = 0,
  72176. $async$completer = A._makeAsyncAwaitCompleter(type$.String),
  72177. $async$returnValue, $async$self = this, t1;
  72178. var $async$_evaluateToCss$2$quote = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  72179. if ($async$errorCode === 1)
  72180. return A._asyncRethrow($async$result, $async$completer);
  72181. while (true)
  72182. switch ($async$goto) {
  72183. case 0:
  72184. // Function start
  72185. t1 = expression.accept$1($async$self);
  72186. $async$goto = 3;
  72187. return A._asyncAwait(type$.Future_Value._is(t1) ? t1 : A._Future$value(t1, type$.Value), $async$_evaluateToCss$2$quote);
  72188. case 3:
  72189. // returning from await.
  72190. $async$returnValue = $async$self._async_evaluate$_serialize$3$quote($async$result, expression, quote);
  72191. // goto return
  72192. $async$goto = 1;
  72193. break;
  72194. case 1:
  72195. // return
  72196. return A._asyncReturn($async$returnValue, $async$completer);
  72197. }
  72198. });
  72199. return A._asyncStartSync($async$_evaluateToCss$2$quote, $async$completer);
  72200. },
  72201. _async_evaluate$_serialize$3$quote(value, nodeWithSpan, quote) {
  72202. return this._async_evaluate$_addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__serialize_closure0(value, quote));
  72203. },
  72204. _async_evaluate$_serialize$2(value, nodeWithSpan) {
  72205. return this._async_evaluate$_serialize$3$quote(value, nodeWithSpan, true);
  72206. },
  72207. _async_evaluate$_expressionNode$1(expression) {
  72208. var t1;
  72209. if (expression instanceof A.VariableExpression) {
  72210. t1 = this._async_evaluate$_addExceptionSpan$2(expression, new A._EvaluateVisitor__expressionNode_closure0(this, expression));
  72211. return t1 == null ? expression : t1;
  72212. } else
  72213. return expression;
  72214. },
  72215. _async_evaluate$_withParent$2$4$scopeWhen$through(node, callback, scopeWhen, through, $S, $T) {
  72216. return this._withParent$body$_EvaluateVisitor(node, callback, scopeWhen, through, $S, $T, $T);
  72217. },
  72218. _async_evaluate$_withParent$2$2(node, callback, $S, $T) {
  72219. return this._async_evaluate$_withParent$2$4$scopeWhen$through(node, callback, true, null, $S, $T);
  72220. },
  72221. _async_evaluate$_withParent$2$3$scopeWhen(node, callback, scopeWhen, $S, $T) {
  72222. return this._async_evaluate$_withParent$2$4$scopeWhen$through(node, callback, scopeWhen, null, $S, $T);
  72223. },
  72224. _withParent$body$_EvaluateVisitor(node, callback, scopeWhen, through, $S, $T, $async$type) {
  72225. var $async$goto = 0,
  72226. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  72227. $async$returnValue, $async$self = this, t1, result;
  72228. var $async$_async_evaluate$_withParent$2$4$scopeWhen$through = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  72229. if ($async$errorCode === 1)
  72230. return A._asyncRethrow($async$result, $async$completer);
  72231. while (true)
  72232. switch ($async$goto) {
  72233. case 0:
  72234. // Function start
  72235. $async$self._async_evaluate$_addChild$2$through(node, through);
  72236. t1 = $async$self._async_evaluate$_assertInModule$2($async$self._async_evaluate$__parent, "__parent");
  72237. $async$self._async_evaluate$__parent = node;
  72238. $async$goto = 3;
  72239. return A._asyncAwait($async$self._async_evaluate$_environment.scope$1$2$when(callback, scopeWhen, $T), $async$_async_evaluate$_withParent$2$4$scopeWhen$through);
  72240. case 3:
  72241. // returning from await.
  72242. result = $async$result;
  72243. $async$self._async_evaluate$__parent = t1;
  72244. $async$returnValue = result;
  72245. // goto return
  72246. $async$goto = 1;
  72247. break;
  72248. case 1:
  72249. // return
  72250. return A._asyncReturn($async$returnValue, $async$completer);
  72251. }
  72252. });
  72253. return A._asyncStartSync($async$_async_evaluate$_withParent$2$4$scopeWhen$through, $async$completer);
  72254. },
  72255. _async_evaluate$_addChild$2$through(node, through) {
  72256. var _0_0, grandparent, t1,
  72257. $parent = this._async_evaluate$_assertInModule$2(this._async_evaluate$__parent, "__parent");
  72258. if (through != null) {
  72259. for (; through.call$1($parent); $parent = _0_0) {
  72260. _0_0 = $parent._parent;
  72261. if (_0_0 == null)
  72262. throw A.wrapException(A.ArgumentError$(string$.throug + node.toString$0(0) + ".", null));
  72263. }
  72264. if ($parent.get$hasFollowingSibling()) {
  72265. grandparent = $parent._parent;
  72266. t1 = grandparent.children;
  72267. if ($parent.equalsIgnoringChildren$1(t1.get$last(t1)))
  72268. $parent = type$.ModifiableCssParentNode._as(t1.get$last(t1));
  72269. else {
  72270. $parent = $parent.copyWithoutChildren$0();
  72271. grandparent.addChild$1($parent);
  72272. }
  72273. }
  72274. }
  72275. $parent.addChild$1(node);
  72276. },
  72277. _async_evaluate$_addChild$1(node) {
  72278. return this._async_evaluate$_addChild$2$through(node, null);
  72279. },
  72280. _async_evaluate$_withStyleRule$1$2(rule, callback, $T) {
  72281. return this._withStyleRule$body$_EvaluateVisitor(rule, callback, $T, $T);
  72282. },
  72283. _withStyleRule$body$_EvaluateVisitor(rule, callback, $T, $async$type) {
  72284. var $async$goto = 0,
  72285. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  72286. $async$returnValue, $async$self = this, result, oldRule;
  72287. var $async$_async_evaluate$_withStyleRule$1$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  72288. if ($async$errorCode === 1)
  72289. return A._asyncRethrow($async$result, $async$completer);
  72290. while (true)
  72291. switch ($async$goto) {
  72292. case 0:
  72293. // Function start
  72294. oldRule = $async$self._async_evaluate$_styleRuleIgnoringAtRoot;
  72295. $async$self._async_evaluate$_styleRuleIgnoringAtRoot = rule;
  72296. $async$goto = 3;
  72297. return A._asyncAwait(callback.call$0(), $async$_async_evaluate$_withStyleRule$1$2);
  72298. case 3:
  72299. // returning from await.
  72300. result = $async$result;
  72301. $async$self._async_evaluate$_styleRuleIgnoringAtRoot = oldRule;
  72302. $async$returnValue = result;
  72303. // goto return
  72304. $async$goto = 1;
  72305. break;
  72306. case 1:
  72307. // return
  72308. return A._asyncReturn($async$returnValue, $async$completer);
  72309. }
  72310. });
  72311. return A._asyncStartSync($async$_async_evaluate$_withStyleRule$1$2, $async$completer);
  72312. },
  72313. _async_evaluate$_withMediaQueries$1$3(queries, sources, callback, $T) {
  72314. return this._withMediaQueries$body$_EvaluateVisitor(queries, sources, callback, $T, $T);
  72315. },
  72316. _withMediaQueries$body$_EvaluateVisitor(queries, sources, callback, $T, $async$type) {
  72317. var $async$goto = 0,
  72318. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  72319. $async$returnValue, $async$self = this, result, oldMediaQueries, oldSources;
  72320. var $async$_async_evaluate$_withMediaQueries$1$3 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  72321. if ($async$errorCode === 1)
  72322. return A._asyncRethrow($async$result, $async$completer);
  72323. while (true)
  72324. switch ($async$goto) {
  72325. case 0:
  72326. // Function start
  72327. oldMediaQueries = $async$self._async_evaluate$_mediaQueries;
  72328. oldSources = $async$self._async_evaluate$_mediaQuerySources;
  72329. $async$self._async_evaluate$_mediaQueries = queries;
  72330. $async$self._async_evaluate$_mediaQuerySources = sources;
  72331. $async$goto = 3;
  72332. return A._asyncAwait(callback.call$0(), $async$_async_evaluate$_withMediaQueries$1$3);
  72333. case 3:
  72334. // returning from await.
  72335. result = $async$result;
  72336. $async$self._async_evaluate$_mediaQueries = oldMediaQueries;
  72337. $async$self._async_evaluate$_mediaQuerySources = oldSources;
  72338. $async$returnValue = result;
  72339. // goto return
  72340. $async$goto = 1;
  72341. break;
  72342. case 1:
  72343. // return
  72344. return A._asyncReturn($async$returnValue, $async$completer);
  72345. }
  72346. });
  72347. return A._asyncStartSync($async$_async_evaluate$_withMediaQueries$1$3, $async$completer);
  72348. },
  72349. _async_evaluate$_withStackFrame$1$3(member, nodeWithSpan, callback, $T) {
  72350. return this._withStackFrame$body$_EvaluateVisitor(member, nodeWithSpan, callback, $T, $T);
  72351. },
  72352. _withStackFrame$body$_EvaluateVisitor(member, nodeWithSpan, callback, $T, $async$type) {
  72353. var $async$goto = 0,
  72354. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  72355. $async$returnValue, $async$self = this, oldMember, result, t1;
  72356. var $async$_async_evaluate$_withStackFrame$1$3 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  72357. if ($async$errorCode === 1)
  72358. return A._asyncRethrow($async$result, $async$completer);
  72359. while (true)
  72360. switch ($async$goto) {
  72361. case 0:
  72362. // Function start
  72363. t1 = $async$self._async_evaluate$_stack;
  72364. t1.push(new A._Record_2($async$self._async_evaluate$_member, nodeWithSpan));
  72365. oldMember = $async$self._async_evaluate$_member;
  72366. $async$self._async_evaluate$_member = member;
  72367. $async$goto = 3;
  72368. return A._asyncAwait(callback.call$0(), $async$_async_evaluate$_withStackFrame$1$3);
  72369. case 3:
  72370. // returning from await.
  72371. result = $async$result;
  72372. $async$self._async_evaluate$_member = oldMember;
  72373. t1.pop();
  72374. $async$returnValue = result;
  72375. // goto return
  72376. $async$goto = 1;
  72377. break;
  72378. case 1:
  72379. // return
  72380. return A._asyncReturn($async$returnValue, $async$completer);
  72381. }
  72382. });
  72383. return A._asyncStartSync($async$_async_evaluate$_withStackFrame$1$3, $async$completer);
  72384. },
  72385. _async_evaluate$_withoutSlash$2(value, nodeForSpan) {
  72386. var t1;
  72387. if (value instanceof A.SassNumber)
  72388. t1 = value.asSlash != null;
  72389. else
  72390. t1 = false;
  72391. if (t1)
  72392. this._async_evaluate$_warn$3(string$.Using__i + A.S(new A._EvaluateVisitor__withoutSlash_recommendation0().call$1(value)) + string$.x0a_Morex20, nodeForSpan.get$span(nodeForSpan), B.Deprecation_mRl);
  72393. return value.withoutSlash$0();
  72394. },
  72395. _async_evaluate$_stackFrame$2(member, span) {
  72396. return A.frameForSpan(span, member, A.NullableExtension_andThen(span.get$sourceUrl(span), new A._EvaluateVisitor__stackFrame_closure0(this)));
  72397. },
  72398. _async_evaluate$_stackTrace$1(span) {
  72399. var t2, t3, _i, t4, nodeWithSpan, _this = this,
  72400. t1 = A._setArrayType([], type$.JSArray_Frame);
  72401. for (t2 = _this._async_evaluate$_stack, t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, A.throwConcurrentModificationError)(t2), ++_i) {
  72402. t4 = t2[_i];
  72403. nodeWithSpan = t4._1;
  72404. t1.push(_this._async_evaluate$_stackFrame$2(t4._0, nodeWithSpan.get$span(nodeWithSpan)));
  72405. }
  72406. if (span != null)
  72407. t1.push(_this._async_evaluate$_stackFrame$2(_this._async_evaluate$_member, span));
  72408. return A.Trace$(new A.ReversedListIterable(t1, type$.ReversedListIterable_Frame), null);
  72409. },
  72410. _async_evaluate$_stackTrace$0() {
  72411. return this._async_evaluate$_stackTrace$1(null);
  72412. },
  72413. _async_evaluate$_warn$3(message, span, deprecation) {
  72414. var t1, trace, _this = this;
  72415. if (_this._async_evaluate$_quietDeps)
  72416. if (!_this._async_evaluate$_inDependency) {
  72417. t1 = _this._async_evaluate$_currentCallable;
  72418. t1 = t1 == null ? null : t1.inDependency;
  72419. t1 = t1 === true;
  72420. } else
  72421. t1 = true;
  72422. else
  72423. t1 = false;
  72424. if (t1)
  72425. return;
  72426. if (!_this._async_evaluate$_warningsEmitted.add$1(0, new A._Record_2(message, span)))
  72427. return;
  72428. trace = _this._async_evaluate$_stackTrace$1(span);
  72429. t1 = _this._async_evaluate$_logger;
  72430. if (deprecation == null)
  72431. t1.warn$3$span$trace(0, message, span, trace);
  72432. else
  72433. A.WarnForDeprecation_warnForDeprecation(t1, deprecation, message, span, trace);
  72434. },
  72435. _async_evaluate$_warn$2(message, span) {
  72436. return this._async_evaluate$_warn$3(message, span, null);
  72437. },
  72438. _async_evaluate$_exception$2(message, span) {
  72439. var t1, t2;
  72440. if (span == null) {
  72441. t1 = B.JSArray_methods.get$last(this._async_evaluate$_stack)._1;
  72442. t1 = t1.get$span(t1);
  72443. } else
  72444. t1 = span;
  72445. t2 = this._async_evaluate$_stackTrace$1(span);
  72446. return new A.SassRuntimeException(t2, B.Set_empty, message, t1);
  72447. },
  72448. _async_evaluate$_exception$1(message) {
  72449. return this._async_evaluate$_exception$2(message, null);
  72450. },
  72451. _async_evaluate$_multiSpanException$3(message, primaryLabel, secondaryLabels) {
  72452. var t1 = B.JSArray_methods.get$last(this._async_evaluate$_stack)._1;
  72453. return A.MultiSpanSassRuntimeException$(message, t1.get$span(t1), primaryLabel, secondaryLabels, this._async_evaluate$_stackTrace$0(), null);
  72454. },
  72455. _async_evaluate$_addExceptionSpan$1$2(nodeWithSpan, callback) {
  72456. var error, stackTrace, t1, exception,
  72457. addStackFrame = true;
  72458. try {
  72459. t1 = callback.call$0();
  72460. return t1;
  72461. } catch (exception) {
  72462. t1 = A.unwrapException(exception);
  72463. if (t1 instanceof A.SassScriptException) {
  72464. error = t1;
  72465. stackTrace = A.getTraceFromException(exception);
  72466. t1 = error.withSpan$1(nodeWithSpan.get$span(nodeWithSpan));
  72467. A.throwWithTrace(t1.withTrace$1(this._async_evaluate$_stackTrace$1(addStackFrame ? nodeWithSpan.get$span(nodeWithSpan) : null)), error, stackTrace);
  72468. } else
  72469. throw exception;
  72470. }
  72471. },
  72472. _async_evaluate$_addExceptionSpan$2(nodeWithSpan, callback) {
  72473. return this._async_evaluate$_addExceptionSpan$1$2(nodeWithSpan, callback, type$.dynamic);
  72474. },
  72475. _addExceptionSpanAsync$1$3$addStackFrame(nodeWithSpan, callback, addStackFrame, $T) {
  72476. return this._addExceptionSpanAsync$body$_EvaluateVisitor(nodeWithSpan, callback, addStackFrame, $T, $T);
  72477. },
  72478. _addExceptionSpanAsync$1$2(nodeWithSpan, callback, $T) {
  72479. return this._addExceptionSpanAsync$1$3$addStackFrame(nodeWithSpan, callback, true, $T);
  72480. },
  72481. _addExceptionSpanAsync$body$_EvaluateVisitor(nodeWithSpan, callback, addStackFrame, $T, $async$type) {
  72482. var $async$goto = 0,
  72483. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  72484. $async$returnValue, $async$handler = 2, $async$currentError, $async$self = this, error, stackTrace, t1, exception, $async$exception;
  72485. var $async$_addExceptionSpanAsync$1$3$addStackFrame = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  72486. if ($async$errorCode === 1) {
  72487. $async$currentError = $async$result;
  72488. $async$goto = $async$handler;
  72489. }
  72490. while (true)
  72491. switch ($async$goto) {
  72492. case 0:
  72493. // Function start
  72494. $async$handler = 4;
  72495. t1 = callback.call$0();
  72496. $async$goto = 7;
  72497. return A._asyncAwait($T._eval$1("Future<0>")._is(t1) ? t1 : A._Future$value(t1, $T), $async$_addExceptionSpanAsync$1$3$addStackFrame);
  72498. case 7:
  72499. // returning from await.
  72500. t1 = $async$result;
  72501. $async$returnValue = t1;
  72502. // goto return
  72503. $async$goto = 1;
  72504. break;
  72505. $async$handler = 2;
  72506. // goto after finally
  72507. $async$goto = 6;
  72508. break;
  72509. case 4:
  72510. // catch
  72511. $async$handler = 3;
  72512. $async$exception = $async$currentError;
  72513. t1 = A.unwrapException($async$exception);
  72514. if (t1 instanceof A.SassScriptException) {
  72515. error = t1;
  72516. stackTrace = A.getTraceFromException($async$exception);
  72517. t1 = error.withSpan$1(nodeWithSpan.get$span(nodeWithSpan));
  72518. A.throwWithTrace(t1.withTrace$1($async$self._async_evaluate$_stackTrace$1(addStackFrame ? nodeWithSpan.get$span(nodeWithSpan) : null)), error, stackTrace);
  72519. } else
  72520. throw $async$exception;
  72521. // goto after finally
  72522. $async$goto = 6;
  72523. break;
  72524. case 3:
  72525. // uncaught
  72526. // goto rethrow
  72527. $async$goto = 2;
  72528. break;
  72529. case 6:
  72530. // after finally
  72531. case 1:
  72532. // return
  72533. return A._asyncReturn($async$returnValue, $async$completer);
  72534. case 2:
  72535. // rethrow
  72536. return A._asyncRethrow($async$currentError, $async$completer);
  72537. }
  72538. });
  72539. return A._asyncStartSync($async$_addExceptionSpanAsync$1$3$addStackFrame, $async$completer);
  72540. },
  72541. _async_evaluate$_addExceptionTrace$1$1(callback, $T) {
  72542. return this._addExceptionTrace$body$_EvaluateVisitor(callback, $T, $T);
  72543. },
  72544. _addExceptionTrace$body$_EvaluateVisitor(callback, $T, $async$type) {
  72545. var $async$goto = 0,
  72546. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  72547. $async$returnValue, $async$handler = 2, $async$currentError, $async$self = this, error, stackTrace, t1, exception, t2, $async$exception;
  72548. var $async$_async_evaluate$_addExceptionTrace$1$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  72549. if ($async$errorCode === 1) {
  72550. $async$currentError = $async$result;
  72551. $async$goto = $async$handler;
  72552. }
  72553. while (true)
  72554. switch ($async$goto) {
  72555. case 0:
  72556. // Function start
  72557. $async$handler = 4;
  72558. t1 = callback.call$0();
  72559. $async$goto = 7;
  72560. return A._asyncAwait($T._eval$1("Future<0>")._is(t1) ? t1 : A._Future$value(t1, $T), $async$_async_evaluate$_addExceptionTrace$1$1);
  72561. case 7:
  72562. // returning from await.
  72563. t1 = $async$result;
  72564. $async$returnValue = t1;
  72565. // goto return
  72566. $async$goto = 1;
  72567. break;
  72568. $async$handler = 2;
  72569. // goto after finally
  72570. $async$goto = 6;
  72571. break;
  72572. case 4:
  72573. // catch
  72574. $async$handler = 3;
  72575. $async$exception = $async$currentError;
  72576. t1 = A.unwrapException($async$exception);
  72577. if (type$.SassRuntimeException._is(t1))
  72578. throw $async$exception;
  72579. else if (t1 instanceof A.SassException) {
  72580. error = t1;
  72581. stackTrace = A.getTraceFromException($async$exception);
  72582. t1 = error;
  72583. t2 = J.getInterceptor$z(t1);
  72584. A.throwWithTrace(error.withTrace$1($async$self._async_evaluate$_stackTrace$1(A.SourceSpanException.prototype.get$span.call(t2, t1))), error, stackTrace);
  72585. } else
  72586. throw $async$exception;
  72587. // goto after finally
  72588. $async$goto = 6;
  72589. break;
  72590. case 3:
  72591. // uncaught
  72592. // goto rethrow
  72593. $async$goto = 2;
  72594. break;
  72595. case 6:
  72596. // after finally
  72597. case 1:
  72598. // return
  72599. return A._asyncReturn($async$returnValue, $async$completer);
  72600. case 2:
  72601. // rethrow
  72602. return A._asyncRethrow($async$currentError, $async$completer);
  72603. }
  72604. });
  72605. return A._asyncStartSync($async$_async_evaluate$_addExceptionTrace$1$1, $async$completer);
  72606. },
  72607. _async_evaluate$_addErrorSpan$1$2(nodeWithSpan, callback, $T) {
  72608. return this._addErrorSpan$body$_EvaluateVisitor(nodeWithSpan, callback, $T, $T);
  72609. },
  72610. _addErrorSpan$body$_EvaluateVisitor(nodeWithSpan, callback, $T, $async$type) {
  72611. var $async$goto = 0,
  72612. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  72613. $async$returnValue, $async$handler = 2, $async$currentError, $async$self = this, error, stackTrace, t1, exception, t2, t3, $async$exception;
  72614. var $async$_async_evaluate$_addErrorSpan$1$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  72615. if ($async$errorCode === 1) {
  72616. $async$currentError = $async$result;
  72617. $async$goto = $async$handler;
  72618. }
  72619. while (true)
  72620. switch ($async$goto) {
  72621. case 0:
  72622. // Function start
  72623. $async$handler = 4;
  72624. $async$goto = 7;
  72625. return A._asyncAwait(callback.call$0(), $async$_async_evaluate$_addErrorSpan$1$2);
  72626. case 7:
  72627. // returning from await.
  72628. t1 = $async$result;
  72629. $async$returnValue = t1;
  72630. // goto return
  72631. $async$goto = 1;
  72632. break;
  72633. $async$handler = 2;
  72634. // goto after finally
  72635. $async$goto = 6;
  72636. break;
  72637. case 4:
  72638. // catch
  72639. $async$handler = 3;
  72640. $async$exception = $async$currentError;
  72641. t1 = A.unwrapException($async$exception);
  72642. if (type$.SassRuntimeException._is(t1)) {
  72643. error = t1;
  72644. stackTrace = A.getTraceFromException($async$exception);
  72645. if (!B.JSString_methods.startsWith$1(J.get$span$z(error).get$text(), "@error"))
  72646. throw $async$exception;
  72647. t1 = error._span_exception$_message;
  72648. t2 = nodeWithSpan.get$span(nodeWithSpan);
  72649. t3 = $async$self._async_evaluate$_stackTrace$0();
  72650. A.throwWithTrace(new A.SassRuntimeException(t3, B.Set_empty, t1, t2), error, stackTrace);
  72651. } else
  72652. throw $async$exception;
  72653. // goto after finally
  72654. $async$goto = 6;
  72655. break;
  72656. case 3:
  72657. // uncaught
  72658. // goto rethrow
  72659. $async$goto = 2;
  72660. break;
  72661. case 6:
  72662. // after finally
  72663. case 1:
  72664. // return
  72665. return A._asyncReturn($async$returnValue, $async$completer);
  72666. case 2:
  72667. // rethrow
  72668. return A._asyncRethrow($async$currentError, $async$completer);
  72669. }
  72670. });
  72671. return A._asyncStartSync($async$_async_evaluate$_addErrorSpan$1$2, $async$completer);
  72672. },
  72673. _async_evaluate$_getErrorMessage$1(error) {
  72674. var t1, exception;
  72675. if (type$.Error._is(error))
  72676. return error.toString$0(0);
  72677. try {
  72678. t1 = A._asString(J.get$message$x(error));
  72679. return t1;
  72680. } catch (exception) {
  72681. t1 = J.toString$0$(error);
  72682. return t1;
  72683. }
  72684. }
  72685. };
  72686. A._EvaluateVisitor_closure12.prototype = {
  72687. call$1($arguments) {
  72688. var module, t2,
  72689. t1 = J.getInterceptor$asx($arguments),
  72690. variable = t1.$index($arguments, 0).assertString$1("name");
  72691. t1 = t1.$index($arguments, 1).get$realNull();
  72692. module = t1 == null ? null : t1.assertString$1("module");
  72693. t1 = this.$this._async_evaluate$_environment;
  72694. t2 = A.stringReplaceAllUnchecked(variable._string$_text, "_", "-");
  72695. return t1.globalVariableExists$2$namespace(t2, module == null ? null : module._string$_text) ? B.SassBoolean_true : B.SassBoolean_false;
  72696. },
  72697. $signature: 11
  72698. };
  72699. A._EvaluateVisitor_closure13.prototype = {
  72700. call$1($arguments) {
  72701. var variable = J.$index$asx($arguments, 0).assertString$1("name"),
  72702. t1 = this.$this._async_evaluate$_environment;
  72703. return t1.getVariable$1(A.stringReplaceAllUnchecked(variable._string$_text, "_", "-")) != null ? B.SassBoolean_true : B.SassBoolean_false;
  72704. },
  72705. $signature: 11
  72706. };
  72707. A._EvaluateVisitor_closure14.prototype = {
  72708. call$1($arguments) {
  72709. var module, t2, t3, t4,
  72710. t1 = J.getInterceptor$asx($arguments),
  72711. variable = t1.$index($arguments, 0).assertString$1("name");
  72712. t1 = t1.$index($arguments, 1).get$realNull();
  72713. module = t1 == null ? null : t1.assertString$1("module");
  72714. t1 = this.$this;
  72715. t2 = t1._async_evaluate$_environment;
  72716. t3 = variable._string$_text;
  72717. t4 = A.stringReplaceAllUnchecked(t3, "_", "-");
  72718. return t2.getFunction$2$namespace(t4, module == null ? null : module._string$_text) != null || t1._async_evaluate$_builtInFunctions.containsKey$1(t3) ? B.SassBoolean_true : B.SassBoolean_false;
  72719. },
  72720. $signature: 11
  72721. };
  72722. A._EvaluateVisitor_closure15.prototype = {
  72723. call$1($arguments) {
  72724. var module, t2,
  72725. t1 = J.getInterceptor$asx($arguments),
  72726. variable = t1.$index($arguments, 0).assertString$1("name");
  72727. t1 = t1.$index($arguments, 1).get$realNull();
  72728. module = t1 == null ? null : t1.assertString$1("module");
  72729. t1 = this.$this._async_evaluate$_environment;
  72730. t2 = A.stringReplaceAllUnchecked(variable._string$_text, "_", "-");
  72731. return t1.getMixin$2$namespace(t2, module == null ? null : module._string$_text) != null ? B.SassBoolean_true : B.SassBoolean_false;
  72732. },
  72733. $signature: 11
  72734. };
  72735. A._EvaluateVisitor_closure16.prototype = {
  72736. call$1($arguments) {
  72737. var t1 = this.$this._async_evaluate$_environment;
  72738. if (!t1._async_environment$_inMixin)
  72739. throw A.wrapException(A.SassScriptException$(string$.conten, null));
  72740. return t1._async_environment$_content != null ? B.SassBoolean_true : B.SassBoolean_false;
  72741. },
  72742. $signature: 11
  72743. };
  72744. A._EvaluateVisitor_closure17.prototype = {
  72745. call$1($arguments) {
  72746. var t2, t3, t4,
  72747. t1 = J.$index$asx($arguments, 0).assertString$1("module")._string$_text,
  72748. module = this.$this._async_evaluate$_environment._async_environment$_modules.$index(0, t1);
  72749. if (module == null)
  72750. throw A.wrapException('There is no module with namespace "' + t1 + '".');
  72751. t1 = type$.Value;
  72752. t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  72753. for (t3 = A.MapExtensions_get_pairs(module.get$variables(), type$.String, t1), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  72754. t4 = t3.get$current(t3);
  72755. t2.$indexSet(0, new A.SassString(t4._0, true), t4._1);
  72756. }
  72757. return new A.SassMap(A.ConstantMap_ConstantMap$from(t2, t1, t1));
  72758. },
  72759. $signature: 34
  72760. };
  72761. A._EvaluateVisitor_closure18.prototype = {
  72762. call$1($arguments) {
  72763. var t2, t3, t4,
  72764. t1 = J.$index$asx($arguments, 0).assertString$1("module")._string$_text,
  72765. module = this.$this._async_evaluate$_environment._async_environment$_modules.$index(0, t1);
  72766. if (module == null)
  72767. throw A.wrapException('There is no module with namespace "' + t1 + '".');
  72768. t1 = type$.Value;
  72769. t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  72770. for (t3 = A.MapExtensions_get_pairs(module.get$functions(module), type$.String, type$.AsyncCallable), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  72771. t4 = t3.get$current(t3);
  72772. t2.$indexSet(0, new A.SassString(t4._0, true), new A.SassFunction(t4._1));
  72773. }
  72774. return new A.SassMap(A.ConstantMap_ConstantMap$from(t2, t1, t1));
  72775. },
  72776. $signature: 34
  72777. };
  72778. A._EvaluateVisitor_closure19.prototype = {
  72779. call$1($arguments) {
  72780. var t2, t3, t4,
  72781. t1 = J.$index$asx($arguments, 0).assertString$1("module")._string$_text,
  72782. module = this.$this._async_evaluate$_environment._async_environment$_modules.$index(0, t1);
  72783. if (module == null)
  72784. throw A.wrapException('There is no module with namespace "' + t1 + '".');
  72785. t1 = type$.Value;
  72786. t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  72787. for (t3 = A.MapExtensions_get_pairs(module.get$mixins(), type$.String, type$.AsyncCallable), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  72788. t4 = t3.get$current(t3);
  72789. t2.$indexSet(0, new A.SassString(t4._0, true), new A.SassMixin(t4._1));
  72790. }
  72791. return new A.SassMap(A.ConstantMap_ConstantMap$from(t2, t1, t1));
  72792. },
  72793. $signature: 34
  72794. };
  72795. A._EvaluateVisitor_closure20.prototype = {
  72796. call$1($arguments) {
  72797. var module, t2, callable,
  72798. t1 = J.getInterceptor$asx($arguments),
  72799. $name = t1.$index($arguments, 0).assertString$1("name"),
  72800. css = t1.$index($arguments, 1).get$isTruthy();
  72801. t1 = t1.$index($arguments, 2).get$realNull();
  72802. module = t1 == null ? null : t1.assertString$1("module");
  72803. if (css) {
  72804. if (module != null)
  72805. throw A.wrapException(string$.x24css_a);
  72806. return new A.SassFunction(new A.PlainCssCallable($name._string$_text));
  72807. }
  72808. t1 = this.$this;
  72809. t2 = t1._async_evaluate$_callableNode;
  72810. t2.toString;
  72811. callable = t1._async_evaluate$_addExceptionSpan$2(t2, new A._EvaluateVisitor__closure6(t1, $name, module));
  72812. if (callable == null)
  72813. throw A.wrapException("Function not found: " + $name.toString$0(0));
  72814. return new A.SassFunction(callable);
  72815. },
  72816. $signature: 189
  72817. };
  72818. A._EvaluateVisitor__closure6.prototype = {
  72819. call$0() {
  72820. var local,
  72821. normalizedName = A.stringReplaceAllUnchecked(this.name._string$_text, "_", "-"),
  72822. t1 = this.module,
  72823. namespace = t1 == null ? null : t1._string$_text;
  72824. t1 = this.$this;
  72825. local = t1._async_evaluate$_environment.getFunction$2$namespace(normalizedName, namespace);
  72826. if (local != null || namespace != null)
  72827. return local;
  72828. return t1._async_evaluate$_builtInFunctions.$index(0, normalizedName);
  72829. },
  72830. $signature: 81
  72831. };
  72832. A._EvaluateVisitor_closure21.prototype = {
  72833. call$1($arguments) {
  72834. var module, t2, callable,
  72835. t1 = J.getInterceptor$asx($arguments),
  72836. $name = t1.$index($arguments, 0).assertString$1("name");
  72837. t1 = t1.$index($arguments, 1).get$realNull();
  72838. module = t1 == null ? null : t1.assertString$1("module");
  72839. t1 = this.$this;
  72840. t2 = t1._async_evaluate$_callableNode;
  72841. t2.toString;
  72842. callable = t1._async_evaluate$_addExceptionSpan$2(t2, new A._EvaluateVisitor__closure5(t1, $name, module));
  72843. if (callable == null)
  72844. throw A.wrapException("Mixin not found: " + $name.toString$0(0));
  72845. return new A.SassMixin(callable);
  72846. },
  72847. $signature: 191
  72848. };
  72849. A._EvaluateVisitor__closure5.prototype = {
  72850. call$0() {
  72851. var t1 = this.$this._async_evaluate$_environment,
  72852. t2 = A.stringReplaceAllUnchecked(this.name._string$_text, "_", "-"),
  72853. t3 = this.module;
  72854. return t1.getMixin$2$namespace(t2, t3 == null ? null : t3._string$_text);
  72855. },
  72856. $signature: 81
  72857. };
  72858. A._EvaluateVisitor_closure22.prototype = {
  72859. call$1($arguments) {
  72860. return this.$call$body$_EvaluateVisitor_closure1($arguments);
  72861. },
  72862. $call$body$_EvaluateVisitor_closure1($arguments) {
  72863. var $async$goto = 0,
  72864. $async$completer = A._makeAsyncAwaitCompleter(type$.Value),
  72865. $async$returnValue, $async$self = this, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, invocation, callableNode, t1, $function, args;
  72866. var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  72867. if ($async$errorCode === 1)
  72868. return A._asyncRethrow($async$result, $async$completer);
  72869. while (true)
  72870. switch ($async$goto) {
  72871. case 0:
  72872. // Function start
  72873. t1 = J.getInterceptor$asx($arguments);
  72874. $function = t1.$index($arguments, 0);
  72875. args = type$.SassArgumentList._as(t1.$index($arguments, 1));
  72876. t1 = $async$self.$this;
  72877. t2 = t1._async_evaluate$_callableNode;
  72878. t2.toString;
  72879. t3 = A._setArrayType([], type$.JSArray_Expression);
  72880. t4 = type$.String;
  72881. t5 = type$.Expression;
  72882. t6 = t2.get$span(t2);
  72883. t7 = t2.get$span(t2);
  72884. args._wereKeywordsAccessed = true;
  72885. t8 = args._keywords;
  72886. if (t8.get$isEmpty(t8))
  72887. t2 = null;
  72888. else {
  72889. t9 = type$.Value;
  72890. t10 = A.LinkedHashMap_LinkedHashMap$_empty(t9, t9);
  72891. for (args._wereKeywordsAccessed = true, t8 = A.MapExtensions_get_pairs(t8, t4, t9), t8 = t8.get$iterator(t8); t8.moveNext$0();) {
  72892. t11 = t8.get$current(t8);
  72893. t10.$indexSet(0, new A.SassString(t11._0, false), t11._1);
  72894. }
  72895. t2 = new A.ValueExpression(new A.SassMap(A.ConstantMap_ConstantMap$from(t10, t9, t9)), t2.get$span(t2));
  72896. }
  72897. invocation = new A.ArgumentInvocation(A.List_List$unmodifiable(t3, t5), A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_empty(t4, t5), t4, t5), new A.ValueExpression(args, t7), t2, t6);
  72898. $async$goto = $function instanceof A.SassString ? 3 : 4;
  72899. break;
  72900. case 3:
  72901. // then
  72902. A.warnForDeprecation(string$.Passina + $function.toString$0(0) + "))", B.Deprecation_6v8);
  72903. callableNode = t1._async_evaluate$_callableNode;
  72904. t2 = $function._string$_text;
  72905. t3 = callableNode.get$span(callableNode);
  72906. t1 = t1.visitFunctionExpression$1(0, new A.FunctionExpression(null, A.stringReplaceAllUnchecked(t2, "_", "-"), t2, invocation, t3));
  72907. $async$goto = 5;
  72908. return A._asyncAwait(type$.Future_Value._is(t1) ? t1 : A._Future$value(t1, type$.Value), $async$call$1);
  72909. case 5:
  72910. // returning from await.
  72911. $async$returnValue = $async$result;
  72912. // goto return
  72913. $async$goto = 1;
  72914. break;
  72915. case 4:
  72916. // join
  72917. t2 = $function.assertFunction$1("function");
  72918. t3 = t1._async_evaluate$_callableNode;
  72919. t3.toString;
  72920. $async$goto = 6;
  72921. return A._asyncAwait(t1._async_evaluate$_runFunctionCallable$3(invocation, t2.callable, t3), $async$call$1);
  72922. case 6:
  72923. // returning from await.
  72924. t3 = $async$result;
  72925. $async$returnValue = t3;
  72926. // goto return
  72927. $async$goto = 1;
  72928. break;
  72929. case 1:
  72930. // return
  72931. return A._asyncReturn($async$returnValue, $async$completer);
  72932. }
  72933. });
  72934. return A._asyncStartSync($async$call$1, $async$completer);
  72935. },
  72936. $signature: 261
  72937. };
  72938. A._EvaluateVisitor_closure23.prototype = {
  72939. call$1($arguments) {
  72940. return this.$call$body$_EvaluateVisitor_closure0($arguments);
  72941. },
  72942. $call$body$_EvaluateVisitor_closure0($arguments) {
  72943. var $async$goto = 0,
  72944. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  72945. $async$self = this, withMap, t2, values, configuration, t3, t1, url;
  72946. var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  72947. if ($async$errorCode === 1)
  72948. return A._asyncRethrow($async$result, $async$completer);
  72949. while (true)
  72950. switch ($async$goto) {
  72951. case 0:
  72952. // Function start
  72953. t1 = J.getInterceptor$asx($arguments);
  72954. url = A.Uri_parse(t1.$index($arguments, 0).assertString$1("url")._string$_text);
  72955. t1 = t1.$index($arguments, 1).get$realNull();
  72956. withMap = t1 == null ? null : t1.assertMap$1("with")._map$_contents;
  72957. t1 = $async$self.$this;
  72958. t2 = t1._async_evaluate$_callableNode;
  72959. t2.toString;
  72960. if (withMap != null) {
  72961. values = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue);
  72962. withMap.forEach$1(0, new A._EvaluateVisitor__closure3(values, t2.get$span(t2), t2));
  72963. configuration = new A.ExplicitConfiguration(t2, values, null);
  72964. } else
  72965. configuration = B.Configuration_Map_empty_null;
  72966. t3 = t2.get$span(t2);
  72967. $async$goto = 2;
  72968. return A._asyncAwait(t1._async_evaluate$_loadModule$7$baseUrl$configuration$namesInErrors(url, "load-css()", t2, new A._EvaluateVisitor__closure4(t1), t3.get$sourceUrl(t3), configuration, true), $async$call$1);
  72969. case 2:
  72970. // returning from await.
  72971. t1._async_evaluate$_assertConfigurationIsEmpty$2$nameInError(configuration, true);
  72972. // implicit return
  72973. return A._asyncReturn(null, $async$completer);
  72974. }
  72975. });
  72976. return A._asyncStartSync($async$call$1, $async$completer);
  72977. },
  72978. $signature: 192
  72979. };
  72980. A._EvaluateVisitor__closure3.prototype = {
  72981. call$2(variable, value) {
  72982. var t1 = variable.assertString$1("with key"),
  72983. $name = A.stringReplaceAllUnchecked(t1._string$_text, "_", "-");
  72984. t1 = this.values;
  72985. if (t1.containsKey$1($name))
  72986. throw A.wrapException("The variable $" + $name + " was configured twice.");
  72987. t1.$indexSet(0, $name, new A.ConfiguredValue(value, this.span, this.callableNode));
  72988. },
  72989. $signature: 102
  72990. };
  72991. A._EvaluateVisitor__closure4.prototype = {
  72992. call$2(module, _) {
  72993. var t1 = this.$this;
  72994. return t1._async_evaluate$_combineCss$2$clone(module, true).accept$1(t1);
  72995. },
  72996. $signature: 272
  72997. };
  72998. A._EvaluateVisitor_closure24.prototype = {
  72999. call$1($arguments) {
  73000. return this.$call$body$_EvaluateVisitor_closure($arguments);
  73001. },
  73002. $call$body$_EvaluateVisitor_closure($arguments) {
  73003. var $async$goto = 0,
  73004. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  73005. $async$self = this, callableNode, t2, t3, t4, t5, t1, mixin, args;
  73006. var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  73007. if ($async$errorCode === 1)
  73008. return A._asyncRethrow($async$result, $async$completer);
  73009. while (true)
  73010. switch ($async$goto) {
  73011. case 0:
  73012. // Function start
  73013. t1 = J.getInterceptor$asx($arguments);
  73014. mixin = t1.$index($arguments, 0);
  73015. args = type$.SassArgumentList._as(t1.$index($arguments, 1));
  73016. t1 = $async$self.$this;
  73017. callableNode = t1._async_evaluate$_callableNode;
  73018. t2 = callableNode.get$span(callableNode);
  73019. t3 = callableNode.get$span(callableNode);
  73020. t4 = type$.Expression;
  73021. t5 = A.List_List$unmodifiable(B.List_empty9, t4);
  73022. t4 = A.ConstantMap_ConstantMap$from(B.Map_empty6, type$.String, t4);
  73023. $async$goto = 2;
  73024. return A._asyncAwait(t1._async_evaluate$_applyMixin$5(mixin.assertMixin$1("mixin").callable, t1._async_evaluate$_environment._async_environment$_content, new A.ArgumentInvocation(t5, t4, new A.ValueExpression(args, t3), null, t2), callableNode, callableNode), $async$call$1);
  73025. case 2:
  73026. // returning from await.
  73027. // implicit return
  73028. return A._asyncReturn(null, $async$completer);
  73029. }
  73030. });
  73031. return A._asyncStartSync($async$call$1, $async$completer);
  73032. },
  73033. $signature: 192
  73034. };
  73035. A._EvaluateVisitor_run_closure0.prototype = {
  73036. call$0() {
  73037. var $async$goto = 0,
  73038. $async$completer = A._makeAsyncAwaitCompleter(type$.Record_2_Set_Uri_loadedUrls_and_CssStylesheet_stylesheet),
  73039. $async$returnValue, $async$self = this, module, t1, t2, _0_0, url;
  73040. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  73041. if ($async$errorCode === 1)
  73042. return A._asyncRethrow($async$result, $async$completer);
  73043. while (true)
  73044. switch ($async$goto) {
  73045. case 0:
  73046. // Function start
  73047. t1 = $async$self.node;
  73048. t2 = t1.span;
  73049. _0_0 = t2.get$sourceUrl(t2);
  73050. url = null;
  73051. if (_0_0 != null) {
  73052. url = _0_0;
  73053. t2 = $async$self.$this;
  73054. t2._async_evaluate$_activeModules.$indexSet(0, url, null);
  73055. t2._async_evaluate$_loadedUrls.add$1(0, url);
  73056. }
  73057. t2 = $async$self.$this;
  73058. $async$goto = 3;
  73059. return A._asyncAwait(t2._async_evaluate$_addExceptionTrace$1$1(new A._EvaluateVisitor_run__closure0(t2, $async$self.importer, t1), type$.Module_AsyncCallable), $async$call$0);
  73060. case 3:
  73061. // returning from await.
  73062. module = $async$result;
  73063. $async$returnValue = new A._Record_2_loadedUrls_stylesheet(t2._async_evaluate$_loadedUrls, t2._async_evaluate$_combineCss$1(module));
  73064. // goto return
  73065. $async$goto = 1;
  73066. break;
  73067. case 1:
  73068. // return
  73069. return A._asyncReturn($async$returnValue, $async$completer);
  73070. }
  73071. });
  73072. return A._asyncStartSync($async$call$0, $async$completer);
  73073. },
  73074. $signature: 453
  73075. };
  73076. A._EvaluateVisitor_run__closure0.prototype = {
  73077. call$0() {
  73078. return this.$this._async_evaluate$_execute$2(this.importer, this.node);
  73079. },
  73080. $signature: 454
  73081. };
  73082. A._EvaluateVisitor__loadModule_closure1.prototype = {
  73083. call$0() {
  73084. return this.callback.call$2(this._box_1.builtInModule, false);
  73085. },
  73086. $signature: 0
  73087. };
  73088. A._EvaluateVisitor__loadModule_closure2.prototype = {
  73089. call$0() {
  73090. return this.$call$body$_EvaluateVisitor__loadModule_closure();
  73091. },
  73092. $call$body$_EvaluateVisitor__loadModule_closure() {
  73093. var $async$goto = 0,
  73094. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  73095. $async$handler = 1, $async$currentError, $async$next = [], $async$self = this, canonicalUrl, oldInDependency, isDependency, t4, message, t1, stylesheet, importer, t2, t3, _1_0, $async$temp1;
  73096. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  73097. if ($async$errorCode === 1) {
  73098. $async$currentError = $async$result;
  73099. $async$goto = $async$handler;
  73100. }
  73101. while (true)
  73102. switch ($async$goto) {
  73103. case 0:
  73104. // Function start
  73105. t1 = {};
  73106. stylesheet = null;
  73107. importer = null;
  73108. t2 = $async$self.$this;
  73109. t3 = $async$self.nodeWithSpan;
  73110. $async$goto = 2;
  73111. return A._asyncAwait(t2._async_evaluate$_loadStylesheet$3$baseUrl($async$self.url.toString$0(0), t3.get$span(t3), $async$self.baseUrl), $async$call$0);
  73112. case 2:
  73113. // returning from await.
  73114. _1_0 = $async$result;
  73115. stylesheet = _1_0._0;
  73116. importer = _1_0._1;
  73117. isDependency = _1_0._2;
  73118. t4 = stylesheet.span;
  73119. canonicalUrl = t4.get$sourceUrl(t4);
  73120. if (canonicalUrl != null) {
  73121. t4 = t2._async_evaluate$_activeModules;
  73122. if (t4.containsKey$1(canonicalUrl)) {
  73123. if ($async$self.namesInErrors) {
  73124. t1 = canonicalUrl;
  73125. t3 = $.$get$context();
  73126. t1.toString;
  73127. message = "Module loop: " + t3.prettyUri$1(t1) + " is already being loaded.";
  73128. } else
  73129. message = string$.Modulel;
  73130. t1 = A.NullableExtension_andThen(t4.$index(0, canonicalUrl), new A._EvaluateVisitor__loadModule__closure1(t2, message));
  73131. throw A.wrapException(t1 == null ? t2._async_evaluate$_exception$1(message) : t1);
  73132. } else
  73133. t4.$indexSet(0, canonicalUrl, t3);
  73134. }
  73135. t4 = t2._async_evaluate$_modules.containsKey$1(canonicalUrl);
  73136. oldInDependency = t2._async_evaluate$_inDependency;
  73137. t2._async_evaluate$_inDependency = isDependency;
  73138. t1.module = null;
  73139. $async$handler = 3;
  73140. $async$temp1 = t1;
  73141. $async$goto = 6;
  73142. return A._asyncAwait(t2._async_evaluate$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, $async$self.configuration, $async$self.namesInErrors, t3), $async$call$0);
  73143. case 6:
  73144. // returning from await.
  73145. $async$temp1.module = $async$result;
  73146. $async$next.push(5);
  73147. // goto finally
  73148. $async$goto = 4;
  73149. break;
  73150. case 3:
  73151. // uncaught
  73152. $async$next = [1];
  73153. case 4:
  73154. // finally
  73155. $async$handler = 1;
  73156. t2._async_evaluate$_activeModules.remove$1(0, canonicalUrl);
  73157. t2._async_evaluate$_inDependency = oldInDependency;
  73158. // goto the next finally handler
  73159. $async$goto = $async$next.pop();
  73160. break;
  73161. case 5:
  73162. // after finally
  73163. $async$goto = 7;
  73164. return A._asyncAwait(t2._addExceptionSpanAsync$1$3$addStackFrame(t3, new A._EvaluateVisitor__loadModule__closure2(t1, $async$self.callback, !t4), false, type$.void), $async$call$0);
  73165. case 7:
  73166. // returning from await.
  73167. // implicit return
  73168. return A._asyncReturn(null, $async$completer);
  73169. case 1:
  73170. // rethrow
  73171. return A._asyncRethrow($async$currentError, $async$completer);
  73172. }
  73173. });
  73174. return A._asyncStartSync($async$call$0, $async$completer);
  73175. },
  73176. $signature: 2
  73177. };
  73178. A._EvaluateVisitor__loadModule__closure1.prototype = {
  73179. call$1(previousLoad) {
  73180. return this.$this._async_evaluate$_multiSpanException$3(this.message, "new load", A.LinkedHashMap_LinkedHashMap$_literal([previousLoad.get$span(previousLoad), "original load"], type$.FileSpan, type$.String));
  73181. },
  73182. $signature: 106
  73183. };
  73184. A._EvaluateVisitor__loadModule__closure2.prototype = {
  73185. call$0() {
  73186. return this.callback.call$2(this._box_0.module, this.firstLoad);
  73187. },
  73188. $signature: 0
  73189. };
  73190. A._EvaluateVisitor__execute_closure0.prototype = {
  73191. call$0() {
  73192. var $async$goto = 0,
  73193. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  73194. $async$self = this, t3, t4, t5, t6, t1, oldImporter, oldStylesheet, oldRoot, oldPreModuleComments, oldParent, oldEndOfImports, oldOutOfOrderImports, oldExtensionStore, t2, oldStyleRule, oldMediaQueries, oldDeclarationName, oldInUnknownAtRule, oldInKeyframes, oldConfiguration;
  73195. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  73196. if ($async$errorCode === 1)
  73197. return A._asyncRethrow($async$result, $async$completer);
  73198. while (true)
  73199. switch ($async$goto) {
  73200. case 0:
  73201. // Function start
  73202. t1 = $async$self.$this;
  73203. oldImporter = t1._async_evaluate$_importer;
  73204. oldStylesheet = t1._async_evaluate$__stylesheet;
  73205. oldRoot = t1._async_evaluate$__root;
  73206. oldPreModuleComments = t1._async_evaluate$_preModuleComments;
  73207. oldParent = t1._async_evaluate$__parent;
  73208. oldEndOfImports = t1._async_evaluate$__endOfImports;
  73209. oldOutOfOrderImports = t1._async_evaluate$_outOfOrderImports;
  73210. oldExtensionStore = t1._async_evaluate$__extensionStore;
  73211. t2 = t1._async_evaluate$_atRootExcludingStyleRule;
  73212. oldStyleRule = t2 ? null : t1._async_evaluate$_styleRuleIgnoringAtRoot;
  73213. oldMediaQueries = t1._async_evaluate$_mediaQueries;
  73214. oldDeclarationName = t1._async_evaluate$_declarationName;
  73215. oldInUnknownAtRule = t1._async_evaluate$_inUnknownAtRule;
  73216. oldInKeyframes = t1._async_evaluate$_inKeyframes;
  73217. oldConfiguration = t1._async_evaluate$_configuration;
  73218. t1._async_evaluate$_importer = $async$self.importer;
  73219. t3 = t1._async_evaluate$__stylesheet = $async$self.stylesheet;
  73220. t4 = t3.span;
  73221. t5 = t1._async_evaluate$__parent = t1._async_evaluate$__root = A.ModifiableCssStylesheet$(t4);
  73222. t1._async_evaluate$__endOfImports = 0;
  73223. t1._async_evaluate$_outOfOrderImports = null;
  73224. t1._async_evaluate$__extensionStore = $async$self.extensionStore;
  73225. t1._async_evaluate$_declarationName = t1._async_evaluate$_mediaQueries = t1._async_evaluate$_styleRuleIgnoringAtRoot = null;
  73226. t1._async_evaluate$_inKeyframes = t1._async_evaluate$_atRootExcludingStyleRule = t1._async_evaluate$_inUnknownAtRule = false;
  73227. t6 = $async$self.configuration;
  73228. if (t6 != null)
  73229. t1._async_evaluate$_configuration = t6;
  73230. $async$goto = 2;
  73231. return A._asyncAwait(t1.visitStylesheet$1(0, t3), $async$call$0);
  73232. case 2:
  73233. // returning from await.
  73234. t3 = t1._async_evaluate$_outOfOrderImports == null ? t5 : new A.CssStylesheet(new A.UnmodifiableListView(t1._async_evaluate$_addOutOfOrderImports$0(), type$.UnmodifiableListView_CssNode), t4);
  73235. $async$self.css.__late_helper$_value = t3;
  73236. $async$self.preModuleComments.__late_helper$_value = t1._async_evaluate$_preModuleComments;
  73237. t1._async_evaluate$_importer = oldImporter;
  73238. t1._async_evaluate$__stylesheet = oldStylesheet;
  73239. t1._async_evaluate$__root = oldRoot;
  73240. t1._async_evaluate$_preModuleComments = oldPreModuleComments;
  73241. t1._async_evaluate$__parent = oldParent;
  73242. t1._async_evaluate$__endOfImports = oldEndOfImports;
  73243. t1._async_evaluate$_outOfOrderImports = oldOutOfOrderImports;
  73244. t1._async_evaluate$__extensionStore = oldExtensionStore;
  73245. t1._async_evaluate$_styleRuleIgnoringAtRoot = oldStyleRule;
  73246. t1._async_evaluate$_mediaQueries = oldMediaQueries;
  73247. t1._async_evaluate$_declarationName = oldDeclarationName;
  73248. t1._async_evaluate$_inUnknownAtRule = oldInUnknownAtRule;
  73249. t1._async_evaluate$_atRootExcludingStyleRule = t2;
  73250. t1._async_evaluate$_inKeyframes = oldInKeyframes;
  73251. t1._async_evaluate$_configuration = oldConfiguration;
  73252. // implicit return
  73253. return A._asyncReturn(null, $async$completer);
  73254. }
  73255. });
  73256. return A._asyncStartSync($async$call$0, $async$completer);
  73257. },
  73258. $signature: 2
  73259. };
  73260. A._EvaluateVisitor__combineCss_closure1.prototype = {
  73261. call$1(module) {
  73262. return module.get$transitivelyContainsCss();
  73263. },
  73264. $signature: 133
  73265. };
  73266. A._EvaluateVisitor__combineCss_closure2.prototype = {
  73267. call$1(target) {
  73268. return !this.selectors.contains$1(0, target);
  73269. },
  73270. $signature: 13
  73271. };
  73272. A._EvaluateVisitor__combineCss_visitModule0.prototype = {
  73273. call$1(module) {
  73274. var t1, t2, t3, t4, _i, upstream, _1_0, statements, index, _this = this;
  73275. if (!_this.seen.add$1(0, module))
  73276. return;
  73277. if (_this.clone)
  73278. module = module.cloneCss$0();
  73279. for (t1 = module.get$upstream(), t2 = t1.length, t3 = _this.css, t4 = _this.imports, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
  73280. upstream = t1[_i];
  73281. if (upstream.get$transitivelyContainsCss()) {
  73282. _1_0 = module.get$preModuleComments().$index(0, upstream);
  73283. if (_1_0 != null)
  73284. B.JSArray_methods.addAll$1(t3.length === 0 ? t4 : t3, _1_0);
  73285. _this.call$1(upstream);
  73286. }
  73287. }
  73288. _this.sorted.addFirst$1(module);
  73289. t1 = module.get$css(module);
  73290. statements = t1.get$children(t1);
  73291. index = _this.$this._async_evaluate$_indexAfterImports$1(statements);
  73292. t1 = J.getInterceptor$ax(statements);
  73293. B.JSArray_methods.addAll$1(t4, t1.getRange$2(statements, 0, index));
  73294. B.JSArray_methods.addAll$1(t3, t1.getRange$2(statements, index, t1.get$length(statements)));
  73295. },
  73296. $signature: 459
  73297. };
  73298. A._EvaluateVisitor__extendModules_closure1.prototype = {
  73299. call$1(target) {
  73300. return !this.originalSelectors.contains$1(0, target);
  73301. },
  73302. $signature: 13
  73303. };
  73304. A._EvaluateVisitor__extendModules_closure2.prototype = {
  73305. call$0() {
  73306. return A._setArrayType([], type$.JSArray_ExtensionStore);
  73307. },
  73308. $signature: 202
  73309. };
  73310. A._EvaluateVisitor_visitAtRootRule_closure1.prototype = {
  73311. call$0() {
  73312. var $async$goto = 0,
  73313. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  73314. $async$self = this, t1, t2, t3, _i;
  73315. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  73316. if ($async$errorCode === 1)
  73317. return A._asyncRethrow($async$result, $async$completer);
  73318. while (true)
  73319. switch ($async$goto) {
  73320. case 0:
  73321. // Function start
  73322. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  73323. case 2:
  73324. // for condition
  73325. if (!(_i < t2)) {
  73326. // goto after for
  73327. $async$goto = 4;
  73328. break;
  73329. }
  73330. $async$goto = 5;
  73331. return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  73332. case 5:
  73333. // returning from await.
  73334. case 3:
  73335. // for update
  73336. ++_i;
  73337. // goto for condition
  73338. $async$goto = 2;
  73339. break;
  73340. case 4:
  73341. // after for
  73342. // implicit return
  73343. return A._asyncReturn(null, $async$completer);
  73344. }
  73345. });
  73346. return A._asyncStartSync($async$call$0, $async$completer);
  73347. },
  73348. $signature: 2
  73349. };
  73350. A._EvaluateVisitor_visitAtRootRule_closure2.prototype = {
  73351. call$0() {
  73352. var $async$goto = 0,
  73353. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  73354. $async$self = this, t1, t2, t3, _i;
  73355. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  73356. if ($async$errorCode === 1)
  73357. return A._asyncRethrow($async$result, $async$completer);
  73358. while (true)
  73359. switch ($async$goto) {
  73360. case 0:
  73361. // Function start
  73362. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  73363. case 2:
  73364. // for condition
  73365. if (!(_i < t2)) {
  73366. // goto after for
  73367. $async$goto = 4;
  73368. break;
  73369. }
  73370. $async$goto = 5;
  73371. return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  73372. case 5:
  73373. // returning from await.
  73374. case 3:
  73375. // for update
  73376. ++_i;
  73377. // goto for condition
  73378. $async$goto = 2;
  73379. break;
  73380. case 4:
  73381. // after for
  73382. // implicit return
  73383. return A._asyncReturn(null, $async$completer);
  73384. }
  73385. });
  73386. return A._asyncStartSync($async$call$0, $async$completer);
  73387. },
  73388. $signature: 30
  73389. };
  73390. A._EvaluateVisitor__scopeForAtRoot_closure5.prototype = {
  73391. call$1(callback) {
  73392. var $async$goto = 0,
  73393. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  73394. $async$self = this, t1, t2;
  73395. var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  73396. if ($async$errorCode === 1)
  73397. return A._asyncRethrow($async$result, $async$completer);
  73398. while (true)
  73399. switch ($async$goto) {
  73400. case 0:
  73401. // Function start
  73402. t1 = $async$self.$this;
  73403. t2 = t1._async_evaluate$_assertInModule$2(t1._async_evaluate$__parent, "__parent");
  73404. t1._async_evaluate$__parent = $async$self.newParent;
  73405. $async$goto = 2;
  73406. return A._asyncAwait(t1._async_evaluate$_environment.scope$1$2$when(callback, $async$self.node.hasDeclarations, type$.void), $async$call$1);
  73407. case 2:
  73408. // returning from await.
  73409. t1._async_evaluate$__parent = t2;
  73410. // implicit return
  73411. return A._asyncReturn(null, $async$completer);
  73412. }
  73413. });
  73414. return A._asyncStartSync($async$call$1, $async$completer);
  73415. },
  73416. $signature: 39
  73417. };
  73418. A._EvaluateVisitor__scopeForAtRoot_closure6.prototype = {
  73419. call$1(callback) {
  73420. var $async$goto = 0,
  73421. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  73422. $async$self = this, t1, oldAtRootExcludingStyleRule;
  73423. var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  73424. if ($async$errorCode === 1)
  73425. return A._asyncRethrow($async$result, $async$completer);
  73426. while (true)
  73427. switch ($async$goto) {
  73428. case 0:
  73429. // Function start
  73430. t1 = $async$self.$this;
  73431. oldAtRootExcludingStyleRule = t1._async_evaluate$_atRootExcludingStyleRule;
  73432. t1._async_evaluate$_atRootExcludingStyleRule = true;
  73433. $async$goto = 2;
  73434. return A._asyncAwait($async$self.innerScope.call$1(callback), $async$call$1);
  73435. case 2:
  73436. // returning from await.
  73437. t1._async_evaluate$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  73438. // implicit return
  73439. return A._asyncReturn(null, $async$completer);
  73440. }
  73441. });
  73442. return A._asyncStartSync($async$call$1, $async$completer);
  73443. },
  73444. $signature: 39
  73445. };
  73446. A._EvaluateVisitor__scopeForAtRoot_closure7.prototype = {
  73447. call$1(callback) {
  73448. return this.$this._async_evaluate$_withMediaQueries$1$3(null, null, new A._EvaluateVisitor__scopeForAtRoot__closure0(this.innerScope, callback), type$.Null);
  73449. },
  73450. $signature: 39
  73451. };
  73452. A._EvaluateVisitor__scopeForAtRoot__closure0.prototype = {
  73453. call$0() {
  73454. return this.innerScope.call$1(this.callback);
  73455. },
  73456. $signature: 2
  73457. };
  73458. A._EvaluateVisitor__scopeForAtRoot_closure8.prototype = {
  73459. call$1(callback) {
  73460. var $async$goto = 0,
  73461. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  73462. $async$self = this, t1, wasInKeyframes;
  73463. var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  73464. if ($async$errorCode === 1)
  73465. return A._asyncRethrow($async$result, $async$completer);
  73466. while (true)
  73467. switch ($async$goto) {
  73468. case 0:
  73469. // Function start
  73470. t1 = $async$self.$this;
  73471. wasInKeyframes = t1._async_evaluate$_inKeyframes;
  73472. t1._async_evaluate$_inKeyframes = false;
  73473. $async$goto = 2;
  73474. return A._asyncAwait($async$self.innerScope.call$1(callback), $async$call$1);
  73475. case 2:
  73476. // returning from await.
  73477. t1._async_evaluate$_inKeyframes = wasInKeyframes;
  73478. // implicit return
  73479. return A._asyncReturn(null, $async$completer);
  73480. }
  73481. });
  73482. return A._asyncStartSync($async$call$1, $async$completer);
  73483. },
  73484. $signature: 39
  73485. };
  73486. A._EvaluateVisitor__scopeForAtRoot_closure9.prototype = {
  73487. call$1($parent) {
  73488. return $parent instanceof A.ModifiableCssAtRule;
  73489. },
  73490. $signature: 204
  73491. };
  73492. A._EvaluateVisitor__scopeForAtRoot_closure10.prototype = {
  73493. call$1(callback) {
  73494. var $async$goto = 0,
  73495. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  73496. $async$self = this, t1, wasInUnknownAtRule;
  73497. var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  73498. if ($async$errorCode === 1)
  73499. return A._asyncRethrow($async$result, $async$completer);
  73500. while (true)
  73501. switch ($async$goto) {
  73502. case 0:
  73503. // Function start
  73504. t1 = $async$self.$this;
  73505. wasInUnknownAtRule = t1._async_evaluate$_inUnknownAtRule;
  73506. t1._async_evaluate$_inUnknownAtRule = false;
  73507. $async$goto = 2;
  73508. return A._asyncAwait($async$self.innerScope.call$1(callback), $async$call$1);
  73509. case 2:
  73510. // returning from await.
  73511. t1._async_evaluate$_inUnknownAtRule = wasInUnknownAtRule;
  73512. // implicit return
  73513. return A._asyncReturn(null, $async$completer);
  73514. }
  73515. });
  73516. return A._asyncStartSync($async$call$1, $async$completer);
  73517. },
  73518. $signature: 39
  73519. };
  73520. A._EvaluateVisitor_visitContentRule_closure0.prototype = {
  73521. call$0() {
  73522. var $async$goto = 0,
  73523. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  73524. $async$returnValue, $async$self = this, t1, t2, t3, _i;
  73525. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  73526. if ($async$errorCode === 1)
  73527. return A._asyncRethrow($async$result, $async$completer);
  73528. while (true)
  73529. switch ($async$goto) {
  73530. case 0:
  73531. // Function start
  73532. t1 = $async$self.content.declaration.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  73533. case 3:
  73534. // for condition
  73535. if (!(_i < t2)) {
  73536. // goto after for
  73537. $async$goto = 5;
  73538. break;
  73539. }
  73540. $async$goto = 6;
  73541. return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  73542. case 6:
  73543. // returning from await.
  73544. case 4:
  73545. // for update
  73546. ++_i;
  73547. // goto for condition
  73548. $async$goto = 3;
  73549. break;
  73550. case 5:
  73551. // after for
  73552. $async$returnValue = null;
  73553. // goto return
  73554. $async$goto = 1;
  73555. break;
  73556. case 1:
  73557. // return
  73558. return A._asyncReturn($async$returnValue, $async$completer);
  73559. }
  73560. });
  73561. return A._asyncStartSync($async$call$0, $async$completer);
  73562. },
  73563. $signature: 2
  73564. };
  73565. A._EvaluateVisitor_visitDeclaration_closure0.prototype = {
  73566. call$0() {
  73567. var $async$goto = 0,
  73568. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  73569. $async$self = this, t1, t2, t3, _i;
  73570. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  73571. if ($async$errorCode === 1)
  73572. return A._asyncRethrow($async$result, $async$completer);
  73573. while (true)
  73574. switch ($async$goto) {
  73575. case 0:
  73576. // Function start
  73577. t1 = $async$self._box_0.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  73578. case 2:
  73579. // for condition
  73580. if (!(_i < t2)) {
  73581. // goto after for
  73582. $async$goto = 4;
  73583. break;
  73584. }
  73585. $async$goto = 5;
  73586. return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  73587. case 5:
  73588. // returning from await.
  73589. case 3:
  73590. // for update
  73591. ++_i;
  73592. // goto for condition
  73593. $async$goto = 2;
  73594. break;
  73595. case 4:
  73596. // after for
  73597. // implicit return
  73598. return A._asyncReturn(null, $async$completer);
  73599. }
  73600. });
  73601. return A._asyncStartSync($async$call$0, $async$completer);
  73602. },
  73603. $signature: 2
  73604. };
  73605. A._EvaluateVisitor_visitEachRule_closure2.prototype = {
  73606. call$1(value) {
  73607. var t1 = this.$this,
  73608. t2 = this.nodeWithSpan;
  73609. return t1._async_evaluate$_environment.setLocalVariable$3(this._box_0.variable, t1._async_evaluate$_withoutSlash$2(value, t2), t2);
  73610. },
  73611. $signature: 60
  73612. };
  73613. A._EvaluateVisitor_visitEachRule_closure3.prototype = {
  73614. call$1(value) {
  73615. return this.$this._async_evaluate$_setMultipleVariables$3(this._box_0.variables, value, this.nodeWithSpan);
  73616. },
  73617. $signature: 60
  73618. };
  73619. A._EvaluateVisitor_visitEachRule_closure4.prototype = {
  73620. call$0() {
  73621. var _this = this,
  73622. t1 = _this.$this;
  73623. return t1._async_evaluate$_handleReturn$2(_this.list.get$asList(), new A._EvaluateVisitor_visitEachRule__closure0(t1, _this.setVariables, _this.node));
  73624. },
  73625. $signature: 75
  73626. };
  73627. A._EvaluateVisitor_visitEachRule__closure0.prototype = {
  73628. call$1(element) {
  73629. var t1;
  73630. this.setVariables.call$1(element);
  73631. t1 = this.$this;
  73632. return t1._async_evaluate$_handleReturn$2(this.node.children, new A._EvaluateVisitor_visitEachRule___closure0(t1));
  73633. },
  73634. $signature: 473
  73635. };
  73636. A._EvaluateVisitor_visitEachRule___closure0.prototype = {
  73637. call$1(child) {
  73638. return child.accept$1(this.$this);
  73639. },
  73640. $signature: 80
  73641. };
  73642. A._EvaluateVisitor_visitAtRule_closure2.prototype = {
  73643. call$1(value) {
  73644. return this.$this._async_evaluate$_interpolationToValue$3$trim$warnForColor(value, true, true);
  73645. },
  73646. $signature: 485
  73647. };
  73648. A._EvaluateVisitor_visitAtRule_closure3.prototype = {
  73649. call$0() {
  73650. var $async$goto = 0,
  73651. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  73652. $async$self = this, t2, t3, _i, t1, styleRule;
  73653. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  73654. if ($async$errorCode === 1)
  73655. return A._asyncRethrow($async$result, $async$completer);
  73656. while (true)
  73657. switch ($async$goto) {
  73658. case 0:
  73659. // Function start
  73660. t1 = $async$self.$this;
  73661. styleRule = t1._async_evaluate$_atRootExcludingStyleRule ? null : t1._async_evaluate$_styleRuleIgnoringAtRoot;
  73662. $async$goto = styleRule == null || t1._async_evaluate$_inKeyframes || J.$eq$($async$self.name.value, "font-face") ? 2 : 4;
  73663. break;
  73664. case 2:
  73665. // then
  73666. t2 = $async$self.children, t3 = t2.length, _i = 0;
  73667. case 5:
  73668. // for condition
  73669. if (!(_i < t3)) {
  73670. // goto after for
  73671. $async$goto = 7;
  73672. break;
  73673. }
  73674. $async$goto = 8;
  73675. return A._asyncAwait(t2[_i].accept$1(t1), $async$call$0);
  73676. case 8:
  73677. // returning from await.
  73678. case 6:
  73679. // for update
  73680. ++_i;
  73681. // goto for condition
  73682. $async$goto = 5;
  73683. break;
  73684. case 7:
  73685. // after for
  73686. // goto join
  73687. $async$goto = 3;
  73688. break;
  73689. case 4:
  73690. // else
  73691. $async$goto = 9;
  73692. return A._asyncAwait(t1._async_evaluate$_withParent$2$3$scopeWhen(A.ModifiableCssStyleRule$(styleRule._style_rule$_selector, styleRule.span, false, styleRule.originalSelector), new A._EvaluateVisitor_visitAtRule__closure0(t1, $async$self.children), false, type$.ModifiableCssStyleRule, type$.Null), $async$call$0);
  73693. case 9:
  73694. // returning from await.
  73695. case 3:
  73696. // join
  73697. // implicit return
  73698. return A._asyncReturn(null, $async$completer);
  73699. }
  73700. });
  73701. return A._asyncStartSync($async$call$0, $async$completer);
  73702. },
  73703. $signature: 2
  73704. };
  73705. A._EvaluateVisitor_visitAtRule__closure0.prototype = {
  73706. call$0() {
  73707. var $async$goto = 0,
  73708. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  73709. $async$self = this, t1, t2, t3, _i;
  73710. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  73711. if ($async$errorCode === 1)
  73712. return A._asyncRethrow($async$result, $async$completer);
  73713. while (true)
  73714. switch ($async$goto) {
  73715. case 0:
  73716. // Function start
  73717. t1 = $async$self.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  73718. case 2:
  73719. // for condition
  73720. if (!(_i < t2)) {
  73721. // goto after for
  73722. $async$goto = 4;
  73723. break;
  73724. }
  73725. $async$goto = 5;
  73726. return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  73727. case 5:
  73728. // returning from await.
  73729. case 3:
  73730. // for update
  73731. ++_i;
  73732. // goto for condition
  73733. $async$goto = 2;
  73734. break;
  73735. case 4:
  73736. // after for
  73737. // implicit return
  73738. return A._asyncReturn(null, $async$completer);
  73739. }
  73740. });
  73741. return A._asyncStartSync($async$call$0, $async$completer);
  73742. },
  73743. $signature: 2
  73744. };
  73745. A._EvaluateVisitor_visitAtRule_closure4.prototype = {
  73746. call$1(node) {
  73747. return node instanceof A.ModifiableCssStyleRule;
  73748. },
  73749. $signature: 7
  73750. };
  73751. A._EvaluateVisitor_visitForRule_closure4.prototype = {
  73752. call$0() {
  73753. var $async$goto = 0,
  73754. $async$completer = A._makeAsyncAwaitCompleter(type$.SassNumber),
  73755. $async$returnValue, $async$self = this;
  73756. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  73757. if ($async$errorCode === 1)
  73758. return A._asyncRethrow($async$result, $async$completer);
  73759. while (true)
  73760. switch ($async$goto) {
  73761. case 0:
  73762. // Function start
  73763. $async$goto = 3;
  73764. return A._asyncAwait($async$self.node.from.accept$1($async$self.$this), $async$call$0);
  73765. case 3:
  73766. // returning from await.
  73767. $async$returnValue = $async$result.assertNumber$0();
  73768. // goto return
  73769. $async$goto = 1;
  73770. break;
  73771. case 1:
  73772. // return
  73773. return A._asyncReturn($async$returnValue, $async$completer);
  73774. }
  73775. });
  73776. return A._asyncStartSync($async$call$0, $async$completer);
  73777. },
  73778. $signature: 211
  73779. };
  73780. A._EvaluateVisitor_visitForRule_closure5.prototype = {
  73781. call$0() {
  73782. var $async$goto = 0,
  73783. $async$completer = A._makeAsyncAwaitCompleter(type$.SassNumber),
  73784. $async$returnValue, $async$self = this;
  73785. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  73786. if ($async$errorCode === 1)
  73787. return A._asyncRethrow($async$result, $async$completer);
  73788. while (true)
  73789. switch ($async$goto) {
  73790. case 0:
  73791. // Function start
  73792. $async$goto = 3;
  73793. return A._asyncAwait($async$self.node.to.accept$1($async$self.$this), $async$call$0);
  73794. case 3:
  73795. // returning from await.
  73796. $async$returnValue = $async$result.assertNumber$0();
  73797. // goto return
  73798. $async$goto = 1;
  73799. break;
  73800. case 1:
  73801. // return
  73802. return A._asyncReturn($async$returnValue, $async$completer);
  73803. }
  73804. });
  73805. return A._asyncStartSync($async$call$0, $async$completer);
  73806. },
  73807. $signature: 211
  73808. };
  73809. A._EvaluateVisitor_visitForRule_closure6.prototype = {
  73810. call$0() {
  73811. return this.fromNumber.assertInt$0();
  73812. },
  73813. $signature: 10
  73814. };
  73815. A._EvaluateVisitor_visitForRule_closure7.prototype = {
  73816. call$0() {
  73817. var t1 = this.fromNumber;
  73818. return this.toNumber.coerce$2(t1.get$numeratorUnits(t1), t1.get$denominatorUnits(t1)).assertInt$0();
  73819. },
  73820. $signature: 10
  73821. };
  73822. A._EvaluateVisitor_visitForRule_closure8.prototype = {
  73823. call$0() {
  73824. var $async$goto = 0,
  73825. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  73826. $async$returnValue, $async$self = this, i, t3, t4, t5, t6, t7, t8, _0_0, t1, t2, nodeWithSpan;
  73827. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  73828. if ($async$errorCode === 1)
  73829. return A._asyncRethrow($async$result, $async$completer);
  73830. while (true)
  73831. switch ($async$goto) {
  73832. case 0:
  73833. // Function start
  73834. t1 = $async$self.$this;
  73835. t2 = $async$self.node;
  73836. nodeWithSpan = t1._async_evaluate$_expressionNode$1(t2.from);
  73837. i = $async$self.from, t3 = $async$self._box_0, t4 = $async$self.direction, t5 = t2.variable, t6 = $async$self.fromNumber, t2 = t2.children;
  73838. case 3:
  73839. // for condition
  73840. if (!(i !== t3.to)) {
  73841. // goto after for
  73842. $async$goto = 5;
  73843. break;
  73844. }
  73845. t7 = t1._async_evaluate$_environment;
  73846. t8 = t6.get$numeratorUnits(t6);
  73847. t7.setLocalVariable$3(t5, A.SassNumber_SassNumber$withUnits(i, t6.get$denominatorUnits(t6), t8), nodeWithSpan);
  73848. $async$goto = 6;
  73849. return A._asyncAwait(t1._async_evaluate$_handleReturn$2(t2, new A._EvaluateVisitor_visitForRule__closure0(t1)), $async$call$0);
  73850. case 6:
  73851. // returning from await.
  73852. _0_0 = $async$result;
  73853. if (_0_0 != null) {
  73854. $async$returnValue = _0_0;
  73855. // goto return
  73856. $async$goto = 1;
  73857. break;
  73858. }
  73859. case 4:
  73860. // for update
  73861. i += t4;
  73862. // goto for condition
  73863. $async$goto = 3;
  73864. break;
  73865. case 5:
  73866. // after for
  73867. $async$returnValue = null;
  73868. // goto return
  73869. $async$goto = 1;
  73870. break;
  73871. case 1:
  73872. // return
  73873. return A._asyncReturn($async$returnValue, $async$completer);
  73874. }
  73875. });
  73876. return A._asyncStartSync($async$call$0, $async$completer);
  73877. },
  73878. $signature: 75
  73879. };
  73880. A._EvaluateVisitor_visitForRule__closure0.prototype = {
  73881. call$1(child) {
  73882. return child.accept$1(this.$this);
  73883. },
  73884. $signature: 80
  73885. };
  73886. A._EvaluateVisitor_visitForwardRule_closure1.prototype = {
  73887. call$2(module, firstLoad) {
  73888. if (firstLoad)
  73889. this.$this._async_evaluate$_registerCommentsForModule$1(module);
  73890. this.$this._async_evaluate$_environment.forwardModule$2(module, this.node);
  73891. },
  73892. $signature: 116
  73893. };
  73894. A._EvaluateVisitor_visitForwardRule_closure2.prototype = {
  73895. call$2(module, firstLoad) {
  73896. if (firstLoad)
  73897. this.$this._async_evaluate$_registerCommentsForModule$1(module);
  73898. this.$this._async_evaluate$_environment.forwardModule$2(module, this.node);
  73899. },
  73900. $signature: 116
  73901. };
  73902. A._EvaluateVisitor__registerCommentsForModule_closure0.prototype = {
  73903. call$0() {
  73904. return A._setArrayType([], type$.JSArray_CssComment);
  73905. },
  73906. $signature: 214
  73907. };
  73908. A._EvaluateVisitor_visitIfRule_closure0.prototype = {
  73909. call$1(clause) {
  73910. var t1 = this.$this;
  73911. return t1._async_evaluate$_environment.scope$1$3$semiGlobal$when(new A._EvaluateVisitor_visitIfRule__closure0(t1, clause), true, clause.hasDeclarations, type$.nullable_Value);
  73912. },
  73913. $signature: 512
  73914. };
  73915. A._EvaluateVisitor_visitIfRule__closure0.prototype = {
  73916. call$0() {
  73917. var t1 = this.$this;
  73918. return t1._async_evaluate$_handleReturn$2(this.clause.children, new A._EvaluateVisitor_visitIfRule___closure0(t1));
  73919. },
  73920. $signature: 75
  73921. };
  73922. A._EvaluateVisitor_visitIfRule___closure0.prototype = {
  73923. call$1(child) {
  73924. return child.accept$1(this.$this);
  73925. },
  73926. $signature: 80
  73927. };
  73928. A._EvaluateVisitor__visitDynamicImport_closure0.prototype = {
  73929. call$0() {
  73930. return this.$call$body$_EvaluateVisitor__visitDynamicImport_closure();
  73931. },
  73932. $call$body$_EvaluateVisitor__visitDynamicImport_closure() {
  73933. var $async$goto = 0,
  73934. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  73935. $async$returnValue, $async$self = this, t1, t2, _0_0, stylesheet, importer, isDependency, t3, url, oldImporter, oldInDependency, loadsUserDefinedModules, children, t4, t5, t6, t7, t8, t9, t10, environment, module, visitor, _box_0;
  73936. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  73937. if ($async$errorCode === 1)
  73938. return A._asyncRethrow($async$result, $async$completer);
  73939. while (true)
  73940. switch ($async$goto) {
  73941. case 0:
  73942. // Function start
  73943. _box_0 = {};
  73944. _box_0.isDependency = _box_0.importer = _box_0.stylesheet = null;
  73945. t1 = $async$self.$this;
  73946. t2 = $async$self.$import;
  73947. $async$goto = 3;
  73948. return A._asyncAwait(t1._async_evaluate$_loadStylesheet$3$forImport(t2.urlString, t2.span, true), $async$call$0);
  73949. case 3:
  73950. // returning from await.
  73951. _0_0 = $async$result;
  73952. stylesheet = _box_0.stylesheet = _0_0._0;
  73953. importer = _0_0._1;
  73954. _box_0.importer = importer;
  73955. isDependency = _0_0._2;
  73956. _box_0.isDependency = isDependency;
  73957. t3 = stylesheet.span;
  73958. url = t3.get$sourceUrl(t3);
  73959. if (url != null) {
  73960. t3 = t1._async_evaluate$_activeModules;
  73961. if (t3.containsKey$1(url)) {
  73962. t2 = A.NullableExtension_andThen(t3.$index(0, url), new A._EvaluateVisitor__visitDynamicImport__closure3(t1));
  73963. throw A.wrapException(t2 == null ? t1._async_evaluate$_exception$1("This file is already being loaded.") : t2);
  73964. }
  73965. t3.$indexSet(0, url, t2);
  73966. }
  73967. t2 = stylesheet._uses;
  73968. t3 = type$.UnmodifiableListView_UseRule;
  73969. $async$goto = new A.UnmodifiableListView(t2, t3).get$length(0) === 0 && new A.UnmodifiableListView(stylesheet._forwards, type$.UnmodifiableListView_ForwardRule).get$length(0) === 0 ? 4 : 5;
  73970. break;
  73971. case 4:
  73972. // then
  73973. oldImporter = t1._async_evaluate$_importer;
  73974. t2 = t1._async_evaluate$_assertInModule$2(t1._async_evaluate$__stylesheet, "_stylesheet");
  73975. oldInDependency = t1._async_evaluate$_inDependency;
  73976. t1._async_evaluate$_importer = importer;
  73977. t1._async_evaluate$__stylesheet = stylesheet;
  73978. t1._async_evaluate$_inDependency = isDependency;
  73979. $async$goto = 6;
  73980. return A._asyncAwait(t1.visitStylesheet$1(0, stylesheet), $async$call$0);
  73981. case 6:
  73982. // returning from await.
  73983. t1._async_evaluate$_importer = oldImporter;
  73984. t1._async_evaluate$__stylesheet = t2;
  73985. t1._async_evaluate$_inDependency = oldInDependency;
  73986. t1._async_evaluate$_activeModules.remove$1(0, url);
  73987. // goto return
  73988. $async$goto = 1;
  73989. break;
  73990. case 5:
  73991. // join
  73992. t2 = new A.UnmodifiableListView(t2, t3);
  73993. if (!t2.any$1(t2, new A._EvaluateVisitor__visitDynamicImport__closure4())) {
  73994. t2 = new A.UnmodifiableListView(stylesheet._forwards, type$.UnmodifiableListView_ForwardRule);
  73995. loadsUserDefinedModules = t2.any$1(t2, new A._EvaluateVisitor__visitDynamicImport__closure5());
  73996. } else
  73997. loadsUserDefinedModules = true;
  73998. children = A._Cell$();
  73999. t2 = t1._async_evaluate$_environment;
  74000. t3 = type$.String;
  74001. t4 = type$.Module_AsyncCallable;
  74002. t5 = type$.AstNode;
  74003. t6 = A._setArrayType([], type$.JSArray_Module_AsyncCallable);
  74004. t7 = t2._async_environment$_variables;
  74005. t7 = A._setArrayType(t7.slice(0), A._arrayInstanceType(t7));
  74006. t8 = t2._async_environment$_variableNodes;
  74007. t8 = A._setArrayType(t8.slice(0), A._arrayInstanceType(t8));
  74008. t9 = t2._async_environment$_functions;
  74009. t9 = A._setArrayType(t9.slice(0), A._arrayInstanceType(t9));
  74010. t10 = t2._async_environment$_mixins;
  74011. t10 = A._setArrayType(t10.slice(0), A._arrayInstanceType(t10));
  74012. environment = A.AsyncEnvironment$_(A.LinkedHashMap_LinkedHashMap$_empty(t3, t4), A.LinkedHashMap_LinkedHashMap$_empty(t3, t5), A.LinkedHashMap_LinkedHashMap$_empty(t4, t5), t2._async_environment$_importedModules, null, null, t6, t7, t8, t9, t10, t2._async_environment$_content);
  74013. $async$goto = 7;
  74014. return A._asyncAwait(t1._async_evaluate$_withEnvironment$1$2(environment, new A._EvaluateVisitor__visitDynamicImport__closure6(_box_0, t1, loadsUserDefinedModules, environment, children), type$.Null), $async$call$0);
  74015. case 7:
  74016. // returning from await.
  74017. module = environment.toDummyModule$0();
  74018. t1._async_evaluate$_environment.importForwards$1(module);
  74019. $async$goto = loadsUserDefinedModules ? 8 : 9;
  74020. break;
  74021. case 8:
  74022. // then
  74023. $async$goto = module.transitivelyContainsCss ? 10 : 11;
  74024. break;
  74025. case 10:
  74026. // then
  74027. $async$goto = 12;
  74028. return A._asyncAwait(t1._async_evaluate$_combineCss$2$clone(module, module.transitivelyContainsExtensions).accept$1(t1), $async$call$0);
  74029. case 12:
  74030. // returning from await.
  74031. case 11:
  74032. // join
  74033. visitor = new A._ImportedCssVisitor0(t1);
  74034. for (t2 = J.get$iterator$ax(children._readLocal$0()); t2.moveNext$0();)
  74035. t2.get$current(t2).accept$1(visitor);
  74036. case 9:
  74037. // join
  74038. t1._async_evaluate$_activeModules.remove$1(0, url);
  74039. case 1:
  74040. // return
  74041. return A._asyncReturn($async$returnValue, $async$completer);
  74042. }
  74043. });
  74044. return A._asyncStartSync($async$call$0, $async$completer);
  74045. },
  74046. $signature: 30
  74047. };
  74048. A._EvaluateVisitor__visitDynamicImport__closure3.prototype = {
  74049. call$1(previousLoad) {
  74050. return this.$this._async_evaluate$_multiSpanException$3("This file is already being loaded.", "new load", A.LinkedHashMap_LinkedHashMap$_literal([previousLoad.get$span(previousLoad), "original load"], type$.FileSpan, type$.String));
  74051. },
  74052. $signature: 106
  74053. };
  74054. A._EvaluateVisitor__visitDynamicImport__closure4.prototype = {
  74055. call$1(rule) {
  74056. return rule.url.get$scheme() !== "sass";
  74057. },
  74058. $signature: 217
  74059. };
  74060. A._EvaluateVisitor__visitDynamicImport__closure5.prototype = {
  74061. call$1(rule) {
  74062. return rule.url.get$scheme() !== "sass";
  74063. },
  74064. $signature: 224
  74065. };
  74066. A._EvaluateVisitor__visitDynamicImport__closure6.prototype = {
  74067. call$0() {
  74068. var $async$goto = 0,
  74069. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  74070. $async$self = this, t7, t8, t1, oldImporter, t2, t3, t4, t5, oldOutOfOrderImports, oldConfiguration, oldInDependency, t6;
  74071. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  74072. if ($async$errorCode === 1)
  74073. return A._asyncRethrow($async$result, $async$completer);
  74074. while (true)
  74075. switch ($async$goto) {
  74076. case 0:
  74077. // Function start
  74078. t1 = $async$self.$this;
  74079. oldImporter = t1._async_evaluate$_importer;
  74080. t2 = t1._async_evaluate$_assertInModule$2(t1._async_evaluate$__stylesheet, "_stylesheet");
  74081. t3 = t1._async_evaluate$_assertInModule$2(t1._async_evaluate$__root, "_root");
  74082. t4 = t1._async_evaluate$_assertInModule$2(t1._async_evaluate$__parent, "__parent");
  74083. t5 = t1._async_evaluate$_assertInModule$2(t1._async_evaluate$__endOfImports, "_endOfImports");
  74084. oldOutOfOrderImports = t1._async_evaluate$_outOfOrderImports;
  74085. oldConfiguration = t1._async_evaluate$_configuration;
  74086. oldInDependency = t1._async_evaluate$_inDependency;
  74087. t6 = $async$self._box_0;
  74088. t1._async_evaluate$_importer = t6.importer;
  74089. t7 = t6.stylesheet;
  74090. t1._async_evaluate$__stylesheet = t7;
  74091. t8 = $async$self.loadsUserDefinedModules;
  74092. if (t8) {
  74093. t7 = A.ModifiableCssStylesheet$(t7.span);
  74094. t1._async_evaluate$__root = t7;
  74095. t1._async_evaluate$__parent = t1._async_evaluate$_assertInModule$2(t7, "_root");
  74096. t1._async_evaluate$__endOfImports = 0;
  74097. t1._async_evaluate$_outOfOrderImports = null;
  74098. }
  74099. t1._async_evaluate$_inDependency = t6.isDependency;
  74100. t7 = new A.UnmodifiableListView(t6.stylesheet._forwards, type$.UnmodifiableListView_ForwardRule);
  74101. if (!t7.get$isEmpty(t7))
  74102. t1._async_evaluate$_configuration = $async$self.environment.toImplicitConfiguration$0();
  74103. $async$goto = 2;
  74104. return A._asyncAwait(t1.visitStylesheet$1(0, t6.stylesheet), $async$call$0);
  74105. case 2:
  74106. // returning from await.
  74107. t6 = t8 ? t1._async_evaluate$_addOutOfOrderImports$0() : A._setArrayType([], type$.JSArray_ModifiableCssNode);
  74108. $async$self.children.__late_helper$_value = t6;
  74109. t1._async_evaluate$_importer = oldImporter;
  74110. t1._async_evaluate$__stylesheet = t2;
  74111. if (t8) {
  74112. t1._async_evaluate$__root = t3;
  74113. t1._async_evaluate$__parent = t4;
  74114. t1._async_evaluate$__endOfImports = t5;
  74115. t1._async_evaluate$_outOfOrderImports = oldOutOfOrderImports;
  74116. }
  74117. t1._async_evaluate$_configuration = oldConfiguration;
  74118. t1._async_evaluate$_inDependency = oldInDependency;
  74119. // implicit return
  74120. return A._asyncReturn(null, $async$completer);
  74121. }
  74122. });
  74123. return A._asyncStartSync($async$call$0, $async$completer);
  74124. },
  74125. $signature: 2
  74126. };
  74127. A._EvaluateVisitor__applyMixin_closure1.prototype = {
  74128. call$0() {
  74129. var $async$goto = 0,
  74130. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  74131. $async$self = this, t1;
  74132. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  74133. if ($async$errorCode === 1)
  74134. return A._asyncRethrow($async$result, $async$completer);
  74135. while (true)
  74136. switch ($async$goto) {
  74137. case 0:
  74138. // Function start
  74139. t1 = $async$self.$this;
  74140. $async$goto = 2;
  74141. return A._asyncAwait(t1._async_evaluate$_environment.asMixin$1(new A._EvaluateVisitor__applyMixin__closure2(t1, $async$self.$arguments, $async$self.mixin, $async$self.nodeWithSpanWithoutContent)), $async$call$0);
  74142. case 2:
  74143. // returning from await.
  74144. // implicit return
  74145. return A._asyncReturn(null, $async$completer);
  74146. }
  74147. });
  74148. return A._asyncStartSync($async$call$0, $async$completer);
  74149. },
  74150. $signature: 30
  74151. };
  74152. A._EvaluateVisitor__applyMixin__closure2.prototype = {
  74153. call$0() {
  74154. var $async$goto = 0,
  74155. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  74156. $async$self = this;
  74157. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  74158. if ($async$errorCode === 1)
  74159. return A._asyncRethrow($async$result, $async$completer);
  74160. while (true)
  74161. switch ($async$goto) {
  74162. case 0:
  74163. // Function start
  74164. $async$goto = 2;
  74165. return A._asyncAwait($async$self.$this._async_evaluate$_runBuiltInCallable$3($async$self.$arguments, $async$self.mixin, $async$self.nodeWithSpanWithoutContent), $async$call$0);
  74166. case 2:
  74167. // returning from await.
  74168. // implicit return
  74169. return A._asyncReturn(null, $async$completer);
  74170. }
  74171. });
  74172. return A._asyncStartSync($async$call$0, $async$completer);
  74173. },
  74174. $signature: 30
  74175. };
  74176. A._EvaluateVisitor__applyMixin_closure2.prototype = {
  74177. call$0() {
  74178. var $async$goto = 0,
  74179. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  74180. $async$self = this, t1;
  74181. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  74182. if ($async$errorCode === 1)
  74183. return A._asyncRethrow($async$result, $async$completer);
  74184. while (true)
  74185. switch ($async$goto) {
  74186. case 0:
  74187. // Function start
  74188. t1 = $async$self.$this;
  74189. $async$goto = 2;
  74190. return A._asyncAwait(t1._async_evaluate$_environment.withContent$2($async$self.contentCallable, new A._EvaluateVisitor__applyMixin__closure1(t1, $async$self.mixin, $async$self.nodeWithSpanWithoutContent)), $async$call$0);
  74191. case 2:
  74192. // returning from await.
  74193. // implicit return
  74194. return A._asyncReturn(null, $async$completer);
  74195. }
  74196. });
  74197. return A._asyncStartSync($async$call$0, $async$completer);
  74198. },
  74199. $signature: 2
  74200. };
  74201. A._EvaluateVisitor__applyMixin__closure1.prototype = {
  74202. call$0() {
  74203. var $async$goto = 0,
  74204. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  74205. $async$self = this, t1;
  74206. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  74207. if ($async$errorCode === 1)
  74208. return A._asyncRethrow($async$result, $async$completer);
  74209. while (true)
  74210. switch ($async$goto) {
  74211. case 0:
  74212. // Function start
  74213. t1 = $async$self.$this;
  74214. $async$goto = 2;
  74215. return A._asyncAwait(t1._async_evaluate$_environment.asMixin$1(new A._EvaluateVisitor__applyMixin___closure0(t1, $async$self.mixin, $async$self.nodeWithSpanWithoutContent)), $async$call$0);
  74216. case 2:
  74217. // returning from await.
  74218. // implicit return
  74219. return A._asyncReturn(null, $async$completer);
  74220. }
  74221. });
  74222. return A._asyncStartSync($async$call$0, $async$completer);
  74223. },
  74224. $signature: 30
  74225. };
  74226. A._EvaluateVisitor__applyMixin___closure0.prototype = {
  74227. call$0() {
  74228. var $async$goto = 0,
  74229. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  74230. $async$self = this, t1, t2, t3, t4, t5, _i;
  74231. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  74232. if ($async$errorCode === 1)
  74233. return A._asyncRethrow($async$result, $async$completer);
  74234. while (true)
  74235. switch ($async$goto) {
  74236. case 0:
  74237. // Function start
  74238. t1 = $async$self.mixin.declaration.children, t2 = t1.length, t3 = $async$self.$this, t4 = $async$self.nodeWithSpanWithoutContent, t5 = type$.nullable_Value, _i = 0;
  74239. case 2:
  74240. // for condition
  74241. if (!(_i < t2)) {
  74242. // goto after for
  74243. $async$goto = 4;
  74244. break;
  74245. }
  74246. $async$goto = 5;
  74247. return A._asyncAwait(t3._async_evaluate$_addErrorSpan$1$2(t4, new A._EvaluateVisitor__applyMixin____closure0(t3, t1[_i]), t5), $async$call$0);
  74248. case 5:
  74249. // returning from await.
  74250. case 3:
  74251. // for update
  74252. ++_i;
  74253. // goto for condition
  74254. $async$goto = 2;
  74255. break;
  74256. case 4:
  74257. // after for
  74258. // implicit return
  74259. return A._asyncReturn(null, $async$completer);
  74260. }
  74261. });
  74262. return A._asyncStartSync($async$call$0, $async$completer);
  74263. },
  74264. $signature: 30
  74265. };
  74266. A._EvaluateVisitor__applyMixin____closure0.prototype = {
  74267. call$0() {
  74268. return this.statement.accept$1(this.$this);
  74269. },
  74270. $signature: 75
  74271. };
  74272. A._EvaluateVisitor_visitIncludeRule_closure2.prototype = {
  74273. call$0() {
  74274. var t1 = this.node;
  74275. return this.$this._async_evaluate$_environment.getMixin$2$namespace(t1.name, t1.namespace);
  74276. },
  74277. $signature: 81
  74278. };
  74279. A._EvaluateVisitor_visitIncludeRule_closure3.prototype = {
  74280. call$1($content) {
  74281. var t1 = this.$this;
  74282. return new A.UserDefinedCallable($content, t1._async_evaluate$_environment.closure$0(), t1._async_evaluate$_inDependency, type$.UserDefinedCallable_AsyncEnvironment);
  74283. },
  74284. $signature: 534
  74285. };
  74286. A._EvaluateVisitor_visitIncludeRule_closure4.prototype = {
  74287. call$0() {
  74288. return this.node.get$spanWithoutContent();
  74289. },
  74290. $signature: 29
  74291. };
  74292. A._EvaluateVisitor_visitMediaRule_closure2.prototype = {
  74293. call$1(mediaQueries) {
  74294. return this.$this._async_evaluate$_mergeMediaQueries$2(mediaQueries, this.queries);
  74295. },
  74296. $signature: 103
  74297. };
  74298. A._EvaluateVisitor_visitMediaRule_closure3.prototype = {
  74299. call$0() {
  74300. var $async$goto = 0,
  74301. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  74302. $async$self = this, t1, t2;
  74303. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  74304. if ($async$errorCode === 1)
  74305. return A._asyncRethrow($async$result, $async$completer);
  74306. while (true)
  74307. switch ($async$goto) {
  74308. case 0:
  74309. // Function start
  74310. t1 = $async$self.$this;
  74311. t2 = $async$self.mergedQueries;
  74312. if (t2 == null)
  74313. t2 = $async$self.queries;
  74314. $async$goto = 2;
  74315. return A._asyncAwait(t1._async_evaluate$_withMediaQueries$1$3(t2, $async$self.mergedSources, new A._EvaluateVisitor_visitMediaRule__closure0(t1, $async$self.node), type$.Null), $async$call$0);
  74316. case 2:
  74317. // returning from await.
  74318. // implicit return
  74319. return A._asyncReturn(null, $async$completer);
  74320. }
  74321. });
  74322. return A._asyncStartSync($async$call$0, $async$completer);
  74323. },
  74324. $signature: 2
  74325. };
  74326. A._EvaluateVisitor_visitMediaRule__closure0.prototype = {
  74327. call$0() {
  74328. var $async$goto = 0,
  74329. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  74330. $async$self = this, t2, t3, _i, t1, _0_0;
  74331. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  74332. if ($async$errorCode === 1)
  74333. return A._asyncRethrow($async$result, $async$completer);
  74334. while (true)
  74335. switch ($async$goto) {
  74336. case 0:
  74337. // Function start
  74338. t1 = $async$self.$this;
  74339. _0_0 = t1._async_evaluate$_atRootExcludingStyleRule ? null : t1._async_evaluate$_styleRuleIgnoringAtRoot;
  74340. $async$goto = _0_0 != null ? 2 : 4;
  74341. break;
  74342. case 2:
  74343. // then
  74344. $async$goto = 5;
  74345. return A._asyncAwait(t1._async_evaluate$_withParent$2$3$scopeWhen(A.ModifiableCssStyleRule$(_0_0._style_rule$_selector, _0_0.span, false, _0_0.originalSelector), new A._EvaluateVisitor_visitMediaRule___closure0(t1, $async$self.node), false, type$.ModifiableCssStyleRule, type$.Null), $async$call$0);
  74346. case 5:
  74347. // returning from await.
  74348. // goto join
  74349. $async$goto = 3;
  74350. break;
  74351. case 4:
  74352. // else
  74353. t2 = $async$self.node.children, t3 = t2.length, _i = 0;
  74354. case 6:
  74355. // for condition
  74356. if (!(_i < t3)) {
  74357. // goto after for
  74358. $async$goto = 8;
  74359. break;
  74360. }
  74361. $async$goto = 9;
  74362. return A._asyncAwait(t2[_i].accept$1(t1), $async$call$0);
  74363. case 9:
  74364. // returning from await.
  74365. case 7:
  74366. // for update
  74367. ++_i;
  74368. // goto for condition
  74369. $async$goto = 6;
  74370. break;
  74371. case 8:
  74372. // after for
  74373. case 3:
  74374. // join
  74375. // implicit return
  74376. return A._asyncReturn(null, $async$completer);
  74377. }
  74378. });
  74379. return A._asyncStartSync($async$call$0, $async$completer);
  74380. },
  74381. $signature: 2
  74382. };
  74383. A._EvaluateVisitor_visitMediaRule___closure0.prototype = {
  74384. call$0() {
  74385. var $async$goto = 0,
  74386. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  74387. $async$self = this, t1, t2, t3, _i;
  74388. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  74389. if ($async$errorCode === 1)
  74390. return A._asyncRethrow($async$result, $async$completer);
  74391. while (true)
  74392. switch ($async$goto) {
  74393. case 0:
  74394. // Function start
  74395. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  74396. case 2:
  74397. // for condition
  74398. if (!(_i < t2)) {
  74399. // goto after for
  74400. $async$goto = 4;
  74401. break;
  74402. }
  74403. $async$goto = 5;
  74404. return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  74405. case 5:
  74406. // returning from await.
  74407. case 3:
  74408. // for update
  74409. ++_i;
  74410. // goto for condition
  74411. $async$goto = 2;
  74412. break;
  74413. case 4:
  74414. // after for
  74415. // implicit return
  74416. return A._asyncReturn(null, $async$completer);
  74417. }
  74418. });
  74419. return A._asyncStartSync($async$call$0, $async$completer);
  74420. },
  74421. $signature: 2
  74422. };
  74423. A._EvaluateVisitor_visitMediaRule_closure4.prototype = {
  74424. call$1(node) {
  74425. var t1;
  74426. if (!(node instanceof A.ModifiableCssStyleRule)) {
  74427. t1 = this.mergedSources;
  74428. t1 = t1.get$isNotEmpty(t1) && node instanceof A.ModifiableCssMediaRule && B.JSArray_methods.every$1(node.queries, t1.get$contains(t1));
  74429. } else
  74430. t1 = true;
  74431. return t1;
  74432. },
  74433. $signature: 7
  74434. };
  74435. A._EvaluateVisitor_visitStyleRule_closure3.prototype = {
  74436. call$0() {
  74437. var $async$goto = 0,
  74438. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  74439. $async$self = this, t1, t2, t3, _i;
  74440. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  74441. if ($async$errorCode === 1)
  74442. return A._asyncRethrow($async$result, $async$completer);
  74443. while (true)
  74444. switch ($async$goto) {
  74445. case 0:
  74446. // Function start
  74447. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  74448. case 2:
  74449. // for condition
  74450. if (!(_i < t2)) {
  74451. // goto after for
  74452. $async$goto = 4;
  74453. break;
  74454. }
  74455. $async$goto = 5;
  74456. return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  74457. case 5:
  74458. // returning from await.
  74459. case 3:
  74460. // for update
  74461. ++_i;
  74462. // goto for condition
  74463. $async$goto = 2;
  74464. break;
  74465. case 4:
  74466. // after for
  74467. // implicit return
  74468. return A._asyncReturn(null, $async$completer);
  74469. }
  74470. });
  74471. return A._asyncStartSync($async$call$0, $async$completer);
  74472. },
  74473. $signature: 2
  74474. };
  74475. A._EvaluateVisitor_visitStyleRule_closure4.prototype = {
  74476. call$1(node) {
  74477. return node instanceof A.ModifiableCssStyleRule;
  74478. },
  74479. $signature: 7
  74480. };
  74481. A._EvaluateVisitor_visitStyleRule_closure6.prototype = {
  74482. call$0() {
  74483. var $async$goto = 0,
  74484. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  74485. $async$self = this, t1;
  74486. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  74487. if ($async$errorCode === 1)
  74488. return A._asyncRethrow($async$result, $async$completer);
  74489. while (true)
  74490. switch ($async$goto) {
  74491. case 0:
  74492. // Function start
  74493. t1 = $async$self.$this;
  74494. $async$goto = 2;
  74495. return A._asyncAwait(t1._async_evaluate$_withStyleRule$1$2($async$self.rule, new A._EvaluateVisitor_visitStyleRule__closure0(t1, $async$self.node), type$.Null), $async$call$0);
  74496. case 2:
  74497. // returning from await.
  74498. // implicit return
  74499. return A._asyncReturn(null, $async$completer);
  74500. }
  74501. });
  74502. return A._asyncStartSync($async$call$0, $async$completer);
  74503. },
  74504. $signature: 2
  74505. };
  74506. A._EvaluateVisitor_visitStyleRule__closure0.prototype = {
  74507. call$0() {
  74508. var $async$goto = 0,
  74509. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  74510. $async$self = this, t1, t2, t3, _i;
  74511. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  74512. if ($async$errorCode === 1)
  74513. return A._asyncRethrow($async$result, $async$completer);
  74514. while (true)
  74515. switch ($async$goto) {
  74516. case 0:
  74517. // Function start
  74518. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  74519. case 2:
  74520. // for condition
  74521. if (!(_i < t2)) {
  74522. // goto after for
  74523. $async$goto = 4;
  74524. break;
  74525. }
  74526. $async$goto = 5;
  74527. return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  74528. case 5:
  74529. // returning from await.
  74530. case 3:
  74531. // for update
  74532. ++_i;
  74533. // goto for condition
  74534. $async$goto = 2;
  74535. break;
  74536. case 4:
  74537. // after for
  74538. // implicit return
  74539. return A._asyncReturn(null, $async$completer);
  74540. }
  74541. });
  74542. return A._asyncStartSync($async$call$0, $async$completer);
  74543. },
  74544. $signature: 2
  74545. };
  74546. A._EvaluateVisitor_visitStyleRule_closure5.prototype = {
  74547. call$1(node) {
  74548. return node instanceof A.ModifiableCssStyleRule;
  74549. },
  74550. $signature: 7
  74551. };
  74552. A._EvaluateVisitor__warnForBogusCombinators_closure0.prototype = {
  74553. call$1(child) {
  74554. return child instanceof A.ModifiableCssComment;
  74555. },
  74556. $signature: 7
  74557. };
  74558. A._EvaluateVisitor_visitSupportsRule_closure1.prototype = {
  74559. call$0() {
  74560. var $async$goto = 0,
  74561. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  74562. $async$self = this, t2, t3, _i, t1, _0_0;
  74563. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  74564. if ($async$errorCode === 1)
  74565. return A._asyncRethrow($async$result, $async$completer);
  74566. while (true)
  74567. switch ($async$goto) {
  74568. case 0:
  74569. // Function start
  74570. t1 = $async$self.$this;
  74571. _0_0 = t1._async_evaluate$_atRootExcludingStyleRule ? null : t1._async_evaluate$_styleRuleIgnoringAtRoot;
  74572. $async$goto = _0_0 != null ? 2 : 4;
  74573. break;
  74574. case 2:
  74575. // then
  74576. $async$goto = 5;
  74577. return A._asyncAwait(t1._async_evaluate$_withParent$2$2(A.ModifiableCssStyleRule$(_0_0._style_rule$_selector, _0_0.span, false, _0_0.originalSelector), new A._EvaluateVisitor_visitSupportsRule__closure0(t1, $async$self.node), type$.ModifiableCssStyleRule, type$.Null), $async$call$0);
  74578. case 5:
  74579. // returning from await.
  74580. // goto join
  74581. $async$goto = 3;
  74582. break;
  74583. case 4:
  74584. // else
  74585. t2 = $async$self.node.children, t3 = t2.length, _i = 0;
  74586. case 6:
  74587. // for condition
  74588. if (!(_i < t3)) {
  74589. // goto after for
  74590. $async$goto = 8;
  74591. break;
  74592. }
  74593. $async$goto = 9;
  74594. return A._asyncAwait(t2[_i].accept$1(t1), $async$call$0);
  74595. case 9:
  74596. // returning from await.
  74597. case 7:
  74598. // for update
  74599. ++_i;
  74600. // goto for condition
  74601. $async$goto = 6;
  74602. break;
  74603. case 8:
  74604. // after for
  74605. case 3:
  74606. // join
  74607. // implicit return
  74608. return A._asyncReturn(null, $async$completer);
  74609. }
  74610. });
  74611. return A._asyncStartSync($async$call$0, $async$completer);
  74612. },
  74613. $signature: 2
  74614. };
  74615. A._EvaluateVisitor_visitSupportsRule__closure0.prototype = {
  74616. call$0() {
  74617. var $async$goto = 0,
  74618. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  74619. $async$self = this, t1, t2, t3, _i;
  74620. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  74621. if ($async$errorCode === 1)
  74622. return A._asyncRethrow($async$result, $async$completer);
  74623. while (true)
  74624. switch ($async$goto) {
  74625. case 0:
  74626. // Function start
  74627. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  74628. case 2:
  74629. // for condition
  74630. if (!(_i < t2)) {
  74631. // goto after for
  74632. $async$goto = 4;
  74633. break;
  74634. }
  74635. $async$goto = 5;
  74636. return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  74637. case 5:
  74638. // returning from await.
  74639. case 3:
  74640. // for update
  74641. ++_i;
  74642. // goto for condition
  74643. $async$goto = 2;
  74644. break;
  74645. case 4:
  74646. // after for
  74647. // implicit return
  74648. return A._asyncReturn(null, $async$completer);
  74649. }
  74650. });
  74651. return A._asyncStartSync($async$call$0, $async$completer);
  74652. },
  74653. $signature: 2
  74654. };
  74655. A._EvaluateVisitor_visitSupportsRule_closure2.prototype = {
  74656. call$1(node) {
  74657. return node instanceof A.ModifiableCssStyleRule;
  74658. },
  74659. $signature: 7
  74660. };
  74661. A._EvaluateVisitor__visitSupportsCondition_closure0.prototype = {
  74662. call$0() {
  74663. var $async$goto = 0,
  74664. $async$completer = A._makeAsyncAwaitCompleter(type$.String),
  74665. $async$returnValue, $async$self = this, t1, t2, t3, t4, $async$temp1, $async$temp2;
  74666. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  74667. if ($async$errorCode === 1)
  74668. return A._asyncRethrow($async$result, $async$completer);
  74669. while (true)
  74670. switch ($async$goto) {
  74671. case 0:
  74672. // Function start
  74673. t1 = $async$self.$this;
  74674. t2 = $async$self._box_0;
  74675. $async$temp1 = A;
  74676. $async$goto = 3;
  74677. return A._asyncAwait(t1._evaluateToCss$1(t2.declaration.name), $async$call$0);
  74678. case 3:
  74679. // returning from await.
  74680. t3 = $async$temp1.S($async$result);
  74681. t4 = t2.declaration.get$isCustomProperty() ? "" : " ";
  74682. $async$temp1 = "(" + t3 + ":" + t4;
  74683. $async$temp2 = A;
  74684. $async$goto = 4;
  74685. return A._asyncAwait(t1._evaluateToCss$1(t2.declaration.value), $async$call$0);
  74686. case 4:
  74687. // returning from await.
  74688. $async$returnValue = $async$temp1 + $async$temp2.S($async$result) + ")";
  74689. // goto return
  74690. $async$goto = 1;
  74691. break;
  74692. case 1:
  74693. // return
  74694. return A._asyncReturn($async$returnValue, $async$completer);
  74695. }
  74696. });
  74697. return A._asyncStartSync($async$call$0, $async$completer);
  74698. },
  74699. $signature: 227
  74700. };
  74701. A._EvaluateVisitor_visitVariableDeclaration_closure2.prototype = {
  74702. call$0() {
  74703. var t1 = this.$this._async_evaluate$_environment,
  74704. t2 = this._box_0.override;
  74705. t1.setVariable$4$global(this.node.name, t2.value, t2.assignmentNode, true);
  74706. },
  74707. $signature: 1
  74708. };
  74709. A._EvaluateVisitor_visitVariableDeclaration_closure3.prototype = {
  74710. call$0() {
  74711. var t1 = this.node;
  74712. return this.$this._async_evaluate$_environment.getVariable$2$namespace(t1.name, t1.namespace);
  74713. },
  74714. $signature: 42
  74715. };
  74716. A._EvaluateVisitor_visitVariableDeclaration_closure4.prototype = {
  74717. call$0() {
  74718. var t1 = this.$this,
  74719. t2 = this.node;
  74720. t1._async_evaluate$_environment.setVariable$5$global$namespace(t2.name, this.value, t1._async_evaluate$_expressionNode$1(t2.expression), t2.isGlobal, t2.namespace);
  74721. },
  74722. $signature: 1
  74723. };
  74724. A._EvaluateVisitor_visitUseRule_closure0.prototype = {
  74725. call$2(module, firstLoad) {
  74726. var t1, t2, t3, _0_0, t4, t5, span;
  74727. if (firstLoad)
  74728. this.$this._async_evaluate$_registerCommentsForModule$1(module);
  74729. t1 = this.$this._async_evaluate$_environment;
  74730. t2 = this.node;
  74731. t3 = t2.namespace;
  74732. if (t3 == null) {
  74733. t1._async_environment$_globalModules.$indexSet(0, module, t2);
  74734. t1._async_environment$_allModules.push(module);
  74735. _0_0 = A.IterableExtension_firstWhereOrNull(J.get$keys$z(B.JSArray_methods.get$first(t1._async_environment$_variables)), module.get$variables().get$containsKey());
  74736. if (_0_0 != null)
  74737. A.throwExpression(A.SassScriptException$(string$.This_ma + _0_0 + '".', null));
  74738. } else {
  74739. t4 = t1._async_environment$_modules;
  74740. if (t4.containsKey$1(t3)) {
  74741. t5 = t1._async_environment$_namespaceNodes.$index(0, t3);
  74742. span = t5 == null ? null : t5.span;
  74743. t5 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
  74744. if (span != null)
  74745. t5.$indexSet(0, span, "original @use");
  74746. A.throwExpression(A.MultiSpanSassScriptException$(string$.There_ + t3 + '".', "new @use", t5));
  74747. }
  74748. t4.$indexSet(0, t3, module);
  74749. t1._async_environment$_namespaceNodes.$indexSet(0, t3, t2);
  74750. t1._async_environment$_allModules.push(module);
  74751. }
  74752. },
  74753. $signature: 116
  74754. };
  74755. A._EvaluateVisitor_visitWarnRule_closure0.prototype = {
  74756. call$0() {
  74757. return this.node.expression.accept$1(this.$this);
  74758. },
  74759. $signature: 74
  74760. };
  74761. A._EvaluateVisitor_visitWhileRule_closure0.prototype = {
  74762. call$0() {
  74763. var $async$goto = 0,
  74764. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value),
  74765. $async$returnValue, $async$self = this, t1, t2, t3, _0_0;
  74766. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  74767. if ($async$errorCode === 1)
  74768. return A._asyncRethrow($async$result, $async$completer);
  74769. while (true)
  74770. switch ($async$goto) {
  74771. case 0:
  74772. // Function start
  74773. t1 = $async$self.node, t2 = t1.condition, t3 = $async$self.$this, t1 = t1.children;
  74774. case 3:
  74775. // for condition
  74776. $async$goto = 5;
  74777. return A._asyncAwait(t2.accept$1(t3), $async$call$0);
  74778. case 5:
  74779. // returning from await.
  74780. if (!$async$result.get$isTruthy()) {
  74781. // goto after for
  74782. $async$goto = 4;
  74783. break;
  74784. }
  74785. $async$goto = 6;
  74786. return A._asyncAwait(t3._async_evaluate$_handleReturn$2(t1, new A._EvaluateVisitor_visitWhileRule__closure0(t3)), $async$call$0);
  74787. case 6:
  74788. // returning from await.
  74789. _0_0 = $async$result;
  74790. if (_0_0 != null) {
  74791. $async$returnValue = _0_0;
  74792. // goto return
  74793. $async$goto = 1;
  74794. break;
  74795. }
  74796. // goto for condition
  74797. $async$goto = 3;
  74798. break;
  74799. case 4:
  74800. // after for
  74801. $async$returnValue = null;
  74802. // goto return
  74803. $async$goto = 1;
  74804. break;
  74805. case 1:
  74806. // return
  74807. return A._asyncReturn($async$returnValue, $async$completer);
  74808. }
  74809. });
  74810. return A._asyncStartSync($async$call$0, $async$completer);
  74811. },
  74812. $signature: 75
  74813. };
  74814. A._EvaluateVisitor_visitWhileRule__closure0.prototype = {
  74815. call$1(child) {
  74816. return child.accept$1(this.$this);
  74817. },
  74818. $signature: 80
  74819. };
  74820. A._EvaluateVisitor_visitBinaryOperationExpression_closure0.prototype = {
  74821. call$0() {
  74822. var $async$goto = 0,
  74823. $async$completer = A._makeAsyncAwaitCompleter(type$.Value),
  74824. $async$returnValue, $async$self = this, t3, t1, t2, left, $async$temp1, $async$temp2;
  74825. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  74826. if ($async$errorCode === 1)
  74827. return A._asyncRethrow($async$result, $async$completer);
  74828. while (true)
  74829. switch ($async$goto) {
  74830. case 0:
  74831. // Function start
  74832. t1 = $async$self.node;
  74833. t2 = $async$self.$this;
  74834. $async$goto = 3;
  74835. return A._asyncAwait(t1.left.accept$1(t2), $async$call$0);
  74836. case 3:
  74837. // returning from await.
  74838. left = $async$result;
  74839. case 4:
  74840. // switch
  74841. switch (t1.operator) {
  74842. case B.BinaryOperator_wdM:
  74843. // goto case
  74844. $async$goto = 6;
  74845. break;
  74846. case B.BinaryOperator_qNM:
  74847. // goto case
  74848. $async$goto = 7;
  74849. break;
  74850. case B.BinaryOperator_eDt:
  74851. // goto case
  74852. $async$goto = 8;
  74853. break;
  74854. case B.BinaryOperator_g8k:
  74855. // goto case
  74856. $async$goto = 9;
  74857. break;
  74858. case B.BinaryOperator_icU:
  74859. // goto case
  74860. $async$goto = 10;
  74861. break;
  74862. case B.BinaryOperator_bEa:
  74863. // goto case
  74864. $async$goto = 11;
  74865. break;
  74866. case B.BinaryOperator_oEm:
  74867. // goto case
  74868. $async$goto = 12;
  74869. break;
  74870. case B.BinaryOperator_miq:
  74871. // goto case
  74872. $async$goto = 13;
  74873. break;
  74874. case B.BinaryOperator_SPQ:
  74875. // goto case
  74876. $async$goto = 14;
  74877. break;
  74878. case B.BinaryOperator_u15:
  74879. // goto case
  74880. $async$goto = 15;
  74881. break;
  74882. case B.BinaryOperator_SjO:
  74883. // goto case
  74884. $async$goto = 16;
  74885. break;
  74886. case B.BinaryOperator_2No:
  74887. // goto case
  74888. $async$goto = 17;
  74889. break;
  74890. case B.BinaryOperator_U77:
  74891. // goto case
  74892. $async$goto = 18;
  74893. break;
  74894. case B.BinaryOperator_KNx:
  74895. // goto case
  74896. $async$goto = 19;
  74897. break;
  74898. default:
  74899. // goto default
  74900. $async$goto = 20;
  74901. break;
  74902. }
  74903. break;
  74904. case 6:
  74905. // case
  74906. t1 = t1.right.accept$1(t2);
  74907. $async$goto = 21;
  74908. return A._asyncAwait(type$.Future_Value._is(t1) ? t1 : A._Future$value(t1, type$.Value), $async$call$0);
  74909. case 21:
  74910. // returning from await.
  74911. t1 = $async$result;
  74912. t1 = new A.SassString(A.serializeValue(left, false, true) + "=" + A.serializeValue(t1, false, true), false);
  74913. // goto after switch
  74914. $async$goto = 5;
  74915. break;
  74916. case 7:
  74917. // case
  74918. $async$goto = left.get$isTruthy() ? 22 : 24;
  74919. break;
  74920. case 22:
  74921. // then
  74922. t1 = left;
  74923. // goto join
  74924. $async$goto = 23;
  74925. break;
  74926. case 24:
  74927. // else
  74928. t1 = t1.right.accept$1(t2);
  74929. $async$goto = 25;
  74930. return A._asyncAwait(type$.Future_Value._is(t1) ? t1 : A._Future$value(t1, type$.Value), $async$call$0);
  74931. case 25:
  74932. // returning from await.
  74933. t1 = $async$result;
  74934. case 23:
  74935. // join
  74936. // goto after switch
  74937. $async$goto = 5;
  74938. break;
  74939. case 8:
  74940. // case
  74941. $async$goto = left.get$isTruthy() ? 26 : 28;
  74942. break;
  74943. case 26:
  74944. // then
  74945. t1 = t1.right.accept$1(t2);
  74946. $async$goto = 29;
  74947. return A._asyncAwait(type$.Future_Value._is(t1) ? t1 : A._Future$value(t1, type$.Value), $async$call$0);
  74948. case 29:
  74949. // returning from await.
  74950. t1 = $async$result;
  74951. // goto join
  74952. $async$goto = 27;
  74953. break;
  74954. case 28:
  74955. // else
  74956. t1 = left;
  74957. case 27:
  74958. // join
  74959. // goto after switch
  74960. $async$goto = 5;
  74961. break;
  74962. case 9:
  74963. // case
  74964. $async$temp1 = left;
  74965. $async$goto = 30;
  74966. return A._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  74967. case 30:
  74968. // returning from await.
  74969. t1 = $async$temp1.$eq(0, $async$result) ? B.SassBoolean_true : B.SassBoolean_false;
  74970. // goto after switch
  74971. $async$goto = 5;
  74972. break;
  74973. case 10:
  74974. // case
  74975. $async$temp1 = left;
  74976. $async$goto = 31;
  74977. return A._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  74978. case 31:
  74979. // returning from await.
  74980. t1 = !$async$temp1.$eq(0, $async$result) ? B.SassBoolean_true : B.SassBoolean_false;
  74981. // goto after switch
  74982. $async$goto = 5;
  74983. break;
  74984. case 11:
  74985. // case
  74986. t1 = t1.right.accept$1(t2);
  74987. $async$temp1 = left;
  74988. $async$goto = 32;
  74989. return A._asyncAwait(type$.Future_Value._is(t1) ? t1 : A._Future$value(t1, type$.Value), $async$call$0);
  74990. case 32:
  74991. // returning from await.
  74992. t1 = $async$temp1.greaterThan$1($async$result);
  74993. // goto after switch
  74994. $async$goto = 5;
  74995. break;
  74996. case 12:
  74997. // case
  74998. t1 = t1.right.accept$1(t2);
  74999. $async$temp1 = left;
  75000. $async$goto = 33;
  75001. return A._asyncAwait(type$.Future_Value._is(t1) ? t1 : A._Future$value(t1, type$.Value), $async$call$0);
  75002. case 33:
  75003. // returning from await.
  75004. t1 = $async$temp1.greaterThanOrEquals$1($async$result);
  75005. // goto after switch
  75006. $async$goto = 5;
  75007. break;
  75008. case 13:
  75009. // case
  75010. t1 = t1.right.accept$1(t2);
  75011. $async$temp1 = left;
  75012. $async$goto = 34;
  75013. return A._asyncAwait(type$.Future_Value._is(t1) ? t1 : A._Future$value(t1, type$.Value), $async$call$0);
  75014. case 34:
  75015. // returning from await.
  75016. t1 = $async$temp1.lessThan$1($async$result);
  75017. // goto after switch
  75018. $async$goto = 5;
  75019. break;
  75020. case 14:
  75021. // case
  75022. t1 = t1.right.accept$1(t2);
  75023. $async$temp1 = left;
  75024. $async$goto = 35;
  75025. return A._asyncAwait(type$.Future_Value._is(t1) ? t1 : A._Future$value(t1, type$.Value), $async$call$0);
  75026. case 35:
  75027. // returning from await.
  75028. t1 = $async$temp1.lessThanOrEquals$1($async$result);
  75029. // goto after switch
  75030. $async$goto = 5;
  75031. break;
  75032. case 15:
  75033. // case
  75034. t1 = t1.right.accept$1(t2);
  75035. $async$temp1 = left;
  75036. $async$goto = 36;
  75037. return A._asyncAwait(type$.Future_Value._is(t1) ? t1 : A._Future$value(t1, type$.Value), $async$call$0);
  75038. case 36:
  75039. // returning from await.
  75040. t1 = $async$temp1.plus$1($async$result);
  75041. // goto after switch
  75042. $async$goto = 5;
  75043. break;
  75044. case 16:
  75045. // case
  75046. t1 = t1.right.accept$1(t2);
  75047. $async$temp1 = left;
  75048. $async$goto = 37;
  75049. return A._asyncAwait(type$.Future_Value._is(t1) ? t1 : A._Future$value(t1, type$.Value), $async$call$0);
  75050. case 37:
  75051. // returning from await.
  75052. t1 = $async$temp1.minus$1($async$result);
  75053. // goto after switch
  75054. $async$goto = 5;
  75055. break;
  75056. case 17:
  75057. // case
  75058. t1 = t1.right.accept$1(t2);
  75059. $async$temp1 = left;
  75060. $async$goto = 38;
  75061. return A._asyncAwait(type$.Future_Value._is(t1) ? t1 : A._Future$value(t1, type$.Value), $async$call$0);
  75062. case 38:
  75063. // returning from await.
  75064. t1 = $async$temp1.times$1($async$result);
  75065. // goto after switch
  75066. $async$goto = 5;
  75067. break;
  75068. case 18:
  75069. // case
  75070. t3 = t1.right.accept$1(t2);
  75071. $async$temp1 = t2;
  75072. $async$temp2 = left;
  75073. $async$goto = 39;
  75074. return A._asyncAwait(type$.Future_Value._is(t3) ? t3 : A._Future$value(t3, type$.Value), $async$call$0);
  75075. case 39:
  75076. // returning from await.
  75077. t1 = $async$temp1._async_evaluate$_slash$3($async$temp2, $async$result, t1);
  75078. // goto after switch
  75079. $async$goto = 5;
  75080. break;
  75081. case 19:
  75082. // case
  75083. t1 = t1.right.accept$1(t2);
  75084. $async$temp1 = left;
  75085. $async$goto = 40;
  75086. return A._asyncAwait(type$.Future_Value._is(t1) ? t1 : A._Future$value(t1, type$.Value), $async$call$0);
  75087. case 40:
  75088. // returning from await.
  75089. t1 = $async$temp1.modulo$1($async$result);
  75090. // goto after switch
  75091. $async$goto = 5;
  75092. break;
  75093. case 20:
  75094. // default
  75095. t1 = null;
  75096. case 5:
  75097. // after switch
  75098. $async$returnValue = t1;
  75099. // goto return
  75100. $async$goto = 1;
  75101. break;
  75102. case 1:
  75103. // return
  75104. return A._asyncReturn($async$returnValue, $async$completer);
  75105. }
  75106. });
  75107. return A._asyncStartSync($async$call$0, $async$completer);
  75108. },
  75109. $signature: 74
  75110. };
  75111. A._EvaluateVisitor__slash_recommendation0.prototype = {
  75112. call$1(expression) {
  75113. var t1;
  75114. $label0$0: {
  75115. if (expression instanceof A.BinaryOperationExpression && B.BinaryOperator_U77 === expression.operator) {
  75116. t1 = "math.div(" + A.S(this.call$1(expression.left)) + ", " + A.S(this.call$1(expression.right)) + ")";
  75117. break $label0$0;
  75118. }
  75119. if (expression instanceof A.ParenthesizedExpression) {
  75120. t1 = expression.expression.toString$0(0);
  75121. break $label0$0;
  75122. }
  75123. t1 = expression.toString$0(0);
  75124. break $label0$0;
  75125. }
  75126. return t1;
  75127. },
  75128. $signature: 119
  75129. };
  75130. A._EvaluateVisitor_visitVariableExpression_closure0.prototype = {
  75131. call$0() {
  75132. var t1 = this.node;
  75133. return this.$this._async_evaluate$_environment.getVariable$2$namespace(t1.name, t1.namespace);
  75134. },
  75135. $signature: 42
  75136. };
  75137. A._EvaluateVisitor_visitUnaryOperationExpression_closure0.prototype = {
  75138. call$0() {
  75139. var t1, _this = this;
  75140. switch (_this.node.operator) {
  75141. case B.UnaryOperator_cLp:
  75142. t1 = _this.operand.unaryPlus$0();
  75143. break;
  75144. case B.UnaryOperator_AiQ:
  75145. t1 = _this.operand.unaryMinus$0();
  75146. break;
  75147. case B.UnaryOperator_SJr:
  75148. t1 = new A.SassString("/" + A.serializeValue(_this.operand, false, true), false);
  75149. break;
  75150. case B.UnaryOperator_not_not_not:
  75151. t1 = _this.operand.unaryNot$0();
  75152. break;
  75153. default:
  75154. t1 = null;
  75155. }
  75156. return t1;
  75157. },
  75158. $signature: 38
  75159. };
  75160. A._EvaluateVisitor_visitListExpression_closure0.prototype = {
  75161. call$1(expression) {
  75162. return expression.accept$1(this.$this);
  75163. },
  75164. $signature: 545
  75165. };
  75166. A._EvaluateVisitor_visitFunctionExpression_closure2.prototype = {
  75167. call$0() {
  75168. var t1 = this.node;
  75169. return this.$this._async_evaluate$_environment.getFunction$2$namespace(t1.name, t1.namespace);
  75170. },
  75171. $signature: 81
  75172. };
  75173. A._EvaluateVisitor_visitFunctionExpression_closure3.prototype = {
  75174. call$1(argument) {
  75175. return argument.accept$1(B.C_IsCalculationSafeVisitor);
  75176. },
  75177. $signature: 121
  75178. };
  75179. A._EvaluateVisitor_visitFunctionExpression_closure4.prototype = {
  75180. call$0() {
  75181. var t1 = this.node;
  75182. return this.$this._async_evaluate$_runFunctionCallable$3(t1.$arguments, this._box_0.$function, t1);
  75183. },
  75184. $signature: 74
  75185. };
  75186. A._EvaluateVisitor__checkCalculationArguments_check0.prototype = {
  75187. call$1(maxArgs) {
  75188. var t1 = this.node,
  75189. t2 = t1.$arguments.positional.length;
  75190. if (t2 === 0)
  75191. throw A.wrapException(this.$this._async_evaluate$_exception$2("Missing argument.", t1.span));
  75192. else if (maxArgs != null && t2 > maxArgs)
  75193. throw A.wrapException(this.$this._async_evaluate$_exception$2("Only " + A.S(maxArgs) + " " + A.pluralize("argument", maxArgs, null) + " allowed, but " + t2 + " " + A.pluralize("was", t2, "were") + " passed.", t1.span));
  75194. },
  75195. call$0() {
  75196. return this.call$1(null);
  75197. },
  75198. $signature: 99
  75199. };
  75200. A._EvaluateVisitor__visitCalculationExpression_closure0.prototype = {
  75201. call$0() {
  75202. var $async$goto = 0,
  75203. $async$completer = A._makeAsyncAwaitCompleter(type$.Object),
  75204. $async$returnValue, $async$self = this, t1, t2, t3, $async$temp1, $async$temp2, $async$temp3;
  75205. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  75206. if ($async$errorCode === 1)
  75207. return A._asyncRethrow($async$result, $async$completer);
  75208. while (true)
  75209. switch ($async$goto) {
  75210. case 0:
  75211. // Function start
  75212. t1 = $async$self.$this;
  75213. t2 = $async$self._box_0;
  75214. t3 = $async$self.inLegacySassFunction;
  75215. $async$temp1 = A;
  75216. $async$temp2 = t1._async_evaluate$_binaryOperatorToCalculationOperator$2(t2.operator, $async$self.node);
  75217. $async$goto = 3;
  75218. return A._asyncAwait(t1._async_evaluate$_visitCalculationExpression$2$inLegacySassFunction(t2.left, t3), $async$call$0);
  75219. case 3:
  75220. // returning from await.
  75221. $async$temp3 = $async$result;
  75222. $async$goto = 4;
  75223. return A._asyncAwait(t1._async_evaluate$_visitCalculationExpression$2$inLegacySassFunction(t2.right, t3), $async$call$0);
  75224. case 4:
  75225. // returning from await.
  75226. $async$returnValue = $async$temp1.SassCalculation_operateInternal($async$temp2, $async$temp3, $async$result, t3, !t1._async_evaluate$_inSupportsDeclaration);
  75227. // goto return
  75228. $async$goto = 1;
  75229. break;
  75230. case 1:
  75231. // return
  75232. return A._asyncReturn($async$returnValue, $async$completer);
  75233. }
  75234. });
  75235. return A._asyncStartSync($async$call$0, $async$completer);
  75236. },
  75237. $signature: 252
  75238. };
  75239. A._EvaluateVisitor_visitInterpolatedFunctionExpression_closure0.prototype = {
  75240. call$0() {
  75241. var t1 = this.node;
  75242. return this.$this._async_evaluate$_runFunctionCallable$3(t1.$arguments, this.$function, t1);
  75243. },
  75244. $signature: 74
  75245. };
  75246. A._EvaluateVisitor__runUserDefinedCallable_closure0.prototype = {
  75247. call$0() {
  75248. var _this = this,
  75249. t1 = _this.$this,
  75250. t2 = _this.callable,
  75251. t3 = _this.V;
  75252. return t1._async_evaluate$_withEnvironment$1$2(t2.environment.closure$0(), new A._EvaluateVisitor__runUserDefinedCallable__closure0(t1, _this.evaluated, t2, _this.nodeWithSpan, _this.run, t3), t3);
  75253. },
  75254. $signature() {
  75255. return this.V._eval$1("Future<0>()");
  75256. }
  75257. };
  75258. A._EvaluateVisitor__runUserDefinedCallable__closure0.prototype = {
  75259. call$0() {
  75260. var _this = this,
  75261. t1 = _this.$this,
  75262. t2 = _this.V;
  75263. return t1._async_evaluate$_environment.scope$1$1(new A._EvaluateVisitor__runUserDefinedCallable___closure0(t1, _this.evaluated, _this.callable, _this.nodeWithSpan, _this.run, t2), t2);
  75264. },
  75265. $signature() {
  75266. return this.V._eval$1("Future<0>()");
  75267. }
  75268. };
  75269. A._EvaluateVisitor__runUserDefinedCallable___closure0.prototype = {
  75270. call$0() {
  75271. return this.$call$body$_EvaluateVisitor__runUserDefinedCallable___closure(this.V);
  75272. },
  75273. $call$body$_EvaluateVisitor__runUserDefinedCallable___closure($async$type) {
  75274. var $async$goto = 0,
  75275. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  75276. $async$returnValue, $async$self = this, declaredArguments, t5, minLength, i, argument, t6, t7, value, t8, restArgument, rest, argumentList, result, argumentWord, t1, t2, t3, t4, $async$temp1;
  75277. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  75278. if ($async$errorCode === 1)
  75279. return A._asyncRethrow($async$result, $async$completer);
  75280. while (true)
  75281. switch ($async$goto) {
  75282. case 0:
  75283. // Function start
  75284. t1 = $async$self.$this;
  75285. t2 = $async$self.evaluated._values;
  75286. t3 = $async$self.callable.declaration.$arguments;
  75287. t4 = $async$self.nodeWithSpan;
  75288. t1._async_evaluate$_verifyArguments$4(J.get$length$asx(t2[2]), t2[0], t3, t4);
  75289. declaredArguments = t3.$arguments;
  75290. t5 = declaredArguments.length;
  75291. minLength = Math.min(J.get$length$asx(t2[2]), t5);
  75292. for (i = 0; i < minLength; ++i)
  75293. t1._async_evaluate$_environment.setLocalVariable$3(declaredArguments[i].name, J.$index$asx(t2[2], i), J.$index$asx(t2[3], i));
  75294. i = J.get$length$asx(t2[2]);
  75295. case 3:
  75296. // for condition
  75297. if (!(i < t5)) {
  75298. // goto after for
  75299. $async$goto = 5;
  75300. break;
  75301. }
  75302. argument = declaredArguments[i];
  75303. t6 = t2[0];
  75304. t7 = argument.name;
  75305. value = t6.remove$1(0, t7);
  75306. $async$goto = value == null ? 6 : 7;
  75307. break;
  75308. case 6:
  75309. // then
  75310. t6 = argument.defaultValue;
  75311. $async$temp1 = t1;
  75312. $async$goto = 8;
  75313. return A._asyncAwait(t6.accept$1(t1), $async$call$0);
  75314. case 8:
  75315. // returning from await.
  75316. value = $async$temp1._async_evaluate$_withoutSlash$2($async$result, t1._async_evaluate$_expressionNode$1(t6));
  75317. case 7:
  75318. // join
  75319. t6 = t1._async_evaluate$_environment;
  75320. t8 = t2[1].$index(0, t7);
  75321. if (t8 == null) {
  75322. t8 = argument.defaultValue;
  75323. t8.toString;
  75324. t8 = t1._async_evaluate$_expressionNode$1(t8);
  75325. }
  75326. t6.setLocalVariable$3(t7, value, t8);
  75327. case 4:
  75328. // for update
  75329. ++i;
  75330. // goto for condition
  75331. $async$goto = 3;
  75332. break;
  75333. case 5:
  75334. // after for
  75335. restArgument = t3.restArgument;
  75336. if (restArgument != null) {
  75337. rest = J.get$length$asx(t2[2]) > t5 ? J.sublist$1$ax(t2[2], t5) : B.List_empty8;
  75338. t5 = t2[0];
  75339. t6 = t2[4];
  75340. argumentList = A.SassArgumentList$(rest, t5, t6 === B.ListSeparator_undecided_null_undecided ? B.ListSeparator_ECn : t6);
  75341. t1._async_evaluate$_environment.setLocalVariable$3(restArgument, argumentList, t4);
  75342. } else
  75343. argumentList = null;
  75344. $async$goto = 9;
  75345. return A._asyncAwait($async$self.run.call$0(), $async$call$0);
  75346. case 9:
  75347. // returning from await.
  75348. result = $async$result;
  75349. if (argumentList == null) {
  75350. $async$returnValue = result;
  75351. // goto return
  75352. $async$goto = 1;
  75353. break;
  75354. }
  75355. t5 = t2[0];
  75356. if (t5.get$isEmpty(t5)) {
  75357. $async$returnValue = result;
  75358. // goto return
  75359. $async$goto = 1;
  75360. break;
  75361. }
  75362. if (argumentList._wereKeywordsAccessed) {
  75363. $async$returnValue = result;
  75364. // goto return
  75365. $async$goto = 1;
  75366. break;
  75367. }
  75368. t5 = t2[0];
  75369. argumentWord = A.pluralize("argument", J.get$length$asx(t5.get$keys(t5)), null);
  75370. t2 = t2[0];
  75371. throw A.wrapException(A.MultiSpanSassRuntimeException$("No " + argumentWord + " named " + A.toSentence(J.map$1$1$ax(t2.get$keys(t2), new A._EvaluateVisitor__runUserDefinedCallable____closure0(), type$.Object), "or") + ".", t4.get$span(t4), "invocation", A.LinkedHashMap_LinkedHashMap$_literal([t3.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), t1._async_evaluate$_stackTrace$1(t4.get$span(t4)), null));
  75372. case 1:
  75373. // return
  75374. return A._asyncReturn($async$returnValue, $async$completer);
  75375. }
  75376. });
  75377. return A._asyncStartSync($async$call$0, $async$completer);
  75378. },
  75379. $signature() {
  75380. return this.V._eval$1("Future<0>()");
  75381. }
  75382. };
  75383. A._EvaluateVisitor__runUserDefinedCallable____closure0.prototype = {
  75384. call$1($name) {
  75385. return "$" + $name;
  75386. },
  75387. $signature: 6
  75388. };
  75389. A._EvaluateVisitor__runFunctionCallable_closure0.prototype = {
  75390. call$0() {
  75391. var $async$goto = 0,
  75392. $async$completer = A._makeAsyncAwaitCompleter(type$.Value),
  75393. $async$returnValue, $async$self = this, t1, t2, t3, t4, _i, $returnValue;
  75394. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  75395. if ($async$errorCode === 1)
  75396. return A._asyncRethrow($async$result, $async$completer);
  75397. while (true)
  75398. switch ($async$goto) {
  75399. case 0:
  75400. // Function start
  75401. t1 = $async$self.callable.declaration, t2 = t1.children, t3 = t2.length, t4 = $async$self.$this, _i = 0;
  75402. case 3:
  75403. // for condition
  75404. if (!(_i < t3)) {
  75405. // goto after for
  75406. $async$goto = 5;
  75407. break;
  75408. }
  75409. $async$goto = 6;
  75410. return A._asyncAwait(t2[_i].accept$1(t4), $async$call$0);
  75411. case 6:
  75412. // returning from await.
  75413. $returnValue = $async$result;
  75414. if ($returnValue instanceof A.Value) {
  75415. $async$returnValue = $returnValue;
  75416. // goto return
  75417. $async$goto = 1;
  75418. break;
  75419. }
  75420. case 4:
  75421. // for update
  75422. ++_i;
  75423. // goto for condition
  75424. $async$goto = 3;
  75425. break;
  75426. case 5:
  75427. // after for
  75428. throw A.wrapException(t4._async_evaluate$_exception$2("Function finished without @return.", t1.span));
  75429. case 1:
  75430. // return
  75431. return A._asyncReturn($async$returnValue, $async$completer);
  75432. }
  75433. });
  75434. return A._asyncStartSync($async$call$0, $async$completer);
  75435. },
  75436. $signature: 74
  75437. };
  75438. A._EvaluateVisitor__runBuiltInCallable_closure2.prototype = {
  75439. call$0() {
  75440. return this._box_0.overload.verify$2(J.get$length$asx(this.evaluated._values[2]), this.namedSet);
  75441. },
  75442. $signature: 0
  75443. };
  75444. A._EvaluateVisitor__runBuiltInCallable_closure3.prototype = {
  75445. call$0() {
  75446. return this._box_0.callback.call$1(this.evaluated._values[2]);
  75447. },
  75448. $signature: 565
  75449. };
  75450. A._EvaluateVisitor__runBuiltInCallable_closure4.prototype = {
  75451. call$1($name) {
  75452. return "$" + $name;
  75453. },
  75454. $signature: 6
  75455. };
  75456. A._EvaluateVisitor__evaluateArguments_closure3.prototype = {
  75457. call$1(value) {
  75458. return value;
  75459. },
  75460. $signature: 41
  75461. };
  75462. A._EvaluateVisitor__evaluateArguments_closure4.prototype = {
  75463. call$1(value) {
  75464. return this.$this._async_evaluate$_withoutSlash$2(value, this.restNodeForSpan);
  75465. },
  75466. $signature: 41
  75467. };
  75468. A._EvaluateVisitor__evaluateArguments_closure5.prototype = {
  75469. call$2(key, value) {
  75470. var _this = this,
  75471. t1 = _this.restNodeForSpan;
  75472. _this.named.$indexSet(0, key, _this.$this._async_evaluate$_withoutSlash$2(value, t1));
  75473. _this.namedNodes.$indexSet(0, key, t1);
  75474. },
  75475. $signature: 89
  75476. };
  75477. A._EvaluateVisitor__evaluateArguments_closure6.prototype = {
  75478. call$1(value) {
  75479. return value;
  75480. },
  75481. $signature: 41
  75482. };
  75483. A._EvaluateVisitor__evaluateMacroArguments_closure3.prototype = {
  75484. call$1(value) {
  75485. var t1 = this.restArgs;
  75486. return new A.ValueExpression(value, t1.get$span(t1));
  75487. },
  75488. $signature: 57
  75489. };
  75490. A._EvaluateVisitor__evaluateMacroArguments_closure4.prototype = {
  75491. call$1(value) {
  75492. var t1 = this.restArgs;
  75493. return new A.ValueExpression(this.$this._async_evaluate$_withoutSlash$2(value, this.restNodeForSpan), t1.get$span(t1));
  75494. },
  75495. $signature: 57
  75496. };
  75497. A._EvaluateVisitor__evaluateMacroArguments_closure5.prototype = {
  75498. call$2(key, value) {
  75499. var _this = this,
  75500. t1 = _this.restArgs;
  75501. _this.named.$indexSet(0, key, new A.ValueExpression(_this.$this._async_evaluate$_withoutSlash$2(value, _this.restNodeForSpan), t1.get$span(t1)));
  75502. },
  75503. $signature: 89
  75504. };
  75505. A._EvaluateVisitor__evaluateMacroArguments_closure6.prototype = {
  75506. call$1(value) {
  75507. var t1 = this.keywordRestArgs;
  75508. return new A.ValueExpression(this.$this._async_evaluate$_withoutSlash$2(value, this.keywordRestNodeForSpan), t1.get$span(t1));
  75509. },
  75510. $signature: 57
  75511. };
  75512. A._EvaluateVisitor__addRestMap_closure0.prototype = {
  75513. call$2(key, value) {
  75514. var t2, _this = this,
  75515. t1 = _this.$this;
  75516. if (key instanceof A.SassString)
  75517. _this.values.$indexSet(0, key._string$_text, _this.convert.call$1(t1._async_evaluate$_withoutSlash$2(value, _this.expressionNode)));
  75518. else {
  75519. t2 = _this.nodeWithSpan;
  75520. throw A.wrapException(t1._async_evaluate$_exception$2(string$.Variab_ + key.toString$0(0) + " is not a string in " + _this.map.toString$0(0) + ".", t2.get$span(t2)));
  75521. }
  75522. },
  75523. $signature: 102
  75524. };
  75525. A._EvaluateVisitor__verifyArguments_closure0.prototype = {
  75526. call$0() {
  75527. return this.$arguments.verify$2(this.positional, new A.MapKeySet(this.named, type$.MapKeySet_String));
  75528. },
  75529. $signature: 0
  75530. };
  75531. A._EvaluateVisitor_visitCssAtRule_closure1.prototype = {
  75532. call$0() {
  75533. var $async$goto = 0,
  75534. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  75535. $async$self = this, t1, t2, t3, t4;
  75536. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  75537. if ($async$errorCode === 1)
  75538. return A._asyncRethrow($async$result, $async$completer);
  75539. while (true)
  75540. switch ($async$goto) {
  75541. case 0:
  75542. // Function start
  75543. t1 = $async$self.node.children, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t3 = $async$self.$this, t2 = t2._eval$1("ListBase.E");
  75544. case 2:
  75545. // for condition
  75546. if (!t1.moveNext$0()) {
  75547. // goto after for
  75548. $async$goto = 3;
  75549. break;
  75550. }
  75551. t4 = t1.__internal$_current;
  75552. $async$goto = 4;
  75553. return A._asyncAwait((t4 == null ? t2._as(t4) : t4).accept$1(t3), $async$call$0);
  75554. case 4:
  75555. // returning from await.
  75556. // goto for condition
  75557. $async$goto = 2;
  75558. break;
  75559. case 3:
  75560. // after for
  75561. // implicit return
  75562. return A._asyncReturn(null, $async$completer);
  75563. }
  75564. });
  75565. return A._asyncStartSync($async$call$0, $async$completer);
  75566. },
  75567. $signature: 2
  75568. };
  75569. A._EvaluateVisitor_visitCssAtRule_closure2.prototype = {
  75570. call$1(node) {
  75571. return node instanceof A.ModifiableCssStyleRule;
  75572. },
  75573. $signature: 7
  75574. };
  75575. A._EvaluateVisitor_visitCssKeyframeBlock_closure1.prototype = {
  75576. call$0() {
  75577. var $async$goto = 0,
  75578. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  75579. $async$self = this, t1, t2, t3, t4;
  75580. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  75581. if ($async$errorCode === 1)
  75582. return A._asyncRethrow($async$result, $async$completer);
  75583. while (true)
  75584. switch ($async$goto) {
  75585. case 0:
  75586. // Function start
  75587. t1 = $async$self.node.children, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t3 = $async$self.$this, t2 = t2._eval$1("ListBase.E");
  75588. case 2:
  75589. // for condition
  75590. if (!t1.moveNext$0()) {
  75591. // goto after for
  75592. $async$goto = 3;
  75593. break;
  75594. }
  75595. t4 = t1.__internal$_current;
  75596. $async$goto = 4;
  75597. return A._asyncAwait((t4 == null ? t2._as(t4) : t4).accept$1(t3), $async$call$0);
  75598. case 4:
  75599. // returning from await.
  75600. // goto for condition
  75601. $async$goto = 2;
  75602. break;
  75603. case 3:
  75604. // after for
  75605. // implicit return
  75606. return A._asyncReturn(null, $async$completer);
  75607. }
  75608. });
  75609. return A._asyncStartSync($async$call$0, $async$completer);
  75610. },
  75611. $signature: 2
  75612. };
  75613. A._EvaluateVisitor_visitCssKeyframeBlock_closure2.prototype = {
  75614. call$1(node) {
  75615. return node instanceof A.ModifiableCssStyleRule;
  75616. },
  75617. $signature: 7
  75618. };
  75619. A._EvaluateVisitor_visitCssMediaRule_closure2.prototype = {
  75620. call$1(mediaQueries) {
  75621. return this.$this._async_evaluate$_mergeMediaQueries$2(mediaQueries, this.node.queries);
  75622. },
  75623. $signature: 103
  75624. };
  75625. A._EvaluateVisitor_visitCssMediaRule_closure3.prototype = {
  75626. call$0() {
  75627. var $async$goto = 0,
  75628. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  75629. $async$self = this, t1, t2;
  75630. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  75631. if ($async$errorCode === 1)
  75632. return A._asyncRethrow($async$result, $async$completer);
  75633. while (true)
  75634. switch ($async$goto) {
  75635. case 0:
  75636. // Function start
  75637. t1 = $async$self.$this;
  75638. t2 = $async$self.mergedQueries;
  75639. if (t2 == null)
  75640. t2 = $async$self.node.queries;
  75641. $async$goto = 2;
  75642. return A._asyncAwait(t1._async_evaluate$_withMediaQueries$1$3(t2, $async$self.mergedSources, new A._EvaluateVisitor_visitCssMediaRule__closure0(t1, $async$self.node), type$.Null), $async$call$0);
  75643. case 2:
  75644. // returning from await.
  75645. // implicit return
  75646. return A._asyncReturn(null, $async$completer);
  75647. }
  75648. });
  75649. return A._asyncStartSync($async$call$0, $async$completer);
  75650. },
  75651. $signature: 2
  75652. };
  75653. A._EvaluateVisitor_visitCssMediaRule__closure0.prototype = {
  75654. call$0() {
  75655. var $async$goto = 0,
  75656. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  75657. $async$self = this, t2, t3, t4, t1, _0_0;
  75658. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  75659. if ($async$errorCode === 1)
  75660. return A._asyncRethrow($async$result, $async$completer);
  75661. while (true)
  75662. switch ($async$goto) {
  75663. case 0:
  75664. // Function start
  75665. t1 = $async$self.$this;
  75666. _0_0 = t1._async_evaluate$_atRootExcludingStyleRule ? null : t1._async_evaluate$_styleRuleIgnoringAtRoot;
  75667. $async$goto = _0_0 != null ? 2 : 4;
  75668. break;
  75669. case 2:
  75670. // then
  75671. $async$goto = 5;
  75672. return A._asyncAwait(t1._async_evaluate$_withParent$2$3$scopeWhen(A.ModifiableCssStyleRule$(_0_0._style_rule$_selector, _0_0.span, false, _0_0.originalSelector), new A._EvaluateVisitor_visitCssMediaRule___closure0(t1, $async$self.node), false, type$.ModifiableCssStyleRule, type$.Null), $async$call$0);
  75673. case 5:
  75674. // returning from await.
  75675. // goto join
  75676. $async$goto = 3;
  75677. break;
  75678. case 4:
  75679. // else
  75680. t2 = $async$self.node.children, t3 = t2.$ti, t2 = new A.ListIterator(t2, t2.get$length(0), t3._eval$1("ListIterator<ListBase.E>")), t3 = t3._eval$1("ListBase.E");
  75681. case 6:
  75682. // for condition
  75683. if (!t2.moveNext$0()) {
  75684. // goto after for
  75685. $async$goto = 7;
  75686. break;
  75687. }
  75688. t4 = t2.__internal$_current;
  75689. $async$goto = 8;
  75690. return A._asyncAwait((t4 == null ? t3._as(t4) : t4).accept$1(t1), $async$call$0);
  75691. case 8:
  75692. // returning from await.
  75693. // goto for condition
  75694. $async$goto = 6;
  75695. break;
  75696. case 7:
  75697. // after for
  75698. case 3:
  75699. // join
  75700. // implicit return
  75701. return A._asyncReturn(null, $async$completer);
  75702. }
  75703. });
  75704. return A._asyncStartSync($async$call$0, $async$completer);
  75705. },
  75706. $signature: 2
  75707. };
  75708. A._EvaluateVisitor_visitCssMediaRule___closure0.prototype = {
  75709. call$0() {
  75710. var $async$goto = 0,
  75711. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  75712. $async$self = this, t1, t2, t3, t4;
  75713. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  75714. if ($async$errorCode === 1)
  75715. return A._asyncRethrow($async$result, $async$completer);
  75716. while (true)
  75717. switch ($async$goto) {
  75718. case 0:
  75719. // Function start
  75720. t1 = $async$self.node.children, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t3 = $async$self.$this, t2 = t2._eval$1("ListBase.E");
  75721. case 2:
  75722. // for condition
  75723. if (!t1.moveNext$0()) {
  75724. // goto after for
  75725. $async$goto = 3;
  75726. break;
  75727. }
  75728. t4 = t1.__internal$_current;
  75729. $async$goto = 4;
  75730. return A._asyncAwait((t4 == null ? t2._as(t4) : t4).accept$1(t3), $async$call$0);
  75731. case 4:
  75732. // returning from await.
  75733. // goto for condition
  75734. $async$goto = 2;
  75735. break;
  75736. case 3:
  75737. // after for
  75738. // implicit return
  75739. return A._asyncReturn(null, $async$completer);
  75740. }
  75741. });
  75742. return A._asyncStartSync($async$call$0, $async$completer);
  75743. },
  75744. $signature: 2
  75745. };
  75746. A._EvaluateVisitor_visitCssMediaRule_closure4.prototype = {
  75747. call$1(node) {
  75748. var t1;
  75749. if (!(node instanceof A.ModifiableCssStyleRule)) {
  75750. t1 = this.mergedSources;
  75751. t1 = t1.get$isNotEmpty(t1) && node instanceof A.ModifiableCssMediaRule && B.JSArray_methods.every$1(node.queries, t1.get$contains(t1));
  75752. } else
  75753. t1 = true;
  75754. return t1;
  75755. },
  75756. $signature: 7
  75757. };
  75758. A._EvaluateVisitor_visitCssStyleRule_closure2.prototype = {
  75759. call$0() {
  75760. var $async$goto = 0,
  75761. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  75762. $async$self = this, t1;
  75763. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  75764. if ($async$errorCode === 1)
  75765. return A._asyncRethrow($async$result, $async$completer);
  75766. while (true)
  75767. switch ($async$goto) {
  75768. case 0:
  75769. // Function start
  75770. t1 = $async$self.$this;
  75771. $async$goto = 2;
  75772. return A._asyncAwait(t1._async_evaluate$_withStyleRule$1$2($async$self.rule, new A._EvaluateVisitor_visitCssStyleRule__closure0(t1, $async$self.node), type$.Null), $async$call$0);
  75773. case 2:
  75774. // returning from await.
  75775. // implicit return
  75776. return A._asyncReturn(null, $async$completer);
  75777. }
  75778. });
  75779. return A._asyncStartSync($async$call$0, $async$completer);
  75780. },
  75781. $signature: 2
  75782. };
  75783. A._EvaluateVisitor_visitCssStyleRule__closure0.prototype = {
  75784. call$0() {
  75785. var $async$goto = 0,
  75786. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  75787. $async$self = this, t1, t2, t3, t4;
  75788. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  75789. if ($async$errorCode === 1)
  75790. return A._asyncRethrow($async$result, $async$completer);
  75791. while (true)
  75792. switch ($async$goto) {
  75793. case 0:
  75794. // Function start
  75795. t1 = $async$self.node.children, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t3 = $async$self.$this, t2 = t2._eval$1("ListBase.E");
  75796. case 2:
  75797. // for condition
  75798. if (!t1.moveNext$0()) {
  75799. // goto after for
  75800. $async$goto = 3;
  75801. break;
  75802. }
  75803. t4 = t1.__internal$_current;
  75804. $async$goto = 4;
  75805. return A._asyncAwait((t4 == null ? t2._as(t4) : t4).accept$1(t3), $async$call$0);
  75806. case 4:
  75807. // returning from await.
  75808. // goto for condition
  75809. $async$goto = 2;
  75810. break;
  75811. case 3:
  75812. // after for
  75813. // implicit return
  75814. return A._asyncReturn(null, $async$completer);
  75815. }
  75816. });
  75817. return A._asyncStartSync($async$call$0, $async$completer);
  75818. },
  75819. $signature: 2
  75820. };
  75821. A._EvaluateVisitor_visitCssStyleRule_closure1.prototype = {
  75822. call$1(node) {
  75823. return node instanceof A.ModifiableCssStyleRule;
  75824. },
  75825. $signature: 7
  75826. };
  75827. A._EvaluateVisitor_visitCssSupportsRule_closure1.prototype = {
  75828. call$0() {
  75829. var $async$goto = 0,
  75830. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  75831. $async$self = this, t2, t3, t4, t1, _0_0;
  75832. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  75833. if ($async$errorCode === 1)
  75834. return A._asyncRethrow($async$result, $async$completer);
  75835. while (true)
  75836. switch ($async$goto) {
  75837. case 0:
  75838. // Function start
  75839. t1 = $async$self.$this;
  75840. _0_0 = t1._async_evaluate$_atRootExcludingStyleRule ? null : t1._async_evaluate$_styleRuleIgnoringAtRoot;
  75841. $async$goto = _0_0 != null ? 2 : 4;
  75842. break;
  75843. case 2:
  75844. // then
  75845. $async$goto = 5;
  75846. return A._asyncAwait(t1._async_evaluate$_withParent$2$2(A.ModifiableCssStyleRule$(_0_0._style_rule$_selector, _0_0.span, false, _0_0.originalSelector), new A._EvaluateVisitor_visitCssSupportsRule__closure0(t1, $async$self.node), type$.ModifiableCssStyleRule, type$.Null), $async$call$0);
  75847. case 5:
  75848. // returning from await.
  75849. // goto join
  75850. $async$goto = 3;
  75851. break;
  75852. case 4:
  75853. // else
  75854. t2 = $async$self.node.children, t3 = t2.$ti, t2 = new A.ListIterator(t2, t2.get$length(0), t3._eval$1("ListIterator<ListBase.E>")), t3 = t3._eval$1("ListBase.E");
  75855. case 6:
  75856. // for condition
  75857. if (!t2.moveNext$0()) {
  75858. // goto after for
  75859. $async$goto = 7;
  75860. break;
  75861. }
  75862. t4 = t2.__internal$_current;
  75863. $async$goto = 8;
  75864. return A._asyncAwait((t4 == null ? t3._as(t4) : t4).accept$1(t1), $async$call$0);
  75865. case 8:
  75866. // returning from await.
  75867. // goto for condition
  75868. $async$goto = 6;
  75869. break;
  75870. case 7:
  75871. // after for
  75872. case 3:
  75873. // join
  75874. // implicit return
  75875. return A._asyncReturn(null, $async$completer);
  75876. }
  75877. });
  75878. return A._asyncStartSync($async$call$0, $async$completer);
  75879. },
  75880. $signature: 2
  75881. };
  75882. A._EvaluateVisitor_visitCssSupportsRule__closure0.prototype = {
  75883. call$0() {
  75884. var $async$goto = 0,
  75885. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  75886. $async$self = this, t1, t2, t3, t4;
  75887. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  75888. if ($async$errorCode === 1)
  75889. return A._asyncRethrow($async$result, $async$completer);
  75890. while (true)
  75891. switch ($async$goto) {
  75892. case 0:
  75893. // Function start
  75894. t1 = $async$self.node.children, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t3 = $async$self.$this, t2 = t2._eval$1("ListBase.E");
  75895. case 2:
  75896. // for condition
  75897. if (!t1.moveNext$0()) {
  75898. // goto after for
  75899. $async$goto = 3;
  75900. break;
  75901. }
  75902. t4 = t1.__internal$_current;
  75903. $async$goto = 4;
  75904. return A._asyncAwait((t4 == null ? t2._as(t4) : t4).accept$1(t3), $async$call$0);
  75905. case 4:
  75906. // returning from await.
  75907. // goto for condition
  75908. $async$goto = 2;
  75909. break;
  75910. case 3:
  75911. // after for
  75912. // implicit return
  75913. return A._asyncReturn(null, $async$completer);
  75914. }
  75915. });
  75916. return A._asyncStartSync($async$call$0, $async$completer);
  75917. },
  75918. $signature: 2
  75919. };
  75920. A._EvaluateVisitor_visitCssSupportsRule_closure2.prototype = {
  75921. call$1(node) {
  75922. return node instanceof A.ModifiableCssStyleRule;
  75923. },
  75924. $signature: 7
  75925. };
  75926. A._EvaluateVisitor__performInterpolationHelper_closure0.prototype = {
  75927. call$1(targetLocations) {
  75928. return A.InterpolationMap$(this.interpolation, targetLocations);
  75929. },
  75930. $signature: 268
  75931. };
  75932. A._EvaluateVisitor__serialize_closure0.prototype = {
  75933. call$0() {
  75934. return A.serializeValue(this.value, false, this.quote);
  75935. },
  75936. $signature: 31
  75937. };
  75938. A._EvaluateVisitor__expressionNode_closure0.prototype = {
  75939. call$0() {
  75940. var t1 = this.expression;
  75941. return this.$this._async_evaluate$_environment.getVariableNode$2$namespace(t1.name, t1.namespace);
  75942. },
  75943. $signature: 270
  75944. };
  75945. A._EvaluateVisitor__withoutSlash_recommendation0.prototype = {
  75946. call$1(number) {
  75947. var before, after, t1,
  75948. _1_0 = number.asSlash;
  75949. $label0$0: {
  75950. if (type$.Record_2_nullable_Object_and_nullable_Object._is(_1_0)) {
  75951. before = _1_0._0;
  75952. after = _1_0._1;
  75953. t1 = "math.div(" + A.S(this.call$1(before)) + ", " + A.S(this.call$1(after)) + ")";
  75954. break $label0$0;
  75955. }
  75956. t1 = A.serializeValue(number, true, true);
  75957. break $label0$0;
  75958. }
  75959. return t1;
  75960. },
  75961. $signature: 140
  75962. };
  75963. A._EvaluateVisitor__stackFrame_closure0.prototype = {
  75964. call$1(url) {
  75965. var t1 = this.$this._async_evaluate$_importCache;
  75966. t1 = t1 == null ? null : t1.humanize$1(url);
  75967. return t1 == null ? url : t1;
  75968. },
  75969. $signature: 50
  75970. };
  75971. A._ImportedCssVisitor0.prototype = {
  75972. visitCssAtRule$1(node) {
  75973. var t1 = node.isChildless ? null : new A._ImportedCssVisitor_visitCssAtRule_closure0();
  75974. this._async_evaluate$_visitor._async_evaluate$_addChild$2$through(node, t1);
  75975. },
  75976. visitCssComment$1(node) {
  75977. return this._async_evaluate$_visitor._async_evaluate$_addChild$1(node);
  75978. },
  75979. visitCssDeclaration$1(node) {
  75980. },
  75981. visitCssImport$1(node) {
  75982. var t2,
  75983. _s13_ = "_endOfImports",
  75984. t1 = this._async_evaluate$_visitor;
  75985. if (t1._async_evaluate$_assertInModule$2(t1._async_evaluate$__parent, "__parent") !== t1._async_evaluate$_assertInModule$2(t1._async_evaluate$__root, "_root"))
  75986. t1._async_evaluate$_addChild$1(node);
  75987. else if (t1._async_evaluate$_assertInModule$2(t1._async_evaluate$__endOfImports, _s13_) === J.get$length$asx(t1._async_evaluate$_assertInModule$2(t1._async_evaluate$__root, "_root").children._collection$_source)) {
  75988. t1._async_evaluate$_addChild$1(node);
  75989. t1._async_evaluate$__endOfImports = t1._async_evaluate$_assertInModule$2(t1._async_evaluate$__endOfImports, _s13_) + 1;
  75990. } else {
  75991. t2 = t1._async_evaluate$_outOfOrderImports;
  75992. (t2 == null ? t1._async_evaluate$_outOfOrderImports = A._setArrayType([], type$.JSArray_ModifiableCssImport) : t2).push(node);
  75993. }
  75994. },
  75995. visitCssKeyframeBlock$1(node) {
  75996. },
  75997. visitCssMediaRule$1(node) {
  75998. var t1 = this._async_evaluate$_visitor,
  75999. mediaQueries = t1._async_evaluate$_mediaQueries;
  76000. t1._async_evaluate$_addChild$2$through(node, new A._ImportedCssVisitor_visitCssMediaRule_closure0(mediaQueries == null || t1._async_evaluate$_mergeMediaQueries$2(mediaQueries, node.queries) != null));
  76001. },
  76002. visitCssStyleRule$1(node) {
  76003. return this._async_evaluate$_visitor._async_evaluate$_addChild$2$through(node, new A._ImportedCssVisitor_visitCssStyleRule_closure0());
  76004. },
  76005. visitCssStylesheet$1(node) {
  76006. var t1, t2, t3;
  76007. for (t1 = node.children, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t2 = t2._eval$1("ListBase.E"); t1.moveNext$0();) {
  76008. t3 = t1.__internal$_current;
  76009. (t3 == null ? t2._as(t3) : t3).accept$1(this);
  76010. }
  76011. },
  76012. visitCssSupportsRule$1(node) {
  76013. return this._async_evaluate$_visitor._async_evaluate$_addChild$2$through(node, new A._ImportedCssVisitor_visitCssSupportsRule_closure0());
  76014. }
  76015. };
  76016. A._ImportedCssVisitor_visitCssAtRule_closure0.prototype = {
  76017. call$1(node) {
  76018. return node instanceof A.ModifiableCssStyleRule;
  76019. },
  76020. $signature: 7
  76021. };
  76022. A._ImportedCssVisitor_visitCssMediaRule_closure0.prototype = {
  76023. call$1(node) {
  76024. var t1;
  76025. if (!(node instanceof A.ModifiableCssStyleRule))
  76026. t1 = this.hasBeenMerged && node instanceof A.ModifiableCssMediaRule;
  76027. else
  76028. t1 = true;
  76029. return t1;
  76030. },
  76031. $signature: 7
  76032. };
  76033. A._ImportedCssVisitor_visitCssStyleRule_closure0.prototype = {
  76034. call$1(node) {
  76035. return node instanceof A.ModifiableCssStyleRule;
  76036. },
  76037. $signature: 7
  76038. };
  76039. A._ImportedCssVisitor_visitCssSupportsRule_closure0.prototype = {
  76040. call$1(node) {
  76041. return node instanceof A.ModifiableCssStyleRule;
  76042. },
  76043. $signature: 7
  76044. };
  76045. A._EvaluationContext0.prototype = {
  76046. get$currentCallableSpan() {
  76047. var _0_0 = this._async_evaluate$_visitor._async_evaluate$_callableNode;
  76048. if (_0_0 != null)
  76049. return _0_0.get$span(_0_0);
  76050. throw A.wrapException(A.StateError$(string$.No_Sasc));
  76051. },
  76052. warn$2(_, message, deprecation) {
  76053. var t1 = this._async_evaluate$_visitor,
  76054. t2 = t1._async_evaluate$_importSpan;
  76055. if (t2 == null) {
  76056. t2 = t1._async_evaluate$_callableNode;
  76057. t2 = t2 == null ? null : t2.get$span(t2);
  76058. }
  76059. t1._async_evaluate$_warn$3(message, t2 == null ? this._async_evaluate$_defaultWarnNodeWithSpan.span : t2, deprecation);
  76060. },
  76061. $isEvaluationContext: 1
  76062. };
  76063. A._CloneCssVisitor.prototype = {
  76064. visitCssAtRule$1(node) {
  76065. var t1 = node.isChildless,
  76066. rule = A.ModifiableCssAtRule$(node.name, node.span, t1, node.value);
  76067. return t1 ? rule : this._visitChildren$2(rule, node);
  76068. },
  76069. visitCssComment$1(node) {
  76070. return new A.ModifiableCssComment(node.text, node.span);
  76071. },
  76072. visitCssDeclaration$1(node) {
  76073. return A.ModifiableCssDeclaration$(node.name, node.value, node.span, null, node.parsedAsCustomProperty, null, node.valueSpanForMap);
  76074. },
  76075. visitCssImport$1(node) {
  76076. return new A.ModifiableCssImport(node.url, node.modifiers, node.span);
  76077. },
  76078. visitCssKeyframeBlock$1(node) {
  76079. return this._visitChildren$2(A.ModifiableCssKeyframeBlock$(node.selector, node.span), node);
  76080. },
  76081. visitCssMediaRule$1(node) {
  76082. return this._visitChildren$2(A.ModifiableCssMediaRule$(node.queries, node.span), node);
  76083. },
  76084. visitCssStyleRule$1(node) {
  76085. var _0_0 = this._oldToNewSelectors.$index(0, node._style_rule$_selector._box$_inner.value);
  76086. if (_0_0 != null)
  76087. return this._visitChildren$2(A.ModifiableCssStyleRule$(_0_0, node.span, false, node.originalSelector), node);
  76088. else
  76089. throw A.wrapException(A.StateError$(string$.The_Ex));
  76090. },
  76091. visitCssStylesheet$1(node) {
  76092. return this._visitChildren$2(A.ModifiableCssStylesheet$(node.get$span(node)), node);
  76093. },
  76094. visitCssSupportsRule$1(node) {
  76095. return this._visitChildren$2(A.ModifiableCssSupportsRule$(node.condition, node.span), node);
  76096. },
  76097. _visitChildren$1$2(newParent, oldParent) {
  76098. var t1, t2, newChild;
  76099. for (t1 = J.get$iterator$ax(oldParent.get$children(oldParent)); t1.moveNext$0();) {
  76100. t2 = t1.get$current(t1);
  76101. newChild = t2.accept$1(this);
  76102. newChild.isGroupEnd = t2.get$isGroupEnd();
  76103. newParent.addChild$1(newChild);
  76104. }
  76105. return newParent;
  76106. },
  76107. _visitChildren$2(newParent, oldParent) {
  76108. return this._visitChildren$1$2(newParent, oldParent, type$.ModifiableCssParentNode);
  76109. }
  76110. };
  76111. A.Evaluator.prototype = {};
  76112. A._EvaluateVisitor.prototype = {
  76113. _EvaluateVisitor$6$functions$importCache$logger$nodeImporter$quietDeps$sourceMap(functions, importCache, logger, nodeImporter, quietDeps, sourceMap) {
  76114. var t2, metaModule, t3, _i, module, $function, t4, _this = this,
  76115. _s20_ = "$name, $module: null",
  76116. _s9_ = "sass:meta",
  76117. _s7_ = "$module",
  76118. t1 = type$.JSArray_BuiltInCallable,
  76119. metaFunctions = A._setArrayType([A.BuiltInCallable$function("global-variable-exists", _s20_, new A._EvaluateVisitor_closure(_this), _s9_), A.BuiltInCallable$function("variable-exists", "$name", new A._EvaluateVisitor_closure0(_this), _s9_), A.BuiltInCallable$function("function-exists", _s20_, new A._EvaluateVisitor_closure1(_this), _s9_), A.BuiltInCallable$function("mixin-exists", _s20_, new A._EvaluateVisitor_closure2(_this), _s9_), A.BuiltInCallable$function("content-exists", "", new A._EvaluateVisitor_closure3(_this), _s9_), A.BuiltInCallable$function("module-variables", _s7_, new A._EvaluateVisitor_closure4(_this), _s9_), A.BuiltInCallable$function("module-functions", _s7_, new A._EvaluateVisitor_closure5(_this), _s9_), A.BuiltInCallable$function("module-mixins", _s7_, new A._EvaluateVisitor_closure6(_this), _s9_), A.BuiltInCallable$function("get-function", "$name, $css: false, $module: null", new A._EvaluateVisitor_closure7(_this), _s9_), A.BuiltInCallable$function("get-mixin", _s20_, new A._EvaluateVisitor_closure8(_this), _s9_), A.BuiltInCallable$function("call", "$function, $args...", new A._EvaluateVisitor_closure9(_this), _s9_)], t1),
  76120. metaMixins = A._setArrayType([A.BuiltInCallable$mixin("load-css", "$url, $with: null", new A._EvaluateVisitor_closure10(_this), false, _s9_), A.BuiltInCallable$mixin("apply", "$mixin, $args...", new A._EvaluateVisitor_closure11(_this), true, _s9_)], t1);
  76121. t1 = type$.BuiltInCallable;
  76122. t2 = A.List_List$of($.$get$moduleFunctions(), true, t1);
  76123. B.JSArray_methods.addAll$1(t2, metaFunctions);
  76124. metaModule = A.BuiltInModule$("meta", t2, metaMixins, null, t1);
  76125. for (t1 = A.List_List$of($.$get$coreModules(), true, type$.BuiltInModule_Callable), t1.push(metaModule), t2 = t1.length, t3 = _this._builtInModules, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
  76126. module = t1[_i];
  76127. t3.$indexSet(0, module.url, module);
  76128. }
  76129. t1 = type$.JSArray_Callable;
  76130. t2 = A._setArrayType([], t1);
  76131. B.JSArray_methods.addAll$1(t2, $.$get$globalFunctions());
  76132. t1 = A._setArrayType([], t1);
  76133. for (_i = 0; _i < 11; ++_i)
  76134. t1.push(metaFunctions[_i].withDeprecationWarning$1("meta"));
  76135. B.JSArray_methods.addAll$1(t2, t1);
  76136. for (t1 = t2.length, t3 = _this._builtInFunctions, _i = 0; _i < t2.length; t2.length === t1 || (0, A.throwConcurrentModificationError)(t2), ++_i) {
  76137. $function = t2[_i];
  76138. t4 = J.get$name$x($function);
  76139. t3.$indexSet(0, A.stringReplaceAllUnchecked(t4, "_", "-"), $function);
  76140. }
  76141. },
  76142. run$2(_, importer, node) {
  76143. var error, stackTrace, t1, exception;
  76144. try {
  76145. t1 = type$.nullable_Object;
  76146. t1 = A.runZoned(new A._EvaluateVisitor_run_closure(this, node, importer), A.LinkedHashMap_LinkedHashMap$_literal([B.Symbol__evaluationContext, new A._EvaluationContext(this, node)], t1, t1), type$.Record_2_Set_Uri_loadedUrls_and_CssStylesheet_stylesheet);
  76147. return t1;
  76148. } catch (exception) {
  76149. t1 = A.unwrapException(exception);
  76150. if (t1 instanceof A.SassException) {
  76151. error = t1;
  76152. stackTrace = A.getTraceFromException(exception);
  76153. A.throwWithTrace(error.withLoadedUrls$1(this._loadedUrls), error, stackTrace);
  76154. } else
  76155. throw exception;
  76156. }
  76157. },
  76158. runExpression$2(importer, expression) {
  76159. var t1 = type$.nullable_Object;
  76160. return A.runZoned(new A._EvaluateVisitor_runExpression_closure(this, importer, expression), A.LinkedHashMap_LinkedHashMap$_literal([B.Symbol__evaluationContext, new A._EvaluationContext(this, expression)], t1, t1), type$.Value);
  76161. },
  76162. runStatement$2(importer, statement) {
  76163. var t1 = type$.nullable_Object;
  76164. return A.runZoned(new A._EvaluateVisitor_runStatement_closure(this, importer, statement), A.LinkedHashMap_LinkedHashMap$_literal([B.Symbol__evaluationContext, new A._EvaluationContext(this, statement)], t1, t1), type$.void);
  76165. },
  76166. _assertInModule$1$2(value, $name) {
  76167. if (value != null)
  76168. return value;
  76169. throw A.wrapException(A.StateError$("Can't access " + $name + " outside of a module."));
  76170. },
  76171. _assertInModule$2(value, $name) {
  76172. return this._assertInModule$1$2(value, $name, type$.dynamic);
  76173. },
  76174. _withFakeStylesheet$1$3(importer, nodeWithSpan, callback) {
  76175. var t1, _this = this,
  76176. oldImporter = _this._importer;
  76177. _this._importer = importer;
  76178. _this.__stylesheet = A.Stylesheet$(B.List_empty13, nodeWithSpan.get$span(nodeWithSpan));
  76179. try {
  76180. t1 = callback.call$0();
  76181. return t1;
  76182. } finally {
  76183. _this._importer = oldImporter;
  76184. _this.__stylesheet = null;
  76185. }
  76186. },
  76187. _withFakeStylesheet$3(importer, nodeWithSpan, callback) {
  76188. return this._withFakeStylesheet$1$3(importer, nodeWithSpan, callback, type$.dynamic);
  76189. },
  76190. _loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors) {
  76191. var t2, _this = this, t1 = {},
  76192. _0_0 = _this._builtInModules.$index(0, url);
  76193. t1.builtInModule = null;
  76194. if (_0_0 != null) {
  76195. t1.builtInModule = _0_0;
  76196. if (configuration instanceof A.ExplicitConfiguration) {
  76197. t1 = namesInErrors ? "Built-in module " + url.toString$0(0) + " can't be configured." : "Built-in modules can't be configured.";
  76198. t2 = configuration.nodeWithSpan;
  76199. throw A.wrapException(_this._evaluate$_exception$2(t1, t2.get$span(t2)));
  76200. }
  76201. _this._addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__loadModule_closure(t1, callback));
  76202. return;
  76203. }
  76204. _this._withStackFrame$3(stackFrame, nodeWithSpan, new A._EvaluateVisitor__loadModule_closure0(_this, url, nodeWithSpan, baseUrl, namesInErrors, configuration, callback));
  76205. },
  76206. _loadModule$5$configuration(url, stackFrame, nodeWithSpan, callback, configuration) {
  76207. return this._loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, configuration, false);
  76208. },
  76209. _loadModule$4(url, stackFrame, nodeWithSpan, callback) {
  76210. return this._loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, null, false);
  76211. },
  76212. _execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, configuration, namesInErrors, nodeWithSpan) {
  76213. var _0_0, currentConfiguration, t2, t3, message, existingSpan, configurationSpan, environment, css, preModuleComments, extensionStore, module, _this = this,
  76214. t1 = stylesheet.span,
  76215. url = t1.get$sourceUrl(t1);
  76216. t1 = _this._modules;
  76217. _0_0 = t1.$index(0, url);
  76218. if (_0_0 != null) {
  76219. t1 = configuration == null;
  76220. currentConfiguration = t1 ? _this._configuration : configuration;
  76221. t2 = _this._moduleConfigurations.$index(0, url);
  76222. t3 = t2.__originalConfiguration;
  76223. t2 = t3 == null ? t2 : t3;
  76224. t3 = currentConfiguration.__originalConfiguration;
  76225. if (t2 !== (t3 == null ? currentConfiguration : t3) && currentConfiguration instanceof A.ExplicitConfiguration) {
  76226. if (namesInErrors) {
  76227. t2 = $.$get$context();
  76228. url.toString;
  76229. message = t2.prettyUri$1(url) + string$.x20was_a;
  76230. } else
  76231. message = string$.This_mw;
  76232. t2 = _this._moduleNodes.$index(0, url);
  76233. existingSpan = t2 == null ? null : t2.get$span(t2);
  76234. if (t1) {
  76235. t1 = currentConfiguration.nodeWithSpan;
  76236. configurationSpan = t1.get$span(t1);
  76237. } else
  76238. configurationSpan = null;
  76239. t1 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
  76240. if (existingSpan != null)
  76241. t1.$indexSet(0, existingSpan, "original load");
  76242. if (configurationSpan != null)
  76243. t1.$indexSet(0, configurationSpan, "configuration");
  76244. throw A.wrapException(t1.get$isEmpty(0) ? _this._evaluate$_exception$1(message) : _this._multiSpanException$3(message, "new load", t1));
  76245. }
  76246. return _0_0;
  76247. }
  76248. environment = A.Environment$();
  76249. css = A._Cell$();
  76250. preModuleComments = A._Cell$();
  76251. extensionStore = A.ExtensionStore$();
  76252. _this._withEnvironment$2(environment, new A._EvaluateVisitor__execute_closure(_this, importer, stylesheet, extensionStore, configuration, css, preModuleComments));
  76253. t2 = css._readLocal$0();
  76254. t3 = preModuleComments._readLocal$0();
  76255. module = environment.toModule$3(t2, t3 == null ? B.Map_empty0 : t3, extensionStore);
  76256. if (url != null) {
  76257. t1.$indexSet(0, url, module);
  76258. _this._moduleConfigurations.$indexSet(0, url, _this._configuration);
  76259. if (nodeWithSpan != null)
  76260. _this._moduleNodes.$indexSet(0, url, nodeWithSpan);
  76261. }
  76262. return module;
  76263. },
  76264. _execute$2(importer, stylesheet) {
  76265. return this._execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, null, false, null);
  76266. },
  76267. _addOutOfOrderImports$0() {
  76268. var t1, t2, _this = this, _s5_ = "_root",
  76269. _s13_ = "_endOfImports",
  76270. _0_0 = _this._outOfOrderImports;
  76271. $label0$0: {
  76272. if (_0_0 == null) {
  76273. t1 = _this._assertInModule$2(_this.__root, _s5_).children;
  76274. break $label0$0;
  76275. }
  76276. t1 = _this._assertInModule$2(_this.__root, _s5_).children;
  76277. t1 = A.List_List$of(A.SubListIterable$(t1, 0, A.checkNotNullable(_this._assertInModule$2(_this.__endOfImports, _s13_), "count", type$.int), t1.$ti._eval$1("ListBase.E")), true, type$.ModifiableCssNode);
  76278. B.JSArray_methods.addAll$1(t1, _0_0);
  76279. t2 = _this._assertInModule$2(_this.__root, _s5_).children;
  76280. B.JSArray_methods.addAll$1(t1, A.SubListIterable$(t2, _this._assertInModule$2(_this.__endOfImports, _s13_), null, t2.$ti._eval$1("ListBase.E")));
  76281. break $label0$0;
  76282. }
  76283. return t1;
  76284. },
  76285. _combineCss$2$clone(root, clone) {
  76286. var selectors, _0_0, t1, imports, css, sorted, t2;
  76287. if (!B.JSArray_methods.any$1(root.get$upstream(), new A._EvaluateVisitor__combineCss_closure())) {
  76288. selectors = root.get$extensionStore().get$simpleSelectors();
  76289. _0_0 = A.IterableExtension_get_firstOrNull(root.get$extensionStore().extensionsWhereTarget$1(new A._EvaluateVisitor__combineCss_closure0(selectors)));
  76290. if (_0_0 != null)
  76291. this._throwForUnsatisfiedExtension$1(_0_0);
  76292. return root.get$css(root);
  76293. }
  76294. t1 = type$.JSArray_CssNode;
  76295. imports = A._setArrayType([], t1);
  76296. css = A._setArrayType([], t1);
  76297. t1 = type$.Module_Callable;
  76298. sorted = A.ListQueue$(t1);
  76299. new A._EvaluateVisitor__combineCss_visitModule(this, A.LinkedHashSet_LinkedHashSet$_empty(t1), clone, css, imports, sorted).call$1(root);
  76300. if (root.get$transitivelyContainsExtensions())
  76301. this._extendModules$1(sorted);
  76302. t1 = B.JSArray_methods.$add(imports, css);
  76303. t2 = root.get$css(root);
  76304. return new A.CssStylesheet(new A.UnmodifiableListView(t1, type$.UnmodifiableListView_CssNode), t2.get$span(t2));
  76305. },
  76306. _combineCss$1(root) {
  76307. return this._combineCss$2$clone(root, false);
  76308. },
  76309. _extendModules$1(sortedModules) {
  76310. var t1, t2, t3, originalSelectors, $self, t4, t5, _i, upstream, _0_0,
  76311. downstreamExtensionStores = A.LinkedHashMap_LinkedHashMap$_empty(type$.Uri, type$.List_ExtensionStore),
  76312. unsatisfiedExtensions = new A._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_Extension);
  76313. for (t1 = A._ListQueueIterator$(sortedModules, sortedModules.$ti._precomputed1), t2 = t1.$ti._precomputed1; t1.moveNext$0();) {
  76314. t3 = t1._collection$_current;
  76315. if (t3 == null)
  76316. t3 = t2._as(t3);
  76317. originalSelectors = t3.get$extensionStore().get$simpleSelectors().toSet$0(0);
  76318. unsatisfiedExtensions.addAll$1(0, t3.get$extensionStore().extensionsWhereTarget$1(new A._EvaluateVisitor__extendModules_closure(originalSelectors)));
  76319. $self = downstreamExtensionStores.$index(0, t3.get$url(t3));
  76320. t4 = t3.get$extensionStore().get$addExtensions();
  76321. if ($self != null)
  76322. t4.call$1($self);
  76323. t4 = t3.get$extensionStore();
  76324. if (t4.get$isEmpty(t4))
  76325. continue;
  76326. for (t4 = t3.get$upstream(), t5 = t4.length, _i = 0; _i < t4.length; t4.length === t5 || (0, A.throwConcurrentModificationError)(t4), ++_i) {
  76327. upstream = t4[_i];
  76328. _0_0 = upstream.get$url(upstream);
  76329. if (_0_0 != null)
  76330. J.add$1$ax(downstreamExtensionStores.putIfAbsent$2(_0_0, new A._EvaluateVisitor__extendModules_closure0()), t3.get$extensionStore());
  76331. }
  76332. unsatisfiedExtensions.removeAll$1(t3.get$extensionStore().extensionsWhereTarget$1(originalSelectors.get$contains(originalSelectors)));
  76333. }
  76334. if (unsatisfiedExtensions._collection$_length !== 0)
  76335. this._throwForUnsatisfiedExtension$1(unsatisfiedExtensions.get$first(0));
  76336. },
  76337. _throwForUnsatisfiedExtension$1(extension) {
  76338. throw A.wrapException(A.SassException$(string$.The_ta + extension.target.toString$0(0) + ' !optional" to avoid this error.', extension.span, null));
  76339. },
  76340. _indexAfterImports$1(statements) {
  76341. var t1, lastImport, i, _0_0;
  76342. for (t1 = J.getInterceptor$asx(statements), lastImport = -1, i = 0; i < t1.get$length(statements); ++i) {
  76343. $label0$0: {
  76344. _0_0 = t1.$index(statements, i);
  76345. if (_0_0 instanceof A.ModifiableCssImport)
  76346. break $label0$0;
  76347. if (_0_0 instanceof A.ModifiableCssComment)
  76348. continue;
  76349. break;
  76350. }
  76351. lastImport = i;
  76352. }
  76353. return lastImport + 1;
  76354. },
  76355. visitStylesheet$1(_, node) {
  76356. var t1, t2, warning, _i;
  76357. for (t1 = node.parseTimeWarnings, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t2 = t2._eval$1("ListBase.E"); t1.moveNext$0();) {
  76358. warning = t1.__internal$_current;
  76359. if (warning == null)
  76360. warning = t2._as(warning);
  76361. this._warn$3(warning._1, warning._2, warning._0);
  76362. }
  76363. for (t1 = node.children, t2 = t1.length, _i = 0; _i < t2; ++_i)
  76364. t1[_i].accept$1(this);
  76365. return null;
  76366. },
  76367. visitAtRootRule$1(_, node) {
  76368. var t1, _2_0, root, first, rest, innerCopy, outerCopy, _i, copy, _this = this, _null = null,
  76369. _s8_ = "__parent",
  76370. _0_0 = node.query,
  76371. query = _0_0 != null ? new A.AtRootQueryParser(A.SpanScanner$(_this._performInterpolationWithMap$2$warnForColor(_0_0, true)._0, _null), _null).parse$0(0) : B.AtRootQuery_n2q,
  76372. $parent = _this._assertInModule$2(_this.__parent, _s8_),
  76373. included = A._setArrayType([], type$.JSArray_ModifiableCssParentNode);
  76374. for (t1 = type$.CssStylesheet; !t1._is($parent); $parent = _2_0) {
  76375. if (!query.excludes$1($parent))
  76376. included.push($parent);
  76377. _2_0 = $parent._parent;
  76378. if (_2_0 == null)
  76379. throw A.wrapException(A.StateError$(string$.CssNod));
  76380. }
  76381. root = _this._trimIncluded$1(included);
  76382. if (root === _this._assertInModule$2(_this.__parent, _s8_)) {
  76383. _this._environment.scope$1$2$when(new A._EvaluateVisitor_visitAtRootRule_closure(_this, node), node.hasDeclarations, type$.Null);
  76384. return _null;
  76385. }
  76386. if (included.length >= 1) {
  76387. first = included[0];
  76388. rest = B.JSArray_methods.sublist$1(included, 1);
  76389. innerCopy = first.copyWithoutChildren$0();
  76390. for (t1 = rest.length, outerCopy = innerCopy, _i = 0; _i < rest.length; rest.length === t1 || (0, A.throwConcurrentModificationError)(rest), ++_i, outerCopy = copy) {
  76391. copy = rest[_i].copyWithoutChildren$0();
  76392. copy.addChild$1(outerCopy);
  76393. }
  76394. root.addChild$1(outerCopy);
  76395. } else
  76396. innerCopy = root;
  76397. _this._scopeForAtRoot$4(node, innerCopy, query, included).call$1(new A._EvaluateVisitor_visitAtRootRule_closure0(_this, node));
  76398. return _null;
  76399. },
  76400. _trimIncluded$1(nodes) {
  76401. var $parent, t1, innermostContiguous, i, t2, _0_0, _1_0, root, _this = this, _null = null, _s5_ = "_root",
  76402. _s22_ = " to be an ancestor of ";
  76403. if (nodes.length === 0)
  76404. return _this._assertInModule$2(_this.__root, _s5_);
  76405. $parent = _this._assertInModule$2(_this.__parent, "__parent");
  76406. for (t1 = nodes.length, innermostContiguous = _null, i = 0; i < t1; ++i, $parent = _1_0) {
  76407. for (; t2 = nodes[i], $parent !== t2; innermostContiguous = _null, $parent = _0_0) {
  76408. _0_0 = $parent._parent;
  76409. if (_0_0 == null)
  76410. throw A.wrapException(A.ArgumentError$("Expected " + t2.toString$0(0) + _s22_ + _this.toString$0(0) + ".", _null));
  76411. }
  76412. if (innermostContiguous == null)
  76413. innermostContiguous = i;
  76414. _1_0 = $parent._parent;
  76415. if (_1_0 == null)
  76416. throw A.wrapException(A.ArgumentError$("Expected " + t2.toString$0(0) + _s22_ + _this.toString$0(0) + ".", _null));
  76417. }
  76418. if ($parent !== _this._assertInModule$2(_this.__root, _s5_))
  76419. return _this._assertInModule$2(_this.__root, _s5_);
  76420. innermostContiguous.toString;
  76421. root = nodes[innermostContiguous];
  76422. B.JSArray_methods.removeRange$2(nodes, innermostContiguous, nodes.length);
  76423. return root;
  76424. },
  76425. _scopeForAtRoot$4(node, newParent, query, included) {
  76426. var _this = this,
  76427. scope = new A._EvaluateVisitor__scopeForAtRoot_closure(_this, newParent, node),
  76428. t1 = query._all || query._at_root_query$_rule;
  76429. if (t1 !== query.include)
  76430. scope = new A._EvaluateVisitor__scopeForAtRoot_closure0(_this, scope);
  76431. if (_this._mediaQueries != null && query.excludesName$1("media"))
  76432. scope = new A._EvaluateVisitor__scopeForAtRoot_closure1(_this, scope);
  76433. if (_this._inKeyframes && query.excludesName$1("keyframes"))
  76434. scope = new A._EvaluateVisitor__scopeForAtRoot_closure2(_this, scope);
  76435. return _this._inUnknownAtRule && !B.JSArray_methods.any$1(included, new A._EvaluateVisitor__scopeForAtRoot_closure3()) ? new A._EvaluateVisitor__scopeForAtRoot_closure4(_this, scope) : scope;
  76436. },
  76437. visitContentBlock$1(_, node) {
  76438. return A.throwExpression(A.UnsupportedError$(string$.Evalua));
  76439. },
  76440. visitContentRule$1(_, node) {
  76441. var $content = this._environment._content;
  76442. if ($content == null)
  76443. return null;
  76444. this._runUserDefinedCallable$1$4(node.$arguments, $content, node, new A._EvaluateVisitor_visitContentRule_closure(this, $content), type$.Null);
  76445. return null;
  76446. },
  76447. visitDebugRule$1(_, node) {
  76448. var value = node.expression.accept$1(this),
  76449. t1 = value instanceof A.SassString ? value._string$_text : A.serializeValue(value, true, true);
  76450. this._logger.debug$2(0, t1, node.span);
  76451. return null;
  76452. },
  76453. visitDeclaration$1(_, node) {
  76454. var siblings, interleavedRules, t1, t2, t3, t4, t5, t6, rule, rule0, $name, _1_0, _2_0, value, _3_0, oldDeclarationName, _this = this, _null = null,
  76455. _s8_ = "__parent",
  76456. _box_0 = {};
  76457. if ((_this._atRootExcludingStyleRule ? _null : _this._styleRuleIgnoringAtRoot) == null && !_this._inUnknownAtRule && !_this._inKeyframes)
  76458. throw A.wrapException(_this._evaluate$_exception$2(string$.Declarm, node.span));
  76459. if (_this._declarationName != null && B.JSString_methods.startsWith$1(node.name.get$initialPlain(), "--"))
  76460. throw A.wrapException(_this._evaluate$_exception$2(string$.Declarw, node.span));
  76461. siblings = _this._assertInModule$2(_this.__parent, _s8_)._parent.children;
  76462. interleavedRules = A._setArrayType([], type$.JSArray_CssStyleRule);
  76463. if (siblings.get$last(siblings) !== _this._assertInModule$2(_this.__parent, _s8_)) {
  76464. if (_this._quietDeps)
  76465. if (!_this._inDependency) {
  76466. t1 = _this._currentCallable;
  76467. t1 = t1 == null ? _null : t1.inDependency;
  76468. t1 = t1 === true;
  76469. } else
  76470. t1 = true;
  76471. else
  76472. t1 = false;
  76473. t1 = !t1;
  76474. } else
  76475. t1 = false;
  76476. if (t1)
  76477. for (t1 = A.SubListIterable$(siblings, siblings.indexOf$1(siblings, _this._assertInModule$2(_this.__parent, _s8_)) + 1, _null, siblings.$ti._eval$1("ListBase.E")), t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListIterable.E>")), t3 = node.span, t4 = type$.SourceSpan, t5 = type$.String, t2 = t2._eval$1("ListIterable.E"); t1.moveNext$0();) {
  76478. t6 = t1.__internal$_current;
  76479. rule = t6 == null ? t2._as(t6) : t6;
  76480. $label0$1: {
  76481. if (rule instanceof A.ModifiableCssComment)
  76482. continue;
  76483. t6 = rule instanceof A.ModifiableCssStyleRule;
  76484. rule0 = t6 ? rule : _null;
  76485. if (t6) {
  76486. interleavedRules.push(rule0);
  76487. break $label0$1;
  76488. }
  76489. _this._warn$3(string$.Sassx27s, new A.MultiSpan(t3, "declaration", A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_literal([rule.get$span(rule), "nested rule"], t4, t5), t4, t5)), B.Deprecation_u1l);
  76490. B.JSArray_methods.clear$0(interleavedRules);
  76491. break $label0$1;
  76492. }
  76493. }
  76494. t1 = node.name;
  76495. $name = _this._interpolationToValue$2$warnForColor(t1, true);
  76496. _1_0 = _this._declarationName;
  76497. if (_1_0 != null)
  76498. $name = new A.CssValue(_1_0 + "-" + A.S($name.value), $name.span, type$.CssValue_String);
  76499. _2_0 = node.value;
  76500. if (_2_0 != null) {
  76501. value = _2_0.accept$1(_this);
  76502. if (!value.get$isBlank() || value.get$asList().length === 0) {
  76503. t2 = _this._assertInModule$2(_this.__parent, _s8_);
  76504. t3 = _2_0.get$span(_2_0);
  76505. t4 = node.span;
  76506. t1 = B.JSString_methods.startsWith$1(t1.get$initialPlain(), "--");
  76507. t5 = interleavedRules.length === 0 ? _null : _this._evaluate$_stackTrace$1(t4);
  76508. if (_this._sourceMap) {
  76509. t6 = A.NullableExtension_andThen(_2_0, _this.get$_expressionNode());
  76510. t6 = t6 == null ? _null : J.get$span$z(t6);
  76511. } else
  76512. t6 = _null;
  76513. t2.addChild$1(A.ModifiableCssDeclaration$($name, new A.CssValue(value, t3, type$.CssValue_Value), t4, interleavedRules, t1, t5, t6));
  76514. } else if (J.startsWith$1$s($name.value, "--"))
  76515. throw A.wrapException(_this._evaluate$_exception$2("Custom property values may not be empty.", _2_0.get$span(_2_0)));
  76516. }
  76517. _3_0 = node.children;
  76518. _box_0.children = null;
  76519. if (_3_0 != null) {
  76520. _box_0.children = _3_0;
  76521. oldDeclarationName = _this._declarationName;
  76522. _this._declarationName = $name.value;
  76523. _this._environment.scope$1$2$when(new A._EvaluateVisitor_visitDeclaration_closure(_box_0, _this), node.hasDeclarations, type$.Null);
  76524. _this._declarationName = oldDeclarationName;
  76525. }
  76526. return _null;
  76527. },
  76528. visitEachRule$1(_, node) {
  76529. var _this = this, _box_0 = {},
  76530. t1 = node.list,
  76531. list = t1.accept$1(_this),
  76532. nodeWithSpan = _this._expressionNode$1(t1),
  76533. _0_0 = node.variables;
  76534. $label0$0: {
  76535. _box_0.variable = null;
  76536. if (_0_0.length === 1) {
  76537. _box_0.variable = _0_0[0];
  76538. t1 = new A._EvaluateVisitor_visitEachRule_closure(_box_0, _this, nodeWithSpan);
  76539. break $label0$0;
  76540. }
  76541. _box_0.variables = null;
  76542. _box_0.variables = _0_0;
  76543. t1 = new A._EvaluateVisitor_visitEachRule_closure0(_box_0, _this, nodeWithSpan);
  76544. break $label0$0;
  76545. }
  76546. return _this._environment.scope$1$2$semiGlobal(new A._EvaluateVisitor_visitEachRule_closure1(_this, list, t1, node), true, type$.nullable_Value);
  76547. },
  76548. _setMultipleVariables$3(variables, value, nodeWithSpan) {
  76549. var i,
  76550. list = value.get$asList(),
  76551. t1 = variables.length,
  76552. minLength = Math.min(t1, list.length);
  76553. for (i = 0; i < minLength; ++i)
  76554. this._environment.setLocalVariable$3(variables[i], this._withoutSlash$2(list[i], nodeWithSpan), nodeWithSpan);
  76555. for (i = minLength; i < t1; ++i)
  76556. this._environment.setLocalVariable$3(variables[i], B.C__SassNull, nodeWithSpan);
  76557. },
  76558. visitErrorRule$1(_, node) {
  76559. throw A.wrapException(this._evaluate$_exception$2(J.toString$0$(node.expression.accept$1(this)), node.span));
  76560. },
  76561. visitExtendRule$1(_, node) {
  76562. var t1, t2, t3, t4, t5, _i, complex, visitor, t6, t7, _0_0, compound, _this = this, _null = null,
  76563. styleRule = _this._atRootExcludingStyleRule ? _null : _this._styleRuleIgnoringAtRoot;
  76564. if (styleRule == null || _this._declarationName != null)
  76565. throw A.wrapException(_this._evaluate$_exception$2(string$.x40exten, node.span));
  76566. for (t1 = styleRule.originalSelector.components, t2 = t1.length, t3 = node.span, t4 = type$.SourceSpan, t5 = type$.String, _i = 0; _i < t2; ++_i) {
  76567. complex = t1[_i];
  76568. if (!complex.accept$1(B._IsBogusVisitor_true))
  76569. continue;
  76570. visitor = A._SerializeVisitor$(_null, true, _null, _null, true, false, _null, true);
  76571. complex.accept$1(visitor);
  76572. t6 = B.JSString_methods.trim$0(visitor._serialize$_buffer.toString$0(0));
  76573. t7 = complex.accept$1(B.C__IsUselessVisitor) ? "can't" : "shouldn't";
  76574. _this._warn$3('The selector "' + t6 + '" is invalid CSS and ' + t7 + string$.x20be_an, new A.MultiSpan(A.SpanExtensions_trimRight(complex.span), "invalid selector", A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_literal([t3, "@extend rule"], t4, t5), t4, t5)), B.Deprecation_C9i);
  76575. }
  76576. _0_0 = _this._performInterpolationWithMap$2$warnForColor(node.selector, true);
  76577. for (t1 = A.SelectorList_SelectorList$parse(A.trimAscii(_0_0._0, true), false, _0_0._1, false).components, t2 = t1.length, t3 = styleRule._style_rule$_selector._box$_inner, _i = 0; _i < t2; ++_i) {
  76578. complex = t1[_i];
  76579. compound = complex.get$singleCompound();
  76580. if (compound == null)
  76581. throw A.wrapException(A.SassFormatException$("complex selectors may not be extended.", complex.span, _null));
  76582. t4 = compound.components;
  76583. t5 = t4.length === 1 ? B.JSArray_methods.get$first(t4) : _null;
  76584. if (t5 == null)
  76585. throw A.wrapException(A.SassFormatException$(string$.compou + B.JSArray_methods.join$1(t4, ", ") + string$.x60_inst, compound.span, _null));
  76586. _this._assertInModule$2(_this.__extensionStore, "_extensionStore").addExtension$4(t3.value, t5, node, _this._mediaQueries);
  76587. }
  76588. return _null;
  76589. },
  76590. visitAtRule$1(_, node) {
  76591. var $name, value, children, wasInKeyframes, wasInUnknownAtRule, _this = this;
  76592. if (_this._declarationName != null)
  76593. throw A.wrapException(_this._evaluate$_exception$2(string$.At_rul, node.span));
  76594. $name = _this._interpolationToValue$1(node.name);
  76595. value = A.NullableExtension_andThen(node.value, new A._EvaluateVisitor_visitAtRule_closure(_this));
  76596. children = node.children;
  76597. if (children == null) {
  76598. _this._assertInModule$2(_this.__parent, "__parent").addChild$1(A.ModifiableCssAtRule$($name, node.span, true, value));
  76599. return null;
  76600. }
  76601. wasInKeyframes = _this._inKeyframes;
  76602. wasInUnknownAtRule = _this._inUnknownAtRule;
  76603. if (A.unvendor($name.value) === "keyframes")
  76604. _this._inKeyframes = true;
  76605. else
  76606. _this._inUnknownAtRule = true;
  76607. _this._withParent$2$4$scopeWhen$through(A.ModifiableCssAtRule$($name, node.span, false, value), new A._EvaluateVisitor_visitAtRule_closure0(_this, $name, children), node.hasDeclarations, new A._EvaluateVisitor_visitAtRule_closure1(), type$.ModifiableCssAtRule, type$.Null);
  76608. _this._inUnknownAtRule = wasInUnknownAtRule;
  76609. _this._inKeyframes = wasInKeyframes;
  76610. return null;
  76611. },
  76612. visitForRule$1(_, node) {
  76613. var _this = this, t1 = {},
  76614. t2 = node.from,
  76615. fromNumber = _this._addExceptionSpan$2(t2, new A._EvaluateVisitor_visitForRule_closure(_this, node)),
  76616. t3 = node.to,
  76617. toNumber = _this._addExceptionSpan$2(t3, new A._EvaluateVisitor_visitForRule_closure0(_this, node)),
  76618. from = _this._addExceptionSpan$2(t2, new A._EvaluateVisitor_visitForRule_closure1(fromNumber)),
  76619. to = t1.to = _this._addExceptionSpan$2(t3, new A._EvaluateVisitor_visitForRule_closure2(toNumber, fromNumber)),
  76620. direction = from > to ? -1 : 1;
  76621. if (from === (!node.isExclusive ? t1.to = to + direction : to))
  76622. return null;
  76623. return _this._environment.scope$1$2$semiGlobal(new A._EvaluateVisitor_visitForRule_closure3(t1, _this, node, from, direction, fromNumber), true, type$.nullable_Value);
  76624. },
  76625. visitForwardRule$1(_, node) {
  76626. var newConfiguration, t4, _i, variable, $name, _this = this,
  76627. _s8_ = "@forward",
  76628. oldConfiguration = _this._configuration,
  76629. adjustedConfiguration = oldConfiguration.throughForward$1(node),
  76630. t1 = node.configuration,
  76631. t2 = t1.length,
  76632. t3 = node.url;
  76633. if (t2 !== 0) {
  76634. newConfiguration = _this._addForwardConfiguration$2(adjustedConfiguration, node);
  76635. _this._loadModule$5$configuration(t3, _s8_, node, new A._EvaluateVisitor_visitForwardRule_closure(_this, node), newConfiguration);
  76636. t3 = type$.String;
  76637. t4 = A.LinkedHashSet_LinkedHashSet$_empty(t3);
  76638. for (_i = 0; _i < t2; ++_i) {
  76639. variable = t1[_i];
  76640. if (!variable.isGuarded)
  76641. t4.add$1(0, variable.name);
  76642. }
  76643. _this._removeUsedConfiguration$3$except(adjustedConfiguration, newConfiguration, t4);
  76644. t3 = A.LinkedHashSet_LinkedHashSet$_empty(t3);
  76645. for (_i = 0; _i < t2; ++_i)
  76646. t3.add$1(0, t1[_i].name);
  76647. for (t1 = newConfiguration._configuration$_values, t2 = J.toList$0$ax(t1.get$keys(t1)), t4 = t2.length, _i = 0; _i < t2.length; t2.length === t4 || (0, A.throwConcurrentModificationError)(t2), ++_i) {
  76648. $name = t2[_i];
  76649. if (!t3.contains$1(0, $name))
  76650. if (!t1.get$isEmpty(t1))
  76651. t1.remove$1(0, $name);
  76652. }
  76653. _this._assertConfigurationIsEmpty$1(newConfiguration);
  76654. } else {
  76655. _this._configuration = adjustedConfiguration;
  76656. _this._loadModule$4(t3, _s8_, node, new A._EvaluateVisitor_visitForwardRule_closure0(_this, node));
  76657. _this._configuration = oldConfiguration;
  76658. }
  76659. return null;
  76660. },
  76661. _addForwardConfiguration$2(configuration, node) {
  76662. var t2, t3, _i, variable, t4, oldValue, t5, variableNodeWithSpan, _null = null,
  76663. t1 = configuration._configuration$_values,
  76664. newValues = A.LinkedHashMap_LinkedHashMap$of(new A.UnmodifiableMapView(t1, type$.UnmodifiableMapView_String_ConfiguredValue), type$.String, type$.ConfiguredValue);
  76665. for (t2 = node.configuration, t3 = t2.length, _i = 0; _i < t3; ++_i) {
  76666. variable = t2[_i];
  76667. if (variable.isGuarded) {
  76668. t4 = variable.name;
  76669. oldValue = t1.get$isEmpty(t1) ? _null : t1.remove$1(0, t4);
  76670. if (oldValue != null)
  76671. t5 = !oldValue.value.$eq(0, B.C__SassNull);
  76672. else {
  76673. oldValue = _null;
  76674. t5 = false;
  76675. }
  76676. if (t5) {
  76677. newValues.$indexSet(0, t4, oldValue);
  76678. continue;
  76679. }
  76680. }
  76681. t4 = variable.expression;
  76682. variableNodeWithSpan = this._expressionNode$1(t4);
  76683. newValues.$indexSet(0, variable.name, new A.ConfiguredValue(this._withoutSlash$2(t4.accept$1(this), variableNodeWithSpan), variable.span, variableNodeWithSpan));
  76684. }
  76685. if (configuration instanceof A.ExplicitConfiguration || t1.get$isEmpty(t1))
  76686. return new A.ExplicitConfiguration(node, newValues, _null);
  76687. else
  76688. return new A.Configuration(newValues, _null);
  76689. },
  76690. _registerCommentsForModule$1(module) {
  76691. var _this = this, _s5_ = "_root",
  76692. t1 = _this.__root;
  76693. if (t1 == null)
  76694. return;
  76695. if (_this._assertInModule$2(t1, _s5_).children.get$length(0) === 0 || !module.get$transitivelyContainsCss())
  76696. return;
  76697. t1 = _this._preModuleComments;
  76698. if (t1 == null)
  76699. t1 = _this._preModuleComments = A.LinkedHashMap_LinkedHashMap$_empty(type$.Module_Callable, type$.List_CssComment);
  76700. J.addAll$1$ax(t1.putIfAbsent$2(module, new A._EvaluateVisitor__registerCommentsForModule_closure()), new A.UnmodifiableListView(J.cast$1$0$ax(_this._assertInModule$2(_this.__root, _s5_).children._collection$_source, type$.CssComment), type$.UnmodifiableListView_CssComment));
  76701. _this._assertInModule$2(_this.__root, _s5_).clearChildren$0();
  76702. _this.__endOfImports = 0;
  76703. },
  76704. _removeUsedConfiguration$3$except(upstream, downstream, except) {
  76705. var t1, t2, t3, t4, _i, $name;
  76706. for (t1 = upstream._configuration$_values, t2 = J.toList$0$ax(t1.get$keys(t1)), t3 = t2.length, t4 = downstream._configuration$_values, _i = 0; _i < t2.length; t2.length === t3 || (0, A.throwConcurrentModificationError)(t2), ++_i) {
  76707. $name = t2[_i];
  76708. if (except.contains$1(0, $name))
  76709. continue;
  76710. if (!t4.containsKey$1($name))
  76711. if (!t1.get$isEmpty(t1))
  76712. t1.remove$1(0, $name);
  76713. }
  76714. },
  76715. _assertConfigurationIsEmpty$2$nameInError(configuration, nameInError) {
  76716. var t1, _0_0, $name, value;
  76717. if (!(configuration instanceof A.ExplicitConfiguration))
  76718. return;
  76719. t1 = configuration._configuration$_values;
  76720. if (t1.get$isEmpty(t1))
  76721. return;
  76722. t1 = A.MapExtensions_get_pairs(new A.UnmodifiableMapView(t1, type$.UnmodifiableMapView_String_ConfiguredValue), type$.String, type$.ConfiguredValue);
  76723. _0_0 = t1.get$first(t1);
  76724. $name = _0_0._0;
  76725. value = _0_0._1;
  76726. t1 = nameInError ? "$" + $name + string$.x20was_n : string$.This_v;
  76727. throw A.wrapException(this._evaluate$_exception$2(t1, value.configurationSpan));
  76728. },
  76729. _assertConfigurationIsEmpty$1(configuration) {
  76730. return this._assertConfigurationIsEmpty$2$nameInError(configuration, false);
  76731. },
  76732. visitFunctionRule$1(_, node) {
  76733. var t1 = this._environment,
  76734. t2 = t1.closure$0(),
  76735. t3 = this._inDependency,
  76736. t4 = t1._functions,
  76737. index = t4.length - 1,
  76738. t5 = node.name;
  76739. t1._functionIndices.$indexSet(0, t5, index);
  76740. J.$indexSet$ax(t4[index], t5, new A.UserDefinedCallable(node, t2, t3, type$.UserDefinedCallable_Environment));
  76741. return null;
  76742. },
  76743. visitIfRule$1(_, node) {
  76744. var t1, t2, _i, clauseToCheck,
  76745. clause = node.lastClause;
  76746. for (t1 = node.clauses, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  76747. clauseToCheck = t1[_i];
  76748. if (clauseToCheck.expression.accept$1(this).get$isTruthy()) {
  76749. clause = clauseToCheck;
  76750. break;
  76751. }
  76752. }
  76753. return A.NullableExtension_andThen(clause, new A._EvaluateVisitor_visitIfRule_closure(this));
  76754. },
  76755. visitImportRule$1(_, node) {
  76756. var t1, t2, t3, t4, t5, t6, _i, $import, t7, _0_0, $self, t8, _this = this,
  76757. _s8_ = "__parent",
  76758. _s5_ = "_root",
  76759. _s13_ = "_endOfImports";
  76760. for (t1 = node.imports, t2 = t1.length, t3 = type$.CssValue_String, t4 = _this.get$_interpolationToValue(), t5 = type$.StaticImport, t6 = type$.JSArray_ModifiableCssImport, _i = 0; _i < t2; ++_i) {
  76761. $import = t1[_i];
  76762. if ($import instanceof A.DynamicImport)
  76763. _this._visitDynamicImport$1($import);
  76764. else {
  76765. t5._as($import);
  76766. t7 = $import.url;
  76767. _0_0 = _this._performInterpolationHelper$3$sourceMap$warnForColor(t7, false, false);
  76768. $self = $import.modifiers;
  76769. t8 = $self == null ? null : t4.call$1($self);
  76770. node = new A.ModifiableCssImport(new A.CssValue(_0_0._0, t7.span, t3), t8, $import.span);
  76771. if (_this._assertInModule$2(_this.__parent, _s8_) !== _this._assertInModule$2(_this.__root, _s5_))
  76772. _this._assertInModule$2(_this.__parent, _s8_).addChild$1(node);
  76773. else if (_this._assertInModule$2(_this.__endOfImports, _s13_) === J.get$length$asx(_this._assertInModule$2(_this.__root, _s5_).children._collection$_source)) {
  76774. t7 = _this._assertInModule$2(_this.__root, _s5_);
  76775. node._parent = t7;
  76776. t7 = t7._children;
  76777. node._indexInParent = t7.length;
  76778. t7.push(node);
  76779. _this.__endOfImports = _this._assertInModule$2(_this.__endOfImports, _s13_) + 1;
  76780. } else {
  76781. t7 = _this._outOfOrderImports;
  76782. (t7 == null ? _this._outOfOrderImports = A._setArrayType([], t6) : t7).push(node);
  76783. }
  76784. }
  76785. }
  76786. return null;
  76787. },
  76788. _visitDynamicImport$1($import) {
  76789. return this._withStackFrame$3("@import", $import, new A._EvaluateVisitor__visitDynamicImport_closure(this, $import));
  76790. },
  76791. _loadStylesheet$4$baseUrl$forImport(url, span, baseUrl, forImport) {
  76792. var _0_0, importCache, _1_0, importer, canonicalUrl, originalUrl, isDependency, _2_0, stylesheet, error, stackTrace, error0, stackTrace0, t1, t2, exception, _this = this;
  76793. baseUrl = baseUrl;
  76794. try {
  76795. _this._importSpan = span;
  76796. _0_0 = _this._evaluate$_importCache;
  76797. importCache = null;
  76798. if (_0_0 != null) {
  76799. importCache = _0_0;
  76800. if (baseUrl == null) {
  76801. t1 = _this._assertInModule$2(_this.__stylesheet, "_stylesheet").span;
  76802. baseUrl = t1.get$sourceUrl(t1);
  76803. }
  76804. _1_0 = J.canonicalize$4$baseImporter$baseUrl$forImport$x(importCache, A.Uri_parse(url), _this._importer, baseUrl, forImport);
  76805. importer = null;
  76806. canonicalUrl = null;
  76807. originalUrl = null;
  76808. if (type$.Record_3_nullable_Object_and_nullable_Object_and_nullable_Object_originalUrl._is(_1_0)) {
  76809. importer = _1_0._0;
  76810. canonicalUrl = _1_0._1;
  76811. originalUrl = _1_0._2;
  76812. if (canonicalUrl.get$scheme() === "")
  76813. A.WarnForDeprecation_warnForDeprecation(_this._logger, B.Deprecation_INA, "Importer " + A.S(importer) + " canonicalized " + url + " to " + A.S(canonicalUrl) + string$.x2e_Rela, null, null);
  76814. _this._loadedUrls.add$1(0, canonicalUrl);
  76815. isDependency = _this._inDependency || !J.$eq$(importer, _this._importer);
  76816. _2_0 = importCache.importCanonical$3$originalUrl(importer, canonicalUrl, originalUrl);
  76817. stylesheet = null;
  76818. if (_2_0 != null) {
  76819. stylesheet = _2_0;
  76820. t1 = stylesheet;
  76821. t2 = importer;
  76822. return new A._Record_3_importer_isDependency(t1, t2, isDependency);
  76823. }
  76824. }
  76825. }
  76826. t1 = B.JSString_methods.startsWith$1(url, "package:");
  76827. if (t1)
  76828. throw A.wrapException(string$.x22packa);
  76829. else
  76830. throw A.wrapException("Can't find stylesheet to import.");
  76831. } catch (exception) {
  76832. t1 = A.unwrapException(exception);
  76833. if (t1 instanceof A.SassException)
  76834. throw exception;
  76835. else if (t1 instanceof A.ArgumentError) {
  76836. error = t1;
  76837. stackTrace = A.getTraceFromException(exception);
  76838. A.throwWithTrace(_this._evaluate$_exception$1(J.toString$0$(error)), error, stackTrace);
  76839. } else {
  76840. error0 = t1;
  76841. stackTrace0 = A.getTraceFromException(exception);
  76842. A.throwWithTrace(_this._evaluate$_exception$1(_this._getErrorMessage$1(error0)), error0, stackTrace0);
  76843. }
  76844. } finally {
  76845. _this._importSpan = null;
  76846. }
  76847. },
  76848. _loadStylesheet$3$baseUrl(url, span, baseUrl) {
  76849. return this._loadStylesheet$4$baseUrl$forImport(url, span, baseUrl, false);
  76850. },
  76851. _loadStylesheet$3$forImport(url, span, forImport) {
  76852. return this._loadStylesheet$4$baseUrl$forImport(url, span, null, forImport);
  76853. },
  76854. _applyMixin$5(mixin, contentCallable, $arguments, nodeWithSpan, nodeWithSpanWithoutContent) {
  76855. var t1, _0_0, t2, _1_8, _this = this,
  76856. _s37_ = "Mixin doesn't accept a content block.",
  76857. _s10_ = "invocation";
  76858. $label0$0: {
  76859. if (mixin == null)
  76860. throw A.wrapException(_this._evaluate$_exception$2("Undefined mixin.", nodeWithSpan.get$span(nodeWithSpan)));
  76861. t1 = mixin instanceof A.BuiltInCallable;
  76862. if (t1 && !mixin.acceptsContent && contentCallable != null) {
  76863. t1 = _this._evaluateArguments$1($arguments)._values;
  76864. _0_0 = mixin.callbackFor$2(t1[2].length, new A.MapKeySet(t1[0], type$.MapKeySet_String));
  76865. throw A.wrapException(A.MultiSpanSassRuntimeException$(_s37_, nodeWithSpanWithoutContent.get$span(nodeWithSpanWithoutContent), _s10_, A.LinkedHashMap_LinkedHashMap$_literal([_0_0._0.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), _this._evaluate$_stackTrace$1(nodeWithSpanWithoutContent.get$span(nodeWithSpanWithoutContent)), null));
  76866. }
  76867. if (t1) {
  76868. _this._environment.withContent$2(contentCallable, new A._EvaluateVisitor__applyMixin_closure(_this, $arguments, mixin, nodeWithSpanWithoutContent));
  76869. break $label0$0;
  76870. }
  76871. t1 = type$.UserDefinedCallable_Environment._is(mixin);
  76872. t2 = false;
  76873. if (t1) {
  76874. _1_8 = mixin.declaration;
  76875. if (_1_8 instanceof A.MixinRule)
  76876. t2 = !type$.MixinRule._as(_1_8).get$hasContent() && contentCallable != null;
  76877. }
  76878. if (t2)
  76879. throw A.wrapException(A.MultiSpanSassRuntimeException$(_s37_, nodeWithSpanWithoutContent.get$span(nodeWithSpanWithoutContent), _s10_, A.LinkedHashMap_LinkedHashMap$_literal([mixin.declaration.$arguments.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), _this._evaluate$_stackTrace$1(nodeWithSpanWithoutContent.get$span(nodeWithSpanWithoutContent)), null));
  76880. if (t1) {
  76881. _this._runUserDefinedCallable$1$4($arguments, mixin, nodeWithSpanWithoutContent, new A._EvaluateVisitor__applyMixin_closure0(_this, contentCallable, mixin, nodeWithSpanWithoutContent), type$.Null);
  76882. break $label0$0;
  76883. }
  76884. throw A.wrapException(A.UnsupportedError$("Unknown callable type " + mixin.toString$0(0) + "."));
  76885. }
  76886. },
  76887. visitIncludeRule$1(_, node) {
  76888. var _this = this,
  76889. mixin = _this._addExceptionSpan$2(node, new A._EvaluateVisitor_visitIncludeRule_closure(_this, node));
  76890. if (B.JSString_methods.startsWith$1(node.originalName, "--") && mixin instanceof A.UserDefinedCallable && !B.JSString_methods.startsWith$1(mixin.declaration.originalName, "--"))
  76891. _this._warn$3(string$.Sassx20_m, node.get$nameSpan(), B.Deprecation_0);
  76892. _this._applyMixin$5(mixin, A.NullableExtension_andThen(node.content, new A._EvaluateVisitor_visitIncludeRule_closure0(_this)), node.$arguments, node, new A._FakeAstNode(new A._EvaluateVisitor_visitIncludeRule_closure1(node)));
  76893. return null;
  76894. },
  76895. visitMixinRule$1(_, node) {
  76896. var t1 = this._environment,
  76897. t2 = t1.closure$0(),
  76898. t3 = this._inDependency,
  76899. t4 = t1._mixins,
  76900. index = t4.length - 1,
  76901. t5 = node.name;
  76902. t1._mixinIndices.$indexSet(0, t5, index);
  76903. J.$indexSet$ax(t4[index], t5, new A.UserDefinedCallable(node, t2, t3, type$.UserDefinedCallable_Environment));
  76904. return null;
  76905. },
  76906. visitLoudComment$1(_, node) {
  76907. var t1, text, _this = this,
  76908. _s8_ = "__parent",
  76909. _s13_ = "_endOfImports";
  76910. if (_this._inFunction)
  76911. return null;
  76912. if (_this._assertInModule$2(_this.__parent, _s8_) === _this._assertInModule$2(_this.__root, "_root") && _this._assertInModule$2(_this.__endOfImports, _s13_) === J.get$length$asx(_this._assertInModule$2(_this.__root, "_root").children._collection$_source))
  76913. _this.__endOfImports = _this._assertInModule$2(_this.__endOfImports, _s13_) + 1;
  76914. t1 = node.text;
  76915. text = _this._performInterpolation$1(t1);
  76916. if (!B.JSString_methods.endsWith$1(text, "*/"))
  76917. text += " */";
  76918. _this._assertInModule$2(_this.__parent, _s8_).addChild$1(new A.ModifiableCssComment(text, t1.span));
  76919. return null;
  76920. },
  76921. visitMediaRule$1(_, node) {
  76922. var _0_0, queries, mergedQueries, t1, mergedSources, t2, t3, _this = this;
  76923. if (_this._declarationName != null)
  76924. throw A.wrapException(_this._evaluate$_exception$2(string$.Media_, node.span));
  76925. _0_0 = _this._performInterpolationWithMap$2$warnForColor(node.query, true);
  76926. queries = new A.MediaQueryParser(A.SpanScanner$(_0_0._0, null), _0_0._1).parse$0(0);
  76927. mergedQueries = A.NullableExtension_andThen(_this._mediaQueries, new A._EvaluateVisitor_visitMediaRule_closure(_this, queries));
  76928. t1 = mergedQueries == null;
  76929. if (!t1 && J.get$isEmpty$asx(mergedQueries))
  76930. return null;
  76931. if (t1)
  76932. mergedSources = B.Set_empty1;
  76933. else {
  76934. t2 = _this._mediaQuerySources;
  76935. t2.toString;
  76936. t2 = A.LinkedHashSet_LinkedHashSet$of(t2, type$.CssMediaQuery);
  76937. t3 = _this._mediaQueries;
  76938. t3.toString;
  76939. t2.addAll$1(0, t3);
  76940. t2.addAll$1(0, queries);
  76941. mergedSources = t2;
  76942. }
  76943. t1 = t1 ? queries : mergedQueries;
  76944. _this._withParent$2$4$scopeWhen$through(A.ModifiableCssMediaRule$(t1, node.span), new A._EvaluateVisitor_visitMediaRule_closure0(_this, mergedQueries, queries, mergedSources, node), node.hasDeclarations, new A._EvaluateVisitor_visitMediaRule_closure1(mergedSources), type$.ModifiableCssMediaRule, type$.Null);
  76945. return null;
  76946. },
  76947. _mergeMediaQueries$2(queries1, queries2) {
  76948. var t1, t2, t3, t4, _0_0, t5, result,
  76949. queries = A._setArrayType([], type$.JSArray_CssMediaQuery);
  76950. for (t1 = J.get$iterator$ax(queries1), t2 = J.getInterceptor$ax(queries2); t1.moveNext$0();) {
  76951. t3 = t1.get$current(t1);
  76952. for (t4 = t2.get$iterator(queries2); t4.moveNext$0();)
  76953. $label0$1: {
  76954. _0_0 = t3.merge$1(t4.get$current(t4));
  76955. if (B._SingletonCssMediaQueryMergeResult_0 === _0_0)
  76956. continue;
  76957. if (B._SingletonCssMediaQueryMergeResult_1 === _0_0)
  76958. return null;
  76959. t5 = _0_0 instanceof A.MediaQuerySuccessfulMergeResult;
  76960. result = t5 ? _0_0 : null;
  76961. if (t5)
  76962. queries.push(result.query);
  76963. break $label0$1;
  76964. }
  76965. }
  76966. return queries;
  76967. },
  76968. visitReturnRule$1(_, node) {
  76969. var t1 = node.expression;
  76970. return this._withoutSlash$2(t1.accept$1(this), t1);
  76971. },
  76972. visitSilentComment$1(_, node) {
  76973. return null;
  76974. },
  76975. visitStyleRule$1(_, node) {
  76976. var t1, _0_0, selectorText, selectorMap, parsedSelector, nest, t2, _i, _1_0, first, t3, rule, oldAtRootExcludingStyleRule, _this = this, _null = null,
  76977. _s8_ = "__parent",
  76978. _s11_ = "_stylesheet";
  76979. if (_this._declarationName != null)
  76980. throw A.wrapException(_this._evaluate$_exception$2(string$.Style_n, node.span));
  76981. else if (_this._inKeyframes && _this._assertInModule$2(_this.__parent, _s8_) instanceof A.ModifiableCssKeyframeBlock)
  76982. throw A.wrapException(_this._evaluate$_exception$2(string$.Style_k, node.span));
  76983. t1 = node.selector;
  76984. _0_0 = _this._performInterpolationWithMap$2$warnForColor(t1, true);
  76985. selectorText = _0_0._0;
  76986. selectorMap = _0_0._1;
  76987. if (_this._inKeyframes) {
  76988. _this._withParent$2$4$scopeWhen$through(A.ModifiableCssKeyframeBlock$(new A.CssValue(A.List_List$unmodifiable(new A.KeyframeSelectorParser(A.SpanScanner$(selectorText, _null), selectorMap).parse$0(0), type$.String), t1.span, type$.CssValue_List_String), node.span), new A._EvaluateVisitor_visitStyleRule_closure(_this, node), node.hasDeclarations, new A._EvaluateVisitor_visitStyleRule_closure0(), type$.ModifiableCssKeyframeBlock, type$.Null);
  76989. return _null;
  76990. }
  76991. parsedSelector = A.SelectorList_SelectorList$parse(selectorText, true, selectorMap, _this._assertInModule$2(_this.__stylesheet, _s11_).plainCss);
  76992. t1 = _this._atRootExcludingStyleRule ? _null : _this._styleRuleIgnoringAtRoot;
  76993. t1 = t1 == null ? _null : t1.fromPlainCss;
  76994. nest = t1 !== true;
  76995. if (nest) {
  76996. if (_this._assertInModule$2(_this.__stylesheet, _s11_).plainCss)
  76997. for (t1 = parsedSelector.components, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  76998. _1_0 = t1[_i].leadingCombinators;
  76999. if (_1_0.length >= 1) {
  77000. first = _1_0[0];
  77001. t3 = _this._assertInModule$2(_this.__stylesheet, _s11_);
  77002. t3 = t3.plainCss;
  77003. } else {
  77004. first = _null;
  77005. t3 = false;
  77006. }
  77007. if (t3)
  77008. throw A.wrapException(_this._evaluate$_exception$2(string$.Top_lel, first.span));
  77009. }
  77010. t1 = _this._styleRuleIgnoringAtRoot;
  77011. t1 = t1 == null ? _null : t1.originalSelector;
  77012. parsedSelector = parsedSelector.nestWithin$3$implicitParent$preserveParentSelectors(t1, !_this._atRootExcludingStyleRule, _this._assertInModule$2(_this.__stylesheet, _s11_).plainCss);
  77013. }
  77014. rule = A.ModifiableCssStyleRule$(_this._assertInModule$2(_this.__extensionStore, "_extensionStore").addSelector$2(parsedSelector, _this._mediaQueries), node.span, _this._assertInModule$2(_this.__stylesheet, _s11_).plainCss, parsedSelector);
  77015. oldAtRootExcludingStyleRule = _this._atRootExcludingStyleRule;
  77016. t1 = _this._atRootExcludingStyleRule = false;
  77017. t2 = nest ? new A._EvaluateVisitor_visitStyleRule_closure1() : _null;
  77018. _this._withParent$2$4$scopeWhen$through(rule, new A._EvaluateVisitor_visitStyleRule_closure2(_this, rule, node), node.hasDeclarations, t2, type$.ModifiableCssStyleRule, type$.Null);
  77019. _this._atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  77020. _this._warnForBogusCombinators$1(rule);
  77021. if ((_this._atRootExcludingStyleRule ? _null : _this._styleRuleIgnoringAtRoot) == null) {
  77022. t1 = _this._assertInModule$2(_this.__parent, _s8_).children;
  77023. t1 = !t1.get$isEmpty(t1);
  77024. }
  77025. if (t1) {
  77026. t1 = _this._assertInModule$2(_this.__parent, _s8_).children;
  77027. t1.get$last(t1).isGroupEnd = true;
  77028. }
  77029. return _null;
  77030. },
  77031. _warnForBogusCombinators$1(rule) {
  77032. var t1, t2, t3, t4, t5, _i, complex, visitor, t6, t7, t8, t9, _this = this, _null = null;
  77033. if (!rule.accept$1(B._IsInvisibleVisitor_false_false))
  77034. for (t1 = rule._style_rule$_selector._box$_inner.value.components, t2 = t1.length, t3 = type$.SourceSpan, t4 = type$.String, t5 = rule.children, _i = 0; _i < t2; ++_i) {
  77035. complex = t1[_i];
  77036. if (!complex.accept$1(B._IsBogusVisitor_true))
  77037. continue;
  77038. if (complex.accept$1(B.C__IsUselessVisitor)) {
  77039. visitor = A._SerializeVisitor$(_null, true, _null, _null, true, false, _null, true);
  77040. complex.accept$1(visitor);
  77041. _this._warn$3('The selector "' + B.JSString_methods.trim$0(visitor._serialize$_buffer.toString$0(0)) + string$.x22x20is_ix20, A.SpanExtensions_trimRight(complex.span), B.Deprecation_C9i);
  77042. } else if (complex.leadingCombinators.length !== 0) {
  77043. if (!_this._assertInModule$2(_this.__stylesheet, "_stylesheet").plainCss) {
  77044. visitor = A._SerializeVisitor$(_null, true, _null, _null, true, false, _null, true);
  77045. complex.accept$1(visitor);
  77046. _this._warn$3('The selector "' + B.JSString_methods.trim$0(visitor._serialize$_buffer.toString$0(0)) + string$.x22x20is_ix0a, A.SpanExtensions_trimRight(complex.span), B.Deprecation_C9i);
  77047. }
  77048. } else {
  77049. visitor = A._SerializeVisitor$(_null, true, _null, _null, true, false, _null, true);
  77050. complex.accept$1(visitor);
  77051. t6 = B.JSString_methods.trim$0(visitor._serialize$_buffer.toString$0(0));
  77052. t7 = complex.accept$1(B._IsBogusVisitor_false) ? string$.x20It_wi : "";
  77053. t8 = A.SpanExtensions_trimRight(complex.span);
  77054. if (t5.get$length(0) === 0)
  77055. A.throwExpression(A.IterableElementError_noElement());
  77056. t9 = J.get$span$z(t5.$index(0, 0));
  77057. _this._warn$3('The selector "' + t6 + string$.x22x20is_o + t7 + string$.x0aThis_, new A.MultiSpan(t8, "invalid selector", A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_literal([t9, "this is not a style rule" + (t5.every$1(t5, new A._EvaluateVisitor__warnForBogusCombinators_closure()) ? "\n(try converting to a //-style comment)" : "")], t3, t4), t3, t4)), B.Deprecation_C9i);
  77058. }
  77059. }
  77060. },
  77061. visitSupportsRule$1(_, node) {
  77062. var t1, _this = this;
  77063. if (_this._declarationName != null)
  77064. throw A.wrapException(_this._evaluate$_exception$2(string$.Suppor, node.span));
  77065. t1 = node.condition;
  77066. _this._withParent$2$4$scopeWhen$through(A.ModifiableCssSupportsRule$(new A.CssValue(_this._visitSupportsCondition$1(t1), t1.get$span(t1), type$.CssValue_String), node.span), new A._EvaluateVisitor_visitSupportsRule_closure(_this, node), node.hasDeclarations, new A._EvaluateVisitor_visitSupportsRule_closure0(), type$.ModifiableCssSupportsRule, type$.Null);
  77067. return null;
  77068. },
  77069. _visitSupportsCondition$1(condition) {
  77070. var t1, _this = this, _box_0 = {};
  77071. $label0$0: {
  77072. if (condition instanceof A.SupportsOperation) {
  77073. t1 = condition.operator;
  77074. t1 = _this._parenthesize$2(condition.left, t1) + " " + t1 + " " + _this._parenthesize$2(condition.right, t1);
  77075. break $label0$0;
  77076. }
  77077. if (condition instanceof A.SupportsNegation) {
  77078. t1 = "not " + _this._parenthesize$1(condition.condition);
  77079. break $label0$0;
  77080. }
  77081. if (condition instanceof A.SupportsInterpolation) {
  77082. t1 = condition.expression;
  77083. t1 = _this._evaluate$_serialize$3$quote(t1.accept$1(_this), t1, false);
  77084. break $label0$0;
  77085. }
  77086. _box_0.declaration = null;
  77087. if (condition instanceof A.SupportsDeclaration) {
  77088. _box_0.declaration = condition;
  77089. t1 = _this._withSupportsDeclaration$1(new A._EvaluateVisitor__visitSupportsCondition_closure(_box_0, _this));
  77090. break $label0$0;
  77091. }
  77092. if (condition instanceof A.SupportsFunction) {
  77093. t1 = _this._performInterpolation$1(condition.name) + "(" + _this._performInterpolation$1(condition.$arguments) + ")";
  77094. break $label0$0;
  77095. }
  77096. if (condition instanceof A.SupportsAnything) {
  77097. t1 = "(" + _this._performInterpolation$1(condition.contents) + ")";
  77098. break $label0$0;
  77099. }
  77100. t1 = A.throwExpression(A.ArgumentError$("Unknown supports condition type " + A.getRuntimeTypeOfDartObject(condition).toString$0(0) + ".", null));
  77101. }
  77102. return t1;
  77103. },
  77104. _withSupportsDeclaration$1$1(callback) {
  77105. var t1,
  77106. oldInSupportsDeclaration = this._inSupportsDeclaration;
  77107. this._inSupportsDeclaration = true;
  77108. try {
  77109. t1 = callback.call$0();
  77110. return t1;
  77111. } finally {
  77112. this._inSupportsDeclaration = oldInSupportsDeclaration;
  77113. }
  77114. },
  77115. _withSupportsDeclaration$1(callback) {
  77116. return this._withSupportsDeclaration$1$1(callback, type$.dynamic);
  77117. },
  77118. _parenthesize$2(condition, operator) {
  77119. var t1;
  77120. if (!(condition instanceof A.SupportsNegation))
  77121. if (condition instanceof A.SupportsOperation)
  77122. t1 = operator == null || operator !== condition.operator;
  77123. else
  77124. t1 = false;
  77125. else
  77126. t1 = true;
  77127. if (t1)
  77128. return "(" + this._visitSupportsCondition$1(condition) + ")";
  77129. return this._visitSupportsCondition$1(condition);
  77130. },
  77131. _parenthesize$1(condition) {
  77132. return this._parenthesize$2(condition, null);
  77133. },
  77134. visitVariableDeclaration$1(_, node) {
  77135. var t2, value, _this = this, _null = null, t1 = {};
  77136. if (node.isGuarded) {
  77137. if (node.namespace == null && _this._environment._variables.length === 1) {
  77138. t2 = _this._configuration._configuration$_values;
  77139. t2 = t2.get$isEmpty(t2) ? _null : t2.remove$1(0, node.name);
  77140. t1.override = null;
  77141. if (t2 != null) {
  77142. t1.override = t2;
  77143. t2 = !t2.value.$eq(0, B.C__SassNull);
  77144. } else
  77145. t2 = false;
  77146. if (t2) {
  77147. _this._addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableDeclaration_closure(t1, _this, node));
  77148. return _null;
  77149. }
  77150. }
  77151. value = _this._addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableDeclaration_closure0(_this, node));
  77152. if (value != null && !value.$eq(0, B.C__SassNull))
  77153. return _null;
  77154. }
  77155. if (node.isGlobal && !_this._environment.globalVariableExists$1(node.name)) {
  77156. t1 = _this._environment._variables.length === 1 ? string$.As_of_S : string$.As_of_R + A.declarationName(node.span) + ": null` at the stylesheet root.";
  77157. _this._warn$3(t1, node.span, B.Deprecation_KIf);
  77158. }
  77159. t1 = node.expression;
  77160. _this._addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableDeclaration_closure1(_this, node, _this._withoutSlash$2(t1.accept$1(_this), t1)));
  77161. return _null;
  77162. },
  77163. visitUseRule$1(_, node) {
  77164. var values, _i, variable, t3, variableNodeWithSpan, configuration, _this = this,
  77165. t1 = node.configuration,
  77166. t2 = t1.length;
  77167. if (t2 !== 0) {
  77168. values = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue);
  77169. for (_i = 0; _i < t2; ++_i) {
  77170. variable = t1[_i];
  77171. t3 = variable.expression;
  77172. variableNodeWithSpan = _this._expressionNode$1(t3);
  77173. values.$indexSet(0, variable.name, new A.ConfiguredValue(_this._withoutSlash$2(t3.accept$1(_this), variableNodeWithSpan), variable.span, variableNodeWithSpan));
  77174. }
  77175. configuration = new A.ExplicitConfiguration(node, values, null);
  77176. } else
  77177. configuration = B.Configuration_Map_empty_null;
  77178. _this._loadModule$5$configuration(node.url, "@use", node, new A._EvaluateVisitor_visitUseRule_closure(_this, node), configuration);
  77179. _this._assertConfigurationIsEmpty$1(configuration);
  77180. return null;
  77181. },
  77182. visitWarnRule$1(_, node) {
  77183. var _this = this,
  77184. value = _this._addExceptionSpan$2(node, new A._EvaluateVisitor_visitWarnRule_closure(_this, node)),
  77185. t1 = value instanceof A.SassString ? value._string$_text : _this._evaluate$_serialize$2(value, node.expression);
  77186. _this._logger.warn$2$trace(0, t1, _this._evaluate$_stackTrace$1(node.span));
  77187. return null;
  77188. },
  77189. visitWhileRule$1(_, node) {
  77190. return this._environment.scope$1$3$semiGlobal$when(new A._EvaluateVisitor_visitWhileRule_closure(this, node), true, node.hasDeclarations, type$.nullable_Value);
  77191. },
  77192. visitBinaryOperationExpression$1(_, node) {
  77193. var t1, _this = this;
  77194. if (_this._assertInModule$2(_this.__stylesheet, "_stylesheet").plainCss) {
  77195. t1 = node.operator;
  77196. t1 = t1 !== B.BinaryOperator_wdM && t1 !== B.BinaryOperator_U77;
  77197. } else
  77198. t1 = false;
  77199. if (t1)
  77200. throw A.wrapException(_this._evaluate$_exception$2("Operators aren't allowed in plain CSS.", node.get$operatorSpan()));
  77201. return _this._addExceptionSpan$2(node, new A._EvaluateVisitor_visitBinaryOperationExpression_closure(_this, node));
  77202. },
  77203. _slash$3(left, right, node) {
  77204. var t2, _1_1,
  77205. result = left.dividedBy$1(right),
  77206. _1_2_isSet = left instanceof A.SassNumber,
  77207. _1_2 = null, right0 = null,
  77208. t1 = false;
  77209. if (_1_2_isSet) {
  77210. t2 = type$.SassNumber;
  77211. t2._as(left);
  77212. if (right instanceof A.SassNumber) {
  77213. t2._as(right);
  77214. t1 = node.allowsSlash && this._operandAllowsSlash$1(node.left) && this._operandAllowsSlash$1(node.right);
  77215. right0 = right;
  77216. _1_2 = right0;
  77217. } else
  77218. _1_2 = right;
  77219. _1_1 = left;
  77220. } else {
  77221. _1_1 = left;
  77222. left = null;
  77223. }
  77224. if (t1)
  77225. return type$.SassNumber._as(result).withSlash$2(left, right0);
  77226. if (_1_1 instanceof A.SassNumber)
  77227. t1 = (_1_2_isSet ? _1_2 : right) instanceof A.SassNumber;
  77228. else
  77229. t1 = false;
  77230. if (t1) {
  77231. this._warn$3(string$.Using__o + A.S(new A._EvaluateVisitor__slash_recommendation().call$1(node)) + " or " + A.expressionToCalc(node).toString$0(0) + string$.x0a_Morex20, node.get$span(0), B.Deprecation_mRl);
  77232. return result;
  77233. }
  77234. return result;
  77235. },
  77236. _operandAllowsSlash$1(node) {
  77237. var t1;
  77238. if (node instanceof A.FunctionExpression)
  77239. if (node.namespace == null) {
  77240. t1 = node.name;
  77241. t1 = B.Set_yHF81.contains$1(0, t1.toLowerCase()) && this._environment.getFunction$1(t1) == null;
  77242. } else
  77243. t1 = false;
  77244. else
  77245. t1 = true;
  77246. return t1;
  77247. },
  77248. visitValueExpression$1(_, node) {
  77249. return node.value;
  77250. },
  77251. visitVariableExpression$1(_, node) {
  77252. var result = this._addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableExpression_closure(this, node));
  77253. if (result != null)
  77254. return result;
  77255. throw A.wrapException(this._evaluate$_exception$2("Undefined variable.", node.span));
  77256. },
  77257. visitUnaryOperationExpression$1(_, node) {
  77258. return this._addExceptionSpan$2(node, new A._EvaluateVisitor_visitUnaryOperationExpression_closure(node, node.operand.accept$1(this)));
  77259. },
  77260. visitBooleanExpression$1(_, node) {
  77261. return node.value ? B.SassBoolean_true : B.SassBoolean_false;
  77262. },
  77263. visitIfExpression$1(_, node) {
  77264. var condition, t1, ifTrue, ifFalse, result, _this = this,
  77265. _0_0 = _this._evaluateMacroArguments$1(node),
  77266. positional = _0_0._0,
  77267. named = _0_0._1;
  77268. _this._verifyArguments$4(positional.length, named, $.$get$IfExpression_declaration(), node);
  77269. condition = A.ListExtensions_elementAtOrNull(positional, 0);
  77270. if (condition == null) {
  77271. t1 = named.$index(0, "condition");
  77272. t1.toString;
  77273. condition = t1;
  77274. }
  77275. ifTrue = A.ListExtensions_elementAtOrNull(positional, 1);
  77276. if (ifTrue == null) {
  77277. t1 = named.$index(0, "if-true");
  77278. t1.toString;
  77279. ifTrue = t1;
  77280. }
  77281. ifFalse = A.ListExtensions_elementAtOrNull(positional, 2);
  77282. if (ifFalse == null) {
  77283. t1 = named.$index(0, "if-false");
  77284. t1.toString;
  77285. ifFalse = t1;
  77286. }
  77287. result = condition.accept$1(_this).get$isTruthy() ? ifTrue : ifFalse;
  77288. return _this._withoutSlash$2(result.accept$1(_this), _this._expressionNode$1(result));
  77289. },
  77290. visitNullExpression$1(_, node) {
  77291. return B.C__SassNull;
  77292. },
  77293. visitNumberExpression$1(_, node) {
  77294. return A.SassNumber_SassNumber(node.value, node.unit);
  77295. },
  77296. visitParenthesizedExpression$1(_, node) {
  77297. var _this = this;
  77298. return _this._assertInModule$2(_this.__stylesheet, "_stylesheet").plainCss ? A.throwExpression(_this._evaluate$_exception$2("Parentheses aren't allowed in plain CSS.", node.span)) : node.expression.accept$1(_this);
  77299. },
  77300. visitColorExpression$1(_, node) {
  77301. return node.value;
  77302. },
  77303. visitListExpression$1(_, node) {
  77304. var t1 = node.contents;
  77305. return A.SassList$(new A.MappedListIterable(t1, new A._EvaluateVisitor_visitListExpression_closure(this), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value>")), node.separator, node.hasBrackets);
  77306. },
  77307. visitMapExpression$1(_, node) {
  77308. var t2, t3, _i, t4, key, value, keyValue, valueValue, oldValueSpan,
  77309. t1 = type$.Value,
  77310. map = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1),
  77311. keyNodes = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.AstNode);
  77312. for (t2 = node.pairs, t3 = t2.length, _i = 0; _i < t3; ++_i) {
  77313. t4 = t2[_i];
  77314. key = t4._0;
  77315. value = t4._1;
  77316. keyValue = key.accept$1(this);
  77317. valueValue = value.accept$1(this);
  77318. if (map.containsKey$1(keyValue)) {
  77319. t1 = keyNodes.$index(0, keyValue);
  77320. oldValueSpan = t1 == null ? null : t1.get$span(t1);
  77321. t1 = key.get$span(key);
  77322. t2 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
  77323. if (oldValueSpan != null)
  77324. t2.$indexSet(0, oldValueSpan, "first key");
  77325. throw A.wrapException(A.MultiSpanSassRuntimeException$("Duplicate key.", t1, "second key", t2, this._evaluate$_stackTrace$1(key.get$span(key)), null));
  77326. }
  77327. map.$indexSet(0, keyValue, valueValue);
  77328. keyNodes.$indexSet(0, keyValue, key);
  77329. }
  77330. return new A.SassMap(A.ConstantMap_ConstantMap$from(map, t1, t1));
  77331. },
  77332. visitFunctionExpression$1(_, node) {
  77333. var t2, _0_0, t3, t4, oldInFunction, result, _this = this,
  77334. _s11_ = "_stylesheet",
  77335. t1 = {},
  77336. $function = _this._assertInModule$2(_this.__stylesheet, _s11_).plainCss ? null : _this._addExceptionSpan$2(node, new A._EvaluateVisitor_visitFunctionExpression_closure(_this, node));
  77337. t1.$function = $function;
  77338. if ($function == null) {
  77339. if (node.namespace != null)
  77340. throw A.wrapException(_this._evaluate$_exception$2("Undefined function.", node.span));
  77341. t2 = node.name;
  77342. _0_0 = t2.toLowerCase();
  77343. if ("min" === _0_0 || "max" === _0_0 || "round" === _0_0 || "abs" === _0_0) {
  77344. t3 = node.$arguments;
  77345. t4 = t3.named;
  77346. t3 = t4.get$isEmpty(t4) && t3.rest == null && B.JSArray_methods.every$1(t3.positional, new A._EvaluateVisitor_visitFunctionExpression_closure0());
  77347. } else
  77348. t3 = false;
  77349. if (t3)
  77350. return _this._visitCalculation$2$inLegacySassFunction(node, true);
  77351. if ("calc" === _0_0 || "clamp" === _0_0 || "hypot" === _0_0 || "sin" === _0_0 || "cos" === _0_0 || "tan" === _0_0 || "asin" === _0_0 || "acos" === _0_0 || "atan" === _0_0 || "sqrt" === _0_0 || "exp" === _0_0 || "sign" === _0_0 || "mod" === _0_0 || "rem" === _0_0 || "atan2" === _0_0 || "pow" === _0_0 || "log" === _0_0)
  77352. return _this._visitCalculation$1(node);
  77353. $function = _this._assertInModule$2(_this.__stylesheet, _s11_).plainCss ? null : _this._builtInFunctions.$index(0, t2);
  77354. t2 = t1.$function = $function == null ? new A.PlainCssCallable(node.originalName) : $function;
  77355. } else
  77356. t2 = $function;
  77357. if (B.JSString_methods.startsWith$1(node.originalName, "--") && t2 instanceof A.UserDefinedCallable && !B.JSString_methods.startsWith$1(t2.declaration.originalName, "--"))
  77358. _this._warn$3(string$.Sassx20_ff, node.get$nameSpan(), B.Deprecation_0);
  77359. oldInFunction = _this._inFunction;
  77360. _this._inFunction = true;
  77361. result = _this._addErrorSpan$2(node, new A._EvaluateVisitor_visitFunctionExpression_closure1(t1, _this, node));
  77362. _this._inFunction = oldInFunction;
  77363. return result;
  77364. },
  77365. _visitCalculation$2$inLegacySassFunction(node, inLegacySassFunction) {
  77366. var $arguments, oldCallableNode, t1, _0_0, error, stackTrace, t4, _i, exception, _this = this,
  77367. t2 = node.$arguments,
  77368. t3 = t2.named;
  77369. if (t3.get$isNotEmpty(t3))
  77370. throw A.wrapException(_this._evaluate$_exception$2(string$.Keywor, node.span));
  77371. else if (t2.rest != null)
  77372. throw A.wrapException(_this._evaluate$_exception$2(string$.Rest_a, node.span));
  77373. _this._checkCalculationArguments$1(node);
  77374. t3 = A._setArrayType([], type$.JSArray_Object);
  77375. for (t2 = t2.positional, t4 = t2.length, _i = 0; _i < t4; ++_i)
  77376. t3.push(_this._visitCalculationExpression$2$inLegacySassFunction(t2[_i], inLegacySassFunction));
  77377. $arguments = t3;
  77378. if (_this._inSupportsDeclaration)
  77379. return new A.SassCalculation(node.name, A.List_List$unmodifiable($arguments, type$.Object));
  77380. oldCallableNode = _this._callableNode;
  77381. _this._callableNode = node;
  77382. try {
  77383. t1 = null;
  77384. t3 = node.name;
  77385. _0_0 = t3.toLowerCase();
  77386. $label0$0: {
  77387. if ("calc" === _0_0) {
  77388. t1 = A.SassCalculation_calc(J.$index$asx($arguments, 0));
  77389. break $label0$0;
  77390. }
  77391. if ("sqrt" === _0_0) {
  77392. t1 = A.SassCalculation__singleArgument("sqrt", J.$index$asx($arguments, 0), A.number0__sqrt$closure(), true);
  77393. break $label0$0;
  77394. }
  77395. if ("sin" === _0_0) {
  77396. t1 = A.SassCalculation__singleArgument("sin", J.$index$asx($arguments, 0), A.number0__sin$closure(), false);
  77397. break $label0$0;
  77398. }
  77399. if ("cos" === _0_0) {
  77400. t1 = A.SassCalculation__singleArgument("cos", J.$index$asx($arguments, 0), A.number0__cos$closure(), false);
  77401. break $label0$0;
  77402. }
  77403. if ("tan" === _0_0) {
  77404. t1 = A.SassCalculation__singleArgument("tan", J.$index$asx($arguments, 0), A.number0__tan$closure(), false);
  77405. break $label0$0;
  77406. }
  77407. if ("asin" === _0_0) {
  77408. t1 = A.SassCalculation__singleArgument("asin", J.$index$asx($arguments, 0), A.number0__asin$closure(), true);
  77409. break $label0$0;
  77410. }
  77411. if ("acos" === _0_0) {
  77412. t1 = A.SassCalculation__singleArgument("acos", J.$index$asx($arguments, 0), A.number0__acos$closure(), true);
  77413. break $label0$0;
  77414. }
  77415. if ("atan" === _0_0) {
  77416. t1 = A.SassCalculation__singleArgument("atan", J.$index$asx($arguments, 0), A.number0__atan$closure(), true);
  77417. break $label0$0;
  77418. }
  77419. if ("abs" === _0_0) {
  77420. t1 = A.SassCalculation_abs(J.$index$asx($arguments, 0));
  77421. break $label0$0;
  77422. }
  77423. if ("exp" === _0_0) {
  77424. t1 = A.SassCalculation_exp(J.$index$asx($arguments, 0));
  77425. break $label0$0;
  77426. }
  77427. if ("sign" === _0_0) {
  77428. t1 = A.SassCalculation_sign(J.$index$asx($arguments, 0));
  77429. break $label0$0;
  77430. }
  77431. if ("min" === _0_0) {
  77432. t1 = A.SassCalculation_min($arguments);
  77433. break $label0$0;
  77434. }
  77435. if ("max" === _0_0) {
  77436. t1 = A.SassCalculation_max($arguments);
  77437. break $label0$0;
  77438. }
  77439. if ("hypot" === _0_0) {
  77440. t1 = A.SassCalculation_hypot($arguments);
  77441. break $label0$0;
  77442. }
  77443. if ("pow" === _0_0) {
  77444. t1 = A.SassCalculation_pow(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1));
  77445. break $label0$0;
  77446. }
  77447. if ("atan2" === _0_0) {
  77448. t1 = A.SassCalculation_atan2(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1));
  77449. break $label0$0;
  77450. }
  77451. if ("log" === _0_0) {
  77452. t1 = A.SassCalculation_log(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1));
  77453. break $label0$0;
  77454. }
  77455. if ("mod" === _0_0) {
  77456. t1 = A.SassCalculation_mod(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1));
  77457. break $label0$0;
  77458. }
  77459. if ("rem" === _0_0) {
  77460. t1 = A.SassCalculation_rem(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1));
  77461. break $label0$0;
  77462. }
  77463. if ("round" === _0_0) {
  77464. t1 = A.SassCalculation_round(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1), A.ListExtensions_elementAtOrNull($arguments, 2));
  77465. break $label0$0;
  77466. }
  77467. if ("clamp" === _0_0) {
  77468. t1 = A.SassCalculation_clamp(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1), A.ListExtensions_elementAtOrNull($arguments, 2));
  77469. break $label0$0;
  77470. }
  77471. t3 = A.UnsupportedError$('Unknown calculation name "' + t3 + '".');
  77472. t1 = A.throwExpression(t3);
  77473. }
  77474. t1 = t1;
  77475. return t1;
  77476. } catch (exception) {
  77477. t1 = A.unwrapException(exception);
  77478. if (t1 instanceof A.SassScriptException) {
  77479. error = t1;
  77480. stackTrace = A.getTraceFromException(exception);
  77481. if (B.JSString_methods.contains$1(error.message, "compatible"))
  77482. _this._verifyCompatibleNumbers$2($arguments, t2);
  77483. A.throwWithTrace(_this._evaluate$_exception$2(error.message, node.span), error, stackTrace);
  77484. } else
  77485. throw exception;
  77486. } finally {
  77487. _this._callableNode = oldCallableNode;
  77488. }
  77489. },
  77490. _visitCalculation$1(node) {
  77491. return this._visitCalculation$2$inLegacySassFunction(node, false);
  77492. },
  77493. _checkCalculationArguments$1(node) {
  77494. var t1, _0_0,
  77495. check = new A._EvaluateVisitor__checkCalculationArguments_check(this, node);
  77496. $label0$0: {
  77497. t1 = node.name;
  77498. _0_0 = t1.toLowerCase();
  77499. if ("calc" === _0_0 || "sqrt" === _0_0 || "sin" === _0_0 || "cos" === _0_0 || "tan" === _0_0 || "asin" === _0_0 || "acos" === _0_0 || "atan" === _0_0 || "abs" === _0_0 || "exp" === _0_0 || "sign" === _0_0) {
  77500. check.call$1(1);
  77501. break $label0$0;
  77502. }
  77503. if ("min" === _0_0 || "max" === _0_0 || "hypot" === _0_0) {
  77504. check.call$0();
  77505. break $label0$0;
  77506. }
  77507. if ("pow" === _0_0 || "atan2" === _0_0 || "log" === _0_0 || "mod" === _0_0 || "rem" === _0_0) {
  77508. check.call$1(2);
  77509. break $label0$0;
  77510. }
  77511. if ("round" === _0_0 || "clamp" === _0_0) {
  77512. check.call$1(3);
  77513. break $label0$0;
  77514. }
  77515. throw A.wrapException(A.UnsupportedError$('Unknown calculation name "' + t1 + '".'));
  77516. }
  77517. },
  77518. _verifyCompatibleNumbers$2(args, nodesWithSpans) {
  77519. var i, t1, _0_0, arg, number1, j, number2;
  77520. for (i = 0; t1 = args.length, i < t1; ++i) {
  77521. _0_0 = args[i];
  77522. if (_0_0 instanceof A.SassNumber) {
  77523. t1 = _0_0.get$hasComplexUnits();
  77524. arg = _0_0;
  77525. } else {
  77526. arg = null;
  77527. t1 = false;
  77528. }
  77529. if (t1)
  77530. throw A.wrapException(this._evaluate$_exception$2("Number " + A.S(arg) + " isn't compatible with CSS calculations.", J.get$span$z(nodesWithSpans[i])));
  77531. }
  77532. for (i = 0; i < t1 - 1; ++i) {
  77533. number1 = args[i];
  77534. if (!(number1 instanceof A.SassNumber))
  77535. continue;
  77536. for (j = i + 1; t1 = args.length, j < t1; ++j) {
  77537. number2 = args[j];
  77538. if (!(number2 instanceof A.SassNumber))
  77539. continue;
  77540. if (number1.hasPossiblyCompatibleUnits$1(number2))
  77541. continue;
  77542. throw A.wrapException(A.MultiSpanSassRuntimeException$(number1.toString$0(0) + " and " + number2.toString$0(0) + " are incompatible.", J.get$span$z(nodesWithSpans[i]), number1.toString$0(0), A.LinkedHashMap_LinkedHashMap$_literal([J.get$span$z(nodesWithSpans[j]), number2.toString$0(0)], type$.FileSpan, type$.String), this._evaluate$_stackTrace$1(J.get$span$z(nodesWithSpans[i])), null));
  77543. }
  77544. }
  77545. },
  77546. _visitCalculationExpression$2$inLegacySassFunction(node, inLegacySassFunction) {
  77547. var result, t2, _0_0, _1_0, t3, _i, i, _this = this, _null = null, _box_0 = {},
  77548. t1 = node instanceof A.ParenthesizedExpression,
  77549. inner = t1 ? node.expression : _null;
  77550. if (t1) {
  77551. result = _this._visitCalculationExpression$2$inLegacySassFunction(inner, inLegacySassFunction);
  77552. return result instanceof A.SassString ? new A.SassString("(" + result._string$_text + ")", false) : result;
  77553. }
  77554. if (node instanceof A.StringExpression && node.accept$1(B.C_IsCalculationSafeVisitor)) {
  77555. t1 = node.text;
  77556. t2 = t1.get$asPlain();
  77557. _0_0 = t2 == null ? _null : t2.toLowerCase();
  77558. $label0$0: {
  77559. if ("pi" === _0_0) {
  77560. t1 = A.SassNumber_SassNumber(3.141592653589793, _null);
  77561. break $label0$0;
  77562. }
  77563. if ("e" === _0_0) {
  77564. t1 = A.SassNumber_SassNumber(2.718281828459045, _null);
  77565. break $label0$0;
  77566. }
  77567. if ("infinity" === _0_0) {
  77568. t1 = A.SassNumber_SassNumber(1 / 0, _null);
  77569. break $label0$0;
  77570. }
  77571. if ("-infinity" === _0_0) {
  77572. t1 = A.SassNumber_SassNumber(-1 / 0, _null);
  77573. break $label0$0;
  77574. }
  77575. if ("nan" === _0_0) {
  77576. t1 = A.SassNumber_SassNumber(0 / 0, _null);
  77577. break $label0$0;
  77578. }
  77579. t1 = new A.SassString(_this._performInterpolation$1(t1), false);
  77580. break $label0$0;
  77581. }
  77582. return t1;
  77583. }
  77584. _box_0.right = _box_0.left = _box_0.operator = null;
  77585. t1 = node instanceof A.BinaryOperationExpression;
  77586. if (t1) {
  77587. _box_0.operator = node.operator;
  77588. _box_0.left = node.left;
  77589. _box_0.right = node.right;
  77590. }
  77591. if (t1) {
  77592. _this._checkWhitespaceAroundCalculationOperator$1(node);
  77593. return _this._addExceptionSpan$2(node, new A._EvaluateVisitor__visitCalculationExpression_closure(_box_0, _this, node, inLegacySassFunction));
  77594. }
  77595. if (node instanceof A.NumberExpression || node instanceof A.VariableExpression || node instanceof A.FunctionExpression || node instanceof A.IfExpression) {
  77596. _1_0 = node.accept$1(_this);
  77597. $label1$1: {
  77598. if (_1_0 instanceof A.SassNumber) {
  77599. t1 = _1_0;
  77600. break $label1$1;
  77601. }
  77602. if (_1_0 instanceof A.SassCalculation) {
  77603. t1 = _1_0;
  77604. break $label1$1;
  77605. }
  77606. if (_1_0 instanceof A.SassString) {
  77607. t1 = !_1_0._hasQuotes;
  77608. result = _1_0;
  77609. } else {
  77610. result = _null;
  77611. t1 = false;
  77612. }
  77613. if (t1) {
  77614. t1 = result;
  77615. break $label1$1;
  77616. }
  77617. t1 = A.throwExpression(_this._evaluate$_exception$2("Value " + _1_0.toString$0(0) + " can't be used in a calculation.", node.get$span(node)));
  77618. }
  77619. return t1;
  77620. }
  77621. if (node instanceof A.ListExpression && !node.hasBrackets && B.ListSeparator_nbm === node.separator && node.contents.length >= 2) {
  77622. t1 = A._setArrayType([], type$.JSArray_Object);
  77623. for (t2 = node.contents, t3 = t2.length, _i = 0; _i < t3; ++_i)
  77624. t1.push(_this._visitCalculationExpression$2$inLegacySassFunction(t2[_i], inLegacySassFunction));
  77625. _this._checkAdjacentCalculationValues$2(t1, node);
  77626. for (i = 0; i < t1.length; ++i) {
  77627. t3 = t1[i];
  77628. if (t3 instanceof A.CalculationOperation && t2[i] instanceof A.ParenthesizedExpression)
  77629. t1[i] = new A.SassString("(" + A.S(t3) + ")", false);
  77630. }
  77631. return new A.SassString(B.JSArray_methods.join$1(t1, " "), false);
  77632. }
  77633. throw A.wrapException(_this._evaluate$_exception$2(string$.This_e, node.get$span(node)));
  77634. },
  77635. _checkWhitespaceAroundCalculationOperator$1(node) {
  77636. var t2, t3, t4, textBetweenOperands, first, last,
  77637. t1 = node.operator;
  77638. if (t1 !== B.BinaryOperator_u15 && t1 !== B.BinaryOperator_SjO)
  77639. return;
  77640. t1 = node.left;
  77641. t2 = t1.get$span(t1);
  77642. t2 = t2.get$file(t2);
  77643. t3 = node.right;
  77644. t4 = t3.get$span(t3);
  77645. if (t2 !== t4.get$file(t4))
  77646. return;
  77647. t2 = t1.get$span(t1);
  77648. t2 = t2.get$end(t2);
  77649. t4 = t3.get$span(t3);
  77650. if (t2.offset >= t4.get$start(t4).offset)
  77651. return;
  77652. t2 = t1.get$span(t1);
  77653. t2 = t2.get$file(t2);
  77654. t1 = t1.get$span(t1);
  77655. t1 = t1.get$end(t1);
  77656. t3 = t3.get$span(t3);
  77657. textBetweenOperands = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t2._decodedChars, t1.offset, t3.get$start(t3).offset), 0, null);
  77658. first = textBetweenOperands.charCodeAt(0);
  77659. last = textBetweenOperands.charCodeAt(textBetweenOperands.length - 1);
  77660. if (first === 32 || first === 9 || first === 10 || first === 13 || first === 12 || first === 47)
  77661. t1 = !(last === 32 || last === 9 || last === 10 || last === 13 || last === 12 || last === 47);
  77662. else
  77663. t1 = true;
  77664. if (t1)
  77665. throw A.wrapException(this._evaluate$_exception$2(string$.x22x2b__an, node.get$operatorSpan()));
  77666. },
  77667. _binaryOperatorToCalculationOperator$2(operator, node) {
  77668. var t1;
  77669. $label0$0: {
  77670. if (B.BinaryOperator_u15 === operator) {
  77671. t1 = B.CalculationOperator_g2q;
  77672. break $label0$0;
  77673. }
  77674. if (B.BinaryOperator_SjO === operator) {
  77675. t1 = B.CalculationOperator_CxF;
  77676. break $label0$0;
  77677. }
  77678. if (B.BinaryOperator_2No === operator) {
  77679. t1 = B.CalculationOperator_171;
  77680. break $label0$0;
  77681. }
  77682. if (B.BinaryOperator_U77 === operator) {
  77683. t1 = B.CalculationOperator_Qf1;
  77684. break $label0$0;
  77685. }
  77686. t1 = A.throwExpression(this._evaluate$_exception$2(string$.This_o, node.get$operatorSpan()));
  77687. }
  77688. return t1;
  77689. },
  77690. _checkAdjacentCalculationValues$2(elements, node) {
  77691. var t1, i, t2, previous, current, previousNode, currentNode, _0_2;
  77692. for (t1 = elements.length, i = 1; i < t1; ++i) {
  77693. t2 = i - 1;
  77694. previous = elements[t2];
  77695. current = elements[i];
  77696. if (previous instanceof A.SassString || current instanceof A.SassString)
  77697. continue;
  77698. t1 = node.contents;
  77699. previousNode = t1[t2];
  77700. currentNode = t1[i];
  77701. if (currentNode instanceof A.UnaryOperationExpression) {
  77702. _0_2 = currentNode.operator;
  77703. if (B.UnaryOperator_AiQ !== _0_2)
  77704. t1 = B.UnaryOperator_cLp === _0_2;
  77705. else
  77706. t1 = true;
  77707. } else
  77708. t1 = false;
  77709. if (!t1)
  77710. t1 = currentNode instanceof A.NumberExpression && currentNode.value < 0;
  77711. else
  77712. t1 = true;
  77713. if (t1)
  77714. throw A.wrapException(this._evaluate$_exception$2(string$.x22x2b__an, A.FileSpanExtension_subspan(currentNode.get$span(currentNode), 0, 1)));
  77715. else
  77716. throw A.wrapException(this._evaluate$_exception$2("Missing math operator.", previousNode.get$span(previousNode).expand$1(0, currentNode.get$span(currentNode))));
  77717. }
  77718. },
  77719. visitInterpolatedFunctionExpression$1(_, node) {
  77720. var result, _this = this,
  77721. t1 = _this._performInterpolation$1(node.name),
  77722. oldInFunction = _this._inFunction;
  77723. _this._inFunction = true;
  77724. result = _this._addErrorSpan$2(node, new A._EvaluateVisitor_visitInterpolatedFunctionExpression_closure(_this, node, new A.PlainCssCallable(t1)));
  77725. _this._inFunction = oldInFunction;
  77726. return result;
  77727. },
  77728. _runUserDefinedCallable$1$4($arguments, callable, nodeWithSpan, run, $V) {
  77729. var oldCallable, result, _this = this,
  77730. evaluated = _this._evaluateArguments$1($arguments),
  77731. $name = callable.declaration.name;
  77732. if ($name !== "@content")
  77733. $name += "()";
  77734. oldCallable = _this._currentCallable;
  77735. _this._currentCallable = callable;
  77736. result = _this._withStackFrame$3($name, nodeWithSpan, new A._EvaluateVisitor__runUserDefinedCallable_closure(_this, callable, evaluated, nodeWithSpan, run, $V));
  77737. _this._currentCallable = oldCallable;
  77738. return result;
  77739. },
  77740. _runFunctionCallable$3($arguments, callable, nodeWithSpan) {
  77741. var buffer, first, argument, restArg, rest, error, t1, t2, _i, t3, t4, exception, _this = this;
  77742. if (callable instanceof A.BuiltInCallable)
  77743. return _this._withoutSlash$2(_this._runBuiltInCallable$3($arguments, callable, nodeWithSpan), nodeWithSpan);
  77744. else if (type$.UserDefinedCallable_Environment._is(callable))
  77745. return _this._runUserDefinedCallable$1$4($arguments, callable, nodeWithSpan, new A._EvaluateVisitor__runFunctionCallable_closure(_this, callable), type$.Value);
  77746. else if (callable instanceof A.PlainCssCallable) {
  77747. t1 = $arguments.named;
  77748. if (t1.get$isNotEmpty(t1) || $arguments.keywordRest != null)
  77749. throw A.wrapException(_this._evaluate$_exception$2(string$.Plain_, nodeWithSpan.get$span(nodeWithSpan)));
  77750. buffer = new A.StringBuffer(callable.name + "(");
  77751. try {
  77752. first = true;
  77753. for (t1 = $arguments.positional, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  77754. argument = t1[_i];
  77755. if (first)
  77756. first = false;
  77757. else
  77758. buffer._contents += ", ";
  77759. t3 = buffer;
  77760. t4 = argument;
  77761. t4 = _this._evaluate$_serialize$3$quote(t4.accept$1(_this), t4, true);
  77762. t3._contents += t4;
  77763. }
  77764. restArg = $arguments.rest;
  77765. if (restArg != null) {
  77766. rest = restArg.accept$1(_this);
  77767. if (!first)
  77768. buffer._contents += ", ";
  77769. t1 = buffer;
  77770. t2 = _this._evaluate$_serialize$2(rest, restArg);
  77771. t1._contents += t2;
  77772. }
  77773. } catch (exception) {
  77774. t1 = A.unwrapException(exception);
  77775. if (type$.SassRuntimeException._is(t1)) {
  77776. error = t1;
  77777. if (!B.JSString_methods.endsWith$1(error._span_exception$_message, "isn't a valid CSS value."))
  77778. throw exception;
  77779. throw A.wrapException(A.MultiSpanSassRuntimeException$(error._span_exception$_message, J.get$span$z(error), "value", A.LinkedHashMap_LinkedHashMap$_literal([nodeWithSpan.get$span(nodeWithSpan), "unknown function treated as plain CSS"], type$.FileSpan, type$.String), J.get$trace$z(error), null));
  77780. } else
  77781. throw exception;
  77782. }
  77783. t1 = buffer;
  77784. t2 = A.Primitives_stringFromCharCode(41);
  77785. t1._contents += t2;
  77786. t2 = buffer._contents;
  77787. return new A.SassString(t2.charCodeAt(0) == 0 ? t2 : t2, false);
  77788. } else
  77789. throw A.wrapException(A.ArgumentError$("Unknown callable type " + J.get$runtimeType$(callable).toString$0(0) + ".", null));
  77790. },
  77791. _runBuiltInCallable$3($arguments, callable, nodeWithSpan) {
  77792. var result, error, stackTrace, namedSet, _0_0, declaredArguments, i, t1, argument, t2, t3, rest, argumentList, exception, _this = this, _box_0 = {},
  77793. evaluated = _this._evaluateArguments$1($arguments),
  77794. oldCallableNode = _this._callableNode;
  77795. _this._callableNode = nodeWithSpan;
  77796. namedSet = new A.MapKeySet(evaluated._values[0], type$.MapKeySet_String);
  77797. _box_0.callback = _box_0.overload = null;
  77798. _0_0 = callable.callbackFor$2(evaluated._values[2].length, namedSet);
  77799. _box_0.overload = _0_0._0;
  77800. _box_0.callback = _0_0._1;
  77801. _this._addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__runBuiltInCallable_closure(_box_0, evaluated, namedSet));
  77802. declaredArguments = _box_0.overload.$arguments;
  77803. for (i = evaluated._values[2].length, t1 = declaredArguments.length; i < t1; ++i) {
  77804. argument = declaredArguments[i];
  77805. t2 = evaluated._values[2];
  77806. t3 = evaluated._values[0].remove$1(0, argument.name);
  77807. if (t3 == null) {
  77808. t3 = argument.defaultValue;
  77809. t3 = _this._withoutSlash$2(t3.accept$1(_this), t3);
  77810. }
  77811. t2.push(t3);
  77812. }
  77813. if (_box_0.overload.restArgument != null) {
  77814. if (evaluated._values[2].length > t1) {
  77815. rest = B.JSArray_methods.sublist$1(evaluated._values[2], t1);
  77816. B.JSArray_methods.removeRange$2(evaluated._values[2], t1, evaluated._values[2].length);
  77817. } else
  77818. rest = B.List_empty8;
  77819. t1 = evaluated._values[0];
  77820. argumentList = A.SassArgumentList$(rest, t1, evaluated._values[4] === B.ListSeparator_undecided_null_undecided ? B.ListSeparator_ECn : evaluated._values[4]);
  77821. evaluated._values[2].push(argumentList);
  77822. } else
  77823. argumentList = null;
  77824. result = null;
  77825. try {
  77826. result = _this._addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__runBuiltInCallable_closure0(_box_0, evaluated));
  77827. } catch (exception) {
  77828. t1 = A.unwrapException(exception);
  77829. if (t1 instanceof A.SassException)
  77830. throw exception;
  77831. else {
  77832. error = t1;
  77833. stackTrace = A.getTraceFromException(exception);
  77834. A.throwWithTrace(_this._evaluate$_exception$2(_this._getErrorMessage$1(error), nodeWithSpan.get$span(nodeWithSpan)), error, stackTrace);
  77835. }
  77836. }
  77837. _this._callableNode = oldCallableNode;
  77838. if (argumentList == null)
  77839. return result;
  77840. if (evaluated._values[0].__js_helper$_length === 0)
  77841. return result;
  77842. if (argumentList._wereKeywordsAccessed)
  77843. return result;
  77844. throw A.wrapException(A.MultiSpanSassRuntimeException$("No " + A.pluralize("argument", evaluated._values[0].get$keys(0).get$length(0), null) + " named " + A.toSentence(evaluated._values[0].get$keys(0).map$1$1(0, new A._EvaluateVisitor__runBuiltInCallable_closure1(), type$.Object), "or") + ".", nodeWithSpan.get$span(nodeWithSpan), "invocation", A.LinkedHashMap_LinkedHashMap$_literal([_box_0.overload.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), _this._evaluate$_stackTrace$1(nodeWithSpan.get$span(nodeWithSpan)), null));
  77845. },
  77846. _evaluateArguments$1($arguments) {
  77847. var t1, t2, _i, expression, nodeForSpan, named, namedNodes, t3, t4, $name, value, restArgs, rest, restNodeForSpan, t5, separator, keywordRestArgs, keywordRest, keywordRestNodeForSpan, _this = this,
  77848. positional = A._setArrayType([], type$.JSArray_Value),
  77849. positionalNodes = A._setArrayType([], type$.JSArray_AstNode);
  77850. for (t1 = $arguments.positional, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  77851. expression = t1[_i];
  77852. nodeForSpan = _this._expressionNode$1(expression);
  77853. positional.push(_this._withoutSlash$2(expression.accept$1(_this), nodeForSpan));
  77854. positionalNodes.push(nodeForSpan);
  77855. }
  77856. t1 = type$.String;
  77857. named = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Value);
  77858. t2 = type$.AstNode;
  77859. namedNodes = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
  77860. for (t3 = A.MapExtensions_get_pairs($arguments.named, t1, type$.Expression), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  77861. t4 = t3.get$current(t3);
  77862. $name = t4._0;
  77863. value = t4._1;
  77864. nodeForSpan = _this._expressionNode$1(value);
  77865. named.$indexSet(0, $name, _this._withoutSlash$2(value.accept$1(_this), nodeForSpan));
  77866. namedNodes.$indexSet(0, $name, nodeForSpan);
  77867. }
  77868. restArgs = $arguments.rest;
  77869. if (restArgs == null)
  77870. return new A._Record_5_named_namedNodes_positional_positionalNodes_separator([named, namedNodes, positional, positionalNodes, B.ListSeparator_undecided_null_undecided]);
  77871. rest = restArgs.accept$1(_this);
  77872. restNodeForSpan = _this._expressionNode$1(restArgs);
  77873. if (rest instanceof A.SassMap) {
  77874. _this._addRestMap$4(named, rest, restArgs, new A._EvaluateVisitor__evaluateArguments_closure());
  77875. t3 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
  77876. for (t4 = rest._map$_contents, t4 = J.get$iterator$ax(t4.get$keys(t4)), t5 = type$.SassString; t4.moveNext$0();)
  77877. t3.$indexSet(0, t5._as(t4.get$current(t4))._string$_text, restNodeForSpan);
  77878. namedNodes.addAll$1(0, t3);
  77879. separator = B.ListSeparator_undecided_null_undecided;
  77880. } else if (rest instanceof A.SassList) {
  77881. t3 = rest._list$_contents;
  77882. B.JSArray_methods.addAll$1(positional, new A.MappedListIterable(t3, new A._EvaluateVisitor__evaluateArguments_closure0(_this, restNodeForSpan), A._arrayInstanceType(t3)._eval$1("MappedListIterable<1,Value>")));
  77883. B.JSArray_methods.addAll$1(positionalNodes, A.List_List$filled(t3.length, restNodeForSpan, false, t2));
  77884. separator = rest._separator;
  77885. if (rest instanceof A.SassArgumentList) {
  77886. rest._wereKeywordsAccessed = true;
  77887. rest._keywords.forEach$1(0, new A._EvaluateVisitor__evaluateArguments_closure1(_this, named, restNodeForSpan, namedNodes));
  77888. }
  77889. } else {
  77890. positional.push(_this._withoutSlash$2(rest, restNodeForSpan));
  77891. positionalNodes.push(restNodeForSpan);
  77892. separator = B.ListSeparator_undecided_null_undecided;
  77893. }
  77894. keywordRestArgs = $arguments.keywordRest;
  77895. if (keywordRestArgs == null)
  77896. return new A._Record_5_named_namedNodes_positional_positionalNodes_separator([named, namedNodes, positional, positionalNodes, separator]);
  77897. keywordRest = keywordRestArgs.accept$1(_this);
  77898. keywordRestNodeForSpan = _this._expressionNode$1(keywordRestArgs);
  77899. if (keywordRest instanceof A.SassMap) {
  77900. _this._addRestMap$4(named, keywordRest, keywordRestArgs, new A._EvaluateVisitor__evaluateArguments_closure2());
  77901. t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
  77902. for (t2 = keywordRest._map$_contents, t2 = J.get$iterator$ax(t2.get$keys(t2)), t3 = type$.SassString; t2.moveNext$0();)
  77903. t1.$indexSet(0, t3._as(t2.get$current(t2))._string$_text, keywordRestNodeForSpan);
  77904. namedNodes.addAll$1(0, t1);
  77905. return new A._Record_5_named_namedNodes_positional_positionalNodes_separator([named, namedNodes, positional, positionalNodes, separator]);
  77906. } else
  77907. throw A.wrapException(_this._evaluate$_exception$2(string$.Variabs + keywordRest.toString$0(0) + ").", keywordRestArgs.get$span(keywordRestArgs)));
  77908. },
  77909. _evaluateMacroArguments$1(invocation) {
  77910. var t2, positional, named, rest, restNodeForSpan, keywordRestArgs_, keywordRest, keywordRestNodeForSpan, _this = this,
  77911. t1 = invocation.$arguments,
  77912. restArgs_ = t1.rest;
  77913. if (restArgs_ == null)
  77914. return new A._Record_2(t1.positional, t1.named);
  77915. t2 = t1.positional;
  77916. positional = A._setArrayType(t2.slice(0), A._arrayInstanceType(t2));
  77917. named = A.LinkedHashMap_LinkedHashMap$of(t1.named, type$.String, type$.Expression);
  77918. rest = restArgs_.accept$1(_this);
  77919. restNodeForSpan = _this._expressionNode$1(restArgs_);
  77920. if (rest instanceof A.SassMap)
  77921. _this._addRestMap$4(named, rest, invocation, new A._EvaluateVisitor__evaluateMacroArguments_closure(restArgs_));
  77922. else if (rest instanceof A.SassList) {
  77923. t2 = rest._list$_contents;
  77924. B.JSArray_methods.addAll$1(positional, new A.MappedListIterable(t2, new A._EvaluateVisitor__evaluateMacroArguments_closure0(_this, restNodeForSpan, restArgs_), A._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Expression>")));
  77925. if (rest instanceof A.SassArgumentList) {
  77926. rest._wereKeywordsAccessed = true;
  77927. rest._keywords.forEach$1(0, new A._EvaluateVisitor__evaluateMacroArguments_closure1(_this, named, restNodeForSpan, restArgs_));
  77928. }
  77929. } else
  77930. positional.push(new A.ValueExpression(_this._withoutSlash$2(rest, restNodeForSpan), restArgs_.get$span(restArgs_)));
  77931. keywordRestArgs_ = t1.keywordRest;
  77932. if (keywordRestArgs_ == null)
  77933. return new A._Record_2(positional, named);
  77934. keywordRest = keywordRestArgs_.accept$1(_this);
  77935. keywordRestNodeForSpan = _this._expressionNode$1(keywordRestArgs_);
  77936. if (keywordRest instanceof A.SassMap) {
  77937. _this._addRestMap$4(named, keywordRest, invocation, new A._EvaluateVisitor__evaluateMacroArguments_closure2(_this, keywordRestNodeForSpan, keywordRestArgs_));
  77938. return new A._Record_2(positional, named);
  77939. } else
  77940. throw A.wrapException(_this._evaluate$_exception$2(string$.Variabs + keywordRest.toString$0(0) + ").", keywordRestArgs_.get$span(keywordRestArgs_)));
  77941. },
  77942. _addRestMap$1$4(values, map, nodeWithSpan, convert) {
  77943. map._map$_contents.forEach$1(0, new A._EvaluateVisitor__addRestMap_closure(this, values, convert, this._expressionNode$1(nodeWithSpan), map, nodeWithSpan));
  77944. },
  77945. _addRestMap$4(values, map, nodeWithSpan, convert) {
  77946. return this._addRestMap$1$4(values, map, nodeWithSpan, convert, type$.dynamic);
  77947. },
  77948. _verifyArguments$4(positional, named, $arguments, nodeWithSpan) {
  77949. return this._addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__verifyArguments_closure($arguments, positional, named));
  77950. },
  77951. visitSelectorExpression$1(_, node) {
  77952. var t1 = this._styleRuleIgnoringAtRoot;
  77953. t1 = t1 == null ? null : t1.originalSelector.get$asSassList();
  77954. return t1 == null ? B.C__SassNull : t1;
  77955. },
  77956. visitStringExpression$1(_, node) {
  77957. var t1, t2, t3, _i, value, t4, _0_0, text, _this = this,
  77958. oldInSupportsDeclaration = _this._inSupportsDeclaration;
  77959. _this._inSupportsDeclaration = false;
  77960. t1 = A._setArrayType([], type$.JSArray_String);
  77961. for (t2 = node.text.contents, t3 = t2.length, _i = 0; _i < t3; ++_i) {
  77962. value = t2[_i];
  77963. $label0$0: {
  77964. if (typeof value == "string") {
  77965. t4 = value;
  77966. break $label0$0;
  77967. }
  77968. if (value instanceof A.Expression) {
  77969. _0_0 = value.accept$1(_this);
  77970. $label1$1: {
  77971. if (_0_0 instanceof A.SassString) {
  77972. text = _0_0._string$_text;
  77973. t4 = text;
  77974. break $label1$1;
  77975. }
  77976. t4 = _this._evaluate$_serialize$3$quote(_0_0, value, false);
  77977. break $label1$1;
  77978. }
  77979. break $label0$0;
  77980. }
  77981. t4 = A.throwExpression(A.UnsupportedError$("Unknown interpolation value " + A.S(value)));
  77982. }
  77983. t1.push(t4);
  77984. }
  77985. t1 = B.JSArray_methods.join$0(t1);
  77986. _this._inSupportsDeclaration = oldInSupportsDeclaration;
  77987. return new A.SassString(t1, node.hasQuotes);
  77988. },
  77989. visitSupportsExpression$1(_, expression) {
  77990. return new A.SassString(this._visitSupportsCondition$1(expression.condition), false);
  77991. },
  77992. visitCssAtRule$1(node) {
  77993. var wasInKeyframes, wasInUnknownAtRule, t1, _this = this;
  77994. if (_this._declarationName != null)
  77995. throw A.wrapException(_this._evaluate$_exception$2(string$.At_rul, node.span));
  77996. if (node.isChildless) {
  77997. _this._assertInModule$2(_this.__parent, "__parent").addChild$1(A.ModifiableCssAtRule$(node.name, node.span, true, node.value));
  77998. return;
  77999. }
  78000. wasInKeyframes = _this._inKeyframes;
  78001. wasInUnknownAtRule = _this._inUnknownAtRule;
  78002. t1 = node.name;
  78003. if (A.unvendor(t1.value) === "keyframes")
  78004. _this._inKeyframes = true;
  78005. else
  78006. _this._inUnknownAtRule = true;
  78007. _this._withParent$2$4$scopeWhen$through(A.ModifiableCssAtRule$(t1, node.span, false, node.value), new A._EvaluateVisitor_visitCssAtRule_closure(_this, node), false, new A._EvaluateVisitor_visitCssAtRule_closure0(), type$.ModifiableCssAtRule, type$.Null);
  78008. _this._inUnknownAtRule = wasInUnknownAtRule;
  78009. _this._inKeyframes = wasInKeyframes;
  78010. },
  78011. visitCssComment$1(node) {
  78012. var _this = this,
  78013. _s8_ = "__parent",
  78014. _s13_ = "_endOfImports";
  78015. if (_this._assertInModule$2(_this.__parent, _s8_) === _this._assertInModule$2(_this.__root, "_root") && _this._assertInModule$2(_this.__endOfImports, _s13_) === J.get$length$asx(_this._assertInModule$2(_this.__root, "_root").children._collection$_source))
  78016. _this.__endOfImports = _this._assertInModule$2(_this.__endOfImports, _s13_) + 1;
  78017. _this._assertInModule$2(_this.__parent, _s8_).addChild$1(new A.ModifiableCssComment(node.text, node.span));
  78018. },
  78019. visitCssDeclaration$1(node) {
  78020. this._assertInModule$2(this.__parent, "__parent").addChild$1(A.ModifiableCssDeclaration$(node.name, node.value, node.span, null, node.parsedAsCustomProperty, null, node.valueSpanForMap));
  78021. },
  78022. visitCssImport$1(node) {
  78023. var t1, _this = this,
  78024. _s8_ = "__parent",
  78025. _s5_ = "_root",
  78026. _s13_ = "_endOfImports",
  78027. modifiableNode = new A.ModifiableCssImport(node.url, node.modifiers, node.span);
  78028. if (_this._assertInModule$2(_this.__parent, _s8_) !== _this._assertInModule$2(_this.__root, _s5_))
  78029. _this._assertInModule$2(_this.__parent, _s8_).addChild$1(modifiableNode);
  78030. else if (_this._assertInModule$2(_this.__endOfImports, _s13_) === J.get$length$asx(_this._assertInModule$2(_this.__root, _s5_).children._collection$_source)) {
  78031. _this._assertInModule$2(_this.__root, _s5_).addChild$1(modifiableNode);
  78032. _this.__endOfImports = _this._assertInModule$2(_this.__endOfImports, _s13_) + 1;
  78033. } else {
  78034. t1 = _this._outOfOrderImports;
  78035. (t1 == null ? _this._outOfOrderImports = A._setArrayType([], type$.JSArray_ModifiableCssImport) : t1).push(modifiableNode);
  78036. }
  78037. },
  78038. visitCssKeyframeBlock$1(node) {
  78039. this._withParent$2$4$scopeWhen$through(A.ModifiableCssKeyframeBlock$(node.selector, node.span), new A._EvaluateVisitor_visitCssKeyframeBlock_closure(this, node), false, new A._EvaluateVisitor_visitCssKeyframeBlock_closure0(), type$.ModifiableCssKeyframeBlock, type$.Null);
  78040. },
  78041. visitCssMediaRule$1(node) {
  78042. var mergedQueries, t1, mergedSources, t2, t3, _this = this;
  78043. if (_this._declarationName != null)
  78044. throw A.wrapException(_this._evaluate$_exception$2(string$.Media_, node.span));
  78045. mergedQueries = A.NullableExtension_andThen(_this._mediaQueries, new A._EvaluateVisitor_visitCssMediaRule_closure(_this, node));
  78046. t1 = mergedQueries == null;
  78047. if (!t1 && J.get$isEmpty$asx(mergedQueries))
  78048. return;
  78049. if (t1)
  78050. mergedSources = B.Set_empty1;
  78051. else {
  78052. t2 = _this._mediaQuerySources;
  78053. t2.toString;
  78054. t2 = A.LinkedHashSet_LinkedHashSet$of(t2, type$.CssMediaQuery);
  78055. t3 = _this._mediaQueries;
  78056. t3.toString;
  78057. t2.addAll$1(0, t3);
  78058. t2.addAll$1(0, node.queries);
  78059. mergedSources = t2;
  78060. }
  78061. t1 = t1 ? node.queries : mergedQueries;
  78062. _this._withParent$2$4$scopeWhen$through(A.ModifiableCssMediaRule$(t1, node.span), new A._EvaluateVisitor_visitCssMediaRule_closure0(_this, mergedQueries, node, mergedSources), false, new A._EvaluateVisitor_visitCssMediaRule_closure1(mergedSources), type$.ModifiableCssMediaRule, type$.Null);
  78063. },
  78064. visitCssStyleRule$1(node) {
  78065. var t1, styleRule, t2, nest, t3, originalSelector, rule, oldAtRootExcludingStyleRule, _0_1, lastChild, _this = this, _null = null,
  78066. _s8_ = "__parent";
  78067. if (_this._declarationName != null)
  78068. throw A.wrapException(_this._evaluate$_exception$2(string$.Style_n, node.span));
  78069. else if (_this._inKeyframes && _this._assertInModule$2(_this.__parent, _s8_) instanceof A.ModifiableCssKeyframeBlock)
  78070. throw A.wrapException(_this._evaluate$_exception$2(string$.Style_k, node.span));
  78071. t1 = _this._atRootExcludingStyleRule;
  78072. styleRule = t1 ? _null : _this._styleRuleIgnoringAtRoot;
  78073. t2 = t1 ? _null : _this._styleRuleIgnoringAtRoot;
  78074. t2 = t2 == null ? _null : t2.fromPlainCss;
  78075. nest = t2 !== true;
  78076. t2 = node._style_rule$_selector._box$_inner;
  78077. if (nest) {
  78078. t2 = t2.value;
  78079. t3 = styleRule == null ? _null : styleRule.originalSelector;
  78080. originalSelector = t2.nestWithin$3$implicitParent$preserveParentSelectors(t3, !t1, node.fromPlainCss);
  78081. } else
  78082. originalSelector = t2.value;
  78083. rule = A.ModifiableCssStyleRule$(_this._assertInModule$2(_this.__extensionStore, "_extensionStore").addSelector$2(originalSelector, _this._mediaQueries), node.span, node.fromPlainCss, originalSelector);
  78084. oldAtRootExcludingStyleRule = _this._atRootExcludingStyleRule;
  78085. _this._atRootExcludingStyleRule = false;
  78086. t1 = nest ? new A._EvaluateVisitor_visitCssStyleRule_closure() : _null;
  78087. _this._withParent$2$4$scopeWhen$through(rule, new A._EvaluateVisitor_visitCssStyleRule_closure0(_this, rule, node), false, t1, type$.ModifiableCssStyleRule, type$.Null);
  78088. _this._atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  78089. t1 = _this._assertInModule$2(_this.__parent, _s8_).children._collection$_source;
  78090. t2 = J.getInterceptor$asx(t1);
  78091. _0_1 = t2.get$length(t1);
  78092. if (_0_1 >= 1) {
  78093. lastChild = t2.elementAt$1(t1, _0_1 - 1);
  78094. t1 = styleRule == null;
  78095. } else {
  78096. lastChild = _null;
  78097. t1 = false;
  78098. }
  78099. if (t1)
  78100. lastChild.isGroupEnd = true;
  78101. },
  78102. visitCssStylesheet$1(node) {
  78103. var t1;
  78104. for (t1 = J.get$iterator$ax(node.get$children(node)); t1.moveNext$0();)
  78105. t1.get$current(t1).accept$1(this);
  78106. },
  78107. visitCssSupportsRule$1(node) {
  78108. var _this = this;
  78109. if (_this._declarationName != null)
  78110. throw A.wrapException(_this._evaluate$_exception$2(string$.Suppor, node.span));
  78111. _this._withParent$2$4$scopeWhen$through(A.ModifiableCssSupportsRule$(node.condition, node.span), new A._EvaluateVisitor_visitCssSupportsRule_closure(_this, node), false, new A._EvaluateVisitor_visitCssSupportsRule_closure0(), type$.ModifiableCssSupportsRule, type$.Null);
  78112. },
  78113. _handleReturn$1$2(list, callback) {
  78114. var t1, _i, _0_0;
  78115. for (t1 = list.length, _i = 0; _i < list.length; list.length === t1 || (0, A.throwConcurrentModificationError)(list), ++_i) {
  78116. _0_0 = callback.call$1(list[_i]);
  78117. if (_0_0 != null)
  78118. return _0_0;
  78119. }
  78120. return null;
  78121. },
  78122. _handleReturn$2(list, callback) {
  78123. return this._handleReturn$1$2(list, callback, type$.dynamic);
  78124. },
  78125. _withEnvironment$1$2(environment, callback) {
  78126. var result,
  78127. oldEnvironment = this._environment;
  78128. this._environment = environment;
  78129. result = callback.call$0();
  78130. this._environment = oldEnvironment;
  78131. return result;
  78132. },
  78133. _withEnvironment$2(environment, callback) {
  78134. return this._withEnvironment$1$2(environment, callback, type$.dynamic);
  78135. },
  78136. _interpolationToValue$3$trim$warnForColor(interpolation, trim, warnForColor) {
  78137. var result = this._performInterpolation$2$warnForColor(interpolation, warnForColor),
  78138. t1 = trim ? A.trimAscii(result, true) : result;
  78139. return new A.CssValue(t1, interpolation.span, type$.CssValue_String);
  78140. },
  78141. _interpolationToValue$1(interpolation) {
  78142. return this._interpolationToValue$3$trim$warnForColor(interpolation, false, false);
  78143. },
  78144. _interpolationToValue$2$warnForColor(interpolation, warnForColor) {
  78145. return this._interpolationToValue$3$trim$warnForColor(interpolation, false, warnForColor);
  78146. },
  78147. _performInterpolation$2$warnForColor(interpolation, warnForColor) {
  78148. return this._performInterpolationHelper$3$sourceMap$warnForColor(interpolation, false, warnForColor)._0;
  78149. },
  78150. _performInterpolation$1(interpolation) {
  78151. return this._performInterpolation$2$warnForColor(interpolation, false);
  78152. },
  78153. _performInterpolationWithMap$2$warnForColor(interpolation, warnForColor) {
  78154. var _0_0 = this._performInterpolationHelper$3$sourceMap$warnForColor(interpolation, true, true),
  78155. map = _0_0._1;
  78156. map.toString;
  78157. return new A._Record_2(_0_0._0, map);
  78158. },
  78159. _performInterpolationHelper$3$sourceMap$warnForColor(interpolation, sourceMap, warnForColor) {
  78160. var t1, t2, t3, t4, t5, t6, first, _i, t7, value, result, result0, t8, _this = this, _null = null,
  78161. targetLocations = sourceMap ? A._setArrayType([], type$.JSArray_SourceLocation) : _null,
  78162. oldInSupportsDeclaration = _this._inSupportsDeclaration;
  78163. _this._inSupportsDeclaration = false;
  78164. for (t1 = interpolation.contents, t2 = t1.length, t3 = type$.Expression, t4 = targetLocations == null, t5 = interpolation.span, t6 = type$.Object, first = true, _i = 0, t7 = ""; _i < t2; ++_i, first = false) {
  78165. value = t1[_i];
  78166. if (!first)
  78167. if (!t4)
  78168. targetLocations.push(A.SourceLocation$(t7.length, _null, _null, _null));
  78169. if (typeof value == "string") {
  78170. t7 += value;
  78171. continue;
  78172. }
  78173. t3._as(value);
  78174. result = value.accept$1(_this);
  78175. if (warnForColor && $.$get$namesByColor().containsKey$1(result)) {
  78176. result0 = A.List_List$from([""], false, t6);
  78177. result0.fixed$length = Array;
  78178. result0.immutable$list = Array;
  78179. t8 = $.$get$namesByColor();
  78180. _this._warn$2(string$.You_pr + A.S(t8.$index(0, result)) + string$.x20in_in + result.toString$0(0) + string$.x2c_whicw + A.S(t8.$index(0, result)) + string$.x22x29__If + new A.BinaryOperationExpression(B.BinaryOperator_u15, new A.StringExpression(new A.Interpolation(result0, B.List_null, t5), true), value, false).toString$0(0) + "'.", value.get$span(value));
  78181. }
  78182. t7 += _this._evaluate$_serialize$3$quote(result, value, false);
  78183. }
  78184. _this._inSupportsDeclaration = oldInSupportsDeclaration;
  78185. return new A._Record_2(t7.charCodeAt(0) == 0 ? t7 : t7, A.NullableExtension_andThen(targetLocations, new A._EvaluateVisitor__performInterpolationHelper_closure(interpolation)));
  78186. },
  78187. _evaluate$_serialize$3$quote(value, nodeWithSpan, quote) {
  78188. return this._addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__serialize_closure(value, quote));
  78189. },
  78190. _evaluate$_serialize$2(value, nodeWithSpan) {
  78191. return this._evaluate$_serialize$3$quote(value, nodeWithSpan, true);
  78192. },
  78193. _expressionNode$1(expression) {
  78194. var t1;
  78195. if (expression instanceof A.VariableExpression) {
  78196. t1 = this._addExceptionSpan$2(expression, new A._EvaluateVisitor__expressionNode_closure(this, expression));
  78197. return t1 == null ? expression : t1;
  78198. } else
  78199. return expression;
  78200. },
  78201. _withParent$2$4$scopeWhen$through(node, callback, scopeWhen, through, $S, $T) {
  78202. var t1, result, _this = this;
  78203. _this._addChild$2$through(node, through);
  78204. t1 = _this._assertInModule$2(_this.__parent, "__parent");
  78205. _this.__parent = node;
  78206. result = _this._environment.scope$1$2$when(callback, scopeWhen, $T);
  78207. _this.__parent = t1;
  78208. return result;
  78209. },
  78210. _withParent$2$3$scopeWhen(node, callback, scopeWhen, $S, $T) {
  78211. return this._withParent$2$4$scopeWhen$through(node, callback, scopeWhen, null, $S, $T);
  78212. },
  78213. _withParent$2$2(node, callback, $S, $T) {
  78214. return this._withParent$2$4$scopeWhen$through(node, callback, true, null, $S, $T);
  78215. },
  78216. _addChild$2$through(node, through) {
  78217. var _0_0, grandparent, t1,
  78218. $parent = this._assertInModule$2(this.__parent, "__parent");
  78219. if (through != null) {
  78220. for (; through.call$1($parent); $parent = _0_0) {
  78221. _0_0 = $parent._parent;
  78222. if (_0_0 == null)
  78223. throw A.wrapException(A.ArgumentError$(string$.throug + node.toString$0(0) + ".", null));
  78224. }
  78225. if ($parent.get$hasFollowingSibling()) {
  78226. grandparent = $parent._parent;
  78227. t1 = grandparent.children;
  78228. if ($parent.equalsIgnoringChildren$1(t1.get$last(t1)))
  78229. $parent = type$.ModifiableCssParentNode._as(t1.get$last(t1));
  78230. else {
  78231. $parent = $parent.copyWithoutChildren$0();
  78232. grandparent.addChild$1($parent);
  78233. }
  78234. }
  78235. }
  78236. $parent.addChild$1(node);
  78237. },
  78238. _addChild$1(node) {
  78239. return this._addChild$2$through(node, null);
  78240. },
  78241. _withStyleRule$1$2(rule, callback) {
  78242. var result,
  78243. oldRule = this._styleRuleIgnoringAtRoot;
  78244. this._styleRuleIgnoringAtRoot = rule;
  78245. result = callback.call$0();
  78246. this._styleRuleIgnoringAtRoot = oldRule;
  78247. return result;
  78248. },
  78249. _withStyleRule$2(rule, callback) {
  78250. return this._withStyleRule$1$2(rule, callback, type$.dynamic);
  78251. },
  78252. _withMediaQueries$1$3(queries, sources, callback) {
  78253. var result, _this = this,
  78254. oldMediaQueries = _this._mediaQueries,
  78255. oldSources = _this._mediaQuerySources;
  78256. _this._mediaQueries = queries;
  78257. _this._mediaQuerySources = sources;
  78258. result = callback.call$0();
  78259. _this._mediaQueries = oldMediaQueries;
  78260. _this._mediaQuerySources = oldSources;
  78261. return result;
  78262. },
  78263. _withMediaQueries$3(queries, sources, callback) {
  78264. return this._withMediaQueries$1$3(queries, sources, callback, type$.dynamic);
  78265. },
  78266. _withStackFrame$1$3(member, nodeWithSpan, callback) {
  78267. var oldMember, result, _this = this,
  78268. t1 = _this._stack;
  78269. t1.push(new A._Record_2(_this._member, nodeWithSpan));
  78270. oldMember = _this._member;
  78271. _this._member = member;
  78272. result = callback.call$0();
  78273. _this._member = oldMember;
  78274. t1.pop();
  78275. return result;
  78276. },
  78277. _withStackFrame$3(member, nodeWithSpan, callback) {
  78278. return this._withStackFrame$1$3(member, nodeWithSpan, callback, type$.dynamic);
  78279. },
  78280. _withoutSlash$2(value, nodeForSpan) {
  78281. var t1;
  78282. if (value instanceof A.SassNumber)
  78283. t1 = value.asSlash != null;
  78284. else
  78285. t1 = false;
  78286. if (t1)
  78287. this._warn$3(string$.Using__i + A.S(new A._EvaluateVisitor__withoutSlash_recommendation().call$1(value)) + string$.x0a_Morex20, nodeForSpan.get$span(nodeForSpan), B.Deprecation_mRl);
  78288. return value.withoutSlash$0();
  78289. },
  78290. _stackFrame$2(member, span) {
  78291. return A.frameForSpan(span, member, A.NullableExtension_andThen(span.get$sourceUrl(span), new A._EvaluateVisitor__stackFrame_closure(this)));
  78292. },
  78293. _evaluate$_stackTrace$1(span) {
  78294. var t2, t3, _i, t4, nodeWithSpan, _this = this,
  78295. t1 = A._setArrayType([], type$.JSArray_Frame);
  78296. for (t2 = _this._stack, t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, A.throwConcurrentModificationError)(t2), ++_i) {
  78297. t4 = t2[_i];
  78298. nodeWithSpan = t4._1;
  78299. t1.push(_this._stackFrame$2(t4._0, nodeWithSpan.get$span(nodeWithSpan)));
  78300. }
  78301. if (span != null)
  78302. t1.push(_this._stackFrame$2(_this._member, span));
  78303. return A.Trace$(new A.ReversedListIterable(t1, type$.ReversedListIterable_Frame), null);
  78304. },
  78305. _evaluate$_stackTrace$0() {
  78306. return this._evaluate$_stackTrace$1(null);
  78307. },
  78308. _warn$3(message, span, deprecation) {
  78309. var t1, trace, _this = this;
  78310. if (_this._quietDeps)
  78311. if (!_this._inDependency) {
  78312. t1 = _this._currentCallable;
  78313. t1 = t1 == null ? null : t1.inDependency;
  78314. t1 = t1 === true;
  78315. } else
  78316. t1 = true;
  78317. else
  78318. t1 = false;
  78319. if (t1)
  78320. return;
  78321. if (!_this._warningsEmitted.add$1(0, new A._Record_2(message, span)))
  78322. return;
  78323. trace = _this._evaluate$_stackTrace$1(span);
  78324. t1 = _this._logger;
  78325. if (deprecation == null)
  78326. t1.warn$3$span$trace(0, message, span, trace);
  78327. else
  78328. A.WarnForDeprecation_warnForDeprecation(t1, deprecation, message, span, trace);
  78329. },
  78330. _warn$2(message, span) {
  78331. return this._warn$3(message, span, null);
  78332. },
  78333. _evaluate$_exception$2(message, span) {
  78334. var t1, t2;
  78335. if (span == null) {
  78336. t1 = B.JSArray_methods.get$last(this._stack)._1;
  78337. t1 = t1.get$span(t1);
  78338. } else
  78339. t1 = span;
  78340. t2 = this._evaluate$_stackTrace$1(span);
  78341. return new A.SassRuntimeException(t2, B.Set_empty, message, t1);
  78342. },
  78343. _evaluate$_exception$1(message) {
  78344. return this._evaluate$_exception$2(message, null);
  78345. },
  78346. _multiSpanException$3(message, primaryLabel, secondaryLabels) {
  78347. var t1 = B.JSArray_methods.get$last(this._stack)._1;
  78348. return A.MultiSpanSassRuntimeException$(message, t1.get$span(t1), primaryLabel, secondaryLabels, this._evaluate$_stackTrace$0(), null);
  78349. },
  78350. _addExceptionSpan$1$3$addStackFrame(nodeWithSpan, callback, addStackFrame) {
  78351. var error, stackTrace, t1, exception;
  78352. try {
  78353. t1 = callback.call$0();
  78354. return t1;
  78355. } catch (exception) {
  78356. t1 = A.unwrapException(exception);
  78357. if (t1 instanceof A.SassScriptException) {
  78358. error = t1;
  78359. stackTrace = A.getTraceFromException(exception);
  78360. t1 = error.withSpan$1(nodeWithSpan.get$span(nodeWithSpan));
  78361. A.throwWithTrace(t1.withTrace$1(this._evaluate$_stackTrace$1(addStackFrame ? nodeWithSpan.get$span(nodeWithSpan) : null)), error, stackTrace);
  78362. } else
  78363. throw exception;
  78364. }
  78365. },
  78366. _addExceptionSpan$2(nodeWithSpan, callback) {
  78367. return this._addExceptionSpan$1$3$addStackFrame(nodeWithSpan, callback, true, type$.dynamic);
  78368. },
  78369. _addExceptionSpan$3$addStackFrame(nodeWithSpan, callback, addStackFrame) {
  78370. return this._addExceptionSpan$1$3$addStackFrame(nodeWithSpan, callback, addStackFrame, type$.dynamic);
  78371. },
  78372. _addExceptionTrace$1$1(callback) {
  78373. var error, stackTrace, t1, exception, t2;
  78374. try {
  78375. t1 = callback.call$0();
  78376. return t1;
  78377. } catch (exception) {
  78378. t1 = A.unwrapException(exception);
  78379. if (type$.SassRuntimeException._is(t1))
  78380. throw exception;
  78381. else if (t1 instanceof A.SassException) {
  78382. error = t1;
  78383. stackTrace = A.getTraceFromException(exception);
  78384. t1 = error;
  78385. t2 = J.getInterceptor$z(t1);
  78386. A.throwWithTrace(error.withTrace$1(this._evaluate$_stackTrace$1(A.SourceSpanException.prototype.get$span.call(t2, t1))), error, stackTrace);
  78387. } else
  78388. throw exception;
  78389. }
  78390. },
  78391. _addExceptionTrace$1(callback) {
  78392. return this._addExceptionTrace$1$1(callback, type$.dynamic);
  78393. },
  78394. _addErrorSpan$1$2(nodeWithSpan, callback) {
  78395. var error, stackTrace, t1, exception, t2, t3;
  78396. try {
  78397. t1 = callback.call$0();
  78398. return t1;
  78399. } catch (exception) {
  78400. t1 = A.unwrapException(exception);
  78401. if (type$.SassRuntimeException._is(t1)) {
  78402. error = t1;
  78403. stackTrace = A.getTraceFromException(exception);
  78404. if (!B.JSString_methods.startsWith$1(J.get$span$z(error).get$text(), "@error"))
  78405. throw exception;
  78406. t1 = error._span_exception$_message;
  78407. t2 = nodeWithSpan.get$span(nodeWithSpan);
  78408. t3 = this._evaluate$_stackTrace$0();
  78409. A.throwWithTrace(new A.SassRuntimeException(t3, B.Set_empty, t1, t2), error, stackTrace);
  78410. } else
  78411. throw exception;
  78412. }
  78413. },
  78414. _addErrorSpan$2(nodeWithSpan, callback) {
  78415. return this._addErrorSpan$1$2(nodeWithSpan, callback, type$.dynamic);
  78416. },
  78417. _getErrorMessage$1(error) {
  78418. var t1, exception;
  78419. if (type$.Error._is(error))
  78420. return error.toString$0(0);
  78421. try {
  78422. t1 = A._asString(J.get$message$x(error));
  78423. return t1;
  78424. } catch (exception) {
  78425. t1 = J.toString$0$(error);
  78426. return t1;
  78427. }
  78428. }
  78429. };
  78430. A._EvaluateVisitor_closure.prototype = {
  78431. call$1($arguments) {
  78432. var module, t2,
  78433. t1 = J.getInterceptor$asx($arguments),
  78434. variable = t1.$index($arguments, 0).assertString$1("name");
  78435. t1 = t1.$index($arguments, 1).get$realNull();
  78436. module = t1 == null ? null : t1.assertString$1("module");
  78437. t1 = this.$this._environment;
  78438. t2 = A.stringReplaceAllUnchecked(variable._string$_text, "_", "-");
  78439. return t1.globalVariableExists$2$namespace(t2, module == null ? null : module._string$_text) ? B.SassBoolean_true : B.SassBoolean_false;
  78440. },
  78441. $signature: 11
  78442. };
  78443. A._EvaluateVisitor_closure0.prototype = {
  78444. call$1($arguments) {
  78445. var variable = J.$index$asx($arguments, 0).assertString$1("name"),
  78446. t1 = this.$this._environment;
  78447. return t1.getVariable$1(A.stringReplaceAllUnchecked(variable._string$_text, "_", "-")) != null ? B.SassBoolean_true : B.SassBoolean_false;
  78448. },
  78449. $signature: 11
  78450. };
  78451. A._EvaluateVisitor_closure1.prototype = {
  78452. call$1($arguments) {
  78453. var module, t2, t3, t4,
  78454. t1 = J.getInterceptor$asx($arguments),
  78455. variable = t1.$index($arguments, 0).assertString$1("name");
  78456. t1 = t1.$index($arguments, 1).get$realNull();
  78457. module = t1 == null ? null : t1.assertString$1("module");
  78458. t1 = this.$this;
  78459. t2 = t1._environment;
  78460. t3 = variable._string$_text;
  78461. t4 = A.stringReplaceAllUnchecked(t3, "_", "-");
  78462. return t2.getFunction$2$namespace(t4, module == null ? null : module._string$_text) != null || t1._builtInFunctions.containsKey$1(t3) ? B.SassBoolean_true : B.SassBoolean_false;
  78463. },
  78464. $signature: 11
  78465. };
  78466. A._EvaluateVisitor_closure2.prototype = {
  78467. call$1($arguments) {
  78468. var module, t2,
  78469. t1 = J.getInterceptor$asx($arguments),
  78470. variable = t1.$index($arguments, 0).assertString$1("name");
  78471. t1 = t1.$index($arguments, 1).get$realNull();
  78472. module = t1 == null ? null : t1.assertString$1("module");
  78473. t1 = this.$this._environment;
  78474. t2 = A.stringReplaceAllUnchecked(variable._string$_text, "_", "-");
  78475. return t1.getMixin$2$namespace(t2, module == null ? null : module._string$_text) != null ? B.SassBoolean_true : B.SassBoolean_false;
  78476. },
  78477. $signature: 11
  78478. };
  78479. A._EvaluateVisitor_closure3.prototype = {
  78480. call$1($arguments) {
  78481. var t1 = this.$this._environment;
  78482. if (!t1._inMixin)
  78483. throw A.wrapException(A.SassScriptException$(string$.conten, null));
  78484. return t1._content != null ? B.SassBoolean_true : B.SassBoolean_false;
  78485. },
  78486. $signature: 11
  78487. };
  78488. A._EvaluateVisitor_closure4.prototype = {
  78489. call$1($arguments) {
  78490. var t2, t3, t4,
  78491. t1 = J.$index$asx($arguments, 0).assertString$1("module")._string$_text,
  78492. module = this.$this._environment._environment$_modules.$index(0, t1);
  78493. if (module == null)
  78494. throw A.wrapException('There is no module with namespace "' + t1 + '".');
  78495. t1 = type$.Value;
  78496. t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  78497. for (t3 = A.MapExtensions_get_pairs(module.get$variables(), type$.String, t1), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  78498. t4 = t3.get$current(t3);
  78499. t2.$indexSet(0, new A.SassString(t4._0, true), t4._1);
  78500. }
  78501. return new A.SassMap(A.ConstantMap_ConstantMap$from(t2, t1, t1));
  78502. },
  78503. $signature: 34
  78504. };
  78505. A._EvaluateVisitor_closure5.prototype = {
  78506. call$1($arguments) {
  78507. var t2, t3, t4,
  78508. t1 = J.$index$asx($arguments, 0).assertString$1("module")._string$_text,
  78509. module = this.$this._environment._environment$_modules.$index(0, t1);
  78510. if (module == null)
  78511. throw A.wrapException('There is no module with namespace "' + t1 + '".');
  78512. t1 = type$.Value;
  78513. t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  78514. for (t3 = A.MapExtensions_get_pairs(module.get$functions(module), type$.String, type$.Callable), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  78515. t4 = t3.get$current(t3);
  78516. t2.$indexSet(0, new A.SassString(t4._0, true), new A.SassFunction(t4._1));
  78517. }
  78518. return new A.SassMap(A.ConstantMap_ConstantMap$from(t2, t1, t1));
  78519. },
  78520. $signature: 34
  78521. };
  78522. A._EvaluateVisitor_closure6.prototype = {
  78523. call$1($arguments) {
  78524. var t2, t3, t4,
  78525. t1 = J.$index$asx($arguments, 0).assertString$1("module")._string$_text,
  78526. module = this.$this._environment._environment$_modules.$index(0, t1);
  78527. if (module == null)
  78528. throw A.wrapException('There is no module with namespace "' + t1 + '".');
  78529. t1 = type$.Value;
  78530. t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  78531. for (t3 = A.MapExtensions_get_pairs(module.get$mixins(), type$.String, type$.Callable), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  78532. t4 = t3.get$current(t3);
  78533. t2.$indexSet(0, new A.SassString(t4._0, true), new A.SassMixin(t4._1));
  78534. }
  78535. return new A.SassMap(A.ConstantMap_ConstantMap$from(t2, t1, t1));
  78536. },
  78537. $signature: 34
  78538. };
  78539. A._EvaluateVisitor_closure7.prototype = {
  78540. call$1($arguments) {
  78541. var module, t2, callable,
  78542. t1 = J.getInterceptor$asx($arguments),
  78543. $name = t1.$index($arguments, 0).assertString$1("name"),
  78544. css = t1.$index($arguments, 1).get$isTruthy();
  78545. t1 = t1.$index($arguments, 2).get$realNull();
  78546. module = t1 == null ? null : t1.assertString$1("module");
  78547. if (css) {
  78548. if (module != null)
  78549. throw A.wrapException(string$.x24css_a);
  78550. return new A.SassFunction(new A.PlainCssCallable($name._string$_text));
  78551. }
  78552. t1 = this.$this;
  78553. t2 = t1._callableNode;
  78554. t2.toString;
  78555. callable = t1._addExceptionSpan$2(t2, new A._EvaluateVisitor__closure2(t1, $name, module));
  78556. if (callable == null)
  78557. throw A.wrapException("Function not found: " + $name.toString$0(0));
  78558. return new A.SassFunction(callable);
  78559. },
  78560. $signature: 189
  78561. };
  78562. A._EvaluateVisitor__closure2.prototype = {
  78563. call$0() {
  78564. var local,
  78565. normalizedName = A.stringReplaceAllUnchecked(this.name._string$_text, "_", "-"),
  78566. t1 = this.module,
  78567. namespace = t1 == null ? null : t1._string$_text;
  78568. t1 = this.$this;
  78569. local = t1._environment.getFunction$2$namespace(normalizedName, namespace);
  78570. if (local != null || namespace != null)
  78571. return local;
  78572. return t1._builtInFunctions.$index(0, normalizedName);
  78573. },
  78574. $signature: 85
  78575. };
  78576. A._EvaluateVisitor_closure8.prototype = {
  78577. call$1($arguments) {
  78578. var module, t2, callable,
  78579. t1 = J.getInterceptor$asx($arguments),
  78580. $name = t1.$index($arguments, 0).assertString$1("name");
  78581. t1 = t1.$index($arguments, 1).get$realNull();
  78582. module = t1 == null ? null : t1.assertString$1("module");
  78583. t1 = this.$this;
  78584. t2 = t1._callableNode;
  78585. t2.toString;
  78586. callable = t1._addExceptionSpan$2(t2, new A._EvaluateVisitor__closure1(t1, $name, module));
  78587. if (callable == null)
  78588. throw A.wrapException("Mixin not found: " + $name.toString$0(0));
  78589. return new A.SassMixin(callable);
  78590. },
  78591. $signature: 191
  78592. };
  78593. A._EvaluateVisitor__closure1.prototype = {
  78594. call$0() {
  78595. var t1 = this.$this._environment,
  78596. t2 = A.stringReplaceAllUnchecked(this.name._string$_text, "_", "-"),
  78597. t3 = this.module;
  78598. return t1.getMixin$2$namespace(t2, t3 == null ? null : t3._string$_text);
  78599. },
  78600. $signature: 85
  78601. };
  78602. A._EvaluateVisitor_closure9.prototype = {
  78603. call$1($arguments) {
  78604. var t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, invocation, callableNode, callable,
  78605. t1 = J.getInterceptor$asx($arguments),
  78606. $function = t1.$index($arguments, 0),
  78607. args = type$.SassArgumentList._as(t1.$index($arguments, 1));
  78608. t1 = this.$this;
  78609. t2 = t1._callableNode;
  78610. t2.toString;
  78611. t3 = A._setArrayType([], type$.JSArray_Expression);
  78612. t4 = type$.String;
  78613. t5 = type$.Expression;
  78614. t6 = t2.get$span(t2);
  78615. t7 = t2.get$span(t2);
  78616. args._wereKeywordsAccessed = true;
  78617. t8 = args._keywords;
  78618. if (t8.get$isEmpty(t8))
  78619. t2 = null;
  78620. else {
  78621. t9 = type$.Value;
  78622. t10 = A.LinkedHashMap_LinkedHashMap$_empty(t9, t9);
  78623. for (args._wereKeywordsAccessed = true, t8 = A.MapExtensions_get_pairs(t8, t4, t9), t8 = t8.get$iterator(t8); t8.moveNext$0();) {
  78624. t11 = t8.get$current(t8);
  78625. t10.$indexSet(0, new A.SassString(t11._0, false), t11._1);
  78626. }
  78627. t2 = new A.ValueExpression(new A.SassMap(A.ConstantMap_ConstantMap$from(t10, t9, t9)), t2.get$span(t2));
  78628. }
  78629. invocation = new A.ArgumentInvocation(A.List_List$unmodifiable(t3, t5), A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_empty(t4, t5), t4, t5), new A.ValueExpression(args, t7), t2, t6);
  78630. if ($function instanceof A.SassString) {
  78631. A.warnForDeprecation(string$.Passina + $function.toString$0(0) + "))", B.Deprecation_6v8);
  78632. callableNode = t1._callableNode;
  78633. t2 = $function._string$_text;
  78634. t3 = callableNode.get$span(callableNode);
  78635. return t1.visitFunctionExpression$1(0, new A.FunctionExpression(null, A.stringReplaceAllUnchecked(t2, "_", "-"), t2, invocation, t3));
  78636. }
  78637. callable = $function.assertFunction$1("function").callable;
  78638. if (type$.Callable._is(callable)) {
  78639. t2 = t1._callableNode;
  78640. t2.toString;
  78641. return t1._runFunctionCallable$3(invocation, callable, t2);
  78642. } else
  78643. throw A.wrapException(A.SassScriptException$("The function " + callable.get$name(callable) + string$.x20is_as, null));
  78644. },
  78645. $signature: 4
  78646. };
  78647. A._EvaluateVisitor_closure10.prototype = {
  78648. call$1($arguments) {
  78649. var withMap, t2, values, configuration, t3,
  78650. t1 = J.getInterceptor$asx($arguments),
  78651. url = A.Uri_parse(t1.$index($arguments, 0).assertString$1("url")._string$_text);
  78652. t1 = t1.$index($arguments, 1).get$realNull();
  78653. withMap = t1 == null ? null : t1.assertMap$1("with")._map$_contents;
  78654. t1 = this.$this;
  78655. t2 = t1._callableNode;
  78656. t2.toString;
  78657. if (withMap != null) {
  78658. values = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue);
  78659. withMap.forEach$1(0, new A._EvaluateVisitor__closure(values, t2.get$span(t2), t2));
  78660. configuration = new A.ExplicitConfiguration(t2, values, null);
  78661. } else
  78662. configuration = B.Configuration_Map_empty_null;
  78663. t3 = t2.get$span(t2);
  78664. t1._loadModule$7$baseUrl$configuration$namesInErrors(url, "load-css()", t2, new A._EvaluateVisitor__closure0(t1), t3.get$sourceUrl(t3), configuration, true);
  78665. t1._assertConfigurationIsEmpty$2$nameInError(configuration, true);
  78666. },
  78667. $signature: 142
  78668. };
  78669. A._EvaluateVisitor__closure.prototype = {
  78670. call$2(variable, value) {
  78671. var t1 = variable.assertString$1("with key"),
  78672. $name = A.stringReplaceAllUnchecked(t1._string$_text, "_", "-");
  78673. t1 = this.values;
  78674. if (t1.containsKey$1($name))
  78675. throw A.wrapException("The variable $" + $name + " was configured twice.");
  78676. t1.$indexSet(0, $name, new A.ConfiguredValue(value, this.span, this.callableNode));
  78677. },
  78678. $signature: 102
  78679. };
  78680. A._EvaluateVisitor__closure0.prototype = {
  78681. call$2(module, _) {
  78682. var t1 = this.$this;
  78683. return t1._combineCss$2$clone(module, true).accept$1(t1);
  78684. },
  78685. $signature: 100
  78686. };
  78687. A._EvaluateVisitor_closure11.prototype = {
  78688. call$1($arguments) {
  78689. var callableNode, t2, t3, t4, t5, callable, $content,
  78690. t1 = J.getInterceptor$asx($arguments),
  78691. mixin = t1.$index($arguments, 0),
  78692. args = type$.SassArgumentList._as(t1.$index($arguments, 1));
  78693. t1 = this.$this;
  78694. callableNode = t1._callableNode;
  78695. t2 = callableNode.get$span(callableNode);
  78696. t3 = callableNode.get$span(callableNode);
  78697. t4 = type$.Expression;
  78698. t5 = A.List_List$unmodifiable(B.List_empty9, t4);
  78699. t4 = A.ConstantMap_ConstantMap$from(B.Map_empty6, type$.String, t4);
  78700. callable = mixin.assertMixin$1("mixin").callable;
  78701. $content = t1._environment._content;
  78702. if (type$.Callable._is(callable))
  78703. t1._applyMixin$5(callable, $content, new A.ArgumentInvocation(t5, t4, new A.ValueExpression(args, t3), null, t2), callableNode, callableNode);
  78704. else
  78705. throw A.wrapException(A.SassScriptException$("The mixin " + callable.get$name(callable) + string$.x20is_as, null));
  78706. },
  78707. $signature: 142
  78708. };
  78709. A._EvaluateVisitor_run_closure.prototype = {
  78710. call$0() {
  78711. var module, _this = this,
  78712. t1 = _this.node,
  78713. t2 = t1.span,
  78714. _0_0 = t2.get$sourceUrl(t2),
  78715. url = null;
  78716. if (_0_0 != null) {
  78717. url = _0_0;
  78718. t2 = _this.$this;
  78719. t2._activeModules.$indexSet(0, url, null);
  78720. t2._loadedUrls.add$1(0, url);
  78721. }
  78722. t2 = _this.$this;
  78723. module = t2._addExceptionTrace$1(new A._EvaluateVisitor_run__closure(t2, _this.importer, t1));
  78724. return new A._Record_2_loadedUrls_stylesheet(t2._loadedUrls, t2._combineCss$1(module));
  78725. },
  78726. $signature: 630
  78727. };
  78728. A._EvaluateVisitor_run__closure.prototype = {
  78729. call$0() {
  78730. return this.$this._execute$2(this.importer, this.node);
  78731. },
  78732. $signature: 631
  78733. };
  78734. A._EvaluateVisitor_runExpression_closure.prototype = {
  78735. call$0() {
  78736. var t1 = this.$this,
  78737. t2 = this.expression;
  78738. return t1._withFakeStylesheet$3(this.importer, t2, new A._EvaluateVisitor_runExpression__closure(t1, t2));
  78739. },
  78740. $signature: 38
  78741. };
  78742. A._EvaluateVisitor_runExpression__closure.prototype = {
  78743. call$0() {
  78744. var t1 = this.$this;
  78745. return t1._addExceptionTrace$1(new A._EvaluateVisitor_runExpression___closure(t1, this.expression));
  78746. },
  78747. $signature: 38
  78748. };
  78749. A._EvaluateVisitor_runExpression___closure.prototype = {
  78750. call$0() {
  78751. return this.expression.accept$1(this.$this);
  78752. },
  78753. $signature: 38
  78754. };
  78755. A._EvaluateVisitor_runStatement_closure.prototype = {
  78756. call$0() {
  78757. var t1 = this.$this,
  78758. t2 = this.statement;
  78759. return t1._withFakeStylesheet$3(this.importer, t2, new A._EvaluateVisitor_runStatement__closure(t1, t2));
  78760. },
  78761. $signature: 0
  78762. };
  78763. A._EvaluateVisitor_runStatement__closure.prototype = {
  78764. call$0() {
  78765. var t1 = this.$this;
  78766. return t1._addExceptionTrace$1(new A._EvaluateVisitor_runStatement___closure(t1, this.statement));
  78767. },
  78768. $signature: 0
  78769. };
  78770. A._EvaluateVisitor_runStatement___closure.prototype = {
  78771. call$0() {
  78772. return this.statement.accept$1(this.$this);
  78773. },
  78774. $signature: 0
  78775. };
  78776. A._EvaluateVisitor__loadModule_closure.prototype = {
  78777. call$0() {
  78778. return this.callback.call$2(this._box_1.builtInModule, false);
  78779. },
  78780. $signature: 0
  78781. };
  78782. A._EvaluateVisitor__loadModule_closure0.prototype = {
  78783. call$0() {
  78784. var canonicalUrl, oldInDependency, t4, message, _this = this, t1 = {}, stylesheet = null, importer = null,
  78785. t2 = _this.$this,
  78786. t3 = _this.nodeWithSpan,
  78787. _1_0 = t2._loadStylesheet$3$baseUrl(_this.url.toString$0(0), t3.get$span(t3), _this.baseUrl);
  78788. stylesheet = _1_0._0;
  78789. importer = _1_0._1;
  78790. t4 = stylesheet.span;
  78791. canonicalUrl = t4.get$sourceUrl(t4);
  78792. if (canonicalUrl != null) {
  78793. t4 = t2._activeModules;
  78794. if (t4.containsKey$1(canonicalUrl)) {
  78795. if (_this.namesInErrors) {
  78796. t1 = canonicalUrl;
  78797. t3 = $.$get$context();
  78798. t1.toString;
  78799. message = "Module loop: " + t3.prettyUri$1(t1) + " is already being loaded.";
  78800. } else
  78801. message = string$.Modulel;
  78802. t1 = A.NullableExtension_andThen(t4.$index(0, canonicalUrl), new A._EvaluateVisitor__loadModule__closure(t2, message));
  78803. throw A.wrapException(t1 == null ? t2._evaluate$_exception$1(message) : t1);
  78804. } else
  78805. t4.$indexSet(0, canonicalUrl, t3);
  78806. }
  78807. t4 = t2._modules.containsKey$1(canonicalUrl);
  78808. oldInDependency = t2._inDependency;
  78809. t2._inDependency = _1_0._2;
  78810. t1.module = null;
  78811. try {
  78812. t1.module = t2._execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, _this.configuration, _this.namesInErrors, t3);
  78813. } finally {
  78814. t2._activeModules.remove$1(0, canonicalUrl);
  78815. t2._inDependency = oldInDependency;
  78816. }
  78817. t2._addExceptionSpan$3$addStackFrame(t3, new A._EvaluateVisitor__loadModule__closure0(t1, _this.callback, !t4), false);
  78818. },
  78819. $signature: 1
  78820. };
  78821. A._EvaluateVisitor__loadModule__closure.prototype = {
  78822. call$1(previousLoad) {
  78823. return this.$this._multiSpanException$3(this.message, "new load", A.LinkedHashMap_LinkedHashMap$_literal([previousLoad.get$span(previousLoad), "original load"], type$.FileSpan, type$.String));
  78824. },
  78825. $signature: 106
  78826. };
  78827. A._EvaluateVisitor__loadModule__closure0.prototype = {
  78828. call$0() {
  78829. return this.callback.call$2(this._box_0.module, this.firstLoad);
  78830. },
  78831. $signature: 0
  78832. };
  78833. A._EvaluateVisitor__execute_closure.prototype = {
  78834. call$0() {
  78835. var t3, t4, t5, t6, _this = this,
  78836. t1 = _this.$this,
  78837. oldImporter = t1._importer,
  78838. oldStylesheet = t1.__stylesheet,
  78839. oldRoot = t1.__root,
  78840. oldPreModuleComments = t1._preModuleComments,
  78841. oldParent = t1.__parent,
  78842. oldEndOfImports = t1.__endOfImports,
  78843. oldOutOfOrderImports = t1._outOfOrderImports,
  78844. oldExtensionStore = t1.__extensionStore,
  78845. t2 = t1._atRootExcludingStyleRule,
  78846. oldStyleRule = t2 ? null : t1._styleRuleIgnoringAtRoot,
  78847. oldMediaQueries = t1._mediaQueries,
  78848. oldDeclarationName = t1._declarationName,
  78849. oldInUnknownAtRule = t1._inUnknownAtRule,
  78850. oldInKeyframes = t1._inKeyframes,
  78851. oldConfiguration = t1._configuration;
  78852. t1._importer = _this.importer;
  78853. t3 = t1.__stylesheet = _this.stylesheet;
  78854. t4 = t3.span;
  78855. t5 = t1.__parent = t1.__root = A.ModifiableCssStylesheet$(t4);
  78856. t1.__endOfImports = 0;
  78857. t1._outOfOrderImports = null;
  78858. t1.__extensionStore = _this.extensionStore;
  78859. t1._declarationName = t1._mediaQueries = t1._styleRuleIgnoringAtRoot = null;
  78860. t1._inKeyframes = t1._atRootExcludingStyleRule = t1._inUnknownAtRule = false;
  78861. t6 = _this.configuration;
  78862. if (t6 != null)
  78863. t1._configuration = t6;
  78864. t1.visitStylesheet$1(0, t3);
  78865. t3 = t1._outOfOrderImports == null ? t5 : new A.CssStylesheet(new A.UnmodifiableListView(t1._addOutOfOrderImports$0(), type$.UnmodifiableListView_CssNode), t4);
  78866. _this.css.__late_helper$_value = t3;
  78867. _this.preModuleComments.__late_helper$_value = t1._preModuleComments;
  78868. t1._importer = oldImporter;
  78869. t1.__stylesheet = oldStylesheet;
  78870. t1.__root = oldRoot;
  78871. t1._preModuleComments = oldPreModuleComments;
  78872. t1.__parent = oldParent;
  78873. t1.__endOfImports = oldEndOfImports;
  78874. t1._outOfOrderImports = oldOutOfOrderImports;
  78875. t1.__extensionStore = oldExtensionStore;
  78876. t1._styleRuleIgnoringAtRoot = oldStyleRule;
  78877. t1._mediaQueries = oldMediaQueries;
  78878. t1._declarationName = oldDeclarationName;
  78879. t1._inUnknownAtRule = oldInUnknownAtRule;
  78880. t1._atRootExcludingStyleRule = t2;
  78881. t1._inKeyframes = oldInKeyframes;
  78882. t1._configuration = oldConfiguration;
  78883. },
  78884. $signature: 1
  78885. };
  78886. A._EvaluateVisitor__combineCss_closure.prototype = {
  78887. call$1(module) {
  78888. return module.get$transitivelyContainsCss();
  78889. },
  78890. $signature: 117
  78891. };
  78892. A._EvaluateVisitor__combineCss_closure0.prototype = {
  78893. call$1(target) {
  78894. return !this.selectors.contains$1(0, target);
  78895. },
  78896. $signature: 13
  78897. };
  78898. A._EvaluateVisitor__combineCss_visitModule.prototype = {
  78899. call$1(module) {
  78900. var t1, t2, t3, t4, _i, upstream, _1_0, statements, index, _this = this;
  78901. if (!_this.seen.add$1(0, module))
  78902. return;
  78903. if (_this.clone)
  78904. module = module.cloneCss$0();
  78905. for (t1 = module.get$upstream(), t2 = t1.length, t3 = _this.css, t4 = _this.imports, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
  78906. upstream = t1[_i];
  78907. if (upstream.get$transitivelyContainsCss()) {
  78908. _1_0 = module.get$preModuleComments().$index(0, upstream);
  78909. if (_1_0 != null)
  78910. B.JSArray_methods.addAll$1(t3.length === 0 ? t4 : t3, _1_0);
  78911. _this.call$1(upstream);
  78912. }
  78913. }
  78914. _this.sorted.addFirst$1(module);
  78915. t1 = module.get$css(module);
  78916. statements = t1.get$children(t1);
  78917. index = _this.$this._indexAfterImports$1(statements);
  78918. t1 = J.getInterceptor$ax(statements);
  78919. B.JSArray_methods.addAll$1(t4, t1.getRange$2(statements, 0, index));
  78920. B.JSArray_methods.addAll$1(t3, t1.getRange$2(statements, index, t1.get$length(statements)));
  78921. },
  78922. $signature: 645
  78923. };
  78924. A._EvaluateVisitor__extendModules_closure.prototype = {
  78925. call$1(target) {
  78926. return !this.originalSelectors.contains$1(0, target);
  78927. },
  78928. $signature: 13
  78929. };
  78930. A._EvaluateVisitor__extendModules_closure0.prototype = {
  78931. call$0() {
  78932. return A._setArrayType([], type$.JSArray_ExtensionStore);
  78933. },
  78934. $signature: 202
  78935. };
  78936. A._EvaluateVisitor_visitAtRootRule_closure.prototype = {
  78937. call$0() {
  78938. var t1, t2, t3, _i;
  78939. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  78940. t1[_i].accept$1(t3);
  78941. },
  78942. $signature: 1
  78943. };
  78944. A._EvaluateVisitor_visitAtRootRule_closure0.prototype = {
  78945. call$0() {
  78946. var t1, t2, t3, _i;
  78947. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  78948. t1[_i].accept$1(t3);
  78949. },
  78950. $signature: 0
  78951. };
  78952. A._EvaluateVisitor__scopeForAtRoot_closure.prototype = {
  78953. call$1(callback) {
  78954. var t1 = this.$this,
  78955. t2 = t1._assertInModule$2(t1.__parent, "__parent");
  78956. t1.__parent = this.newParent;
  78957. t1._environment.scope$1$2$when(callback, this.node.hasDeclarations, type$.void);
  78958. t1.__parent = t2;
  78959. },
  78960. $signature: 35
  78961. };
  78962. A._EvaluateVisitor__scopeForAtRoot_closure0.prototype = {
  78963. call$1(callback) {
  78964. var t1 = this.$this,
  78965. oldAtRootExcludingStyleRule = t1._atRootExcludingStyleRule;
  78966. t1._atRootExcludingStyleRule = true;
  78967. this.innerScope.call$1(callback);
  78968. t1._atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  78969. },
  78970. $signature: 35
  78971. };
  78972. A._EvaluateVisitor__scopeForAtRoot_closure1.prototype = {
  78973. call$1(callback) {
  78974. return this.$this._withMediaQueries$3(null, null, new A._EvaluateVisitor__scopeForAtRoot__closure(this.innerScope, callback));
  78975. },
  78976. $signature: 35
  78977. };
  78978. A._EvaluateVisitor__scopeForAtRoot__closure.prototype = {
  78979. call$0() {
  78980. return this.innerScope.call$1(this.callback);
  78981. },
  78982. $signature: 1
  78983. };
  78984. A._EvaluateVisitor__scopeForAtRoot_closure2.prototype = {
  78985. call$1(callback) {
  78986. var t1 = this.$this,
  78987. wasInKeyframes = t1._inKeyframes;
  78988. t1._inKeyframes = false;
  78989. this.innerScope.call$1(callback);
  78990. t1._inKeyframes = wasInKeyframes;
  78991. },
  78992. $signature: 35
  78993. };
  78994. A._EvaluateVisitor__scopeForAtRoot_closure3.prototype = {
  78995. call$1($parent) {
  78996. return $parent instanceof A.ModifiableCssAtRule;
  78997. },
  78998. $signature: 204
  78999. };
  79000. A._EvaluateVisitor__scopeForAtRoot_closure4.prototype = {
  79001. call$1(callback) {
  79002. var t1 = this.$this,
  79003. wasInUnknownAtRule = t1._inUnknownAtRule;
  79004. t1._inUnknownAtRule = false;
  79005. this.innerScope.call$1(callback);
  79006. t1._inUnknownAtRule = wasInUnknownAtRule;
  79007. },
  79008. $signature: 35
  79009. };
  79010. A._EvaluateVisitor_visitContentRule_closure.prototype = {
  79011. call$0() {
  79012. var t1, t2, t3, _i;
  79013. for (t1 = this.content.declaration.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  79014. t1[_i].accept$1(t3);
  79015. return null;
  79016. },
  79017. $signature: 1
  79018. };
  79019. A._EvaluateVisitor_visitDeclaration_closure.prototype = {
  79020. call$0() {
  79021. var t1, t2, t3, _i;
  79022. for (t1 = this._box_0.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  79023. t1[_i].accept$1(t3);
  79024. },
  79025. $signature: 1
  79026. };
  79027. A._EvaluateVisitor_visitEachRule_closure.prototype = {
  79028. call$1(value) {
  79029. var t1 = this.$this,
  79030. t2 = this.nodeWithSpan;
  79031. return t1._environment.setLocalVariable$3(this._box_0.variable, t1._withoutSlash$2(value, t2), t2);
  79032. },
  79033. $signature: 60
  79034. };
  79035. A._EvaluateVisitor_visitEachRule_closure0.prototype = {
  79036. call$1(value) {
  79037. return this.$this._setMultipleVariables$3(this._box_0.variables, value, this.nodeWithSpan);
  79038. },
  79039. $signature: 60
  79040. };
  79041. A._EvaluateVisitor_visitEachRule_closure1.prototype = {
  79042. call$0() {
  79043. var _this = this,
  79044. t1 = _this.$this;
  79045. return t1._handleReturn$2(_this.list.get$asList(), new A._EvaluateVisitor_visitEachRule__closure(t1, _this.setVariables, _this.node));
  79046. },
  79047. $signature: 42
  79048. };
  79049. A._EvaluateVisitor_visitEachRule__closure.prototype = {
  79050. call$1(element) {
  79051. var t1;
  79052. this.setVariables.call$1(element);
  79053. t1 = this.$this;
  79054. return t1._handleReturn$2(this.node.children, new A._EvaluateVisitor_visitEachRule___closure(t1));
  79055. },
  79056. $signature: 646
  79057. };
  79058. A._EvaluateVisitor_visitEachRule___closure.prototype = {
  79059. call$1(child) {
  79060. return child.accept$1(this.$this);
  79061. },
  79062. $signature: 82
  79063. };
  79064. A._EvaluateVisitor_visitAtRule_closure.prototype = {
  79065. call$1(value) {
  79066. return this.$this._interpolationToValue$3$trim$warnForColor(value, true, true);
  79067. },
  79068. $signature: 649
  79069. };
  79070. A._EvaluateVisitor_visitAtRule_closure0.prototype = {
  79071. call$0() {
  79072. var t2, t3, _i, _this = this,
  79073. t1 = _this.$this,
  79074. styleRule = t1._atRootExcludingStyleRule ? null : t1._styleRuleIgnoringAtRoot;
  79075. if (styleRule == null || t1._inKeyframes || J.$eq$(_this.name.value, "font-face"))
  79076. for (t2 = _this.children, t3 = t2.length, _i = 0; _i < t3; ++_i)
  79077. t2[_i].accept$1(t1);
  79078. else
  79079. t1._withParent$2$3$scopeWhen(A.ModifiableCssStyleRule$(styleRule._style_rule$_selector, styleRule.span, false, styleRule.originalSelector), new A._EvaluateVisitor_visitAtRule__closure(t1, _this.children), false, type$.ModifiableCssStyleRule, type$.Null);
  79080. },
  79081. $signature: 1
  79082. };
  79083. A._EvaluateVisitor_visitAtRule__closure.prototype = {
  79084. call$0() {
  79085. var t1, t2, t3, _i;
  79086. for (t1 = this.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  79087. t1[_i].accept$1(t3);
  79088. },
  79089. $signature: 1
  79090. };
  79091. A._EvaluateVisitor_visitAtRule_closure1.prototype = {
  79092. call$1(node) {
  79093. return node instanceof A.ModifiableCssStyleRule;
  79094. },
  79095. $signature: 7
  79096. };
  79097. A._EvaluateVisitor_visitForRule_closure.prototype = {
  79098. call$0() {
  79099. return this.node.from.accept$1(this.$this).assertNumber$0();
  79100. },
  79101. $signature: 145
  79102. };
  79103. A._EvaluateVisitor_visitForRule_closure0.prototype = {
  79104. call$0() {
  79105. return this.node.to.accept$1(this.$this).assertNumber$0();
  79106. },
  79107. $signature: 145
  79108. };
  79109. A._EvaluateVisitor_visitForRule_closure1.prototype = {
  79110. call$0() {
  79111. return this.fromNumber.assertInt$0();
  79112. },
  79113. $signature: 10
  79114. };
  79115. A._EvaluateVisitor_visitForRule_closure2.prototype = {
  79116. call$0() {
  79117. var t1 = this.fromNumber;
  79118. return this.toNumber.coerce$2(t1.get$numeratorUnits(t1), t1.get$denominatorUnits(t1)).assertInt$0();
  79119. },
  79120. $signature: 10
  79121. };
  79122. A._EvaluateVisitor_visitForRule_closure3.prototype = {
  79123. call$0() {
  79124. var i, t3, t4, t5, t6, t7, t8, _0_0, _this = this,
  79125. t1 = _this.$this,
  79126. t2 = _this.node,
  79127. nodeWithSpan = t1._expressionNode$1(t2.from);
  79128. for (i = _this.from, t3 = _this._box_0, t4 = _this.direction, t5 = t2.variable, t6 = _this.fromNumber, t2 = t2.children; i !== t3.to; i += t4) {
  79129. t7 = t1._environment;
  79130. t8 = t6.get$numeratorUnits(t6);
  79131. t7.setLocalVariable$3(t5, A.SassNumber_SassNumber$withUnits(i, t6.get$denominatorUnits(t6), t8), nodeWithSpan);
  79132. _0_0 = t1._handleReturn$2(t2, new A._EvaluateVisitor_visitForRule__closure(t1));
  79133. if (_0_0 != null)
  79134. return _0_0;
  79135. }
  79136. return null;
  79137. },
  79138. $signature: 42
  79139. };
  79140. A._EvaluateVisitor_visitForRule__closure.prototype = {
  79141. call$1(child) {
  79142. return child.accept$1(this.$this);
  79143. },
  79144. $signature: 82
  79145. };
  79146. A._EvaluateVisitor_visitForwardRule_closure.prototype = {
  79147. call$2(module, firstLoad) {
  79148. if (firstLoad)
  79149. this.$this._registerCommentsForModule$1(module);
  79150. this.$this._environment.forwardModule$2(module, this.node);
  79151. },
  79152. $signature: 100
  79153. };
  79154. A._EvaluateVisitor_visitForwardRule_closure0.prototype = {
  79155. call$2(module, firstLoad) {
  79156. if (firstLoad)
  79157. this.$this._registerCommentsForModule$1(module);
  79158. this.$this._environment.forwardModule$2(module, this.node);
  79159. },
  79160. $signature: 100
  79161. };
  79162. A._EvaluateVisitor__registerCommentsForModule_closure.prototype = {
  79163. call$0() {
  79164. return A._setArrayType([], type$.JSArray_CssComment);
  79165. },
  79166. $signature: 214
  79167. };
  79168. A._EvaluateVisitor_visitIfRule_closure.prototype = {
  79169. call$1(clause) {
  79170. var t1 = this.$this;
  79171. return t1._environment.scope$1$3$semiGlobal$when(new A._EvaluateVisitor_visitIfRule__closure(t1, clause), true, clause.hasDeclarations, type$.nullable_Value);
  79172. },
  79173. $signature: 669
  79174. };
  79175. A._EvaluateVisitor_visitIfRule__closure.prototype = {
  79176. call$0() {
  79177. var t1 = this.$this;
  79178. return t1._handleReturn$2(this.clause.children, new A._EvaluateVisitor_visitIfRule___closure(t1));
  79179. },
  79180. $signature: 42
  79181. };
  79182. A._EvaluateVisitor_visitIfRule___closure.prototype = {
  79183. call$1(child) {
  79184. return child.accept$1(this.$this);
  79185. },
  79186. $signature: 82
  79187. };
  79188. A._EvaluateVisitor__visitDynamicImport_closure.prototype = {
  79189. call$0() {
  79190. var t1, t2, _0_0, stylesheet, importer, isDependency, t3, url, oldImporter, oldInDependency, loadsUserDefinedModules, children, t4, t5, t6, t7, t8, t9, t10, environment, module, visitor, _box_0 = {};
  79191. _box_0.isDependency = _box_0.importer = _box_0.stylesheet = null;
  79192. t1 = this.$this;
  79193. t2 = this.$import;
  79194. _0_0 = t1._loadStylesheet$3$forImport(t2.urlString, t2.span, true);
  79195. stylesheet = _box_0.stylesheet = _0_0._0;
  79196. importer = _0_0._1;
  79197. _box_0.importer = importer;
  79198. isDependency = _0_0._2;
  79199. _box_0.isDependency = isDependency;
  79200. t3 = stylesheet.span;
  79201. url = t3.get$sourceUrl(t3);
  79202. if (url != null) {
  79203. t3 = t1._activeModules;
  79204. if (t3.containsKey$1(url)) {
  79205. t2 = A.NullableExtension_andThen(t3.$index(0, url), new A._EvaluateVisitor__visitDynamicImport__closure(t1));
  79206. throw A.wrapException(t2 == null ? t1._evaluate$_exception$1("This file is already being loaded.") : t2);
  79207. }
  79208. t3.$indexSet(0, url, t2);
  79209. }
  79210. t2 = stylesheet._uses;
  79211. t3 = type$.UnmodifiableListView_UseRule;
  79212. if (new A.UnmodifiableListView(t2, t3).get$length(0) === 0 && new A.UnmodifiableListView(stylesheet._forwards, type$.UnmodifiableListView_ForwardRule).get$length(0) === 0) {
  79213. oldImporter = t1._importer;
  79214. t2 = t1._assertInModule$2(t1.__stylesheet, "_stylesheet");
  79215. oldInDependency = t1._inDependency;
  79216. t1._importer = importer;
  79217. t1.__stylesheet = stylesheet;
  79218. t1._inDependency = isDependency;
  79219. t1.visitStylesheet$1(0, stylesheet);
  79220. t1._importer = oldImporter;
  79221. t1.__stylesheet = t2;
  79222. t1._inDependency = oldInDependency;
  79223. t1._activeModules.remove$1(0, url);
  79224. return;
  79225. }
  79226. t2 = new A.UnmodifiableListView(t2, t3);
  79227. if (!t2.any$1(t2, new A._EvaluateVisitor__visitDynamicImport__closure0())) {
  79228. t2 = new A.UnmodifiableListView(stylesheet._forwards, type$.UnmodifiableListView_ForwardRule);
  79229. loadsUserDefinedModules = t2.any$1(t2, new A._EvaluateVisitor__visitDynamicImport__closure1());
  79230. } else
  79231. loadsUserDefinedModules = true;
  79232. children = A._Cell$();
  79233. t2 = t1._environment;
  79234. t3 = type$.String;
  79235. t4 = type$.Module_Callable;
  79236. t5 = type$.AstNode;
  79237. t6 = A._setArrayType([], type$.JSArray_Module_Callable);
  79238. t7 = t2._variables;
  79239. t7 = A._setArrayType(t7.slice(0), A._arrayInstanceType(t7));
  79240. t8 = t2._variableNodes;
  79241. t8 = A._setArrayType(t8.slice(0), A._arrayInstanceType(t8));
  79242. t9 = t2._functions;
  79243. t9 = A._setArrayType(t9.slice(0), A._arrayInstanceType(t9));
  79244. t10 = t2._mixins;
  79245. t10 = A._setArrayType(t10.slice(0), A._arrayInstanceType(t10));
  79246. environment = A.Environment$_(A.LinkedHashMap_LinkedHashMap$_empty(t3, t4), A.LinkedHashMap_LinkedHashMap$_empty(t3, t5), A.LinkedHashMap_LinkedHashMap$_empty(t4, t5), t2._importedModules, null, null, t6, t7, t8, t9, t10, t2._content);
  79247. t1._withEnvironment$2(environment, new A._EvaluateVisitor__visitDynamicImport__closure2(_box_0, t1, loadsUserDefinedModules, environment, children));
  79248. module = environment.toDummyModule$0();
  79249. t1._environment.importForwards$1(module);
  79250. if (loadsUserDefinedModules) {
  79251. if (module.transitivelyContainsCss)
  79252. t1._combineCss$2$clone(module, module.transitivelyContainsExtensions).accept$1(t1);
  79253. visitor = new A._ImportedCssVisitor(t1);
  79254. for (t2 = J.get$iterator$ax(children._readLocal$0()); t2.moveNext$0();)
  79255. t2.get$current(t2).accept$1(visitor);
  79256. }
  79257. t1._activeModules.remove$1(0, url);
  79258. },
  79259. $signature: 0
  79260. };
  79261. A._EvaluateVisitor__visitDynamicImport__closure.prototype = {
  79262. call$1(previousLoad) {
  79263. return this.$this._multiSpanException$3("This file is already being loaded.", "new load", A.LinkedHashMap_LinkedHashMap$_literal([previousLoad.get$span(previousLoad), "original load"], type$.FileSpan, type$.String));
  79264. },
  79265. $signature: 106
  79266. };
  79267. A._EvaluateVisitor__visitDynamicImport__closure0.prototype = {
  79268. call$1(rule) {
  79269. return rule.url.get$scheme() !== "sass";
  79270. },
  79271. $signature: 217
  79272. };
  79273. A._EvaluateVisitor__visitDynamicImport__closure1.prototype = {
  79274. call$1(rule) {
  79275. return rule.url.get$scheme() !== "sass";
  79276. },
  79277. $signature: 224
  79278. };
  79279. A._EvaluateVisitor__visitDynamicImport__closure2.prototype = {
  79280. call$0() {
  79281. var t7, t8, _this = this,
  79282. t1 = _this.$this,
  79283. oldImporter = t1._importer,
  79284. t2 = t1._assertInModule$2(t1.__stylesheet, "_stylesheet"),
  79285. t3 = t1._assertInModule$2(t1.__root, "_root"),
  79286. t4 = t1._assertInModule$2(t1.__parent, "__parent"),
  79287. t5 = t1._assertInModule$2(t1.__endOfImports, "_endOfImports"),
  79288. oldOutOfOrderImports = t1._outOfOrderImports,
  79289. oldConfiguration = t1._configuration,
  79290. oldInDependency = t1._inDependency,
  79291. t6 = _this._box_0;
  79292. t1._importer = t6.importer;
  79293. t7 = t6.stylesheet;
  79294. t1.__stylesheet = t7;
  79295. t8 = _this.loadsUserDefinedModules;
  79296. if (t8) {
  79297. t7 = A.ModifiableCssStylesheet$(t7.span);
  79298. t1.__root = t7;
  79299. t1.__parent = t1._assertInModule$2(t7, "_root");
  79300. t1.__endOfImports = 0;
  79301. t1._outOfOrderImports = null;
  79302. }
  79303. t1._inDependency = t6.isDependency;
  79304. t7 = new A.UnmodifiableListView(t6.stylesheet._forwards, type$.UnmodifiableListView_ForwardRule);
  79305. if (!t7.get$isEmpty(t7))
  79306. t1._configuration = _this.environment.toImplicitConfiguration$0();
  79307. t1.visitStylesheet$1(0, t6.stylesheet);
  79308. t6 = t8 ? t1._addOutOfOrderImports$0() : A._setArrayType([], type$.JSArray_ModifiableCssNode);
  79309. _this.children.__late_helper$_value = t6;
  79310. t1._importer = oldImporter;
  79311. t1.__stylesheet = t2;
  79312. if (t8) {
  79313. t1.__root = t3;
  79314. t1.__parent = t4;
  79315. t1.__endOfImports = t5;
  79316. t1._outOfOrderImports = oldOutOfOrderImports;
  79317. }
  79318. t1._configuration = oldConfiguration;
  79319. t1._inDependency = oldInDependency;
  79320. },
  79321. $signature: 1
  79322. };
  79323. A._EvaluateVisitor__applyMixin_closure.prototype = {
  79324. call$0() {
  79325. var _this = this,
  79326. t1 = _this.$this;
  79327. t1._environment.asMixin$1(new A._EvaluateVisitor__applyMixin__closure0(t1, _this.$arguments, _this.mixin, _this.nodeWithSpanWithoutContent));
  79328. },
  79329. $signature: 0
  79330. };
  79331. A._EvaluateVisitor__applyMixin__closure0.prototype = {
  79332. call$0() {
  79333. var _this = this;
  79334. _this.$this._runBuiltInCallable$3(_this.$arguments, _this.mixin, _this.nodeWithSpanWithoutContent);
  79335. },
  79336. $signature: 0
  79337. };
  79338. A._EvaluateVisitor__applyMixin_closure0.prototype = {
  79339. call$0() {
  79340. var _this = this,
  79341. t1 = _this.$this;
  79342. t1._environment.withContent$2(_this.contentCallable, new A._EvaluateVisitor__applyMixin__closure(t1, _this.mixin, _this.nodeWithSpanWithoutContent));
  79343. },
  79344. $signature: 1
  79345. };
  79346. A._EvaluateVisitor__applyMixin__closure.prototype = {
  79347. call$0() {
  79348. var t1 = this.$this;
  79349. t1._environment.asMixin$1(new A._EvaluateVisitor__applyMixin___closure(t1, this.mixin, this.nodeWithSpanWithoutContent));
  79350. },
  79351. $signature: 0
  79352. };
  79353. A._EvaluateVisitor__applyMixin___closure.prototype = {
  79354. call$0() {
  79355. var t1, t2, t3, t4, _i;
  79356. for (t1 = this.mixin.declaration.children, t2 = t1.length, t3 = this.$this, t4 = this.nodeWithSpanWithoutContent, _i = 0; _i < t2; ++_i)
  79357. t3._addErrorSpan$2(t4, new A._EvaluateVisitor__applyMixin____closure(t3, t1[_i]));
  79358. },
  79359. $signature: 0
  79360. };
  79361. A._EvaluateVisitor__applyMixin____closure.prototype = {
  79362. call$0() {
  79363. return this.statement.accept$1(this.$this);
  79364. },
  79365. $signature: 42
  79366. };
  79367. A._EvaluateVisitor_visitIncludeRule_closure.prototype = {
  79368. call$0() {
  79369. var t1 = this.node;
  79370. return this.$this._environment.getMixin$2$namespace(t1.name, t1.namespace);
  79371. },
  79372. $signature: 85
  79373. };
  79374. A._EvaluateVisitor_visitIncludeRule_closure0.prototype = {
  79375. call$1($content) {
  79376. var t1 = this.$this;
  79377. return new A.UserDefinedCallable($content, t1._environment.closure$0(), t1._inDependency, type$.UserDefinedCallable_Environment);
  79378. },
  79379. $signature: 670
  79380. };
  79381. A._EvaluateVisitor_visitIncludeRule_closure1.prototype = {
  79382. call$0() {
  79383. return this.node.get$spanWithoutContent();
  79384. },
  79385. $signature: 29
  79386. };
  79387. A._EvaluateVisitor_visitMediaRule_closure.prototype = {
  79388. call$1(mediaQueries) {
  79389. return this.$this._mergeMediaQueries$2(mediaQueries, this.queries);
  79390. },
  79391. $signature: 103
  79392. };
  79393. A._EvaluateVisitor_visitMediaRule_closure0.prototype = {
  79394. call$0() {
  79395. var _this = this,
  79396. t1 = _this.$this,
  79397. t2 = _this.mergedQueries;
  79398. if (t2 == null)
  79399. t2 = _this.queries;
  79400. t1._withMediaQueries$3(t2, _this.mergedSources, new A._EvaluateVisitor_visitMediaRule__closure(t1, _this.node));
  79401. },
  79402. $signature: 1
  79403. };
  79404. A._EvaluateVisitor_visitMediaRule__closure.prototype = {
  79405. call$0() {
  79406. var t2, t3, _i,
  79407. t1 = this.$this,
  79408. _0_0 = t1._atRootExcludingStyleRule ? null : t1._styleRuleIgnoringAtRoot;
  79409. if (_0_0 != null)
  79410. t1._withParent$2$3$scopeWhen(A.ModifiableCssStyleRule$(_0_0._style_rule$_selector, _0_0.span, false, _0_0.originalSelector), new A._EvaluateVisitor_visitMediaRule___closure(t1, this.node), false, type$.ModifiableCssStyleRule, type$.Null);
  79411. else
  79412. for (t2 = this.node.children, t3 = t2.length, _i = 0; _i < t3; ++_i)
  79413. t2[_i].accept$1(t1);
  79414. },
  79415. $signature: 1
  79416. };
  79417. A._EvaluateVisitor_visitMediaRule___closure.prototype = {
  79418. call$0() {
  79419. var t1, t2, t3, _i;
  79420. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  79421. t1[_i].accept$1(t3);
  79422. },
  79423. $signature: 1
  79424. };
  79425. A._EvaluateVisitor_visitMediaRule_closure1.prototype = {
  79426. call$1(node) {
  79427. var t1;
  79428. if (!(node instanceof A.ModifiableCssStyleRule)) {
  79429. t1 = this.mergedSources;
  79430. t1 = t1.get$isNotEmpty(t1) && node instanceof A.ModifiableCssMediaRule && B.JSArray_methods.every$1(node.queries, t1.get$contains(t1));
  79431. } else
  79432. t1 = true;
  79433. return t1;
  79434. },
  79435. $signature: 7
  79436. };
  79437. A._EvaluateVisitor_visitStyleRule_closure.prototype = {
  79438. call$0() {
  79439. var t1, t2, t3, _i;
  79440. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  79441. t1[_i].accept$1(t3);
  79442. },
  79443. $signature: 1
  79444. };
  79445. A._EvaluateVisitor_visitStyleRule_closure0.prototype = {
  79446. call$1(node) {
  79447. return node instanceof A.ModifiableCssStyleRule;
  79448. },
  79449. $signature: 7
  79450. };
  79451. A._EvaluateVisitor_visitStyleRule_closure2.prototype = {
  79452. call$0() {
  79453. var t1 = this.$this;
  79454. t1._withStyleRule$2(this.rule, new A._EvaluateVisitor_visitStyleRule__closure(t1, this.node));
  79455. },
  79456. $signature: 1
  79457. };
  79458. A._EvaluateVisitor_visitStyleRule__closure.prototype = {
  79459. call$0() {
  79460. var t1, t2, t3, _i;
  79461. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  79462. t1[_i].accept$1(t3);
  79463. },
  79464. $signature: 1
  79465. };
  79466. A._EvaluateVisitor_visitStyleRule_closure1.prototype = {
  79467. call$1(node) {
  79468. return node instanceof A.ModifiableCssStyleRule;
  79469. },
  79470. $signature: 7
  79471. };
  79472. A._EvaluateVisitor__warnForBogusCombinators_closure.prototype = {
  79473. call$1(child) {
  79474. return child instanceof A.ModifiableCssComment;
  79475. },
  79476. $signature: 7
  79477. };
  79478. A._EvaluateVisitor_visitSupportsRule_closure.prototype = {
  79479. call$0() {
  79480. var t2, t3, _i,
  79481. t1 = this.$this,
  79482. _0_0 = t1._atRootExcludingStyleRule ? null : t1._styleRuleIgnoringAtRoot;
  79483. if (_0_0 != null)
  79484. t1._withParent$2$2(A.ModifiableCssStyleRule$(_0_0._style_rule$_selector, _0_0.span, false, _0_0.originalSelector), new A._EvaluateVisitor_visitSupportsRule__closure(t1, this.node), type$.ModifiableCssStyleRule, type$.Null);
  79485. else
  79486. for (t2 = this.node.children, t3 = t2.length, _i = 0; _i < t3; ++_i)
  79487. t2[_i].accept$1(t1);
  79488. },
  79489. $signature: 1
  79490. };
  79491. A._EvaluateVisitor_visitSupportsRule__closure.prototype = {
  79492. call$0() {
  79493. var t1, t2, t3, _i;
  79494. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  79495. t1[_i].accept$1(t3);
  79496. },
  79497. $signature: 1
  79498. };
  79499. A._EvaluateVisitor_visitSupportsRule_closure0.prototype = {
  79500. call$1(node) {
  79501. return node instanceof A.ModifiableCssStyleRule;
  79502. },
  79503. $signature: 7
  79504. };
  79505. A._EvaluateVisitor__visitSupportsCondition_closure.prototype = {
  79506. call$0() {
  79507. var t4,
  79508. t1 = this.$this,
  79509. t2 = this._box_0,
  79510. t3 = t2.declaration.name;
  79511. t3 = t1._evaluate$_serialize$3$quote(t3.accept$1(t1), t3, true);
  79512. t4 = t2.declaration.get$isCustomProperty() ? "" : " ";
  79513. t2 = t2.declaration.value;
  79514. return "(" + t3 + ":" + t4 + t1._evaluate$_serialize$3$quote(t2.accept$1(t1), t2, true) + ")";
  79515. },
  79516. $signature: 31
  79517. };
  79518. A._EvaluateVisitor_visitVariableDeclaration_closure.prototype = {
  79519. call$0() {
  79520. var t1 = this.$this._environment,
  79521. t2 = this._box_0.override;
  79522. t1.setVariable$4$global(this.node.name, t2.value, t2.assignmentNode, true);
  79523. },
  79524. $signature: 1
  79525. };
  79526. A._EvaluateVisitor_visitVariableDeclaration_closure0.prototype = {
  79527. call$0() {
  79528. var t1 = this.node;
  79529. return this.$this._environment.getVariable$2$namespace(t1.name, t1.namespace);
  79530. },
  79531. $signature: 42
  79532. };
  79533. A._EvaluateVisitor_visitVariableDeclaration_closure1.prototype = {
  79534. call$0() {
  79535. var t1 = this.$this,
  79536. t2 = this.node;
  79537. t1._environment.setVariable$5$global$namespace(t2.name, this.value, t1._expressionNode$1(t2.expression), t2.isGlobal, t2.namespace);
  79538. },
  79539. $signature: 1
  79540. };
  79541. A._EvaluateVisitor_visitUseRule_closure.prototype = {
  79542. call$2(module, firstLoad) {
  79543. var t1, t2, t3, _0_0, t4, t5, span;
  79544. if (firstLoad)
  79545. this.$this._registerCommentsForModule$1(module);
  79546. t1 = this.$this._environment;
  79547. t2 = this.node;
  79548. t3 = t2.namespace;
  79549. if (t3 == null) {
  79550. t1._globalModules.$indexSet(0, module, t2);
  79551. t1._allModules.push(module);
  79552. _0_0 = A.IterableExtension_firstWhereOrNull(J.get$keys$z(B.JSArray_methods.get$first(t1._variables)), module.get$variables().get$containsKey());
  79553. if (_0_0 != null)
  79554. A.throwExpression(A.SassScriptException$(string$.This_ma + _0_0 + '".', null));
  79555. } else {
  79556. t4 = t1._environment$_modules;
  79557. if (t4.containsKey$1(t3)) {
  79558. t5 = t1._namespaceNodes.$index(0, t3);
  79559. span = t5 == null ? null : t5.span;
  79560. t5 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
  79561. if (span != null)
  79562. t5.$indexSet(0, span, "original @use");
  79563. A.throwExpression(A.MultiSpanSassScriptException$(string$.There_ + t3 + '".', "new @use", t5));
  79564. }
  79565. t4.$indexSet(0, t3, module);
  79566. t1._namespaceNodes.$indexSet(0, t3, t2);
  79567. t1._allModules.push(module);
  79568. }
  79569. },
  79570. $signature: 100
  79571. };
  79572. A._EvaluateVisitor_visitWarnRule_closure.prototype = {
  79573. call$0() {
  79574. return this.node.expression.accept$1(this.$this);
  79575. },
  79576. $signature: 38
  79577. };
  79578. A._EvaluateVisitor_visitWhileRule_closure.prototype = {
  79579. call$0() {
  79580. var t1, t2, t3, _0_0;
  79581. for (t1 = this.node, t2 = t1.condition, t3 = this.$this, t1 = t1.children; t2.accept$1(t3).get$isTruthy();) {
  79582. _0_0 = t3._handleReturn$2(t1, new A._EvaluateVisitor_visitWhileRule__closure(t3));
  79583. if (_0_0 != null)
  79584. return _0_0;
  79585. }
  79586. return null;
  79587. },
  79588. $signature: 42
  79589. };
  79590. A._EvaluateVisitor_visitWhileRule__closure.prototype = {
  79591. call$1(child) {
  79592. return child.accept$1(this.$this);
  79593. },
  79594. $signature: 82
  79595. };
  79596. A._EvaluateVisitor_visitBinaryOperationExpression_closure.prototype = {
  79597. call$0() {
  79598. var t1 = this.node,
  79599. t2 = this.$this,
  79600. left = t1.left.accept$1(t2);
  79601. switch (t1.operator) {
  79602. case B.BinaryOperator_wdM:
  79603. t1 = t1.right.accept$1(t2);
  79604. t1 = new A.SassString(A.serializeValue(left, false, true) + "=" + A.serializeValue(t1, false, true), false);
  79605. break;
  79606. case B.BinaryOperator_qNM:
  79607. t1 = left.get$isTruthy() ? left : t1.right.accept$1(t2);
  79608. break;
  79609. case B.BinaryOperator_eDt:
  79610. t1 = left.get$isTruthy() ? t1.right.accept$1(t2) : left;
  79611. break;
  79612. case B.BinaryOperator_g8k:
  79613. t1 = left.$eq(0, t1.right.accept$1(t2)) ? B.SassBoolean_true : B.SassBoolean_false;
  79614. break;
  79615. case B.BinaryOperator_icU:
  79616. t1 = !left.$eq(0, t1.right.accept$1(t2)) ? B.SassBoolean_true : B.SassBoolean_false;
  79617. break;
  79618. case B.BinaryOperator_bEa:
  79619. t1 = left.greaterThan$1(t1.right.accept$1(t2));
  79620. break;
  79621. case B.BinaryOperator_oEm:
  79622. t1 = left.greaterThanOrEquals$1(t1.right.accept$1(t2));
  79623. break;
  79624. case B.BinaryOperator_miq:
  79625. t1 = left.lessThan$1(t1.right.accept$1(t2));
  79626. break;
  79627. case B.BinaryOperator_SPQ:
  79628. t1 = left.lessThanOrEquals$1(t1.right.accept$1(t2));
  79629. break;
  79630. case B.BinaryOperator_u15:
  79631. t1 = left.plus$1(t1.right.accept$1(t2));
  79632. break;
  79633. case B.BinaryOperator_SjO:
  79634. t1 = left.minus$1(t1.right.accept$1(t2));
  79635. break;
  79636. case B.BinaryOperator_2No:
  79637. t1 = left.times$1(t1.right.accept$1(t2));
  79638. break;
  79639. case B.BinaryOperator_U77:
  79640. t1 = t2._slash$3(left, t1.right.accept$1(t2), t1);
  79641. break;
  79642. case B.BinaryOperator_KNx:
  79643. t1 = left.modulo$1(t1.right.accept$1(t2));
  79644. break;
  79645. default:
  79646. t1 = null;
  79647. }
  79648. return t1;
  79649. },
  79650. $signature: 38
  79651. };
  79652. A._EvaluateVisitor__slash_recommendation.prototype = {
  79653. call$1(expression) {
  79654. var t1;
  79655. $label0$0: {
  79656. if (expression instanceof A.BinaryOperationExpression && B.BinaryOperator_U77 === expression.operator) {
  79657. t1 = "math.div(" + A.S(this.call$1(expression.left)) + ", " + A.S(this.call$1(expression.right)) + ")";
  79658. break $label0$0;
  79659. }
  79660. if (expression instanceof A.ParenthesizedExpression) {
  79661. t1 = expression.expression.toString$0(0);
  79662. break $label0$0;
  79663. }
  79664. t1 = expression.toString$0(0);
  79665. break $label0$0;
  79666. }
  79667. return t1;
  79668. },
  79669. $signature: 119
  79670. };
  79671. A._EvaluateVisitor_visitVariableExpression_closure.prototype = {
  79672. call$0() {
  79673. var t1 = this.node;
  79674. return this.$this._environment.getVariable$2$namespace(t1.name, t1.namespace);
  79675. },
  79676. $signature: 42
  79677. };
  79678. A._EvaluateVisitor_visitUnaryOperationExpression_closure.prototype = {
  79679. call$0() {
  79680. var t1, _this = this;
  79681. switch (_this.node.operator) {
  79682. case B.UnaryOperator_cLp:
  79683. t1 = _this.operand.unaryPlus$0();
  79684. break;
  79685. case B.UnaryOperator_AiQ:
  79686. t1 = _this.operand.unaryMinus$0();
  79687. break;
  79688. case B.UnaryOperator_SJr:
  79689. t1 = new A.SassString("/" + A.serializeValue(_this.operand, false, true), false);
  79690. break;
  79691. case B.UnaryOperator_not_not_not:
  79692. t1 = _this.operand.unaryNot$0();
  79693. break;
  79694. default:
  79695. t1 = null;
  79696. }
  79697. return t1;
  79698. },
  79699. $signature: 38
  79700. };
  79701. A._EvaluateVisitor_visitListExpression_closure.prototype = {
  79702. call$1(expression) {
  79703. return expression.accept$1(this.$this);
  79704. },
  79705. $signature: 273
  79706. };
  79707. A._EvaluateVisitor_visitFunctionExpression_closure.prototype = {
  79708. call$0() {
  79709. var t1 = this.node;
  79710. return this.$this._environment.getFunction$2$namespace(t1.name, t1.namespace);
  79711. },
  79712. $signature: 85
  79713. };
  79714. A._EvaluateVisitor_visitFunctionExpression_closure0.prototype = {
  79715. call$1(argument) {
  79716. return argument.accept$1(B.C_IsCalculationSafeVisitor);
  79717. },
  79718. $signature: 121
  79719. };
  79720. A._EvaluateVisitor_visitFunctionExpression_closure1.prototype = {
  79721. call$0() {
  79722. var t1 = this.node;
  79723. return this.$this._runFunctionCallable$3(t1.$arguments, this._box_0.$function, t1);
  79724. },
  79725. $signature: 38
  79726. };
  79727. A._EvaluateVisitor__checkCalculationArguments_check.prototype = {
  79728. call$1(maxArgs) {
  79729. var t1 = this.node,
  79730. t2 = t1.$arguments.positional.length;
  79731. if (t2 === 0)
  79732. throw A.wrapException(this.$this._evaluate$_exception$2("Missing argument.", t1.span));
  79733. else if (maxArgs != null && t2 > maxArgs)
  79734. throw A.wrapException(this.$this._evaluate$_exception$2("Only " + A.S(maxArgs) + " " + A.pluralize("argument", maxArgs, null) + " allowed, but " + t2 + " " + A.pluralize("was", t2, "were") + " passed.", t1.span));
  79735. },
  79736. call$0() {
  79737. return this.call$1(null);
  79738. },
  79739. $signature: 99
  79740. };
  79741. A._EvaluateVisitor__visitCalculationExpression_closure.prototype = {
  79742. call$0() {
  79743. var _this = this,
  79744. t1 = _this.$this,
  79745. t2 = _this._box_0,
  79746. t3 = _this.inLegacySassFunction;
  79747. return A.SassCalculation_operateInternal(t1._binaryOperatorToCalculationOperator$2(t2.operator, _this.node), t1._visitCalculationExpression$2$inLegacySassFunction(t2.left, t3), t1._visitCalculationExpression$2$inLegacySassFunction(t2.right, t3), t3, !t1._inSupportsDeclaration);
  79748. },
  79749. $signature: 83
  79750. };
  79751. A._EvaluateVisitor_visitInterpolatedFunctionExpression_closure.prototype = {
  79752. call$0() {
  79753. var t1 = this.node;
  79754. return this.$this._runFunctionCallable$3(t1.$arguments, this.$function, t1);
  79755. },
  79756. $signature: 38
  79757. };
  79758. A._EvaluateVisitor__runUserDefinedCallable_closure.prototype = {
  79759. call$0() {
  79760. var _this = this,
  79761. t1 = _this.$this,
  79762. t2 = _this.callable;
  79763. return t1._withEnvironment$2(t2.environment.closure$0(), new A._EvaluateVisitor__runUserDefinedCallable__closure(t1, _this.evaluated, t2, _this.nodeWithSpan, _this.run, _this.V));
  79764. },
  79765. $signature() {
  79766. return this.V._eval$1("0()");
  79767. }
  79768. };
  79769. A._EvaluateVisitor__runUserDefinedCallable__closure.prototype = {
  79770. call$0() {
  79771. var _this = this,
  79772. t1 = _this.$this,
  79773. t2 = _this.V;
  79774. return t1._environment.scope$1$1(new A._EvaluateVisitor__runUserDefinedCallable___closure(t1, _this.evaluated, _this.callable, _this.nodeWithSpan, _this.run, t2), t2);
  79775. },
  79776. $signature() {
  79777. return this.V._eval$1("0()");
  79778. }
  79779. };
  79780. A._EvaluateVisitor__runUserDefinedCallable___closure.prototype = {
  79781. call$0() {
  79782. var declaredArguments, t5, minLength, i, argument, t6, t7, value, t8, restArgument, rest, argumentList, result, argumentWord, _this = this,
  79783. t1 = _this.$this,
  79784. t2 = _this.evaluated._values,
  79785. t3 = _this.callable.declaration.$arguments,
  79786. t4 = _this.nodeWithSpan;
  79787. t1._verifyArguments$4(t2[2].length, t2[0], t3, t4);
  79788. declaredArguments = t3.$arguments;
  79789. t5 = declaredArguments.length;
  79790. minLength = Math.min(t2[2].length, t5);
  79791. for (i = 0; i < minLength; ++i)
  79792. t1._environment.setLocalVariable$3(declaredArguments[i].name, t2[2][i], t2[3][i]);
  79793. for (i = t2[2].length; i < t5; ++i) {
  79794. argument = declaredArguments[i];
  79795. t6 = t2[0];
  79796. t7 = argument.name;
  79797. value = t6.remove$1(0, t7);
  79798. if (value == null) {
  79799. t6 = argument.defaultValue;
  79800. value = t1._withoutSlash$2(t6.accept$1(t1), t1._expressionNode$1(t6));
  79801. }
  79802. t6 = t1._environment;
  79803. t8 = t2[1].$index(0, t7);
  79804. if (t8 == null) {
  79805. t8 = argument.defaultValue;
  79806. t8.toString;
  79807. t8 = t1._expressionNode$1(t8);
  79808. }
  79809. t6.setLocalVariable$3(t7, value, t8);
  79810. }
  79811. restArgument = t3.restArgument;
  79812. if (restArgument != null) {
  79813. t6 = t2[2];
  79814. rest = t6.length > t5 ? B.JSArray_methods.sublist$1(t6, t5) : B.List_empty8;
  79815. t5 = t2[0];
  79816. t6 = t2[4];
  79817. argumentList = A.SassArgumentList$(rest, t5, t6 === B.ListSeparator_undecided_null_undecided ? B.ListSeparator_ECn : t6);
  79818. t1._environment.setLocalVariable$3(restArgument, argumentList, t4);
  79819. } else
  79820. argumentList = null;
  79821. result = _this.run.call$0();
  79822. if (argumentList == null)
  79823. return result;
  79824. t5 = t2[0].__js_helper$_length;
  79825. if (t5 === 0)
  79826. return result;
  79827. if (argumentList._wereKeywordsAccessed)
  79828. return result;
  79829. argumentWord = A.pluralize("argument", t5, null);
  79830. t2 = t2[0];
  79831. t5 = A._instanceType(t2)._eval$1("LinkedHashMapKeyIterable<1>");
  79832. throw A.wrapException(A.MultiSpanSassRuntimeException$("No " + argumentWord + " named " + A.toSentence(A.MappedIterable_MappedIterable(new A.LinkedHashMapKeyIterable(t2, t5), new A._EvaluateVisitor__runUserDefinedCallable____closure(), t5._eval$1("Iterable.E"), type$.Object), "or") + ".", t4.get$span(t4), "invocation", A.LinkedHashMap_LinkedHashMap$_literal([t3.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), t1._evaluate$_stackTrace$1(t4.get$span(t4)), null));
  79833. },
  79834. $signature() {
  79835. return this.V._eval$1("0()");
  79836. }
  79837. };
  79838. A._EvaluateVisitor__runUserDefinedCallable____closure.prototype = {
  79839. call$1($name) {
  79840. return "$" + $name;
  79841. },
  79842. $signature: 6
  79843. };
  79844. A._EvaluateVisitor__runFunctionCallable_closure.prototype = {
  79845. call$0() {
  79846. var t1, t2, t3, t4, _i, $returnValue;
  79847. for (t1 = this.callable.declaration, t2 = t1.children, t3 = t2.length, t4 = this.$this, _i = 0; _i < t3; ++_i) {
  79848. $returnValue = t2[_i].accept$1(t4);
  79849. if ($returnValue instanceof A.Value)
  79850. return $returnValue;
  79851. }
  79852. throw A.wrapException(t4._evaluate$_exception$2("Function finished without @return.", t1.span));
  79853. },
  79854. $signature: 38
  79855. };
  79856. A._EvaluateVisitor__runBuiltInCallable_closure.prototype = {
  79857. call$0() {
  79858. return this._box_0.overload.verify$2(this.evaluated._values[2].length, this.namedSet);
  79859. },
  79860. $signature: 0
  79861. };
  79862. A._EvaluateVisitor__runBuiltInCallable_closure0.prototype = {
  79863. call$0() {
  79864. return this._box_0.callback.call$1(this.evaluated._values[2]);
  79865. },
  79866. $signature: 38
  79867. };
  79868. A._EvaluateVisitor__runBuiltInCallable_closure1.prototype = {
  79869. call$1($name) {
  79870. return "$" + $name;
  79871. },
  79872. $signature: 6
  79873. };
  79874. A._EvaluateVisitor__evaluateArguments_closure.prototype = {
  79875. call$1(value) {
  79876. return value;
  79877. },
  79878. $signature: 41
  79879. };
  79880. A._EvaluateVisitor__evaluateArguments_closure0.prototype = {
  79881. call$1(value) {
  79882. return this.$this._withoutSlash$2(value, this.restNodeForSpan);
  79883. },
  79884. $signature: 41
  79885. };
  79886. A._EvaluateVisitor__evaluateArguments_closure1.prototype = {
  79887. call$2(key, value) {
  79888. var _this = this,
  79889. t1 = _this.restNodeForSpan;
  79890. _this.named.$indexSet(0, key, _this.$this._withoutSlash$2(value, t1));
  79891. _this.namedNodes.$indexSet(0, key, t1);
  79892. },
  79893. $signature: 89
  79894. };
  79895. A._EvaluateVisitor__evaluateArguments_closure2.prototype = {
  79896. call$1(value) {
  79897. return value;
  79898. },
  79899. $signature: 41
  79900. };
  79901. A._EvaluateVisitor__evaluateMacroArguments_closure.prototype = {
  79902. call$1(value) {
  79903. var t1 = this.restArgs;
  79904. return new A.ValueExpression(value, t1.get$span(t1));
  79905. },
  79906. $signature: 57
  79907. };
  79908. A._EvaluateVisitor__evaluateMacroArguments_closure0.prototype = {
  79909. call$1(value) {
  79910. var t1 = this.restArgs;
  79911. return new A.ValueExpression(this.$this._withoutSlash$2(value, this.restNodeForSpan), t1.get$span(t1));
  79912. },
  79913. $signature: 57
  79914. };
  79915. A._EvaluateVisitor__evaluateMacroArguments_closure1.prototype = {
  79916. call$2(key, value) {
  79917. var _this = this,
  79918. t1 = _this.restArgs;
  79919. _this.named.$indexSet(0, key, new A.ValueExpression(_this.$this._withoutSlash$2(value, _this.restNodeForSpan), t1.get$span(t1)));
  79920. },
  79921. $signature: 89
  79922. };
  79923. A._EvaluateVisitor__evaluateMacroArguments_closure2.prototype = {
  79924. call$1(value) {
  79925. var t1 = this.keywordRestArgs;
  79926. return new A.ValueExpression(this.$this._withoutSlash$2(value, this.keywordRestNodeForSpan), t1.get$span(t1));
  79927. },
  79928. $signature: 57
  79929. };
  79930. A._EvaluateVisitor__addRestMap_closure.prototype = {
  79931. call$2(key, value) {
  79932. var t2, _this = this,
  79933. t1 = _this.$this;
  79934. if (key instanceof A.SassString)
  79935. _this.values.$indexSet(0, key._string$_text, _this.convert.call$1(t1._withoutSlash$2(value, _this.expressionNode)));
  79936. else {
  79937. t2 = _this.nodeWithSpan;
  79938. throw A.wrapException(t1._evaluate$_exception$2(string$.Variab_ + key.toString$0(0) + " is not a string in " + _this.map.toString$0(0) + ".", t2.get$span(t2)));
  79939. }
  79940. },
  79941. $signature: 102
  79942. };
  79943. A._EvaluateVisitor__verifyArguments_closure.prototype = {
  79944. call$0() {
  79945. return this.$arguments.verify$2(this.positional, new A.MapKeySet(this.named, type$.MapKeySet_String));
  79946. },
  79947. $signature: 0
  79948. };
  79949. A._EvaluateVisitor_visitCssAtRule_closure.prototype = {
  79950. call$0() {
  79951. var t1, t2, t3, t4;
  79952. for (t1 = this.node.children, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t3 = this.$this, t2 = t2._eval$1("ListBase.E"); t1.moveNext$0();) {
  79953. t4 = t1.__internal$_current;
  79954. (t4 == null ? t2._as(t4) : t4).accept$1(t3);
  79955. }
  79956. },
  79957. $signature: 1
  79958. };
  79959. A._EvaluateVisitor_visitCssAtRule_closure0.prototype = {
  79960. call$1(node) {
  79961. return node instanceof A.ModifiableCssStyleRule;
  79962. },
  79963. $signature: 7
  79964. };
  79965. A._EvaluateVisitor_visitCssKeyframeBlock_closure.prototype = {
  79966. call$0() {
  79967. var t1, t2, t3, t4;
  79968. for (t1 = this.node.children, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t3 = this.$this, t2 = t2._eval$1("ListBase.E"); t1.moveNext$0();) {
  79969. t4 = t1.__internal$_current;
  79970. (t4 == null ? t2._as(t4) : t4).accept$1(t3);
  79971. }
  79972. },
  79973. $signature: 1
  79974. };
  79975. A._EvaluateVisitor_visitCssKeyframeBlock_closure0.prototype = {
  79976. call$1(node) {
  79977. return node instanceof A.ModifiableCssStyleRule;
  79978. },
  79979. $signature: 7
  79980. };
  79981. A._EvaluateVisitor_visitCssMediaRule_closure.prototype = {
  79982. call$1(mediaQueries) {
  79983. return this.$this._mergeMediaQueries$2(mediaQueries, this.node.queries);
  79984. },
  79985. $signature: 103
  79986. };
  79987. A._EvaluateVisitor_visitCssMediaRule_closure0.prototype = {
  79988. call$0() {
  79989. var _this = this,
  79990. t1 = _this.$this,
  79991. t2 = _this.mergedQueries;
  79992. if (t2 == null)
  79993. t2 = _this.node.queries;
  79994. t1._withMediaQueries$3(t2, _this.mergedSources, new A._EvaluateVisitor_visitCssMediaRule__closure(t1, _this.node));
  79995. },
  79996. $signature: 1
  79997. };
  79998. A._EvaluateVisitor_visitCssMediaRule__closure.prototype = {
  79999. call$0() {
  80000. var t2, t3, t4,
  80001. t1 = this.$this,
  80002. _0_0 = t1._atRootExcludingStyleRule ? null : t1._styleRuleIgnoringAtRoot;
  80003. if (_0_0 != null)
  80004. t1._withParent$2$3$scopeWhen(A.ModifiableCssStyleRule$(_0_0._style_rule$_selector, _0_0.span, false, _0_0.originalSelector), new A._EvaluateVisitor_visitCssMediaRule___closure(t1, this.node), false, type$.ModifiableCssStyleRule, type$.Null);
  80005. else
  80006. for (t2 = this.node.children, t3 = t2.$ti, t2 = new A.ListIterator(t2, t2.get$length(0), t3._eval$1("ListIterator<ListBase.E>")), t3 = t3._eval$1("ListBase.E"); t2.moveNext$0();) {
  80007. t4 = t2.__internal$_current;
  80008. (t4 == null ? t3._as(t4) : t4).accept$1(t1);
  80009. }
  80010. },
  80011. $signature: 1
  80012. };
  80013. A._EvaluateVisitor_visitCssMediaRule___closure.prototype = {
  80014. call$0() {
  80015. var t1, t2, t3, t4;
  80016. for (t1 = this.node.children, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t3 = this.$this, t2 = t2._eval$1("ListBase.E"); t1.moveNext$0();) {
  80017. t4 = t1.__internal$_current;
  80018. (t4 == null ? t2._as(t4) : t4).accept$1(t3);
  80019. }
  80020. },
  80021. $signature: 1
  80022. };
  80023. A._EvaluateVisitor_visitCssMediaRule_closure1.prototype = {
  80024. call$1(node) {
  80025. var t1;
  80026. if (!(node instanceof A.ModifiableCssStyleRule)) {
  80027. t1 = this.mergedSources;
  80028. t1 = t1.get$isNotEmpty(t1) && node instanceof A.ModifiableCssMediaRule && B.JSArray_methods.every$1(node.queries, t1.get$contains(t1));
  80029. } else
  80030. t1 = true;
  80031. return t1;
  80032. },
  80033. $signature: 7
  80034. };
  80035. A._EvaluateVisitor_visitCssStyleRule_closure0.prototype = {
  80036. call$0() {
  80037. var t1 = this.$this;
  80038. t1._withStyleRule$2(this.rule, new A._EvaluateVisitor_visitCssStyleRule__closure(t1, this.node));
  80039. },
  80040. $signature: 1
  80041. };
  80042. A._EvaluateVisitor_visitCssStyleRule__closure.prototype = {
  80043. call$0() {
  80044. var t1, t2, t3, t4;
  80045. for (t1 = this.node.children, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t3 = this.$this, t2 = t2._eval$1("ListBase.E"); t1.moveNext$0();) {
  80046. t4 = t1.__internal$_current;
  80047. (t4 == null ? t2._as(t4) : t4).accept$1(t3);
  80048. }
  80049. },
  80050. $signature: 1
  80051. };
  80052. A._EvaluateVisitor_visitCssStyleRule_closure.prototype = {
  80053. call$1(node) {
  80054. return node instanceof A.ModifiableCssStyleRule;
  80055. },
  80056. $signature: 7
  80057. };
  80058. A._EvaluateVisitor_visitCssSupportsRule_closure.prototype = {
  80059. call$0() {
  80060. var t2, t3, t4,
  80061. t1 = this.$this,
  80062. _0_0 = t1._atRootExcludingStyleRule ? null : t1._styleRuleIgnoringAtRoot;
  80063. if (_0_0 != null)
  80064. t1._withParent$2$2(A.ModifiableCssStyleRule$(_0_0._style_rule$_selector, _0_0.span, false, _0_0.originalSelector), new A._EvaluateVisitor_visitCssSupportsRule__closure(t1, this.node), type$.ModifiableCssStyleRule, type$.Null);
  80065. else
  80066. for (t2 = this.node.children, t3 = t2.$ti, t2 = new A.ListIterator(t2, t2.get$length(0), t3._eval$1("ListIterator<ListBase.E>")), t3 = t3._eval$1("ListBase.E"); t2.moveNext$0();) {
  80067. t4 = t2.__internal$_current;
  80068. (t4 == null ? t3._as(t4) : t4).accept$1(t1);
  80069. }
  80070. },
  80071. $signature: 1
  80072. };
  80073. A._EvaluateVisitor_visitCssSupportsRule__closure.prototype = {
  80074. call$0() {
  80075. var t1, t2, t3, t4;
  80076. for (t1 = this.node.children, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t3 = this.$this, t2 = t2._eval$1("ListBase.E"); t1.moveNext$0();) {
  80077. t4 = t1.__internal$_current;
  80078. (t4 == null ? t2._as(t4) : t4).accept$1(t3);
  80079. }
  80080. },
  80081. $signature: 1
  80082. };
  80083. A._EvaluateVisitor_visitCssSupportsRule_closure0.prototype = {
  80084. call$1(node) {
  80085. return node instanceof A.ModifiableCssStyleRule;
  80086. },
  80087. $signature: 7
  80088. };
  80089. A._EvaluateVisitor__performInterpolationHelper_closure.prototype = {
  80090. call$1(targetLocations) {
  80091. return A.InterpolationMap$(this.interpolation, targetLocations);
  80092. },
  80093. $signature: 268
  80094. };
  80095. A._EvaluateVisitor__serialize_closure.prototype = {
  80096. call$0() {
  80097. return A.serializeValue(this.value, false, this.quote);
  80098. },
  80099. $signature: 31
  80100. };
  80101. A._EvaluateVisitor__expressionNode_closure.prototype = {
  80102. call$0() {
  80103. var t1 = this.expression;
  80104. return this.$this._environment.getVariableNode$2$namespace(t1.name, t1.namespace);
  80105. },
  80106. $signature: 270
  80107. };
  80108. A._EvaluateVisitor__withoutSlash_recommendation.prototype = {
  80109. call$1(number) {
  80110. var before, after, t1,
  80111. _1_0 = number.asSlash;
  80112. $label0$0: {
  80113. if (type$.Record_2_nullable_Object_and_nullable_Object._is(_1_0)) {
  80114. before = _1_0._0;
  80115. after = _1_0._1;
  80116. t1 = "math.div(" + A.S(this.call$1(before)) + ", " + A.S(this.call$1(after)) + ")";
  80117. break $label0$0;
  80118. }
  80119. t1 = A.serializeValue(number, true, true);
  80120. break $label0$0;
  80121. }
  80122. return t1;
  80123. },
  80124. $signature: 140
  80125. };
  80126. A._EvaluateVisitor__stackFrame_closure.prototype = {
  80127. call$1(url) {
  80128. var t1 = this.$this._evaluate$_importCache;
  80129. t1 = t1 == null ? null : t1.humanize$1(url);
  80130. return t1 == null ? url : t1;
  80131. },
  80132. $signature: 50
  80133. };
  80134. A._ImportedCssVisitor.prototype = {
  80135. visitCssAtRule$1(node) {
  80136. var t1 = node.isChildless ? null : new A._ImportedCssVisitor_visitCssAtRule_closure();
  80137. this._visitor._addChild$2$through(node, t1);
  80138. },
  80139. visitCssComment$1(node) {
  80140. return this._visitor._addChild$1(node);
  80141. },
  80142. visitCssDeclaration$1(node) {
  80143. },
  80144. visitCssImport$1(node) {
  80145. var t2,
  80146. _s13_ = "_endOfImports",
  80147. t1 = this._visitor;
  80148. if (t1._assertInModule$2(t1.__parent, "__parent") !== t1._assertInModule$2(t1.__root, "_root"))
  80149. t1._addChild$1(node);
  80150. else if (t1._assertInModule$2(t1.__endOfImports, _s13_) === J.get$length$asx(t1._assertInModule$2(t1.__root, "_root").children._collection$_source)) {
  80151. t1._addChild$1(node);
  80152. t1.__endOfImports = t1._assertInModule$2(t1.__endOfImports, _s13_) + 1;
  80153. } else {
  80154. t2 = t1._outOfOrderImports;
  80155. (t2 == null ? t1._outOfOrderImports = A._setArrayType([], type$.JSArray_ModifiableCssImport) : t2).push(node);
  80156. }
  80157. },
  80158. visitCssKeyframeBlock$1(node) {
  80159. },
  80160. visitCssMediaRule$1(node) {
  80161. var t1 = this._visitor,
  80162. mediaQueries = t1._mediaQueries;
  80163. t1._addChild$2$through(node, new A._ImportedCssVisitor_visitCssMediaRule_closure(mediaQueries == null || t1._mergeMediaQueries$2(mediaQueries, node.queries) != null));
  80164. },
  80165. visitCssStyleRule$1(node) {
  80166. return this._visitor._addChild$2$through(node, new A._ImportedCssVisitor_visitCssStyleRule_closure());
  80167. },
  80168. visitCssStylesheet$1(node) {
  80169. var t1, t2, t3;
  80170. for (t1 = node.children, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t2 = t2._eval$1("ListBase.E"); t1.moveNext$0();) {
  80171. t3 = t1.__internal$_current;
  80172. (t3 == null ? t2._as(t3) : t3).accept$1(this);
  80173. }
  80174. },
  80175. visitCssSupportsRule$1(node) {
  80176. return this._visitor._addChild$2$through(node, new A._ImportedCssVisitor_visitCssSupportsRule_closure());
  80177. }
  80178. };
  80179. A._ImportedCssVisitor_visitCssAtRule_closure.prototype = {
  80180. call$1(node) {
  80181. return node instanceof A.ModifiableCssStyleRule;
  80182. },
  80183. $signature: 7
  80184. };
  80185. A._ImportedCssVisitor_visitCssMediaRule_closure.prototype = {
  80186. call$1(node) {
  80187. var t1;
  80188. if (!(node instanceof A.ModifiableCssStyleRule))
  80189. t1 = this.hasBeenMerged && node instanceof A.ModifiableCssMediaRule;
  80190. else
  80191. t1 = true;
  80192. return t1;
  80193. },
  80194. $signature: 7
  80195. };
  80196. A._ImportedCssVisitor_visitCssStyleRule_closure.prototype = {
  80197. call$1(node) {
  80198. return node instanceof A.ModifiableCssStyleRule;
  80199. },
  80200. $signature: 7
  80201. };
  80202. A._ImportedCssVisitor_visitCssSupportsRule_closure.prototype = {
  80203. call$1(node) {
  80204. return node instanceof A.ModifiableCssStyleRule;
  80205. },
  80206. $signature: 7
  80207. };
  80208. A._EvaluationContext.prototype = {
  80209. get$currentCallableSpan() {
  80210. var _0_0 = this._visitor._callableNode;
  80211. if (_0_0 != null)
  80212. return _0_0.get$span(_0_0);
  80213. throw A.wrapException(A.StateError$(string$.No_Sasc));
  80214. },
  80215. warn$2(_, message, deprecation) {
  80216. var t1 = this._visitor,
  80217. t2 = t1._importSpan;
  80218. if (t2 == null) {
  80219. t2 = t1._callableNode;
  80220. t2 = t2 == null ? null : t2.get$span(t2);
  80221. }
  80222. if (t2 == null) {
  80223. t2 = this._defaultWarnNodeWithSpan;
  80224. t2 = t2.get$span(t2);
  80225. }
  80226. t1._warn$3(message, t2, deprecation);
  80227. },
  80228. $isEvaluationContext: 1
  80229. };
  80230. A.EveryCssVisitor.prototype = {
  80231. visitCssAtRule$1(node) {
  80232. var t1 = node.children;
  80233. return t1.every$1(t1, new A.EveryCssVisitor_visitCssAtRule_closure(this));
  80234. },
  80235. visitCssComment$1(node) {
  80236. return false;
  80237. },
  80238. visitCssDeclaration$1(node) {
  80239. return false;
  80240. },
  80241. visitCssImport$1(node) {
  80242. return false;
  80243. },
  80244. visitCssKeyframeBlock$1(node) {
  80245. var t1 = node.children;
  80246. return t1.every$1(t1, new A.EveryCssVisitor_visitCssKeyframeBlock_closure(this));
  80247. },
  80248. visitCssMediaRule$1(node) {
  80249. var t1 = node.children;
  80250. return t1.every$1(t1, new A.EveryCssVisitor_visitCssMediaRule_closure(this));
  80251. },
  80252. visitCssStyleRule$1(node) {
  80253. var t1 = node.children;
  80254. return t1.every$1(t1, new A.EveryCssVisitor_visitCssStyleRule_closure(this));
  80255. },
  80256. visitCssStylesheet$1(node) {
  80257. return J.every$1$ax(node.get$children(node), new A.EveryCssVisitor_visitCssStylesheet_closure(this));
  80258. },
  80259. visitCssSupportsRule$1(node) {
  80260. var t1 = node.children;
  80261. return t1.every$1(t1, new A.EveryCssVisitor_visitCssSupportsRule_closure(this));
  80262. }
  80263. };
  80264. A.EveryCssVisitor_visitCssAtRule_closure.prototype = {
  80265. call$1(child) {
  80266. return child.accept$1(this.$this);
  80267. },
  80268. $signature: 7
  80269. };
  80270. A.EveryCssVisitor_visitCssKeyframeBlock_closure.prototype = {
  80271. call$1(child) {
  80272. return child.accept$1(this.$this);
  80273. },
  80274. $signature: 7
  80275. };
  80276. A.EveryCssVisitor_visitCssMediaRule_closure.prototype = {
  80277. call$1(child) {
  80278. return child.accept$1(this.$this);
  80279. },
  80280. $signature: 7
  80281. };
  80282. A.EveryCssVisitor_visitCssStyleRule_closure.prototype = {
  80283. call$1(child) {
  80284. return child.accept$1(this.$this);
  80285. },
  80286. $signature: 7
  80287. };
  80288. A.EveryCssVisitor_visitCssStylesheet_closure.prototype = {
  80289. call$1(child) {
  80290. return child.accept$1(this.$this);
  80291. },
  80292. $signature: 7
  80293. };
  80294. A.EveryCssVisitor_visitCssSupportsRule_closure.prototype = {
  80295. call$1(child) {
  80296. return child.accept$1(this.$this);
  80297. },
  80298. $signature: 7
  80299. };
  80300. A._MakeExpressionCalculationSafe.prototype = {
  80301. visitBinaryOperationExpression$1(_, node) {
  80302. var t1, t2, t3, t4;
  80303. if (node.operator === B.BinaryOperator_KNx) {
  80304. t1 = A._setArrayType([node], type$.JSArray_Expression);
  80305. t2 = node.get$span(0);
  80306. t3 = type$.Expression;
  80307. t1 = A.List_List$unmodifiable(t1, t3);
  80308. t3 = A.ConstantMap_ConstantMap$from(B.Map_empty6, type$.String, t3);
  80309. t4 = node.get$span(0);
  80310. t1 = new A.FunctionExpression("math", A.stringReplaceAllUnchecked("max", "_", "-"), "max", new A.ArgumentInvocation(t1, t3, null, null, t2), t4);
  80311. } else
  80312. t1 = this.super$ReplaceExpressionVisitor$visitBinaryOperationExpression(0, node);
  80313. return t1;
  80314. },
  80315. visitInterpolatedFunctionExpression$1(_, node) {
  80316. return node;
  80317. },
  80318. visitUnaryOperationExpression$1(_, node) {
  80319. var t1,
  80320. _0_0 = node.operator;
  80321. $label0$0: {
  80322. if (B.UnaryOperator_cLp === _0_0) {
  80323. t1 = node.operand;
  80324. break $label0$0;
  80325. }
  80326. if (B.UnaryOperator_AiQ === _0_0) {
  80327. t1 = new A.BinaryOperationExpression(B.BinaryOperator_2No, new A.NumberExpression(-1, null, node.span), node.operand, false);
  80328. break $label0$0;
  80329. }
  80330. t1 = this.super$ReplaceExpressionVisitor$visitUnaryOperationExpression(0, node);
  80331. break $label0$0;
  80332. }
  80333. return t1;
  80334. }
  80335. };
  80336. A.__MakeExpressionCalculationSafe_Object_ReplaceExpressionVisitor.prototype = {};
  80337. A._FindDependenciesVisitor.prototype = {
  80338. visitEachRule$1(_, node) {
  80339. },
  80340. visitForRule$1(_, node) {
  80341. },
  80342. visitIfRule$1(_, node) {
  80343. },
  80344. visitWhileRule$1(_, node) {
  80345. },
  80346. visitUseRule$1(_, node) {
  80347. var t1 = node.url;
  80348. if (t1.get$scheme() !== "sass")
  80349. this._find_dependencies$_uses.add$1(0, t1);
  80350. else if (t1.toString$0(0) === "sass:meta")
  80351. this._metaNamespaces.add$1(0, node.namespace);
  80352. },
  80353. visitForwardRule$1(_, node) {
  80354. var t1 = node.url;
  80355. if (t1.get$scheme() !== "sass")
  80356. this._find_dependencies$_forwards.add$1(0, t1);
  80357. },
  80358. visitImportRule$1(_, node) {
  80359. var t1, t2, t3, _i, $import;
  80360. for (t1 = node.imports, t2 = t1.length, t3 = this._imports, _i = 0; _i < t2; ++_i) {
  80361. $import = t1[_i];
  80362. if ($import instanceof A.DynamicImport)
  80363. t3.add$1(0, A.Uri_parse($import.urlString));
  80364. }
  80365. },
  80366. visitIncludeRule$1(_, node) {
  80367. var url, _0_0, _0_4_isSet, _0_4, _0_7, t1, _0_40, t2, _0_7_isSet, url0, exception, _null = null;
  80368. if (node.name !== "load-css")
  80369. return;
  80370. if (!this._metaNamespaces.contains$1(0, node.namespace))
  80371. return;
  80372. _0_0 = node.$arguments.positional;
  80373. url = null;
  80374. _0_4_isSet = _0_0.length === 1;
  80375. _0_4 = _null;
  80376. _0_7 = _null;
  80377. t1 = false;
  80378. if (_0_4_isSet) {
  80379. _0_40 = _0_0[0];
  80380. t2 = _0_40;
  80381. _0_4 = t2;
  80382. _0_7_isSet = t2 instanceof A.StringExpression;
  80383. if (_0_7_isSet) {
  80384. type$.StringExpression._as(_0_4);
  80385. _0_7 = _0_4.text.get$asPlain();
  80386. t1 = _0_7;
  80387. t1 = t1 != null;
  80388. }
  80389. } else
  80390. _0_7_isSet = false;
  80391. if (t1) {
  80392. if (_0_7_isSet)
  80393. url0 = _0_7;
  80394. else {
  80395. t1 = _0_4_isSet ? _0_4 : _0_0[0];
  80396. _0_7 = type$.StringExpression._as(t1).text.get$asPlain();
  80397. url0 = _0_7;
  80398. }
  80399. url = url0 == null ? A._asString(url0) : url0;
  80400. try {
  80401. this._metaLoadCss.add$1(0, A.Uri_parse(url));
  80402. } catch (exception) {
  80403. if (!type$.FormatException._is(A.unwrapException(exception)))
  80404. throw exception;
  80405. }
  80406. }
  80407. }
  80408. };
  80409. A.DependencyReport.prototype = {};
  80410. A.__FindDependenciesVisitor_Object_RecursiveStatementVisitor.prototype = {};
  80411. A.IsCalculationSafeVisitor.prototype = {
  80412. visitBinaryOperationExpression$1(_, node) {
  80413. var t1;
  80414. if (B.Set_mqKz.contains$1(0, node.operator))
  80415. t1 = node.left.accept$1(this) || node.right.accept$1(this);
  80416. else
  80417. t1 = false;
  80418. return t1;
  80419. },
  80420. visitBooleanExpression$1(_, node) {
  80421. return false;
  80422. },
  80423. visitColorExpression$1(_, node) {
  80424. return false;
  80425. },
  80426. visitFunctionExpression$1(_, node) {
  80427. return true;
  80428. },
  80429. visitInterpolatedFunctionExpression$1(_, node) {
  80430. return true;
  80431. },
  80432. visitIfExpression$1(_, node) {
  80433. return true;
  80434. },
  80435. visitListExpression$1(_, node) {
  80436. var t1 = false;
  80437. if (node.separator === B.ListSeparator_nbm)
  80438. if (!node.hasBrackets) {
  80439. t1 = node.contents;
  80440. t1 = t1.length > 1 && B.JSArray_methods.every$1(t1, new A.IsCalculationSafeVisitor_visitListExpression_closure(this));
  80441. }
  80442. return t1;
  80443. },
  80444. visitMapExpression$1(_, node) {
  80445. return false;
  80446. },
  80447. visitNullExpression$1(_, node) {
  80448. return false;
  80449. },
  80450. visitNumberExpression$1(_, node) {
  80451. return true;
  80452. },
  80453. visitParenthesizedExpression$1(_, node) {
  80454. return node.expression.accept$1(this);
  80455. },
  80456. visitSelectorExpression$1(_, node) {
  80457. return false;
  80458. },
  80459. visitStringExpression$1(_, node) {
  80460. var text, t1, t2;
  80461. if (node.hasQuotes)
  80462. return false;
  80463. text = node.text.get$initialPlain();
  80464. t1 = false;
  80465. if (!B.JSString_methods.startsWith$1(text, "!"))
  80466. if (!B.JSString_methods.startsWith$1(text, "#")) {
  80467. t2 = text.length;
  80468. if ((1 >= t2 ? null : text.charCodeAt(1)) !== 43)
  80469. t1 = (3 >= t2 ? null : text.charCodeAt(3)) !== 40;
  80470. }
  80471. return t1;
  80472. },
  80473. visitSupportsExpression$1(_, node) {
  80474. return false;
  80475. },
  80476. visitUnaryOperationExpression$1(_, node) {
  80477. return false;
  80478. },
  80479. visitValueExpression$1(_, node) {
  80480. return false;
  80481. },
  80482. visitVariableExpression$1(_, node) {
  80483. return true;
  80484. }
  80485. };
  80486. A.IsCalculationSafeVisitor_visitListExpression_closure.prototype = {
  80487. call$1(expression) {
  80488. return expression.accept$1(this.$this);
  80489. },
  80490. $signature: 121
  80491. };
  80492. A.RecursiveStatementVisitor.prototype = {
  80493. visitAtRootRule$1(_, node) {
  80494. this.visitChildren$1(node.children);
  80495. },
  80496. visitAtRule$1(_, node) {
  80497. return A.NullableExtension_andThen(node.children, this.get$visitChildren());
  80498. },
  80499. visitContentBlock$1(_, node) {
  80500. return null;
  80501. },
  80502. visitContentRule$1(_, node) {
  80503. },
  80504. visitDebugRule$1(_, node) {
  80505. },
  80506. visitDeclaration$1(_, node) {
  80507. return A.NullableExtension_andThen(node.children, this.get$visitChildren());
  80508. },
  80509. visitEachRule$1(_, node) {
  80510. return this.visitChildren$1(node.children);
  80511. },
  80512. visitErrorRule$1(_, node) {
  80513. },
  80514. visitExtendRule$1(_, node) {
  80515. },
  80516. visitForRule$1(_, node) {
  80517. return this.visitChildren$1(node.children);
  80518. },
  80519. visitForwardRule$1(_, node) {
  80520. },
  80521. visitFunctionRule$1(_, node) {
  80522. return null;
  80523. },
  80524. visitIfRule$1(_, node) {
  80525. var t1, t2, _i, t3, t4, _i0, _0_0;
  80526. for (t1 = node.clauses, t2 = t1.length, _i = 0; _i < t2; ++_i)
  80527. for (t3 = t1[_i].children, t4 = t3.length, _i0 = 0; _i0 < t4; ++_i0)
  80528. t3[_i0].accept$1(this);
  80529. _0_0 = node.lastClause;
  80530. if (_0_0 != null)
  80531. for (t1 = _0_0.children, t2 = t1.length, _i = 0; _i < t2; ++_i)
  80532. t1[_i].accept$1(this);
  80533. },
  80534. visitImportRule$1(_, node) {
  80535. },
  80536. visitIncludeRule$1(_, node) {
  80537. return A.NullableExtension_andThen(node.content, this.get$visitContentBlock(this));
  80538. },
  80539. visitLoudComment$1(_, node) {
  80540. },
  80541. visitMediaRule$1(_, node) {
  80542. return this.visitChildren$1(node.children);
  80543. },
  80544. visitMixinRule$1(_, node) {
  80545. return null;
  80546. },
  80547. visitReturnRule$1(_, node) {
  80548. },
  80549. visitSilentComment$1(_, node) {
  80550. },
  80551. visitStyleRule$1(_, node) {
  80552. return this.visitChildren$1(node.children);
  80553. },
  80554. visitStylesheet$1(_, node) {
  80555. return this.visitChildren$1(node.children);
  80556. },
  80557. visitSupportsRule$1(_, node) {
  80558. return this.visitChildren$1(node.children);
  80559. },
  80560. visitUseRule$1(_, node) {
  80561. },
  80562. visitVariableDeclaration$1(_, node) {
  80563. },
  80564. visitWarnRule$1(_, node) {
  80565. },
  80566. visitWhileRule$1(_, node) {
  80567. return this.visitChildren$1(node.children);
  80568. },
  80569. visitChildren$1(children) {
  80570. var t1;
  80571. for (t1 = J.get$iterator$ax(children); t1.moveNext$0();)
  80572. t1.get$current(t1).accept$1(this);
  80573. }
  80574. };
  80575. A.ReplaceExpressionVisitor.prototype = {
  80576. visitBinaryOperationExpression$1(_, node) {
  80577. return new A.BinaryOperationExpression(node.operator, node.left.accept$1(this), node.right.accept$1(this), false);
  80578. },
  80579. visitBooleanExpression$1(_, node) {
  80580. return node;
  80581. },
  80582. visitColorExpression$1(_, node) {
  80583. return node;
  80584. },
  80585. visitFunctionExpression$1(_, node) {
  80586. var t1 = node.originalName,
  80587. t2 = this.visitArgumentInvocation$1(node.$arguments);
  80588. return new A.FunctionExpression(node.namespace, A.stringReplaceAllUnchecked(t1, "_", "-"), t1, t2, node.span);
  80589. },
  80590. visitInterpolatedFunctionExpression$1(_, node) {
  80591. return new A.InterpolatedFunctionExpression(this.visitInterpolation$1(node.name), this.visitArgumentInvocation$1(node.$arguments), node.span);
  80592. },
  80593. visitIfExpression$1(_, node) {
  80594. return new A.IfExpression(this.visitArgumentInvocation$1(node.$arguments), node.span);
  80595. },
  80596. visitListExpression$1(_, node) {
  80597. var t1 = node.contents;
  80598. return new A.ListExpression(A.List_List$unmodifiable(new A.MappedListIterable(t1, new A.ReplaceExpressionVisitor_visitListExpression_closure(this), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Expression>")), type$.Expression), node.separator, node.hasBrackets, node.span);
  80599. },
  80600. visitMapExpression$1(_, node) {
  80601. var t2, t3, _i, t4, key, value,
  80602. t1 = A._setArrayType([], type$.JSArray_Record_2_Expression_and_Expression);
  80603. for (t2 = node.pairs, t3 = t2.length, _i = 0; _i < t3; ++_i) {
  80604. t4 = t2[_i];
  80605. key = t4._0;
  80606. value = t4._1;
  80607. t1.push(new A._Record_2(key.accept$1(this), value.accept$1(this)));
  80608. }
  80609. return new A.MapExpression(A.List_List$unmodifiable(t1, type$.Record_2_Expression_and_Expression), node.span);
  80610. },
  80611. visitNullExpression$1(_, node) {
  80612. return node;
  80613. },
  80614. visitNumberExpression$1(_, node) {
  80615. return node;
  80616. },
  80617. visitParenthesizedExpression$1(_, node) {
  80618. return new A.ParenthesizedExpression(node.expression.accept$1(this), node.span);
  80619. },
  80620. visitSelectorExpression$1(_, node) {
  80621. return node;
  80622. },
  80623. visitStringExpression$1(_, node) {
  80624. return new A.StringExpression(this.visitInterpolation$1(node.text), node.hasQuotes);
  80625. },
  80626. visitSupportsExpression$1(_, node) {
  80627. return new A.SupportsExpression(this.visitSupportsCondition$1(node.condition));
  80628. },
  80629. visitUnaryOperationExpression$1(_, node) {
  80630. return new A.UnaryOperationExpression(node.operator, node.operand.accept$1(this), node.span);
  80631. },
  80632. visitValueExpression$1(_, node) {
  80633. return node;
  80634. },
  80635. visitVariableExpression$1(_, node) {
  80636. return node;
  80637. },
  80638. visitArgumentInvocation$1(invocation) {
  80639. var t5, t6, _this = this,
  80640. t1 = invocation.positional,
  80641. t2 = type$.String,
  80642. t3 = type$.Expression,
  80643. t4 = A.LinkedHashMap_LinkedHashMap$_empty(t2, t3);
  80644. for (t5 = A.MapExtensions_get_pairs(invocation.named, t2, t3), t5 = t5.get$iterator(t5); t5.moveNext$0();) {
  80645. t6 = t5.get$current(t5);
  80646. t4.$indexSet(0, t6._0, t6._1.accept$1(_this));
  80647. }
  80648. t5 = invocation.rest;
  80649. t5 = t5 == null ? null : t5.accept$1(_this);
  80650. t6 = invocation.keywordRest;
  80651. t6 = t6 == null ? null : t6.accept$1(_this);
  80652. return new A.ArgumentInvocation(A.List_List$unmodifiable(new A.MappedListIterable(t1, new A.ReplaceExpressionVisitor_visitArgumentInvocation_closure(_this), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Expression>")), t3), A.ConstantMap_ConstantMap$from(t4, t2, t3), t5, t6, invocation.span);
  80653. },
  80654. visitSupportsCondition$1(condition) {
  80655. var _this = this;
  80656. if (condition instanceof A.SupportsOperation)
  80657. return A.SupportsOperation$(_this.visitSupportsCondition$1(condition.left), _this.visitSupportsCondition$1(condition.right), condition.operator, condition.span);
  80658. else if (condition instanceof A.SupportsNegation)
  80659. return new A.SupportsNegation(_this.visitSupportsCondition$1(condition.condition), condition.span);
  80660. else if (condition instanceof A.SupportsInterpolation)
  80661. return new A.SupportsInterpolation(condition.expression.accept$1(_this), condition.span);
  80662. else if (condition instanceof A.SupportsDeclaration)
  80663. return new A.SupportsDeclaration(condition.name.accept$1(_this), condition.value.accept$1(_this), condition.span);
  80664. else
  80665. throw A.wrapException(A.SassException$("BUG: Unknown SupportsCondition " + condition.toString$0(0) + ".", condition.get$span(condition), null));
  80666. },
  80667. visitInterpolation$1(interpolation) {
  80668. var t1 = interpolation.contents;
  80669. return A.Interpolation$(new A.MappedListIterable(t1, new A.ReplaceExpressionVisitor_visitInterpolation_closure(this), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Object>")), interpolation.spans, interpolation.span);
  80670. }
  80671. };
  80672. A.ReplaceExpressionVisitor_visitListExpression_closure.prototype = {
  80673. call$1(item) {
  80674. return item.accept$1(this.$this);
  80675. },
  80676. $signature: 147
  80677. };
  80678. A.ReplaceExpressionVisitor_visitArgumentInvocation_closure.prototype = {
  80679. call$1(expression) {
  80680. return expression.accept$1(this.$this);
  80681. },
  80682. $signature: 147
  80683. };
  80684. A.ReplaceExpressionVisitor_visitInterpolation_closure.prototype = {
  80685. call$1(node) {
  80686. return node instanceof A.Expression ? node.accept$1(this.$this) : node;
  80687. },
  80688. $signature: 79
  80689. };
  80690. A.SelectorSearchVisitor.prototype = {
  80691. visitAttributeSelector$1(attribute) {
  80692. return null;
  80693. },
  80694. visitClassSelector$1(klass) {
  80695. return null;
  80696. },
  80697. visitIDSelector$1(id) {
  80698. return null;
  80699. },
  80700. visitParentSelector$1(placeholder) {
  80701. return null;
  80702. },
  80703. visitPlaceholderSelector$1(placeholder) {
  80704. return null;
  80705. },
  80706. visitTypeSelector$1(type) {
  80707. return null;
  80708. },
  80709. visitUniversalSelector$1(universal) {
  80710. return null;
  80711. },
  80712. visitComplexSelector$1(complex) {
  80713. return A.IterableExtension_search(complex.components, new A.SelectorSearchVisitor_visitComplexSelector_closure(this));
  80714. },
  80715. visitCompoundSelector$1(compound) {
  80716. return A.IterableExtension_search(compound.components, new A.SelectorSearchVisitor_visitCompoundSelector_closure(this));
  80717. },
  80718. visitPseudoSelector$1(pseudo) {
  80719. return A.NullableExtension_andThen(pseudo.selector, this.get$visitSelectorList());
  80720. },
  80721. visitSelectorList$1(list) {
  80722. return A.IterableExtension_search(list.components, this.get$visitComplexSelector());
  80723. }
  80724. };
  80725. A.SelectorSearchVisitor_visitComplexSelector_closure.prototype = {
  80726. call$1(component) {
  80727. return this.$this.visitCompoundSelector$1(component.selector);
  80728. },
  80729. $signature() {
  80730. return A._instanceType(this.$this)._eval$1("SelectorSearchVisitor.T?(ComplexSelectorComponent)");
  80731. }
  80732. };
  80733. A.SelectorSearchVisitor_visitCompoundSelector_closure.prototype = {
  80734. call$1(simple) {
  80735. return simple.accept$1(this.$this);
  80736. },
  80737. $signature() {
  80738. return A._instanceType(this.$this)._eval$1("SelectorSearchVisitor.T?(SimpleSelector)");
  80739. }
  80740. };
  80741. A.serialize_closure.prototype = {
  80742. call$1(codeUnit) {
  80743. return codeUnit > 127;
  80744. },
  80745. $signature: 47
  80746. };
  80747. A._SerializeVisitor.prototype = {
  80748. visitCssStylesheet$1(node) {
  80749. var t1, t2, t3, t4, t5, t6, previous, previous0, t7, _this = this;
  80750. for (t1 = J.get$iterator$ax(node.get$children(node)), t2 = !_this._inspect, t3 = _this._style === B.OutputStyle_1, t4 = !t3, t5 = type$.CssParentNode, t6 = _this._serialize$_buffer, previous = null; t1.moveNext$0();) {
  80751. previous0 = t1.get$current(t1);
  80752. if (t2)
  80753. t7 = t3 ? previous0.accept$1(B._IsInvisibleVisitor_true_true) : previous0.accept$1(B._IsInvisibleVisitor_true_false);
  80754. else
  80755. t7 = false;
  80756. if (t7)
  80757. continue;
  80758. if (previous != null) {
  80759. if (t5._is(previous) ? previous.get$isChildless() : !(previous instanceof A.ModifiableCssComment))
  80760. t6.writeCharCode$1(59);
  80761. if (_this._isTrailingComment$2(previous0, previous)) {
  80762. if (t4)
  80763. t6.writeCharCode$1(32);
  80764. } else {
  80765. if (t4)
  80766. t6.write$1(0, "\n");
  80767. if (previous.get$isGroupEnd())
  80768. if (t4)
  80769. t6.write$1(0, "\n");
  80770. }
  80771. }
  80772. previous0.accept$1(_this);
  80773. previous = previous0;
  80774. }
  80775. if (previous != null)
  80776. t1 = (t5._is(previous) ? previous.get$isChildless() : !(previous instanceof A.ModifiableCssComment)) && t4;
  80777. else
  80778. t1 = false;
  80779. if (t1)
  80780. t6.writeCharCode$1(59);
  80781. },
  80782. visitCssComment$1(node) {
  80783. this._serialize$_buffer.forSpan$2(node.span, new A._SerializeVisitor_visitCssComment_closure(this, node));
  80784. },
  80785. visitCssAtRule$1(node) {
  80786. var t1, _this = this;
  80787. _this._writeIndentation$0();
  80788. t1 = _this._serialize$_buffer;
  80789. t1.forSpan$2(node.span, new A._SerializeVisitor_visitCssAtRule_closure(_this, node));
  80790. if (!node.isChildless) {
  80791. if (_this._style !== B.OutputStyle_1)
  80792. t1.writeCharCode$1(32);
  80793. _this._serialize$_visitChildren$1(node);
  80794. }
  80795. },
  80796. visitCssMediaRule$1(node) {
  80797. var t1, _this = this;
  80798. _this._writeIndentation$0();
  80799. t1 = _this._serialize$_buffer;
  80800. t1.forSpan$2(node.span, new A._SerializeVisitor_visitCssMediaRule_closure(_this, node));
  80801. if (_this._style !== B.OutputStyle_1)
  80802. t1.writeCharCode$1(32);
  80803. _this._serialize$_visitChildren$1(node);
  80804. },
  80805. visitCssImport$1(node) {
  80806. this._writeIndentation$0();
  80807. this._serialize$_buffer.forSpan$2(node.span, new A._SerializeVisitor_visitCssImport_closure(this, node));
  80808. },
  80809. _writeImportUrl$1(url) {
  80810. var urlContents, maybeQuote, _this = this;
  80811. if (_this._style !== B.OutputStyle_1 || url.charCodeAt(0) !== 117) {
  80812. _this._serialize$_buffer.write$1(0, url);
  80813. return;
  80814. }
  80815. urlContents = B.JSString_methods.substring$2(url, 4, url.length - 1);
  80816. maybeQuote = urlContents.charCodeAt(0);
  80817. if (maybeQuote === 39 || maybeQuote === 34)
  80818. _this._serialize$_buffer.write$1(0, urlContents);
  80819. else
  80820. _this._visitQuotedString$1(urlContents);
  80821. },
  80822. visitCssKeyframeBlock$1(node) {
  80823. var t1, _this = this;
  80824. _this._writeIndentation$0();
  80825. t1 = _this._serialize$_buffer;
  80826. t1.forSpan$2(node.selector.span, new A._SerializeVisitor_visitCssKeyframeBlock_closure(_this, node));
  80827. if (_this._style !== B.OutputStyle_1)
  80828. t1.writeCharCode$1(32);
  80829. _this._serialize$_visitChildren$1(node);
  80830. },
  80831. _visitMediaQuery$1(query) {
  80832. var t1, _1_0, _2_0, condition, operator, t2, _this = this,
  80833. _0_0 = query.modifier;
  80834. if (_0_0 != null) {
  80835. t1 = _this._serialize$_buffer;
  80836. t1.write$1(0, _0_0);
  80837. t1.writeCharCode$1(32);
  80838. }
  80839. _1_0 = query.type;
  80840. if (_1_0 != null) {
  80841. t1 = _this._serialize$_buffer;
  80842. t1.write$1(0, _1_0);
  80843. if (query.conditions.length !== 0)
  80844. t1.write$1(0, " and ");
  80845. }
  80846. _2_0 = query.conditions;
  80847. if (_2_0.length === 1)
  80848. t1 = B.JSString_methods.startsWith$1(_2_0[0], "(not ");
  80849. else
  80850. t1 = false;
  80851. if (t1) {
  80852. t1 = _this._serialize$_buffer;
  80853. t1.write$1(0, "not ");
  80854. condition = B.JSArray_methods.get$first(_2_0);
  80855. t1.write$1(0, B.JSString_methods.substring$2(condition, 5, condition.length - 1));
  80856. } else {
  80857. operator = query.conjunction ? "and" : "or";
  80858. t1 = _this._style === B.OutputStyle_1 ? operator + " " : " " + operator + " ";
  80859. t2 = _this._serialize$_buffer;
  80860. _this._writeBetween$3(_2_0, t1, t2.get$write(t2));
  80861. }
  80862. },
  80863. visitCssStyleRule$1(node) {
  80864. var t1, _this = this;
  80865. _this._writeIndentation$0();
  80866. t1 = _this._serialize$_buffer;
  80867. t1.forSpan$2(node._style_rule$_selector._box$_inner.value.span, new A._SerializeVisitor_visitCssStyleRule_closure(_this, node));
  80868. if (_this._style !== B.OutputStyle_1)
  80869. t1.writeCharCode$1(32);
  80870. _this._serialize$_visitChildren$1(node);
  80871. },
  80872. visitCssSupportsRule$1(node) {
  80873. var t1, _this = this;
  80874. _this._writeIndentation$0();
  80875. t1 = _this._serialize$_buffer;
  80876. t1.forSpan$2(node.span, new A._SerializeVisitor_visitCssSupportsRule_closure(_this, node));
  80877. if (_this._style !== B.OutputStyle_1)
  80878. t1.writeCharCode$1(32);
  80879. _this._serialize$_visitChildren$1(node);
  80880. },
  80881. visitCssDeclaration$1(node) {
  80882. var error, stackTrace, error0, stackTrace0, t3, declSpecificities, t4, t5, t6, t7, _i, rule, ruleSpecificities, exception, _this = this,
  80883. t1 = node.interleavedRules,
  80884. t2 = t1.length;
  80885. if (t2 !== 0) {
  80886. t3 = node._parent;
  80887. t3.toString;
  80888. declSpecificities = _this._specificities$1(t3);
  80889. for (t3 = _this._serialize$_logger, t4 = node.span, t5 = type$.SourceSpan, t6 = type$.String, t7 = node.trace, _i = 0; _i < t2; ++_i) {
  80890. rule = t1[_i];
  80891. ruleSpecificities = _this._specificities$1(rule);
  80892. if (!declSpecificities.any$1(0, ruleSpecificities.get$contains(ruleSpecificities)))
  80893. continue;
  80894. A.WarnForDeprecation_warnForDeprecation(t3, B.Deprecation_u1l, string$.Sassx27s, new A.MultiSpan(t4, "declaration", A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_literal([rule.span, "nested rule"], t5, t6), t5, t6)), t7);
  80895. }
  80896. }
  80897. _this._writeIndentation$0();
  80898. t1 = node.name;
  80899. _this._serialize$_write$1(t1);
  80900. t2 = _this._serialize$_buffer;
  80901. t2.writeCharCode$1(58);
  80902. if (J.startsWith$1$s(t1.value, "--") && node.parsedAsCustomProperty)
  80903. t2.forSpan$2(node.value.span, new A._SerializeVisitor_visitCssDeclaration_closure(_this, node));
  80904. else {
  80905. if (_this._style !== B.OutputStyle_1)
  80906. t2.writeCharCode$1(32);
  80907. try {
  80908. t2.forSpan$2(node.valueSpanForMap, new A._SerializeVisitor_visitCssDeclaration_closure0(_this, node));
  80909. } catch (exception) {
  80910. t1 = A.unwrapException(exception);
  80911. if (t1 instanceof A.MultiSpanSassScriptException) {
  80912. error = t1;
  80913. stackTrace = A.getTraceFromException(exception);
  80914. A.throwWithTrace(A.MultiSpanSassException$(error.message, node.value.span, error.primaryLabel, error.secondarySpans, null), error, stackTrace);
  80915. } else if (t1 instanceof A.SassScriptException) {
  80916. error0 = t1;
  80917. stackTrace0 = A.getTraceFromException(exception);
  80918. t1 = error0.message;
  80919. A.throwWithTrace(new A.SassException(B.Set_empty, t1, node.value.span), error0, stackTrace0);
  80920. } else
  80921. throw exception;
  80922. }
  80923. }
  80924. },
  80925. _specificities$1(node) {
  80926. var $parent, t2, t3, _i,
  80927. t1 = this.get$_specificities();
  80928. if (node instanceof A.ModifiableCssStyleRule) {
  80929. t1 = A.NullableExtension_andThen(node._parent, t1);
  80930. $parent = t1 == null ? null : A.IterableIntegerExtension_get_max(t1);
  80931. if ($parent == null)
  80932. $parent = 0;
  80933. t1 = A.LinkedHashSet_LinkedHashSet$_empty(type$.int);
  80934. for (t2 = node._style_rule$_selector._box$_inner.value.components, t3 = t2.length, _i = 0; _i < t3; ++_i)
  80935. t1.add$1(0, $parent + t2[_i].get$specificity());
  80936. return t1;
  80937. } else {
  80938. t1 = A.NullableExtension_andThen(node.get$parent(node), t1);
  80939. return t1 == null ? B.Set_0 : t1;
  80940. }
  80941. },
  80942. _writeFoldedValue$1(node) {
  80943. var t1, t2, next, t3,
  80944. scanner = A.StringScanner$(type$.SassString._as(node.value.value)._string$_text, null, null);
  80945. for (t1 = scanner.string.length, t2 = this._serialize$_buffer; scanner._string_scanner$_position !== t1;) {
  80946. next = scanner.readChar$0();
  80947. if (next !== 10) {
  80948. t2.writeCharCode$1(next);
  80949. continue;
  80950. }
  80951. t2.writeCharCode$1(32);
  80952. while (true) {
  80953. t3 = scanner.peekChar$0();
  80954. if (!(t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12))
  80955. break;
  80956. scanner.readChar$0();
  80957. }
  80958. }
  80959. },
  80960. _writeReindentedValue$1(node) {
  80961. var _0_0, t1, _this = this,
  80962. value = type$.SassString._as(node.value.value)._string$_text;
  80963. $label0$0: {
  80964. _0_0 = _this._minimumIndentation$1(value);
  80965. if (_0_0 == null) {
  80966. _this._serialize$_buffer.write$1(0, value);
  80967. break $label0$0;
  80968. }
  80969. if (-1 === _0_0) {
  80970. t1 = _this._serialize$_buffer;
  80971. t1.write$1(0, A.trimAsciiRight(value, true));
  80972. t1.writeCharCode$1(32);
  80973. break $label0$0;
  80974. }
  80975. t1 = node.name.span;
  80976. t1 = t1.get$start(t1);
  80977. _this._writeWithIndent$2(value, Math.min(_0_0, t1.file.getColumn$1(t1.offset)));
  80978. }
  80979. },
  80980. _minimumIndentation$1(text) {
  80981. var character, t2, min, next, min0,
  80982. scanner = A.LineScanner$(text),
  80983. t1 = scanner.string.length;
  80984. while (true) {
  80985. if (scanner._string_scanner$_position !== t1) {
  80986. character = scanner.super$StringScanner$readChar();
  80987. scanner._adjustLineAndColumn$1(character);
  80988. t2 = character !== 10;
  80989. } else
  80990. t2 = false;
  80991. if (!t2)
  80992. break;
  80993. }
  80994. if (scanner._string_scanner$_position === t1)
  80995. return scanner.peekChar$1(-1) === 10 ? -1 : null;
  80996. for (min = null; scanner._string_scanner$_position !== t1;) {
  80997. for (; scanner._string_scanner$_position !== t1;) {
  80998. next = scanner.peekChar$0();
  80999. if (next !== 32 && next !== 9)
  81000. break;
  81001. scanner._adjustLineAndColumn$1(scanner.super$StringScanner$readChar());
  81002. }
  81003. if (scanner._string_scanner$_position === t1 || scanner.scanChar$1(10))
  81004. continue;
  81005. min0 = scanner._line_scanner$_column;
  81006. min = min == null ? min0 : Math.min(min, min0);
  81007. while (true) {
  81008. if (scanner._string_scanner$_position !== t1) {
  81009. character = scanner.super$StringScanner$readChar();
  81010. scanner._adjustLineAndColumn$1(character);
  81011. t2 = character !== 10;
  81012. } else
  81013. t2 = false;
  81014. if (!t2)
  81015. break;
  81016. }
  81017. }
  81018. return min == null ? -1 : min;
  81019. },
  81020. _writeWithIndent$2(text, minimumIndentation) {
  81021. var t1, t2, t3, character, lineStart, newlines, end,
  81022. scanner = A.LineScanner$(text);
  81023. for (t1 = scanner.string, t2 = t1.length, t3 = this._serialize$_buffer; scanner._string_scanner$_position !== t2;) {
  81024. character = scanner.super$StringScanner$readChar();
  81025. scanner._adjustLineAndColumn$1(character);
  81026. if (character === 10)
  81027. break;
  81028. t3.writeCharCode$1(character);
  81029. }
  81030. for (; true;) {
  81031. lineStart = scanner._string_scanner$_position;
  81032. for (newlines = 1; true;) {
  81033. if (scanner._string_scanner$_position === t2) {
  81034. t3.writeCharCode$1(32);
  81035. return;
  81036. }
  81037. $label0$2: {
  81038. character = scanner.super$StringScanner$readChar();
  81039. scanner._adjustLineAndColumn$1(character);
  81040. if (32 === character || 9 === character)
  81041. continue;
  81042. if (10 === character) {
  81043. lineStart = scanner._string_scanner$_position;
  81044. ++newlines;
  81045. break $label0$2;
  81046. }
  81047. break;
  81048. }
  81049. }
  81050. this._writeTimes$2(10, newlines);
  81051. this._writeIndentation$0();
  81052. end = scanner._string_scanner$_position;
  81053. t3.write$1(0, B.JSString_methods.substring$2(t1, lineStart + minimumIndentation, end));
  81054. for (; true;) {
  81055. if (scanner._string_scanner$_position === t2)
  81056. return;
  81057. character = scanner.super$StringScanner$readChar();
  81058. scanner._adjustLineAndColumn$1(character);
  81059. if (character === 10)
  81060. break;
  81061. t3.writeCharCode$1(character);
  81062. }
  81063. }
  81064. },
  81065. visitCalculation$1(value) {
  81066. var t2, _this = this,
  81067. t1 = _this._serialize$_buffer;
  81068. t1.write$1(0, value.name);
  81069. t1.writeCharCode$1(40);
  81070. t2 = _this._style === B.OutputStyle_1 ? "," : ", ";
  81071. _this._writeBetween$3(value.$arguments, t2, _this.get$_writeCalculationValue());
  81072. t1.writeCharCode$1(41);
  81073. },
  81074. _writeCalculationValue$1(value) {
  81075. var _2_4_isSet, _2_4, t1, _0_0, _1_0, first, rest, left, right, operator, parenthesizeLeft, operatorWhitespace, parenthesizeRight, t2, _this = this, _null = null;
  81076. $label1$1: {
  81077. _2_4_isSet = value instanceof A.SassNumber;
  81078. if (_2_4_isSet) {
  81079. _2_4 = value.get$hasComplexUnits();
  81080. t1 = _2_4 && !_this._inspect;
  81081. } else {
  81082. _2_4 = _null;
  81083. t1 = false;
  81084. }
  81085. if (t1)
  81086. throw A.wrapException(A.SassScriptException$(A.S(value) + " isn't a valid CSS value.", _null));
  81087. if (_2_4_isSet && !isFinite(value._number$_value)) {
  81088. $label0$0: {
  81089. _0_0 = value._number$_value;
  81090. if (1 / 0 === _0_0) {
  81091. _this._serialize$_buffer.write$1(0, "infinity");
  81092. break $label0$0;
  81093. }
  81094. if (-1 / 0 === _0_0) {
  81095. _this._serialize$_buffer.write$1(0, "-infinity");
  81096. break $label0$0;
  81097. }
  81098. if (isNaN(_0_0))
  81099. _this._serialize$_buffer.write$1(0, "NaN");
  81100. }
  81101. t1 = J.getInterceptor$x(value);
  81102. _this._writeCalculationUnits$2(t1.get$numeratorUnits(value), t1.get$denominatorUnits(value));
  81103. break $label1$1;
  81104. }
  81105. if (_2_4_isSet)
  81106. t1 = _2_4;
  81107. else
  81108. t1 = false;
  81109. if (t1) {
  81110. _this._writeNumber$1(value._number$_value);
  81111. t1 = J.getInterceptor$x(value);
  81112. _1_0 = t1.get$numeratorUnits(value);
  81113. if (_1_0.length >= 1) {
  81114. first = _1_0[0];
  81115. rest = B.JSArray_methods.sublist$1(_1_0, 1);
  81116. _this._serialize$_buffer.write$1(0, first);
  81117. _this._writeCalculationUnits$2(rest, t1.get$denominatorUnits(value));
  81118. } else
  81119. _this._writeCalculationUnits$2(A._setArrayType([], type$.JSArray_String), t1.get$denominatorUnits(value));
  81120. break $label1$1;
  81121. }
  81122. if (value instanceof A.Value) {
  81123. value.accept$1(_this);
  81124. break $label1$1;
  81125. }
  81126. t1 = value instanceof A.CalculationOperation;
  81127. left = _null;
  81128. right = _null;
  81129. if (t1) {
  81130. operator = value._operator;
  81131. left = value._left;
  81132. right = value._right;
  81133. right = right;
  81134. } else
  81135. operator = _null;
  81136. if (t1) {
  81137. parenthesizeLeft = left instanceof A.CalculationOperation && left._operator.precedence < operator.precedence;
  81138. if (parenthesizeLeft)
  81139. _this._serialize$_buffer.writeCharCode$1(40);
  81140. _this._writeCalculationValue$1(left);
  81141. if (parenthesizeLeft)
  81142. _this._serialize$_buffer.writeCharCode$1(41);
  81143. operatorWhitespace = _this._style !== B.OutputStyle_1 || operator.precedence === 1;
  81144. if (operatorWhitespace)
  81145. _this._serialize$_buffer.writeCharCode$1(32);
  81146. t1 = _this._serialize$_buffer;
  81147. t1.write$1(0, operator.operator);
  81148. if (operatorWhitespace)
  81149. t1.writeCharCode$1(32);
  81150. if (!(right instanceof A.CalculationOperation && _this._parenthesizeCalculationRhs$2(operator, right._operator))) {
  81151. parenthesizeRight = false;
  81152. if (operator === B.CalculationOperator_Qf1) {
  81153. if (right instanceof A.SassNumber)
  81154. t2 = isFinite(right._number$_value) ? right.get$hasComplexUnits() : right.get$hasUnits();
  81155. else
  81156. t2 = parenthesizeRight;
  81157. parenthesizeRight = t2;
  81158. }
  81159. } else
  81160. parenthesizeRight = true;
  81161. if (parenthesizeRight)
  81162. t1.writeCharCode$1(40);
  81163. _this._writeCalculationValue$1(right);
  81164. if (parenthesizeRight)
  81165. t1.writeCharCode$1(41);
  81166. }
  81167. }
  81168. },
  81169. _writeCalculationUnits$2(numeratorUnits, denominatorUnits) {
  81170. var t1, t2, t3, t4;
  81171. for (t1 = J.get$iterator$ax(numeratorUnits), t2 = this._serialize$_buffer, t3 = this._style !== B.OutputStyle_1; t1.moveNext$0();) {
  81172. t4 = t1.get$current(t1);
  81173. if (t3)
  81174. t2.writeCharCode$1(32);
  81175. t2.writeCharCode$1(42);
  81176. if (t3)
  81177. t2.writeCharCode$1(32);
  81178. t2.writeCharCode$1(49);
  81179. t2.write$1(0, t4);
  81180. }
  81181. for (t1 = J.get$iterator$ax(denominatorUnits); t1.moveNext$0();) {
  81182. t4 = t1.get$current(t1);
  81183. if (t3)
  81184. t2.writeCharCode$1(32);
  81185. t2.writeCharCode$1(47);
  81186. if (t3)
  81187. t2.writeCharCode$1(32);
  81188. t2.writeCharCode$1(49);
  81189. t2.write$1(0, t4);
  81190. }
  81191. },
  81192. _parenthesizeCalculationRhs$2(outer, right) {
  81193. var t1;
  81194. $label0$0: {
  81195. if (B.CalculationOperator_Qf1 === outer) {
  81196. t1 = true;
  81197. break $label0$0;
  81198. }
  81199. if (B.CalculationOperator_g2q === outer) {
  81200. t1 = false;
  81201. break $label0$0;
  81202. }
  81203. t1 = right === B.CalculationOperator_g2q || right === B.CalculationOperator_CxF;
  81204. break $label0$0;
  81205. }
  81206. return t1;
  81207. },
  81208. visitColor$1(value) {
  81209. var _0_0, _0_2, _0_6, t1, _0_4, _0_6_isSet, t2, _0_10_isSet, _0_10, _0_12_isSet, _0_14, _0_12, _0_14_isSet, t3, _0_10_isSet0, polar, t4, t5, _this = this, _null = null;
  81210. $label0$0: {
  81211. _0_0 = value._space;
  81212. _0_2 = B.RgbColorSpace_mlz === _0_0;
  81213. _0_6 = _null;
  81214. t1 = true;
  81215. if (!_0_2) {
  81216. _0_4 = B.HslColorSpace_gsm === _0_0;
  81217. _0_6_isSet = !_0_4;
  81218. if (_0_6_isSet) {
  81219. _0_6 = B.HwbColorSpace_06z === _0_0;
  81220. t1 = _0_6;
  81221. }
  81222. } else {
  81223. _0_4 = _null;
  81224. _0_6_isSet = false;
  81225. }
  81226. if (t1 && value.channel0OrNull != null && value.channel1OrNull != null && value.channel2OrNull != null && value.alphaOrNull != null) {
  81227. _this._writeLegacyColor$1(value);
  81228. break $label0$0;
  81229. }
  81230. if (_0_2) {
  81231. t1 = _this._serialize$_buffer;
  81232. t1.write$1(0, "rgb(");
  81233. _this._writeChannel$1(value.channel0OrNull);
  81234. t1.writeCharCode$1(32);
  81235. _this._writeChannel$1(value.channel1OrNull);
  81236. t1.writeCharCode$1(32);
  81237. _this._writeChannel$1(value.channel2OrNull);
  81238. _this._maybeWriteSlashAlpha$1(value);
  81239. t1.writeCharCode$1(41);
  81240. break $label0$0;
  81241. }
  81242. if (!_0_4)
  81243. t1 = _0_6_isSet ? _0_6 : B.HwbColorSpace_06z === _0_0;
  81244. else
  81245. t1 = true;
  81246. if (t1) {
  81247. t1 = _this._serialize$_buffer;
  81248. t1.write$1(0, _0_0);
  81249. t1.writeCharCode$1(40);
  81250. t2 = _this._style === B.OutputStyle_1 ? _null : "deg";
  81251. _this._writeChannel$2(value.channel0OrNull, t2);
  81252. t1.writeCharCode$1(32);
  81253. _this._writeChannel$2(value.channel1OrNull, "%");
  81254. t1.writeCharCode$1(32);
  81255. _this._writeChannel$2(value.channel2OrNull, "%");
  81256. _this._maybeWriteSlashAlpha$1(value);
  81257. t1.writeCharCode$1(41);
  81258. break $label0$0;
  81259. }
  81260. _0_10_isSet = B.LabColorSpace_IF2 !== _0_0;
  81261. if (_0_10_isSet) {
  81262. _0_10 = B.LchColorSpace_wv8 === _0_0;
  81263. t1 = _0_10;
  81264. } else {
  81265. _0_10 = _null;
  81266. t1 = true;
  81267. }
  81268. t2 = false;
  81269. if (t1)
  81270. if (!_this._inspect) {
  81271. t1 = value.channel0OrNull;
  81272. if (t1 == null)
  81273. t1 = 0;
  81274. if (t1 > 0 || A.fuzzyEquals(t1, 0))
  81275. t1 = t1 < 100 || A.fuzzyEquals(t1, 100);
  81276. else
  81277. t1 = false;
  81278. t1 = !t1 && value.channel1OrNull != null && value.channel2OrNull != null;
  81279. } else
  81280. t1 = t2;
  81281. else
  81282. t1 = t2;
  81283. _0_12_isSet = !t1;
  81284. _0_14 = _null;
  81285. if (_0_12_isSet) {
  81286. _0_12 = B.OklabColorSpace_yrt === _0_0;
  81287. t1 = false;
  81288. _0_14_isSet = !_0_12;
  81289. if (_0_14_isSet) {
  81290. _0_14 = B.OklchColorSpace_li8 === _0_0;
  81291. t2 = _0_14;
  81292. } else
  81293. t2 = true;
  81294. t3 = false;
  81295. if (t2)
  81296. if (!_this._inspect) {
  81297. t2 = value.channel0OrNull;
  81298. if (t2 == null)
  81299. t2 = 0;
  81300. if (t2 > 0 || A.fuzzyEquals(t2, 0))
  81301. t2 = t2 < 1 || A.fuzzyEquals(t2, 1);
  81302. else
  81303. t2 = false;
  81304. t2 = !t2 && value.channel1OrNull != null && value.channel2OrNull != null;
  81305. } else
  81306. t2 = t3;
  81307. else
  81308. t2 = t3;
  81309. if (!t2) {
  81310. if (_0_10_isSet) {
  81311. t2 = _0_10;
  81312. _0_10_isSet0 = _0_10_isSet;
  81313. } else {
  81314. _0_10 = B.LchColorSpace_wv8 === _0_0;
  81315. t2 = _0_10;
  81316. _0_10_isSet0 = true;
  81317. }
  81318. if (!t2)
  81319. if (_0_14_isSet)
  81320. t2 = _0_14;
  81321. else {
  81322. _0_14 = B.OklchColorSpace_li8 === _0_0;
  81323. t2 = _0_14;
  81324. _0_14_isSet = true;
  81325. }
  81326. else
  81327. t2 = true;
  81328. if (t2)
  81329. if (!_this._inspect) {
  81330. t1 = value.channel1OrNull;
  81331. t2 = t1 == null;
  81332. if (t2)
  81333. t1 = 0;
  81334. t1 = t1 < 0 && !A.fuzzyEquals(t1, 0) && value.channel0OrNull != null && !t2;
  81335. }
  81336. } else {
  81337. _0_10_isSet0 = _0_10_isSet;
  81338. t1 = true;
  81339. }
  81340. } else {
  81341. _0_12 = _null;
  81342. _0_10_isSet0 = _0_10_isSet;
  81343. _0_14_isSet = false;
  81344. t1 = true;
  81345. }
  81346. if (t1) {
  81347. t1 = _this._serialize$_buffer;
  81348. t1.write$1(0, "color-mix(in ");
  81349. t1.write$1(0, _0_0);
  81350. t2 = _this._style === B.OutputStyle_1;
  81351. t1.write$1(0, t2 ? "," : ", ");
  81352. _this._writeColorFunction$1(value.toSpace$1(B.XyzD65ColorSpace_4CA));
  81353. if (!t2)
  81354. t1.writeCharCode$1(32);
  81355. t1.write$1(0, "100%");
  81356. t1.write$1(0, t2 ? "," : ", ");
  81357. t1.write$1(0, t2 ? "red" : "black");
  81358. t1.writeCharCode$1(41);
  81359. break $label0$0;
  81360. }
  81361. t1 = true;
  81362. if (_0_10_isSet)
  81363. if (!(_0_12_isSet ? _0_12 : B.OklabColorSpace_yrt === _0_0))
  81364. if (!(_0_10_isSet0 ? _0_10 : B.LchColorSpace_wv8 === _0_0))
  81365. t1 = _0_14_isSet ? _0_14 : B.OklchColorSpace_li8 === _0_0;
  81366. if (t1) {
  81367. t1 = _this._serialize$_buffer;
  81368. t1.write$1(0, _0_0);
  81369. t1.writeCharCode$1(40);
  81370. t2 = _0_0._channels;
  81371. polar = t2[2].isPolarAngle;
  81372. t3 = false;
  81373. if (!_this._inspect) {
  81374. t4 = value.channel0OrNull;
  81375. if (t4 == null)
  81376. t4 = 0;
  81377. if (t4 > 0 || A.fuzzyEquals(t4, 0))
  81378. t4 = t4 < 100 || A.fuzzyEquals(t4, 100);
  81379. else
  81380. t4 = false;
  81381. if (t4) {
  81382. if (polar) {
  81383. t3 = value.channel1OrNull;
  81384. if (t3 == null)
  81385. t3 = 0;
  81386. t3 = t3 < 0 && !A.fuzzyEquals(t3, 0);
  81387. }
  81388. } else
  81389. t3 = true;
  81390. }
  81391. if (t3) {
  81392. t1.write$1(0, "from ");
  81393. t1.write$1(0, _this._style === B.OutputStyle_1 ? "red" : "black");
  81394. t1.writeCharCode$1(32);
  81395. }
  81396. t3 = _this._style !== B.OutputStyle_1;
  81397. t4 = t3 && value.channel0OrNull != null;
  81398. t5 = value.channel0OrNull;
  81399. if (t4) {
  81400. t2 = type$.LinearChannel._as(t2[0]);
  81401. _this._writeNumber$1((t5 == null ? 0 : t5) * 100 / t2.max);
  81402. t1.writeCharCode$1(37);
  81403. } else
  81404. _this._writeChannel$1(t5);
  81405. t1.writeCharCode$1(32);
  81406. _this._writeChannel$1(value.channel1OrNull);
  81407. t1.writeCharCode$1(32);
  81408. t2 = polar && t3 ? "deg" : _null;
  81409. _this._writeChannel$2(value.channel2OrNull, t2);
  81410. _this._maybeWriteSlashAlpha$1(value);
  81411. t1.writeCharCode$1(41);
  81412. break $label0$0;
  81413. }
  81414. _this._writeColorFunction$1(value);
  81415. }
  81416. },
  81417. _writeChannel$2(channel, unit) {
  81418. var _this = this;
  81419. if (channel == null)
  81420. _this._serialize$_buffer.write$1(0, "none");
  81421. else if (isFinite(channel)) {
  81422. _this._writeNumber$1(channel);
  81423. if (unit != null)
  81424. _this._serialize$_buffer.write$1(0, unit);
  81425. } else
  81426. _this.visitNumber$1(A.SassNumber_SassNumber(channel, unit));
  81427. },
  81428. _writeChannel$1(channel) {
  81429. return this._writeChannel$2(channel, null);
  81430. },
  81431. _writeLegacyColor$1(color) {
  81432. var rgb, t3, red, green, blue, hsl, hue, saturation, lightness, hwb, _0_0, format, _1_0, _this = this,
  81433. t1 = color.alphaOrNull,
  81434. t2 = t1 == null,
  81435. opaque = A.fuzzyEquals(t2 ? 0 : t1, 1);
  81436. if (!color.get$isInGamut() && !_this._inspect) {
  81437. _this._writeHsl$1(color);
  81438. return;
  81439. }
  81440. if (_this._style === B.OutputStyle_1) {
  81441. rgb = color.toSpace$1(B.RgbColorSpace_mlz);
  81442. if (opaque && _this._tryIntegerRgb$1(rgb))
  81443. return;
  81444. t3 = rgb.channel0OrNull;
  81445. red = _this._writeNumberToString$1(t3 == null ? 0 : t3);
  81446. t3 = rgb.channel1OrNull;
  81447. green = _this._writeNumberToString$1(t3 == null ? 0 : t3);
  81448. t3 = rgb.channel2OrNull;
  81449. blue = _this._writeNumberToString$1(t3 == null ? 0 : t3);
  81450. hsl = color.toSpace$1(B.HslColorSpace_gsm);
  81451. t3 = hsl.channel0OrNull;
  81452. hue = _this._writeNumberToString$1(t3 == null ? 0 : t3);
  81453. t3 = hsl.channel1OrNull;
  81454. saturation = _this._writeNumberToString$1(t3 == null ? 0 : t3);
  81455. t3 = hsl.channel2OrNull;
  81456. lightness = _this._writeNumberToString$1(t3 == null ? 0 : t3);
  81457. t3 = _this._serialize$_buffer;
  81458. if (red.length + green.length + blue.length <= hue.length + saturation.length + lightness.length + 2) {
  81459. t3.write$1(0, opaque ? "rgb(" : "rgba(");
  81460. t3.write$1(0, red);
  81461. t3.writeCharCode$1(44);
  81462. t3.write$1(0, green);
  81463. t3.writeCharCode$1(44);
  81464. t3.write$1(0, blue);
  81465. } else {
  81466. t3.write$1(0, opaque ? "hsl(" : "hsla(");
  81467. t3.write$1(0, hue);
  81468. t3.writeCharCode$1(44);
  81469. t3.write$1(0, saturation);
  81470. t3.write$1(0, "%,");
  81471. t3.write$1(0, lightness);
  81472. t3.writeCharCode$1(37);
  81473. }
  81474. if (!opaque) {
  81475. t3.writeCharCode$1(44);
  81476. _this._writeNumber$1(t2 ? 0 : t1);
  81477. }
  81478. t3.writeCharCode$1(41);
  81479. return;
  81480. }
  81481. t3 = color._space;
  81482. if (t3 === B.HslColorSpace_gsm) {
  81483. _this._writeHsl$1(color);
  81484. return;
  81485. } else if (_this._inspect && t3 === B.HwbColorSpace_06z) {
  81486. t3 = _this._serialize$_buffer;
  81487. t3.write$1(0, "hwb(");
  81488. hwb = color.toSpace$1(B.HwbColorSpace_06z);
  81489. _this._writeNumber$1(hwb.channel$1(0, "hue"));
  81490. t3.writeCharCode$1(32);
  81491. _this._writeNumber$1(hwb.channel$1(0, "whiteness"));
  81492. t3.writeCharCode$1(37);
  81493. t3.writeCharCode$1(32);
  81494. _this._writeNumber$1(hwb.channel$1(0, "blackness"));
  81495. t3.writeCharCode$1(37);
  81496. if (!A.fuzzyEquals(t2 ? 0 : t1, 1)) {
  81497. t3.write$1(0, " / ");
  81498. _this._writeNumber$1(t2 ? 0 : t1);
  81499. }
  81500. t3.writeCharCode$1(41);
  81501. return;
  81502. }
  81503. _0_0 = color.format;
  81504. if (B.C__ColorFormatEnum === _0_0) {
  81505. _this._writeRgb$1(color);
  81506. return;
  81507. }
  81508. t1 = _0_0 instanceof A.SpanColorFormat;
  81509. format = t1 ? _0_0 : null;
  81510. if (t1) {
  81511. t1 = format._color$_span;
  81512. _this._serialize$_buffer.write$1(0, A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1.file._decodedChars, t1._file$_start, t1._end), 0, null));
  81513. return;
  81514. }
  81515. if (opaque) {
  81516. rgb = color.toSpace$1(B.RgbColorSpace_mlz);
  81517. _1_0 = $.$get$namesByColor().$index(0, rgb);
  81518. if (_1_0 != null) {
  81519. _this._serialize$_buffer.write$1(0, _1_0);
  81520. return;
  81521. }
  81522. if (_this._canUseHex$1(rgb)) {
  81523. _this._serialize$_buffer.writeCharCode$1(35);
  81524. t1 = rgb.channel0OrNull;
  81525. _this._writeHexComponent$1(B.JSNumber_methods.round$0(t1 == null ? 0 : t1));
  81526. t1 = rgb.channel1OrNull;
  81527. _this._writeHexComponent$1(B.JSNumber_methods.round$0(t1 == null ? 0 : t1));
  81528. t1 = rgb.channel2OrNull;
  81529. _this._writeHexComponent$1(B.JSNumber_methods.round$0(t1 == null ? 0 : t1));
  81530. return;
  81531. }
  81532. }
  81533. if (t3 === B.HwbColorSpace_06z)
  81534. _this._writeHsl$1(color);
  81535. else
  81536. _this._writeRgb$1(color);
  81537. },
  81538. _tryIntegerRgb$1(rgb) {
  81539. var t1, redInt, greenInt, blueInt, shortHex, _0_0, t2, t3, $name, _this = this;
  81540. if (!_this._canUseHex$1(rgb))
  81541. return false;
  81542. t1 = rgb.channel0OrNull;
  81543. redInt = B.JSNumber_methods.round$0(t1 == null ? 0 : t1);
  81544. t1 = rgb.channel1OrNull;
  81545. greenInt = B.JSNumber_methods.round$0(t1 == null ? 0 : t1);
  81546. t1 = rgb.channel2OrNull;
  81547. blueInt = B.JSNumber_methods.round$0(t1 == null ? 0 : t1);
  81548. t1 = redInt & 15;
  81549. shortHex = t1 === B.JSInt_methods._shrOtherPositive$1(redInt, 4) && (greenInt & 15) === B.JSInt_methods._shrOtherPositive$1(greenInt, 4) && (blueInt & 15) === B.JSInt_methods._shrOtherPositive$1(blueInt, 4);
  81550. _0_0 = $.$get$namesByColor().$index(0, rgb);
  81551. t2 = false;
  81552. if (_0_0 != null) {
  81553. t3 = _0_0.length;
  81554. t2 = t3 <= (shortHex ? 4 : 7);
  81555. $name = _0_0;
  81556. } else
  81557. $name = null;
  81558. if (t2)
  81559. _this._serialize$_buffer.write$1(0, $name);
  81560. else {
  81561. t2 = _this._serialize$_buffer;
  81562. if (shortHex) {
  81563. t2.writeCharCode$1(35);
  81564. t2.writeCharCode$1(A.hexCharFor(t1));
  81565. t2.writeCharCode$1(A.hexCharFor(greenInt & 15));
  81566. t2.writeCharCode$1(A.hexCharFor(blueInt & 15));
  81567. } else {
  81568. t2.writeCharCode$1(35);
  81569. _this._writeHexComponent$1(redInt);
  81570. _this._writeHexComponent$1(greenInt);
  81571. _this._writeHexComponent$1(blueInt);
  81572. }
  81573. }
  81574. return true;
  81575. },
  81576. _canUseHex$1(rgb) {
  81577. var t2,
  81578. t1 = rgb.channel0OrNull;
  81579. if (t1 == null)
  81580. t1 = 0;
  81581. if (A.fuzzyIsInt(t1))
  81582. t1 = (t1 > 0 || A.fuzzyEquals(t1, 0)) && t1 < 256 && !A.fuzzyEquals(t1, 256);
  81583. else
  81584. t1 = false;
  81585. t2 = false;
  81586. if (t1) {
  81587. t1 = rgb.channel1OrNull;
  81588. if (t1 == null)
  81589. t1 = 0;
  81590. if (A.fuzzyIsInt(t1))
  81591. t1 = (t1 > 0 || A.fuzzyEquals(t1, 0)) && t1 < 256 && !A.fuzzyEquals(t1, 256);
  81592. else
  81593. t1 = false;
  81594. if (t1) {
  81595. t1 = rgb.channel2OrNull;
  81596. if (t1 == null)
  81597. t1 = 0;
  81598. if (A.fuzzyIsInt(t1))
  81599. t1 = (t1 > 0 || A.fuzzyEquals(t1, 0)) && t1 < 256 && !A.fuzzyEquals(t1, 256);
  81600. else
  81601. t1 = t2;
  81602. } else
  81603. t1 = t2;
  81604. } else
  81605. t1 = t2;
  81606. return t1;
  81607. },
  81608. _writeRgb$1(color) {
  81609. var t4, _this = this,
  81610. t1 = color.alphaOrNull,
  81611. t2 = t1 == null,
  81612. opaque = A.fuzzyEquals(t2 ? 0 : t1, 1),
  81613. rgb = color.toSpace$1(B.RgbColorSpace_mlz),
  81614. t3 = _this._serialize$_buffer;
  81615. t3.write$1(0, opaque ? "rgb(" : "rgba(");
  81616. _this._writeNumber$1(rgb.channel$1(0, "red"));
  81617. t4 = _this._style === B.OutputStyle_1;
  81618. t3.write$1(0, t4 ? "," : ", ");
  81619. _this._writeNumber$1(rgb.channel$1(0, "green"));
  81620. t3.write$1(0, t4 ? "," : ", ");
  81621. _this._writeNumber$1(rgb.channel$1(0, "blue"));
  81622. if (!opaque) {
  81623. t3.write$1(0, t4 ? "," : ", ");
  81624. _this._writeNumber$1(t2 ? 0 : t1);
  81625. }
  81626. t3.writeCharCode$1(41);
  81627. },
  81628. _writeHsl$1(color) {
  81629. var t4, _this = this,
  81630. t1 = color.alphaOrNull,
  81631. t2 = t1 == null,
  81632. opaque = A.fuzzyEquals(t2 ? 0 : t1, 1),
  81633. hsl = color.toSpace$1(B.HslColorSpace_gsm),
  81634. t3 = _this._serialize$_buffer;
  81635. t3.write$1(0, opaque ? "hsl(" : "hsla(");
  81636. _this._writeChannel$1(hsl.channel$1(0, "hue"));
  81637. t4 = _this._style === B.OutputStyle_1;
  81638. t3.write$1(0, t4 ? "," : ", ");
  81639. _this._writeChannel$2(hsl.channel$1(0, "saturation"), "%");
  81640. t3.write$1(0, t4 ? "," : ", ");
  81641. _this._writeChannel$2(hsl.channel$1(0, "lightness"), "%");
  81642. if (!opaque) {
  81643. t3.write$1(0, t4 ? "," : ", ");
  81644. _this._writeNumber$1(t2 ? 0 : t1);
  81645. }
  81646. t3.writeCharCode$1(41);
  81647. },
  81648. _writeColorFunction$1(color) {
  81649. var _this = this,
  81650. t1 = _this._serialize$_buffer;
  81651. t1.write$1(0, "color(");
  81652. t1.write$1(0, color._space);
  81653. t1.writeCharCode$1(32);
  81654. _this._writeBetween$3(color.get$channelsOrNull(), " ", _this.get$_writeChannel());
  81655. _this._maybeWriteSlashAlpha$1(color);
  81656. t1.writeCharCode$1(41);
  81657. },
  81658. _writeHexComponent$1(color) {
  81659. var t1 = this._serialize$_buffer;
  81660. t1.writeCharCode$1(A.hexCharFor(B.JSInt_methods._shrOtherPositive$1(color, 4)));
  81661. t1.writeCharCode$1(A.hexCharFor(color & 15));
  81662. },
  81663. _maybeWriteSlashAlpha$1(color) {
  81664. var t2, t3, _this = this,
  81665. t1 = color.alphaOrNull;
  81666. if (A.fuzzyEquals(t1 == null ? 0 : t1, 1))
  81667. return;
  81668. t2 = _this._style !== B.OutputStyle_1;
  81669. if (t2)
  81670. _this._serialize$_buffer.writeCharCode$1(32);
  81671. t3 = _this._serialize$_buffer;
  81672. t3.writeCharCode$1(47);
  81673. if (t2)
  81674. t3.writeCharCode$1(32);
  81675. _this._writeChannel$1(t1);
  81676. },
  81677. visitList$1(value) {
  81678. var t2, singleton, t3, t4, t5, _this = this,
  81679. t1 = value._hasBrackets;
  81680. if (t1)
  81681. _this._serialize$_buffer.writeCharCode$1(91);
  81682. else if (value._list$_contents.length === 0) {
  81683. if (!_this._inspect)
  81684. throw A.wrapException(A.SassScriptException$("() isn't a valid CSS value.", null));
  81685. _this._serialize$_buffer.write$1(0, "()");
  81686. return;
  81687. }
  81688. t2 = _this._inspect;
  81689. singleton = false;
  81690. if (t2)
  81691. if (value._list$_contents.length === 1) {
  81692. t3 = value._separator;
  81693. t3 = t3 === B.ListSeparator_ECn || t3 === B.ListSeparator_cQA;
  81694. singleton = t3;
  81695. }
  81696. if (singleton && !t1)
  81697. _this._serialize$_buffer.writeCharCode$1(40);
  81698. t3 = value._list$_contents;
  81699. t3 = t2 ? t3 : new A.WhereIterable(t3, new A._SerializeVisitor_visitList_closure(), A._arrayInstanceType(t3)._eval$1("WhereIterable<1>"));
  81700. t4 = value._separator;
  81701. t5 = _this._separatorString$1(t4);
  81702. _this._writeBetween$3(t3, t5, t2 ? new A._SerializeVisitor_visitList_closure0(_this, value) : new A._SerializeVisitor_visitList_closure1(_this));
  81703. if (singleton) {
  81704. t2 = _this._serialize$_buffer;
  81705. t2.write$1(0, t4.separator);
  81706. if (!t1)
  81707. t2.writeCharCode$1(41);
  81708. }
  81709. if (t1)
  81710. _this._serialize$_buffer.writeCharCode$1(93);
  81711. },
  81712. _separatorString$1(separator) {
  81713. var t1;
  81714. $label0$0: {
  81715. if (B.ListSeparator_ECn === separator) {
  81716. t1 = this._style === B.OutputStyle_1 ? "," : ", ";
  81717. break $label0$0;
  81718. }
  81719. if (B.ListSeparator_cQA === separator) {
  81720. t1 = this._style === B.OutputStyle_1 ? "/" : " / ";
  81721. break $label0$0;
  81722. }
  81723. if (B.ListSeparator_nbm === separator) {
  81724. t1 = " ";
  81725. break $label0$0;
  81726. }
  81727. t1 = "";
  81728. break $label0$0;
  81729. }
  81730. return t1;
  81731. },
  81732. _elementNeedsParens$2(separator, value) {
  81733. var t1;
  81734. $label1$1: {
  81735. if (value instanceof A.SassList && value._list$_contents.length > 1 && !value._hasBrackets) {
  81736. $label0$0: {
  81737. if (B.ListSeparator_ECn === separator) {
  81738. t1 = value._separator === B.ListSeparator_ECn;
  81739. break $label0$0;
  81740. }
  81741. if (B.ListSeparator_cQA === separator) {
  81742. t1 = value._separator;
  81743. t1 = t1 === B.ListSeparator_ECn || t1 === B.ListSeparator_cQA;
  81744. break $label0$0;
  81745. }
  81746. t1 = value._separator !== B.ListSeparator_undecided_null_undecided;
  81747. break $label0$0;
  81748. }
  81749. break $label1$1;
  81750. }
  81751. t1 = false;
  81752. break $label1$1;
  81753. }
  81754. return t1;
  81755. },
  81756. visitMap$1(map) {
  81757. var t1, t2, _this = this;
  81758. if (!_this._inspect)
  81759. throw A.wrapException(A.SassScriptException$(map.toString$0(0) + " isn't a valid CSS value.", null));
  81760. t1 = _this._serialize$_buffer;
  81761. t1.writeCharCode$1(40);
  81762. t2 = map._map$_contents;
  81763. _this._writeBetween$3(t2.get$entries(t2), ", ", new A._SerializeVisitor_visitMap_closure(_this));
  81764. t1.writeCharCode$1(41);
  81765. },
  81766. _writeMapElement$1(value) {
  81767. var needsParens = value instanceof A.SassList && value._separator === B.ListSeparator_ECn && !value._hasBrackets;
  81768. if (needsParens)
  81769. this._serialize$_buffer.writeCharCode$1(40);
  81770. value.accept$1(this);
  81771. if (needsParens)
  81772. this._serialize$_buffer.writeCharCode$1(41);
  81773. },
  81774. visitNumber$1(value) {
  81775. var before, after, t1, _1_0, _this = this,
  81776. _0_0 = value.asSlash;
  81777. if (type$.Record_2_nullable_Object_and_nullable_Object._is(_0_0)) {
  81778. before = _0_0._0;
  81779. after = _0_0._1;
  81780. _this.visitNumber$1(before);
  81781. _this._serialize$_buffer.writeCharCode$1(47);
  81782. _this.visitNumber$1(after);
  81783. return;
  81784. }
  81785. t1 = value._number$_value;
  81786. if (!isFinite(t1)) {
  81787. _this.visitCalculation$1(new A.SassCalculation("calc", A.List_List$unmodifiable(A._setArrayType([value], type$.JSArray_Object), type$.Object)));
  81788. return;
  81789. }
  81790. if (value.get$hasComplexUnits()) {
  81791. if (!_this._inspect)
  81792. throw A.wrapException(A.SassScriptException$(value.toString$0(0) + " isn't a valid CSS value.", null));
  81793. _this.visitCalculation$1(new A.SassCalculation("calc", A.List_List$unmodifiable(A._setArrayType([value], type$.JSArray_Object), type$.Object)));
  81794. } else {
  81795. _this._writeNumber$1(t1);
  81796. _1_0 = value.get$numeratorUnits(value);
  81797. if (_1_0.length === 1)
  81798. _this._serialize$_buffer.write$1(0, _1_0[0]);
  81799. }
  81800. },
  81801. _writeNumberToString$1(number) {
  81802. var t1 = new A.StringBuffer("");
  81803. this._writeNumber$2(number, new A.NoSourceMapBuffer(t1));
  81804. t1 = t1._contents;
  81805. return t1.charCodeAt(0) == 0 ? t1 : t1;
  81806. },
  81807. _writeNumber$2(number, buffer) {
  81808. var _0_0, text, _this = this;
  81809. if (buffer == null)
  81810. buffer = _this._serialize$_buffer;
  81811. _0_0 = A.fuzzyAsInt(number);
  81812. if (_0_0 != null) {
  81813. buffer.write$1(0, _this._removeExponent$1(B.JSInt_methods.toString$0(_0_0)));
  81814. return;
  81815. }
  81816. text = _this._removeExponent$1(B.JSNumber_methods.toString$0(number));
  81817. if (text.length < 12) {
  81818. buffer.write$1(0, _this._style === B.OutputStyle_1 && text.charCodeAt(0) === 48 ? B.JSString_methods.substring$1(text, 1) : text);
  81819. return;
  81820. }
  81821. _this._writeRounded$2(text, buffer);
  81822. },
  81823. _writeNumber$1(number) {
  81824. return this._writeNumber$2(number, null);
  81825. },
  81826. _removeExponent$1(text) {
  81827. var buffer, t2, t3, additionalZeroes,
  81828. negative = text.charCodeAt(0) === 45,
  81829. exponent = A._Cell$(),
  81830. t1 = text.length,
  81831. i = 0;
  81832. while (true) {
  81833. if (!(i < t1)) {
  81834. buffer = null;
  81835. break;
  81836. }
  81837. c$0: {
  81838. if (text.charCodeAt(i) !== 101)
  81839. break c$0;
  81840. buffer = new A.StringBuffer("");
  81841. t2 = buffer._contents = "" + A.Primitives_stringFromCharCode(text.charCodeAt(0));
  81842. if (negative) {
  81843. t2 += A.Primitives_stringFromCharCode(text.charCodeAt(1));
  81844. buffer._contents = t2;
  81845. if (i > 3)
  81846. buffer._contents = t2 + B.JSString_methods.substring$2(text, 3, i);
  81847. } else if (i > 2)
  81848. buffer._contents = t2 + B.JSString_methods.substring$2(text, 2, i);
  81849. exponent.__late_helper$_value = A.int_parse(B.JSString_methods.substring$2(text, i + 1, t1), null);
  81850. break;
  81851. }
  81852. ++i;
  81853. }
  81854. if (buffer == null)
  81855. return text;
  81856. if (exponent._readLocal$0() > 0) {
  81857. t1 = exponent._readLocal$0();
  81858. t2 = buffer._contents;
  81859. t3 = negative ? 1 : 0;
  81860. additionalZeroes = t1 - (t2.length - 1 - t3);
  81861. for (t1 = t2, i = 0; i < additionalZeroes; ++i) {
  81862. t1 = A.Primitives_stringFromCharCode(48);
  81863. t1 = buffer._contents += t1;
  81864. }
  81865. return t1.charCodeAt(0) == 0 ? t1 : t1;
  81866. } else {
  81867. negative = text.charCodeAt(0) === 45;
  81868. t1 = (negative ? "" + A.Primitives_stringFromCharCode(45) : "") + "0.";
  81869. i = -1;
  81870. while (true) {
  81871. t2 = exponent.__late_helper$_value;
  81872. if (t2 === exponent)
  81873. A.throwExpression(A.LateError$localNI(""));
  81874. if (!(i > t2))
  81875. break;
  81876. t1 += A.Primitives_stringFromCharCode(48);
  81877. --i;
  81878. }
  81879. if (negative) {
  81880. t2 = buffer._contents;
  81881. t2 = B.JSString_methods.substring$1(t2.charCodeAt(0) == 0 ? t2 : t2, 1);
  81882. } else
  81883. t2 = buffer;
  81884. t2 = t1 + A.S(t2);
  81885. return t2.charCodeAt(0) == 0 ? t2 : t2;
  81886. }
  81887. },
  81888. _writeRounded$2(text, buffer) {
  81889. var t1, digits, negative, textIndex, digitsIndex, textIndex0, codeUnit, digitsIndex0, indexAfterPrecision, digitsIndex1, newDigit, writtenIndex;
  81890. if (B.JSString_methods.endsWith$1(text, ".0")) {
  81891. buffer.write$1(0, B.JSString_methods.substring$2(text, 0, text.length - 2));
  81892. return;
  81893. }
  81894. t1 = text.length;
  81895. digits = new Uint8Array(t1 + 1);
  81896. negative = text.charCodeAt(0) === 45;
  81897. textIndex = negative ? 1 : 0;
  81898. for (digitsIndex = 1; true; textIndex = textIndex0, digitsIndex = digitsIndex0) {
  81899. if (textIndex === t1) {
  81900. buffer.write$1(0, text);
  81901. return;
  81902. }
  81903. textIndex0 = textIndex + 1;
  81904. codeUnit = text.charCodeAt(textIndex);
  81905. if (codeUnit === 46) {
  81906. textIndex = textIndex0;
  81907. break;
  81908. }
  81909. digitsIndex0 = digitsIndex + 1;
  81910. digits[digitsIndex] = codeUnit - 48;
  81911. }
  81912. indexAfterPrecision = textIndex + 10;
  81913. if (indexAfterPrecision >= t1) {
  81914. buffer.write$1(0, text);
  81915. return;
  81916. }
  81917. for (digitsIndex0 = digitsIndex; textIndex < indexAfterPrecision; textIndex = textIndex0, digitsIndex0 = digitsIndex1) {
  81918. digitsIndex1 = digitsIndex0 + 1;
  81919. textIndex0 = textIndex + 1;
  81920. digits[digitsIndex0] = text.charCodeAt(textIndex) - 48;
  81921. }
  81922. if (text.charCodeAt(textIndex) - 48 >= 5)
  81923. for (; true; digitsIndex0 = digitsIndex1) {
  81924. digitsIndex1 = digitsIndex0 - 1;
  81925. newDigit = digits[digitsIndex1] + 1;
  81926. digits[digitsIndex1] = newDigit;
  81927. if (newDigit !== 10)
  81928. break;
  81929. }
  81930. for (; digitsIndex0 < digitsIndex; ++digitsIndex0)
  81931. digits[digitsIndex0] = 0;
  81932. while (true) {
  81933. t1 = digitsIndex0 > digitsIndex;
  81934. if (!(t1 && digits[digitsIndex0 - 1] === 0))
  81935. break;
  81936. --digitsIndex0;
  81937. }
  81938. if (digitsIndex0 === 2 && digits[0] === 0 && digits[1] === 0) {
  81939. buffer.writeCharCode$1(48);
  81940. return;
  81941. }
  81942. if (negative)
  81943. buffer.writeCharCode$1(45);
  81944. if (digits[0] === 0)
  81945. writtenIndex = this._style === B.OutputStyle_1 && digits[1] === 0 ? 2 : 1;
  81946. else
  81947. writtenIndex = 0;
  81948. for (; writtenIndex < digitsIndex; ++writtenIndex)
  81949. buffer.writeCharCode$1(48 + digits[writtenIndex]);
  81950. if (t1) {
  81951. buffer.writeCharCode$1(46);
  81952. for (; writtenIndex < digitsIndex0; ++writtenIndex)
  81953. buffer.writeCharCode$1(48 + digits[writtenIndex]);
  81954. }
  81955. },
  81956. _visitQuotedString$2$forceDoubleQuote(string, forceDoubleQuote) {
  81957. var t1, includesSingleQuote, includesDoubleQuote, i, char, _1_2, _1_4, _0_0, quote, _this = this,
  81958. buffer = forceDoubleQuote ? _this._serialize$_buffer : new A.StringBuffer("");
  81959. if (forceDoubleQuote)
  81960. buffer.writeCharCode$1(34);
  81961. for (t1 = string.length, includesSingleQuote = false, includesDoubleQuote = false, i = 0; i < t1; ++i) {
  81962. char = string.charCodeAt(i);
  81963. _1_2 = 39 === char;
  81964. if (_1_2 && forceDoubleQuote) {
  81965. buffer.writeCharCode$1(39);
  81966. continue;
  81967. }
  81968. if (_1_2 && includesDoubleQuote) {
  81969. _this._visitQuotedString$2$forceDoubleQuote(string, true);
  81970. return;
  81971. }
  81972. if (_1_2) {
  81973. buffer.writeCharCode$1(39);
  81974. includesSingleQuote = true;
  81975. continue;
  81976. }
  81977. _1_4 = 34 === char;
  81978. if (_1_4 && forceDoubleQuote) {
  81979. buffer.writeCharCode$1(92);
  81980. buffer.writeCharCode$1(34);
  81981. continue;
  81982. }
  81983. if (_1_4 && includesSingleQuote) {
  81984. _this._visitQuotedString$2$forceDoubleQuote(string, true);
  81985. return;
  81986. }
  81987. if (_1_4) {
  81988. buffer.writeCharCode$1(34);
  81989. includesDoubleQuote = true;
  81990. continue;
  81991. }
  81992. if (0 === char || 1 === char || 2 === char || 3 === char || 4 === char || 5 === char || 6 === char || 7 === char || 8 === char || 10 === char || 11 === char || 12 === char || 13 === char || 14 === char || 15 === char || 16 === char || 17 === char || 18 === char || 19 === char || 20 === char || 21 === char || 22 === char || 23 === char || 24 === char || 25 === char || 26 === char || 27 === char || 28 === char || 29 === char || 30 === char || 31 === char || 127 === char) {
  81993. _this._writeEscape$4(buffer, char, string, i);
  81994. continue;
  81995. }
  81996. if (92 === char) {
  81997. buffer.writeCharCode$1(92);
  81998. buffer.writeCharCode$1(92);
  81999. continue;
  82000. }
  82001. _0_0 = _this._tryPrivateUseCharacter$4(buffer, char, string, i);
  82002. if (_0_0 != null)
  82003. i = _0_0;
  82004. else
  82005. buffer.writeCharCode$1(char);
  82006. }
  82007. if (forceDoubleQuote)
  82008. buffer.writeCharCode$1(34);
  82009. else {
  82010. quote = includesDoubleQuote ? 39 : 34;
  82011. t1 = _this._serialize$_buffer;
  82012. t1.writeCharCode$1(quote);
  82013. t1.write$1(0, buffer);
  82014. t1.writeCharCode$1(quote);
  82015. }
  82016. },
  82017. _visitQuotedString$1(string) {
  82018. return this._visitQuotedString$2$forceDoubleQuote(string, false);
  82019. },
  82020. _visitUnquotedString$1(string) {
  82021. var t1, t2, afterNewline, i, _1_0, _0_0;
  82022. for (t1 = string.length, t2 = this._serialize$_buffer, afterNewline = false, i = 0; i < t1; ++i) {
  82023. _1_0 = string.charCodeAt(i);
  82024. if (10 === _1_0) {
  82025. t2.writeCharCode$1(32);
  82026. afterNewline = true;
  82027. continue;
  82028. }
  82029. if (32 === _1_0) {
  82030. if (!afterNewline)
  82031. t2.writeCharCode$1(32);
  82032. continue;
  82033. }
  82034. _0_0 = this._tryPrivateUseCharacter$4(t2, _1_0, string, i);
  82035. if (_0_0 != null)
  82036. i = _0_0;
  82037. else
  82038. t2.writeCharCode$1(_1_0);
  82039. afterNewline = false;
  82040. }
  82041. },
  82042. _tryPrivateUseCharacter$4(buffer, codeUnit, string, i) {
  82043. var t1;
  82044. if (this._style === B.OutputStyle_1)
  82045. return null;
  82046. if (codeUnit >= 57344 && codeUnit <= 63743) {
  82047. this._writeEscape$4(buffer, codeUnit, string, i);
  82048. return i;
  82049. }
  82050. if (codeUnit >>> 7 === 439 && string.length > i + 1) {
  82051. t1 = i + 1;
  82052. this._writeEscape$4(buffer, 65536 + ((codeUnit & 1023) << 10) + (string.charCodeAt(t1) & 1023), string, t1);
  82053. return t1;
  82054. }
  82055. return null;
  82056. },
  82057. _writeEscape$4(buffer, character, string, i) {
  82058. var t1, next;
  82059. buffer.writeCharCode$1(92);
  82060. buffer.write$1(0, B.JSInt_methods.toRadixString$1(character, 16));
  82061. t1 = i + 1;
  82062. if (string.length === t1)
  82063. return;
  82064. next = string.charCodeAt(t1);
  82065. if (A.CharacterExtension_get_isHex(next) || 32 === next || 9 === next)
  82066. buffer.writeCharCode$1(32);
  82067. },
  82068. visitAttributeSelector$1(attribute) {
  82069. var _0_0, t2,
  82070. t1 = this._serialize$_buffer;
  82071. t1.writeCharCode$1(91);
  82072. t1.write$1(0, attribute.name);
  82073. _0_0 = attribute.value;
  82074. if (_0_0 != null) {
  82075. t1.write$1(0, attribute.op);
  82076. if (A.Parser_isIdentifier(_0_0) && !B.JSString_methods.startsWith$1(_0_0, "--")) {
  82077. t1.write$1(0, _0_0);
  82078. t2 = attribute.modifier;
  82079. if (t2 != null)
  82080. t1.writeCharCode$1(32);
  82081. } else {
  82082. this._visitQuotedString$1(_0_0);
  82083. t2 = attribute.modifier;
  82084. if (t2 != null)
  82085. if (this._style !== B.OutputStyle_1)
  82086. t1.writeCharCode$1(32);
  82087. }
  82088. A.NullableExtension_andThen(t2, t1.get$write(t1));
  82089. }
  82090. t1.writeCharCode$1(93);
  82091. },
  82092. visitClassSelector$1(klass) {
  82093. var t1 = this._serialize$_buffer;
  82094. t1.writeCharCode$1(46);
  82095. t1.write$1(0, klass.name);
  82096. },
  82097. visitComplexSelector$1(complex) {
  82098. var t2, t3, t4, t5, t6, i, component, t7, t8, t9, _this = this,
  82099. t1 = complex.leadingCombinators;
  82100. _this._writeCombinators$1(t1);
  82101. if (t1.length >= 1 && complex.components.length >= 1)
  82102. if (_this._style !== B.OutputStyle_1)
  82103. _this._serialize$_buffer.writeCharCode$1(32);
  82104. for (t1 = complex.components, t2 = t1.length, t3 = t2 - 1, t4 = _this._serialize$_buffer, t5 = _this._style === B.OutputStyle_1, t6 = !t5, i = 0; i < t2; ++i) {
  82105. component = t1[i];
  82106. _this.visitCompoundSelector$1(component.selector);
  82107. t7 = component.combinators;
  82108. t8 = t7.length === 0;
  82109. if (!t8)
  82110. if (t6)
  82111. t4.writeCharCode$1(32);
  82112. t9 = t5 ? "" : " ";
  82113. _this._writeBetween$3(t7, t9, t4.get$write(t4));
  82114. if (i !== t3)
  82115. t7 = !t5 || t8;
  82116. else
  82117. t7 = false;
  82118. if (t7)
  82119. t4.writeCharCode$1(32);
  82120. }
  82121. },
  82122. _writeCombinators$1(combinators) {
  82123. var t1 = this._style === B.OutputStyle_1 ? "" : " ",
  82124. t2 = this._serialize$_buffer;
  82125. return this._writeBetween$3(combinators, t1, t2.get$write(t2));
  82126. },
  82127. visitCompoundSelector$1(compound) {
  82128. var t2, t3, _i,
  82129. t1 = this._serialize$_buffer,
  82130. start = t1.get$length(t1);
  82131. for (t2 = compound.components, t3 = t2.length, _i = 0; _i < t3; ++_i)
  82132. t2[_i].accept$1(this);
  82133. if (t1.get$length(t1) === start)
  82134. t1.writeCharCode$1(42);
  82135. },
  82136. visitIDSelector$1(id) {
  82137. var t1 = this._serialize$_buffer;
  82138. t1.writeCharCode$1(35);
  82139. t1.write$1(0, id.name);
  82140. },
  82141. visitSelectorList$1(list) {
  82142. var t1, t2, t3, first, t4, _this = this,
  82143. complexes = list.components;
  82144. for (t1 = J.get$iterator$ax(_this._inspect ? complexes : new A.WhereIterable(complexes, new A._SerializeVisitor_visitSelectorList_closure(), A._arrayInstanceType(complexes)._eval$1("WhereIterable<1>"))), t2 = _this._style !== B.OutputStyle_1, t3 = _this._serialize$_buffer, first = true; t1.moveNext$0();) {
  82145. t4 = t1.get$current(t1);
  82146. if (first)
  82147. first = false;
  82148. else {
  82149. t3.writeCharCode$1(44);
  82150. if (t4.lineBreak) {
  82151. if (t2)
  82152. t3.write$1(0, "\n");
  82153. _this._writeIndentation$0();
  82154. } else if (t2)
  82155. t3.writeCharCode$1(32);
  82156. }
  82157. _this.visitComplexSelector$1(t4);
  82158. }
  82159. },
  82160. visitParentSelector$1($parent) {
  82161. var t1 = this._serialize$_buffer;
  82162. t1.writeCharCode$1(38);
  82163. A.NullableExtension_andThen($parent.suffix, t1.get$write(t1));
  82164. },
  82165. visitPlaceholderSelector$1(placeholder) {
  82166. var t1 = this._serialize$_buffer;
  82167. t1.writeCharCode$1(37);
  82168. t1.write$1(0, placeholder.name);
  82169. },
  82170. visitPseudoSelector$1(pseudo) {
  82171. var _0_4, t3,
  82172. t1 = pseudo.name,
  82173. t2 = false;
  82174. if ("not" === t1) {
  82175. _0_4 = pseudo.selector;
  82176. if (_0_4 instanceof A.SelectorList)
  82177. t2 = (_0_4 == null ? type$.SelectorList._as(_0_4) : _0_4).accept$1(B._IsInvisibleVisitor_true);
  82178. }
  82179. if (t2)
  82180. return;
  82181. t2 = this._serialize$_buffer;
  82182. t2.writeCharCode$1(58);
  82183. if (!pseudo.isSyntacticClass)
  82184. t2.writeCharCode$1(58);
  82185. t2.write$1(0, t1);
  82186. t1 = pseudo.argument;
  82187. t3 = t1 == null;
  82188. if (t3 && pseudo.selector == null)
  82189. return;
  82190. t2.writeCharCode$1(40);
  82191. if (!t3) {
  82192. t2.write$1(0, t1);
  82193. if (pseudo.selector != null)
  82194. t2.writeCharCode$1(32);
  82195. }
  82196. A.NullableExtension_andThen(pseudo.selector, this.get$visitSelectorList());
  82197. t2.writeCharCode$1(41);
  82198. },
  82199. visitTypeSelector$1(type) {
  82200. this._serialize$_buffer.write$1(0, type.name);
  82201. },
  82202. visitUniversalSelector$1(universal) {
  82203. var t2,
  82204. t1 = universal.namespace;
  82205. if (t1 != null) {
  82206. t2 = this._serialize$_buffer;
  82207. t2.write$1(0, t1);
  82208. t2.writeCharCode$1(124);
  82209. }
  82210. this._serialize$_buffer.writeCharCode$1(42);
  82211. },
  82212. _serialize$_write$1(value) {
  82213. return this._serialize$_buffer.forSpan$2(value.span, new A._SerializeVisitor__write_closure(this, value));
  82214. },
  82215. _serialize$_visitChildren$1($parent) {
  82216. var t2, t3, t4, t5, t6, t7, prePrevious, previous, t8, previous0, t9, savedIndentation, _this = this,
  82217. t1 = _this._serialize$_buffer;
  82218. t1.writeCharCode$1(123);
  82219. for (t2 = $parent.children, t3 = t2.$ti, t2 = new A.ListIterator(t2, t2.get$length(0), t3._eval$1("ListIterator<ListBase.E>")), t4 = _this._style === B.OutputStyle_1, t5 = !t4, t6 = _this.get$_requiresSemicolon(), t7 = !_this._inspect, t3 = t3._eval$1("ListBase.E"), prePrevious = null, previous = null; t2.moveNext$0();) {
  82220. t8 = t2.__internal$_current;
  82221. previous0 = t8 == null ? t3._as(t8) : t8;
  82222. if (t7)
  82223. t8 = t4 ? previous0.accept$1(B._IsInvisibleVisitor_true_true) : previous0.accept$1(B._IsInvisibleVisitor_true_false);
  82224. else
  82225. t8 = false;
  82226. if (t8)
  82227. continue;
  82228. t8 = previous == null;
  82229. t9 = t8 ? null : t6.call$1(previous);
  82230. if (t9 == null ? false : t9)
  82231. t1.writeCharCode$1(59);
  82232. if (_this._isTrailingComment$2(previous0, t8 ? $parent : previous)) {
  82233. if (t5)
  82234. t1.writeCharCode$1(32);
  82235. savedIndentation = _this._indentation;
  82236. _this._indentation = 0;
  82237. new A._SerializeVisitor__visitChildren_closure(_this, previous0).call$0();
  82238. _this._indentation = savedIndentation;
  82239. } else {
  82240. if (t5)
  82241. t1.write$1(0, "\n");
  82242. ++_this._indentation;
  82243. new A._SerializeVisitor__visitChildren_closure0(_this, previous0).call$0();
  82244. --_this._indentation;
  82245. }
  82246. prePrevious = previous;
  82247. previous = previous0;
  82248. }
  82249. if (previous != null) {
  82250. if ((type$.CssParentNode._is(previous) ? previous.get$isChildless() : !(previous instanceof A.ModifiableCssComment)) && t5)
  82251. t1.writeCharCode$1(59);
  82252. if (prePrevious == null && _this._isTrailingComment$2(previous, $parent)) {
  82253. if (t5)
  82254. t1.writeCharCode$1(32);
  82255. } else {
  82256. _this._writeLineFeed$0();
  82257. _this._writeIndentation$0();
  82258. }
  82259. }
  82260. t1.writeCharCode$1(125);
  82261. },
  82262. _requiresSemicolon$1(node) {
  82263. return type$.CssParentNode._is(node) ? node.get$isChildless() : !(node instanceof A.ModifiableCssComment);
  82264. },
  82265. _isTrailingComment$2(node, previous) {
  82266. var t1, t2, t3, t4, searchFrom, endOffset, t5, span;
  82267. if (this._style === B.OutputStyle_1)
  82268. return false;
  82269. if (!(node instanceof A.ModifiableCssComment))
  82270. return false;
  82271. t1 = node.span;
  82272. t2 = t1.file;
  82273. t3 = t2.url;
  82274. t4 = previous.get$span(previous);
  82275. if (!J.$eq$(t3, t4.get$sourceUrl(t4)))
  82276. return false;
  82277. t4 = previous.get$span(previous);
  82278. if (!(J.$eq$(t4.get$file(t4).url, t3) && t4.get$start(t4).offset <= A.FileLocation$_(t2, t1._file$_start).offset && t4.get$end(t4).offset >= A.FileLocation$_(t2, t1._end).offset)) {
  82279. t1 = A.FileLocation$_(t2, t1._file$_start);
  82280. t1 = t1.file.getLine$1(t1.offset);
  82281. t2 = previous.get$span(previous);
  82282. t2 = t2.get$end(t2);
  82283. return t1 === t2.file.getLine$1(t2.offset);
  82284. }
  82285. t1 = t1._file$_start;
  82286. t3 = A.FileLocation$_(t2, t1);
  82287. t4 = previous.get$span(previous);
  82288. searchFrom = t3.offset - t4.get$start(t4).offset - 1;
  82289. if (searchFrom < 0)
  82290. return false;
  82291. endOffset = Math.max(0, B.JSString_methods.lastIndexOf$2(previous.get$span(previous).get$text(), "{", searchFrom));
  82292. t3 = previous.get$span(previous);
  82293. t3 = t3.get$file(t3);
  82294. t4 = previous.get$span(previous);
  82295. t4 = t4.get$start(t4);
  82296. t5 = previous.get$span(previous);
  82297. span = t3.span$2(0, t4.offset, t5.get$start(t5).offset + endOffset);
  82298. t1 = A.FileLocation$_(t2, t1);
  82299. t1 = t1.file.getLine$1(t1.offset);
  82300. t2 = A.FileLocation$_(span.file, span._end);
  82301. return t1 === t2.file.getLine$1(t2.offset);
  82302. },
  82303. _writeLineFeed$0() {
  82304. if (this._style !== B.OutputStyle_1)
  82305. this._serialize$_buffer.write$1(0, "\n");
  82306. },
  82307. _writeIndentation$0() {
  82308. var _this = this;
  82309. if (_this._style === B.OutputStyle_1)
  82310. return;
  82311. _this._writeTimes$2(_this._indentCharacter, _this._indentation * _this._indentWidth);
  82312. },
  82313. _writeTimes$2(char, times) {
  82314. var t1, i;
  82315. for (t1 = this._serialize$_buffer, i = 0; i < times; ++i)
  82316. t1.writeCharCode$1(char);
  82317. },
  82318. _writeBetween$1$3(iterable, text, callback) {
  82319. var t1, t2, first, value;
  82320. for (t1 = J.get$iterator$ax(iterable), t2 = this._serialize$_buffer, first = true; t1.moveNext$0();) {
  82321. value = t1.get$current(t1);
  82322. if (first)
  82323. first = false;
  82324. else
  82325. t2.write$1(0, text);
  82326. callback.call$1(value);
  82327. }
  82328. },
  82329. _writeBetween$3(iterable, text, callback) {
  82330. return this._writeBetween$1$3(iterable, text, callback, type$.dynamic);
  82331. }
  82332. };
  82333. A._SerializeVisitor_visitCssComment_closure.prototype = {
  82334. call$0() {
  82335. var t2, t3, _0_0, minimumIndentation,
  82336. t1 = this.$this;
  82337. if (t1._style === B.OutputStyle_1 && this.node.text.charCodeAt(2) !== 33)
  82338. return;
  82339. t2 = this.node;
  82340. t3 = t2.text;
  82341. if (B.JSString_methods.startsWith$1(t3, A.RegExp_RegExp("/\\*# source(Mapping)?URL=", false)))
  82342. return;
  82343. _0_0 = t1._minimumIndentation$1(t3);
  82344. if (_0_0 != null) {
  82345. t2 = t2.span;
  82346. t2 = A.FileLocation$_(t2.file, t2._file$_start);
  82347. minimumIndentation = Math.min(_0_0, t2.file.getColumn$1(t2.offset));
  82348. t1._writeIndentation$0();
  82349. t1._writeWithIndent$2(t3, minimumIndentation);
  82350. } else {
  82351. t1._writeIndentation$0();
  82352. t1._serialize$_buffer.write$1(0, t3);
  82353. }
  82354. },
  82355. $signature: 1
  82356. };
  82357. A._SerializeVisitor_visitCssAtRule_closure.prototype = {
  82358. call$0() {
  82359. var t3, _0_0,
  82360. t1 = this.$this,
  82361. t2 = t1._serialize$_buffer;
  82362. t2.writeCharCode$1(64);
  82363. t3 = this.node;
  82364. t1._serialize$_write$1(t3.name);
  82365. _0_0 = t3.value;
  82366. if (_0_0 != null) {
  82367. t2.writeCharCode$1(32);
  82368. t1._serialize$_write$1(_0_0);
  82369. }
  82370. },
  82371. $signature: 1
  82372. };
  82373. A._SerializeVisitor_visitCssMediaRule_closure.prototype = {
  82374. call$0() {
  82375. var t3, firstQuery, t4, t5,
  82376. t1 = this.$this,
  82377. t2 = t1._serialize$_buffer;
  82378. t2.write$1(0, "@media");
  82379. t3 = this.node.queries;
  82380. firstQuery = B.JSArray_methods.get$first(t3);
  82381. t4 = t1._style === B.OutputStyle_1;
  82382. t5 = true;
  82383. if (t4)
  82384. if (firstQuery.modifier == null)
  82385. if (firstQuery.type == null) {
  82386. t5 = firstQuery.conditions;
  82387. t5 = t5.length === 1 && J.startsWith$1$s(B.JSArray_methods.get$first(t5), "(not ");
  82388. }
  82389. if (t5)
  82390. t2.writeCharCode$1(32);
  82391. t2 = t4 ? "," : ", ";
  82392. t1._writeBetween$3(t3, t2, t1.get$_visitMediaQuery());
  82393. },
  82394. $signature: 1
  82395. };
  82396. A._SerializeVisitor_visitCssImport_closure.prototype = {
  82397. call$0() {
  82398. var t3, t4, _0_0,
  82399. t1 = this.$this,
  82400. t2 = t1._serialize$_buffer;
  82401. t2.write$1(0, "@import");
  82402. t3 = t1._style !== B.OutputStyle_1;
  82403. if (t3)
  82404. t2.writeCharCode$1(32);
  82405. t4 = this.node;
  82406. t2.forSpan$2(t4.url.span, new A._SerializeVisitor_visitCssImport__closure(t1, t4));
  82407. _0_0 = t4.modifiers;
  82408. if (_0_0 != null) {
  82409. if (t3)
  82410. t2.writeCharCode$1(32);
  82411. t2.write$1(0, _0_0);
  82412. }
  82413. },
  82414. $signature: 1
  82415. };
  82416. A._SerializeVisitor_visitCssImport__closure.prototype = {
  82417. call$0() {
  82418. return this.$this._writeImportUrl$1(this.node.url.value);
  82419. },
  82420. $signature: 0
  82421. };
  82422. A._SerializeVisitor_visitCssKeyframeBlock_closure.prototype = {
  82423. call$0() {
  82424. var t1 = this.$this,
  82425. t2 = t1._style === B.OutputStyle_1 ? "," : ", ",
  82426. t3 = t1._serialize$_buffer;
  82427. return t1._writeBetween$3(this.node.selector.value, t2, t3.get$write(t3));
  82428. },
  82429. $signature: 0
  82430. };
  82431. A._SerializeVisitor_visitCssStyleRule_closure.prototype = {
  82432. call$0() {
  82433. return this.$this.visitSelectorList$1(this.node._style_rule$_selector._box$_inner.value);
  82434. },
  82435. $signature: 0
  82436. };
  82437. A._SerializeVisitor_visitCssSupportsRule_closure.prototype = {
  82438. call$0() {
  82439. var t1 = this.$this,
  82440. t2 = t1._serialize$_buffer;
  82441. t2.write$1(0, "@supports");
  82442. if (!(t1._style === B.OutputStyle_1 && J.codeUnitAt$1$s(this.node.condition.value, 0) === 40))
  82443. t2.writeCharCode$1(32);
  82444. t1._serialize$_write$1(this.node.condition);
  82445. },
  82446. $signature: 1
  82447. };
  82448. A._SerializeVisitor_visitCssDeclaration_closure.prototype = {
  82449. call$0() {
  82450. var t1 = this.$this,
  82451. t2 = this.node;
  82452. if (t1._style === B.OutputStyle_1)
  82453. t1._writeFoldedValue$1(t2);
  82454. else
  82455. t1._writeReindentedValue$1(t2);
  82456. },
  82457. $signature: 1
  82458. };
  82459. A._SerializeVisitor_visitCssDeclaration_closure0.prototype = {
  82460. call$0() {
  82461. return this.node.value.value.accept$1(this.$this);
  82462. },
  82463. $signature: 0
  82464. };
  82465. A._SerializeVisitor_visitList_closure.prototype = {
  82466. call$1(element) {
  82467. return !element.get$isBlank();
  82468. },
  82469. $signature: 77
  82470. };
  82471. A._SerializeVisitor_visitList_closure0.prototype = {
  82472. call$1(element) {
  82473. var t1 = this.$this,
  82474. needsParens = t1._elementNeedsParens$2(this.value._separator, element);
  82475. if (needsParens)
  82476. t1._serialize$_buffer.writeCharCode$1(40);
  82477. element.accept$1(t1);
  82478. if (needsParens)
  82479. t1._serialize$_buffer.writeCharCode$1(41);
  82480. },
  82481. $signature: 60
  82482. };
  82483. A._SerializeVisitor_visitList_closure1.prototype = {
  82484. call$1(element) {
  82485. element.accept$1(this.$this);
  82486. },
  82487. $signature: 60
  82488. };
  82489. A._SerializeVisitor_visitMap_closure.prototype = {
  82490. call$1(entry) {
  82491. var t1 = this.$this;
  82492. t1._writeMapElement$1(entry.key);
  82493. t1._serialize$_buffer.write$1(0, ": ");
  82494. t1._writeMapElement$1(entry.value);
  82495. },
  82496. $signature: 283
  82497. };
  82498. A._SerializeVisitor_visitSelectorList_closure.prototype = {
  82499. call$1(complex) {
  82500. return !complex.accept$1(B._IsInvisibleVisitor_true);
  82501. },
  82502. $signature: 19
  82503. };
  82504. A._SerializeVisitor__write_closure.prototype = {
  82505. call$0() {
  82506. return this.$this._serialize$_buffer.write$1(0, this.value.value);
  82507. },
  82508. $signature: 0
  82509. };
  82510. A._SerializeVisitor__visitChildren_closure.prototype = {
  82511. call$0() {
  82512. return this.child.accept$1(this.$this);
  82513. },
  82514. $signature: 0
  82515. };
  82516. A._SerializeVisitor__visitChildren_closure0.prototype = {
  82517. call$0() {
  82518. this.child.accept$1(this.$this);
  82519. },
  82520. $signature: 0
  82521. };
  82522. A.OutputStyle.prototype = {
  82523. _enumToString$0() {
  82524. return "OutputStyle." + this._name;
  82525. }
  82526. };
  82527. A.LineFeed.prototype = {
  82528. _enumToString$0() {
  82529. return "LineFeed." + this._name;
  82530. },
  82531. toString$0(_) {
  82532. return "lf";
  82533. }
  82534. };
  82535. A.StatementSearchVisitor.prototype = {
  82536. visitAtRootRule$1(_, node) {
  82537. return this.visitChildren$1(node.children);
  82538. },
  82539. visitAtRule$1(_, node) {
  82540. return A.NullableExtension_andThen(node.children, this.get$visitChildren());
  82541. },
  82542. visitContentBlock$1(_, node) {
  82543. return this.visitChildren$1(node.children);
  82544. },
  82545. visitContentRule$1(_, node) {
  82546. return null;
  82547. },
  82548. visitDebugRule$1(_, node) {
  82549. return null;
  82550. },
  82551. visitDeclaration$1(_, node) {
  82552. return A.NullableExtension_andThen(node.children, this.get$visitChildren());
  82553. },
  82554. visitEachRule$1(_, node) {
  82555. return this.visitChildren$1(node.children);
  82556. },
  82557. visitErrorRule$1(_, node) {
  82558. return null;
  82559. },
  82560. visitExtendRule$1(_, node) {
  82561. return null;
  82562. },
  82563. visitForRule$1(_, node) {
  82564. return this.visitChildren$1(node.children);
  82565. },
  82566. visitForwardRule$1(_, node) {
  82567. return null;
  82568. },
  82569. visitFunctionRule$1(_, node) {
  82570. return this.visitChildren$1(node.children);
  82571. },
  82572. visitIfRule$1(_, node) {
  82573. var t1 = A.IterableExtension_search(node.clauses, new A.StatementSearchVisitor_visitIfRule_closure(this));
  82574. return t1 == null ? A.NullableExtension_andThen(node.lastClause, new A.StatementSearchVisitor_visitIfRule_closure0(this)) : t1;
  82575. },
  82576. visitImportRule$1(_, node) {
  82577. return null;
  82578. },
  82579. visitIncludeRule$1(_, node) {
  82580. return A.NullableExtension_andThen(node.content, this.get$visitContentBlock(this));
  82581. },
  82582. visitLoudComment$1(_, node) {
  82583. return null;
  82584. },
  82585. visitMediaRule$1(_, node) {
  82586. return this.visitChildren$1(node.children);
  82587. },
  82588. visitMixinRule$1(_, node) {
  82589. return this.visitChildren$1(node.children);
  82590. },
  82591. visitReturnRule$1(_, node) {
  82592. return null;
  82593. },
  82594. visitSilentComment$1(_, node) {
  82595. return null;
  82596. },
  82597. visitStyleRule$1(_, node) {
  82598. return this.visitChildren$1(node.children);
  82599. },
  82600. visitStylesheet$1(_, node) {
  82601. return this.visitChildren$1(node.children);
  82602. },
  82603. visitSupportsRule$1(_, node) {
  82604. return this.visitChildren$1(node.children);
  82605. },
  82606. visitUseRule$1(_, node) {
  82607. return null;
  82608. },
  82609. visitVariableDeclaration$1(_, node) {
  82610. return null;
  82611. },
  82612. visitWarnRule$1(_, node) {
  82613. return null;
  82614. },
  82615. visitWhileRule$1(_, node) {
  82616. return this.visitChildren$1(node.children);
  82617. },
  82618. visitChildren$1(children) {
  82619. return A.IterableExtension_search(children, new A.StatementSearchVisitor_visitChildren_closure(this));
  82620. }
  82621. };
  82622. A.StatementSearchVisitor_visitIfRule_closure.prototype = {
  82623. call$1(clause) {
  82624. return A.IterableExtension_search(clause.children, new A.StatementSearchVisitor_visitIfRule__closure0(this.$this));
  82625. },
  82626. $signature() {
  82627. return A._instanceType(this.$this)._eval$1("StatementSearchVisitor.T?(IfClause)");
  82628. }
  82629. };
  82630. A.StatementSearchVisitor_visitIfRule__closure0.prototype = {
  82631. call$1(child) {
  82632. return child.accept$1(this.$this);
  82633. },
  82634. $signature() {
  82635. return A._instanceType(this.$this)._eval$1("StatementSearchVisitor.T?(Statement)");
  82636. }
  82637. };
  82638. A.StatementSearchVisitor_visitIfRule_closure0.prototype = {
  82639. call$1(lastClause) {
  82640. return A.IterableExtension_search(lastClause.children, new A.StatementSearchVisitor_visitIfRule__closure(this.$this));
  82641. },
  82642. $signature() {
  82643. return A._instanceType(this.$this)._eval$1("StatementSearchVisitor.T?(ElseClause)");
  82644. }
  82645. };
  82646. A.StatementSearchVisitor_visitIfRule__closure.prototype = {
  82647. call$1(child) {
  82648. return child.accept$1(this.$this);
  82649. },
  82650. $signature() {
  82651. return A._instanceType(this.$this)._eval$1("StatementSearchVisitor.T?(Statement)");
  82652. }
  82653. };
  82654. A.StatementSearchVisitor_visitChildren_closure.prototype = {
  82655. call$1(child) {
  82656. return child.accept$1(this.$this);
  82657. },
  82658. $signature() {
  82659. return A._instanceType(this.$this)._eval$1("StatementSearchVisitor.T?(Statement)");
  82660. }
  82661. };
  82662. A.Entry.prototype = {
  82663. compareTo$1(_, other) {
  82664. var t1, t2,
  82665. res = this.target.compareTo$1(0, other.target);
  82666. if (res !== 0)
  82667. return res;
  82668. t1 = this.source;
  82669. t2 = other.source;
  82670. res = B.JSString_methods.compareTo$1(J.toString$0$(t1.file.url), J.toString$0$(t2.file.url));
  82671. if (res !== 0)
  82672. return res;
  82673. return t1.compareTo$1(0, t2);
  82674. },
  82675. $isComparable: 1
  82676. };
  82677. A.Mapping.prototype = {};
  82678. A.SingleMapping.prototype = {
  82679. toJson$1$includeSourceContents(includeSourceContents) {
  82680. var t1, t2, line, column, srcLine, srcColumn, srcUrlId, srcNameId, first, _i, entry, nextLine, i, t3, t4, column0, t5, newUrlId, srcLine0, srcColumn0, srcNameId0, result, _this = this,
  82681. buff = new A.StringBuffer("");
  82682. for (t1 = _this.lines, t2 = t1.length, line = 0, column = 0, srcLine = 0, srcColumn = 0, srcUrlId = 0, srcNameId = 0, first = true, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
  82683. entry = t1[_i];
  82684. nextLine = entry.line;
  82685. if (nextLine > line) {
  82686. for (i = line; i < nextLine; ++i)
  82687. buff._contents += ";";
  82688. line = nextLine;
  82689. column = 0;
  82690. first = true;
  82691. }
  82692. for (t3 = J.get$iterator$ax(entry.entries); t3.moveNext$0(); column = column0, first = false) {
  82693. t4 = t3.get$current(t3);
  82694. if (!first)
  82695. buff._contents += ",";
  82696. column0 = t4.column;
  82697. t5 = A.encodeVlq(column0 - column);
  82698. t5 = A.StringBuffer__writeAll(buff._contents, t5, "");
  82699. buff._contents = t5;
  82700. newUrlId = t4.sourceUrlId;
  82701. t5 = A.StringBuffer__writeAll(t5, A.encodeVlq(newUrlId - srcUrlId), "");
  82702. buff._contents = t5;
  82703. srcLine0 = t4.sourceLine;
  82704. t5 = A.StringBuffer__writeAll(t5, A.encodeVlq(srcLine0 - srcLine), "");
  82705. buff._contents = t5;
  82706. srcColumn0 = t4.sourceColumn;
  82707. t5 = A.StringBuffer__writeAll(t5, A.encodeVlq(srcColumn0 - srcColumn), "");
  82708. buff._contents = t5;
  82709. srcNameId0 = t4.sourceNameId;
  82710. if (srcNameId0 == null) {
  82711. srcUrlId = newUrlId;
  82712. srcColumn = srcColumn0;
  82713. srcLine = srcLine0;
  82714. continue;
  82715. }
  82716. buff._contents = A.StringBuffer__writeAll(t5, A.encodeVlq(srcNameId0 - srcNameId), "");
  82717. srcNameId = srcNameId0;
  82718. srcUrlId = newUrlId;
  82719. srcColumn = srcColumn0;
  82720. srcLine = srcLine0;
  82721. }
  82722. }
  82723. t1 = _this.sourceRoot;
  82724. if (t1 == null)
  82725. t1 = "";
  82726. t2 = buff._contents;
  82727. result = A.LinkedHashMap_LinkedHashMap$_literal(["version", 3, "sourceRoot", t1, "sources", _this.urls, "names", _this.names, "mappings", t2.charCodeAt(0) == 0 ? t2 : t2], type$.String, type$.dynamic);
  82728. t1 = _this.targetUrl;
  82729. if (t1 != null)
  82730. result.$indexSet(0, "file", t1);
  82731. if (includeSourceContents) {
  82732. t1 = _this.files;
  82733. t2 = A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String?>");
  82734. result.$indexSet(0, "sourcesContent", A.List_List$of(new A.MappedListIterable(t1, new A.SingleMapping_toJson_closure(), t2), true, t2._eval$1("ListIterable.E")));
  82735. }
  82736. _this.extensions.forEach$1(0, new A.SingleMapping_toJson_closure0(result));
  82737. return result;
  82738. },
  82739. toJson$0() {
  82740. return this.toJson$1$includeSourceContents(false);
  82741. },
  82742. toString$0(_) {
  82743. var _this = this,
  82744. t1 = A.getRuntimeTypeOfDartObject(_this).toString$0(0) + " : [" + "targetUrl: " + A.S(_this.targetUrl) + ", sourceRoot: " + A.S(_this.sourceRoot) + ", urls: " + A.S(_this.urls) + ", names: " + A.S(_this.names) + ", lines: " + A.S(_this.lines) + "]";
  82745. return t1.charCodeAt(0) == 0 ? t1 : t1;
  82746. }
  82747. };
  82748. A.SingleMapping_SingleMapping$fromEntries_closure.prototype = {
  82749. call$0() {
  82750. return this.urls.__js_helper$_length;
  82751. },
  82752. $signature: 10
  82753. };
  82754. A.SingleMapping_SingleMapping$fromEntries_closure0.prototype = {
  82755. call$0() {
  82756. return this.sourceEntry.source.file;
  82757. },
  82758. $signature: 284
  82759. };
  82760. A.SingleMapping_SingleMapping$fromEntries_closure1.prototype = {
  82761. call$1(i) {
  82762. return this.files.$index(0, i);
  82763. },
  82764. $signature: 285
  82765. };
  82766. A.SingleMapping_toJson_closure.prototype = {
  82767. call$1(file) {
  82768. return file == null ? null : A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(file._decodedChars, 0, null), 0, null);
  82769. },
  82770. $signature: 286
  82771. };
  82772. A.SingleMapping_toJson_closure0.prototype = {
  82773. call$2($name, value) {
  82774. this.result.$indexSet(0, $name, value);
  82775. return value;
  82776. },
  82777. $signature: 111
  82778. };
  82779. A.TargetLineEntry.prototype = {
  82780. toString$0(_) {
  82781. return A.getRuntimeTypeOfDartObject(this).toString$0(0) + ": " + this.line + " " + A.S(this.entries);
  82782. }
  82783. };
  82784. A.TargetEntry.prototype = {
  82785. toString$0(_) {
  82786. var _this = this;
  82787. return A.getRuntimeTypeOfDartObject(_this).toString$0(0) + ": (" + _this.column + ", " + _this.sourceUrlId + ", " + _this.sourceLine + ", " + _this.sourceColumn + ", " + A.S(_this.sourceNameId) + ")";
  82788. }
  82789. };
  82790. A.SourceFile.prototype = {
  82791. get$length(_) {
  82792. return this._decodedChars.length;
  82793. },
  82794. get$lines() {
  82795. return this._lineStarts.length;
  82796. },
  82797. SourceFile$decoded$2$url(decodedChars, url) {
  82798. var t1, t2, t3, i, c, j;
  82799. for (t1 = this._decodedChars, t2 = t1.length, t3 = this._lineStarts, i = 0; i < t2; ++i) {
  82800. c = t1[i];
  82801. if (c === 13) {
  82802. j = i + 1;
  82803. if (j >= t2 || t1[j] !== 10)
  82804. c = 10;
  82805. }
  82806. if (c === 10)
  82807. t3.push(i + 1);
  82808. }
  82809. },
  82810. span$2(_, start, end) {
  82811. return A._FileSpan$(this, start, end == null ? this._decodedChars.length : end);
  82812. },
  82813. span$1(_, start) {
  82814. return this.span$2(0, start, null);
  82815. },
  82816. getLine$1(offset) {
  82817. var t1, _this = this;
  82818. if (offset < 0)
  82819. throw A.wrapException(A.RangeError$("Offset may not be negative, was " + offset + "."));
  82820. else if (offset > _this._decodedChars.length)
  82821. throw A.wrapException(A.RangeError$("Offset " + offset + string$.x20must_n + _this.get$length(0) + "."));
  82822. t1 = _this._lineStarts;
  82823. if (offset < B.JSArray_methods.get$first(t1))
  82824. return -1;
  82825. if (offset >= B.JSArray_methods.get$last(t1))
  82826. return t1.length - 1;
  82827. if (_this._isNearCachedLine$1(offset)) {
  82828. t1 = _this._cachedLine;
  82829. t1.toString;
  82830. return t1;
  82831. }
  82832. return _this._cachedLine = _this._binarySearch$1(offset) - 1;
  82833. },
  82834. _isNearCachedLine$1(offset) {
  82835. var t2, t3,
  82836. t1 = this._cachedLine;
  82837. if (t1 == null)
  82838. return false;
  82839. t2 = this._lineStarts;
  82840. if (offset < t2[t1])
  82841. return false;
  82842. t3 = t2.length;
  82843. if (t1 >= t3 - 1 || offset < t2[t1 + 1])
  82844. return true;
  82845. if (t1 >= t3 - 2 || offset < t2[t1 + 2]) {
  82846. this._cachedLine = t1 + 1;
  82847. return true;
  82848. }
  82849. return false;
  82850. },
  82851. _binarySearch$1(offset) {
  82852. var min, half,
  82853. t1 = this._lineStarts,
  82854. max = t1.length - 1;
  82855. for (min = 0; min < max;) {
  82856. half = min + B.JSInt_methods._tdivFast$1(max - min, 2);
  82857. if (t1[half] > offset)
  82858. max = half;
  82859. else
  82860. min = half + 1;
  82861. }
  82862. return max;
  82863. },
  82864. getColumn$1(offset) {
  82865. var line, lineStart, _this = this;
  82866. if (offset < 0)
  82867. throw A.wrapException(A.RangeError$("Offset may not be negative, was " + offset + "."));
  82868. else if (offset > _this._decodedChars.length)
  82869. throw A.wrapException(A.RangeError$("Offset " + offset + " must be not be greater than the number of characters in the file, " + _this.get$length(0) + "."));
  82870. line = _this.getLine$1(offset);
  82871. lineStart = _this._lineStarts[line];
  82872. if (lineStart > offset)
  82873. throw A.wrapException(A.RangeError$("Line " + line + " comes after offset " + offset + "."));
  82874. return offset - lineStart;
  82875. },
  82876. getOffset$1(line) {
  82877. var t1, t2, result, t3;
  82878. if (line < 0)
  82879. throw A.wrapException(A.RangeError$("Line may not be negative, was " + line + "."));
  82880. else {
  82881. t1 = this._lineStarts;
  82882. t2 = t1.length;
  82883. if (line >= t2)
  82884. throw A.wrapException(A.RangeError$("Line " + line + " must be less than the number of lines in the file, " + this.get$lines() + "."));
  82885. }
  82886. result = t1[line];
  82887. if (result <= this._decodedChars.length) {
  82888. t3 = line + 1;
  82889. t1 = t3 < t2 && result >= t1[t3];
  82890. } else
  82891. t1 = true;
  82892. if (t1)
  82893. throw A.wrapException(A.RangeError$("Line " + line + " doesn't have 0 columns."));
  82894. return result;
  82895. }
  82896. };
  82897. A.FileLocation.prototype = {
  82898. get$sourceUrl(_) {
  82899. return this.file.url;
  82900. },
  82901. get$line() {
  82902. return this.file.getLine$1(this.offset);
  82903. },
  82904. get$column() {
  82905. return this.file.getColumn$1(this.offset);
  82906. },
  82907. FileLocation$_$2(file, offset) {
  82908. var t2,
  82909. t1 = this.offset;
  82910. if (t1 < 0)
  82911. throw A.wrapException(A.RangeError$("Offset may not be negative, was " + t1 + "."));
  82912. else {
  82913. t2 = this.file;
  82914. if (t1 > t2._decodedChars.length)
  82915. throw A.wrapException(A.RangeError$("Offset " + t1 + string$.x20must_n + t2.get$length(0) + "."));
  82916. }
  82917. },
  82918. pointSpan$0() {
  82919. var t1 = this.offset;
  82920. return A._FileSpan$(this.file, t1, t1);
  82921. },
  82922. get$offset() {
  82923. return this.offset;
  82924. }
  82925. };
  82926. A._FileSpan.prototype = {
  82927. get$sourceUrl(_) {
  82928. return this.file.url;
  82929. },
  82930. get$length(_) {
  82931. return this._end - this._file$_start;
  82932. },
  82933. get$start(_) {
  82934. return A.FileLocation$_(this.file, this._file$_start);
  82935. },
  82936. get$end(_) {
  82937. return A.FileLocation$_(this.file, this._end);
  82938. },
  82939. get$text() {
  82940. return A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(this.file._decodedChars, this._file$_start, this._end), 0, null);
  82941. },
  82942. get$context(_) {
  82943. var _this = this,
  82944. t1 = _this.file,
  82945. endOffset = _this._end,
  82946. endLine = t1.getLine$1(endOffset);
  82947. if (t1.getColumn$1(endOffset) === 0 && endLine !== 0) {
  82948. if (endOffset - _this._file$_start === 0)
  82949. return endLine === t1._lineStarts.length - 1 ? "" : A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1._decodedChars, t1.getOffset$1(endLine), t1.getOffset$1(endLine + 1)), 0, null);
  82950. } else
  82951. endOffset = endLine === t1._lineStarts.length - 1 ? t1._decodedChars.length : t1.getOffset$1(endLine + 1);
  82952. return A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1._decodedChars, t1.getOffset$1(t1.getLine$1(_this._file$_start)), endOffset), 0, null);
  82953. },
  82954. _FileSpan$3(file, _start, _end) {
  82955. var t3,
  82956. t1 = this._end,
  82957. t2 = this._file$_start;
  82958. if (t1 < t2)
  82959. throw A.wrapException(A.ArgumentError$("End " + t1 + " must come after start " + t2 + ".", null));
  82960. else {
  82961. t3 = this.file;
  82962. if (t1 > t3._decodedChars.length)
  82963. throw A.wrapException(A.RangeError$("End " + t1 + string$.x20must_n + t3.get$length(0) + "."));
  82964. else if (t2 < 0)
  82965. throw A.wrapException(A.RangeError$("Start may not be negative, was " + t2 + "."));
  82966. }
  82967. },
  82968. compareTo$1(_, other) {
  82969. var result;
  82970. if (!(other instanceof A._FileSpan))
  82971. return this.super$SourceSpanMixin$compareTo(0, other);
  82972. result = B.JSInt_methods.compareTo$1(this._file$_start, other._file$_start);
  82973. return result === 0 ? B.JSInt_methods.compareTo$1(this._end, other._end) : result;
  82974. },
  82975. $eq(_, other) {
  82976. var _this = this;
  82977. if (other == null)
  82978. return false;
  82979. if (!type$.FileSpan._is(other))
  82980. return _this.super$SourceSpanMixin$$eq(0, other);
  82981. if (!(other instanceof A._FileSpan))
  82982. return _this.super$SourceSpanMixin$$eq(0, other) && J.$eq$(_this.file.url, other.get$sourceUrl(other));
  82983. return _this._file$_start === other._file$_start && _this._end === other._end && J.$eq$(_this.file.url, other.file.url);
  82984. },
  82985. get$hashCode(_) {
  82986. return A.Object_hash(this._file$_start, this._end, this.file.url, B.C_SentinelValue);
  82987. },
  82988. expand$1(_, other) {
  82989. var t2, t3, _this = this,
  82990. t1 = _this.file;
  82991. if (!J.$eq$(t1.url, other.get$sourceUrl(other)))
  82992. throw A.wrapException(A.ArgumentError$('Source URLs "' + A.S(_this.get$sourceUrl(0)) + '" and "' + A.S(other.get$sourceUrl(other)) + "\" don't match.", null));
  82993. t2 = _this._file$_start;
  82994. t3 = _this._end;
  82995. if (other instanceof A._FileSpan)
  82996. return A._FileSpan$(t1, Math.min(t2, other._file$_start), Math.max(t3, other._end));
  82997. else
  82998. return A._FileSpan$(t1, Math.min(t2, other.get$start(other).offset), Math.max(t3, other.get$end(other).offset));
  82999. },
  83000. $isFileSpan: 1,
  83001. $isSourceSpanWithContext: 1,
  83002. get$file(receiver) {
  83003. return this.file;
  83004. }
  83005. };
  83006. A.Highlighter.prototype = {
  83007. highlight$0() {
  83008. var t2, highlightsByColumn, t3, t4, i, line, lastLine, t5, t6, t7, t8, t9, t10, t11, index, primaryIdx, primary, _i, highlight, _this = this, _null = null,
  83009. t1 = _this._lines;
  83010. _this._writeFileStart$1(B.JSArray_methods.get$first(t1).url);
  83011. t2 = _this._maxMultilineSpans;
  83012. highlightsByColumn = A.List_List$filled(t2, _null, false, type$.nullable__Highlight);
  83013. for (t3 = _this._highlighter$_buffer, t2 = t2 !== 0, t4 = _this._primaryColor, i = 0; i < t1.length; ++i) {
  83014. line = t1[i];
  83015. if (i > 0) {
  83016. lastLine = t1[i - 1];
  83017. t5 = lastLine.url;
  83018. t6 = line.url;
  83019. if (!J.$eq$(t5, t6)) {
  83020. _this._writeSidebar$1$end($._glyphs.get$upEnd());
  83021. t3._contents += "\n";
  83022. _this._writeFileStart$1(t6);
  83023. } else if (lastLine.number + 1 !== line.number) {
  83024. _this._writeSidebar$1$text("...");
  83025. t3._contents += "\n";
  83026. }
  83027. }
  83028. for (t5 = line.highlights, t6 = A._arrayInstanceType(t5)._eval$1("ReversedListIterable<1>"), t7 = new A.ReversedListIterable(t5, t6), t7 = new A.ListIterator(t7, t7.get$length(0), t6._eval$1("ListIterator<ListIterable.E>")), t6 = t6._eval$1("ListIterable.E"), t8 = line.number, t9 = line.text; t7.moveNext$0();) {
  83029. t10 = t7.__internal$_current;
  83030. if (t10 == null)
  83031. t10 = t6._as(t10);
  83032. t11 = t10.span;
  83033. if (t11.get$start(t11).get$line() !== t11.get$end(t11).get$line() && t11.get$start(t11).get$line() === t8 && _this._isOnlyWhitespace$1(B.JSString_methods.substring$2(t9, 0, t11.get$start(t11).get$column()))) {
  83034. index = B.JSArray_methods.indexOf$1(highlightsByColumn, _null);
  83035. if (index < 0)
  83036. A.throwExpression(A.ArgumentError$(A.S(highlightsByColumn) + " contains no null elements.", _null));
  83037. highlightsByColumn[index] = t10;
  83038. }
  83039. }
  83040. _this._writeSidebar$1$line(t8);
  83041. t3._contents += " ";
  83042. _this._writeMultilineHighlights$2(line, highlightsByColumn);
  83043. if (t2)
  83044. t3._contents += " ";
  83045. primaryIdx = B.JSArray_methods.indexWhere$1(t5, new A.Highlighter_highlight_closure());
  83046. primary = primaryIdx === -1 ? _null : t5[primaryIdx];
  83047. t6 = primary != null;
  83048. if (t6) {
  83049. t7 = primary.span;
  83050. t10 = t7.get$start(t7).get$line() === t8 ? t7.get$start(t7).get$column() : 0;
  83051. _this._writeHighlightedText$4$color(t9, t10, t7.get$end(t7).get$line() === t8 ? t7.get$end(t7).get$column() : t9.length, t4);
  83052. } else
  83053. _this._writeText$1(t9);
  83054. t3._contents += "\n";
  83055. if (t6)
  83056. _this._writeIndicator$3(line, primary, highlightsByColumn);
  83057. for (t6 = t5.length, _i = 0; _i < t5.length; t5.length === t6 || (0, A.throwConcurrentModificationError)(t5), ++_i) {
  83058. highlight = t5[_i];
  83059. if (highlight.isPrimary)
  83060. continue;
  83061. _this._writeIndicator$3(line, highlight, highlightsByColumn);
  83062. }
  83063. }
  83064. _this._writeSidebar$1$end($._glyphs.get$upEnd());
  83065. t1 = t3._contents;
  83066. return t1.charCodeAt(0) == 0 ? t1 : t1;
  83067. },
  83068. _writeFileStart$1(url) {
  83069. var _this = this,
  83070. t1 = !_this._multipleFiles || !type$.Uri._is(url),
  83071. t2 = $._glyphs;
  83072. if (t1)
  83073. _this._writeSidebar$1$end(t2.get$downEnd());
  83074. else {
  83075. _this._writeSidebar$1$end(t2.get$topLeftCorner());
  83076. _this._colorize$2$color(new A.Highlighter__writeFileStart_closure(_this), "\x1b[34m");
  83077. t1 = _this._highlighter$_buffer;
  83078. t2 = " " + $.$get$context().prettyUri$1(url);
  83079. t1._contents += t2;
  83080. }
  83081. _this._highlighter$_buffer._contents += "\n";
  83082. },
  83083. _writeMultilineHighlights$3$current(line, highlightsByColumn, current) {
  83084. var t1, currentColor, t2, t3, t4, t5, foundCurrent, _i, highlight, t6, startLine, t7, endLine, _this = this, _box_0 = {};
  83085. _box_0.openedOnThisLine = false;
  83086. _box_0.openedOnThisLineColor = null;
  83087. t1 = current == null;
  83088. if (t1)
  83089. currentColor = null;
  83090. else
  83091. currentColor = current.isPrimary ? _this._primaryColor : _this._secondaryColor;
  83092. for (t2 = highlightsByColumn.length, t3 = _this._secondaryColor, t1 = !t1, t4 = _this._primaryColor, t5 = _this._highlighter$_buffer, foundCurrent = false, _i = 0; _i < t2; ++_i) {
  83093. highlight = highlightsByColumn[_i];
  83094. t6 = highlight == null;
  83095. if (t6)
  83096. startLine = null;
  83097. else {
  83098. t7 = highlight.span;
  83099. startLine = t7.get$start(t7).get$line();
  83100. }
  83101. if (t6)
  83102. endLine = null;
  83103. else {
  83104. t7 = highlight.span;
  83105. endLine = t7.get$end(t7).get$line();
  83106. }
  83107. if (t1 && highlight === current) {
  83108. _this._colorize$2$color(new A.Highlighter__writeMultilineHighlights_closure(_this, startLine, line), currentColor);
  83109. foundCurrent = true;
  83110. } else if (foundCurrent)
  83111. _this._colorize$2$color(new A.Highlighter__writeMultilineHighlights_closure0(_this, highlight), currentColor);
  83112. else if (t6)
  83113. if (_box_0.openedOnThisLine)
  83114. _this._colorize$2$color(new A.Highlighter__writeMultilineHighlights_closure1(_this), _box_0.openedOnThisLineColor);
  83115. else
  83116. t5._contents += " ";
  83117. else {
  83118. t6 = highlight.isPrimary ? t4 : t3;
  83119. _this._colorize$2$color(new A.Highlighter__writeMultilineHighlights_closure2(_box_0, _this, current, startLine, line, highlight, endLine), t6);
  83120. }
  83121. }
  83122. },
  83123. _writeMultilineHighlights$2(line, highlightsByColumn) {
  83124. return this._writeMultilineHighlights$3$current(line, highlightsByColumn, null);
  83125. },
  83126. _writeHighlightedText$4$color(text, startColumn, endColumn, color) {
  83127. var _this = this;
  83128. _this._writeText$1(B.JSString_methods.substring$2(text, 0, startColumn));
  83129. _this._colorize$2$color(new A.Highlighter__writeHighlightedText_closure(_this, text, startColumn, endColumn), color);
  83130. _this._writeText$1(B.JSString_methods.substring$2(text, endColumn, text.length));
  83131. },
  83132. _writeIndicator$3(line, highlight, highlightsByColumn) {
  83133. var t2, coversWholeLine, _this = this,
  83134. color = highlight.isPrimary ? _this._primaryColor : _this._secondaryColor,
  83135. t1 = highlight.span;
  83136. if (t1.get$start(t1).get$line() === t1.get$end(t1).get$line()) {
  83137. _this._writeSidebar$0();
  83138. t1 = _this._highlighter$_buffer;
  83139. t1._contents += " ";
  83140. _this._writeMultilineHighlights$3$current(line, highlightsByColumn, highlight);
  83141. if (highlightsByColumn.length !== 0)
  83142. t1._contents += " ";
  83143. _this._writeLabel$3(highlight, highlightsByColumn, _this._colorize$2$color(new A.Highlighter__writeIndicator_closure(_this, line, highlight), color));
  83144. } else {
  83145. t2 = line.number;
  83146. if (t1.get$start(t1).get$line() === t2) {
  83147. if (B.JSArray_methods.contains$1(highlightsByColumn, highlight))
  83148. return;
  83149. A.replaceFirstNull(highlightsByColumn, highlight);
  83150. _this._writeSidebar$0();
  83151. t1 = _this._highlighter$_buffer;
  83152. t1._contents += " ";
  83153. _this._writeMultilineHighlights$3$current(line, highlightsByColumn, highlight);
  83154. _this._colorize$2$color(new A.Highlighter__writeIndicator_closure0(_this, line, highlight), color);
  83155. t1._contents += "\n";
  83156. } else if (t1.get$end(t1).get$line() === t2) {
  83157. coversWholeLine = t1.get$end(t1).get$column() === line.text.length;
  83158. if (coversWholeLine && highlight.label == null) {
  83159. A.replaceWithNull(highlightsByColumn, highlight);
  83160. return;
  83161. }
  83162. _this._writeSidebar$0();
  83163. _this._highlighter$_buffer._contents += " ";
  83164. _this._writeMultilineHighlights$3$current(line, highlightsByColumn, highlight);
  83165. _this._writeLabel$3(highlight, highlightsByColumn, _this._colorize$2$color(new A.Highlighter__writeIndicator_closure1(_this, coversWholeLine, line, highlight), color));
  83166. A.replaceWithNull(highlightsByColumn, highlight);
  83167. }
  83168. }
  83169. },
  83170. _writeArrow$3$beginning(line, column, beginning) {
  83171. var t2,
  83172. t1 = beginning ? 0 : 1,
  83173. tabs = this._countTabs$1(B.JSString_methods.substring$2(line.text, 0, column + t1));
  83174. t1 = this._highlighter$_buffer;
  83175. t2 = B.JSString_methods.$mul($._glyphs.get$horizontalLine(), 1 + column + tabs * 3);
  83176. t2 = t1._contents += t2;
  83177. t1._contents = t2 + "^";
  83178. },
  83179. _writeArrow$2(line, column) {
  83180. return this._writeArrow$3$beginning(line, column, true);
  83181. },
  83182. _writeLabel$3(highlight, highlightsByColumn, underlineLength) {
  83183. var lines, color, t1, t2, t3, t4, t5, t6, _i, columnHighlight, _this = this,
  83184. label = highlight.label;
  83185. if (label == null) {
  83186. _this._highlighter$_buffer._contents += "\n";
  83187. return;
  83188. }
  83189. lines = A._setArrayType(label.split("\n"), type$.JSArray_String);
  83190. color = highlight.isPrimary ? _this._primaryColor : _this._secondaryColor;
  83191. _this._colorize$2$color(new A.Highlighter__writeLabel_closure(_this, lines), color);
  83192. t1 = _this._highlighter$_buffer;
  83193. t1._contents += "\n";
  83194. for (t2 = A.SubListIterable$(lines, 1, null, type$.String), t3 = t2.$ti, t2 = new A.ListIterator(t2, t2.get$length(0), t3._eval$1("ListIterator<ListIterable.E>")), t4 = highlightsByColumn.length, t3 = t3._eval$1("ListIterable.E"); t2.moveNext$0();) {
  83195. t5 = t2.__internal$_current;
  83196. if (t5 == null)
  83197. t5 = t3._as(t5);
  83198. _this._writeSidebar$0();
  83199. t6 = t1._contents += " ";
  83200. for (_i = 0; _i < t4; ++_i) {
  83201. columnHighlight = highlightsByColumn[_i];
  83202. if (columnHighlight == null || columnHighlight === highlight) {
  83203. t6 += " ";
  83204. t1._contents = t6;
  83205. } else {
  83206. t6 = $._glyphs.get$verticalLine();
  83207. t6 = t1._contents += t6;
  83208. }
  83209. }
  83210. t6 = B.JSString_methods.$mul(" ", underlineLength);
  83211. t1._contents += t6;
  83212. _this._colorize$2$color(new A.Highlighter__writeLabel_closure0(_this, t5), color);
  83213. t1._contents += "\n";
  83214. }
  83215. },
  83216. _writeText$1(text) {
  83217. var t1, t2, t3, t4;
  83218. for (t1 = new A.CodeUnits(text), t2 = type$.CodeUnits, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t3 = this._highlighter$_buffer, t2 = t2._eval$1("ListBase.E"); t1.moveNext$0();) {
  83219. t4 = t1.__internal$_current;
  83220. if (t4 == null)
  83221. t4 = t2._as(t4);
  83222. if (t4 === 9) {
  83223. t4 = B.JSString_methods.$mul(" ", 4);
  83224. t3._contents += t4;
  83225. } else {
  83226. t4 = A.Primitives_stringFromCharCode(t4);
  83227. t3._contents += t4;
  83228. }
  83229. }
  83230. },
  83231. _writeSidebar$3$end$line$text(end, line, text) {
  83232. var t1 = {};
  83233. t1.text = text;
  83234. if (line != null)
  83235. t1.text = B.JSInt_methods.toString$0(line + 1);
  83236. this._colorize$2$color(new A.Highlighter__writeSidebar_closure(t1, this, end), "\x1b[34m");
  83237. },
  83238. _writeSidebar$1$end(end) {
  83239. return this._writeSidebar$3$end$line$text(end, null, null);
  83240. },
  83241. _writeSidebar$1$text(text) {
  83242. return this._writeSidebar$3$end$line$text(null, null, text);
  83243. },
  83244. _writeSidebar$1$line(line) {
  83245. return this._writeSidebar$3$end$line$text(null, line, null);
  83246. },
  83247. _writeSidebar$0() {
  83248. return this._writeSidebar$3$end$line$text(null, null, null);
  83249. },
  83250. _countTabs$1(text) {
  83251. var t1, t2, count, t3;
  83252. for (t1 = new A.CodeUnits(text), t2 = type$.CodeUnits, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t2 = t2._eval$1("ListBase.E"), count = 0; t1.moveNext$0();) {
  83253. t3 = t1.__internal$_current;
  83254. if ((t3 == null ? t2._as(t3) : t3) === 9)
  83255. ++count;
  83256. }
  83257. return count;
  83258. },
  83259. _isOnlyWhitespace$1(text) {
  83260. var t1, t2, t3;
  83261. for (t1 = new A.CodeUnits(text), t2 = type$.CodeUnits, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t2 = t2._eval$1("ListBase.E"); t1.moveNext$0();) {
  83262. t3 = t1.__internal$_current;
  83263. if (t3 == null)
  83264. t3 = t2._as(t3);
  83265. if (t3 !== 32 && t3 !== 9)
  83266. return false;
  83267. }
  83268. return true;
  83269. },
  83270. _colorize$1$2$color(callback, color) {
  83271. var result,
  83272. t1 = this._primaryColor != null;
  83273. if (t1 && color != null)
  83274. this._highlighter$_buffer._contents += color;
  83275. result = callback.call$0();
  83276. if (t1 && color != null)
  83277. this._highlighter$_buffer._contents += "\x1b[0m";
  83278. return result;
  83279. },
  83280. _colorize$2$color(callback, color) {
  83281. return this._colorize$1$2$color(callback, color, type$.dynamic);
  83282. }
  83283. };
  83284. A.Highlighter_closure.prototype = {
  83285. call$0() {
  83286. var t1 = this.color,
  83287. t2 = J.getInterceptor$(t1);
  83288. if (t2.$eq(t1, true))
  83289. return "\x1b[31m";
  83290. if (t2.$eq(t1, false))
  83291. return null;
  83292. return A._asStringQ(t1);
  83293. },
  83294. $signature: 46
  83295. };
  83296. A.Highlighter$__closure.prototype = {
  83297. call$1(line) {
  83298. var t1 = line.highlights;
  83299. return new A.WhereIterable(t1, new A.Highlighter$___closure(), A._arrayInstanceType(t1)._eval$1("WhereIterable<1>")).get$length(0);
  83300. },
  83301. $signature: 287
  83302. };
  83303. A.Highlighter$___closure.prototype = {
  83304. call$1(highlight) {
  83305. var t1 = highlight.span;
  83306. return t1.get$start(t1).get$line() !== t1.get$end(t1).get$line();
  83307. },
  83308. $signature: 134
  83309. };
  83310. A.Highlighter$__closure0.prototype = {
  83311. call$1(line) {
  83312. return line.url;
  83313. },
  83314. $signature: 289
  83315. };
  83316. A.Highlighter__collateLines_closure.prototype = {
  83317. call$1(highlight) {
  83318. var t1 = highlight.span;
  83319. t1 = t1.get$sourceUrl(t1);
  83320. return t1 == null ? new A.Object() : t1;
  83321. },
  83322. $signature: 290
  83323. };
  83324. A.Highlighter__collateLines_closure0.prototype = {
  83325. call$2(highlight1, highlight2) {
  83326. return highlight1.span.compareTo$1(0, highlight2.span);
  83327. },
  83328. $signature: 291
  83329. };
  83330. A.Highlighter__collateLines_closure1.prototype = {
  83331. call$1(entry) {
  83332. var t1, t2, t3, t4, context, t5, linesBeforeSpan, lineNumber, _i, line, activeHighlights, highlightIndex, oldHighlightLength, t6,
  83333. url = entry.key,
  83334. highlightsForFile = entry.value,
  83335. lines = A._setArrayType([], type$.JSArray__Line);
  83336. for (t1 = J.getInterceptor$ax(highlightsForFile), t2 = t1.get$iterator(highlightsForFile), t3 = type$.JSArray__Highlight; t2.moveNext$0();) {
  83337. t4 = t2.get$current(t2).span;
  83338. context = t4.get$context(t4);
  83339. t5 = A.findLineStart(context, t4.get$text(), t4.get$start(t4).get$column());
  83340. t5.toString;
  83341. linesBeforeSpan = B.JSString_methods.allMatches$1("\n", B.JSString_methods.substring$2(context, 0, t5)).get$length(0);
  83342. lineNumber = t4.get$start(t4).get$line() - linesBeforeSpan;
  83343. for (t4 = context.split("\n"), t5 = t4.length, _i = 0; _i < t5; ++_i) {
  83344. line = t4[_i];
  83345. if (lines.length === 0 || lineNumber > B.JSArray_methods.get$last(lines).number)
  83346. lines.push(new A._Line(line, lineNumber, url, A._setArrayType([], t3)));
  83347. ++lineNumber;
  83348. }
  83349. }
  83350. activeHighlights = A._setArrayType([], t3);
  83351. for (t2 = lines.length, highlightIndex = 0, _i = 0; _i < lines.length; lines.length === t2 || (0, A.throwConcurrentModificationError)(lines), ++_i) {
  83352. line = lines[_i];
  83353. if (!!activeHighlights.fixed$length)
  83354. A.throwExpression(A.UnsupportedError$("removeWhere"));
  83355. B.JSArray_methods._removeWhere$2(activeHighlights, new A.Highlighter__collateLines__closure(line), true);
  83356. oldHighlightLength = activeHighlights.length;
  83357. for (t3 = t1.skip$1(highlightsForFile, highlightIndex), t4 = t3.$ti, t3 = new A.ListIterator(t3, t3.get$length(0), t4._eval$1("ListIterator<ListIterable.E>")), t4 = t4._eval$1("ListIterable.E"); t3.moveNext$0();) {
  83358. t5 = t3.__internal$_current;
  83359. if (t5 == null)
  83360. t5 = t4._as(t5);
  83361. t6 = t5.span;
  83362. if (t6.get$start(t6).get$line() > line.number)
  83363. break;
  83364. activeHighlights.push(t5);
  83365. }
  83366. highlightIndex += activeHighlights.length - oldHighlightLength;
  83367. B.JSArray_methods.addAll$1(line.highlights, activeHighlights);
  83368. }
  83369. return lines;
  83370. },
  83371. $signature: 292
  83372. };
  83373. A.Highlighter__collateLines__closure.prototype = {
  83374. call$1(highlight) {
  83375. var t1 = highlight.span;
  83376. return t1.get$end(t1).get$line() < this.line.number;
  83377. },
  83378. $signature: 134
  83379. };
  83380. A.Highlighter_highlight_closure.prototype = {
  83381. call$1(highlight) {
  83382. return highlight.isPrimary;
  83383. },
  83384. $signature: 134
  83385. };
  83386. A.Highlighter__writeFileStart_closure.prototype = {
  83387. call$0() {
  83388. var t1 = this.$this._highlighter$_buffer,
  83389. t2 = B.JSString_methods.$mul($._glyphs.get$horizontalLine(), 2) + ">";
  83390. t1._contents += t2;
  83391. return null;
  83392. },
  83393. $signature: 0
  83394. };
  83395. A.Highlighter__writeMultilineHighlights_closure.prototype = {
  83396. call$0() {
  83397. var t1 = this.$this._highlighter$_buffer,
  83398. t2 = $._glyphs;
  83399. t2 = this.startLine === this.line.number ? t2.get$topLeftCorner() : t2.get$bottomLeftCorner();
  83400. t1._contents += t2;
  83401. },
  83402. $signature: 1
  83403. };
  83404. A.Highlighter__writeMultilineHighlights_closure0.prototype = {
  83405. call$0() {
  83406. var t1 = this.$this._highlighter$_buffer,
  83407. t2 = $._glyphs;
  83408. t2 = this.highlight == null ? t2.get$horizontalLine() : t2.get$cross();
  83409. t1._contents += t2;
  83410. },
  83411. $signature: 1
  83412. };
  83413. A.Highlighter__writeMultilineHighlights_closure1.prototype = {
  83414. call$0() {
  83415. var t1 = this.$this._highlighter$_buffer,
  83416. t2 = $._glyphs.get$horizontalLine();
  83417. t1._contents += t2;
  83418. return null;
  83419. },
  83420. $signature: 0
  83421. };
  83422. A.Highlighter__writeMultilineHighlights_closure2.prototype = {
  83423. call$0() {
  83424. var _this = this,
  83425. t1 = _this._box_0,
  83426. t2 = t1.openedOnThisLine,
  83427. t3 = $._glyphs,
  83428. vertical = t2 ? t3.get$cross() : t3.get$verticalLine();
  83429. if (_this.current != null)
  83430. _this.$this._highlighter$_buffer._contents += vertical;
  83431. else {
  83432. t2 = _this.line;
  83433. t3 = t2.number;
  83434. if (_this.startLine === t3) {
  83435. t2 = _this.$this;
  83436. t2._colorize$2$color(new A.Highlighter__writeMultilineHighlights__closure(t1, t2), t1.openedOnThisLineColor);
  83437. t1.openedOnThisLine = true;
  83438. if (t1.openedOnThisLineColor == null)
  83439. t1.openedOnThisLineColor = _this.highlight.isPrimary ? t2._primaryColor : t2._secondaryColor;
  83440. } else {
  83441. if (_this.endLine === t3) {
  83442. t3 = _this.highlight.span;
  83443. t2 = t3.get$end(t3).get$column() === t2.text.length;
  83444. } else
  83445. t2 = false;
  83446. t3 = _this.$this;
  83447. if (t2) {
  83448. t1 = t3._highlighter$_buffer;
  83449. t2 = _this.highlight.label == null ? $._glyphs.glyphOrAscii$2("\u2514", "\\") : vertical;
  83450. t1._contents += t2;
  83451. } else
  83452. t3._colorize$2$color(new A.Highlighter__writeMultilineHighlights__closure0(t3, vertical), t1.openedOnThisLineColor);
  83453. }
  83454. }
  83455. },
  83456. $signature: 1
  83457. };
  83458. A.Highlighter__writeMultilineHighlights__closure.prototype = {
  83459. call$0() {
  83460. var t1 = this.$this._highlighter$_buffer,
  83461. t2 = this._box_0.openedOnThisLine ? "\u252c" : "\u250c";
  83462. t2 = $._glyphs.glyphOrAscii$2(t2, "/");
  83463. t1._contents += t2;
  83464. },
  83465. $signature: 1
  83466. };
  83467. A.Highlighter__writeMultilineHighlights__closure0.prototype = {
  83468. call$0() {
  83469. this.$this._highlighter$_buffer._contents += this.vertical;
  83470. },
  83471. $signature: 1
  83472. };
  83473. A.Highlighter__writeHighlightedText_closure.prototype = {
  83474. call$0() {
  83475. var _this = this;
  83476. return _this.$this._writeText$1(B.JSString_methods.substring$2(_this.text, _this.startColumn, _this.endColumn));
  83477. },
  83478. $signature: 0
  83479. };
  83480. A.Highlighter__writeIndicator_closure.prototype = {
  83481. call$0() {
  83482. var startColumn, endColumn, tabsBefore, tabsInside,
  83483. t1 = this.$this,
  83484. t2 = t1._highlighter$_buffer,
  83485. t3 = t2._contents,
  83486. t4 = this.highlight,
  83487. t5 = t4.span;
  83488. t4 = t4.isPrimary ? "^" : $._glyphs.get$horizontalLineBold();
  83489. startColumn = t5.get$start(t5).get$column();
  83490. endColumn = t5.get$end(t5).get$column();
  83491. t5 = this.line.text;
  83492. tabsBefore = t1._countTabs$1(B.JSString_methods.substring$2(t5, 0, startColumn));
  83493. tabsInside = t1._countTabs$1(B.JSString_methods.substring$2(t5, startColumn, endColumn));
  83494. startColumn += tabsBefore * 3;
  83495. t5 = B.JSString_methods.$mul(" ", startColumn);
  83496. t2._contents += t5;
  83497. t4 = B.JSString_methods.$mul(t4, Math.max(endColumn + (tabsBefore + tabsInside) * 3 - startColumn, 1));
  83498. t4 = t2._contents += t4;
  83499. return t4.length - t3.length;
  83500. },
  83501. $signature: 10
  83502. };
  83503. A.Highlighter__writeIndicator_closure0.prototype = {
  83504. call$0() {
  83505. var t1 = this.highlight.span;
  83506. return this.$this._writeArrow$2(this.line, t1.get$start(t1).get$column());
  83507. },
  83508. $signature: 0
  83509. };
  83510. A.Highlighter__writeIndicator_closure1.prototype = {
  83511. call$0() {
  83512. var t4, _this = this,
  83513. t1 = _this.$this,
  83514. t2 = t1._highlighter$_buffer,
  83515. t3 = t2._contents;
  83516. if (_this.coversWholeLine) {
  83517. t1 = B.JSString_methods.$mul($._glyphs.get$horizontalLine(), 3);
  83518. t2._contents += t1;
  83519. } else {
  83520. t4 = _this.highlight.span;
  83521. t1._writeArrow$3$beginning(_this.line, Math.max(t4.get$end(t4).get$column() - 1, 0), false);
  83522. }
  83523. return t2._contents.length - t3.length;
  83524. },
  83525. $signature: 10
  83526. };
  83527. A.Highlighter__writeLabel_closure.prototype = {
  83528. call$0() {
  83529. var t1 = this.$this._highlighter$_buffer,
  83530. t2 = " " + A.S(B.JSArray_methods.get$first(this.lines));
  83531. t1._contents += t2;
  83532. return null;
  83533. },
  83534. $signature: 0
  83535. };
  83536. A.Highlighter__writeLabel_closure0.prototype = {
  83537. call$0() {
  83538. this.$this._highlighter$_buffer._contents += " " + this.text;
  83539. return null;
  83540. },
  83541. $signature: 0
  83542. };
  83543. A.Highlighter__writeSidebar_closure.prototype = {
  83544. call$0() {
  83545. var t1 = this.$this,
  83546. t2 = t1._highlighter$_buffer,
  83547. t3 = this._box_0.text;
  83548. if (t3 == null)
  83549. t3 = "";
  83550. t1 = B.JSString_methods.padRight$1(t3, t1._paddingBeforeSidebar);
  83551. t2._contents += t1;
  83552. t1 = this.end;
  83553. if (t1 == null)
  83554. t1 = $._glyphs.get$verticalLine();
  83555. t2._contents += t1;
  83556. },
  83557. $signature: 1
  83558. };
  83559. A._Highlight.prototype = {
  83560. toString$0(_) {
  83561. var t1 = this.isPrimary ? "" + "primary " : "",
  83562. t2 = this.span;
  83563. t2 = t1 + ("" + t2.get$start(t2).get$line() + ":" + t2.get$start(t2).get$column() + "-" + t2.get$end(t2).get$line() + ":" + t2.get$end(t2).get$column());
  83564. t1 = this.label;
  83565. t1 = t1 != null ? t2 + (" (" + t1 + ")") : t2;
  83566. return t1.charCodeAt(0) == 0 ? t1 : t1;
  83567. }
  83568. };
  83569. A._Highlight_closure.prototype = {
  83570. call$0() {
  83571. var t2, t3, t4, t5,
  83572. t1 = this.span;
  83573. if (!(type$.SourceSpanWithContext._is(t1) && A.findLineStart(t1.get$context(t1), t1.get$text(), t1.get$start(t1).get$column()) != null)) {
  83574. t2 = A.SourceLocation$(t1.get$start(t1).get$offset(), 0, 0, t1.get$sourceUrl(t1));
  83575. t3 = t1.get$end(t1).get$offset();
  83576. t4 = t1.get$sourceUrl(t1);
  83577. t5 = A.countCodeUnits(t1.get$text(), 10);
  83578. t1 = A.SourceSpanWithContext$(t2, A.SourceLocation$(t3, A._Highlight__lastLineLength(t1.get$text()), t5, t4), t1.get$text(), t1.get$text());
  83579. }
  83580. return A._Highlight__normalizeEndOfLine(A._Highlight__normalizeTrailingNewline(A._Highlight__normalizeNewlines(t1)));
  83581. },
  83582. $signature: 293
  83583. };
  83584. A._Line.prototype = {
  83585. toString$0(_) {
  83586. return "" + this.number + ': "' + this.text + '" (' + B.JSArray_methods.join$1(this.highlights, ", ") + ")";
  83587. }
  83588. };
  83589. A.SourceLocation.prototype = {
  83590. distance$1(other) {
  83591. var t1 = this.sourceUrl;
  83592. if (!J.$eq$(t1, other.get$sourceUrl(other)))
  83593. throw A.wrapException(A.ArgumentError$('Source URLs "' + A.S(t1) + '" and "' + A.S(other.get$sourceUrl(other)) + "\" don't match.", null));
  83594. return Math.abs(this.offset - other.get$offset());
  83595. },
  83596. compareTo$1(_, other) {
  83597. var t1 = this.sourceUrl;
  83598. if (!J.$eq$(t1, other.get$sourceUrl(other)))
  83599. throw A.wrapException(A.ArgumentError$('Source URLs "' + A.S(t1) + '" and "' + A.S(other.get$sourceUrl(other)) + "\" don't match.", null));
  83600. return this.offset - other.get$offset();
  83601. },
  83602. $eq(_, other) {
  83603. if (other == null)
  83604. return false;
  83605. return type$.SourceLocation._is(other) && J.$eq$(this.sourceUrl, other.get$sourceUrl(other)) && this.offset === other.get$offset();
  83606. },
  83607. get$hashCode(_) {
  83608. var t1 = this.sourceUrl;
  83609. t1 = t1 == null ? null : t1.get$hashCode(t1);
  83610. if (t1 == null)
  83611. t1 = 0;
  83612. return t1 + this.offset;
  83613. },
  83614. toString$0(_) {
  83615. var _this = this,
  83616. t1 = A.getRuntimeTypeOfDartObject(_this).toString$0(0),
  83617. source = _this.sourceUrl;
  83618. return "<" + t1 + ": " + _this.offset + " " + (A.S(source == null ? "unknown source" : source) + ":" + (_this.line + 1) + ":" + (_this.column + 1)) + ">";
  83619. },
  83620. $isComparable: 1,
  83621. get$sourceUrl(receiver) {
  83622. return this.sourceUrl;
  83623. },
  83624. get$offset() {
  83625. return this.offset;
  83626. },
  83627. get$line() {
  83628. return this.line;
  83629. },
  83630. get$column() {
  83631. return this.column;
  83632. }
  83633. };
  83634. A.SourceLocationMixin.prototype = {
  83635. distance$1(other) {
  83636. if (!J.$eq$(this.file.url, other.get$sourceUrl(other)))
  83637. throw A.wrapException(A.ArgumentError$('Source URLs "' + A.S(this.get$sourceUrl(0)) + '" and "' + A.S(other.get$sourceUrl(other)) + "\" don't match.", null));
  83638. return Math.abs(this.offset - other.get$offset());
  83639. },
  83640. compareTo$1(_, other) {
  83641. if (!J.$eq$(this.file.url, other.get$sourceUrl(other)))
  83642. throw A.wrapException(A.ArgumentError$('Source URLs "' + A.S(this.get$sourceUrl(0)) + '" and "' + A.S(other.get$sourceUrl(other)) + "\" don't match.", null));
  83643. return this.offset - other.get$offset();
  83644. },
  83645. $eq(_, other) {
  83646. if (other == null)
  83647. return false;
  83648. return type$.SourceLocation._is(other) && J.$eq$(this.file.url, other.get$sourceUrl(other)) && this.offset === other.get$offset();
  83649. },
  83650. get$hashCode(_) {
  83651. var t1 = this.file.url;
  83652. t1 = t1 == null ? null : t1.get$hashCode(t1);
  83653. if (t1 == null)
  83654. t1 = 0;
  83655. return t1 + this.offset;
  83656. },
  83657. toString$0(_) {
  83658. var t1 = A.getRuntimeTypeOfDartObject(this).toString$0(0),
  83659. t2 = this.offset,
  83660. t3 = this.file,
  83661. source = t3.url;
  83662. return "<" + t1 + ": " + t2 + " " + (A.S(source == null ? "unknown source" : source) + ":" + (t3.getLine$1(t2) + 1) + ":" + (t3.getColumn$1(t2) + 1)) + ">";
  83663. },
  83664. $isComparable: 1,
  83665. $isSourceLocation: 1
  83666. };
  83667. A.SourceSpanBase.prototype = {
  83668. SourceSpanBase$3(start, end, text) {
  83669. var t3,
  83670. t1 = this.end,
  83671. t2 = this.start;
  83672. if (!J.$eq$(t1.get$sourceUrl(t1), t2.get$sourceUrl(t2)))
  83673. throw A.wrapException(A.ArgumentError$('Source URLs "' + A.S(t2.get$sourceUrl(t2)) + '" and "' + A.S(t1.get$sourceUrl(t1)) + "\" don't match.", null));
  83674. else if (t1.get$offset() < t2.get$offset())
  83675. throw A.wrapException(A.ArgumentError$("End " + t1.toString$0(0) + " must come after start " + t2.toString$0(0) + ".", null));
  83676. else {
  83677. t3 = this.text;
  83678. if (t3.length !== t2.distance$1(t1))
  83679. throw A.wrapException(A.ArgumentError$('Text "' + t3 + '" must be ' + t2.distance$1(t1) + " characters long.", null));
  83680. }
  83681. },
  83682. get$start(receiver) {
  83683. return this.start;
  83684. },
  83685. get$end(receiver) {
  83686. return this.end;
  83687. },
  83688. get$text() {
  83689. return this.text;
  83690. }
  83691. };
  83692. A.SourceSpanException.prototype = {
  83693. get$message(_) {
  83694. return this._span_exception$_message;
  83695. },
  83696. get$span(_) {
  83697. return this._span;
  83698. },
  83699. toString$1$color(_, color) {
  83700. var _this = this;
  83701. _this.get$span(_this);
  83702. return "Error on " + _this.get$span(_this).message$2$color(0, _this._span_exception$_message, color);
  83703. },
  83704. toString$0(_) {
  83705. return this.toString$1$color(0, null);
  83706. },
  83707. $isException: 1
  83708. };
  83709. A.SourceSpanFormatException.prototype = {$isFormatException: 1,
  83710. get$source() {
  83711. return this.source;
  83712. }
  83713. };
  83714. A.MultiSourceSpanException.prototype = {
  83715. toString$0(_) {
  83716. var _this = this;
  83717. return "Error on " + A.SourceSpanExtension_messageMultiple(_this._span, _this._span_exception$_message, _this.primaryLabel, _this.secondarySpans, false, null, null);
  83718. },
  83719. get$primaryLabel() {
  83720. return this.primaryLabel;
  83721. },
  83722. get$secondarySpans() {
  83723. return this.secondarySpans;
  83724. }
  83725. };
  83726. A.MultiSourceSpanFormatException.prototype = {$isFormatException: 1};
  83727. A.SourceSpanMixin.prototype = {
  83728. get$sourceUrl(_) {
  83729. var t1 = this.get$start(this);
  83730. return t1.get$sourceUrl(t1);
  83731. },
  83732. get$length(_) {
  83733. var _this = this;
  83734. return _this.get$end(_this).get$offset() - _this.get$start(_this).get$offset();
  83735. },
  83736. compareTo$1(_, other) {
  83737. var _this = this,
  83738. result = _this.get$start(_this).compareTo$1(0, other.get$start(other));
  83739. return result === 0 ? _this.get$end(_this).compareTo$1(0, other.get$end(other)) : result;
  83740. },
  83741. message$2$color(_, message, color) {
  83742. var t2, t3, highlight, _this = this,
  83743. t1 = "" + ("line " + (_this.get$start(_this).get$line() + 1) + ", column " + (_this.get$start(_this).get$column() + 1));
  83744. if (_this.get$sourceUrl(_this) != null) {
  83745. t2 = _this.get$sourceUrl(_this);
  83746. t3 = $.$get$context();
  83747. t2.toString;
  83748. t2 = t1 + (" of " + t3.prettyUri$1(t2));
  83749. t1 = t2;
  83750. }
  83751. t1 += ": " + message;
  83752. highlight = _this.highlight$1$color(color);
  83753. if (highlight.length !== 0)
  83754. t1 = t1 + "\n" + highlight;
  83755. return t1.charCodeAt(0) == 0 ? t1 : t1;
  83756. },
  83757. message$1(_, message) {
  83758. return this.message$2$color(0, message, null);
  83759. },
  83760. highlight$1$color(color) {
  83761. var _this = this;
  83762. if (!type$.SourceSpanWithContext._is(_this) && _this.get$length(_this) === 0)
  83763. return "";
  83764. return A.Highlighter$(_this, color).highlight$0();
  83765. },
  83766. $eq(_, other) {
  83767. var _this = this;
  83768. if (other == null)
  83769. return false;
  83770. return type$.SourceSpan._is(other) && _this.get$start(_this).$eq(0, other.get$start(other)) && _this.get$end(_this).$eq(0, other.get$end(other));
  83771. },
  83772. get$hashCode(_) {
  83773. var _this = this;
  83774. return A.Object_hash(_this.get$start(_this), _this.get$end(_this), B.C_SentinelValue, B.C_SentinelValue);
  83775. },
  83776. toString$0(_) {
  83777. var _this = this;
  83778. return "<" + A.getRuntimeTypeOfDartObject(_this).toString$0(0) + ": from " + _this.get$start(_this).toString$0(0) + " to " + _this.get$end(_this).toString$0(0) + ' "' + _this.get$text() + '">';
  83779. },
  83780. $isComparable: 1,
  83781. $isSourceSpan: 1
  83782. };
  83783. A.SourceSpanWithContext.prototype = {
  83784. get$context(_) {
  83785. return this._context;
  83786. }
  83787. };
  83788. A.Chain.prototype = {
  83789. toTrace$0() {
  83790. var t1 = this.traces;
  83791. return A.Trace$(new A.ExpandIterable(t1, new A.Chain_toTrace_closure(), A._arrayInstanceType(t1)._eval$1("ExpandIterable<1,Frame>")), null);
  83792. },
  83793. toString$0(_) {
  83794. var t1 = this.traces,
  83795. t2 = A._arrayInstanceType(t1);
  83796. return new A.MappedListIterable(t1, new A.Chain_toString_closure(new A.MappedListIterable(t1, new A.Chain_toString_closure0(), t2._eval$1("MappedListIterable<1,int>")).fold$2(0, 0, B.CONSTANT)), t2._eval$1("MappedListIterable<1,String>")).join$1(0, string$.x3d_____);
  83797. },
  83798. $isStackTrace: 1
  83799. };
  83800. A.Chain_Chain$parse_closure.prototype = {
  83801. call$1(line) {
  83802. return line.length !== 0;
  83803. },
  83804. $signature: 5
  83805. };
  83806. A.Chain_toTrace_closure.prototype = {
  83807. call$1(trace) {
  83808. return trace.get$frames();
  83809. },
  83810. $signature: 294
  83811. };
  83812. A.Chain_toString_closure0.prototype = {
  83813. call$1(trace) {
  83814. var t1 = trace.get$frames();
  83815. return new A.MappedListIterable(t1, new A.Chain_toString__closure0(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,int>")).fold$2(0, 0, B.CONSTANT);
  83816. },
  83817. $signature: 295
  83818. };
  83819. A.Chain_toString__closure0.prototype = {
  83820. call$1(frame) {
  83821. return frame.get$location().length;
  83822. },
  83823. $signature: 151
  83824. };
  83825. A.Chain_toString_closure.prototype = {
  83826. call$1(trace) {
  83827. var t1 = trace.get$frames();
  83828. return new A.MappedListIterable(t1, new A.Chain_toString__closure(this.longest), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$0(0);
  83829. },
  83830. $signature: 297
  83831. };
  83832. A.Chain_toString__closure.prototype = {
  83833. call$1(frame) {
  83834. return B.JSString_methods.padRight$1(frame.get$location(), this.longest) + " " + A.S(frame.get$member()) + "\n";
  83835. },
  83836. $signature: 152
  83837. };
  83838. A.Frame.prototype = {
  83839. get$isCore() {
  83840. return this.uri.get$scheme() === "dart";
  83841. },
  83842. get$library() {
  83843. var t1 = this.uri;
  83844. if (t1.get$scheme() === "data")
  83845. return "data:...";
  83846. return $.$get$context().prettyUri$1(t1);
  83847. },
  83848. get$$package() {
  83849. var t1 = this.uri;
  83850. if (t1.get$scheme() !== "package")
  83851. return null;
  83852. return B.JSArray_methods.get$first(t1.get$path(t1).split("/"));
  83853. },
  83854. get$location() {
  83855. var t2, _this = this,
  83856. t1 = _this.line;
  83857. if (t1 == null)
  83858. return _this.get$library();
  83859. t2 = _this.column;
  83860. if (t2 == null)
  83861. return _this.get$library() + " " + A.S(t1);
  83862. return _this.get$library() + " " + A.S(t1) + ":" + A.S(t2);
  83863. },
  83864. toString$0(_) {
  83865. return this.get$location() + " in " + A.S(this.member);
  83866. },
  83867. get$uri() {
  83868. return this.uri;
  83869. },
  83870. get$line() {
  83871. return this.line;
  83872. },
  83873. get$column() {
  83874. return this.column;
  83875. },
  83876. get$member() {
  83877. return this.member;
  83878. }
  83879. };
  83880. A.Frame_Frame$parseVM_closure.prototype = {
  83881. call$0() {
  83882. var match, t2, t3, member, uri, lineAndColumn, line, _null = null,
  83883. t1 = this.frame;
  83884. if (t1 === "...")
  83885. return new A.Frame(A._Uri__Uri(_null, _null, _null, _null), _null, _null, "...");
  83886. match = $.$get$_vmFrame().firstMatch$1(t1);
  83887. if (match == null)
  83888. return new A.UnparsedFrame(A._Uri__Uri(_null, "unparsed", _null, _null), t1);
  83889. t1 = match._match;
  83890. t2 = t1[1];
  83891. t2.toString;
  83892. t3 = $.$get$_asyncBody();
  83893. t2 = A.stringReplaceAllUnchecked(t2, t3, "<async>");
  83894. member = A.stringReplaceAllUnchecked(t2, "<anonymous closure>", "<fn>");
  83895. t2 = t1[2];
  83896. t3 = t2;
  83897. t3.toString;
  83898. if (B.JSString_methods.startsWith$1(t3, "<data:"))
  83899. uri = A.Uri_Uri$dataFromString("", _null, _null);
  83900. else {
  83901. t2 = t2;
  83902. t2.toString;
  83903. uri = A.Uri_parse(t2);
  83904. }
  83905. lineAndColumn = t1[3].split(":");
  83906. t1 = lineAndColumn.length;
  83907. line = t1 > 1 ? A.int_parse(lineAndColumn[1], _null) : _null;
  83908. return new A.Frame(uri, line, t1 > 2 ? A.int_parse(lineAndColumn[2], _null) : _null, member);
  83909. },
  83910. $signature: 72
  83911. };
  83912. A.Frame_Frame$parseV8_closure.prototype = {
  83913. call$0() {
  83914. var member, uri, t2, functionOffset, t3, _s4_ = "<fn>",
  83915. t1 = this.frame,
  83916. match = $.$get$_v8WasmFrame().firstMatch$1(t1);
  83917. if (match != null) {
  83918. member = match.namedGroup$1("member");
  83919. t1 = match.namedGroup$1("uri");
  83920. t1.toString;
  83921. uri = A.Frame__uriOrPathToUri(t1);
  83922. t1 = match.namedGroup$1("index");
  83923. t1.toString;
  83924. t2 = match.namedGroup$1("offset");
  83925. t2.toString;
  83926. functionOffset = A.int_parse(t2, 16);
  83927. if (!(member == null))
  83928. t1 = member;
  83929. return new A.Frame(uri, 1, functionOffset + 1, t1);
  83930. }
  83931. match = $.$get$_v8JsFrame().firstMatch$1(t1);
  83932. if (match != null) {
  83933. t1 = new A.Frame_Frame$parseV8_closure_parseJsLocation(t1);
  83934. t2 = match._match;
  83935. t3 = t2[2];
  83936. if (t3 != null) {
  83937. t3 = t3;
  83938. t3.toString;
  83939. t2 = t2[1];
  83940. t2.toString;
  83941. t2 = A.stringReplaceAllUnchecked(t2, "<anonymous>", _s4_);
  83942. t2 = A.stringReplaceAllUnchecked(t2, "Anonymous function", _s4_);
  83943. return t1.call$2(t3, A.stringReplaceAllUnchecked(t2, "(anonymous function)", _s4_));
  83944. } else {
  83945. t2 = t2[3];
  83946. t2.toString;
  83947. return t1.call$2(t2, _s4_);
  83948. }
  83949. }
  83950. return new A.UnparsedFrame(A._Uri__Uri(null, "unparsed", null, null), t1);
  83951. },
  83952. $signature: 72
  83953. };
  83954. A.Frame_Frame$parseV8_closure_parseJsLocation.prototype = {
  83955. call$2($location, member) {
  83956. var t2, urlMatch, uri, line, columnMatch, _null = null,
  83957. t1 = $.$get$_v8EvalLocation(),
  83958. evalMatch = t1.firstMatch$1($location);
  83959. for (; evalMatch != null; $location = t2) {
  83960. t2 = evalMatch._match[1];
  83961. t2.toString;
  83962. evalMatch = t1.firstMatch$1(t2);
  83963. }
  83964. if ($location === "native")
  83965. return new A.Frame(A.Uri_parse("native"), _null, _null, member);
  83966. urlMatch = $.$get$_v8JsUrlLocation().firstMatch$1($location);
  83967. if (urlMatch == null)
  83968. return new A.UnparsedFrame(A._Uri__Uri(_null, "unparsed", _null, _null), this.frame);
  83969. t1 = urlMatch._match;
  83970. t2 = t1[1];
  83971. t2.toString;
  83972. uri = A.Frame__uriOrPathToUri(t2);
  83973. t2 = t1[2];
  83974. t2.toString;
  83975. line = A.int_parse(t2, _null);
  83976. columnMatch = t1[3];
  83977. return new A.Frame(uri, line, columnMatch != null ? A.int_parse(columnMatch, _null) : _null, member);
  83978. },
  83979. $signature: 300
  83980. };
  83981. A.Frame_Frame$_parseFirefoxEval_closure.prototype = {
  83982. call$0() {
  83983. var t2, member, uri, line, _null = null,
  83984. t1 = this.frame,
  83985. match = $.$get$_firefoxEvalLocation().firstMatch$1(t1);
  83986. if (match == null)
  83987. return new A.UnparsedFrame(A._Uri__Uri(_null, "unparsed", _null, _null), t1);
  83988. t1 = match._match;
  83989. t2 = t1[1];
  83990. t2.toString;
  83991. member = A.stringReplaceAllUnchecked(t2, "/<", "");
  83992. t2 = t1[2];
  83993. t2.toString;
  83994. uri = A.Frame__uriOrPathToUri(t2);
  83995. t1 = t1[3];
  83996. t1.toString;
  83997. line = A.int_parse(t1, _null);
  83998. return new A.Frame(uri, line, _null, member.length === 0 || member === "anonymous" ? "<fn>" : member);
  83999. },
  84000. $signature: 72
  84001. };
  84002. A.Frame_Frame$parseFirefox_closure.prototype = {
  84003. call$0() {
  84004. var t2, t3, t4, uri, member, line, column, functionOffset, _null = null,
  84005. t1 = this.frame,
  84006. match = $.$get$_firefoxSafariJSFrame().firstMatch$1(t1);
  84007. if (match != null) {
  84008. t2 = match._match;
  84009. t3 = t2[3];
  84010. t4 = t3;
  84011. t4.toString;
  84012. if (B.JSString_methods.contains$1(t4, " line "))
  84013. return A.Frame_Frame$_parseFirefoxEval(t1);
  84014. t1 = t3;
  84015. t1.toString;
  84016. uri = A.Frame__uriOrPathToUri(t1);
  84017. member = t2[1];
  84018. if (member != null) {
  84019. t1 = t2[2];
  84020. t1.toString;
  84021. member += B.JSArray_methods.join$0(A.List_List$filled(B.JSString_methods.allMatches$1("/", t1).get$length(0), ".<fn>", false, type$.String));
  84022. if (member === "")
  84023. member = "<fn>";
  84024. member = B.JSString_methods.replaceFirst$2(member, $.$get$_initialDot(), "");
  84025. } else
  84026. member = "<fn>";
  84027. t1 = t2[4];
  84028. if (t1 === "")
  84029. line = _null;
  84030. else {
  84031. t1 = t1;
  84032. t1.toString;
  84033. line = A.int_parse(t1, _null);
  84034. }
  84035. t1 = t2[5];
  84036. if (t1 == null || t1 === "")
  84037. column = _null;
  84038. else {
  84039. t1 = t1;
  84040. t1.toString;
  84041. column = A.int_parse(t1, _null);
  84042. }
  84043. return new A.Frame(uri, line, column, member);
  84044. }
  84045. match = $.$get$_firefoxWasmFrame().firstMatch$1(t1);
  84046. if (match != null) {
  84047. t1 = match.namedGroup$1("member");
  84048. t1.toString;
  84049. t2 = match.namedGroup$1("uri");
  84050. t2.toString;
  84051. uri = A.Frame__uriOrPathToUri(t2);
  84052. t2 = match.namedGroup$1("index");
  84053. t2.toString;
  84054. t3 = match.namedGroup$1("offset");
  84055. t3.toString;
  84056. functionOffset = A.int_parse(t3, 16);
  84057. if (!(t1.length !== 0))
  84058. t1 = t2;
  84059. return new A.Frame(uri, 1, functionOffset + 1, t1);
  84060. }
  84061. match = $.$get$_safariWasmFrame().firstMatch$1(t1);
  84062. if (match != null) {
  84063. t1 = match.namedGroup$1("member");
  84064. t1.toString;
  84065. return new A.Frame(A._Uri__Uri(_null, "wasm code", _null, _null), _null, _null, t1);
  84066. }
  84067. return new A.UnparsedFrame(A._Uri__Uri(_null, "unparsed", _null, _null), t1);
  84068. },
  84069. $signature: 72
  84070. };
  84071. A.Frame_Frame$parseFriendly_closure.prototype = {
  84072. call$0() {
  84073. var t2, uri, line, column, _null = null,
  84074. t1 = this.frame,
  84075. match = $.$get$_friendlyFrame().firstMatch$1(t1);
  84076. if (match == null)
  84077. throw A.wrapException(A.FormatException$("Couldn't parse package:stack_trace stack trace line '" + t1 + "'.", _null, _null));
  84078. t1 = match._match;
  84079. t2 = t1[1];
  84080. if (t2 === "data:...")
  84081. uri = A.Uri_Uri$dataFromString("", _null, _null);
  84082. else {
  84083. t2 = t2;
  84084. t2.toString;
  84085. uri = A.Uri_parse(t2);
  84086. }
  84087. if (uri.get$scheme() === "") {
  84088. t2 = $.$get$context();
  84089. uri = t2.toUri$1(A.absolute(t2.style.pathFromUri$1(A._parseUri(uri)), _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null));
  84090. }
  84091. t2 = t1[2];
  84092. if (t2 == null)
  84093. line = _null;
  84094. else {
  84095. t2 = t2;
  84096. t2.toString;
  84097. line = A.int_parse(t2, _null);
  84098. }
  84099. t2 = t1[3];
  84100. if (t2 == null)
  84101. column = _null;
  84102. else {
  84103. t2 = t2;
  84104. t2.toString;
  84105. column = A.int_parse(t2, _null);
  84106. }
  84107. return new A.Frame(uri, line, column, t1[4]);
  84108. },
  84109. $signature: 72
  84110. };
  84111. A.LazyTrace.prototype = {
  84112. get$_lazy_trace$_trace() {
  84113. var result, _this = this,
  84114. value = _this.__LazyTrace__trace_FI;
  84115. if (value === $) {
  84116. result = _this._thunk.call$0();
  84117. _this.__LazyTrace__trace_FI !== $ && A.throwUnnamedLateFieldADI();
  84118. _this.__LazyTrace__trace_FI = result;
  84119. value = result;
  84120. }
  84121. return value;
  84122. },
  84123. get$frames() {
  84124. return this.get$_lazy_trace$_trace().get$frames();
  84125. },
  84126. get$terse() {
  84127. return new A.LazyTrace(new A.LazyTrace_terse_closure(this));
  84128. },
  84129. toString$0(_) {
  84130. return this.get$_lazy_trace$_trace().toString$0(0);
  84131. },
  84132. $isStackTrace: 1,
  84133. $isTrace: 1
  84134. };
  84135. A.LazyTrace_terse_closure.prototype = {
  84136. call$0() {
  84137. return this.$this.get$_lazy_trace$_trace().get$terse();
  84138. },
  84139. $signature: 154
  84140. };
  84141. A.Trace.prototype = {
  84142. get$terse() {
  84143. return this.foldFrames$2$terse(new A.Trace_terse_closure(), true);
  84144. },
  84145. foldFrames$2$terse(predicate, terse) {
  84146. var newFrames, t1, t2, t3, _box_0 = {};
  84147. _box_0.predicate = predicate;
  84148. _box_0.predicate = new A.Trace_foldFrames_closure(predicate);
  84149. newFrames = A._setArrayType([], type$.JSArray_Frame);
  84150. for (t1 = this.frames, t2 = A._arrayInstanceType(t1)._eval$1("ReversedListIterable<1>"), t1 = new A.ReversedListIterable(t1, t2), t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListIterable.E>")), t2 = t2._eval$1("ListIterable.E"); t1.moveNext$0();) {
  84151. t3 = t1.__internal$_current;
  84152. if (t3 == null)
  84153. t3 = t2._as(t3);
  84154. if (t3 instanceof A.UnparsedFrame || !_box_0.predicate.call$1(t3))
  84155. newFrames.push(t3);
  84156. else if (newFrames.length === 0 || !_box_0.predicate.call$1(B.JSArray_methods.get$last(newFrames)))
  84157. newFrames.push(new A.Frame(t3.get$uri(), t3.get$line(), t3.get$column(), t3.get$member()));
  84158. }
  84159. t1 = type$.MappedListIterable_Frame_Frame;
  84160. newFrames = A.List_List$of(new A.MappedListIterable(newFrames, new A.Trace_foldFrames_closure0(_box_0), t1), true, t1._eval$1("ListIterable.E"));
  84161. if (newFrames.length > 1 && _box_0.predicate.call$1(B.JSArray_methods.get$first(newFrames)))
  84162. B.JSArray_methods.removeAt$1(newFrames, 0);
  84163. return A.Trace$(new A.ReversedListIterable(newFrames, A._arrayInstanceType(newFrames)._eval$1("ReversedListIterable<1>")), this.original._stackTrace);
  84164. },
  84165. toString$0(_) {
  84166. var t1 = this.frames,
  84167. t2 = A._arrayInstanceType(t1);
  84168. return new A.MappedListIterable(t1, new A.Trace_toString_closure(new A.MappedListIterable(t1, new A.Trace_toString_closure0(), t2._eval$1("MappedListIterable<1,int>")).fold$2(0, 0, B.CONSTANT)), t2._eval$1("MappedListIterable<1,String>")).join$0(0);
  84169. },
  84170. $isStackTrace: 1,
  84171. get$frames() {
  84172. return this.frames;
  84173. }
  84174. };
  84175. A.Trace_Trace$from_closure.prototype = {
  84176. call$0() {
  84177. return A.Trace_Trace$parse(this.trace.toString$0(0));
  84178. },
  84179. $signature: 154
  84180. };
  84181. A.Trace__parseVM_closure.prototype = {
  84182. call$1(line) {
  84183. return line.length !== 0;
  84184. },
  84185. $signature: 5
  84186. };
  84187. A.Trace$parseV8_closure.prototype = {
  84188. call$1(line) {
  84189. return !B.JSString_methods.startsWith$1(line, $.$get$_v8TraceLine());
  84190. },
  84191. $signature: 5
  84192. };
  84193. A.Trace$parseJSCore_closure.prototype = {
  84194. call$1(line) {
  84195. return line !== "\tat ";
  84196. },
  84197. $signature: 5
  84198. };
  84199. A.Trace$parseFirefox_closure.prototype = {
  84200. call$1(line) {
  84201. return line.length !== 0 && line !== "[native code]";
  84202. },
  84203. $signature: 5
  84204. };
  84205. A.Trace$parseFriendly_closure.prototype = {
  84206. call$1(line) {
  84207. return !B.JSString_methods.startsWith$1(line, "=====");
  84208. },
  84209. $signature: 5
  84210. };
  84211. A.Trace_terse_closure.prototype = {
  84212. call$1(_) {
  84213. return false;
  84214. },
  84215. $signature: 155
  84216. };
  84217. A.Trace_foldFrames_closure.prototype = {
  84218. call$1(frame) {
  84219. var t1;
  84220. if (this.oldPredicate.call$1(frame))
  84221. return true;
  84222. if (frame.get$isCore())
  84223. return true;
  84224. if (frame.get$$package() === "stack_trace")
  84225. return true;
  84226. t1 = frame.get$member();
  84227. t1.toString;
  84228. if (!B.JSString_methods.contains$1(t1, "<async>"))
  84229. return false;
  84230. return frame.get$line() == null;
  84231. },
  84232. $signature: 155
  84233. };
  84234. A.Trace_foldFrames_closure0.prototype = {
  84235. call$1(frame) {
  84236. var t1, t2;
  84237. if (frame instanceof A.UnparsedFrame || !this._box_0.predicate.call$1(frame))
  84238. return frame;
  84239. t1 = frame.get$library();
  84240. t2 = $.$get$_terseRegExp();
  84241. return new A.Frame(A.Uri_parse(A.stringReplaceAllUnchecked(t1, t2, "")), null, null, frame.get$member());
  84242. },
  84243. $signature: 303
  84244. };
  84245. A.Trace_toString_closure0.prototype = {
  84246. call$1(frame) {
  84247. return frame.get$location().length;
  84248. },
  84249. $signature: 151
  84250. };
  84251. A.Trace_toString_closure.prototype = {
  84252. call$1(frame) {
  84253. if (frame instanceof A.UnparsedFrame)
  84254. return frame.toString$0(0) + "\n";
  84255. return B.JSString_methods.padRight$1(frame.get$location(), this.longest) + " " + A.S(frame.get$member()) + "\n";
  84256. },
  84257. $signature: 152
  84258. };
  84259. A.UnparsedFrame.prototype = {
  84260. toString$0(_) {
  84261. return this.member;
  84262. },
  84263. $isFrame: 1,
  84264. get$uri() {
  84265. return this.uri;
  84266. },
  84267. get$line() {
  84268. return null;
  84269. },
  84270. get$column() {
  84271. return null;
  84272. },
  84273. get$isCore() {
  84274. return false;
  84275. },
  84276. get$library() {
  84277. return "unparsed";
  84278. },
  84279. get$$package() {
  84280. return null;
  84281. },
  84282. get$location() {
  84283. return "unparsed";
  84284. },
  84285. get$member() {
  84286. return this.member;
  84287. }
  84288. };
  84289. A.TransformByHandlers_transformByHandlers_closure.prototype = {
  84290. call$0() {
  84291. var t2, subscription, t3, t4, _this = this, t1 = {};
  84292. t1.valuesDone = false;
  84293. t2 = _this.controller;
  84294. subscription = _this._this.listen$3$onDone$onError(0, new A.TransformByHandlers_transformByHandlers__closure(_this.handleData, t2, _this.S), new A.TransformByHandlers_transformByHandlers__closure0(t1, _this.handleDone, t2), new A.TransformByHandlers_transformByHandlers__closure1(_this.handleError, t2));
  84295. t3 = _this._box_1;
  84296. t3.subscription = subscription;
  84297. t2.set$onPause(subscription.get$pause(subscription));
  84298. t4 = t3.subscription;
  84299. t2.set$onResume(t4.get$resume(t4));
  84300. t2.set$onCancel(new A.TransformByHandlers_transformByHandlers__closure2(t3, t1));
  84301. },
  84302. $signature: 0
  84303. };
  84304. A.TransformByHandlers_transformByHandlers__closure.prototype = {
  84305. call$1(value) {
  84306. return this.handleData.call$2(value, this.controller);
  84307. },
  84308. $signature() {
  84309. return this.S._eval$1("~(0)");
  84310. }
  84311. };
  84312. A.TransformByHandlers_transformByHandlers__closure1.prototype = {
  84313. call$2(error, stackTrace) {
  84314. this.handleError.call$3(error, stackTrace, this.controller);
  84315. },
  84316. $signature: 54
  84317. };
  84318. A.TransformByHandlers_transformByHandlers__closure0.prototype = {
  84319. call$0() {
  84320. this._box_0.valuesDone = true;
  84321. this.handleDone.call$1(this.controller);
  84322. },
  84323. $signature: 0
  84324. };
  84325. A.TransformByHandlers_transformByHandlers__closure2.prototype = {
  84326. call$0() {
  84327. var t1 = this._box_1,
  84328. toCancel = t1.subscription;
  84329. t1.subscription = null;
  84330. if (!this._box_0.valuesDone)
  84331. return toCancel.cancel$0();
  84332. return null;
  84333. },
  84334. $signature: 190
  84335. };
  84336. A.RateLimit__debounceAggregate_closure.prototype = {
  84337. call$2(value, sink) {
  84338. var _this = this,
  84339. t1 = _this._box_0,
  84340. t2 = new A.RateLimit__debounceAggregate_closure_emit(t1, sink, _this.S),
  84341. t3 = t1.timer;
  84342. if (t3 != null)
  84343. t3.cancel$0();
  84344. t1.soFar = _this.collect.call$2(value, t1.soFar);
  84345. t1.hasPending = true;
  84346. if (t1.timer == null && _this.leading) {
  84347. t1.emittedLatestAsLeading = true;
  84348. t2.call$0();
  84349. } else
  84350. t1.emittedLatestAsLeading = false;
  84351. t1.timer = A.Timer_Timer(_this.duration, new A.RateLimit__debounceAggregate__closure(t1, _this.trailing, t2, sink));
  84352. },
  84353. $signature() {
  84354. return this.T._eval$1("@<0>")._bind$1(this.S)._eval$1("~(1,EventSink<2>)");
  84355. }
  84356. };
  84357. A.RateLimit__debounceAggregate_closure_emit.prototype = {
  84358. call$0() {
  84359. var t1 = this._box_0,
  84360. t2 = t1.soFar;
  84361. if (t2 == null)
  84362. t2 = this.S._as(t2);
  84363. this.sink.add$1(0, t2);
  84364. t1.soFar = null;
  84365. t1.hasPending = false;
  84366. },
  84367. $signature: 0
  84368. };
  84369. A.RateLimit__debounceAggregate__closure.prototype = {
  84370. call$0() {
  84371. var t1 = this._box_0,
  84372. t2 = t1.emittedLatestAsLeading;
  84373. if (!t2)
  84374. this.emit.call$0();
  84375. if (t1.shouldClose)
  84376. this.sink.close$0(0);
  84377. t1.timer = null;
  84378. },
  84379. $signature: 0
  84380. };
  84381. A.RateLimit__debounceAggregate_closure0.prototype = {
  84382. call$1(sink) {
  84383. var t1 = this._box_0;
  84384. if (t1.hasPending && this.trailing)
  84385. t1.shouldClose = true;
  84386. else {
  84387. t1 = t1.timer;
  84388. if (t1 != null)
  84389. t1.cancel$0();
  84390. sink.close$0(0);
  84391. }
  84392. },
  84393. $signature() {
  84394. return this.S._eval$1("~(EventSink<0>)");
  84395. }
  84396. };
  84397. A.StringScannerException.prototype = {
  84398. get$source() {
  84399. return A._asString(this.source);
  84400. }
  84401. };
  84402. A.LineScanner.prototype = {
  84403. scanChar$1(character) {
  84404. if (!this.super$StringScanner$scanChar(character))
  84405. return false;
  84406. this._adjustLineAndColumn$1(character);
  84407. return true;
  84408. },
  84409. readChar$0() {
  84410. var character = this.super$StringScanner$readChar();
  84411. this._adjustLineAndColumn$1(character);
  84412. return character;
  84413. },
  84414. _adjustLineAndColumn$1(character) {
  84415. var t1, _this = this;
  84416. if (character !== 10)
  84417. t1 = character === 13 && _this.peekChar$0() !== 10;
  84418. else
  84419. t1 = true;
  84420. if (t1) {
  84421. ++_this._line_scanner$_line;
  84422. _this._line_scanner$_column = 0;
  84423. } else {
  84424. t1 = _this._line_scanner$_column;
  84425. _this._line_scanner$_column = t1 + (character >= 65536 && character <= 1114111 ? 2 : 1);
  84426. }
  84427. },
  84428. scan$1(pattern) {
  84429. var t1, newlines, t2, _this = this;
  84430. if (!_this.super$StringScanner$scan(pattern))
  84431. return false;
  84432. t1 = _this.get$lastMatch();
  84433. newlines = _this._newlinesIn$2$endPosition(t1.pattern, _this._string_scanner$_position);
  84434. t1 = _this._line_scanner$_line;
  84435. t2 = newlines.length;
  84436. _this._line_scanner$_line = t1 + t2;
  84437. if (t2 === 0) {
  84438. t1 = _this._line_scanner$_column;
  84439. t2 = _this.get$lastMatch();
  84440. _this._line_scanner$_column = t1 + t2.pattern.length;
  84441. } else {
  84442. t1 = _this.get$lastMatch();
  84443. _this._line_scanner$_column = t1.pattern.length - J.get$end$z(B.JSArray_methods.get$last(newlines));
  84444. }
  84445. return true;
  84446. },
  84447. _newlinesIn$2$endPosition(text, endPosition) {
  84448. var t1 = $.$get$_newlineRegExp().allMatches$1(0, text),
  84449. newlines = A.List_List$of(t1, true, A._instanceType(t1)._eval$1("Iterable.E"));
  84450. t1 = this.string;
  84451. if (endPosition < t1.length && B.JSString_methods.endsWith$1(text, "\r") && t1[endPosition] === "\n")
  84452. B.JSArray_methods.removeLast$0(newlines);
  84453. return newlines;
  84454. }
  84455. };
  84456. A.SpanScanner.prototype = {
  84457. set$state(state) {
  84458. if (state._scanner !== this)
  84459. throw A.wrapException(A.ArgumentError$(string$.The_gi, null));
  84460. this.set$position(state.position);
  84461. },
  84462. spanFrom$2(startState, endState) {
  84463. var endPosition = endState == null ? this._string_scanner$_position : endState.position;
  84464. return this._sourceFile.span$2(0, startState.position, endPosition);
  84465. },
  84466. spanFrom$1(startState) {
  84467. return this.spanFrom$2(startState, null);
  84468. },
  84469. matches$1(pattern) {
  84470. var t1, t2, _this = this;
  84471. if (!_this.super$StringScanner$matches(pattern))
  84472. return false;
  84473. t1 = _this._string_scanner$_position;
  84474. t2 = _this.get$lastMatch();
  84475. _this._sourceFile.span$2(0, t1, t2.start + t2.pattern.length);
  84476. return true;
  84477. },
  84478. error$3$length$position(_, message, $length, position) {
  84479. var match, t2, _this = this,
  84480. t1 = _this.string;
  84481. A.validateErrorArgs(t1, null, position, $length);
  84482. match = position == null && $length == null ? _this.get$lastMatch() : null;
  84483. if (position == null)
  84484. position = match == null ? _this._string_scanner$_position : match.start;
  84485. if ($length == null)
  84486. if (match == null)
  84487. $length = 0;
  84488. else {
  84489. t2 = match.start;
  84490. $length = t2 + match.pattern.length - t2;
  84491. }
  84492. throw A.wrapException(A.StringScannerException$(message, _this._sourceFile.span$2(0, position, position + $length), t1));
  84493. },
  84494. error$1(_, message) {
  84495. return this.error$3$length$position(0, message, null, null);
  84496. },
  84497. error$2$position(_, message, position) {
  84498. return this.error$3$length$position(0, message, null, position);
  84499. },
  84500. error$2$length(_, message, $length) {
  84501. return this.error$3$length$position(0, message, $length, null);
  84502. }
  84503. };
  84504. A._SpanScannerState.prototype = {};
  84505. A.StringScanner.prototype = {
  84506. set$position(position) {
  84507. if (B.JSInt_methods.get$isNegative(position) || position > this.string.length)
  84508. throw A.wrapException(A.ArgumentError$("Invalid position " + position, null));
  84509. this._string_scanner$_position = position;
  84510. this._lastMatch = null;
  84511. },
  84512. get$lastMatch() {
  84513. var _this = this;
  84514. if (_this._string_scanner$_position !== _this._lastMatchPosition)
  84515. _this._lastMatch = null;
  84516. return _this._lastMatch;
  84517. },
  84518. readChar$0() {
  84519. var _this = this,
  84520. t1 = _this.string;
  84521. if (_this._string_scanner$_position === t1.length)
  84522. _this._fail$1("more input");
  84523. return t1.charCodeAt(_this._string_scanner$_position++);
  84524. },
  84525. peekChar$1(offset) {
  84526. var index;
  84527. if (offset == null)
  84528. offset = 0;
  84529. index = this._string_scanner$_position + offset;
  84530. if (index < 0 || index >= this.string.length)
  84531. return null;
  84532. return this.string.charCodeAt(index);
  84533. },
  84534. peekChar$0() {
  84535. return this.peekChar$1(null);
  84536. },
  84537. scanChar$1(character) {
  84538. var t1, t2, t3, t4, _this = this;
  84539. if (character >= 65536 && character <= 1114111) {
  84540. t1 = _this._string_scanner$_position;
  84541. t2 = t1 + 1;
  84542. t3 = _this.string;
  84543. if (t2 < t3.length) {
  84544. t4 = character - 65536;
  84545. t2 = t3.charCodeAt(t1) !== B.JSInt_methods._shrOtherPositive$1(t4, 10) + 55296 || t3.charCodeAt(t2) !== (t4 & 1023) + 56320;
  84546. } else
  84547. t2 = true;
  84548. if (t2)
  84549. return false;
  84550. else {
  84551. _this._string_scanner$_position = t1 + 2;
  84552. return true;
  84553. }
  84554. } else {
  84555. t1 = _this._string_scanner$_position;
  84556. t2 = _this.string;
  84557. if (t1 === t2.length)
  84558. return false;
  84559. if (t2.charCodeAt(t1) !== character)
  84560. return false;
  84561. _this._string_scanner$_position = t1 + 1;
  84562. return true;
  84563. }
  84564. },
  84565. expectChar$2$name(character, $name) {
  84566. if (this.scanChar$1(character))
  84567. return;
  84568. if ($name == null)
  84569. if (character === 92)
  84570. $name = '"\\"';
  84571. else
  84572. $name = character === 34 ? '"\\""' : '"' + A.Primitives_stringFromCharCode(character) + '"';
  84573. this._fail$1($name);
  84574. },
  84575. expectChar$1(character) {
  84576. return this.expectChar$2$name(character, null);
  84577. },
  84578. scan$1(pattern) {
  84579. var t1, _this = this,
  84580. success = _this.matches$1(pattern);
  84581. if (success) {
  84582. t1 = _this._lastMatch;
  84583. _this._lastMatchPosition = _this._string_scanner$_position = t1.start + t1.pattern.length;
  84584. }
  84585. return success;
  84586. },
  84587. expect$1(pattern) {
  84588. var t1, $name;
  84589. if (this.scan$1(pattern))
  84590. return;
  84591. t1 = A.stringReplaceAllUnchecked(pattern, "\\", "\\\\");
  84592. $name = '"' + A.stringReplaceAllUnchecked(t1, '"', '\\"') + '"';
  84593. this._fail$1($name);
  84594. },
  84595. expectDone$0() {
  84596. if (this._string_scanner$_position === this.string.length)
  84597. return;
  84598. this._fail$1("no more input");
  84599. },
  84600. matches$1(pattern) {
  84601. var _this = this,
  84602. t1 = B.JSString_methods.matchAsPrefix$2(pattern, _this.string, _this._string_scanner$_position);
  84603. _this._lastMatch = t1;
  84604. _this._lastMatchPosition = _this._string_scanner$_position;
  84605. return t1 != null;
  84606. },
  84607. substring$1(_, start) {
  84608. var end = this._string_scanner$_position;
  84609. return B.JSString_methods.substring$2(this.string, start, end);
  84610. },
  84611. error$3$length$position(_, message, $length, position) {
  84612. var match, t2, _this = this,
  84613. t1 = _this.string;
  84614. A.validateErrorArgs(t1, null, position, $length);
  84615. match = position == null && $length == null ? _this.get$lastMatch() : null;
  84616. if (position == null)
  84617. position = match == null ? _this._string_scanner$_position : match.start;
  84618. if ($length == null)
  84619. if (match == null)
  84620. $length = 0;
  84621. else {
  84622. t2 = match.start;
  84623. $length = t2 + match.pattern.length - t2;
  84624. }
  84625. throw A.wrapException(A.StringScannerException$(message, A.SourceFile$fromString(t1, _this.sourceUrl).span$2(0, position, position + $length), t1));
  84626. },
  84627. error$1(_, message) {
  84628. return this.error$3$length$position(0, message, null, null);
  84629. },
  84630. _fail$1($name) {
  84631. this.error$3$length$position(0, "expected " + $name + ".", 0, this._string_scanner$_position);
  84632. }
  84633. };
  84634. A.AsciiGlyphSet.prototype = {
  84635. glyphOrAscii$2(glyph, alternative) {
  84636. return alternative;
  84637. },
  84638. get$horizontalLine() {
  84639. return "-";
  84640. },
  84641. get$verticalLine() {
  84642. return "|";
  84643. },
  84644. get$topLeftCorner() {
  84645. return ",";
  84646. },
  84647. get$bottomLeftCorner() {
  84648. return "'";
  84649. },
  84650. get$cross() {
  84651. return "+";
  84652. },
  84653. get$upEnd() {
  84654. return "'";
  84655. },
  84656. get$downEnd() {
  84657. return ",";
  84658. },
  84659. get$horizontalLineBold() {
  84660. return "=";
  84661. }
  84662. };
  84663. A.UnicodeGlyphSet.prototype = {
  84664. glyphOrAscii$2(glyph, alternative) {
  84665. return glyph;
  84666. },
  84667. get$horizontalLine() {
  84668. return "\u2500";
  84669. },
  84670. get$verticalLine() {
  84671. return "\u2502";
  84672. },
  84673. get$topLeftCorner() {
  84674. return "\u250c";
  84675. },
  84676. get$bottomLeftCorner() {
  84677. return "\u2514";
  84678. },
  84679. get$cross() {
  84680. return "\u253c";
  84681. },
  84682. get$upEnd() {
  84683. return "\u2575";
  84684. },
  84685. get$downEnd() {
  84686. return "\u2577";
  84687. },
  84688. get$horizontalLineBold() {
  84689. return "\u2501";
  84690. }
  84691. };
  84692. A.WatchEvent.prototype = {
  84693. toString$0(_) {
  84694. return this.type.toString$0(0) + " " + this.path;
  84695. }
  84696. };
  84697. A.ChangeType.prototype = {
  84698. toString$0(_) {
  84699. return this._watch_event$_name;
  84700. }
  84701. };
  84702. A.A98RgbColorSpace0.prototype = {
  84703. get$isBoundedInternal() {
  84704. return true;
  84705. },
  84706. toLinear$1(channel) {
  84707. return J.get$sign$in(channel) * Math.pow(Math.abs(channel), 2.19921875);
  84708. },
  84709. fromLinear$1(channel) {
  84710. return J.get$sign$in(channel) * Math.pow(Math.abs(channel), 0.4547069271758437);
  84711. },
  84712. transformationMatrix$1(dest) {
  84713. var t1;
  84714. $label0$0: {
  84715. if (B.SrgbLinearColorSpace_sEs0 === dest || B.SrgbColorSpace_AD40 === dest || B.RgbColorSpace_mlz0 === dest) {
  84716. t1 = $.$get$linearA98RgbToLinearSrgb0();
  84717. break $label0$0;
  84718. }
  84719. if (B.DisplayP3ColorSpace_NQk0 === dest) {
  84720. t1 = $.$get$linearA98RgbToLinearDisplayP30();
  84721. break $label0$0;
  84722. }
  84723. if (B.ProphotoRgbColorSpace_KiG0 === dest) {
  84724. t1 = $.$get$linearA98RgbToLinearProphotoRgb0();
  84725. break $label0$0;
  84726. }
  84727. if (B.Rec2020ColorSpace_2jN0 === dest) {
  84728. t1 = $.$get$linearA98RgbToLinearRec20200();
  84729. break $label0$0;
  84730. }
  84731. if (B.XyzD65ColorSpace_4CA0 === dest) {
  84732. t1 = $.$get$linearA98RgbToXyzD650();
  84733. break $label0$0;
  84734. }
  84735. if (B.XyzD50ColorSpace_2No0 === dest) {
  84736. t1 = $.$get$linearA98RgbToXyzD500();
  84737. break $label0$0;
  84738. }
  84739. if (B.LmsColorSpace_8I80 === dest) {
  84740. t1 = $.$get$linearA98RgbToLms0();
  84741. break $label0$0;
  84742. }
  84743. t1 = this.super$ColorSpace$transformationMatrix0(dest);
  84744. break $label0$0;
  84745. }
  84746. return t1;
  84747. }
  84748. };
  84749. A.AnySelectorVisitor0.prototype = {
  84750. visitComplexSelector$1(complex) {
  84751. return B.JSArray_methods.any$1(complex.components, new A.AnySelectorVisitor_visitComplexSelector_closure0(this));
  84752. },
  84753. visitCompoundSelector$1(compound) {
  84754. return B.JSArray_methods.any$1(compound.components, new A.AnySelectorVisitor_visitCompoundSelector_closure0(this));
  84755. },
  84756. visitPseudoSelector$1(pseudo) {
  84757. var selector = pseudo.selector;
  84758. return selector == null ? false : this.visitSelectorList$1(selector);
  84759. },
  84760. visitSelectorList$1(list) {
  84761. return B.JSArray_methods.any$1(list.components, this.get$visitComplexSelector());
  84762. },
  84763. visitAttributeSelector$1(attribute) {
  84764. return false;
  84765. },
  84766. visitClassSelector$1(klass) {
  84767. return false;
  84768. },
  84769. visitIDSelector$1(id) {
  84770. return false;
  84771. },
  84772. visitParentSelector$1($parent) {
  84773. return false;
  84774. },
  84775. visitPlaceholderSelector$1(placeholder) {
  84776. return false;
  84777. },
  84778. visitTypeSelector$1(type) {
  84779. return false;
  84780. },
  84781. visitUniversalSelector$1(universal) {
  84782. return false;
  84783. }
  84784. };
  84785. A.AnySelectorVisitor_visitComplexSelector_closure0.prototype = {
  84786. call$1(component) {
  84787. return this.$this.visitCompoundSelector$1(component.selector);
  84788. },
  84789. $signature: 55
  84790. };
  84791. A.AnySelectorVisitor_visitCompoundSelector_closure0.prototype = {
  84792. call$1(simple) {
  84793. return simple.accept$1(this.$this);
  84794. },
  84795. $signature: 14
  84796. };
  84797. A.SupportsAnything0.prototype = {
  84798. toInterpolation$0() {
  84799. var t1 = new A.StringBuffer(""),
  84800. t2 = new A.InterpolationBuffer0(t1, A._setArrayType([], type$.JSArray_Object), A._setArrayType([], type$.JSArray_nullable_FileSpan)),
  84801. t3 = this.span,
  84802. t4 = this.contents,
  84803. t5 = t4.span,
  84804. t6 = A.SpanExtensions_before(t3, t5);
  84805. t6 = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t6.file._decodedChars, t6._file$_start, t6._end), 0, null);
  84806. t1._contents += t6;
  84807. t2.addInterpolation$1(t4);
  84808. t5 = A.SpanExtensions_after(t3, t5);
  84809. t5 = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t5.file._decodedChars, t5._file$_start, t5._end), 0, null);
  84810. t1._contents += t5;
  84811. return t2.interpolation$1(t3);
  84812. },
  84813. withSpan$1(span) {
  84814. return new A.SupportsAnything0(this.contents, span);
  84815. },
  84816. toString$0(_) {
  84817. return "(" + this.contents.toString$0(0) + ")";
  84818. },
  84819. $isAstNode0: 1,
  84820. $isSassNode: 1,
  84821. $isSupportsCondition: 1,
  84822. get$span(receiver) {
  84823. return this.span;
  84824. }
  84825. };
  84826. A.Argument0.prototype = {
  84827. toString$0(_) {
  84828. var t1 = this.defaultValue,
  84829. t2 = this.name;
  84830. return t1 == null ? t2 : t2 + ": " + t1.toString$0(0);
  84831. },
  84832. $isAstNode0: 1,
  84833. $isSassNode: 1,
  84834. get$span(receiver) {
  84835. return this.span;
  84836. }
  84837. };
  84838. A.ArgumentDeclaration0.prototype = {
  84839. get$spanWithName() {
  84840. var t3, t4,
  84841. t1 = this.span,
  84842. t2 = t1.file,
  84843. text = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t2._decodedChars, 0, null), 0, null),
  84844. i = A.FileLocation$_(t2, t1._file$_start).offset - 1;
  84845. while (true) {
  84846. if (i > 0) {
  84847. t3 = text.charCodeAt(i);
  84848. t3 = t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12;
  84849. } else
  84850. t3 = false;
  84851. if (!t3)
  84852. break;
  84853. --i;
  84854. }
  84855. t3 = text.charCodeAt(i);
  84856. if (!(t3 === 95 || A.CharacterExtension_get_isAlphabetic0(t3) || t3 >= 128))
  84857. t3 = t3 >= 48 && t3 <= 57 || t3 === 45;
  84858. else
  84859. t3 = true;
  84860. if (!t3)
  84861. return t1;
  84862. --i;
  84863. while (true) {
  84864. if (i >= 0) {
  84865. t3 = text.charCodeAt(i);
  84866. if (t3 !== 95) {
  84867. if (!(t3 >= 97 && t3 <= 122))
  84868. t4 = t3 >= 65 && t3 <= 90;
  84869. else
  84870. t4 = true;
  84871. t4 = t4 || t3 >= 128;
  84872. } else
  84873. t4 = true;
  84874. if (!t4)
  84875. t3 = t3 >= 48 && t3 <= 57 || t3 === 45;
  84876. else
  84877. t3 = true;
  84878. } else
  84879. t3 = false;
  84880. if (!t3)
  84881. break;
  84882. --i;
  84883. }
  84884. t3 = i + 1;
  84885. t4 = text.charCodeAt(t3);
  84886. if (!(t4 === 95 || A.CharacterExtension_get_isAlphabetic0(t4) || t4 >= 128))
  84887. return t1;
  84888. return A.SpanExtensions_trimRight0(A.SpanExtensions_trimLeft0(t2.span$2(0, t3, A.FileLocation$_(t2, t1._end).offset)));
  84889. },
  84890. verify$2(positional, names) {
  84891. var t1, t2, t3, namedUsed, i, argument, t4, unknownNames, _this = this,
  84892. _s10_ = "invocation",
  84893. _s8_ = "argument";
  84894. for (t1 = _this.$arguments, t2 = t1.length, t3 = names._baseMap, namedUsed = 0, i = 0; i < t2; ++i) {
  84895. argument = t1[i];
  84896. if (i < positional) {
  84897. t4 = argument.name;
  84898. if (t3.containsKey$1(t4))
  84899. throw A.wrapException(A.SassScriptException$0("Argument " + _this._argument_declaration$_originalArgumentName$1(t4) + string$.x20was_p, null));
  84900. } else {
  84901. t4 = argument.name;
  84902. if (t3.containsKey$1(t4))
  84903. ++namedUsed;
  84904. else if (argument.defaultValue == null)
  84905. throw A.wrapException(A.MultiSpanSassScriptException$0("Missing argument " + _this._argument_declaration$_originalArgumentName$1(t4) + ".", _s10_, A.LinkedHashMap_LinkedHashMap$_literal([_this.get$spanWithName(), "declaration"], type$.FileSpan, type$.String)));
  84906. }
  84907. }
  84908. if (_this.restArgument != null)
  84909. return;
  84910. if (positional > t2) {
  84911. t1 = names.get$isEmpty(0) ? "" : "positional ";
  84912. throw A.wrapException(A.MultiSpanSassScriptException$0("Only " + t2 + " " + t1 + A.pluralize0(_s8_, t2, null) + " allowed, but " + positional + " " + A.pluralize0("was", positional, "were") + " passed.", _s10_, A.LinkedHashMap_LinkedHashMap$_literal([_this.get$spanWithName(), "declaration"], type$.FileSpan, type$.String)));
  84913. }
  84914. if (namedUsed < t3.get$length(t3)) {
  84915. t2 = type$.String;
  84916. unknownNames = A.LinkedHashSet_LinkedHashSet$of(names, t2);
  84917. unknownNames.removeAll$1(new A.MappedListIterable(t1, new A.ArgumentDeclaration_verify_closure1(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Object?>")));
  84918. throw A.wrapException(A.MultiSpanSassScriptException$0("No " + A.pluralize0(_s8_, unknownNames._collection$_length, null) + " named " + A.toSentence0(unknownNames.map$1$1(0, new A.ArgumentDeclaration_verify_closure2(), type$.Object), "or") + ".", _s10_, A.LinkedHashMap_LinkedHashMap$_literal([_this.get$spanWithName(), "declaration"], type$.FileSpan, t2)));
  84919. }
  84920. },
  84921. _argument_declaration$_originalArgumentName$1($name) {
  84922. var t1, text, t2, _i, argument, t3, t4, end, _null = null;
  84923. if ($name === this.restArgument) {
  84924. t1 = this.span;
  84925. text = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1.file._decodedChars, t1._file$_start, t1._end), 0, _null);
  84926. return B.JSString_methods.substring$2(B.JSString_methods.substring$1(text, B.JSString_methods.lastIndexOf$1(text, "$")), 0, B.JSString_methods.indexOf$1(text, "."));
  84927. }
  84928. for (t1 = this.$arguments, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  84929. argument = t1[_i];
  84930. if (argument.name === $name) {
  84931. t1 = argument.defaultValue;
  84932. t2 = argument.span;
  84933. t3 = t2.file;
  84934. t4 = t2._file$_start;
  84935. t2 = t2._end;
  84936. if (t1 == null) {
  84937. t1 = t3._decodedChars;
  84938. t1 = A.String_String$fromCharCodes(new Uint32Array(t1.subarray(t4, A._checkValidRange(t4, t2, t1.length))), 0, _null);
  84939. } else {
  84940. t1 = t3._decodedChars;
  84941. text = A.String_String$fromCharCodes(new Uint32Array(t1.subarray(t4, A._checkValidRange(t4, t2, t1.length))), 0, _null);
  84942. t1 = B.JSString_methods.substring$2(text, 0, B.JSString_methods.indexOf$1(text, ":"));
  84943. end = A._lastNonWhitespace0(t1, false);
  84944. t1 = end == null ? "" : B.JSString_methods.substring$2(t1, 0, end + 1);
  84945. }
  84946. return t1;
  84947. }
  84948. }
  84949. throw A.wrapException(A.ArgumentError$(string$.This_d + $name + '".', _null));
  84950. },
  84951. matches$2(positional, names) {
  84952. var t1, t2, t3, namedUsed, i, argument;
  84953. for (t1 = this.$arguments, t2 = t1.length, t3 = names._baseMap, namedUsed = 0, i = 0; i < t2; ++i) {
  84954. argument = t1[i];
  84955. if (i < positional) {
  84956. if (t3.containsKey$1(argument.name))
  84957. return false;
  84958. } else if (t3.containsKey$1(argument.name))
  84959. ++namedUsed;
  84960. else if (argument.defaultValue == null)
  84961. return false;
  84962. }
  84963. if (this.restArgument != null)
  84964. return true;
  84965. if (positional > t2)
  84966. return false;
  84967. if (namedUsed < t3.get$length(t3))
  84968. return false;
  84969. return true;
  84970. },
  84971. toString$0(_) {
  84972. var t2, t3, _i,
  84973. t1 = A._setArrayType([], type$.JSArray_String);
  84974. for (t2 = this.$arguments, t3 = t2.length, _i = 0; _i < t3; ++_i)
  84975. t1.push("$" + A.S(t2[_i]));
  84976. t2 = this.restArgument;
  84977. if (t2 != null)
  84978. t1.push("$" + t2 + "...");
  84979. return B.JSArray_methods.join$1(t1, ", ");
  84980. },
  84981. $isAstNode0: 1,
  84982. $isSassNode: 1,
  84983. get$span(receiver) {
  84984. return this.span;
  84985. }
  84986. };
  84987. A.ArgumentDeclaration_verify_closure1.prototype = {
  84988. call$1(argument) {
  84989. return argument.name;
  84990. },
  84991. $signature: 307
  84992. };
  84993. A.ArgumentDeclaration_verify_closure2.prototype = {
  84994. call$1($name) {
  84995. return "$" + $name;
  84996. },
  84997. $signature: 6
  84998. };
  84999. A.ArgumentInvocation0.prototype = {
  85000. get$isEmpty(_) {
  85001. var t1;
  85002. if (this.positional.length === 0) {
  85003. t1 = this.named;
  85004. t1 = t1.get$isEmpty(t1) && this.rest == null;
  85005. } else
  85006. t1 = false;
  85007. return t1;
  85008. },
  85009. toString$0(_) {
  85010. var t2, t3, _i, _1_0, _2_0, _this = this,
  85011. t1 = A._setArrayType([], type$.JSArray_String);
  85012. for (t2 = _this.positional, t3 = t2.length, _i = 0; _i < t3; ++_i)
  85013. t1.push(_this._argument_invocation$_parenthesizeArgument$1(t2[_i]));
  85014. for (t2 = A.MapExtensions_get_pairs0(_this.named, type$.String, type$.Expression_2), t2 = t2.get$iterator(t2); t2.moveNext$0();) {
  85015. t3 = t2.get$current(t2);
  85016. t1.push("$" + t3._0 + ": " + _this._argument_invocation$_parenthesizeArgument$1(t3._1));
  85017. }
  85018. _1_0 = _this.rest;
  85019. if (_1_0 != null)
  85020. t1.push(_this._argument_invocation$_parenthesizeArgument$1(_1_0) + "...");
  85021. _2_0 = _this.keywordRest;
  85022. if (_2_0 != null)
  85023. t1.push(_this._argument_invocation$_parenthesizeArgument$1(_2_0) + "...");
  85024. return "(" + B.JSArray_methods.join$1(t1, ", ") + ")";
  85025. },
  85026. _argument_invocation$_parenthesizeArgument$1(argument) {
  85027. var t1;
  85028. $label0$0: {
  85029. if (argument instanceof A.ListExpression0 && B.ListSeparator_ECn0 === argument.separator && !argument.hasBrackets && argument.contents.length >= 2) {
  85030. t1 = "(" + argument.toString$0(0) + ")";
  85031. break $label0$0;
  85032. }
  85033. t1 = argument.toString$0(0);
  85034. break $label0$0;
  85035. }
  85036. return t1;
  85037. },
  85038. $isAstNode0: 1,
  85039. $isSassNode: 1,
  85040. get$span(receiver) {
  85041. return this.span;
  85042. }
  85043. };
  85044. A.argumentListClass_closure.prototype = {
  85045. call$0() {
  85046. var t1 = type$.JSClass,
  85047. jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.SassArgumentList", new A.argumentListClass__closure()));
  85048. A.defineGetter(J.get$$prototype$x(jsClass), "keywords", new A.argumentListClass__closure0(), null);
  85049. A.JSClassExtension_injectSuperclass(t1._as(A.SassArgumentList$0(A._setArrayType([], type$.JSArray_Value_2), A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.Value_2), B.ListSeparator_undecided_null_undecided0).constructor), jsClass);
  85050. return jsClass;
  85051. },
  85052. $signature: 16
  85053. };
  85054. A.argumentListClass__closure.prototype = {
  85055. call$4($self, contents, keywords, separator) {
  85056. var t3,
  85057. t1 = self.immutable.isOrderedMap(contents) ? J.toArray$0$x(type$.ImmutableList._as(contents)) : type$.List_dynamic._as(contents),
  85058. t2 = type$.Value_2;
  85059. t1 = J.cast$1$0$ax(t1, t2);
  85060. t3 = self.immutable.isOrderedMap(keywords) ? A.immutableMapToDartMap(type$.ImmutableMap._as(keywords)) : A.objectToMap(keywords);
  85061. return A.SassArgumentList$0(t1, t3.cast$2$0(0, type$.String, t2), A.jsToDartSeparator(separator));
  85062. },
  85063. call$3($self, contents, keywords) {
  85064. return this.call$4($self, contents, keywords, ",");
  85065. },
  85066. "call*": "call$4",
  85067. $requiredArgCount: 3,
  85068. $defaultValues() {
  85069. return [","];
  85070. },
  85071. $signature: 309
  85072. };
  85073. A.argumentListClass__closure0.prototype = {
  85074. call$1($self) {
  85075. $self._argument_list$_wereKeywordsAccessed = true;
  85076. return A.dartMapToImmutableMap($self._argument_list$_keywords);
  85077. },
  85078. $signature: 310
  85079. };
  85080. A.SassArgumentList0.prototype = {};
  85081. A.JSArray1.prototype = {};
  85082. A.AsyncImporter0.prototype = {
  85083. isNonCanonicalScheme$1(scheme) {
  85084. return false;
  85085. }
  85086. };
  85087. A.JSToDartAsyncImporter.prototype = {
  85088. canonicalize$1(_, url) {
  85089. return this.canonicalize$body$JSToDartAsyncImporter(0, url);
  85090. },
  85091. canonicalize$body$JSToDartAsyncImporter(_, url) {
  85092. var $async$goto = 0,
  85093. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Uri),
  85094. $async$returnValue, $async$self = this, t1, result;
  85095. var $async$canonicalize$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  85096. if ($async$errorCode === 1)
  85097. return A._asyncRethrow($async$result, $async$completer);
  85098. while (true)
  85099. switch ($async$goto) {
  85100. case 0:
  85101. // Function start
  85102. result = A.wrapJSExceptions(new A.JSToDartAsyncImporter_canonicalize_closure($async$self, url));
  85103. $async$goto = result != null && result instanceof self.Promise ? 3 : 4;
  85104. break;
  85105. case 3:
  85106. // then
  85107. $async$goto = 5;
  85108. return A._asyncAwait(A.promiseToFuture(type$.Promise._as(result), type$.nullable_Object), $async$canonicalize$1);
  85109. case 5:
  85110. // returning from await.
  85111. result = $async$result;
  85112. case 4:
  85113. // join
  85114. if (result == null) {
  85115. $async$returnValue = null;
  85116. // goto return
  85117. $async$goto = 1;
  85118. break;
  85119. }
  85120. t1 = self.URL;
  85121. if (result instanceof t1) {
  85122. $async$returnValue = A.Uri_parse(J.toString$0$(type$.JSUrl._as(result)));
  85123. // goto return
  85124. $async$goto = 1;
  85125. break;
  85126. }
  85127. A.jsThrow(new self.Error(string$.The_ca));
  85128. case 1:
  85129. // return
  85130. return A._asyncReturn($async$returnValue, $async$completer);
  85131. }
  85132. });
  85133. return A._asyncStartSync($async$canonicalize$1, $async$completer);
  85134. },
  85135. load$1(_, url) {
  85136. return this.load$body$JSToDartAsyncImporter(0, url);
  85137. },
  85138. load$body$JSToDartAsyncImporter(_, url) {
  85139. var $async$goto = 0,
  85140. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_ImporterResult_2),
  85141. $async$returnValue, $async$self = this, t1, contents, syntax, t2, result;
  85142. var $async$load$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  85143. if ($async$errorCode === 1)
  85144. return A._asyncRethrow($async$result, $async$completer);
  85145. while (true)
  85146. switch ($async$goto) {
  85147. case 0:
  85148. // Function start
  85149. result = A.wrapJSExceptions(new A.JSToDartAsyncImporter_load_closure($async$self, url));
  85150. $async$goto = result != null && result instanceof self.Promise ? 3 : 4;
  85151. break;
  85152. case 3:
  85153. // then
  85154. $async$goto = 5;
  85155. return A._asyncAwait(A.promiseToFuture(type$.Promise._as(result), type$.nullable_Object), $async$load$1);
  85156. case 5:
  85157. // returning from await.
  85158. result = $async$result;
  85159. case 4:
  85160. // join
  85161. if (result == null) {
  85162. $async$returnValue = null;
  85163. // goto return
  85164. $async$goto = 1;
  85165. break;
  85166. }
  85167. type$.JSImporterResult._as(result);
  85168. t1 = J.getInterceptor$x(result);
  85169. contents = t1.get$contents(result);
  85170. if (A._asString(new self.Function("value", "return typeof value").call$1(contents)) !== "string")
  85171. A.jsThrow(new A.ArgumentError(true, contents, "contents", "must be a string but was: " + A.jsType(contents)));
  85172. syntax = t1.get$syntax(result);
  85173. if (contents == null || syntax == null)
  85174. A.jsThrow(new self.Error(string$.The_lo));
  85175. t2 = A.parseSyntax(syntax);
  85176. $async$returnValue = A.ImporterResult$(contents, A.NullableExtension_andThen0(t1.get$sourceMapUrl(result), A.utils3__jsToDartUrl$closure()), t2);
  85177. // goto return
  85178. $async$goto = 1;
  85179. break;
  85180. case 1:
  85181. // return
  85182. return A._asyncReturn($async$returnValue, $async$completer);
  85183. }
  85184. });
  85185. return A._asyncStartSync($async$load$1, $async$completer);
  85186. },
  85187. isNonCanonicalScheme$1(scheme) {
  85188. return this._nonCanonicalSchemes.contains$1(0, scheme);
  85189. }
  85190. };
  85191. A.JSToDartAsyncImporter_canonicalize_closure.prototype = {
  85192. call$0() {
  85193. return this.$this._async0$_canonicalize.call$2(this.url.toString$0(0), A.canonicalizeContext0());
  85194. },
  85195. $signature: 37
  85196. };
  85197. A.JSToDartAsyncImporter_load_closure.prototype = {
  85198. call$0() {
  85199. return this.$this._load.call$1(new self.URL(this.url.toString$0(0)));
  85200. },
  85201. $signature: 37
  85202. };
  85203. A.AsyncBuiltInCallable0.prototype = {
  85204. callbackFor$2(positional, names) {
  85205. return new A._Record_2(this._async_built_in0$_arguments, this._async_built_in0$_callback);
  85206. },
  85207. withDeprecationWarning$1(module) {
  85208. return new A.AsyncBuiltInCallable0(this.name, this._async_built_in0$_arguments, new A.AsyncBuiltInCallable_withDeprecationWarning_closure0(this, module, null), false);
  85209. },
  85210. $isAsyncCallable0: 1,
  85211. get$name(receiver) {
  85212. return this.name;
  85213. },
  85214. get$acceptsContent() {
  85215. return this.acceptsContent;
  85216. }
  85217. };
  85218. A.AsyncBuiltInCallable$mixin_closure0.prototype = {
  85219. call$1($arguments) {
  85220. return this.$call$body$AsyncBuiltInCallable$mixin_closure0($arguments);
  85221. },
  85222. $call$body$AsyncBuiltInCallable$mixin_closure0($arguments) {
  85223. var $async$goto = 0,
  85224. $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
  85225. $async$returnValue, $async$self = this, t1;
  85226. var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  85227. if ($async$errorCode === 1)
  85228. return A._asyncRethrow($async$result, $async$completer);
  85229. while (true)
  85230. switch ($async$goto) {
  85231. case 0:
  85232. // Function start
  85233. t1 = $async$self.callback.call$1($arguments);
  85234. $async$goto = 3;
  85235. return A._asyncAwait(t1 instanceof A._Future ? t1 : A._Future$value(t1, type$.void), $async$call$1);
  85236. case 3:
  85237. // returning from await.
  85238. $async$returnValue = B.C__SassNull0;
  85239. // goto return
  85240. $async$goto = 1;
  85241. break;
  85242. case 1:
  85243. // return
  85244. return A._asyncReturn($async$returnValue, $async$completer);
  85245. }
  85246. });
  85247. return A._asyncStartSync($async$call$1, $async$completer);
  85248. },
  85249. $signature: 107
  85250. };
  85251. A.AsyncBuiltInCallable_withDeprecationWarning_closure0.prototype = {
  85252. call$1(args) {
  85253. var t1 = this.$this;
  85254. A.warnForDeprecation0(string$.Global + this.module + "." + t1.name + string$.x20inste, B.Deprecation_Q5r);
  85255. return t1._async_built_in0$_callback.call$1(args);
  85256. },
  85257. $signature: 313
  85258. };
  85259. A._compileStylesheet_closure2.prototype = {
  85260. call$1(url) {
  85261. return url === "" ? A.Uri_Uri$dataFromString(A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(this.stylesheet.span.file._decodedChars, 0, null), 0, null), B.C_Utf8Codec, null).get$_text() : this.importCache.sourceMapUrl$1(0, A.Uri_parse(url)).toString$0(0);
  85262. },
  85263. $signature: 6
  85264. };
  85265. A.AsyncEnvironment0.prototype = {
  85266. closure$0() {
  85267. var t4, t5, t6, _this = this,
  85268. t1 = _this._async_environment0$_forwardedModules,
  85269. t2 = _this._async_environment0$_nestedForwardedModules,
  85270. t3 = _this._async_environment0$_variables;
  85271. t3 = A._setArrayType(t3.slice(0), A._arrayInstanceType(t3));
  85272. t4 = _this._async_environment0$_variableNodes;
  85273. t4 = A._setArrayType(t4.slice(0), A._arrayInstanceType(t4));
  85274. t5 = _this._async_environment0$_functions;
  85275. t5 = A._setArrayType(t5.slice(0), A._arrayInstanceType(t5));
  85276. t6 = _this._async_environment0$_mixins;
  85277. t6 = A._setArrayType(t6.slice(0), A._arrayInstanceType(t6));
  85278. return A.AsyncEnvironment$_0(_this._async_environment0$_modules, _this._async_environment0$_namespaceNodes, _this._async_environment0$_globalModules, _this._async_environment0$_importedModules, t1, t2, _this._async_environment0$_allModules, t3, t4, t5, t6, _this._async_environment0$_content);
  85279. },
  85280. forwardModule$2(module, rule) {
  85281. var view, t1, t2, _this = this,
  85282. forwardedModules = _this._async_environment0$_forwardedModules;
  85283. if (forwardedModules == null)
  85284. forwardedModules = _this._async_environment0$_forwardedModules = A.LinkedHashMap_LinkedHashMap$_empty(type$.Module_AsyncCallable_2, type$.AstNode_2);
  85285. view = A.ForwardedModuleView_ifNecessary0(module, rule, type$.AsyncCallable_2);
  85286. for (t1 = A.LinkedHashMapKeyIterator$(forwardedModules, forwardedModules.__js_helper$_modifications); t1.moveNext$0();) {
  85287. t2 = t1.__js_helper$_current;
  85288. _this._async_environment0$_assertNoConflicts$5(view.get$variables(), t2.get$variables(), view, t2, "variable");
  85289. _this._async_environment0$_assertNoConflicts$5(view.get$functions(view), t2.get$functions(t2), view, t2, "function");
  85290. _this._async_environment0$_assertNoConflicts$5(view.get$mixins(), t2.get$mixins(), view, t2, "mixin");
  85291. }
  85292. _this._async_environment0$_allModules.push(module);
  85293. forwardedModules.$indexSet(0, view, rule);
  85294. },
  85295. _async_environment0$_assertNoConflicts$5(newMembers, oldMembers, newModule, oldModule, type) {
  85296. var larger, smaller, t1, t2, t3, t4, $name, small, large, span;
  85297. if (newMembers.get$length(newMembers) < oldMembers.get$length(oldMembers)) {
  85298. larger = oldMembers;
  85299. smaller = newMembers;
  85300. } else {
  85301. larger = newMembers;
  85302. smaller = oldMembers;
  85303. }
  85304. for (t1 = type$.String, t2 = A.MapExtensions_get_pairs0(smaller, t1, type$.Object), t2 = t2.get$iterator(t2), t3 = type === "variable"; t2.moveNext$0();) {
  85305. t4 = t2.get$current(t2);
  85306. $name = t4._0;
  85307. small = t4._1;
  85308. large = larger.$index(0, $name);
  85309. if (large == null)
  85310. continue;
  85311. if (t3 ? newModule.variableIdentity$1($name) === oldModule.variableIdentity$1($name) : J.$eq$(large, small))
  85312. continue;
  85313. if (t3)
  85314. $name = "$" + $name;
  85315. t2 = this._async_environment0$_forwardedModules;
  85316. if (t2 == null)
  85317. span = null;
  85318. else {
  85319. t2 = t2.$index(0, oldModule);
  85320. span = t2 == null ? null : J.get$span$z(t2);
  85321. }
  85322. t2 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, t1);
  85323. if (span != null)
  85324. t2.$indexSet(0, span, "original @forward");
  85325. throw A.wrapException(A.MultiSpanSassScriptException$0("Two forwarded modules both define a " + type + " named " + $name + ".", "new @forward", t2));
  85326. }
  85327. },
  85328. importForwards$1(module) {
  85329. var forwardedModules, t1, t2, t3, t4, node, t5, t6, t7, t8, t9, t10, _i, t11, shadowed, t12, _length, _list, _this = this,
  85330. forwarded = module._async_environment0$_environment._async_environment0$_forwardedModules;
  85331. if (forwarded == null)
  85332. return;
  85333. forwardedModules = _this._async_environment0$_forwardedModules;
  85334. if (forwardedModules != null) {
  85335. t1 = type$.Module_AsyncCallable_2;
  85336. t2 = type$.AstNode_2;
  85337. t3 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
  85338. for (t1 = A.MapExtensions_get_pairs0(forwarded, t1, t2), t1 = t1.get$iterator(t1), t2 = _this._async_environment0$_globalModules; t1.moveNext$0();) {
  85339. t4 = t1.get$current(t1);
  85340. module = t4._0;
  85341. node = t4._1;
  85342. if (!forwardedModules.containsKey$1(module) || !t2.containsKey$1(module))
  85343. t3.$indexSet(0, module, node);
  85344. }
  85345. forwarded = t3;
  85346. } else
  85347. forwardedModules = _this._async_environment0$_forwardedModules = A.LinkedHashMap_LinkedHashMap$_empty(type$.Module_AsyncCallable_2, type$.AstNode_2);
  85348. t1 = type$.String;
  85349. t2 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
  85350. for (t3 = A.LinkedHashMapKeyIterator$(forwarded, forwarded.__js_helper$_modifications); t3.moveNext$0();)
  85351. for (t4 = t3.__js_helper$_current.get$variables(), t4 = J.get$iterator$ax(t4.get$keys(t4)); t4.moveNext$0();)
  85352. t2.add$1(0, t4.get$current(t4));
  85353. t3 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
  85354. for (t4 = A.LinkedHashMapKeyIterator$(forwarded, forwarded.__js_helper$_modifications); t4.moveNext$0();) {
  85355. t5 = t4.__js_helper$_current;
  85356. for (t5 = t5.get$functions(t5), t5 = J.get$iterator$ax(t5.get$keys(t5)); t5.moveNext$0();)
  85357. t3.add$1(0, t5.get$current(t5));
  85358. }
  85359. t1 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
  85360. for (t4 = A.LinkedHashMapKeyIterator$(forwarded, forwarded.__js_helper$_modifications); t4.moveNext$0();)
  85361. for (t5 = t4.__js_helper$_current.get$mixins(), t5 = J.get$iterator$ax(t5.get$keys(t5)); t5.moveNext$0();)
  85362. t1.add$1(0, t5.get$current(t5));
  85363. t4 = _this._async_environment0$_variables;
  85364. t5 = t4.length;
  85365. if (t5 === 1) {
  85366. for (t5 = _this._async_environment0$_importedModules, t6 = type$.Module_AsyncCallable_2, t7 = type$.AstNode_2, t8 = A.MapExtensions_get_pairs0(t5, t6, t7).toList$0(0), t9 = t8.length, t10 = type$.AsyncCallable_2, _i = 0; _i < t8.length; t8.length === t9 || (0, A.throwConcurrentModificationError)(t8), ++_i) {
  85367. t11 = t8[_i];
  85368. module = t11._0;
  85369. node = t11._1;
  85370. shadowed = A.ShadowedModuleView_ifNecessary0(module, t3, t1, t2, t10);
  85371. if (shadowed != null) {
  85372. t5.remove$1(0, module);
  85373. t11 = shadowed.variables;
  85374. t12 = false;
  85375. if (t11.get$isEmpty(t11)) {
  85376. t11 = shadowed.functions;
  85377. if (t11.get$isEmpty(t11)) {
  85378. t11 = shadowed.mixins;
  85379. if (t11.get$isEmpty(t11)) {
  85380. t11 = shadowed._shadowed_view0$_inner;
  85381. t11 = t11.get$css(t11);
  85382. t11 = J.get$isEmpty$asx(t11.get$children(t11));
  85383. } else
  85384. t11 = t12;
  85385. } else
  85386. t11 = t12;
  85387. } else
  85388. t11 = t12;
  85389. if (!t11)
  85390. t5.$indexSet(0, shadowed, node);
  85391. }
  85392. }
  85393. for (t6 = A.MapExtensions_get_pairs0(forwardedModules, t6, t7).toList$0(0), t7 = t6.length, _i = 0; _i < t6.length; t6.length === t7 || (0, A.throwConcurrentModificationError)(t6), ++_i) {
  85394. t8 = t6[_i];
  85395. module = t8._0;
  85396. node = t8._1;
  85397. shadowed = A.ShadowedModuleView_ifNecessary0(module, t3, t1, t2, t10);
  85398. if (shadowed != null) {
  85399. forwardedModules.remove$1(0, module);
  85400. t8 = shadowed.variables;
  85401. t9 = false;
  85402. if (t8.get$isEmpty(t8)) {
  85403. t8 = shadowed.functions;
  85404. if (t8.get$isEmpty(t8)) {
  85405. t8 = shadowed.mixins;
  85406. if (t8.get$isEmpty(t8)) {
  85407. t8 = shadowed._shadowed_view0$_inner;
  85408. t8 = t8.get$css(t8);
  85409. t8 = J.get$isEmpty$asx(t8.get$children(t8));
  85410. } else
  85411. t8 = t9;
  85412. } else
  85413. t8 = t9;
  85414. } else
  85415. t8 = t9;
  85416. if (!t8)
  85417. forwardedModules.$indexSet(0, shadowed, node);
  85418. }
  85419. }
  85420. t5.addAll$1(0, forwarded);
  85421. forwardedModules.addAll$1(0, forwarded);
  85422. } else {
  85423. t6 = _this._async_environment0$_nestedForwardedModules;
  85424. if (t6 == null) {
  85425. _length = t5 - 1;
  85426. _list = J.JSArray_JSArray$allocateGrowable(_length, type$.List_Module_AsyncCallable_2);
  85427. for (t5 = type$.JSArray_Module_AsyncCallable_2, _i = 0; _i < _length; ++_i)
  85428. _list[_i] = A._setArrayType([], t5);
  85429. _this._async_environment0$_nestedForwardedModules = _list;
  85430. t5 = _list;
  85431. } else
  85432. t5 = t6;
  85433. B.JSArray_methods.addAll$1(B.JSArray_methods.get$last(t5), new A.LinkedHashMapKeyIterable(forwarded, A._instanceType(forwarded)._eval$1("LinkedHashMapKeyIterable<1>")));
  85434. }
  85435. for (t2 = A._LinkedHashSetIterator$(t2, t2._modifications, t2.$ti._precomputed1), t5 = _this._async_environment0$_variableIndices, t6 = _this._async_environment0$_variableNodes, t7 = t2.$ti._precomputed1; t2.moveNext$0();) {
  85436. t8 = t2._collection$_current;
  85437. if (t8 == null)
  85438. t8 = t7._as(t8);
  85439. t5.remove$1(0, t8);
  85440. J.remove$1$z(B.JSArray_methods.get$last(t4), t8);
  85441. J.remove$1$z(B.JSArray_methods.get$last(t6), t8);
  85442. }
  85443. for (t2 = A._LinkedHashSetIterator$(t3, t3._modifications, t3.$ti._precomputed1), t3 = _this._async_environment0$_functionIndices, t4 = _this._async_environment0$_functions, t5 = t2.$ti._precomputed1; t2.moveNext$0();) {
  85444. t6 = t2._collection$_current;
  85445. if (t6 == null)
  85446. t6 = t5._as(t6);
  85447. t3.remove$1(0, t6);
  85448. J.remove$1$z(B.JSArray_methods.get$last(t4), t6);
  85449. }
  85450. for (t1 = A._LinkedHashSetIterator$(t1, t1._modifications, t1.$ti._precomputed1), t2 = _this._async_environment0$_mixinIndices, t3 = _this._async_environment0$_mixins, t4 = t1.$ti._precomputed1; t1.moveNext$0();) {
  85451. t5 = t1._collection$_current;
  85452. if (t5 == null)
  85453. t5 = t4._as(t5);
  85454. t2.remove$1(0, t5);
  85455. J.remove$1$z(B.JSArray_methods.get$last(t3), t5);
  85456. }
  85457. },
  85458. getVariable$2$namespace($name, namespace) {
  85459. var t1, _0_0, _1_0, _this = this;
  85460. if (namespace != null)
  85461. return _this._async_environment0$_getModule$1(namespace).get$variables().$index(0, $name);
  85462. if (_this._async_environment0$_lastVariableName === $name) {
  85463. t1 = _this._async_environment0$_lastVariableIndex;
  85464. t1.toString;
  85465. t1 = J.$index$asx(_this._async_environment0$_variables[t1], $name);
  85466. return t1 == null ? _this._async_environment0$_getVariableFromGlobalModule$1($name) : t1;
  85467. }
  85468. t1 = _this._async_environment0$_variableIndices;
  85469. _0_0 = t1.$index(0, $name);
  85470. if (_0_0 != null) {
  85471. _this._async_environment0$_lastVariableName = $name;
  85472. _this._async_environment0$_lastVariableIndex = _0_0;
  85473. t1 = J.$index$asx(_this._async_environment0$_variables[_0_0], $name);
  85474. return t1 == null ? _this._async_environment0$_getVariableFromGlobalModule$1($name) : t1;
  85475. } else {
  85476. _1_0 = _this._async_environment0$_variableIndex$1($name);
  85477. if (_1_0 != null) {
  85478. _this._async_environment0$_lastVariableName = $name;
  85479. _this._async_environment0$_lastVariableIndex = _1_0;
  85480. t1.$indexSet(0, $name, _1_0);
  85481. t1 = J.$index$asx(_this._async_environment0$_variables[_1_0], $name);
  85482. return t1 == null ? _this._async_environment0$_getVariableFromGlobalModule$1($name) : t1;
  85483. } else
  85484. return _this._async_environment0$_getVariableFromGlobalModule$1($name);
  85485. }
  85486. },
  85487. getVariable$1($name) {
  85488. return this.getVariable$2$namespace($name, null);
  85489. },
  85490. _async_environment0$_getVariableFromGlobalModule$1($name) {
  85491. return this._async_environment0$_fromOneModule$3($name, "variable", new A.AsyncEnvironment__getVariableFromGlobalModule_closure0($name));
  85492. },
  85493. getVariableNode$2$namespace($name, namespace) {
  85494. var t1, _0_0, _1_0, _this = this;
  85495. if (namespace != null)
  85496. return _this._async_environment0$_getModule$1(namespace).get$variableNodes().$index(0, $name);
  85497. if (_this._async_environment0$_lastVariableName === $name) {
  85498. t1 = _this._async_environment0$_lastVariableIndex;
  85499. t1.toString;
  85500. t1 = J.$index$asx(_this._async_environment0$_variableNodes[t1], $name);
  85501. return t1 == null ? _this._async_environment0$_getVariableNodeFromGlobalModule$1($name) : t1;
  85502. }
  85503. t1 = _this._async_environment0$_variableIndices;
  85504. _0_0 = t1.$index(0, $name);
  85505. if (_0_0 != null) {
  85506. _this._async_environment0$_lastVariableName = $name;
  85507. _this._async_environment0$_lastVariableIndex = _0_0;
  85508. t1 = J.$index$asx(_this._async_environment0$_variableNodes[_0_0], $name);
  85509. return t1 == null ? _this._async_environment0$_getVariableNodeFromGlobalModule$1($name) : t1;
  85510. } else {
  85511. _1_0 = _this._async_environment0$_variableIndex$1($name);
  85512. if (_1_0 != null) {
  85513. _this._async_environment0$_lastVariableName = $name;
  85514. _this._async_environment0$_lastVariableIndex = _1_0;
  85515. t1.$indexSet(0, $name, _1_0);
  85516. t1 = J.$index$asx(_this._async_environment0$_variableNodes[_1_0], $name);
  85517. return t1 == null ? _this._async_environment0$_getVariableNodeFromGlobalModule$1($name) : t1;
  85518. } else
  85519. return _this._async_environment0$_getVariableNodeFromGlobalModule$1($name);
  85520. }
  85521. },
  85522. _async_environment0$_getVariableNodeFromGlobalModule$1($name) {
  85523. var t1, t2, _0_0;
  85524. for (t1 = this._async_environment0$_importedModules, t2 = this._async_environment0$_globalModules, t2 = new A.LinkedHashMapKeyIterable(t1, A._instanceType(t1)._eval$1("LinkedHashMapKeyIterable<1>")).followedBy$1(0, new A.LinkedHashMapKeyIterable(t2, A._instanceType(t2)._eval$1("LinkedHashMapKeyIterable<1>"))), t2 = new A.FollowedByIterator(J.get$iterator$ax(t2.__internal$_first), t2._second); t2.moveNext$0();) {
  85525. t1 = t2._currentIterator;
  85526. _0_0 = t1.get$current(t1).get$variableNodes().$index(0, $name);
  85527. if (_0_0 != null)
  85528. return _0_0;
  85529. }
  85530. return null;
  85531. },
  85532. globalVariableExists$2$namespace($name, namespace) {
  85533. if (namespace != null)
  85534. return this._async_environment0$_getModule$1(namespace).get$variables().containsKey$1($name);
  85535. if (B.JSArray_methods.get$first(this._async_environment0$_variables).containsKey$1($name))
  85536. return true;
  85537. return this._async_environment0$_getVariableFromGlobalModule$1($name) != null;
  85538. },
  85539. globalVariableExists$1($name) {
  85540. return this.globalVariableExists$2$namespace($name, null);
  85541. },
  85542. _async_environment0$_variableIndex$1($name) {
  85543. var t1, i;
  85544. for (t1 = this._async_environment0$_variables, i = t1.length - 1; i >= 0; --i)
  85545. if (t1[i].containsKey$1($name))
  85546. return i;
  85547. return null;
  85548. },
  85549. setVariable$5$global$namespace($name, value, nodeWithSpan, global, namespace) {
  85550. var t1, moduleWithName, nestedForwardedModules, t2, t3, t4, t5, index, _this = this;
  85551. if (namespace != null) {
  85552. _this._async_environment0$_getModule$1(namespace).setVariable$3($name, value, nodeWithSpan);
  85553. return;
  85554. }
  85555. if (global || _this._async_environment0$_variables.length === 1) {
  85556. _this._async_environment0$_variableIndices.putIfAbsent$2($name, new A.AsyncEnvironment_setVariable_closure2(_this, $name));
  85557. t1 = _this._async_environment0$_variables;
  85558. if (!B.JSArray_methods.get$first(t1).containsKey$1($name)) {
  85559. moduleWithName = _this._async_environment0$_fromOneModule$3($name, "variable", new A.AsyncEnvironment_setVariable_closure3($name));
  85560. if (moduleWithName != null) {
  85561. moduleWithName.setVariable$3($name, value, nodeWithSpan);
  85562. return;
  85563. }
  85564. }
  85565. J.$indexSet$ax(B.JSArray_methods.get$first(t1), $name, value);
  85566. J.$indexSet$ax(B.JSArray_methods.get$first(_this._async_environment0$_variableNodes), $name, nodeWithSpan);
  85567. return;
  85568. }
  85569. nestedForwardedModules = _this._async_environment0$_nestedForwardedModules;
  85570. if (nestedForwardedModules != null && !_this._async_environment0$_variableIndices.containsKey$1($name) && _this._async_environment0$_variableIndex$1($name) == null)
  85571. for (t1 = A._arrayInstanceType(nestedForwardedModules)._eval$1("ReversedListIterable<1>"), t2 = new A.ReversedListIterable(nestedForwardedModules, t1), t2 = new A.ListIterator(t2, t2.get$length(0), t1._eval$1("ListIterator<ListIterable.E>")), t1 = t1._eval$1("ListIterable.E"); t2.moveNext$0();) {
  85572. t3 = t2.__internal$_current;
  85573. for (t3 = J.get$reversed$ax(t3 == null ? t1._as(t3) : t3), t4 = t3.$ti, t3 = new A.ListIterator(t3, t3.get$length(0), t4._eval$1("ListIterator<ListIterable.E>")), t4 = t4._eval$1("ListIterable.E"); t3.moveNext$0();) {
  85574. t5 = t3.__internal$_current;
  85575. if (t5 == null)
  85576. t5 = t4._as(t5);
  85577. if (t5.get$variables().containsKey$1($name)) {
  85578. t5.setVariable$3($name, value, nodeWithSpan);
  85579. return;
  85580. }
  85581. }
  85582. }
  85583. if (_this._async_environment0$_lastVariableName === $name) {
  85584. t1 = _this._async_environment0$_lastVariableIndex;
  85585. t1.toString;
  85586. index = t1;
  85587. } else
  85588. index = _this._async_environment0$_variableIndices.putIfAbsent$2($name, new A.AsyncEnvironment_setVariable_closure4(_this, $name));
  85589. if (!_this._async_environment0$_inSemiGlobalScope && index === 0) {
  85590. index = _this._async_environment0$_variables.length - 1;
  85591. _this._async_environment0$_variableIndices.$indexSet(0, $name, index);
  85592. }
  85593. _this._async_environment0$_lastVariableName = $name;
  85594. _this._async_environment0$_lastVariableIndex = index;
  85595. J.$indexSet$ax(_this._async_environment0$_variables[index], $name, value);
  85596. J.$indexSet$ax(_this._async_environment0$_variableNodes[index], $name, nodeWithSpan);
  85597. },
  85598. setVariable$4$global($name, value, nodeWithSpan, global) {
  85599. return this.setVariable$5$global$namespace($name, value, nodeWithSpan, global, null);
  85600. },
  85601. setLocalVariable$3($name, value, nodeWithSpan) {
  85602. var index, _this = this,
  85603. t1 = _this._async_environment0$_variables,
  85604. t2 = t1.length;
  85605. _this._async_environment0$_lastVariableName = $name;
  85606. index = _this._async_environment0$_lastVariableIndex = t2 - 1;
  85607. _this._async_environment0$_variableIndices.$indexSet(0, $name, index);
  85608. J.$indexSet$ax(t1[index], $name, value);
  85609. J.$indexSet$ax(_this._async_environment0$_variableNodes[index], $name, nodeWithSpan);
  85610. },
  85611. getFunction$2$namespace($name, namespace) {
  85612. var t1, _0_0, _1_0, _this = this;
  85613. if (namespace != null) {
  85614. t1 = _this._async_environment0$_getModule$1(namespace);
  85615. return t1.get$functions(t1).$index(0, $name);
  85616. }
  85617. t1 = _this._async_environment0$_functionIndices;
  85618. _0_0 = t1.$index(0, $name);
  85619. if (_0_0 != null) {
  85620. t1 = J.$index$asx(_this._async_environment0$_functions[_0_0], $name);
  85621. return t1 == null ? _this._async_environment0$_getFunctionFromGlobalModule$1($name) : t1;
  85622. } else {
  85623. _1_0 = _this._async_environment0$_functionIndex$1($name);
  85624. if (_1_0 != null) {
  85625. t1.$indexSet(0, $name, _1_0);
  85626. t1 = J.$index$asx(_this._async_environment0$_functions[_1_0], $name);
  85627. return t1 == null ? _this._async_environment0$_getFunctionFromGlobalModule$1($name) : t1;
  85628. } else
  85629. return _this._async_environment0$_getFunctionFromGlobalModule$1($name);
  85630. }
  85631. },
  85632. getFunction$1($name) {
  85633. return this.getFunction$2$namespace($name, null);
  85634. },
  85635. _async_environment0$_getFunctionFromGlobalModule$1($name) {
  85636. return this._async_environment0$_fromOneModule$3($name, "function", new A.AsyncEnvironment__getFunctionFromGlobalModule_closure0($name));
  85637. },
  85638. _async_environment0$_functionIndex$1($name) {
  85639. var t1, i;
  85640. for (t1 = this._async_environment0$_functions, i = t1.length - 1; i >= 0; --i)
  85641. if (t1[i].containsKey$1($name))
  85642. return i;
  85643. return null;
  85644. },
  85645. getMixin$2$namespace($name, namespace) {
  85646. var t1, _0_0, _1_0, _this = this;
  85647. if (namespace != null)
  85648. return _this._async_environment0$_getModule$1(namespace).get$mixins().$index(0, $name);
  85649. t1 = _this._async_environment0$_mixinIndices;
  85650. _0_0 = t1.$index(0, $name);
  85651. if (_0_0 != null) {
  85652. t1 = J.$index$asx(_this._async_environment0$_mixins[_0_0], $name);
  85653. return t1 == null ? _this._async_environment0$_getMixinFromGlobalModule$1($name) : t1;
  85654. } else {
  85655. _1_0 = _this._async_environment0$_mixinIndex$1($name);
  85656. if (_1_0 != null) {
  85657. t1.$indexSet(0, $name, _1_0);
  85658. t1 = J.$index$asx(_this._async_environment0$_mixins[_1_0], $name);
  85659. return t1 == null ? _this._async_environment0$_getMixinFromGlobalModule$1($name) : t1;
  85660. } else
  85661. return _this._async_environment0$_getMixinFromGlobalModule$1($name);
  85662. }
  85663. },
  85664. _async_environment0$_getMixinFromGlobalModule$1($name) {
  85665. return this._async_environment0$_fromOneModule$3($name, "mixin", new A.AsyncEnvironment__getMixinFromGlobalModule_closure0($name));
  85666. },
  85667. _async_environment0$_mixinIndex$1($name) {
  85668. var t1, i;
  85669. for (t1 = this._async_environment0$_mixins, i = t1.length - 1; i >= 0; --i)
  85670. if (t1[i].containsKey$1($name))
  85671. return i;
  85672. return null;
  85673. },
  85674. withContent$2($content, callback) {
  85675. return this.withContent$body$AsyncEnvironment0($content, callback);
  85676. },
  85677. withContent$body$AsyncEnvironment0($content, callback) {
  85678. var $async$goto = 0,
  85679. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  85680. $async$self = this, oldContent;
  85681. var $async$withContent$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  85682. if ($async$errorCode === 1)
  85683. return A._asyncRethrow($async$result, $async$completer);
  85684. while (true)
  85685. switch ($async$goto) {
  85686. case 0:
  85687. // Function start
  85688. oldContent = $async$self._async_environment0$_content;
  85689. $async$self._async_environment0$_content = $content;
  85690. $async$goto = 2;
  85691. return A._asyncAwait(callback.call$0(), $async$withContent$2);
  85692. case 2:
  85693. // returning from await.
  85694. $async$self._async_environment0$_content = oldContent;
  85695. // implicit return
  85696. return A._asyncReturn(null, $async$completer);
  85697. }
  85698. });
  85699. return A._asyncStartSync($async$withContent$2, $async$completer);
  85700. },
  85701. asMixin$1(callback) {
  85702. var $async$goto = 0,
  85703. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  85704. $async$self = this, oldInMixin;
  85705. var $async$asMixin$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  85706. if ($async$errorCode === 1)
  85707. return A._asyncRethrow($async$result, $async$completer);
  85708. while (true)
  85709. switch ($async$goto) {
  85710. case 0:
  85711. // Function start
  85712. oldInMixin = $async$self._async_environment0$_inMixin;
  85713. $async$self._async_environment0$_inMixin = true;
  85714. $async$goto = 2;
  85715. return A._asyncAwait(callback.call$0(), $async$asMixin$1);
  85716. case 2:
  85717. // returning from await.
  85718. $async$self._async_environment0$_inMixin = oldInMixin;
  85719. // implicit return
  85720. return A._asyncReturn(null, $async$completer);
  85721. }
  85722. });
  85723. return A._asyncStartSync($async$asMixin$1, $async$completer);
  85724. },
  85725. scope$1$3$semiGlobal$when(callback, semiGlobal, when, $T) {
  85726. return this.scope$body$AsyncEnvironment0(callback, semiGlobal, when, $T, $T);
  85727. },
  85728. scope$1$1(callback, $T) {
  85729. return this.scope$1$3$semiGlobal$when(callback, false, true, $T);
  85730. },
  85731. scope$1$2$when(callback, when, $T) {
  85732. return this.scope$1$3$semiGlobal$when(callback, false, when, $T);
  85733. },
  85734. scope$1$2$semiGlobal(callback, semiGlobal, $T) {
  85735. return this.scope$1$3$semiGlobal$when(callback, semiGlobal, true, $T);
  85736. },
  85737. scope$body$AsyncEnvironment0(callback, semiGlobal, when, $T, $async$type) {
  85738. var $async$goto = 0,
  85739. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  85740. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, wasInSemiGlobalScope, $name, name0, name1, t1, t2, t3, t4, t5, t6;
  85741. var $async$scope$1$3$semiGlobal$when = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  85742. if ($async$errorCode === 1) {
  85743. $async$currentError = $async$result;
  85744. $async$goto = $async$handler;
  85745. }
  85746. while (true)
  85747. switch ($async$goto) {
  85748. case 0:
  85749. // Function start
  85750. semiGlobal = semiGlobal && $async$self._async_environment0$_inSemiGlobalScope;
  85751. wasInSemiGlobalScope = $async$self._async_environment0$_inSemiGlobalScope;
  85752. $async$self._async_environment0$_inSemiGlobalScope = semiGlobal;
  85753. $async$goto = !when ? 3 : 4;
  85754. break;
  85755. case 3:
  85756. // then
  85757. $async$handler = 5;
  85758. $async$goto = 8;
  85759. return A._asyncAwait(callback.call$0(), $async$scope$1$3$semiGlobal$when);
  85760. case 8:
  85761. // returning from await.
  85762. t1 = $async$result;
  85763. $async$returnValue = t1;
  85764. $async$next = [1];
  85765. // goto finally
  85766. $async$goto = 6;
  85767. break;
  85768. $async$next.push(7);
  85769. // goto finally
  85770. $async$goto = 6;
  85771. break;
  85772. case 5:
  85773. // uncaught
  85774. $async$next = [2];
  85775. case 6:
  85776. // finally
  85777. $async$handler = 2;
  85778. $async$self._async_environment0$_inSemiGlobalScope = wasInSemiGlobalScope;
  85779. // goto the next finally handler
  85780. $async$goto = $async$next.pop();
  85781. break;
  85782. case 7:
  85783. // after finally
  85784. case 4:
  85785. // join
  85786. t1 = $async$self._async_environment0$_variables;
  85787. t2 = type$.String;
  85788. B.JSArray_methods.add$1(t1, A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.Value_2));
  85789. t3 = $async$self._async_environment0$_variableNodes;
  85790. B.JSArray_methods.add$1(t3, A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.AstNode_2));
  85791. t4 = $async$self._async_environment0$_functions;
  85792. t5 = type$.AsyncCallable_2;
  85793. B.JSArray_methods.add$1(t4, A.LinkedHashMap_LinkedHashMap$_empty(t2, t5));
  85794. t6 = $async$self._async_environment0$_mixins;
  85795. B.JSArray_methods.add$1(t6, A.LinkedHashMap_LinkedHashMap$_empty(t2, t5));
  85796. t5 = $async$self._async_environment0$_nestedForwardedModules;
  85797. if (t5 != null)
  85798. t5.push(A._setArrayType([], type$.JSArray_Module_AsyncCallable_2));
  85799. $async$handler = 9;
  85800. $async$goto = 12;
  85801. return A._asyncAwait(callback.call$0(), $async$scope$1$3$semiGlobal$when);
  85802. case 12:
  85803. // returning from await.
  85804. t2 = $async$result;
  85805. $async$returnValue = t2;
  85806. $async$next = [1];
  85807. // goto finally
  85808. $async$goto = 10;
  85809. break;
  85810. $async$next.push(11);
  85811. // goto finally
  85812. $async$goto = 10;
  85813. break;
  85814. case 9:
  85815. // uncaught
  85816. $async$next = [2];
  85817. case 10:
  85818. // finally
  85819. $async$handler = 2;
  85820. $async$self._async_environment0$_inSemiGlobalScope = wasInSemiGlobalScope;
  85821. $async$self._async_environment0$_lastVariableIndex = $async$self._async_environment0$_lastVariableName = null;
  85822. for (t1 = J.get$iterator$ax(J.get$keys$z(B.JSArray_methods.removeLast$0(t1))), t2 = $async$self._async_environment0$_variableIndices; t1.moveNext$0();) {
  85823. $name = t1.get$current(t1);
  85824. t2.remove$1(0, $name);
  85825. }
  85826. B.JSArray_methods.removeLast$0(t3);
  85827. for (t1 = J.get$iterator$ax(J.get$keys$z(B.JSArray_methods.removeLast$0(t4))), t2 = $async$self._async_environment0$_functionIndices; t1.moveNext$0();) {
  85828. name0 = t1.get$current(t1);
  85829. t2.remove$1(0, name0);
  85830. }
  85831. for (t1 = J.get$iterator$ax(J.get$keys$z(B.JSArray_methods.removeLast$0(t6))), t2 = $async$self._async_environment0$_mixinIndices; t1.moveNext$0();) {
  85832. name1 = t1.get$current(t1);
  85833. t2.remove$1(0, name1);
  85834. }
  85835. t1 = $async$self._async_environment0$_nestedForwardedModules;
  85836. if (t1 != null)
  85837. t1.pop();
  85838. // goto the next finally handler
  85839. $async$goto = $async$next.pop();
  85840. break;
  85841. case 11:
  85842. // after finally
  85843. case 1:
  85844. // return
  85845. return A._asyncReturn($async$returnValue, $async$completer);
  85846. case 2:
  85847. // rethrow
  85848. return A._asyncRethrow($async$currentError, $async$completer);
  85849. }
  85850. });
  85851. return A._asyncStartSync($async$scope$1$3$semiGlobal$when, $async$completer);
  85852. },
  85853. toImplicitConfiguration$0() {
  85854. var t2, t3, t4, i, values, nodes, t5, t6, $name, value,
  85855. t1 = type$.String,
  85856. configuration = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.ConfiguredValue_2);
  85857. for (t2 = this._async_environment0$_variables, t3 = type$.Value_2, t4 = this._async_environment0$_variableNodes, i = 0; i < t2.length; ++i) {
  85858. values = t2[i];
  85859. nodes = t4[i];
  85860. for (t5 = A.MapExtensions_get_pairs0(values, t1, t3), t5 = t5.get$iterator(t5); t5.moveNext$0();) {
  85861. t6 = t5.get$current(t5);
  85862. $name = t6._0;
  85863. value = t6._1;
  85864. t6 = nodes.$index(0, $name);
  85865. t6.toString;
  85866. configuration.$indexSet(0, $name, new A.ConfiguredValue0(value, null, t6));
  85867. }
  85868. }
  85869. return new A.Configuration0(configuration, null);
  85870. },
  85871. toModule$3(css, preModuleComments, extensionStore) {
  85872. return A._EnvironmentModule__EnvironmentModule2(this, css, preModuleComments, extensionStore, A.NullableExtension_andThen0(this._async_environment0$_forwardedModules, new A.AsyncEnvironment_toModule_closure0()));
  85873. },
  85874. toDummyModule$0() {
  85875. return A._EnvironmentModule__EnvironmentModule2(this, new A.CssStylesheet0(new A.UnmodifiableListView(B.List_empty17, type$.UnmodifiableListView_CssNode_2), A.SourceFile$decoded(B.List_empty4, "<dummy module>").span$1(0, 0)), B.Map_empty15, B.C_EmptyExtensionStore0, A.NullableExtension_andThen0(this._async_environment0$_forwardedModules, new A.AsyncEnvironment_toDummyModule_closure0()));
  85876. },
  85877. _async_environment0$_getModule$1(namespace) {
  85878. var _0_0 = this._async_environment0$_modules.$index(0, namespace);
  85879. if (_0_0 != null)
  85880. return _0_0;
  85881. throw A.wrapException(A.SassScriptException$0('There is no module with the namespace "' + namespace + '".', null));
  85882. },
  85883. _async_environment0$_fromOneModule$1$3($name, type, callback) {
  85884. var t1, t2, t3, t4, t5, _1_0, _2_0, value, identity, valueInModule, identityFromModule, module, node,
  85885. _0_0 = this._async_environment0$_nestedForwardedModules;
  85886. if (_0_0 != null)
  85887. for (t1 = A._arrayInstanceType(_0_0)._eval$1("ReversedListIterable<1>"), t2 = new A.ReversedListIterable(_0_0, t1), t2 = new A.ListIterator(t2, t2.get$length(0), t1._eval$1("ListIterator<ListIterable.E>")), t1 = t1._eval$1("ListIterable.E"); t2.moveNext$0();) {
  85888. t3 = t2.__internal$_current;
  85889. for (t3 = J.get$reversed$ax(t3 == null ? t1._as(t3) : t3), t4 = t3.$ti, t3 = new A.ListIterator(t3, t3.get$length(0), t4._eval$1("ListIterator<ListIterable.E>")), t4 = t4._eval$1("ListIterable.E"); t3.moveNext$0();) {
  85890. t5 = t3.__internal$_current;
  85891. _1_0 = callback.call$1(t5 == null ? t4._as(t5) : t5);
  85892. if (_1_0 != null)
  85893. return _1_0;
  85894. }
  85895. }
  85896. for (t1 = this._async_environment0$_importedModules, t1 = A.LinkedHashMapKeyIterator$(t1, t1.__js_helper$_modifications); t1.moveNext$0();) {
  85897. _2_0 = callback.call$1(t1.__js_helper$_current);
  85898. if (_2_0 != null)
  85899. return _2_0;
  85900. }
  85901. for (t1 = this._async_environment0$_globalModules, t2 = A.LinkedHashMapKeyIterator$(t1, t1.__js_helper$_modifications), t3 = type$.AsyncCallable_2, value = null, identity = null; t2.moveNext$0();) {
  85902. t4 = t2.__js_helper$_current;
  85903. valueInModule = callback.call$1(t4);
  85904. if (valueInModule == null)
  85905. continue;
  85906. identityFromModule = t3._is(valueInModule) ? valueInModule : t4.variableIdentity$1($name);
  85907. if (identityFromModule.$eq(0, identity))
  85908. continue;
  85909. if (value != null) {
  85910. t2 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
  85911. for (t3 = A.MapExtensions_get_pairs0(t1, type$.Module_AsyncCallable_2, type$.AstNode_2), t3 = t3.get$iterator(t3), t4 = "includes " + type; t3.moveNext$0();) {
  85912. t1 = t3.get$current(t3);
  85913. module = t1._0;
  85914. node = t1._1;
  85915. if (callback.call$1(module) != null)
  85916. t2.$indexSet(0, node.get$span(node), t4);
  85917. }
  85918. throw A.wrapException(A.MultiSpanSassScriptException$0("This " + type + string$.x20is_av, type + " use", t2));
  85919. }
  85920. identity = identityFromModule;
  85921. value = valueInModule;
  85922. }
  85923. return value;
  85924. },
  85925. _async_environment0$_fromOneModule$3($name, type, callback) {
  85926. return this._async_environment0$_fromOneModule$1$3($name, type, callback, type$.dynamic);
  85927. }
  85928. };
  85929. A.AsyncEnvironment__getVariableFromGlobalModule_closure0.prototype = {
  85930. call$1(module) {
  85931. return module.get$variables().$index(0, this.name);
  85932. },
  85933. $signature: 314
  85934. };
  85935. A.AsyncEnvironment_setVariable_closure2.prototype = {
  85936. call$0() {
  85937. var t1 = this.$this;
  85938. t1._async_environment0$_lastVariableName = this.name;
  85939. return t1._async_environment0$_lastVariableIndex = 0;
  85940. },
  85941. $signature: 10
  85942. };
  85943. A.AsyncEnvironment_setVariable_closure3.prototype = {
  85944. call$1(module) {
  85945. return module.get$variables().containsKey$1(this.name) ? module : null;
  85946. },
  85947. $signature: 315
  85948. };
  85949. A.AsyncEnvironment_setVariable_closure4.prototype = {
  85950. call$0() {
  85951. var t1 = this.$this,
  85952. t2 = t1._async_environment0$_variableIndex$1(this.name);
  85953. return t2 == null ? t1._async_environment0$_variables.length - 1 : t2;
  85954. },
  85955. $signature: 10
  85956. };
  85957. A.AsyncEnvironment__getFunctionFromGlobalModule_closure0.prototype = {
  85958. call$1(module) {
  85959. return module.get$functions(module).$index(0, this.name);
  85960. },
  85961. $signature: 162
  85962. };
  85963. A.AsyncEnvironment__getMixinFromGlobalModule_closure0.prototype = {
  85964. call$1(module) {
  85965. return module.get$mixins().$index(0, this.name);
  85966. },
  85967. $signature: 162
  85968. };
  85969. A.AsyncEnvironment_toModule_closure0.prototype = {
  85970. call$1(modules) {
  85971. return new A.MapKeySet(modules, type$.MapKeySet_Module_AsyncCallable_2);
  85972. },
  85973. $signature: 163
  85974. };
  85975. A.AsyncEnvironment_toDummyModule_closure0.prototype = {
  85976. call$1(modules) {
  85977. return new A.MapKeySet(modules, type$.MapKeySet_Module_AsyncCallable_2);
  85978. },
  85979. $signature: 163
  85980. };
  85981. A._EnvironmentModule2.prototype = {
  85982. get$url(_) {
  85983. var t1 = this.css;
  85984. return t1.get$span(t1).file.url;
  85985. },
  85986. setVariable$3($name, value, nodeWithSpan) {
  85987. var t1, t2,
  85988. _0_0 = this._async_environment0$_modulesByVariable.$index(0, $name);
  85989. if (_0_0 != null) {
  85990. _0_0.setVariable$3($name, value, nodeWithSpan);
  85991. return;
  85992. }
  85993. t1 = this._async_environment0$_environment;
  85994. t2 = t1._async_environment0$_variables;
  85995. if (!B.JSArray_methods.get$first(t2).containsKey$1($name))
  85996. throw A.wrapException(A.SassScriptException$0("Undefined variable.", null));
  85997. J.$indexSet$ax(B.JSArray_methods.get$first(t2), $name, value);
  85998. J.$indexSet$ax(B.JSArray_methods.get$first(t1._async_environment0$_variableNodes), $name, nodeWithSpan);
  85999. return;
  86000. },
  86001. variableIdentity$1($name) {
  86002. var module = this._async_environment0$_modulesByVariable.$index(0, $name);
  86003. return module == null ? this : module.variableIdentity$1($name);
  86004. },
  86005. cloneCss$0() {
  86006. var _0_0, _this = this;
  86007. if (!_this.transitivelyContainsCss)
  86008. return _this;
  86009. _0_0 = A.cloneCssStylesheet0(_this.css, _this.extensionStore);
  86010. return A._EnvironmentModule$_2(_this._async_environment0$_environment, _0_0._0, _this.preModuleComments, _0_0._1, _this._async_environment0$_modulesByVariable, _this.variables, _this.variableNodes, _this.functions, _this.mixins, true, _this.transitivelyContainsExtensions);
  86011. },
  86012. toString$0(_) {
  86013. var t2,
  86014. t1 = this.css;
  86015. if (t1.get$span(t1).file.url == null)
  86016. t1 = "<unknown url>";
  86017. else {
  86018. t1 = t1.get$span(t1).file.url;
  86019. t2 = $.$get$context();
  86020. t1.toString;
  86021. t1 = t2.prettyUri$1(t1);
  86022. }
  86023. return t1;
  86024. },
  86025. $isModule1: 1,
  86026. get$upstream() {
  86027. return this.upstream;
  86028. },
  86029. get$variables() {
  86030. return this.variables;
  86031. },
  86032. get$variableNodes() {
  86033. return this.variableNodes;
  86034. },
  86035. get$functions(receiver) {
  86036. return this.functions;
  86037. },
  86038. get$mixins() {
  86039. return this.mixins;
  86040. },
  86041. get$extensionStore() {
  86042. return this.extensionStore;
  86043. },
  86044. get$css(receiver) {
  86045. return this.css;
  86046. },
  86047. get$preModuleComments() {
  86048. return this.preModuleComments;
  86049. },
  86050. get$transitivelyContainsCss() {
  86051. return this.transitivelyContainsCss;
  86052. },
  86053. get$transitivelyContainsExtensions() {
  86054. return this.transitivelyContainsExtensions;
  86055. }
  86056. };
  86057. A._EnvironmentModule__EnvironmentModule_closure17.prototype = {
  86058. call$1(module) {
  86059. return module.get$variables();
  86060. },
  86061. $signature: 318
  86062. };
  86063. A._EnvironmentModule__EnvironmentModule_closure18.prototype = {
  86064. call$1(module) {
  86065. return module.get$variableNodes();
  86066. },
  86067. $signature: 319
  86068. };
  86069. A._EnvironmentModule__EnvironmentModule_closure19.prototype = {
  86070. call$1(module) {
  86071. return module.get$functions(module);
  86072. },
  86073. $signature: 164
  86074. };
  86075. A._EnvironmentModule__EnvironmentModule_closure20.prototype = {
  86076. call$1(module) {
  86077. return module.get$mixins();
  86078. },
  86079. $signature: 164
  86080. };
  86081. A._EnvironmentModule__EnvironmentModule_closure21.prototype = {
  86082. call$1(module) {
  86083. return module.get$transitivelyContainsCss();
  86084. },
  86085. $signature: 129
  86086. };
  86087. A._EnvironmentModule__EnvironmentModule_closure22.prototype = {
  86088. call$1(module) {
  86089. return module.get$transitivelyContainsExtensions();
  86090. },
  86091. $signature: 129
  86092. };
  86093. A._EvaluateVisitor2.prototype = {
  86094. _EvaluateVisitor$6$functions$importCache$logger$nodeImporter$quietDeps$sourceMap2(functions, importCache, logger, nodeImporter, quietDeps, sourceMap) {
  86095. var t2, metaModule, t3, _i, module, $function, t4, _this = this,
  86096. _s20_ = "$name, $module: null",
  86097. _s9_ = "sass:meta",
  86098. _s7_ = "$module",
  86099. t1 = type$.JSArray_AsyncBuiltInCallable_2,
  86100. metaFunctions = A._setArrayType([A.BuiltInCallable$function0("global-variable-exists", _s20_, new A._EvaluateVisitor_closure38(_this), _s9_), A.BuiltInCallable$function0("variable-exists", "$name", new A._EvaluateVisitor_closure39(_this), _s9_), A.BuiltInCallable$function0("function-exists", _s20_, new A._EvaluateVisitor_closure40(_this), _s9_), A.BuiltInCallable$function0("mixin-exists", _s20_, new A._EvaluateVisitor_closure41(_this), _s9_), A.BuiltInCallable$function0("content-exists", "", new A._EvaluateVisitor_closure42(_this), _s9_), A.BuiltInCallable$function0("module-variables", _s7_, new A._EvaluateVisitor_closure43(_this), _s9_), A.BuiltInCallable$function0("module-functions", _s7_, new A._EvaluateVisitor_closure44(_this), _s9_), A.BuiltInCallable$function0("module-mixins", _s7_, new A._EvaluateVisitor_closure45(_this), _s9_), A.BuiltInCallable$function0("get-function", "$name, $css: false, $module: null", new A._EvaluateVisitor_closure46(_this), _s9_), A.BuiltInCallable$function0("get-mixin", _s20_, new A._EvaluateVisitor_closure47(_this), _s9_), new A.AsyncBuiltInCallable0("call", A.ScssParser$0("@function call($function, $args...) {", _s9_).parseArgumentDeclaration$0(), new A._EvaluateVisitor_closure48(_this), false)], t1),
  86101. metaMixins = A._setArrayType([A.AsyncBuiltInCallable$mixin0("load-css", "$url, $with: null", new A._EvaluateVisitor_closure49(_this), false, _s9_), A.AsyncBuiltInCallable$mixin0("apply", "$mixin, $args...", new A._EvaluateVisitor_closure50(_this), true, _s9_)], t1);
  86102. t1 = type$.AsyncBuiltInCallable_2;
  86103. t2 = A.List_List$of($.$get$moduleFunctions0(), true, t1);
  86104. B.JSArray_methods.addAll$1(t2, metaFunctions);
  86105. metaModule = A.BuiltInModule$0("meta", t2, metaMixins, null, t1);
  86106. for (t1 = A.List_List$of($.$get$coreModules0(), true, type$.BuiltInModule_AsyncCallable_2), t1.push(metaModule), t2 = t1.length, t3 = _this._async_evaluate0$_builtInModules, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
  86107. module = t1[_i];
  86108. t3.$indexSet(0, module.url, module);
  86109. }
  86110. t1 = type$.JSArray_AsyncCallable_2;
  86111. t2 = A._setArrayType([], t1);
  86112. B.JSArray_methods.addAll$1(t2, functions);
  86113. B.JSArray_methods.addAll$1(t2, $.$get$globalFunctions0());
  86114. t1 = A._setArrayType([], t1);
  86115. for (_i = 0; _i < 11; ++_i)
  86116. t1.push(metaFunctions[_i].withDeprecationWarning$1("meta"));
  86117. B.JSArray_methods.addAll$1(t2, t1);
  86118. for (t1 = t2.length, t3 = _this._async_evaluate0$_builtInFunctions, _i = 0; _i < t2.length; t2.length === t1 || (0, A.throwConcurrentModificationError)(t2), ++_i) {
  86119. $function = t2[_i];
  86120. t4 = J.get$name$x($function);
  86121. t3.$indexSet(0, A.stringReplaceAllUnchecked(t4, "_", "-"), $function);
  86122. }
  86123. },
  86124. run$2(_, importer, node) {
  86125. return this.run$body$_EvaluateVisitor0(0, importer, node);
  86126. },
  86127. run$body$_EvaluateVisitor0(_, importer, node) {
  86128. var $async$goto = 0,
  86129. $async$completer = A._makeAsyncAwaitCompleter(type$.Record_2_Set_Uri_loadedUrls_and_CssStylesheet_stylesheet_2),
  86130. $async$returnValue, $async$handler = 2, $async$currentError, $async$self = this, error, stackTrace, t1, exception, $async$exception;
  86131. var $async$run$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  86132. if ($async$errorCode === 1) {
  86133. $async$currentError = $async$result;
  86134. $async$goto = $async$handler;
  86135. }
  86136. while (true)
  86137. switch ($async$goto) {
  86138. case 0:
  86139. // Function start
  86140. $async$handler = 4;
  86141. t1 = type$.nullable_Object;
  86142. t1 = A.runZoned(new A._EvaluateVisitor_run_closure2($async$self, node, importer), A.LinkedHashMap_LinkedHashMap$_literal([B.Symbol__evaluationContext, new A._EvaluationContext2($async$self, node)], t1, t1), type$.FutureOr_Record_2_Set_Uri_loadedUrls_and_CssStylesheet_stylesheet_2);
  86143. $async$goto = 7;
  86144. return A._asyncAwait(type$.Future_Record_2_Set_Uri_loadedUrls_and_CssStylesheet_stylesheet_2._is(t1) ? t1 : A._Future$value(t1, type$.Record_2_Set_Uri_loadedUrls_and_CssStylesheet_stylesheet_2), $async$run$2);
  86145. case 7:
  86146. // returning from await.
  86147. t1 = $async$result;
  86148. $async$returnValue = t1;
  86149. // goto return
  86150. $async$goto = 1;
  86151. break;
  86152. $async$handler = 2;
  86153. // goto after finally
  86154. $async$goto = 6;
  86155. break;
  86156. case 4:
  86157. // catch
  86158. $async$handler = 3;
  86159. $async$exception = $async$currentError;
  86160. t1 = A.unwrapException($async$exception);
  86161. if (t1 instanceof A.SassException0) {
  86162. error = t1;
  86163. stackTrace = A.getTraceFromException($async$exception);
  86164. A.throwWithTrace0(error.withLoadedUrls$1($async$self._async_evaluate0$_loadedUrls), error, stackTrace);
  86165. } else
  86166. throw $async$exception;
  86167. // goto after finally
  86168. $async$goto = 6;
  86169. break;
  86170. case 3:
  86171. // uncaught
  86172. // goto rethrow
  86173. $async$goto = 2;
  86174. break;
  86175. case 6:
  86176. // after finally
  86177. case 1:
  86178. // return
  86179. return A._asyncReturn($async$returnValue, $async$completer);
  86180. case 2:
  86181. // rethrow
  86182. return A._asyncRethrow($async$currentError, $async$completer);
  86183. }
  86184. });
  86185. return A._asyncStartSync($async$run$2, $async$completer);
  86186. },
  86187. _async_evaluate0$_assertInModule$1$2(value, $name) {
  86188. if (value != null)
  86189. return value;
  86190. throw A.wrapException(A.StateError$("Can't access " + $name + " outside of a module."));
  86191. },
  86192. _async_evaluate0$_assertInModule$2(value, $name) {
  86193. return this._async_evaluate0$_assertInModule$1$2(value, $name, type$.dynamic);
  86194. },
  86195. _async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors) {
  86196. return this._loadModule$body$_EvaluateVisitor0(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors);
  86197. },
  86198. _async_evaluate0$_loadModule$5$configuration(url, stackFrame, nodeWithSpan, callback, configuration) {
  86199. return this._async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, configuration, false);
  86200. },
  86201. _async_evaluate0$_loadModule$4(url, stackFrame, nodeWithSpan, callback) {
  86202. return this._async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, null, false);
  86203. },
  86204. _loadModule$body$_EvaluateVisitor0(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors) {
  86205. var $async$goto = 0,
  86206. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  86207. $async$returnValue, $async$self = this, t2, t1, _0_0;
  86208. var $async$_async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  86209. if ($async$errorCode === 1)
  86210. return A._asyncRethrow($async$result, $async$completer);
  86211. while (true)
  86212. switch ($async$goto) {
  86213. case 0:
  86214. // Function start
  86215. t1 = {};
  86216. _0_0 = $async$self._async_evaluate0$_builtInModules.$index(0, url);
  86217. t1.builtInModule = null;
  86218. $async$goto = _0_0 != null ? 3 : 4;
  86219. break;
  86220. case 3:
  86221. // then
  86222. t1.builtInModule = _0_0;
  86223. if (configuration instanceof A.ExplicitConfiguration0) {
  86224. t1 = namesInErrors ? "Built-in module " + url.toString$0(0) + " can't be configured." : "Built-in modules can't be configured.";
  86225. t2 = configuration.nodeWithSpan;
  86226. throw A.wrapException($async$self._async_evaluate0$_exception$2(t1, t2.get$span(t2)));
  86227. }
  86228. $async$goto = 5;
  86229. return A._asyncAwait($async$self._async_evaluate0$_addExceptionSpanAsync$1$2(nodeWithSpan, new A._EvaluateVisitor__loadModule_closure5(t1, callback), type$.void), $async$_async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors);
  86230. case 5:
  86231. // returning from await.
  86232. // goto return
  86233. $async$goto = 1;
  86234. break;
  86235. case 4:
  86236. // join
  86237. $async$goto = 6;
  86238. return A._asyncAwait($async$self._async_evaluate0$_withStackFrame$1$3(stackFrame, nodeWithSpan, new A._EvaluateVisitor__loadModule_closure6($async$self, url, nodeWithSpan, baseUrl, namesInErrors, configuration, callback), type$.Null), $async$_async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors);
  86239. case 6:
  86240. // returning from await.
  86241. case 1:
  86242. // return
  86243. return A._asyncReturn($async$returnValue, $async$completer);
  86244. }
  86245. });
  86246. return A._asyncStartSync($async$_async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors, $async$completer);
  86247. },
  86248. _async_evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, configuration, namesInErrors, nodeWithSpan) {
  86249. return this._execute$body$_EvaluateVisitor0(importer, stylesheet, configuration, namesInErrors, nodeWithSpan);
  86250. },
  86251. _async_evaluate0$_execute$2(importer, stylesheet) {
  86252. return this._async_evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, null, false, null);
  86253. },
  86254. _execute$body$_EvaluateVisitor0(importer, stylesheet, configuration, namesInErrors, nodeWithSpan) {
  86255. var $async$goto = 0,
  86256. $async$completer = A._makeAsyncAwaitCompleter(type$.Module_AsyncCallable_2),
  86257. $async$returnValue, $async$self = this, currentConfiguration, t2, t3, message, existingSpan, configurationSpan, environment, css, preModuleComments, extensionStore, module, url, t1, _0_0;
  86258. var $async$_async_evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  86259. if ($async$errorCode === 1)
  86260. return A._asyncRethrow($async$result, $async$completer);
  86261. while (true)
  86262. switch ($async$goto) {
  86263. case 0:
  86264. // Function start
  86265. url = stylesheet.span.file.url;
  86266. t1 = $async$self._async_evaluate0$_modules;
  86267. _0_0 = t1.$index(0, url);
  86268. if (_0_0 != null) {
  86269. t1 = configuration == null;
  86270. currentConfiguration = t1 ? $async$self._async_evaluate0$_configuration : configuration;
  86271. t2 = $async$self._async_evaluate0$_moduleConfigurations.$index(0, url);
  86272. t3 = t2._configuration0$__originalConfiguration;
  86273. t2 = t3 == null ? t2 : t3;
  86274. t3 = currentConfiguration._configuration0$__originalConfiguration;
  86275. if (t2 !== (t3 == null ? currentConfiguration : t3) && currentConfiguration instanceof A.ExplicitConfiguration0) {
  86276. if (namesInErrors) {
  86277. t2 = $.$get$context();
  86278. url.toString;
  86279. message = t2.prettyUri$1(url) + string$.x20was_a;
  86280. } else
  86281. message = string$.This_mw;
  86282. t2 = $async$self._async_evaluate0$_moduleNodes.$index(0, url);
  86283. existingSpan = t2 == null ? null : t2.get$span(t2);
  86284. if (t1) {
  86285. t1 = currentConfiguration.nodeWithSpan;
  86286. configurationSpan = t1.get$span(t1);
  86287. } else
  86288. configurationSpan = null;
  86289. t1 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
  86290. if (existingSpan != null)
  86291. t1.$indexSet(0, existingSpan, "original load");
  86292. if (configurationSpan != null)
  86293. t1.$indexSet(0, configurationSpan, "configuration");
  86294. throw A.wrapException(t1.get$isEmpty(0) ? $async$self._async_evaluate0$_exception$1(message) : $async$self._async_evaluate0$_multiSpanException$3(message, "new load", t1));
  86295. }
  86296. $async$returnValue = _0_0;
  86297. // goto return
  86298. $async$goto = 1;
  86299. break;
  86300. }
  86301. environment = A.AsyncEnvironment$0();
  86302. css = A._Cell$();
  86303. preModuleComments = A._Cell$();
  86304. extensionStore = A.ExtensionStore$0();
  86305. $async$goto = 3;
  86306. return A._asyncAwait($async$self._async_evaluate0$_withEnvironment$1$2(environment, new A._EvaluateVisitor__execute_closure2($async$self, importer, stylesheet, extensionStore, configuration, css, preModuleComments), type$.Null), $async$_async_evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan);
  86307. case 3:
  86308. // returning from await.
  86309. t2 = css._readLocal$0();
  86310. t3 = preModuleComments._readLocal$0();
  86311. module = environment.toModule$3(t2, t3 == null ? B.Map_empty15 : t3, extensionStore);
  86312. if (url != null) {
  86313. t1.$indexSet(0, url, module);
  86314. $async$self._async_evaluate0$_moduleConfigurations.$indexSet(0, url, $async$self._async_evaluate0$_configuration);
  86315. if (nodeWithSpan != null)
  86316. $async$self._async_evaluate0$_moduleNodes.$indexSet(0, url, nodeWithSpan);
  86317. }
  86318. $async$returnValue = module;
  86319. // goto return
  86320. $async$goto = 1;
  86321. break;
  86322. case 1:
  86323. // return
  86324. return A._asyncReturn($async$returnValue, $async$completer);
  86325. }
  86326. });
  86327. return A._asyncStartSync($async$_async_evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan, $async$completer);
  86328. },
  86329. _async_evaluate0$_addOutOfOrderImports$0() {
  86330. var t1, t2, _this = this, _s5_ = "_root",
  86331. _s13_ = "_endOfImports",
  86332. _0_0 = _this._async_evaluate0$_outOfOrderImports;
  86333. $label0$0: {
  86334. if (_0_0 == null) {
  86335. t1 = _this._async_evaluate0$_assertInModule$2(_this._async_evaluate0$__root, _s5_).children;
  86336. break $label0$0;
  86337. }
  86338. t1 = _this._async_evaluate0$_assertInModule$2(_this._async_evaluate0$__root, _s5_).children;
  86339. t1 = A.List_List$of(A.SubListIterable$(t1, 0, A.checkNotNullable(_this._async_evaluate0$_assertInModule$2(_this._async_evaluate0$__endOfImports, _s13_), "count", type$.int), t1.$ti._eval$1("ListBase.E")), true, type$.ModifiableCssNode_2);
  86340. B.JSArray_methods.addAll$1(t1, _0_0);
  86341. t2 = _this._async_evaluate0$_assertInModule$2(_this._async_evaluate0$__root, _s5_).children;
  86342. B.JSArray_methods.addAll$1(t1, A.SubListIterable$(t2, _this._async_evaluate0$_assertInModule$2(_this._async_evaluate0$__endOfImports, _s13_), null, t2.$ti._eval$1("ListBase.E")));
  86343. break $label0$0;
  86344. }
  86345. return t1;
  86346. },
  86347. _async_evaluate0$_combineCss$2$clone(root, clone) {
  86348. var selectors, _0_0, t1, imports, css, sorted, t2;
  86349. if (!B.JSArray_methods.any$1(root.get$upstream(), new A._EvaluateVisitor__combineCss_closure5())) {
  86350. selectors = root.get$extensionStore().get$simpleSelectors();
  86351. _0_0 = A.IterableExtension_get_firstOrNull(root.get$extensionStore().extensionsWhereTarget$1(new A._EvaluateVisitor__combineCss_closure6(selectors)));
  86352. if (_0_0 != null)
  86353. this._async_evaluate0$_throwForUnsatisfiedExtension$1(_0_0);
  86354. return root.get$css(root);
  86355. }
  86356. t1 = type$.JSArray_CssNode_2;
  86357. imports = A._setArrayType([], t1);
  86358. css = A._setArrayType([], t1);
  86359. t1 = type$.Module_AsyncCallable_2;
  86360. sorted = A.ListQueue$(t1);
  86361. new A._EvaluateVisitor__combineCss_visitModule2(this, A.LinkedHashSet_LinkedHashSet$_empty(t1), clone, css, imports, sorted).call$1(root);
  86362. if (root.get$transitivelyContainsExtensions())
  86363. this._async_evaluate0$_extendModules$1(sorted);
  86364. t1 = B.JSArray_methods.$add(imports, css);
  86365. t2 = root.get$css(root);
  86366. return new A.CssStylesheet0(new A.UnmodifiableListView(t1, type$.UnmodifiableListView_CssNode_2), t2.get$span(t2));
  86367. },
  86368. _async_evaluate0$_combineCss$1(root) {
  86369. return this._async_evaluate0$_combineCss$2$clone(root, false);
  86370. },
  86371. _async_evaluate0$_extendModules$1(sortedModules) {
  86372. var t1, t2, t3, originalSelectors, $self, t4, t5, _i, upstream, _0_0,
  86373. downstreamExtensionStores = A.LinkedHashMap_LinkedHashMap$_empty(type$.Uri, type$.List_ExtensionStore_2),
  86374. unsatisfiedExtensions = new A._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_Extension_2);
  86375. for (t1 = A._ListQueueIterator$(sortedModules, sortedModules.$ti._precomputed1), t2 = t1.$ti._precomputed1; t1.moveNext$0();) {
  86376. t3 = t1._collection$_current;
  86377. if (t3 == null)
  86378. t3 = t2._as(t3);
  86379. originalSelectors = t3.get$extensionStore().get$simpleSelectors().toSet$0(0);
  86380. unsatisfiedExtensions.addAll$1(0, t3.get$extensionStore().extensionsWhereTarget$1(new A._EvaluateVisitor__extendModules_closure5(originalSelectors)));
  86381. $self = downstreamExtensionStores.$index(0, t3.get$url(t3));
  86382. t4 = t3.get$extensionStore().get$addExtensions();
  86383. if ($self != null)
  86384. t4.call$1($self);
  86385. t4 = t3.get$extensionStore();
  86386. if (t4.get$isEmpty(t4))
  86387. continue;
  86388. for (t4 = t3.get$upstream(), t5 = t4.length, _i = 0; _i < t4.length; t4.length === t5 || (0, A.throwConcurrentModificationError)(t4), ++_i) {
  86389. upstream = t4[_i];
  86390. _0_0 = upstream.get$url(upstream);
  86391. if (_0_0 != null)
  86392. J.add$1$ax(downstreamExtensionStores.putIfAbsent$2(_0_0, new A._EvaluateVisitor__extendModules_closure6()), t3.get$extensionStore());
  86393. }
  86394. unsatisfiedExtensions.removeAll$1(t3.get$extensionStore().extensionsWhereTarget$1(originalSelectors.get$contains(originalSelectors)));
  86395. }
  86396. if (unsatisfiedExtensions._collection$_length !== 0)
  86397. this._async_evaluate0$_throwForUnsatisfiedExtension$1(unsatisfiedExtensions.get$first(0));
  86398. },
  86399. _async_evaluate0$_throwForUnsatisfiedExtension$1(extension) {
  86400. throw A.wrapException(A.SassException$0(string$.The_ta + extension.target.toString$0(0) + ' !optional" to avoid this error.', extension.span, null));
  86401. },
  86402. _async_evaluate0$_indexAfterImports$1(statements) {
  86403. var t1, lastImport, i, _0_0;
  86404. for (t1 = J.getInterceptor$asx(statements), lastImport = -1, i = 0; i < t1.get$length(statements); ++i) {
  86405. $label0$0: {
  86406. _0_0 = t1.$index(statements, i);
  86407. if (_0_0 instanceof A.ModifiableCssImport0)
  86408. break $label0$0;
  86409. if (_0_0 instanceof A.ModifiableCssComment0)
  86410. continue;
  86411. break;
  86412. }
  86413. lastImport = i;
  86414. }
  86415. return lastImport + 1;
  86416. },
  86417. visitStylesheet$1(_, node) {
  86418. return this.visitStylesheet$body$_EvaluateVisitor0(0, node);
  86419. },
  86420. visitStylesheet$body$_EvaluateVisitor0(_, node) {
  86421. var $async$goto = 0,
  86422. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  86423. $async$returnValue, $async$self = this, t1, t2, warning, _i;
  86424. var $async$visitStylesheet$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  86425. if ($async$errorCode === 1)
  86426. return A._asyncRethrow($async$result, $async$completer);
  86427. while (true)
  86428. switch ($async$goto) {
  86429. case 0:
  86430. // Function start
  86431. for (t1 = node.parseTimeWarnings, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t2 = t2._eval$1("ListBase.E"); t1.moveNext$0();) {
  86432. warning = t1.__internal$_current;
  86433. if (warning == null)
  86434. warning = t2._as(warning);
  86435. $async$self._async_evaluate0$_warn$3(warning._1, warning._2, warning._0);
  86436. }
  86437. t1 = node.children, t2 = t1.length, _i = 0;
  86438. case 3:
  86439. // for condition
  86440. if (!(_i < t2)) {
  86441. // goto after for
  86442. $async$goto = 5;
  86443. break;
  86444. }
  86445. $async$goto = 6;
  86446. return A._asyncAwait(t1[_i].accept$1($async$self), $async$visitStylesheet$1);
  86447. case 6:
  86448. // returning from await.
  86449. case 4:
  86450. // for update
  86451. ++_i;
  86452. // goto for condition
  86453. $async$goto = 3;
  86454. break;
  86455. case 5:
  86456. // after for
  86457. $async$returnValue = null;
  86458. // goto return
  86459. $async$goto = 1;
  86460. break;
  86461. case 1:
  86462. // return
  86463. return A._asyncReturn($async$returnValue, $async$completer);
  86464. }
  86465. });
  86466. return A._asyncStartSync($async$visitStylesheet$1, $async$completer);
  86467. },
  86468. visitAtRootRule$1(_, node) {
  86469. return this.visitAtRootRule$body$_EvaluateVisitor0(0, node);
  86470. },
  86471. visitAtRootRule$body$_EvaluateVisitor0(_, node) {
  86472. var $async$goto = 0,
  86473. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  86474. $async$returnValue, $async$self = this, _1_0, resolved, query, $parent, included, t1, _2_0, root, first, rest, innerCopy, outerCopy, _i, copy, _0_0;
  86475. var $async$visitAtRootRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  86476. if ($async$errorCode === 1)
  86477. return A._asyncRethrow($async$result, $async$completer);
  86478. while (true)
  86479. switch ($async$goto) {
  86480. case 0:
  86481. // Function start
  86482. _0_0 = node.query;
  86483. $async$goto = _0_0 != null ? 3 : 5;
  86484. break;
  86485. case 3:
  86486. // then
  86487. $async$goto = 6;
  86488. return A._asyncAwait($async$self._async_evaluate0$_performInterpolationWithMap$2$warnForColor(_0_0, true), $async$visitAtRootRule$1);
  86489. case 6:
  86490. // returning from await.
  86491. _1_0 = $async$result;
  86492. resolved = _1_0._0;
  86493. _1_0._1;
  86494. query = new A.AtRootQueryParser0(A.SpanScanner$(resolved, null), null).parse$0(0);
  86495. // goto join
  86496. $async$goto = 4;
  86497. break;
  86498. case 5:
  86499. // else
  86500. query = B.AtRootQuery_n2q0;
  86501. case 4:
  86502. // join
  86503. $parent = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent");
  86504. included = A._setArrayType([], type$.JSArray_ModifiableCssParentNode_2);
  86505. for (t1 = type$.CssStylesheet_2; !t1._is($parent); $parent = _2_0) {
  86506. if (!query.excludes$1($parent))
  86507. included.push($parent);
  86508. _2_0 = $parent._node$_parent;
  86509. if (_2_0 == null)
  86510. throw A.wrapException(A.StateError$(string$.CssNod));
  86511. }
  86512. root = $async$self._async_evaluate0$_trimIncluded$1(included);
  86513. $async$goto = root === $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent") ? 7 : 8;
  86514. break;
  86515. case 7:
  86516. // then
  86517. $async$goto = 9;
  86518. return A._asyncAwait($async$self._async_evaluate0$_environment.scope$1$2$when(new A._EvaluateVisitor_visitAtRootRule_closure5($async$self, node), node.hasDeclarations, type$.Null), $async$visitAtRootRule$1);
  86519. case 9:
  86520. // returning from await.
  86521. $async$returnValue = null;
  86522. // goto return
  86523. $async$goto = 1;
  86524. break;
  86525. case 8:
  86526. // join
  86527. if (included.length >= 1) {
  86528. first = included[0];
  86529. rest = B.JSArray_methods.sublist$1(included, 1);
  86530. innerCopy = first.copyWithoutChildren$0();
  86531. for (t1 = rest.length, outerCopy = innerCopy, _i = 0; _i < rest.length; rest.length === t1 || (0, A.throwConcurrentModificationError)(rest), ++_i, outerCopy = copy) {
  86532. copy = rest[_i].copyWithoutChildren$0();
  86533. copy.addChild$1(outerCopy);
  86534. }
  86535. root.addChild$1(outerCopy);
  86536. } else
  86537. innerCopy = root;
  86538. $async$goto = 10;
  86539. return A._asyncAwait($async$self._async_evaluate0$_scopeForAtRoot$4(node, innerCopy, query, included).call$1(new A._EvaluateVisitor_visitAtRootRule_closure6($async$self, node)), $async$visitAtRootRule$1);
  86540. case 10:
  86541. // returning from await.
  86542. $async$returnValue = null;
  86543. // goto return
  86544. $async$goto = 1;
  86545. break;
  86546. case 1:
  86547. // return
  86548. return A._asyncReturn($async$returnValue, $async$completer);
  86549. }
  86550. });
  86551. return A._asyncStartSync($async$visitAtRootRule$1, $async$completer);
  86552. },
  86553. _async_evaluate0$_trimIncluded$1(nodes) {
  86554. var $parent, t1, innermostContiguous, i, t2, _0_0, _1_0, root, _this = this, _null = null, _s5_ = "_root",
  86555. _s22_ = " to be an ancestor of ";
  86556. if (nodes.length === 0)
  86557. return _this._async_evaluate0$_assertInModule$2(_this._async_evaluate0$__root, _s5_);
  86558. $parent = _this._async_evaluate0$_assertInModule$2(_this._async_evaluate0$__parent, "__parent");
  86559. for (t1 = nodes.length, innermostContiguous = _null, i = 0; i < t1; ++i, $parent = _1_0) {
  86560. for (; t2 = nodes[i], $parent !== t2; innermostContiguous = _null, $parent = _0_0) {
  86561. _0_0 = $parent._node$_parent;
  86562. if (_0_0 == null)
  86563. throw A.wrapException(A.ArgumentError$("Expected " + t2.toString$0(0) + _s22_ + _this.toString$0(0) + ".", _null));
  86564. }
  86565. if (innermostContiguous == null)
  86566. innermostContiguous = i;
  86567. _1_0 = $parent._node$_parent;
  86568. if (_1_0 == null)
  86569. throw A.wrapException(A.ArgumentError$("Expected " + t2.toString$0(0) + _s22_ + _this.toString$0(0) + ".", _null));
  86570. }
  86571. if ($parent !== _this._async_evaluate0$_assertInModule$2(_this._async_evaluate0$__root, _s5_))
  86572. return _this._async_evaluate0$_assertInModule$2(_this._async_evaluate0$__root, _s5_);
  86573. innermostContiguous.toString;
  86574. root = nodes[innermostContiguous];
  86575. B.JSArray_methods.removeRange$2(nodes, innermostContiguous, nodes.length);
  86576. return root;
  86577. },
  86578. _async_evaluate0$_scopeForAtRoot$4(node, newParent, query, included) {
  86579. var _this = this,
  86580. scope = new A._EvaluateVisitor__scopeForAtRoot_closure17(_this, newParent, node),
  86581. t1 = query._at_root_query0$_all || query._at_root_query0$_rule;
  86582. if (t1 !== query.include)
  86583. scope = new A._EvaluateVisitor__scopeForAtRoot_closure18(_this, scope);
  86584. if (_this._async_evaluate0$_mediaQueries != null && query.excludesName$1("media"))
  86585. scope = new A._EvaluateVisitor__scopeForAtRoot_closure19(_this, scope);
  86586. if (_this._async_evaluate0$_inKeyframes && query.excludesName$1("keyframes"))
  86587. scope = new A._EvaluateVisitor__scopeForAtRoot_closure20(_this, scope);
  86588. return _this._async_evaluate0$_inUnknownAtRule && !B.JSArray_methods.any$1(included, new A._EvaluateVisitor__scopeForAtRoot_closure21()) ? new A._EvaluateVisitor__scopeForAtRoot_closure22(_this, scope) : scope;
  86589. },
  86590. visitContentBlock$1(_, node) {
  86591. return A.throwExpression(A.UnsupportedError$(string$.Evalua));
  86592. },
  86593. visitContentRule$1(_, node) {
  86594. return this.visitContentRule$body$_EvaluateVisitor0(0, node);
  86595. },
  86596. visitContentRule$body$_EvaluateVisitor0(_, node) {
  86597. var $async$goto = 0,
  86598. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  86599. $async$returnValue, $async$self = this, $content;
  86600. var $async$visitContentRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  86601. if ($async$errorCode === 1)
  86602. return A._asyncRethrow($async$result, $async$completer);
  86603. while (true)
  86604. switch ($async$goto) {
  86605. case 0:
  86606. // Function start
  86607. $content = $async$self._async_evaluate0$_environment._async_environment0$_content;
  86608. if ($content == null) {
  86609. $async$returnValue = null;
  86610. // goto return
  86611. $async$goto = 1;
  86612. break;
  86613. }
  86614. $async$goto = 3;
  86615. return A._asyncAwait($async$self._async_evaluate0$_runUserDefinedCallable$1$4(node.$arguments, $content, node, new A._EvaluateVisitor_visitContentRule_closure2($async$self, $content), type$.Null), $async$visitContentRule$1);
  86616. case 3:
  86617. // returning from await.
  86618. $async$returnValue = null;
  86619. // goto return
  86620. $async$goto = 1;
  86621. break;
  86622. case 1:
  86623. // return
  86624. return A._asyncReturn($async$returnValue, $async$completer);
  86625. }
  86626. });
  86627. return A._asyncStartSync($async$visitContentRule$1, $async$completer);
  86628. },
  86629. visitDebugRule$1(_, node) {
  86630. return this.visitDebugRule$body$_EvaluateVisitor0(0, node);
  86631. },
  86632. visitDebugRule$body$_EvaluateVisitor0(_, node) {
  86633. var $async$goto = 0,
  86634. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  86635. $async$returnValue, $async$self = this, value, t1;
  86636. var $async$visitDebugRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  86637. if ($async$errorCode === 1)
  86638. return A._asyncRethrow($async$result, $async$completer);
  86639. while (true)
  86640. switch ($async$goto) {
  86641. case 0:
  86642. // Function start
  86643. $async$goto = 3;
  86644. return A._asyncAwait(node.expression.accept$1($async$self), $async$visitDebugRule$1);
  86645. case 3:
  86646. // returning from await.
  86647. value = $async$result;
  86648. t1 = value instanceof A.SassString0 ? value._string0$_text : A.serializeValue0(value, true, true);
  86649. $async$self._async_evaluate0$_logger.debug$2(0, t1, node.span);
  86650. $async$returnValue = null;
  86651. // goto return
  86652. $async$goto = 1;
  86653. break;
  86654. case 1:
  86655. // return
  86656. return A._asyncReturn($async$returnValue, $async$completer);
  86657. }
  86658. });
  86659. return A._asyncStartSync($async$visitDebugRule$1, $async$completer);
  86660. },
  86661. visitDeclaration$1(_, node) {
  86662. return this.visitDeclaration$body$_EvaluateVisitor0(0, node);
  86663. },
  86664. visitDeclaration$body$_EvaluateVisitor0(_, node) {
  86665. var $async$goto = 0,
  86666. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  86667. $async$returnValue, $async$self = this, siblings, interleavedRules, t1, t2, t3, t4, t5, t6, rule, rule0, $name, _1_0, _2_0, value, _3_0, oldDeclarationName, _box_0;
  86668. var $async$visitDeclaration$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  86669. if ($async$errorCode === 1)
  86670. return A._asyncRethrow($async$result, $async$completer);
  86671. while (true)
  86672. switch ($async$goto) {
  86673. case 0:
  86674. // Function start
  86675. _box_0 = {};
  86676. if (($async$self._async_evaluate0$_atRootExcludingStyleRule ? null : $async$self._async_evaluate0$_styleRuleIgnoringAtRoot) == null && !$async$self._async_evaluate0$_inUnknownAtRule && !$async$self._async_evaluate0$_inKeyframes)
  86677. throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Declarm, node.span));
  86678. if ($async$self._async_evaluate0$_declarationName != null && B.JSString_methods.startsWith$1(node.name.get$initialPlain(), "--"))
  86679. throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Declarw, node.span));
  86680. siblings = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent")._node$_parent.children;
  86681. interleavedRules = A._setArrayType([], type$.JSArray_CssStyleRule_2);
  86682. if (siblings.get$last(siblings) !== $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent")) {
  86683. if ($async$self._async_evaluate0$_quietDeps)
  86684. if (!$async$self._async_evaluate0$_inDependency) {
  86685. t1 = $async$self._async_evaluate0$_currentCallable;
  86686. t1 = t1 == null ? null : t1.inDependency;
  86687. t1 = t1 === true;
  86688. } else
  86689. t1 = true;
  86690. else
  86691. t1 = false;
  86692. t1 = !t1;
  86693. } else
  86694. t1 = false;
  86695. if (t1)
  86696. for (t1 = A.SubListIterable$(siblings, siblings.indexOf$1(siblings, $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent")) + 1, null, siblings.$ti._eval$1("ListBase.E")), t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListIterable.E>")), t3 = node.span, t4 = type$.SourceSpan, t5 = type$.String, t2 = t2._eval$1("ListIterable.E"); t1.moveNext$0();) {
  86697. t6 = t1.__internal$_current;
  86698. rule = t6 == null ? t2._as(t6) : t6;
  86699. $label0$1: {
  86700. if (rule instanceof A.ModifiableCssComment0)
  86701. continue;
  86702. t6 = rule instanceof A.ModifiableCssStyleRule0;
  86703. rule0 = t6 ? rule : null;
  86704. if (t6) {
  86705. interleavedRules.push(rule0);
  86706. break $label0$1;
  86707. }
  86708. $async$self._async_evaluate0$_warn$3(string$.Sassx27s, new A.MultiSpan0(t3, "declaration", A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_literal([rule.get$span(rule), "nested rule"], t4, t5), t4, t5)), B.Deprecation_VIq);
  86709. B.JSArray_methods.clear$0(interleavedRules);
  86710. break $label0$1;
  86711. }
  86712. }
  86713. t1 = node.name;
  86714. $async$goto = 3;
  86715. return A._asyncAwait($async$self._async_evaluate0$_interpolationToValue$2$warnForColor(t1, true), $async$visitDeclaration$1);
  86716. case 3:
  86717. // returning from await.
  86718. $name = $async$result;
  86719. _1_0 = $async$self._async_evaluate0$_declarationName;
  86720. if (_1_0 != null)
  86721. $name = new A.CssValue0(_1_0 + "-" + A.S($name.value), $name.span, type$.CssValue_String_2);
  86722. _2_0 = node.value;
  86723. $async$goto = _2_0 != null ? 4 : 5;
  86724. break;
  86725. case 4:
  86726. // then
  86727. $async$goto = 6;
  86728. return A._asyncAwait(_2_0.accept$1($async$self), $async$visitDeclaration$1);
  86729. case 6:
  86730. // returning from await.
  86731. value = $async$result;
  86732. if (!value.get$isBlank() || value.get$asList().length === 0) {
  86733. t2 = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent");
  86734. t3 = _2_0.get$span(_2_0);
  86735. t4 = node.span;
  86736. t1 = B.JSString_methods.startsWith$1(t1.get$initialPlain(), "--");
  86737. t5 = interleavedRules.length === 0 ? null : $async$self._async_evaluate0$_stackTrace$1(t4);
  86738. if ($async$self._async_evaluate0$_sourceMap) {
  86739. t6 = A.NullableExtension_andThen0(_2_0, $async$self.get$_async_evaluate0$_expressionNode());
  86740. t6 = t6 == null ? null : J.get$span$z(t6);
  86741. } else
  86742. t6 = null;
  86743. t2.addChild$1(A.ModifiableCssDeclaration$0($name, new A.CssValue0(value, t3, type$.CssValue_Value_2), t4, interleavedRules, t1, t5, t6));
  86744. } else if (J.startsWith$1$s($name.value, "--"))
  86745. throw A.wrapException($async$self._async_evaluate0$_exception$2("Custom property values may not be empty.", _2_0.get$span(_2_0)));
  86746. case 5:
  86747. // join
  86748. _3_0 = node.children;
  86749. _box_0.children = null;
  86750. $async$goto = _3_0 != null ? 7 : 8;
  86751. break;
  86752. case 7:
  86753. // then
  86754. _box_0.children = _3_0;
  86755. oldDeclarationName = $async$self._async_evaluate0$_declarationName;
  86756. $async$self._async_evaluate0$_declarationName = $name.value;
  86757. $async$goto = 9;
  86758. return A._asyncAwait($async$self._async_evaluate0$_environment.scope$1$2$when(new A._EvaluateVisitor_visitDeclaration_closure2(_box_0, $async$self), node.hasDeclarations, type$.Null), $async$visitDeclaration$1);
  86759. case 9:
  86760. // returning from await.
  86761. $async$self._async_evaluate0$_declarationName = oldDeclarationName;
  86762. case 8:
  86763. // join
  86764. $async$returnValue = null;
  86765. // goto return
  86766. $async$goto = 1;
  86767. break;
  86768. case 1:
  86769. // return
  86770. return A._asyncReturn($async$returnValue, $async$completer);
  86771. }
  86772. });
  86773. return A._asyncStartSync($async$visitDeclaration$1, $async$completer);
  86774. },
  86775. visitEachRule$1(_, node) {
  86776. return this.visitEachRule$body$_EvaluateVisitor0(0, node);
  86777. },
  86778. visitEachRule$body$_EvaluateVisitor0(_, node) {
  86779. var $async$goto = 0,
  86780. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  86781. $async$returnValue, $async$self = this, _box_0, t1, list, nodeWithSpan, _0_0;
  86782. var $async$visitEachRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  86783. if ($async$errorCode === 1)
  86784. return A._asyncRethrow($async$result, $async$completer);
  86785. while (true)
  86786. switch ($async$goto) {
  86787. case 0:
  86788. // Function start
  86789. _box_0 = {};
  86790. t1 = node.list;
  86791. $async$goto = 3;
  86792. return A._asyncAwait(t1.accept$1($async$self), $async$visitEachRule$1);
  86793. case 3:
  86794. // returning from await.
  86795. list = $async$result;
  86796. nodeWithSpan = $async$self._async_evaluate0$_expressionNode$1(t1);
  86797. _0_0 = node.variables;
  86798. $label0$0: {
  86799. _box_0.variable = null;
  86800. if (_0_0.length === 1) {
  86801. _box_0.variable = _0_0[0];
  86802. t1 = new A._EvaluateVisitor_visitEachRule_closure8(_box_0, $async$self, nodeWithSpan);
  86803. break $label0$0;
  86804. }
  86805. _box_0.variables = null;
  86806. _box_0.variables = _0_0;
  86807. t1 = new A._EvaluateVisitor_visitEachRule_closure9(_box_0, $async$self, nodeWithSpan);
  86808. break $label0$0;
  86809. }
  86810. $async$returnValue = $async$self._async_evaluate0$_environment.scope$1$2$semiGlobal(new A._EvaluateVisitor_visitEachRule_closure10($async$self, list, t1, node), true, type$.nullable_Value_2);
  86811. // goto return
  86812. $async$goto = 1;
  86813. break;
  86814. case 1:
  86815. // return
  86816. return A._asyncReturn($async$returnValue, $async$completer);
  86817. }
  86818. });
  86819. return A._asyncStartSync($async$visitEachRule$1, $async$completer);
  86820. },
  86821. _async_evaluate0$_setMultipleVariables$3(variables, value, nodeWithSpan) {
  86822. var i,
  86823. list = value.get$asList(),
  86824. t1 = variables.length,
  86825. minLength = Math.min(t1, list.length);
  86826. for (i = 0; i < minLength; ++i)
  86827. this._async_evaluate0$_environment.setLocalVariable$3(variables[i], this._async_evaluate0$_withoutSlash$2(list[i], nodeWithSpan), nodeWithSpan);
  86828. for (i = minLength; i < t1; ++i)
  86829. this._async_evaluate0$_environment.setLocalVariable$3(variables[i], B.C__SassNull0, nodeWithSpan);
  86830. },
  86831. visitErrorRule$1(_, node) {
  86832. return this.visitErrorRule$body$_EvaluateVisitor0(0, node);
  86833. },
  86834. visitErrorRule$body$_EvaluateVisitor0(_, node) {
  86835. var $async$goto = 0,
  86836. $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
  86837. $async$self = this, $async$temp1, $async$temp2;
  86838. var $async$visitErrorRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  86839. if ($async$errorCode === 1)
  86840. return A._asyncRethrow($async$result, $async$completer);
  86841. while (true)
  86842. switch ($async$goto) {
  86843. case 0:
  86844. // Function start
  86845. $async$temp1 = A;
  86846. $async$temp2 = J;
  86847. $async$goto = 2;
  86848. return A._asyncAwait(node.expression.accept$1($async$self), $async$visitErrorRule$1);
  86849. case 2:
  86850. // returning from await.
  86851. throw $async$temp1.wrapException($async$self._async_evaluate0$_exception$2($async$temp2.toString$0$($async$result), node.span));
  86852. // implicit return
  86853. return A._asyncReturn(null, $async$completer);
  86854. }
  86855. });
  86856. return A._asyncStartSync($async$visitErrorRule$1, $async$completer);
  86857. },
  86858. visitExtendRule$1(_, node) {
  86859. return this.visitExtendRule$body$_EvaluateVisitor0(0, node);
  86860. },
  86861. visitExtendRule$body$_EvaluateVisitor0(_, node) {
  86862. var $async$goto = 0,
  86863. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  86864. $async$returnValue, $async$self = this, t1, t2, t3, t4, t5, _i, complex, visitor, t6, t7, _0_0, targetText, targetMap, compound, styleRule;
  86865. var $async$visitExtendRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  86866. if ($async$errorCode === 1)
  86867. return A._asyncRethrow($async$result, $async$completer);
  86868. while (true)
  86869. switch ($async$goto) {
  86870. case 0:
  86871. // Function start
  86872. styleRule = $async$self._async_evaluate0$_atRootExcludingStyleRule ? null : $async$self._async_evaluate0$_styleRuleIgnoringAtRoot;
  86873. if (styleRule == null || $async$self._async_evaluate0$_declarationName != null)
  86874. throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.x40exten, node.span));
  86875. for (t1 = styleRule.originalSelector.components, t2 = t1.length, t3 = node.span, t4 = type$.SourceSpan, t5 = type$.String, _i = 0; _i < t2; ++_i) {
  86876. complex = t1[_i];
  86877. if (!complex.accept$1(B._IsBogusVisitor_true0))
  86878. continue;
  86879. visitor = A._SerializeVisitor$0(null, true, null, null, true, false, null, true);
  86880. complex.accept$1(visitor);
  86881. t6 = B.JSString_methods.trim$0(visitor._serialize0$_buffer.toString$0(0));
  86882. t7 = complex.accept$1(B.C__IsUselessVisitor0) ? "can't" : "shouldn't";
  86883. $async$self._async_evaluate0$_warn$3('The selector "' + t6 + '" is invalid CSS and ' + t7 + string$.x20be_an, new A.MultiSpan0(A.SpanExtensions_trimRight0(complex.span), "invalid selector", A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_literal([t3, "@extend rule"], t4, t5), t4, t5)), B.Deprecation_bh9);
  86884. }
  86885. $async$goto = 3;
  86886. return A._asyncAwait($async$self._async_evaluate0$_performInterpolationWithMap$2$warnForColor(node.selector, true), $async$visitExtendRule$1);
  86887. case 3:
  86888. // returning from await.
  86889. _0_0 = $async$result;
  86890. targetText = _0_0._0;
  86891. targetMap = _0_0._1;
  86892. for (t1 = A.SelectorList_SelectorList$parse0(A.trimAscii0(targetText, true), false, targetMap, false).components, t2 = t1.length, t3 = styleRule._style_rule0$_selector._box0$_inner, _i = 0; _i < t2; ++_i) {
  86893. complex = t1[_i];
  86894. compound = complex.get$singleCompound();
  86895. if (compound == null)
  86896. throw A.wrapException(A.SassFormatException$0("complex selectors may not be extended.", complex.span, null));
  86897. t4 = compound.components;
  86898. t5 = t4.length === 1 ? B.JSArray_methods.get$first(t4) : null;
  86899. if (t5 == null)
  86900. throw A.wrapException(A.SassFormatException$0(string$.compou + B.JSArray_methods.join$1(t4, ", ") + string$.x60_inst, compound.span, null));
  86901. $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__extensionStore, "_extensionStore").addExtension$4(t3.value, t5, node, $async$self._async_evaluate0$_mediaQueries);
  86902. }
  86903. $async$returnValue = null;
  86904. // goto return
  86905. $async$goto = 1;
  86906. break;
  86907. case 1:
  86908. // return
  86909. return A._asyncReturn($async$returnValue, $async$completer);
  86910. }
  86911. });
  86912. return A._asyncStartSync($async$visitExtendRule$1, $async$completer);
  86913. },
  86914. visitAtRule$1(_, node) {
  86915. return this.visitAtRule$body$_EvaluateVisitor0(0, node);
  86916. },
  86917. visitAtRule$body$_EvaluateVisitor0(_, node) {
  86918. var $async$goto = 0,
  86919. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  86920. $async$returnValue, $async$self = this, $name, t1, value, children, wasInKeyframes, wasInUnknownAtRule;
  86921. var $async$visitAtRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  86922. if ($async$errorCode === 1)
  86923. return A._asyncRethrow($async$result, $async$completer);
  86924. while (true)
  86925. switch ($async$goto) {
  86926. case 0:
  86927. // Function start
  86928. if ($async$self._async_evaluate0$_declarationName != null)
  86929. throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.At_rul, node.span));
  86930. $async$goto = 3;
  86931. return A._asyncAwait($async$self._async_evaluate0$_interpolationToValue$1(node.name), $async$visitAtRule$1);
  86932. case 3:
  86933. // returning from await.
  86934. $name = $async$result;
  86935. t1 = A.NullableExtension_andThen0(node.value, new A._EvaluateVisitor_visitAtRule_closure8($async$self));
  86936. $async$goto = 4;
  86937. return A._asyncAwait(type$.Future_nullable_CssValue_String_2._is(t1) ? t1 : A._Future$value(t1, type$.nullable_CssValue_String_2), $async$visitAtRule$1);
  86938. case 4:
  86939. // returning from await.
  86940. value = $async$result;
  86941. children = node.children;
  86942. if (children == null) {
  86943. $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent").addChild$1(A.ModifiableCssAtRule$0($name, node.span, true, value));
  86944. $async$returnValue = null;
  86945. // goto return
  86946. $async$goto = 1;
  86947. break;
  86948. }
  86949. wasInKeyframes = $async$self._async_evaluate0$_inKeyframes;
  86950. wasInUnknownAtRule = $async$self._async_evaluate0$_inUnknownAtRule;
  86951. if (A.unvendor0($name.value) === "keyframes")
  86952. $async$self._async_evaluate0$_inKeyframes = true;
  86953. else
  86954. $async$self._async_evaluate0$_inUnknownAtRule = true;
  86955. $async$goto = 5;
  86956. return A._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(A.ModifiableCssAtRule$0($name, node.span, false, value), new A._EvaluateVisitor_visitAtRule_closure9($async$self, $name, children), node.hasDeclarations, new A._EvaluateVisitor_visitAtRule_closure10(), type$.ModifiableCssAtRule_2, type$.Null), $async$visitAtRule$1);
  86957. case 5:
  86958. // returning from await.
  86959. $async$self._async_evaluate0$_inUnknownAtRule = wasInUnknownAtRule;
  86960. $async$self._async_evaluate0$_inKeyframes = wasInKeyframes;
  86961. $async$returnValue = null;
  86962. // goto return
  86963. $async$goto = 1;
  86964. break;
  86965. case 1:
  86966. // return
  86967. return A._asyncReturn($async$returnValue, $async$completer);
  86968. }
  86969. });
  86970. return A._asyncStartSync($async$visitAtRule$1, $async$completer);
  86971. },
  86972. visitForRule$1(_, node) {
  86973. return this.visitForRule$body$_EvaluateVisitor0(0, node);
  86974. },
  86975. visitForRule$body$_EvaluateVisitor0(_, node) {
  86976. var $async$goto = 0,
  86977. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  86978. $async$returnValue, $async$self = this, t1, t2, t3, fromNumber, t4, toNumber, from, to, direction;
  86979. var $async$visitForRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  86980. if ($async$errorCode === 1)
  86981. return A._asyncRethrow($async$result, $async$completer);
  86982. while (true)
  86983. switch ($async$goto) {
  86984. case 0:
  86985. // Function start
  86986. t1 = {};
  86987. t2 = node.from;
  86988. t3 = type$.SassNumber_2;
  86989. $async$goto = 3;
  86990. return A._asyncAwait($async$self._async_evaluate0$_addExceptionSpanAsync$1$2(t2, new A._EvaluateVisitor_visitForRule_closure14($async$self, node), t3), $async$visitForRule$1);
  86991. case 3:
  86992. // returning from await.
  86993. fromNumber = $async$result;
  86994. t4 = node.to;
  86995. $async$goto = 4;
  86996. return A._asyncAwait($async$self._async_evaluate0$_addExceptionSpanAsync$1$2(t4, new A._EvaluateVisitor_visitForRule_closure15($async$self, node), t3), $async$visitForRule$1);
  86997. case 4:
  86998. // returning from await.
  86999. toNumber = $async$result;
  87000. from = $async$self._async_evaluate0$_addExceptionSpan$2(t2, new A._EvaluateVisitor_visitForRule_closure16(fromNumber));
  87001. to = t1.to = $async$self._async_evaluate0$_addExceptionSpan$2(t4, new A._EvaluateVisitor_visitForRule_closure17(toNumber, fromNumber));
  87002. direction = from > to ? -1 : 1;
  87003. if (from === (!node.isExclusive ? t1.to = to + direction : to)) {
  87004. $async$returnValue = null;
  87005. // goto return
  87006. $async$goto = 1;
  87007. break;
  87008. }
  87009. $async$returnValue = $async$self._async_evaluate0$_environment.scope$1$2$semiGlobal(new A._EvaluateVisitor_visitForRule_closure18(t1, $async$self, node, from, direction, fromNumber), true, type$.nullable_Value_2);
  87010. // goto return
  87011. $async$goto = 1;
  87012. break;
  87013. case 1:
  87014. // return
  87015. return A._asyncReturn($async$returnValue, $async$completer);
  87016. }
  87017. });
  87018. return A._asyncStartSync($async$visitForRule$1, $async$completer);
  87019. },
  87020. visitForwardRule$1(_, node) {
  87021. return this.visitForwardRule$body$_EvaluateVisitor0(0, node);
  87022. },
  87023. visitForwardRule$body$_EvaluateVisitor0(_, node) {
  87024. var $async$goto = 0,
  87025. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  87026. $async$returnValue, $async$self = this, newConfiguration, t4, _i, variable, $name, oldConfiguration, adjustedConfiguration, t1, t2, t3;
  87027. var $async$visitForwardRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  87028. if ($async$errorCode === 1)
  87029. return A._asyncRethrow($async$result, $async$completer);
  87030. while (true)
  87031. switch ($async$goto) {
  87032. case 0:
  87033. // Function start
  87034. oldConfiguration = $async$self._async_evaluate0$_configuration;
  87035. adjustedConfiguration = oldConfiguration.throughForward$1(node);
  87036. t1 = node.configuration;
  87037. t2 = t1.length;
  87038. t3 = node.url;
  87039. $async$goto = t2 !== 0 ? 3 : 5;
  87040. break;
  87041. case 3:
  87042. // then
  87043. $async$goto = 6;
  87044. return A._asyncAwait($async$self._async_evaluate0$_addForwardConfiguration$2(adjustedConfiguration, node), $async$visitForwardRule$1);
  87045. case 6:
  87046. // returning from await.
  87047. newConfiguration = $async$result;
  87048. $async$goto = 7;
  87049. return A._asyncAwait($async$self._async_evaluate0$_loadModule$5$configuration(t3, "@forward", node, new A._EvaluateVisitor_visitForwardRule_closure5($async$self, node), newConfiguration), $async$visitForwardRule$1);
  87050. case 7:
  87051. // returning from await.
  87052. t3 = type$.String;
  87053. t4 = A.LinkedHashSet_LinkedHashSet$_empty(t3);
  87054. for (_i = 0; _i < t2; ++_i) {
  87055. variable = t1[_i];
  87056. if (!variable.isGuarded)
  87057. t4.add$1(0, variable.name);
  87058. }
  87059. $async$self._async_evaluate0$_removeUsedConfiguration$3$except(adjustedConfiguration, newConfiguration, t4);
  87060. t3 = A.LinkedHashSet_LinkedHashSet$_empty(t3);
  87061. for (_i = 0; _i < t2; ++_i)
  87062. t3.add$1(0, t1[_i].name);
  87063. for (t1 = newConfiguration._configuration0$_values, t2 = J.toList$0$ax(t1.get$keys(t1)), t4 = t2.length, _i = 0; _i < t2.length; t2.length === t4 || (0, A.throwConcurrentModificationError)(t2), ++_i) {
  87064. $name = t2[_i];
  87065. if (!t3.contains$1(0, $name))
  87066. if (!t1.get$isEmpty(t1))
  87067. t1.remove$1(0, $name);
  87068. }
  87069. $async$self._async_evaluate0$_assertConfigurationIsEmpty$1(newConfiguration);
  87070. // goto join
  87071. $async$goto = 4;
  87072. break;
  87073. case 5:
  87074. // else
  87075. $async$self._async_evaluate0$_configuration = adjustedConfiguration;
  87076. $async$goto = 8;
  87077. return A._asyncAwait($async$self._async_evaluate0$_loadModule$4(t3, "@forward", node, new A._EvaluateVisitor_visitForwardRule_closure6($async$self, node)), $async$visitForwardRule$1);
  87078. case 8:
  87079. // returning from await.
  87080. $async$self._async_evaluate0$_configuration = oldConfiguration;
  87081. case 4:
  87082. // join
  87083. $async$returnValue = null;
  87084. // goto return
  87085. $async$goto = 1;
  87086. break;
  87087. case 1:
  87088. // return
  87089. return A._asyncReturn($async$returnValue, $async$completer);
  87090. }
  87091. });
  87092. return A._asyncStartSync($async$visitForwardRule$1, $async$completer);
  87093. },
  87094. _async_evaluate0$_addForwardConfiguration$2(configuration, node) {
  87095. return this._addForwardConfiguration$body$_EvaluateVisitor0(configuration, node);
  87096. },
  87097. _addForwardConfiguration$body$_EvaluateVisitor0(configuration, node) {
  87098. var $async$goto = 0,
  87099. $async$completer = A._makeAsyncAwaitCompleter(type$.Configuration_2),
  87100. $async$returnValue, $async$self = this, t2, t3, t4, t5, _i, variable, t6, oldValue, t7, variableNodeWithSpan, t8, t1, newValues, $async$temp1, $async$temp2, $async$temp3;
  87101. var $async$_async_evaluate0$_addForwardConfiguration$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  87102. if ($async$errorCode === 1)
  87103. return A._asyncRethrow($async$result, $async$completer);
  87104. while (true)
  87105. switch ($async$goto) {
  87106. case 0:
  87107. // Function start
  87108. t1 = configuration._configuration0$_values;
  87109. newValues = A.LinkedHashMap_LinkedHashMap$of(new A.UnmodifiableMapView(t1, type$.UnmodifiableMapView_String_ConfiguredValue_2), type$.String, type$.ConfiguredValue_2);
  87110. t2 = node.configuration, t3 = t2.length, t4 = type$._Future_Value_2, t5 = type$.Future_Value_2, _i = 0;
  87111. case 3:
  87112. // for condition
  87113. if (!(_i < t3)) {
  87114. // goto after for
  87115. $async$goto = 5;
  87116. break;
  87117. }
  87118. variable = t2[_i];
  87119. if (variable.isGuarded) {
  87120. t6 = variable.name;
  87121. oldValue = t1.get$isEmpty(t1) ? null : t1.remove$1(0, t6);
  87122. if (oldValue != null)
  87123. t7 = !oldValue.value.$eq(0, B.C__SassNull0);
  87124. else {
  87125. oldValue = null;
  87126. t7 = false;
  87127. }
  87128. if (t7) {
  87129. newValues.$indexSet(0, t6, oldValue);
  87130. // goto for update
  87131. $async$goto = 4;
  87132. break;
  87133. }
  87134. }
  87135. t6 = variable.expression;
  87136. variableNodeWithSpan = $async$self._async_evaluate0$_expressionNode$1(t6);
  87137. t7 = variable.name;
  87138. t6 = t6.accept$1($async$self);
  87139. if (!t5._is(t6)) {
  87140. t8 = new A._Future($.Zone__current, t4);
  87141. t8._state = 8;
  87142. t8._resultOrListeners = t6;
  87143. t6 = t8;
  87144. }
  87145. $async$temp1 = newValues;
  87146. $async$temp2 = t7;
  87147. $async$temp3 = A;
  87148. $async$goto = 6;
  87149. return A._asyncAwait(t6, $async$_async_evaluate0$_addForwardConfiguration$2);
  87150. case 6:
  87151. // returning from await.
  87152. $async$temp1.$indexSet(0, $async$temp2, new $async$temp3.ConfiguredValue0($async$self._async_evaluate0$_withoutSlash$2($async$result, variableNodeWithSpan), variable.span, variableNodeWithSpan));
  87153. case 4:
  87154. // for update
  87155. ++_i;
  87156. // goto for condition
  87157. $async$goto = 3;
  87158. break;
  87159. case 5:
  87160. // after for
  87161. if (configuration instanceof A.ExplicitConfiguration0 || t1.get$isEmpty(t1)) {
  87162. $async$returnValue = new A.ExplicitConfiguration0(node, newValues, null);
  87163. // goto return
  87164. $async$goto = 1;
  87165. break;
  87166. } else {
  87167. $async$returnValue = new A.Configuration0(newValues, null);
  87168. // goto return
  87169. $async$goto = 1;
  87170. break;
  87171. }
  87172. case 1:
  87173. // return
  87174. return A._asyncReturn($async$returnValue, $async$completer);
  87175. }
  87176. });
  87177. return A._asyncStartSync($async$_async_evaluate0$_addForwardConfiguration$2, $async$completer);
  87178. },
  87179. _async_evaluate0$_registerCommentsForModule$1(module) {
  87180. var _this = this, _s5_ = "_root",
  87181. t1 = _this._async_evaluate0$__root;
  87182. if (t1 == null)
  87183. return;
  87184. if (_this._async_evaluate0$_assertInModule$2(t1, _s5_).children.get$length(0) === 0 || !module.get$transitivelyContainsCss())
  87185. return;
  87186. t1 = _this._async_evaluate0$_preModuleComments;
  87187. if (t1 == null)
  87188. t1 = _this._async_evaluate0$_preModuleComments = A.LinkedHashMap_LinkedHashMap$_empty(type$.Module_AsyncCallable_2, type$.List_CssComment_2);
  87189. J.addAll$1$ax(t1.putIfAbsent$2(module, new A._EvaluateVisitor__registerCommentsForModule_closure2()), new A.UnmodifiableListView(J.cast$1$0$ax(_this._async_evaluate0$_assertInModule$2(_this._async_evaluate0$__root, _s5_).children._collection$_source, type$.CssComment_2), type$.UnmodifiableListView_CssComment_2));
  87190. _this._async_evaluate0$_assertInModule$2(_this._async_evaluate0$__root, _s5_).clearChildren$0();
  87191. _this._async_evaluate0$__endOfImports = 0;
  87192. },
  87193. _async_evaluate0$_removeUsedConfiguration$3$except(upstream, downstream, except) {
  87194. var t1, t2, t3, t4, _i, $name;
  87195. for (t1 = upstream._configuration0$_values, t2 = J.toList$0$ax(t1.get$keys(t1)), t3 = t2.length, t4 = downstream._configuration0$_values, _i = 0; _i < t2.length; t2.length === t3 || (0, A.throwConcurrentModificationError)(t2), ++_i) {
  87196. $name = t2[_i];
  87197. if (except.contains$1(0, $name))
  87198. continue;
  87199. if (!t4.containsKey$1($name))
  87200. if (!t1.get$isEmpty(t1))
  87201. t1.remove$1(0, $name);
  87202. }
  87203. },
  87204. _async_evaluate0$_assertConfigurationIsEmpty$2$nameInError(configuration, nameInError) {
  87205. var t1, _0_0, $name, value;
  87206. if (!(configuration instanceof A.ExplicitConfiguration0))
  87207. return;
  87208. t1 = configuration._configuration0$_values;
  87209. if (t1.get$isEmpty(t1))
  87210. return;
  87211. t1 = A.MapExtensions_get_pairs0(new A.UnmodifiableMapView(t1, type$.UnmodifiableMapView_String_ConfiguredValue_2), type$.String, type$.ConfiguredValue_2);
  87212. _0_0 = t1.get$first(t1);
  87213. $name = _0_0._0;
  87214. value = _0_0._1;
  87215. t1 = nameInError ? "$" + $name + string$.x20was_n : string$.This_v;
  87216. throw A.wrapException(this._async_evaluate0$_exception$2(t1, value.configurationSpan));
  87217. },
  87218. _async_evaluate0$_assertConfigurationIsEmpty$1(configuration) {
  87219. return this._async_evaluate0$_assertConfigurationIsEmpty$2$nameInError(configuration, false);
  87220. },
  87221. visitFunctionRule$1(_, node) {
  87222. return this.visitFunctionRule$body$_EvaluateVisitor0(0, node);
  87223. },
  87224. visitFunctionRule$body$_EvaluateVisitor0(_, node) {
  87225. var $async$goto = 0,
  87226. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  87227. $async$returnValue, $async$self = this, t1, t2, t3, t4, index, t5;
  87228. var $async$visitFunctionRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  87229. if ($async$errorCode === 1)
  87230. return A._asyncRethrow($async$result, $async$completer);
  87231. while (true)
  87232. switch ($async$goto) {
  87233. case 0:
  87234. // Function start
  87235. t1 = $async$self._async_evaluate0$_environment;
  87236. t2 = t1.closure$0();
  87237. t3 = $async$self._async_evaluate0$_inDependency;
  87238. t4 = t1._async_environment0$_functions;
  87239. index = t4.length - 1;
  87240. t5 = node.name;
  87241. t1._async_environment0$_functionIndices.$indexSet(0, t5, index);
  87242. J.$indexSet$ax(t4[index], t5, new A.UserDefinedCallable0(node, t2, t3, type$.UserDefinedCallable_AsyncEnvironment_2));
  87243. $async$returnValue = null;
  87244. // goto return
  87245. $async$goto = 1;
  87246. break;
  87247. case 1:
  87248. // return
  87249. return A._asyncReturn($async$returnValue, $async$completer);
  87250. }
  87251. });
  87252. return A._asyncStartSync($async$visitFunctionRule$1, $async$completer);
  87253. },
  87254. visitIfRule$1(_, node) {
  87255. return this.visitIfRule$body$_EvaluateVisitor0(0, node);
  87256. },
  87257. visitIfRule$body$_EvaluateVisitor0(_, node) {
  87258. var $async$goto = 0,
  87259. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  87260. $async$returnValue, $async$self = this, t1, t2, _i, clauseToCheck, clause;
  87261. var $async$visitIfRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  87262. if ($async$errorCode === 1)
  87263. return A._asyncRethrow($async$result, $async$completer);
  87264. while (true)
  87265. switch ($async$goto) {
  87266. case 0:
  87267. // Function start
  87268. clause = node.lastClause;
  87269. t1 = node.clauses, t2 = t1.length, _i = 0;
  87270. case 3:
  87271. // for condition
  87272. if (!(_i < t2)) {
  87273. // goto after for
  87274. $async$goto = 5;
  87275. break;
  87276. }
  87277. clauseToCheck = t1[_i];
  87278. $async$goto = 6;
  87279. return A._asyncAwait(clauseToCheck.expression.accept$1($async$self), $async$visitIfRule$1);
  87280. case 6:
  87281. // returning from await.
  87282. if ($async$result.get$isTruthy()) {
  87283. clause = clauseToCheck;
  87284. // goto after for
  87285. $async$goto = 5;
  87286. break;
  87287. }
  87288. case 4:
  87289. // for update
  87290. ++_i;
  87291. // goto for condition
  87292. $async$goto = 3;
  87293. break;
  87294. case 5:
  87295. // after for
  87296. t1 = A.NullableExtension_andThen0(clause, new A._EvaluateVisitor_visitIfRule_closure2($async$self));
  87297. $async$goto = 7;
  87298. return A._asyncAwait(type$.Future_nullable_Value_2._is(t1) ? t1 : A._Future$value(t1, type$.nullable_Value_2), $async$visitIfRule$1);
  87299. case 7:
  87300. // returning from await.
  87301. $async$returnValue = $async$result;
  87302. // goto return
  87303. $async$goto = 1;
  87304. break;
  87305. case 1:
  87306. // return
  87307. return A._asyncReturn($async$returnValue, $async$completer);
  87308. }
  87309. });
  87310. return A._asyncStartSync($async$visitIfRule$1, $async$completer);
  87311. },
  87312. visitImportRule$1(_, node) {
  87313. return this.visitImportRule$body$_EvaluateVisitor0(0, node);
  87314. },
  87315. visitImportRule$body$_EvaluateVisitor0(_, node) {
  87316. var $async$goto = 0,
  87317. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  87318. $async$returnValue, $async$self = this, t1, t2, t3, _i, $import;
  87319. var $async$visitImportRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  87320. if ($async$errorCode === 1)
  87321. return A._asyncRethrow($async$result, $async$completer);
  87322. while (true)
  87323. switch ($async$goto) {
  87324. case 0:
  87325. // Function start
  87326. t1 = node.imports, t2 = t1.length, t3 = type$.StaticImport_2, _i = 0;
  87327. case 3:
  87328. // for condition
  87329. if (!(_i < t2)) {
  87330. // goto after for
  87331. $async$goto = 5;
  87332. break;
  87333. }
  87334. $import = t1[_i];
  87335. $async$goto = $import instanceof A.DynamicImport0 ? 6 : 8;
  87336. break;
  87337. case 6:
  87338. // then
  87339. $async$goto = 9;
  87340. return A._asyncAwait($async$self._async_evaluate0$_visitDynamicImport$1($import), $async$visitImportRule$1);
  87341. case 9:
  87342. // returning from await.
  87343. // goto join
  87344. $async$goto = 7;
  87345. break;
  87346. case 8:
  87347. // else
  87348. $async$goto = 10;
  87349. return A._asyncAwait($async$self._async_evaluate0$_visitStaticImport$1(t3._as($import)), $async$visitImportRule$1);
  87350. case 10:
  87351. // returning from await.
  87352. case 7:
  87353. // join
  87354. case 4:
  87355. // for update
  87356. ++_i;
  87357. // goto for condition
  87358. $async$goto = 3;
  87359. break;
  87360. case 5:
  87361. // after for
  87362. $async$returnValue = null;
  87363. // goto return
  87364. $async$goto = 1;
  87365. break;
  87366. case 1:
  87367. // return
  87368. return A._asyncReturn($async$returnValue, $async$completer);
  87369. }
  87370. });
  87371. return A._asyncStartSync($async$visitImportRule$1, $async$completer);
  87372. },
  87373. _async_evaluate0$_visitDynamicImport$1($import) {
  87374. return this._async_evaluate0$_withStackFrame$1$3("@import", $import, new A._EvaluateVisitor__visitDynamicImport_closure2(this, $import), type$.void);
  87375. },
  87376. _async_evaluate0$_loadStylesheet$4$baseUrl$forImport(url, span, baseUrl, forImport) {
  87377. return this._loadStylesheet$body$_EvaluateVisitor0(url, span, baseUrl, forImport);
  87378. },
  87379. _async_evaluate0$_loadStylesheet$3$baseUrl(url, span, baseUrl) {
  87380. return this._async_evaluate0$_loadStylesheet$4$baseUrl$forImport(url, span, baseUrl, false);
  87381. },
  87382. _async_evaluate0$_loadStylesheet$3$forImport(url, span, forImport) {
  87383. return this._async_evaluate0$_loadStylesheet$4$baseUrl$forImport(url, span, null, forImport);
  87384. },
  87385. _loadStylesheet$body$_EvaluateVisitor0(url, span, baseUrl, forImport) {
  87386. var $async$goto = 0,
  87387. $async$completer = A._makeAsyncAwaitCompleter(type$.Record_3_Stylesheet_and_nullable_AsyncImporter_importer_and_bool_isDependency_2),
  87388. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, _0_0, importCache, _1_0, importer, canonicalUrl, originalUrl, isDependency, _2_0, stylesheet, _3_0, result, error, stackTrace, error0, stackTrace0, t1, t2, exception, $async$exception;
  87389. var $async$_async_evaluate0$_loadStylesheet$4$baseUrl$forImport = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  87390. if ($async$errorCode === 1) {
  87391. $async$currentError = $async$result;
  87392. $async$goto = $async$handler;
  87393. }
  87394. while (true)
  87395. switch ($async$goto) {
  87396. case 0:
  87397. // Function start
  87398. baseUrl = baseUrl;
  87399. $async$handler = 4;
  87400. $async$self._async_evaluate0$_importSpan = span;
  87401. _0_0 = $async$self._async_evaluate0$_importCache;
  87402. importCache = null;
  87403. $async$goto = _0_0 != null ? 7 : 8;
  87404. break;
  87405. case 7:
  87406. // then
  87407. importCache = _0_0;
  87408. if (baseUrl == null)
  87409. baseUrl = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__stylesheet, "_stylesheet").span.file.url;
  87410. $async$goto = 9;
  87411. return A._asyncAwait(J.canonicalize$4$baseImporter$baseUrl$forImport$x(importCache, A.Uri_parse(url), $async$self._async_evaluate0$_importer, baseUrl, forImport), $async$_async_evaluate0$_loadStylesheet$4$baseUrl$forImport);
  87412. case 9:
  87413. // returning from await.
  87414. _1_0 = $async$result;
  87415. importer = null;
  87416. canonicalUrl = null;
  87417. originalUrl = null;
  87418. $async$goto = type$.Record_3_nullable_Object_and_nullable_Object_and_nullable_Object_originalUrl._is(_1_0) ? 10 : 11;
  87419. break;
  87420. case 10:
  87421. // then
  87422. importer = _1_0._0;
  87423. canonicalUrl = _1_0._1;
  87424. originalUrl = _1_0._2;
  87425. if (canonicalUrl.get$scheme() === "")
  87426. A.WarnForDeprecation_warnForDeprecation0($async$self._async_evaluate0$_logger, B.Deprecation_fXI, "Importer " + A.S(importer) + " canonicalized " + url + " to " + A.S(canonicalUrl) + string$.x2e_Rela, null, null);
  87427. $async$self._async_evaluate0$_loadedUrls.add$1(0, canonicalUrl);
  87428. isDependency = $async$self._async_evaluate0$_inDependency || !J.$eq$(importer, $async$self._async_evaluate0$_importer);
  87429. $async$goto = 12;
  87430. return A._asyncAwait(importCache.importCanonical$3$originalUrl(importer, canonicalUrl, originalUrl), $async$_async_evaluate0$_loadStylesheet$4$baseUrl$forImport);
  87431. case 12:
  87432. // returning from await.
  87433. _2_0 = $async$result;
  87434. stylesheet = null;
  87435. if (_2_0 != null) {
  87436. stylesheet = _2_0;
  87437. t1 = stylesheet;
  87438. t2 = importer;
  87439. $async$returnValue = new A._Record_3_importer_isDependency(t1, t2, isDependency);
  87440. $async$next = [1];
  87441. // goto finally
  87442. $async$goto = 5;
  87443. break;
  87444. }
  87445. case 11:
  87446. // join
  87447. case 8:
  87448. // join
  87449. $async$goto = $async$self._async_evaluate0$_nodeImporter != null ? 13 : 14;
  87450. break;
  87451. case 13:
  87452. // then
  87453. t1 = baseUrl;
  87454. $async$goto = 15;
  87455. return A._asyncAwait($async$self._async_evaluate0$_importLikeNode$3(url, t1 == null ? $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__stylesheet, "_stylesheet").span.file.url : t1, forImport), $async$_async_evaluate0$_loadStylesheet$4$baseUrl$forImport);
  87456. case 15:
  87457. // returning from await.
  87458. _3_0 = $async$result;
  87459. result = null;
  87460. if (_3_0 != null) {
  87461. result = _3_0;
  87462. t1 = $async$self._async_evaluate0$_loadedUrls;
  87463. A.NullableExtension_andThen0(result._0.span.file.url, t1.get$add(t1));
  87464. t1 = result;
  87465. $async$returnValue = t1;
  87466. $async$next = [1];
  87467. // goto finally
  87468. $async$goto = 5;
  87469. break;
  87470. }
  87471. case 14:
  87472. // join
  87473. t1 = B.JSString_methods.startsWith$1(url, "package:");
  87474. if (t1)
  87475. throw A.wrapException(string$.x22packa);
  87476. else
  87477. throw A.wrapException("Can't find stylesheet to import.");
  87478. $async$next.push(6);
  87479. // goto finally
  87480. $async$goto = 5;
  87481. break;
  87482. case 4:
  87483. // catch
  87484. $async$handler = 3;
  87485. $async$exception = $async$currentError;
  87486. t1 = A.unwrapException($async$exception);
  87487. if (t1 instanceof A.SassException0)
  87488. throw $async$exception;
  87489. else if (t1 instanceof A.ArgumentError) {
  87490. error = t1;
  87491. stackTrace = A.getTraceFromException($async$exception);
  87492. A.throwWithTrace0($async$self._async_evaluate0$_exception$1(J.toString$0$(error)), error, stackTrace);
  87493. } else {
  87494. error0 = t1;
  87495. stackTrace0 = A.getTraceFromException($async$exception);
  87496. A.throwWithTrace0($async$self._async_evaluate0$_exception$1($async$self._async_evaluate0$_getErrorMessage$1(error0)), error0, stackTrace0);
  87497. }
  87498. $async$next.push(6);
  87499. // goto finally
  87500. $async$goto = 5;
  87501. break;
  87502. case 3:
  87503. // uncaught
  87504. $async$next = [2];
  87505. case 5:
  87506. // finally
  87507. $async$handler = 2;
  87508. $async$self._async_evaluate0$_importSpan = null;
  87509. // goto the next finally handler
  87510. $async$goto = $async$next.pop();
  87511. break;
  87512. case 6:
  87513. // after finally
  87514. case 1:
  87515. // return
  87516. return A._asyncReturn($async$returnValue, $async$completer);
  87517. case 2:
  87518. // rethrow
  87519. return A._asyncRethrow($async$currentError, $async$completer);
  87520. }
  87521. });
  87522. return A._asyncStartSync($async$_async_evaluate0$_loadStylesheet$4$baseUrl$forImport, $async$completer);
  87523. },
  87524. _async_evaluate0$_importLikeNode$3(originalUrl, previous, forImport) {
  87525. return this._importLikeNode$body$_EvaluateVisitor(originalUrl, previous, forImport);
  87526. },
  87527. _importLikeNode$body$_EvaluateVisitor(originalUrl, previous, forImport) {
  87528. var $async$goto = 0,
  87529. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Record_3_Stylesheet_and_nullable_AsyncImporter_importer_and_bool_isDependency),
  87530. $async$returnValue, $async$self = this, isDependency, url, t1, result;
  87531. var $async$_async_evaluate0$_importLikeNode$3 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  87532. if ($async$errorCode === 1)
  87533. return A._asyncRethrow($async$result, $async$completer);
  87534. while (true)
  87535. switch ($async$goto) {
  87536. case 0:
  87537. // Function start
  87538. t1 = $async$self._async_evaluate0$_nodeImporter;
  87539. result = t1.loadRelative$3(originalUrl, previous, forImport);
  87540. $async$goto = result != null ? 3 : 5;
  87541. break;
  87542. case 3:
  87543. // then
  87544. isDependency = $async$self._async_evaluate0$_inDependency;
  87545. // goto join
  87546. $async$goto = 4;
  87547. break;
  87548. case 5:
  87549. // else
  87550. $async$goto = 6;
  87551. return A._asyncAwait(t1.loadAsync$3(originalUrl, previous, forImport), $async$_async_evaluate0$_importLikeNode$3);
  87552. case 6:
  87553. // returning from await.
  87554. result = $async$result;
  87555. if (result == null) {
  87556. $async$returnValue = null;
  87557. // goto return
  87558. $async$goto = 1;
  87559. break;
  87560. }
  87561. isDependency = true;
  87562. case 4:
  87563. // join
  87564. url = result._1;
  87565. t1 = B.JSString_methods.startsWith$1(url, "file") ? A.Syntax_forPath0(url) : B.Syntax_SCSS_scss0;
  87566. $async$returnValue = new A._Record_3_importer_isDependency(A.Stylesheet_Stylesheet$parse0(result._0, t1, url), null, isDependency);
  87567. // goto return
  87568. $async$goto = 1;
  87569. break;
  87570. case 1:
  87571. // return
  87572. return A._asyncReturn($async$returnValue, $async$completer);
  87573. }
  87574. });
  87575. return A._asyncStartSync($async$_async_evaluate0$_importLikeNode$3, $async$completer);
  87576. },
  87577. _async_evaluate0$_visitStaticImport$1($import) {
  87578. return this._visitStaticImport$body$_EvaluateVisitor0($import);
  87579. },
  87580. _visitStaticImport$body$_EvaluateVisitor0($import) {
  87581. var $async$goto = 0,
  87582. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  87583. $async$self = this, t1, t2, node, $async$temp1, $async$temp2;
  87584. var $async$_async_evaluate0$_visitStaticImport$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  87585. if ($async$errorCode === 1)
  87586. return A._asyncRethrow($async$result, $async$completer);
  87587. while (true)
  87588. switch ($async$goto) {
  87589. case 0:
  87590. // Function start
  87591. $async$goto = 2;
  87592. return A._asyncAwait($async$self._async_evaluate0$_interpolationToValue$1($import.url), $async$_async_evaluate0$_visitStaticImport$1);
  87593. case 2:
  87594. // returning from await.
  87595. t1 = $async$result;
  87596. t2 = A.NullableExtension_andThen0($import.modifiers, $async$self.get$_async_evaluate0$_interpolationToValue());
  87597. $async$temp1 = A;
  87598. $async$temp2 = t1;
  87599. $async$goto = 3;
  87600. return A._asyncAwait(type$.Future_nullable_CssValue_String_2._is(t2) ? t2 : A._Future$value(t2, type$.nullable_CssValue_String_2), $async$_async_evaluate0$_visitStaticImport$1);
  87601. case 3:
  87602. // returning from await.
  87603. node = new $async$temp1.ModifiableCssImport0($async$temp2, $async$result, $import.span);
  87604. if ($async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent") !== $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__root, "_root"))
  87605. $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent").addChild$1(node);
  87606. else if ($async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__endOfImports, "_endOfImports") === J.get$length$asx($async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__root, "_root").children._collection$_source)) {
  87607. $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__root, "_root").addChild$1(node);
  87608. $async$self._async_evaluate0$__endOfImports = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__endOfImports, "_endOfImports") + 1;
  87609. } else {
  87610. t1 = $async$self._async_evaluate0$_outOfOrderImports;
  87611. (t1 == null ? $async$self._async_evaluate0$_outOfOrderImports = A._setArrayType([], type$.JSArray_ModifiableCssImport_2) : t1).push(node);
  87612. }
  87613. // implicit return
  87614. return A._asyncReturn(null, $async$completer);
  87615. }
  87616. });
  87617. return A._asyncStartSync($async$_async_evaluate0$_visitStaticImport$1, $async$completer);
  87618. },
  87619. _async_evaluate0$_applyMixin$5(mixin, contentCallable, $arguments, nodeWithSpan, nodeWithSpanWithoutContent) {
  87620. return this._applyMixin$body$_EvaluateVisitor0(mixin, contentCallable, $arguments, nodeWithSpan, nodeWithSpanWithoutContent);
  87621. },
  87622. _applyMixin$body$_EvaluateVisitor0(mixin, contentCallable, $arguments, nodeWithSpan, nodeWithSpanWithoutContent) {
  87623. var $async$goto = 0,
  87624. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  87625. $async$self = this, t1, _0_0, t2, _1_8;
  87626. var $async$_async_evaluate0$_applyMixin$5 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  87627. if ($async$errorCode === 1)
  87628. return A._asyncRethrow($async$result, $async$completer);
  87629. while (true)
  87630. switch ($async$goto) {
  87631. case 0:
  87632. // Function start
  87633. if (mixin == null)
  87634. throw A.wrapException($async$self._async_evaluate0$_exception$2("Undefined mixin.", nodeWithSpan.get$span(nodeWithSpan)));
  87635. t1 = type$.AsyncBuiltInCallable_2._is(mixin);
  87636. $async$goto = t1 && !mixin.get$acceptsContent() && contentCallable != null ? 3 : 4;
  87637. break;
  87638. case 3:
  87639. // then
  87640. $async$goto = 5;
  87641. return A._asyncAwait($async$self._async_evaluate0$_evaluateArguments$1($arguments), $async$_async_evaluate0$_applyMixin$5);
  87642. case 5:
  87643. // returning from await.
  87644. t1 = $async$result._values;
  87645. _0_0 = mixin.callbackFor$2(J.get$length$asx(t1[2]), new A.MapKeySet(t1[0], type$.MapKeySet_String));
  87646. throw A.wrapException(A.MultiSpanSassRuntimeException$0("Mixin doesn't accept a content block.", nodeWithSpanWithoutContent.get$span(nodeWithSpanWithoutContent), "invocation", A.LinkedHashMap_LinkedHashMap$_literal([_0_0._0.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), $async$self._async_evaluate0$_stackTrace$1(nodeWithSpanWithoutContent.get$span(nodeWithSpanWithoutContent)), null));
  87647. case 4:
  87648. // join
  87649. $async$goto = t1 ? 6 : 7;
  87650. break;
  87651. case 6:
  87652. // then
  87653. $async$goto = 8;
  87654. return A._asyncAwait($async$self._async_evaluate0$_environment.withContent$2(contentCallable, new A._EvaluateVisitor__applyMixin_closure5($async$self, $arguments, mixin, nodeWithSpanWithoutContent)), $async$_async_evaluate0$_applyMixin$5);
  87655. case 8:
  87656. // returning from await.
  87657. // goto break $label0$0
  87658. $async$goto = 2;
  87659. break;
  87660. case 7:
  87661. // join
  87662. t1 = type$.UserDefinedCallable_AsyncEnvironment_2._is(mixin);
  87663. t2 = false;
  87664. if (t1) {
  87665. _1_8 = mixin.declaration;
  87666. if (_1_8 instanceof A.MixinRule0)
  87667. t2 = !type$.MixinRule_2._as(_1_8).get$hasContent() && contentCallable != null;
  87668. }
  87669. if (t2)
  87670. throw A.wrapException(A.MultiSpanSassRuntimeException$0("Mixin doesn't accept a content block.", nodeWithSpanWithoutContent.get$span(nodeWithSpanWithoutContent), "invocation", A.LinkedHashMap_LinkedHashMap$_literal([mixin.declaration.$arguments.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), $async$self._async_evaluate0$_stackTrace$1(nodeWithSpanWithoutContent.get$span(nodeWithSpanWithoutContent)), null));
  87671. $async$goto = t1 ? 9 : 10;
  87672. break;
  87673. case 9:
  87674. // then
  87675. $async$goto = 11;
  87676. return A._asyncAwait($async$self._async_evaluate0$_runUserDefinedCallable$1$4($arguments, mixin, nodeWithSpanWithoutContent, new A._EvaluateVisitor__applyMixin_closure6($async$self, contentCallable, mixin, nodeWithSpanWithoutContent), type$.Null), $async$_async_evaluate0$_applyMixin$5);
  87677. case 11:
  87678. // returning from await.
  87679. // goto break $label0$0
  87680. $async$goto = 2;
  87681. break;
  87682. case 10:
  87683. // join
  87684. throw A.wrapException(A.UnsupportedError$("Unknown callable type " + mixin.toString$0(0) + "."));
  87685. case 2:
  87686. // break $label0$0
  87687. // implicit return
  87688. return A._asyncReturn(null, $async$completer);
  87689. }
  87690. });
  87691. return A._asyncStartSync($async$_async_evaluate0$_applyMixin$5, $async$completer);
  87692. },
  87693. visitIncludeRule$1(_, node) {
  87694. return this.visitIncludeRule$body$_EvaluateVisitor0(0, node);
  87695. },
  87696. visitIncludeRule$body$_EvaluateVisitor0(_, node) {
  87697. var $async$goto = 0,
  87698. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  87699. $async$returnValue, $async$self = this, mixin;
  87700. var $async$visitIncludeRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  87701. if ($async$errorCode === 1)
  87702. return A._asyncRethrow($async$result, $async$completer);
  87703. while (true)
  87704. switch ($async$goto) {
  87705. case 0:
  87706. // Function start
  87707. mixin = $async$self._async_evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitIncludeRule_closure8($async$self, node));
  87708. if (B.JSString_methods.startsWith$1(node.originalName, "--") && mixin instanceof A.UserDefinedCallable0 && !B.JSString_methods.startsWith$1(mixin.declaration.originalName, "--"))
  87709. $async$self._async_evaluate0$_warn$3(string$.Sassx20_m, node.get$nameSpan(), B.Deprecation_omC);
  87710. $async$goto = 3;
  87711. return A._asyncAwait($async$self._async_evaluate0$_applyMixin$5(mixin, A.NullableExtension_andThen0(node.content, new A._EvaluateVisitor_visitIncludeRule_closure9($async$self)), node.$arguments, node, new A._FakeAstNode0(new A._EvaluateVisitor_visitIncludeRule_closure10(node))), $async$visitIncludeRule$1);
  87712. case 3:
  87713. // returning from await.
  87714. $async$returnValue = null;
  87715. // goto return
  87716. $async$goto = 1;
  87717. break;
  87718. case 1:
  87719. // return
  87720. return A._asyncReturn($async$returnValue, $async$completer);
  87721. }
  87722. });
  87723. return A._asyncStartSync($async$visitIncludeRule$1, $async$completer);
  87724. },
  87725. visitMixinRule$1(_, node) {
  87726. return this.visitMixinRule$body$_EvaluateVisitor0(0, node);
  87727. },
  87728. visitMixinRule$body$_EvaluateVisitor0(_, node) {
  87729. var $async$goto = 0,
  87730. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  87731. $async$returnValue, $async$self = this, t1, t2, t3, t4, index, t5;
  87732. var $async$visitMixinRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  87733. if ($async$errorCode === 1)
  87734. return A._asyncRethrow($async$result, $async$completer);
  87735. while (true)
  87736. switch ($async$goto) {
  87737. case 0:
  87738. // Function start
  87739. t1 = $async$self._async_evaluate0$_environment;
  87740. t2 = t1.closure$0();
  87741. t3 = $async$self._async_evaluate0$_inDependency;
  87742. t4 = t1._async_environment0$_mixins;
  87743. index = t4.length - 1;
  87744. t5 = node.name;
  87745. t1._async_environment0$_mixinIndices.$indexSet(0, t5, index);
  87746. J.$indexSet$ax(t4[index], t5, new A.UserDefinedCallable0(node, t2, t3, type$.UserDefinedCallable_AsyncEnvironment_2));
  87747. $async$returnValue = null;
  87748. // goto return
  87749. $async$goto = 1;
  87750. break;
  87751. case 1:
  87752. // return
  87753. return A._asyncReturn($async$returnValue, $async$completer);
  87754. }
  87755. });
  87756. return A._asyncStartSync($async$visitMixinRule$1, $async$completer);
  87757. },
  87758. visitLoudComment$1(_, node) {
  87759. return this.visitLoudComment$body$_EvaluateVisitor0(0, node);
  87760. },
  87761. visitLoudComment$body$_EvaluateVisitor0(_, node) {
  87762. var $async$goto = 0,
  87763. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  87764. $async$returnValue, $async$self = this, t1, text;
  87765. var $async$visitLoudComment$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  87766. if ($async$errorCode === 1)
  87767. return A._asyncRethrow($async$result, $async$completer);
  87768. while (true)
  87769. switch ($async$goto) {
  87770. case 0:
  87771. // Function start
  87772. if ($async$self._async_evaluate0$_inFunction) {
  87773. $async$returnValue = null;
  87774. // goto return
  87775. $async$goto = 1;
  87776. break;
  87777. }
  87778. if ($async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent") === $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__root, "_root") && $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__endOfImports, "_endOfImports") === J.get$length$asx($async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__root, "_root").children._collection$_source))
  87779. $async$self._async_evaluate0$__endOfImports = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__endOfImports, "_endOfImports") + 1;
  87780. t1 = node.text;
  87781. $async$goto = 3;
  87782. return A._asyncAwait($async$self._async_evaluate0$_performInterpolation$1(t1), $async$visitLoudComment$1);
  87783. case 3:
  87784. // returning from await.
  87785. text = $async$result;
  87786. if (!B.JSString_methods.endsWith$1(text, "*/"))
  87787. text += " */";
  87788. $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent").addChild$1(new A.ModifiableCssComment0(text, t1.span));
  87789. $async$returnValue = null;
  87790. // goto return
  87791. $async$goto = 1;
  87792. break;
  87793. case 1:
  87794. // return
  87795. return A._asyncReturn($async$returnValue, $async$completer);
  87796. }
  87797. });
  87798. return A._asyncStartSync($async$visitLoudComment$1, $async$completer);
  87799. },
  87800. visitMediaRule$1(_, node) {
  87801. return this.visitMediaRule$body$_EvaluateVisitor0(0, node);
  87802. },
  87803. visitMediaRule$body$_EvaluateVisitor0(_, node) {
  87804. var $async$goto = 0,
  87805. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  87806. $async$returnValue, $async$self = this, queries, mergedQueries, t1, mergedSources, t2, t3;
  87807. var $async$visitMediaRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  87808. if ($async$errorCode === 1)
  87809. return A._asyncRethrow($async$result, $async$completer);
  87810. while (true)
  87811. switch ($async$goto) {
  87812. case 0:
  87813. // Function start
  87814. if ($async$self._async_evaluate0$_declarationName != null)
  87815. throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Media_, node.span));
  87816. $async$goto = 3;
  87817. return A._asyncAwait($async$self._async_evaluate0$_visitMediaQueries$1(node.query), $async$visitMediaRule$1);
  87818. case 3:
  87819. // returning from await.
  87820. queries = $async$result;
  87821. mergedQueries = A.NullableExtension_andThen0($async$self._async_evaluate0$_mediaQueries, new A._EvaluateVisitor_visitMediaRule_closure8($async$self, queries));
  87822. t1 = mergedQueries == null;
  87823. if (!t1 && J.get$isEmpty$asx(mergedQueries)) {
  87824. $async$returnValue = null;
  87825. // goto return
  87826. $async$goto = 1;
  87827. break;
  87828. }
  87829. if (t1)
  87830. mergedSources = B.Set_empty5;
  87831. else {
  87832. t2 = $async$self._async_evaluate0$_mediaQuerySources;
  87833. t2.toString;
  87834. t2 = A.LinkedHashSet_LinkedHashSet$of(t2, type$.CssMediaQuery_2);
  87835. t3 = $async$self._async_evaluate0$_mediaQueries;
  87836. t3.toString;
  87837. t2.addAll$1(0, t3);
  87838. t2.addAll$1(0, queries);
  87839. mergedSources = t2;
  87840. }
  87841. t1 = t1 ? queries : mergedQueries;
  87842. $async$goto = 4;
  87843. return A._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(A.ModifiableCssMediaRule$0(t1, node.span), new A._EvaluateVisitor_visitMediaRule_closure9($async$self, mergedQueries, queries, mergedSources, node), node.hasDeclarations, new A._EvaluateVisitor_visitMediaRule_closure10(mergedSources), type$.ModifiableCssMediaRule_2, type$.Null), $async$visitMediaRule$1);
  87844. case 4:
  87845. // returning from await.
  87846. $async$returnValue = null;
  87847. // goto return
  87848. $async$goto = 1;
  87849. break;
  87850. case 1:
  87851. // return
  87852. return A._asyncReturn($async$returnValue, $async$completer);
  87853. }
  87854. });
  87855. return A._asyncStartSync($async$visitMediaRule$1, $async$completer);
  87856. },
  87857. _async_evaluate0$_visitMediaQueries$1(interpolation) {
  87858. return this._visitMediaQueries$body$_EvaluateVisitor0(interpolation);
  87859. },
  87860. _visitMediaQueries$body$_EvaluateVisitor0(interpolation) {
  87861. var $async$goto = 0,
  87862. $async$completer = A._makeAsyncAwaitCompleter(type$.List_CssMediaQuery_2),
  87863. $async$returnValue, $async$self = this, _0_0, resolved, map;
  87864. var $async$_async_evaluate0$_visitMediaQueries$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  87865. if ($async$errorCode === 1)
  87866. return A._asyncRethrow($async$result, $async$completer);
  87867. while (true)
  87868. switch ($async$goto) {
  87869. case 0:
  87870. // Function start
  87871. $async$goto = 3;
  87872. return A._asyncAwait($async$self._async_evaluate0$_performInterpolationWithMap$2$warnForColor(interpolation, true), $async$_async_evaluate0$_visitMediaQueries$1);
  87873. case 3:
  87874. // returning from await.
  87875. _0_0 = $async$result;
  87876. resolved = _0_0._0;
  87877. map = _0_0._1;
  87878. $async$returnValue = new A.MediaQueryParser0(A.SpanScanner$(resolved, null), map).parse$0(0);
  87879. // goto return
  87880. $async$goto = 1;
  87881. break;
  87882. case 1:
  87883. // return
  87884. return A._asyncReturn($async$returnValue, $async$completer);
  87885. }
  87886. });
  87887. return A._asyncStartSync($async$_async_evaluate0$_visitMediaQueries$1, $async$completer);
  87888. },
  87889. _async_evaluate0$_mergeMediaQueries$2(queries1, queries2) {
  87890. var t1, t2, t3, t4, _0_0, t5, result,
  87891. queries = A._setArrayType([], type$.JSArray_CssMediaQuery_2);
  87892. for (t1 = J.get$iterator$ax(queries1), t2 = J.getInterceptor$ax(queries2); t1.moveNext$0();) {
  87893. t3 = t1.get$current(t1);
  87894. for (t4 = t2.get$iterator(queries2); t4.moveNext$0();)
  87895. $label0$1: {
  87896. _0_0 = t3.merge$1(t4.get$current(t4));
  87897. if (B._SingletonCssMediaQueryMergeResult_00 === _0_0)
  87898. continue;
  87899. if (B._SingletonCssMediaQueryMergeResult_10 === _0_0)
  87900. return null;
  87901. t5 = _0_0 instanceof A.MediaQuerySuccessfulMergeResult0;
  87902. result = t5 ? _0_0 : null;
  87903. if (t5)
  87904. queries.push(result.query);
  87905. break $label0$1;
  87906. }
  87907. }
  87908. return queries;
  87909. },
  87910. visitReturnRule$1(_, node) {
  87911. return this.visitReturnRule$body$_EvaluateVisitor0(0, node);
  87912. },
  87913. visitReturnRule$body$_EvaluateVisitor0(_, node) {
  87914. var $async$goto = 0,
  87915. $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
  87916. $async$returnValue, $async$self = this, t1, t2;
  87917. var $async$visitReturnRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  87918. if ($async$errorCode === 1)
  87919. return A._asyncRethrow($async$result, $async$completer);
  87920. while (true)
  87921. switch ($async$goto) {
  87922. case 0:
  87923. // Function start
  87924. t1 = node.expression;
  87925. t2 = t1.accept$1($async$self);
  87926. $async$goto = 3;
  87927. return A._asyncAwait(type$.Future_Value_2._is(t2) ? t2 : A._Future$value(t2, type$.Value_2), $async$visitReturnRule$1);
  87928. case 3:
  87929. // returning from await.
  87930. $async$returnValue = $async$self._async_evaluate0$_withoutSlash$2($async$result, t1);
  87931. // goto return
  87932. $async$goto = 1;
  87933. break;
  87934. case 1:
  87935. // return
  87936. return A._asyncReturn($async$returnValue, $async$completer);
  87937. }
  87938. });
  87939. return A._asyncStartSync($async$visitReturnRule$1, $async$completer);
  87940. },
  87941. visitSilentComment$1(_, node) {
  87942. return this.visitSilentComment$body$_EvaluateVisitor0(0, node);
  87943. },
  87944. visitSilentComment$body$_EvaluateVisitor0(_, node) {
  87945. var $async$goto = 0,
  87946. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  87947. $async$returnValue;
  87948. var $async$visitSilentComment$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  87949. if ($async$errorCode === 1)
  87950. return A._asyncRethrow($async$result, $async$completer);
  87951. while (true)
  87952. switch ($async$goto) {
  87953. case 0:
  87954. // Function start
  87955. $async$returnValue = null;
  87956. // goto return
  87957. $async$goto = 1;
  87958. break;
  87959. case 1:
  87960. // return
  87961. return A._asyncReturn($async$returnValue, $async$completer);
  87962. }
  87963. });
  87964. return A._asyncStartSync($async$visitSilentComment$1, $async$completer);
  87965. },
  87966. visitStyleRule$1(_, node) {
  87967. return this.visitStyleRule$body$_EvaluateVisitor0(0, node);
  87968. },
  87969. visitStyleRule$body$_EvaluateVisitor0(_, node) {
  87970. var $async$goto = 0,
  87971. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  87972. $async$returnValue, $async$self = this, t1, _0_0, selectorText, selectorMap, parsedSelector, nest, t2, _i, _1_0, first, t3, rule, oldAtRootExcludingStyleRule;
  87973. var $async$visitStyleRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  87974. if ($async$errorCode === 1)
  87975. return A._asyncRethrow($async$result, $async$completer);
  87976. while (true)
  87977. switch ($async$goto) {
  87978. case 0:
  87979. // Function start
  87980. if ($async$self._async_evaluate0$_declarationName != null)
  87981. throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Style_n, node.span));
  87982. else if ($async$self._async_evaluate0$_inKeyframes && $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent") instanceof A.ModifiableCssKeyframeBlock0)
  87983. throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Style_k, node.span));
  87984. t1 = node.selector;
  87985. $async$goto = 3;
  87986. return A._asyncAwait($async$self._async_evaluate0$_performInterpolationWithMap$2$warnForColor(t1, true), $async$visitStyleRule$1);
  87987. case 3:
  87988. // returning from await.
  87989. _0_0 = $async$result;
  87990. selectorText = _0_0._0;
  87991. selectorMap = _0_0._1;
  87992. $async$goto = $async$self._async_evaluate0$_inKeyframes ? 4 : 5;
  87993. break;
  87994. case 4:
  87995. // then
  87996. $async$goto = 6;
  87997. return A._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(A.ModifiableCssKeyframeBlock$0(new A.CssValue0(A.List_List$unmodifiable(new A.KeyframeSelectorParser0(A.SpanScanner$(selectorText, null), selectorMap).parse$0(0), type$.String), t1.span, type$.CssValue_List_String_2), node.span), new A._EvaluateVisitor_visitStyleRule_closure11($async$self, node), node.hasDeclarations, new A._EvaluateVisitor_visitStyleRule_closure12(), type$.ModifiableCssKeyframeBlock_2, type$.Null), $async$visitStyleRule$1);
  87998. case 6:
  87999. // returning from await.
  88000. $async$returnValue = null;
  88001. // goto return
  88002. $async$goto = 1;
  88003. break;
  88004. case 5:
  88005. // join
  88006. parsedSelector = A.SelectorList_SelectorList$parse0(selectorText, true, selectorMap, $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__stylesheet, "_stylesheet").plainCss);
  88007. t1 = $async$self._async_evaluate0$_atRootExcludingStyleRule ? null : $async$self._async_evaluate0$_styleRuleIgnoringAtRoot;
  88008. t1 = t1 == null ? null : t1.fromPlainCss;
  88009. nest = t1 !== true;
  88010. if (nest) {
  88011. if ($async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__stylesheet, "_stylesheet").plainCss)
  88012. for (t1 = parsedSelector.components, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  88013. _1_0 = t1[_i].leadingCombinators;
  88014. if (_1_0.length >= 1) {
  88015. first = _1_0[0];
  88016. t3 = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__stylesheet, "_stylesheet");
  88017. t3 = t3.plainCss;
  88018. } else {
  88019. first = null;
  88020. t3 = false;
  88021. }
  88022. if (t3)
  88023. throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Top_lel, first.span));
  88024. }
  88025. t1 = $async$self._async_evaluate0$_styleRuleIgnoringAtRoot;
  88026. t1 = t1 == null ? null : t1.originalSelector;
  88027. parsedSelector = parsedSelector.nestWithin$3$implicitParent$preserveParentSelectors(t1, !$async$self._async_evaluate0$_atRootExcludingStyleRule, $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__stylesheet, "_stylesheet").plainCss);
  88028. }
  88029. rule = A.ModifiableCssStyleRule$0($async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__extensionStore, "_extensionStore").addSelector$2(parsedSelector, $async$self._async_evaluate0$_mediaQueries), node.span, $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__stylesheet, "_stylesheet").plainCss, parsedSelector);
  88030. oldAtRootExcludingStyleRule = $async$self._async_evaluate0$_atRootExcludingStyleRule;
  88031. t1 = $async$self._async_evaluate0$_atRootExcludingStyleRule = false;
  88032. t2 = nest ? new A._EvaluateVisitor_visitStyleRule_closure13() : null;
  88033. $async$goto = 7;
  88034. return A._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(rule, new A._EvaluateVisitor_visitStyleRule_closure14($async$self, rule, node), node.hasDeclarations, t2, type$.ModifiableCssStyleRule_2, type$.Null), $async$visitStyleRule$1);
  88035. case 7:
  88036. // returning from await.
  88037. $async$self._async_evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  88038. $async$self._async_evaluate0$_warnForBogusCombinators$1(rule);
  88039. if (($async$self._async_evaluate0$_atRootExcludingStyleRule ? null : $async$self._async_evaluate0$_styleRuleIgnoringAtRoot) == null) {
  88040. t1 = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent").children;
  88041. t1 = !t1.get$isEmpty(t1);
  88042. }
  88043. if (t1) {
  88044. t1 = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent").children;
  88045. t1.get$last(t1).isGroupEnd = true;
  88046. }
  88047. $async$returnValue = null;
  88048. // goto return
  88049. $async$goto = 1;
  88050. break;
  88051. case 1:
  88052. // return
  88053. return A._asyncReturn($async$returnValue, $async$completer);
  88054. }
  88055. });
  88056. return A._asyncStartSync($async$visitStyleRule$1, $async$completer);
  88057. },
  88058. _async_evaluate0$_warnForBogusCombinators$1(rule) {
  88059. var t1, t2, t3, t4, t5, _i, complex, visitor, t6, t7, t8, t9, _this = this, _null = null;
  88060. if (!rule.accept$1(B._IsInvisibleVisitor_false_false0))
  88061. for (t1 = rule._style_rule0$_selector._box0$_inner.value.components, t2 = t1.length, t3 = type$.SourceSpan, t4 = type$.String, t5 = rule.children, _i = 0; _i < t2; ++_i) {
  88062. complex = t1[_i];
  88063. if (!complex.accept$1(B._IsBogusVisitor_true0))
  88064. continue;
  88065. if (complex.accept$1(B.C__IsUselessVisitor0)) {
  88066. visitor = A._SerializeVisitor$0(_null, true, _null, _null, true, false, _null, true);
  88067. complex.accept$1(visitor);
  88068. _this._async_evaluate0$_warn$3('The selector "' + B.JSString_methods.trim$0(visitor._serialize0$_buffer.toString$0(0)) + string$.x22x20is_ix20, A.SpanExtensions_trimRight0(complex.span), B.Deprecation_bh9);
  88069. } else if (complex.leadingCombinators.length !== 0) {
  88070. if (!_this._async_evaluate0$_assertInModule$2(_this._async_evaluate0$__stylesheet, "_stylesheet").plainCss) {
  88071. visitor = A._SerializeVisitor$0(_null, true, _null, _null, true, false, _null, true);
  88072. complex.accept$1(visitor);
  88073. _this._async_evaluate0$_warn$3('The selector "' + B.JSString_methods.trim$0(visitor._serialize0$_buffer.toString$0(0)) + string$.x22x20is_ix0a, A.SpanExtensions_trimRight0(complex.span), B.Deprecation_bh9);
  88074. }
  88075. } else {
  88076. visitor = A._SerializeVisitor$0(_null, true, _null, _null, true, false, _null, true);
  88077. complex.accept$1(visitor);
  88078. t6 = B.JSString_methods.trim$0(visitor._serialize0$_buffer.toString$0(0));
  88079. t7 = complex.accept$1(B._IsBogusVisitor_false0) ? string$.x20It_wi : "";
  88080. t8 = A.SpanExtensions_trimRight0(complex.span);
  88081. if (t5.get$length(0) === 0)
  88082. A.throwExpression(A.IterableElementError_noElement());
  88083. t9 = J.get$span$z(t5.$index(0, 0));
  88084. _this._async_evaluate0$_warn$3('The selector "' + t6 + string$.x22x20is_o + t7 + string$.x0aThis_, new A.MultiSpan0(t8, "invalid selector", A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_literal([t9, "this is not a style rule" + (t5.every$1(t5, new A._EvaluateVisitor__warnForBogusCombinators_closure2()) ? "\n(try converting to a //-style comment)" : "")], t3, t4), t3, t4)), B.Deprecation_bh9);
  88085. }
  88086. }
  88087. },
  88088. visitSupportsRule$1(_, node) {
  88089. return this.visitSupportsRule$body$_EvaluateVisitor0(0, node);
  88090. },
  88091. visitSupportsRule$body$_EvaluateVisitor0(_, node) {
  88092. var $async$goto = 0,
  88093. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  88094. $async$returnValue, $async$self = this, t1, $async$temp1, $async$temp2;
  88095. var $async$visitSupportsRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  88096. if ($async$errorCode === 1)
  88097. return A._asyncRethrow($async$result, $async$completer);
  88098. while (true)
  88099. switch ($async$goto) {
  88100. case 0:
  88101. // Function start
  88102. if ($async$self._async_evaluate0$_declarationName != null)
  88103. throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Suppor, node.span));
  88104. t1 = node.condition;
  88105. $async$temp1 = A;
  88106. $async$temp2 = A;
  88107. $async$goto = 4;
  88108. return A._asyncAwait($async$self._async_evaluate0$_visitSupportsCondition$1(t1), $async$visitSupportsRule$1);
  88109. case 4:
  88110. // returning from await.
  88111. $async$goto = 3;
  88112. return A._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through($async$temp1.ModifiableCssSupportsRule$0(new $async$temp2.CssValue0($async$result, t1.get$span(t1), type$.CssValue_String_2), node.span), new A._EvaluateVisitor_visitSupportsRule_closure5($async$self, node), node.hasDeclarations, new A._EvaluateVisitor_visitSupportsRule_closure6(), type$.ModifiableCssSupportsRule_2, type$.Null), $async$visitSupportsRule$1);
  88113. case 3:
  88114. // returning from await.
  88115. $async$returnValue = null;
  88116. // goto return
  88117. $async$goto = 1;
  88118. break;
  88119. case 1:
  88120. // return
  88121. return A._asyncReturn($async$returnValue, $async$completer);
  88122. }
  88123. });
  88124. return A._asyncStartSync($async$visitSupportsRule$1, $async$completer);
  88125. },
  88126. _async_evaluate0$_visitSupportsCondition$1(condition) {
  88127. return this._visitSupportsCondition$body$_EvaluateVisitor0(condition);
  88128. },
  88129. _visitSupportsCondition$body$_EvaluateVisitor0(condition) {
  88130. var $async$goto = 0,
  88131. $async$completer = A._makeAsyncAwaitCompleter(type$.String),
  88132. $async$returnValue, $async$self = this, t1, _box_0, $async$temp1, $async$temp2;
  88133. var $async$_async_evaluate0$_visitSupportsCondition$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  88134. if ($async$errorCode === 1)
  88135. return A._asyncRethrow($async$result, $async$completer);
  88136. while (true)
  88137. switch ($async$goto) {
  88138. case 0:
  88139. // Function start
  88140. _box_0 = {};
  88141. $async$goto = condition instanceof A.SupportsOperation0 ? 4 : 5;
  88142. break;
  88143. case 4:
  88144. // then
  88145. t1 = condition.operator;
  88146. $async$temp1 = A;
  88147. $async$goto = 6;
  88148. return A._asyncAwait($async$self._async_evaluate0$_parenthesize$2(condition.left, t1), $async$_async_evaluate0$_visitSupportsCondition$1);
  88149. case 6:
  88150. // returning from await.
  88151. $async$temp1 = $async$temp1.S($async$result) + " " + t1 + " ";
  88152. $async$temp2 = A;
  88153. $async$goto = 7;
  88154. return A._asyncAwait($async$self._async_evaluate0$_parenthesize$2(condition.right, t1), $async$_async_evaluate0$_visitSupportsCondition$1);
  88155. case 7:
  88156. // returning from await.
  88157. t1 = $async$temp1 + $async$temp2.S($async$result);
  88158. // goto break $label0$0
  88159. $async$goto = 3;
  88160. break;
  88161. case 5:
  88162. // join
  88163. $async$goto = condition instanceof A.SupportsNegation0 ? 8 : 9;
  88164. break;
  88165. case 8:
  88166. // then
  88167. $async$temp1 = A;
  88168. $async$goto = 10;
  88169. return A._asyncAwait($async$self._async_evaluate0$_parenthesize$1(condition.condition), $async$_async_evaluate0$_visitSupportsCondition$1);
  88170. case 10:
  88171. // returning from await.
  88172. t1 = "not " + $async$temp1.S($async$result);
  88173. // goto break $label0$0
  88174. $async$goto = 3;
  88175. break;
  88176. case 9:
  88177. // join
  88178. $async$goto = condition instanceof A.SupportsInterpolation0 ? 11 : 12;
  88179. break;
  88180. case 11:
  88181. // then
  88182. $async$goto = 13;
  88183. return A._asyncAwait($async$self._async_evaluate0$_evaluateToCss$2$quote(condition.expression, false), $async$_async_evaluate0$_visitSupportsCondition$1);
  88184. case 13:
  88185. // returning from await.
  88186. t1 = $async$result;
  88187. // goto break $label0$0
  88188. $async$goto = 3;
  88189. break;
  88190. case 12:
  88191. // join
  88192. _box_0.declaration = null;
  88193. $async$goto = condition instanceof A.SupportsDeclaration0 ? 14 : 15;
  88194. break;
  88195. case 14:
  88196. // then
  88197. _box_0.declaration = condition;
  88198. $async$goto = 16;
  88199. return A._asyncAwait($async$self._async_evaluate0$_withSupportsDeclaration$1$1(new A._EvaluateVisitor__visitSupportsCondition_closure2(_box_0, $async$self), type$.String), $async$_async_evaluate0$_visitSupportsCondition$1);
  88200. case 16:
  88201. // returning from await.
  88202. t1 = $async$result;
  88203. // goto break $label0$0
  88204. $async$goto = 3;
  88205. break;
  88206. case 15:
  88207. // join
  88208. $async$goto = condition instanceof A.SupportsFunction0 ? 17 : 18;
  88209. break;
  88210. case 17:
  88211. // then
  88212. $async$temp1 = A;
  88213. $async$goto = 19;
  88214. return A._asyncAwait($async$self._async_evaluate0$_performInterpolation$1(condition.name), $async$_async_evaluate0$_visitSupportsCondition$1);
  88215. case 19:
  88216. // returning from await.
  88217. $async$temp1 = $async$temp1.S($async$result) + "(";
  88218. $async$temp2 = A;
  88219. $async$goto = 20;
  88220. return A._asyncAwait($async$self._async_evaluate0$_performInterpolation$1(condition.$arguments), $async$_async_evaluate0$_visitSupportsCondition$1);
  88221. case 20:
  88222. // returning from await.
  88223. t1 = $async$temp1 + $async$temp2.S($async$result) + ")";
  88224. // goto break $label0$0
  88225. $async$goto = 3;
  88226. break;
  88227. case 18:
  88228. // join
  88229. $async$goto = condition instanceof A.SupportsAnything0 ? 21 : 22;
  88230. break;
  88231. case 21:
  88232. // then
  88233. $async$temp1 = A;
  88234. $async$goto = 23;
  88235. return A._asyncAwait($async$self._async_evaluate0$_performInterpolation$1(condition.contents), $async$_async_evaluate0$_visitSupportsCondition$1);
  88236. case 23:
  88237. // returning from await.
  88238. t1 = "(" + $async$temp1.S($async$result) + ")";
  88239. // goto break $label0$0
  88240. $async$goto = 3;
  88241. break;
  88242. case 22:
  88243. // join
  88244. t1 = A.throwExpression(A.ArgumentError$("Unknown supports condition type " + A.getRuntimeTypeOfDartObject(condition).toString$0(0) + ".", null));
  88245. case 3:
  88246. // break $label0$0
  88247. $async$returnValue = t1;
  88248. // goto return
  88249. $async$goto = 1;
  88250. break;
  88251. case 1:
  88252. // return
  88253. return A._asyncReturn($async$returnValue, $async$completer);
  88254. }
  88255. });
  88256. return A._asyncStartSync($async$_async_evaluate0$_visitSupportsCondition$1, $async$completer);
  88257. },
  88258. _async_evaluate0$_withSupportsDeclaration$1$1(callback, $T) {
  88259. return this._withSupportsDeclaration$body$_EvaluateVisitor0(callback, $T, $T);
  88260. },
  88261. _withSupportsDeclaration$body$_EvaluateVisitor0(callback, $T, $async$type) {
  88262. var $async$goto = 0,
  88263. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  88264. $async$returnValue, $async$handler = 2, $async$currentError, $async$next = [], $async$self = this, t1, oldInSupportsDeclaration;
  88265. var $async$_async_evaluate0$_withSupportsDeclaration$1$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  88266. if ($async$errorCode === 1) {
  88267. $async$currentError = $async$result;
  88268. $async$goto = $async$handler;
  88269. }
  88270. while (true)
  88271. switch ($async$goto) {
  88272. case 0:
  88273. // Function start
  88274. oldInSupportsDeclaration = $async$self._async_evaluate0$_inSupportsDeclaration;
  88275. $async$self._async_evaluate0$_inSupportsDeclaration = true;
  88276. $async$handler = 3;
  88277. t1 = callback.call$0();
  88278. $async$goto = 6;
  88279. return A._asyncAwait($T._eval$1("Future<0>")._is(t1) ? t1 : A._Future$value(t1, $T), $async$_async_evaluate0$_withSupportsDeclaration$1$1);
  88280. case 6:
  88281. // returning from await.
  88282. t1 = $async$result;
  88283. $async$returnValue = t1;
  88284. $async$next = [1];
  88285. // goto finally
  88286. $async$goto = 4;
  88287. break;
  88288. $async$next.push(5);
  88289. // goto finally
  88290. $async$goto = 4;
  88291. break;
  88292. case 3:
  88293. // uncaught
  88294. $async$next = [2];
  88295. case 4:
  88296. // finally
  88297. $async$handler = 2;
  88298. $async$self._async_evaluate0$_inSupportsDeclaration = oldInSupportsDeclaration;
  88299. // goto the next finally handler
  88300. $async$goto = $async$next.pop();
  88301. break;
  88302. case 5:
  88303. // after finally
  88304. case 1:
  88305. // return
  88306. return A._asyncReturn($async$returnValue, $async$completer);
  88307. case 2:
  88308. // rethrow
  88309. return A._asyncRethrow($async$currentError, $async$completer);
  88310. }
  88311. });
  88312. return A._asyncStartSync($async$_async_evaluate0$_withSupportsDeclaration$1$1, $async$completer);
  88313. },
  88314. _async_evaluate0$_parenthesize$2(condition, operator) {
  88315. return this._parenthesize$body$_EvaluateVisitor0(condition, operator);
  88316. },
  88317. _async_evaluate0$_parenthesize$1(condition) {
  88318. return this._async_evaluate0$_parenthesize$2(condition, null);
  88319. },
  88320. _parenthesize$body$_EvaluateVisitor0(condition, operator) {
  88321. var $async$goto = 0,
  88322. $async$completer = A._makeAsyncAwaitCompleter(type$.String),
  88323. $async$returnValue, $async$self = this, t1, $async$temp1;
  88324. var $async$_async_evaluate0$_parenthesize$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  88325. if ($async$errorCode === 1)
  88326. return A._asyncRethrow($async$result, $async$completer);
  88327. while (true)
  88328. switch ($async$goto) {
  88329. case 0:
  88330. // Function start
  88331. if (!(condition instanceof A.SupportsNegation0))
  88332. if (condition instanceof A.SupportsOperation0)
  88333. t1 = operator == null || operator !== condition.operator;
  88334. else
  88335. t1 = false;
  88336. else
  88337. t1 = true;
  88338. $async$goto = t1 ? 3 : 4;
  88339. break;
  88340. case 3:
  88341. // then
  88342. $async$temp1 = A;
  88343. $async$goto = 5;
  88344. return A._asyncAwait($async$self._async_evaluate0$_visitSupportsCondition$1(condition), $async$_async_evaluate0$_parenthesize$2);
  88345. case 5:
  88346. // returning from await.
  88347. $async$returnValue = "(" + $async$temp1.S($async$result) + ")";
  88348. // goto return
  88349. $async$goto = 1;
  88350. break;
  88351. case 4:
  88352. // join
  88353. $async$goto = 6;
  88354. return A._asyncAwait($async$self._async_evaluate0$_visitSupportsCondition$1(condition), $async$_async_evaluate0$_parenthesize$2);
  88355. case 6:
  88356. // returning from await.
  88357. $async$returnValue = $async$result;
  88358. // goto return
  88359. $async$goto = 1;
  88360. break;
  88361. case 1:
  88362. // return
  88363. return A._asyncReturn($async$returnValue, $async$completer);
  88364. }
  88365. });
  88366. return A._asyncStartSync($async$_async_evaluate0$_parenthesize$2, $async$completer);
  88367. },
  88368. visitVariableDeclaration$1(_, node) {
  88369. return this.visitVariableDeclaration$body$_EvaluateVisitor0(0, node);
  88370. },
  88371. visitVariableDeclaration$body$_EvaluateVisitor0(_, node) {
  88372. var $async$goto = 0,
  88373. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  88374. $async$returnValue, $async$self = this, t2, value, t1, $async$temp1, $async$temp2, $async$temp3;
  88375. var $async$visitVariableDeclaration$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  88376. if ($async$errorCode === 1)
  88377. return A._asyncRethrow($async$result, $async$completer);
  88378. while (true)
  88379. switch ($async$goto) {
  88380. case 0:
  88381. // Function start
  88382. t1 = {};
  88383. if (node.isGuarded) {
  88384. if (node.namespace == null && $async$self._async_evaluate0$_environment._async_environment0$_variables.length === 1) {
  88385. t2 = $async$self._async_evaluate0$_configuration._configuration0$_values;
  88386. t2 = t2.get$isEmpty(t2) ? null : t2.remove$1(0, node.name);
  88387. t1.override = null;
  88388. if (t2 != null) {
  88389. t1.override = t2;
  88390. t2 = !t2.value.$eq(0, B.C__SassNull0);
  88391. } else
  88392. t2 = false;
  88393. if (t2) {
  88394. $async$self._async_evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableDeclaration_closure8(t1, $async$self, node));
  88395. $async$returnValue = null;
  88396. // goto return
  88397. $async$goto = 1;
  88398. break;
  88399. }
  88400. }
  88401. value = $async$self._async_evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableDeclaration_closure9($async$self, node));
  88402. if (value != null && !value.$eq(0, B.C__SassNull0)) {
  88403. $async$returnValue = null;
  88404. // goto return
  88405. $async$goto = 1;
  88406. break;
  88407. }
  88408. }
  88409. if (node.isGlobal && !$async$self._async_evaluate0$_environment.globalVariableExists$1(node.name)) {
  88410. t1 = $async$self._async_evaluate0$_environment._async_environment0$_variables.length === 1 ? string$.As_of_S : string$.As_of_R + A.declarationName0(node.span) + ": null` at the stylesheet root.";
  88411. $async$self._async_evaluate0$_warn$3(t1, node.span, B.Deprecation_MT8);
  88412. }
  88413. t1 = node.expression;
  88414. t2 = t1.accept$1($async$self);
  88415. $async$temp1 = node;
  88416. $async$temp2 = A;
  88417. $async$temp3 = node;
  88418. $async$goto = 3;
  88419. return A._asyncAwait(type$.Future_Value_2._is(t2) ? t2 : A._Future$value(t2, type$.Value_2), $async$visitVariableDeclaration$1);
  88420. case 3:
  88421. // returning from await.
  88422. $async$self._async_evaluate0$_addExceptionSpan$2($async$temp1, new $async$temp2._EvaluateVisitor_visitVariableDeclaration_closure10($async$self, $async$temp3, $async$self._async_evaluate0$_withoutSlash$2($async$result, t1)));
  88423. $async$returnValue = null;
  88424. // goto return
  88425. $async$goto = 1;
  88426. break;
  88427. case 1:
  88428. // return
  88429. return A._asyncReturn($async$returnValue, $async$completer);
  88430. }
  88431. });
  88432. return A._asyncStartSync($async$visitVariableDeclaration$1, $async$completer);
  88433. },
  88434. visitUseRule$1(_, node) {
  88435. return this.visitUseRule$body$_EvaluateVisitor0(0, node);
  88436. },
  88437. visitUseRule$body$_EvaluateVisitor0(_, node) {
  88438. var $async$goto = 0,
  88439. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  88440. $async$returnValue, $async$self = this, values, t3, t4, _i, variable, t5, variableNodeWithSpan, t6, t7, configuration, t1, t2, $async$temp1, $async$temp2, $async$temp3;
  88441. var $async$visitUseRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  88442. if ($async$errorCode === 1)
  88443. return A._asyncRethrow($async$result, $async$completer);
  88444. while (true)
  88445. switch ($async$goto) {
  88446. case 0:
  88447. // Function start
  88448. t1 = node.configuration;
  88449. t2 = t1.length;
  88450. $async$goto = t2 !== 0 ? 3 : 5;
  88451. break;
  88452. case 3:
  88453. // then
  88454. values = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue_2);
  88455. t3 = type$._Future_Value_2, t4 = type$.Future_Value_2, _i = 0;
  88456. case 6:
  88457. // for condition
  88458. if (!(_i < t2)) {
  88459. // goto after for
  88460. $async$goto = 8;
  88461. break;
  88462. }
  88463. variable = t1[_i];
  88464. t5 = variable.expression;
  88465. variableNodeWithSpan = $async$self._async_evaluate0$_expressionNode$1(t5);
  88466. t6 = variable.name;
  88467. t5 = t5.accept$1($async$self);
  88468. if (!t4._is(t5)) {
  88469. t7 = new A._Future($.Zone__current, t3);
  88470. t7._state = 8;
  88471. t7._resultOrListeners = t5;
  88472. t5 = t7;
  88473. }
  88474. $async$temp1 = values;
  88475. $async$temp2 = t6;
  88476. $async$temp3 = A;
  88477. $async$goto = 9;
  88478. return A._asyncAwait(t5, $async$visitUseRule$1);
  88479. case 9:
  88480. // returning from await.
  88481. $async$temp1.$indexSet(0, $async$temp2, new $async$temp3.ConfiguredValue0($async$self._async_evaluate0$_withoutSlash$2($async$result, variableNodeWithSpan), variable.span, variableNodeWithSpan));
  88482. case 7:
  88483. // for update
  88484. ++_i;
  88485. // goto for condition
  88486. $async$goto = 6;
  88487. break;
  88488. case 8:
  88489. // after for
  88490. configuration = new A.ExplicitConfiguration0(node, values, null);
  88491. // goto join
  88492. $async$goto = 4;
  88493. break;
  88494. case 5:
  88495. // else
  88496. configuration = B.Configuration_Map_empty_null0;
  88497. case 4:
  88498. // join
  88499. $async$goto = 10;
  88500. return A._asyncAwait($async$self._async_evaluate0$_loadModule$5$configuration(node.url, "@use", node, new A._EvaluateVisitor_visitUseRule_closure2($async$self, node), configuration), $async$visitUseRule$1);
  88501. case 10:
  88502. // returning from await.
  88503. $async$self._async_evaluate0$_assertConfigurationIsEmpty$1(configuration);
  88504. $async$returnValue = null;
  88505. // goto return
  88506. $async$goto = 1;
  88507. break;
  88508. case 1:
  88509. // return
  88510. return A._asyncReturn($async$returnValue, $async$completer);
  88511. }
  88512. });
  88513. return A._asyncStartSync($async$visitUseRule$1, $async$completer);
  88514. },
  88515. visitWarnRule$1(_, node) {
  88516. return this.visitWarnRule$body$_EvaluateVisitor0(0, node);
  88517. },
  88518. visitWarnRule$body$_EvaluateVisitor0(_, node) {
  88519. var $async$goto = 0,
  88520. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  88521. $async$returnValue, $async$self = this, value, t1;
  88522. var $async$visitWarnRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  88523. if ($async$errorCode === 1)
  88524. return A._asyncRethrow($async$result, $async$completer);
  88525. while (true)
  88526. switch ($async$goto) {
  88527. case 0:
  88528. // Function start
  88529. $async$goto = 3;
  88530. return A._asyncAwait($async$self._async_evaluate0$_addExceptionSpanAsync$1$2(node, new A._EvaluateVisitor_visitWarnRule_closure2($async$self, node), type$.Value_2), $async$visitWarnRule$1);
  88531. case 3:
  88532. // returning from await.
  88533. value = $async$result;
  88534. t1 = value instanceof A.SassString0 ? value._string0$_text : $async$self._async_evaluate0$_serialize$2(value, node.expression);
  88535. $async$self._async_evaluate0$_logger.warn$2$trace(0, t1, $async$self._async_evaluate0$_stackTrace$1(node.span));
  88536. $async$returnValue = null;
  88537. // goto return
  88538. $async$goto = 1;
  88539. break;
  88540. case 1:
  88541. // return
  88542. return A._asyncReturn($async$returnValue, $async$completer);
  88543. }
  88544. });
  88545. return A._asyncStartSync($async$visitWarnRule$1, $async$completer);
  88546. },
  88547. visitWhileRule$1(_, node) {
  88548. return this._async_evaluate0$_environment.scope$1$3$semiGlobal$when(new A._EvaluateVisitor_visitWhileRule_closure2(this, node), true, node.hasDeclarations, type$.nullable_Value_2);
  88549. },
  88550. visitBinaryOperationExpression$1(_, node) {
  88551. var t1, _this = this;
  88552. if (_this._async_evaluate0$_assertInModule$2(_this._async_evaluate0$__stylesheet, "_stylesheet").plainCss) {
  88553. t1 = node.operator;
  88554. t1 = t1 !== B.BinaryOperator_wdM0 && t1 !== B.BinaryOperator_U770;
  88555. } else
  88556. t1 = false;
  88557. if (t1)
  88558. throw A.wrapException(_this._async_evaluate0$_exception$2("Operators aren't allowed in plain CSS.", node.get$operatorSpan()));
  88559. return _this._async_evaluate0$_addExceptionSpanAsync$1$2(node, new A._EvaluateVisitor_visitBinaryOperationExpression_closure2(_this, node), type$.Value_2);
  88560. },
  88561. _async_evaluate0$_slash$3(left, right, node) {
  88562. var t2, _1_1,
  88563. result = left.dividedBy$1(right),
  88564. _1_2_isSet = left instanceof A.SassNumber0,
  88565. _1_2 = null, right0 = null,
  88566. t1 = false;
  88567. if (_1_2_isSet) {
  88568. t2 = type$.SassNumber_2;
  88569. t2._as(left);
  88570. if (right instanceof A.SassNumber0) {
  88571. t2._as(right);
  88572. t1 = node.allowsSlash && this._async_evaluate0$_operandAllowsSlash$1(node.left) && this._async_evaluate0$_operandAllowsSlash$1(node.right);
  88573. right0 = right;
  88574. _1_2 = right0;
  88575. } else
  88576. _1_2 = right;
  88577. _1_1 = left;
  88578. } else {
  88579. _1_1 = left;
  88580. left = null;
  88581. }
  88582. if (t1)
  88583. return type$.SassNumber_2._as(result).withSlash$2(left, right0);
  88584. if (_1_1 instanceof A.SassNumber0)
  88585. t1 = (_1_2_isSet ? _1_2 : right) instanceof A.SassNumber0;
  88586. else
  88587. t1 = false;
  88588. if (t1) {
  88589. this._async_evaluate0$_warn$3(string$.Using__o + A.S(new A._EvaluateVisitor__slash_recommendation2().call$1(node)) + " or " + A.expressionToCalc0(node).toString$0(0) + string$.x0a_Morex20, node.get$span(0), B.Deprecation_q39);
  88590. return result;
  88591. }
  88592. return result;
  88593. },
  88594. _async_evaluate0$_operandAllowsSlash$1(node) {
  88595. var t1;
  88596. if (node instanceof A.FunctionExpression0)
  88597. if (node.namespace == null) {
  88598. t1 = node.name;
  88599. t1 = B.Set_yHF81.contains$1(0, t1.toLowerCase()) && this._async_evaluate0$_environment.getFunction$1(t1) == null;
  88600. } else
  88601. t1 = false;
  88602. else
  88603. t1 = true;
  88604. return t1;
  88605. },
  88606. visitValueExpression$1(_, node) {
  88607. return this.visitValueExpression$body$_EvaluateVisitor0(0, node);
  88608. },
  88609. visitValueExpression$body$_EvaluateVisitor0(_, node) {
  88610. var $async$goto = 0,
  88611. $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
  88612. $async$returnValue;
  88613. var $async$visitValueExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  88614. if ($async$errorCode === 1)
  88615. return A._asyncRethrow($async$result, $async$completer);
  88616. while (true)
  88617. switch ($async$goto) {
  88618. case 0:
  88619. // Function start
  88620. $async$returnValue = node.value;
  88621. // goto return
  88622. $async$goto = 1;
  88623. break;
  88624. case 1:
  88625. // return
  88626. return A._asyncReturn($async$returnValue, $async$completer);
  88627. }
  88628. });
  88629. return A._asyncStartSync($async$visitValueExpression$1, $async$completer);
  88630. },
  88631. visitVariableExpression$1(_, node) {
  88632. return this.visitVariableExpression$body$_EvaluateVisitor0(0, node);
  88633. },
  88634. visitVariableExpression$body$_EvaluateVisitor0(_, node) {
  88635. var $async$goto = 0,
  88636. $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
  88637. $async$returnValue, $async$self = this, result;
  88638. var $async$visitVariableExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  88639. if ($async$errorCode === 1)
  88640. return A._asyncRethrow($async$result, $async$completer);
  88641. while (true)
  88642. switch ($async$goto) {
  88643. case 0:
  88644. // Function start
  88645. result = $async$self._async_evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableExpression_closure2($async$self, node));
  88646. if (result != null) {
  88647. $async$returnValue = result;
  88648. // goto return
  88649. $async$goto = 1;
  88650. break;
  88651. }
  88652. throw A.wrapException($async$self._async_evaluate0$_exception$2("Undefined variable.", node.span));
  88653. case 1:
  88654. // return
  88655. return A._asyncReturn($async$returnValue, $async$completer);
  88656. }
  88657. });
  88658. return A._asyncStartSync($async$visitVariableExpression$1, $async$completer);
  88659. },
  88660. visitUnaryOperationExpression$1(_, node) {
  88661. return this.visitUnaryOperationExpression$body$_EvaluateVisitor0(0, node);
  88662. },
  88663. visitUnaryOperationExpression$body$_EvaluateVisitor0(_, node) {
  88664. var $async$goto = 0,
  88665. $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
  88666. $async$returnValue, $async$self = this, $async$temp1, $async$temp2, $async$temp3;
  88667. var $async$visitUnaryOperationExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  88668. if ($async$errorCode === 1)
  88669. return A._asyncRethrow($async$result, $async$completer);
  88670. while (true)
  88671. switch ($async$goto) {
  88672. case 0:
  88673. // Function start
  88674. $async$temp1 = node;
  88675. $async$temp2 = A;
  88676. $async$temp3 = node;
  88677. $async$goto = 3;
  88678. return A._asyncAwait(node.operand.accept$1($async$self), $async$visitUnaryOperationExpression$1);
  88679. case 3:
  88680. // returning from await.
  88681. $async$returnValue = $async$self._async_evaluate0$_addExceptionSpan$2($async$temp1, new $async$temp2._EvaluateVisitor_visitUnaryOperationExpression_closure2($async$temp3, $async$result));
  88682. // goto return
  88683. $async$goto = 1;
  88684. break;
  88685. case 1:
  88686. // return
  88687. return A._asyncReturn($async$returnValue, $async$completer);
  88688. }
  88689. });
  88690. return A._asyncStartSync($async$visitUnaryOperationExpression$1, $async$completer);
  88691. },
  88692. visitBooleanExpression$1(_, node) {
  88693. return this.visitBooleanExpression$body$_EvaluateVisitor0(0, node);
  88694. },
  88695. visitBooleanExpression$body$_EvaluateVisitor0(_, node) {
  88696. var $async$goto = 0,
  88697. $async$completer = A._makeAsyncAwaitCompleter(type$.SassBoolean_2),
  88698. $async$returnValue;
  88699. var $async$visitBooleanExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  88700. if ($async$errorCode === 1)
  88701. return A._asyncRethrow($async$result, $async$completer);
  88702. while (true)
  88703. switch ($async$goto) {
  88704. case 0:
  88705. // Function start
  88706. $async$returnValue = node.value ? B.SassBoolean_true0 : B.SassBoolean_false0;
  88707. // goto return
  88708. $async$goto = 1;
  88709. break;
  88710. case 1:
  88711. // return
  88712. return A._asyncReturn($async$returnValue, $async$completer);
  88713. }
  88714. });
  88715. return A._asyncStartSync($async$visitBooleanExpression$1, $async$completer);
  88716. },
  88717. visitIfExpression$1(_, node) {
  88718. return this.visitIfExpression$body$_EvaluateVisitor0(0, node);
  88719. },
  88720. visitIfExpression$body$_EvaluateVisitor0(_, node) {
  88721. var $async$goto = 0,
  88722. $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
  88723. $async$returnValue, $async$self = this, condition, t1, ifTrue, ifFalse, result, _0_0, positional, named;
  88724. var $async$visitIfExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  88725. if ($async$errorCode === 1)
  88726. return A._asyncRethrow($async$result, $async$completer);
  88727. while (true)
  88728. switch ($async$goto) {
  88729. case 0:
  88730. // Function start
  88731. $async$goto = 3;
  88732. return A._asyncAwait($async$self._async_evaluate0$_evaluateMacroArguments$1(node), $async$visitIfExpression$1);
  88733. case 3:
  88734. // returning from await.
  88735. _0_0 = $async$result;
  88736. positional = _0_0._0;
  88737. named = _0_0._1;
  88738. $async$self._async_evaluate0$_verifyArguments$4(J.get$length$asx(positional), named, $.$get$IfExpression_declaration0(), node);
  88739. condition = A.ListExtensions_elementAtOrNull(positional, 0);
  88740. if (condition == null) {
  88741. t1 = named.$index(0, "condition");
  88742. t1.toString;
  88743. condition = t1;
  88744. }
  88745. ifTrue = A.ListExtensions_elementAtOrNull(positional, 1);
  88746. if (ifTrue == null) {
  88747. t1 = named.$index(0, "if-true");
  88748. t1.toString;
  88749. ifTrue = t1;
  88750. }
  88751. ifFalse = A.ListExtensions_elementAtOrNull(positional, 2);
  88752. if (ifFalse == null) {
  88753. t1 = named.$index(0, "if-false");
  88754. t1.toString;
  88755. ifFalse = t1;
  88756. }
  88757. $async$goto = 4;
  88758. return A._asyncAwait(condition.accept$1($async$self), $async$visitIfExpression$1);
  88759. case 4:
  88760. // returning from await.
  88761. result = $async$result.get$isTruthy() ? ifTrue : ifFalse;
  88762. t1 = result.accept$1($async$self);
  88763. $async$goto = 5;
  88764. return A._asyncAwait(type$.Future_Value_2._is(t1) ? t1 : A._Future$value(t1, type$.Value_2), $async$visitIfExpression$1);
  88765. case 5:
  88766. // returning from await.
  88767. $async$returnValue = $async$self._async_evaluate0$_withoutSlash$2($async$result, $async$self._async_evaluate0$_expressionNode$1(result));
  88768. // goto return
  88769. $async$goto = 1;
  88770. break;
  88771. case 1:
  88772. // return
  88773. return A._asyncReturn($async$returnValue, $async$completer);
  88774. }
  88775. });
  88776. return A._asyncStartSync($async$visitIfExpression$1, $async$completer);
  88777. },
  88778. visitNullExpression$1(_, node) {
  88779. return this.visitNullExpression$body$_EvaluateVisitor0(0, node);
  88780. },
  88781. visitNullExpression$body$_EvaluateVisitor0(_, node) {
  88782. var $async$goto = 0,
  88783. $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
  88784. $async$returnValue;
  88785. var $async$visitNullExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  88786. if ($async$errorCode === 1)
  88787. return A._asyncRethrow($async$result, $async$completer);
  88788. while (true)
  88789. switch ($async$goto) {
  88790. case 0:
  88791. // Function start
  88792. $async$returnValue = B.C__SassNull0;
  88793. // goto return
  88794. $async$goto = 1;
  88795. break;
  88796. case 1:
  88797. // return
  88798. return A._asyncReturn($async$returnValue, $async$completer);
  88799. }
  88800. });
  88801. return A._asyncStartSync($async$visitNullExpression$1, $async$completer);
  88802. },
  88803. visitNumberExpression$1(_, node) {
  88804. return this.visitNumberExpression$body$_EvaluateVisitor0(0, node);
  88805. },
  88806. visitNumberExpression$body$_EvaluateVisitor0(_, node) {
  88807. var $async$goto = 0,
  88808. $async$completer = A._makeAsyncAwaitCompleter(type$.SassNumber_2),
  88809. $async$returnValue;
  88810. var $async$visitNumberExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  88811. if ($async$errorCode === 1)
  88812. return A._asyncRethrow($async$result, $async$completer);
  88813. while (true)
  88814. switch ($async$goto) {
  88815. case 0:
  88816. // Function start
  88817. $async$returnValue = A.SassNumber_SassNumber0(node.value, node.unit);
  88818. // goto return
  88819. $async$goto = 1;
  88820. break;
  88821. case 1:
  88822. // return
  88823. return A._asyncReturn($async$returnValue, $async$completer);
  88824. }
  88825. });
  88826. return A._asyncStartSync($async$visitNumberExpression$1, $async$completer);
  88827. },
  88828. visitParenthesizedExpression$1(_, node) {
  88829. var _this = this;
  88830. return _this._async_evaluate0$_assertInModule$2(_this._async_evaluate0$__stylesheet, "_stylesheet").plainCss ? A.throwExpression(_this._async_evaluate0$_exception$2("Parentheses aren't allowed in plain CSS.", node.span)) : node.expression.accept$1(_this);
  88831. },
  88832. visitColorExpression$1(_, node) {
  88833. return this.visitColorExpression$body$_EvaluateVisitor0(0, node);
  88834. },
  88835. visitColorExpression$body$_EvaluateVisitor0(_, node) {
  88836. var $async$goto = 0,
  88837. $async$completer = A._makeAsyncAwaitCompleter(type$.SassColor_2),
  88838. $async$returnValue;
  88839. var $async$visitColorExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  88840. if ($async$errorCode === 1)
  88841. return A._asyncRethrow($async$result, $async$completer);
  88842. while (true)
  88843. switch ($async$goto) {
  88844. case 0:
  88845. // Function start
  88846. $async$returnValue = node.value;
  88847. // goto return
  88848. $async$goto = 1;
  88849. break;
  88850. case 1:
  88851. // return
  88852. return A._asyncReturn($async$returnValue, $async$completer);
  88853. }
  88854. });
  88855. return A._asyncStartSync($async$visitColorExpression$1, $async$completer);
  88856. },
  88857. visitListExpression$1(_, node) {
  88858. return this.visitListExpression$body$_EvaluateVisitor0(0, node);
  88859. },
  88860. visitListExpression$body$_EvaluateVisitor0(_, node) {
  88861. var $async$goto = 0,
  88862. $async$completer = A._makeAsyncAwaitCompleter(type$.SassList_2),
  88863. $async$returnValue, $async$self = this, $async$temp1;
  88864. var $async$visitListExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  88865. if ($async$errorCode === 1)
  88866. return A._asyncRethrow($async$result, $async$completer);
  88867. while (true)
  88868. switch ($async$goto) {
  88869. case 0:
  88870. // Function start
  88871. $async$temp1 = A;
  88872. $async$goto = 3;
  88873. return A._asyncAwait(A.mapAsync0(node.contents, new A._EvaluateVisitor_visitListExpression_closure2($async$self), type$.Expression_2, type$.Value_2), $async$visitListExpression$1);
  88874. case 3:
  88875. // returning from await.
  88876. $async$returnValue = $async$temp1.SassList$0($async$result, node.separator, node.hasBrackets);
  88877. // goto return
  88878. $async$goto = 1;
  88879. break;
  88880. case 1:
  88881. // return
  88882. return A._asyncReturn($async$returnValue, $async$completer);
  88883. }
  88884. });
  88885. return A._asyncStartSync($async$visitListExpression$1, $async$completer);
  88886. },
  88887. visitMapExpression$1(_, node) {
  88888. return this.visitMapExpression$body$_EvaluateVisitor0(0, node);
  88889. },
  88890. visitMapExpression$body$_EvaluateVisitor0(_, node) {
  88891. var $async$goto = 0,
  88892. $async$completer = A._makeAsyncAwaitCompleter(type$.SassMap_2),
  88893. $async$returnValue, $async$self = this, t2, t3, _i, t4, key, value, keyValue, valueValue, oldValueSpan, t1, map, keyNodes;
  88894. var $async$visitMapExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  88895. if ($async$errorCode === 1)
  88896. return A._asyncRethrow($async$result, $async$completer);
  88897. while (true)
  88898. switch ($async$goto) {
  88899. case 0:
  88900. // Function start
  88901. t1 = type$.Value_2;
  88902. map = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  88903. keyNodes = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.AstNode_2);
  88904. t2 = node.pairs, t3 = t2.length, _i = 0;
  88905. case 3:
  88906. // for condition
  88907. if (!(_i < t3)) {
  88908. // goto after for
  88909. $async$goto = 5;
  88910. break;
  88911. }
  88912. t4 = t2[_i];
  88913. key = t4._0;
  88914. value = t4._1;
  88915. $async$goto = 6;
  88916. return A._asyncAwait(key.accept$1($async$self), $async$visitMapExpression$1);
  88917. case 6:
  88918. // returning from await.
  88919. keyValue = $async$result;
  88920. $async$goto = 7;
  88921. return A._asyncAwait(value.accept$1($async$self), $async$visitMapExpression$1);
  88922. case 7:
  88923. // returning from await.
  88924. valueValue = $async$result;
  88925. if (map.containsKey$1(keyValue)) {
  88926. t1 = keyNodes.$index(0, keyValue);
  88927. oldValueSpan = t1 == null ? null : t1.get$span(t1);
  88928. t1 = key.get$span(key);
  88929. t2 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
  88930. if (oldValueSpan != null)
  88931. t2.$indexSet(0, oldValueSpan, "first key");
  88932. throw A.wrapException(A.MultiSpanSassRuntimeException$0("Duplicate key.", t1, "second key", t2, $async$self._async_evaluate0$_stackTrace$1(key.get$span(key)), null));
  88933. }
  88934. map.$indexSet(0, keyValue, valueValue);
  88935. keyNodes.$indexSet(0, keyValue, key);
  88936. case 4:
  88937. // for update
  88938. ++_i;
  88939. // goto for condition
  88940. $async$goto = 3;
  88941. break;
  88942. case 5:
  88943. // after for
  88944. $async$returnValue = new A.SassMap0(A.ConstantMap_ConstantMap$from(map, t1, t1));
  88945. // goto return
  88946. $async$goto = 1;
  88947. break;
  88948. case 1:
  88949. // return
  88950. return A._asyncReturn($async$returnValue, $async$completer);
  88951. }
  88952. });
  88953. return A._asyncStartSync($async$visitMapExpression$1, $async$completer);
  88954. },
  88955. visitFunctionExpression$1(_, node) {
  88956. return this.visitFunctionExpression$body$_EvaluateVisitor0(0, node);
  88957. },
  88958. visitFunctionExpression$body$_EvaluateVisitor0(_, node) {
  88959. var $async$goto = 0,
  88960. $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
  88961. $async$returnValue, $async$self = this, t2, _0_0, t3, t4, oldInFunction, result, t1, $function;
  88962. var $async$visitFunctionExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  88963. if ($async$errorCode === 1)
  88964. return A._asyncRethrow($async$result, $async$completer);
  88965. while (true)
  88966. switch ($async$goto) {
  88967. case 0:
  88968. // Function start
  88969. t1 = {};
  88970. $function = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__stylesheet, "_stylesheet").plainCss ? null : $async$self._async_evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitFunctionExpression_closure8($async$self, node));
  88971. t1.$function = $function;
  88972. $async$goto = $function == null ? 3 : 5;
  88973. break;
  88974. case 3:
  88975. // then
  88976. if (node.namespace != null)
  88977. throw A.wrapException($async$self._async_evaluate0$_exception$2("Undefined function.", node.span));
  88978. t2 = node.name;
  88979. _0_0 = t2.toLowerCase();
  88980. if ("min" === _0_0 || "max" === _0_0 || "round" === _0_0 || "abs" === _0_0) {
  88981. t3 = node.$arguments;
  88982. t4 = t3.named;
  88983. t3 = t4.get$isEmpty(t4) && t3.rest == null && B.JSArray_methods.every$1(t3.positional, new A._EvaluateVisitor_visitFunctionExpression_closure9());
  88984. } else
  88985. t3 = false;
  88986. $async$goto = t3 ? 6 : 7;
  88987. break;
  88988. case 6:
  88989. // then
  88990. $async$goto = 8;
  88991. return A._asyncAwait($async$self._async_evaluate0$_visitCalculation$2$inLegacySassFunction(node, true), $async$visitFunctionExpression$1);
  88992. case 8:
  88993. // returning from await.
  88994. $async$returnValue = $async$result;
  88995. // goto return
  88996. $async$goto = 1;
  88997. break;
  88998. case 7:
  88999. // join
  89000. $async$goto = "calc" === _0_0 || "clamp" === _0_0 || "hypot" === _0_0 || "sin" === _0_0 || "cos" === _0_0 || "tan" === _0_0 || "asin" === _0_0 || "acos" === _0_0 || "atan" === _0_0 || "sqrt" === _0_0 || "exp" === _0_0 || "sign" === _0_0 || "mod" === _0_0 || "rem" === _0_0 || "atan2" === _0_0 || "pow" === _0_0 || "log" === _0_0 ? 9 : 10;
  89001. break;
  89002. case 9:
  89003. // then
  89004. $async$goto = 11;
  89005. return A._asyncAwait($async$self._async_evaluate0$_visitCalculation$1(node), $async$visitFunctionExpression$1);
  89006. case 11:
  89007. // returning from await.
  89008. $async$returnValue = $async$result;
  89009. // goto return
  89010. $async$goto = 1;
  89011. break;
  89012. case 10:
  89013. // join
  89014. $function = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__stylesheet, "_stylesheet").plainCss ? null : $async$self._async_evaluate0$_builtInFunctions.$index(0, t2);
  89015. t2 = t1.$function = $function == null ? new A.PlainCssCallable0(node.originalName) : $function;
  89016. // goto join
  89017. $async$goto = 4;
  89018. break;
  89019. case 5:
  89020. // else
  89021. t2 = $function;
  89022. case 4:
  89023. // join
  89024. if (B.JSString_methods.startsWith$1(node.originalName, "--") && t2 instanceof A.UserDefinedCallable0 && !B.JSString_methods.startsWith$1(t2.declaration.originalName, "--"))
  89025. $async$self._async_evaluate0$_warn$3(string$.Sassx20_ff, node.get$nameSpan(), B.Deprecation_omC);
  89026. oldInFunction = $async$self._async_evaluate0$_inFunction;
  89027. $async$self._async_evaluate0$_inFunction = true;
  89028. $async$goto = 12;
  89029. return A._asyncAwait($async$self._async_evaluate0$_addErrorSpan$1$2(node, new A._EvaluateVisitor_visitFunctionExpression_closure10(t1, $async$self, node), type$.Value_2), $async$visitFunctionExpression$1);
  89030. case 12:
  89031. // returning from await.
  89032. result = $async$result;
  89033. $async$self._async_evaluate0$_inFunction = oldInFunction;
  89034. $async$returnValue = result;
  89035. // goto return
  89036. $async$goto = 1;
  89037. break;
  89038. case 1:
  89039. // return
  89040. return A._asyncReturn($async$returnValue, $async$completer);
  89041. }
  89042. });
  89043. return A._asyncStartSync($async$visitFunctionExpression$1, $async$completer);
  89044. },
  89045. _async_evaluate0$_visitCalculation$2$inLegacySassFunction(node, inLegacySassFunction) {
  89046. return this._visitCalculation$body$_EvaluateVisitor0(node, inLegacySassFunction);
  89047. },
  89048. _async_evaluate0$_visitCalculation$1(node) {
  89049. return this._async_evaluate0$_visitCalculation$2$inLegacySassFunction(node, false);
  89050. },
  89051. _visitCalculation$body$_EvaluateVisitor0(node, inLegacySassFunction) {
  89052. var $async$goto = 0,
  89053. $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
  89054. $async$returnValue, $async$next = [], $async$self = this, $arguments, oldCallableNode, t1, _0_0, error, stackTrace, t4, _i, exception, t2, t3, $async$temp1;
  89055. var $async$_async_evaluate0$_visitCalculation$2$inLegacySassFunction = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  89056. if ($async$errorCode === 1)
  89057. return A._asyncRethrow($async$result, $async$completer);
  89058. while (true)
  89059. switch ($async$goto) {
  89060. case 0:
  89061. // Function start
  89062. t2 = node.$arguments;
  89063. t3 = t2.named;
  89064. if (t3.get$isNotEmpty(t3))
  89065. throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Keywor, node.span));
  89066. else if (t2.rest != null)
  89067. throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Rest_a, node.span));
  89068. $async$self._async_evaluate0$_checkCalculationArguments$1(node);
  89069. t3 = A._setArrayType([], type$.JSArray_Object);
  89070. t2 = t2.positional, t4 = t2.length, _i = 0;
  89071. case 3:
  89072. // for condition
  89073. if (!(_i < t4)) {
  89074. // goto after for
  89075. $async$goto = 5;
  89076. break;
  89077. }
  89078. $async$temp1 = t3;
  89079. $async$goto = 6;
  89080. return A._asyncAwait($async$self._async_evaluate0$_visitCalculationExpression$2$inLegacySassFunction(t2[_i], inLegacySassFunction), $async$_async_evaluate0$_visitCalculation$2$inLegacySassFunction);
  89081. case 6:
  89082. // returning from await.
  89083. $async$temp1.push($async$result);
  89084. case 4:
  89085. // for update
  89086. ++_i;
  89087. // goto for condition
  89088. $async$goto = 3;
  89089. break;
  89090. case 5:
  89091. // after for
  89092. $arguments = t3;
  89093. if ($async$self._async_evaluate0$_inSupportsDeclaration) {
  89094. $async$returnValue = new A.SassCalculation0(node.name, A.List_List$unmodifiable($arguments, type$.Object));
  89095. // goto return
  89096. $async$goto = 1;
  89097. break;
  89098. }
  89099. oldCallableNode = $async$self._async_evaluate0$_callableNode;
  89100. $async$self._async_evaluate0$_callableNode = node;
  89101. try {
  89102. t1 = null;
  89103. t3 = node.name;
  89104. _0_0 = t3.toLowerCase();
  89105. $label0$0: {
  89106. if ("calc" === _0_0) {
  89107. t1 = A.SassCalculation_calc0(J.$index$asx($arguments, 0));
  89108. break $label0$0;
  89109. }
  89110. if ("sqrt" === _0_0) {
  89111. t1 = A.SassCalculation__singleArgument0("sqrt", J.$index$asx($arguments, 0), A.number2__sqrt$closure(), true);
  89112. break $label0$0;
  89113. }
  89114. if ("sin" === _0_0) {
  89115. t1 = A.SassCalculation__singleArgument0("sin", J.$index$asx($arguments, 0), A.number2__sin$closure(), false);
  89116. break $label0$0;
  89117. }
  89118. if ("cos" === _0_0) {
  89119. t1 = A.SassCalculation__singleArgument0("cos", J.$index$asx($arguments, 0), A.number2__cos$closure(), false);
  89120. break $label0$0;
  89121. }
  89122. if ("tan" === _0_0) {
  89123. t1 = A.SassCalculation__singleArgument0("tan", J.$index$asx($arguments, 0), A.number2__tan$closure(), false);
  89124. break $label0$0;
  89125. }
  89126. if ("asin" === _0_0) {
  89127. t1 = A.SassCalculation__singleArgument0("asin", J.$index$asx($arguments, 0), A.number2__asin$closure(), true);
  89128. break $label0$0;
  89129. }
  89130. if ("acos" === _0_0) {
  89131. t1 = A.SassCalculation__singleArgument0("acos", J.$index$asx($arguments, 0), A.number2__acos$closure(), true);
  89132. break $label0$0;
  89133. }
  89134. if ("atan" === _0_0) {
  89135. t1 = A.SassCalculation__singleArgument0("atan", J.$index$asx($arguments, 0), A.number2__atan$closure(), true);
  89136. break $label0$0;
  89137. }
  89138. if ("abs" === _0_0) {
  89139. t1 = A.SassCalculation_abs0(J.$index$asx($arguments, 0));
  89140. break $label0$0;
  89141. }
  89142. if ("exp" === _0_0) {
  89143. t1 = A.SassCalculation_exp0(J.$index$asx($arguments, 0));
  89144. break $label0$0;
  89145. }
  89146. if ("sign" === _0_0) {
  89147. t1 = A.SassCalculation_sign0(J.$index$asx($arguments, 0));
  89148. break $label0$0;
  89149. }
  89150. if ("min" === _0_0) {
  89151. t1 = A.SassCalculation_min0($arguments);
  89152. break $label0$0;
  89153. }
  89154. if ("max" === _0_0) {
  89155. t1 = A.SassCalculation_max0($arguments);
  89156. break $label0$0;
  89157. }
  89158. if ("hypot" === _0_0) {
  89159. t1 = A.SassCalculation_hypot0($arguments);
  89160. break $label0$0;
  89161. }
  89162. if ("pow" === _0_0) {
  89163. t1 = A.SassCalculation_pow0(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1));
  89164. break $label0$0;
  89165. }
  89166. if ("atan2" === _0_0) {
  89167. t1 = A.SassCalculation_atan20(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1));
  89168. break $label0$0;
  89169. }
  89170. if ("log" === _0_0) {
  89171. t1 = A.SassCalculation_log0(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1));
  89172. break $label0$0;
  89173. }
  89174. if ("mod" === _0_0) {
  89175. t1 = A.SassCalculation_mod0(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1));
  89176. break $label0$0;
  89177. }
  89178. if ("rem" === _0_0) {
  89179. t1 = A.SassCalculation_rem0(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1));
  89180. break $label0$0;
  89181. }
  89182. if ("round" === _0_0) {
  89183. t1 = A.SassCalculation_round0(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1), A.ListExtensions_elementAtOrNull($arguments, 2));
  89184. break $label0$0;
  89185. }
  89186. if ("clamp" === _0_0) {
  89187. t1 = A.SassCalculation_clamp0(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1), A.ListExtensions_elementAtOrNull($arguments, 2));
  89188. break $label0$0;
  89189. }
  89190. t3 = A.UnsupportedError$('Unknown calculation name "' + t3 + '".');
  89191. t1 = A.throwExpression(t3);
  89192. }
  89193. t1 = t1;
  89194. $async$returnValue = t1;
  89195. // goto return
  89196. $async$goto = 1;
  89197. break;
  89198. } catch (exception) {
  89199. t1 = A.unwrapException(exception);
  89200. if (t1 instanceof A.SassScriptException0) {
  89201. error = t1;
  89202. stackTrace = A.getTraceFromException(exception);
  89203. if (B.JSString_methods.contains$1(error.message, "compatible"))
  89204. $async$self._async_evaluate0$_verifyCompatibleNumbers$2($arguments, t2);
  89205. A.throwWithTrace0($async$self._async_evaluate0$_exception$2(error.message, node.span), error, stackTrace);
  89206. } else
  89207. throw exception;
  89208. } finally {
  89209. $async$self._async_evaluate0$_callableNode = oldCallableNode;
  89210. }
  89211. case 1:
  89212. // return
  89213. return A._asyncReturn($async$returnValue, $async$completer);
  89214. }
  89215. });
  89216. return A._asyncStartSync($async$_async_evaluate0$_visitCalculation$2$inLegacySassFunction, $async$completer);
  89217. },
  89218. _async_evaluate0$_checkCalculationArguments$1(node) {
  89219. var t1, _0_0,
  89220. check = new A._EvaluateVisitor__checkCalculationArguments_check2(this, node);
  89221. $label0$0: {
  89222. t1 = node.name;
  89223. _0_0 = t1.toLowerCase();
  89224. if ("calc" === _0_0 || "sqrt" === _0_0 || "sin" === _0_0 || "cos" === _0_0 || "tan" === _0_0 || "asin" === _0_0 || "acos" === _0_0 || "atan" === _0_0 || "abs" === _0_0 || "exp" === _0_0 || "sign" === _0_0) {
  89225. check.call$1(1);
  89226. break $label0$0;
  89227. }
  89228. if ("min" === _0_0 || "max" === _0_0 || "hypot" === _0_0) {
  89229. check.call$0();
  89230. break $label0$0;
  89231. }
  89232. if ("pow" === _0_0 || "atan2" === _0_0 || "log" === _0_0 || "mod" === _0_0 || "rem" === _0_0) {
  89233. check.call$1(2);
  89234. break $label0$0;
  89235. }
  89236. if ("round" === _0_0 || "clamp" === _0_0) {
  89237. check.call$1(3);
  89238. break $label0$0;
  89239. }
  89240. throw A.wrapException(A.UnsupportedError$('Unknown calculation name "' + t1 + '".'));
  89241. }
  89242. },
  89243. _async_evaluate0$_verifyCompatibleNumbers$2(args, nodesWithSpans) {
  89244. var i, t1, _0_0, arg, number1, j, number2;
  89245. for (i = 0; t1 = args.length, i < t1; ++i) {
  89246. _0_0 = args[i];
  89247. if (_0_0 instanceof A.SassNumber0) {
  89248. t1 = _0_0.get$hasComplexUnits();
  89249. arg = _0_0;
  89250. } else {
  89251. arg = null;
  89252. t1 = false;
  89253. }
  89254. if (t1)
  89255. throw A.wrapException(this._async_evaluate0$_exception$2("Number " + A.S(arg) + " isn't compatible with CSS calculations.", J.get$span$z(nodesWithSpans[i])));
  89256. }
  89257. for (i = 0; i < t1 - 1; ++i) {
  89258. number1 = args[i];
  89259. if (!(number1 instanceof A.SassNumber0))
  89260. continue;
  89261. for (j = i + 1; t1 = args.length, j < t1; ++j) {
  89262. number2 = args[j];
  89263. if (!(number2 instanceof A.SassNumber0))
  89264. continue;
  89265. if (number1.hasPossiblyCompatibleUnits$1(number2))
  89266. continue;
  89267. throw A.wrapException(A.MultiSpanSassRuntimeException$0(number1.toString$0(0) + " and " + number2.toString$0(0) + " are incompatible.", J.get$span$z(nodesWithSpans[i]), number1.toString$0(0), A.LinkedHashMap_LinkedHashMap$_literal([J.get$span$z(nodesWithSpans[j]), number2.toString$0(0)], type$.FileSpan, type$.String), this._async_evaluate0$_stackTrace$1(J.get$span$z(nodesWithSpans[i])), null));
  89268. }
  89269. }
  89270. },
  89271. _async_evaluate0$_visitCalculationExpression$2$inLegacySassFunction(node, inLegacySassFunction) {
  89272. return this._visitCalculationExpression$body$_EvaluateVisitor0(node, inLegacySassFunction);
  89273. },
  89274. _visitCalculationExpression$body$_EvaluateVisitor0(node, inLegacySassFunction) {
  89275. var $async$goto = 0,
  89276. $async$completer = A._makeAsyncAwaitCompleter(type$.Object),
  89277. $async$returnValue, $async$self = this, result, t2, _0_0, _1_0, t3, _i, i, _box_0, t1, inner, $async$temp1;
  89278. var $async$_async_evaluate0$_visitCalculationExpression$2$inLegacySassFunction = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  89279. if ($async$errorCode === 1)
  89280. return A._asyncRethrow($async$result, $async$completer);
  89281. while (true)
  89282. switch ($async$goto) {
  89283. case 0:
  89284. // Function start
  89285. _box_0 = {};
  89286. t1 = node instanceof A.ParenthesizedExpression0;
  89287. inner = t1 ? node.expression : null;
  89288. $async$goto = t1 ? 3 : 4;
  89289. break;
  89290. case 3:
  89291. // then
  89292. $async$goto = 5;
  89293. return A._asyncAwait($async$self._async_evaluate0$_visitCalculationExpression$2$inLegacySassFunction(inner, inLegacySassFunction), $async$_async_evaluate0$_visitCalculationExpression$2$inLegacySassFunction);
  89294. case 5:
  89295. // returning from await.
  89296. result = $async$result;
  89297. $async$returnValue = result instanceof A.SassString0 ? new A.SassString0("(" + result._string0$_text + ")", false) : result;
  89298. // goto return
  89299. $async$goto = 1;
  89300. break;
  89301. case 4:
  89302. // join
  89303. $async$goto = node instanceof A.StringExpression0 && node.accept$1(B.C_IsCalculationSafeVisitor0) ? 6 : 7;
  89304. break;
  89305. case 6:
  89306. // then
  89307. t1 = node.text;
  89308. t2 = t1.get$asPlain();
  89309. _0_0 = t2 == null ? null : t2.toLowerCase();
  89310. if ("pi" === _0_0) {
  89311. t1 = A.SassNumber_SassNumber0(3.141592653589793, null);
  89312. // goto break $label0$0
  89313. $async$goto = 8;
  89314. break;
  89315. }
  89316. if ("e" === _0_0) {
  89317. t1 = A.SassNumber_SassNumber0(2.718281828459045, null);
  89318. // goto break $label0$0
  89319. $async$goto = 8;
  89320. break;
  89321. }
  89322. if ("infinity" === _0_0) {
  89323. t1 = A.SassNumber_SassNumber0(1 / 0, null);
  89324. // goto break $label0$0
  89325. $async$goto = 8;
  89326. break;
  89327. }
  89328. if ("-infinity" === _0_0) {
  89329. t1 = A.SassNumber_SassNumber0(-1 / 0, null);
  89330. // goto break $label0$0
  89331. $async$goto = 8;
  89332. break;
  89333. }
  89334. if ("nan" === _0_0) {
  89335. t1 = A.SassNumber_SassNumber0(0 / 0, null);
  89336. // goto break $label0$0
  89337. $async$goto = 8;
  89338. break;
  89339. }
  89340. $async$temp1 = A;
  89341. $async$goto = 9;
  89342. return A._asyncAwait($async$self._async_evaluate0$_performInterpolation$1(t1), $async$_async_evaluate0$_visitCalculationExpression$2$inLegacySassFunction);
  89343. case 9:
  89344. // returning from await.
  89345. t1 = new $async$temp1.SassString0($async$result, false);
  89346. // goto break $label0$0
  89347. $async$goto = 8;
  89348. break;
  89349. case 8:
  89350. // break $label0$0
  89351. $async$returnValue = t1;
  89352. // goto return
  89353. $async$goto = 1;
  89354. break;
  89355. case 7:
  89356. // join
  89357. _box_0.right = _box_0.left = _box_0.operator = null;
  89358. t1 = node instanceof A.BinaryOperationExpression0;
  89359. if (t1) {
  89360. _box_0.operator = node.operator;
  89361. _box_0.left = node.left;
  89362. _box_0.right = node.right;
  89363. }
  89364. $async$goto = t1 ? 10 : 11;
  89365. break;
  89366. case 10:
  89367. // then
  89368. $async$self._async_evaluate0$_checkWhitespaceAroundCalculationOperator$1(node);
  89369. $async$goto = 12;
  89370. return A._asyncAwait($async$self._async_evaluate0$_addExceptionSpanAsync$1$2(node, new A._EvaluateVisitor__visitCalculationExpression_closure2(_box_0, $async$self, node, inLegacySassFunction), type$.Object), $async$_async_evaluate0$_visitCalculationExpression$2$inLegacySassFunction);
  89371. case 12:
  89372. // returning from await.
  89373. $async$returnValue = $async$result;
  89374. // goto return
  89375. $async$goto = 1;
  89376. break;
  89377. case 11:
  89378. // join
  89379. $async$goto = node instanceof A.NumberExpression0 || node instanceof A.VariableExpression0 || node instanceof A.FunctionExpression0 || node instanceof A.IfExpression0 ? 13 : 14;
  89380. break;
  89381. case 13:
  89382. // then
  89383. $async$goto = 15;
  89384. return A._asyncAwait(node.accept$1($async$self), $async$_async_evaluate0$_visitCalculationExpression$2$inLegacySassFunction);
  89385. case 15:
  89386. // returning from await.
  89387. _1_0 = $async$result;
  89388. $label1$1: {
  89389. if (_1_0 instanceof A.SassNumber0) {
  89390. t1 = _1_0;
  89391. break $label1$1;
  89392. }
  89393. if (_1_0 instanceof A.SassCalculation0) {
  89394. t1 = _1_0;
  89395. break $label1$1;
  89396. }
  89397. if (_1_0 instanceof A.SassString0) {
  89398. t1 = !_1_0._string0$_hasQuotes;
  89399. result = _1_0;
  89400. } else {
  89401. result = null;
  89402. t1 = false;
  89403. }
  89404. if (t1) {
  89405. t1 = result;
  89406. break $label1$1;
  89407. }
  89408. t1 = A.throwExpression($async$self._async_evaluate0$_exception$2("Value " + _1_0.toString$0(0) + " can't be used in a calculation.", node.get$span(node)));
  89409. }
  89410. $async$returnValue = t1;
  89411. // goto return
  89412. $async$goto = 1;
  89413. break;
  89414. case 14:
  89415. // join
  89416. $async$goto = node instanceof A.ListExpression0 && !node.hasBrackets && B.ListSeparator_nbm0 === node.separator && node.contents.length >= 2 ? 16 : 17;
  89417. break;
  89418. case 16:
  89419. // then
  89420. t1 = A._setArrayType([], type$.JSArray_Object);
  89421. t2 = node.contents, t3 = t2.length, _i = 0;
  89422. case 18:
  89423. // for condition
  89424. if (!(_i < t3)) {
  89425. // goto after for
  89426. $async$goto = 20;
  89427. break;
  89428. }
  89429. $async$temp1 = t1;
  89430. $async$goto = 21;
  89431. return A._asyncAwait($async$self._async_evaluate0$_visitCalculationExpression$2$inLegacySassFunction(t2[_i], inLegacySassFunction), $async$_async_evaluate0$_visitCalculationExpression$2$inLegacySassFunction);
  89432. case 21:
  89433. // returning from await.
  89434. $async$temp1.push($async$result);
  89435. case 19:
  89436. // for update
  89437. ++_i;
  89438. // goto for condition
  89439. $async$goto = 18;
  89440. break;
  89441. case 20:
  89442. // after for
  89443. $async$self._async_evaluate0$_checkAdjacentCalculationValues$2(t1, node);
  89444. for (i = 0; i < t1.length; ++i) {
  89445. t3 = t1[i];
  89446. if (t3 instanceof A.CalculationOperation0 && t2[i] instanceof A.ParenthesizedExpression0)
  89447. t1[i] = new A.SassString0("(" + A.S(t3) + ")", false);
  89448. }
  89449. $async$returnValue = new A.SassString0(B.JSArray_methods.join$1(t1, " "), false);
  89450. // goto return
  89451. $async$goto = 1;
  89452. break;
  89453. case 17:
  89454. // join
  89455. throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.This_e, node.get$span(node)));
  89456. case 1:
  89457. // return
  89458. return A._asyncReturn($async$returnValue, $async$completer);
  89459. }
  89460. });
  89461. return A._asyncStartSync($async$_async_evaluate0$_visitCalculationExpression$2$inLegacySassFunction, $async$completer);
  89462. },
  89463. _async_evaluate0$_checkWhitespaceAroundCalculationOperator$1(node) {
  89464. var t2, t3, t4, textBetweenOperands, first, last,
  89465. t1 = node.operator;
  89466. if (t1 !== B.BinaryOperator_u150 && t1 !== B.BinaryOperator_SjO0)
  89467. return;
  89468. t1 = node.left;
  89469. t2 = t1.get$span(t1);
  89470. t2 = t2.get$file(t2);
  89471. t3 = node.right;
  89472. t4 = t3.get$span(t3);
  89473. if (t2 !== t4.get$file(t4))
  89474. return;
  89475. t2 = t1.get$span(t1);
  89476. t2 = t2.get$end(t2);
  89477. t4 = t3.get$span(t3);
  89478. if (t2.offset >= t4.get$start(t4).offset)
  89479. return;
  89480. t2 = t1.get$span(t1);
  89481. t2 = t2.get$file(t2);
  89482. t1 = t1.get$span(t1);
  89483. t1 = t1.get$end(t1);
  89484. t3 = t3.get$span(t3);
  89485. textBetweenOperands = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t2._decodedChars, t1.offset, t3.get$start(t3).offset), 0, null);
  89486. first = textBetweenOperands.charCodeAt(0);
  89487. last = textBetweenOperands.charCodeAt(textBetweenOperands.length - 1);
  89488. if (first === 32 || first === 9 || first === 10 || first === 13 || first === 12 || first === 47)
  89489. t1 = !(last === 32 || last === 9 || last === 10 || last === 13 || last === 12 || last === 47);
  89490. else
  89491. t1 = true;
  89492. if (t1)
  89493. throw A.wrapException(this._async_evaluate0$_exception$2(string$.x22x2b__an, node.get$operatorSpan()));
  89494. },
  89495. _async_evaluate0$_binaryOperatorToCalculationOperator$2(operator, node) {
  89496. var t1;
  89497. $label0$0: {
  89498. if (B.BinaryOperator_u150 === operator) {
  89499. t1 = B.CalculationOperator_g2q0;
  89500. break $label0$0;
  89501. }
  89502. if (B.BinaryOperator_SjO0 === operator) {
  89503. t1 = B.CalculationOperator_CxF0;
  89504. break $label0$0;
  89505. }
  89506. if (B.BinaryOperator_2No0 === operator) {
  89507. t1 = B.CalculationOperator_1710;
  89508. break $label0$0;
  89509. }
  89510. if (B.BinaryOperator_U770 === operator) {
  89511. t1 = B.CalculationOperator_Qf10;
  89512. break $label0$0;
  89513. }
  89514. t1 = A.throwExpression(this._async_evaluate0$_exception$2(string$.This_o, node.get$operatorSpan()));
  89515. }
  89516. return t1;
  89517. },
  89518. _async_evaluate0$_checkAdjacentCalculationValues$2(elements, node) {
  89519. var t1, i, t2, previous, current, previousNode, currentNode, _0_2;
  89520. for (t1 = elements.length, i = 1; i < t1; ++i) {
  89521. t2 = i - 1;
  89522. previous = elements[t2];
  89523. current = elements[i];
  89524. if (previous instanceof A.SassString0 || current instanceof A.SassString0)
  89525. continue;
  89526. t1 = node.contents;
  89527. previousNode = t1[t2];
  89528. currentNode = t1[i];
  89529. if (currentNode instanceof A.UnaryOperationExpression0) {
  89530. _0_2 = currentNode.operator;
  89531. if (B.UnaryOperator_AiQ0 !== _0_2)
  89532. t1 = B.UnaryOperator_cLp0 === _0_2;
  89533. else
  89534. t1 = true;
  89535. } else
  89536. t1 = false;
  89537. if (!t1)
  89538. t1 = currentNode instanceof A.NumberExpression0 && currentNode.value < 0;
  89539. else
  89540. t1 = true;
  89541. if (t1)
  89542. throw A.wrapException(this._async_evaluate0$_exception$2(string$.x22x2b__an, A.FileSpanExtension_subspan(currentNode.get$span(currentNode), 0, 1)));
  89543. else
  89544. throw A.wrapException(this._async_evaluate0$_exception$2("Missing math operator.", previousNode.get$span(previousNode).expand$1(0, currentNode.get$span(currentNode))));
  89545. }
  89546. },
  89547. visitInterpolatedFunctionExpression$1(_, node) {
  89548. return this.visitInterpolatedFunctionExpression$body$_EvaluateVisitor0(0, node);
  89549. },
  89550. visitInterpolatedFunctionExpression$body$_EvaluateVisitor0(_, node) {
  89551. var $async$goto = 0,
  89552. $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
  89553. $async$returnValue, $async$self = this, result, t1, oldInFunction;
  89554. var $async$visitInterpolatedFunctionExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  89555. if ($async$errorCode === 1)
  89556. return A._asyncRethrow($async$result, $async$completer);
  89557. while (true)
  89558. switch ($async$goto) {
  89559. case 0:
  89560. // Function start
  89561. $async$goto = 3;
  89562. return A._asyncAwait($async$self._async_evaluate0$_performInterpolation$1(node.name), $async$visitInterpolatedFunctionExpression$1);
  89563. case 3:
  89564. // returning from await.
  89565. t1 = $async$result;
  89566. oldInFunction = $async$self._async_evaluate0$_inFunction;
  89567. $async$self._async_evaluate0$_inFunction = true;
  89568. $async$goto = 4;
  89569. return A._asyncAwait($async$self._async_evaluate0$_addErrorSpan$1$2(node, new A._EvaluateVisitor_visitInterpolatedFunctionExpression_closure2($async$self, node, new A.PlainCssCallable0(t1)), type$.Value_2), $async$visitInterpolatedFunctionExpression$1);
  89570. case 4:
  89571. // returning from await.
  89572. result = $async$result;
  89573. $async$self._async_evaluate0$_inFunction = oldInFunction;
  89574. $async$returnValue = result;
  89575. // goto return
  89576. $async$goto = 1;
  89577. break;
  89578. case 1:
  89579. // return
  89580. return A._asyncReturn($async$returnValue, $async$completer);
  89581. }
  89582. });
  89583. return A._asyncStartSync($async$visitInterpolatedFunctionExpression$1, $async$completer);
  89584. },
  89585. _async_evaluate0$_runUserDefinedCallable$1$4($arguments, callable, nodeWithSpan, run, $V) {
  89586. return this._runUserDefinedCallable$body$_EvaluateVisitor0($arguments, callable, nodeWithSpan, run, $V, $V);
  89587. },
  89588. _runUserDefinedCallable$body$_EvaluateVisitor0($arguments, callable, nodeWithSpan, run, $V, $async$type) {
  89589. var $async$goto = 0,
  89590. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  89591. $async$returnValue, $async$self = this, oldCallable, result, evaluated, $name;
  89592. var $async$_async_evaluate0$_runUserDefinedCallable$1$4 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  89593. if ($async$errorCode === 1)
  89594. return A._asyncRethrow($async$result, $async$completer);
  89595. while (true)
  89596. switch ($async$goto) {
  89597. case 0:
  89598. // Function start
  89599. $async$goto = 3;
  89600. return A._asyncAwait($async$self._async_evaluate0$_evaluateArguments$1($arguments), $async$_async_evaluate0$_runUserDefinedCallable$1$4);
  89601. case 3:
  89602. // returning from await.
  89603. evaluated = $async$result;
  89604. $name = callable.declaration.name;
  89605. if ($name !== "@content")
  89606. $name += "()";
  89607. oldCallable = $async$self._async_evaluate0$_currentCallable;
  89608. $async$self._async_evaluate0$_currentCallable = callable;
  89609. $async$goto = 4;
  89610. return A._asyncAwait($async$self._async_evaluate0$_withStackFrame$1$3($name, nodeWithSpan, new A._EvaluateVisitor__runUserDefinedCallable_closure2($async$self, callable, evaluated, nodeWithSpan, run, $V), $V), $async$_async_evaluate0$_runUserDefinedCallable$1$4);
  89611. case 4:
  89612. // returning from await.
  89613. result = $async$result;
  89614. $async$self._async_evaluate0$_currentCallable = oldCallable;
  89615. $async$returnValue = result;
  89616. // goto return
  89617. $async$goto = 1;
  89618. break;
  89619. case 1:
  89620. // return
  89621. return A._asyncReturn($async$returnValue, $async$completer);
  89622. }
  89623. });
  89624. return A._asyncStartSync($async$_async_evaluate0$_runUserDefinedCallable$1$4, $async$completer);
  89625. },
  89626. _async_evaluate0$_runFunctionCallable$3($arguments, callable, nodeWithSpan) {
  89627. return this._runFunctionCallable$body$_EvaluateVisitor0($arguments, callable, nodeWithSpan);
  89628. },
  89629. _runFunctionCallable$body$_EvaluateVisitor0($arguments, callable, nodeWithSpan) {
  89630. var $async$goto = 0,
  89631. $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
  89632. $async$returnValue, $async$handler = 2, $async$currentError, $async$self = this, buffer, first, argument, restArg, rest, error, t1, t2, _i, t3, t4, exception, $async$exception, $async$temp1;
  89633. var $async$_async_evaluate0$_runFunctionCallable$3 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  89634. if ($async$errorCode === 1) {
  89635. $async$currentError = $async$result;
  89636. $async$goto = $async$handler;
  89637. }
  89638. while (true)
  89639. switch ($async$goto) {
  89640. case 0:
  89641. // Function start
  89642. $async$goto = type$.AsyncBuiltInCallable_2._is(callable) ? 3 : 5;
  89643. break;
  89644. case 3:
  89645. // then
  89646. $async$goto = 6;
  89647. return A._asyncAwait($async$self._async_evaluate0$_runBuiltInCallable$3($arguments, callable, nodeWithSpan), $async$_async_evaluate0$_runFunctionCallable$3);
  89648. case 6:
  89649. // returning from await.
  89650. $async$returnValue = $async$self._async_evaluate0$_withoutSlash$2($async$result, nodeWithSpan);
  89651. // goto return
  89652. $async$goto = 1;
  89653. break;
  89654. // goto join
  89655. $async$goto = 4;
  89656. break;
  89657. case 5:
  89658. // else
  89659. $async$goto = type$.UserDefinedCallable_AsyncEnvironment_2._is(callable) ? 7 : 9;
  89660. break;
  89661. case 7:
  89662. // then
  89663. $async$goto = 10;
  89664. return A._asyncAwait($async$self._async_evaluate0$_runUserDefinedCallable$1$4($arguments, callable, nodeWithSpan, new A._EvaluateVisitor__runFunctionCallable_closure2($async$self, callable), type$.Value_2), $async$_async_evaluate0$_runFunctionCallable$3);
  89665. case 10:
  89666. // returning from await.
  89667. $async$returnValue = $async$result;
  89668. // goto return
  89669. $async$goto = 1;
  89670. break;
  89671. // goto join
  89672. $async$goto = 8;
  89673. break;
  89674. case 9:
  89675. // else
  89676. $async$goto = callable instanceof A.PlainCssCallable0 ? 11 : 13;
  89677. break;
  89678. case 11:
  89679. // then
  89680. t1 = $arguments.named;
  89681. if (t1.get$isNotEmpty(t1) || $arguments.keywordRest != null)
  89682. throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Plain_, nodeWithSpan.get$span(nodeWithSpan)));
  89683. buffer = new A.StringBuffer(callable.name + "(");
  89684. $async$handler = 15;
  89685. first = true;
  89686. t1 = $arguments.positional, t2 = t1.length, _i = 0;
  89687. case 18:
  89688. // for condition
  89689. if (!(_i < t2)) {
  89690. // goto after for
  89691. $async$goto = 20;
  89692. break;
  89693. }
  89694. argument = t1[_i];
  89695. if (first)
  89696. first = false;
  89697. else
  89698. buffer._contents += ", ";
  89699. t3 = buffer;
  89700. $async$temp1 = A;
  89701. $async$goto = 21;
  89702. return A._asyncAwait($async$self._async_evaluate0$_evaluateToCss$1(argument), $async$_async_evaluate0$_runFunctionCallable$3);
  89703. case 21:
  89704. // returning from await.
  89705. t4 = $async$temp1.S($async$result);
  89706. t3._contents += t4;
  89707. case 19:
  89708. // for update
  89709. ++_i;
  89710. // goto for condition
  89711. $async$goto = 18;
  89712. break;
  89713. case 20:
  89714. // after for
  89715. restArg = $arguments.rest;
  89716. $async$goto = restArg != null ? 22 : 23;
  89717. break;
  89718. case 22:
  89719. // then
  89720. $async$goto = 24;
  89721. return A._asyncAwait(restArg.accept$1($async$self), $async$_async_evaluate0$_runFunctionCallable$3);
  89722. case 24:
  89723. // returning from await.
  89724. rest = $async$result;
  89725. if (!first)
  89726. buffer._contents += ", ";
  89727. t1 = buffer;
  89728. t2 = $async$self._async_evaluate0$_serialize$2(rest, restArg);
  89729. t1._contents += t2;
  89730. case 23:
  89731. // join
  89732. $async$handler = 2;
  89733. // goto after finally
  89734. $async$goto = 17;
  89735. break;
  89736. case 15:
  89737. // catch
  89738. $async$handler = 14;
  89739. $async$exception = $async$currentError;
  89740. t1 = A.unwrapException($async$exception);
  89741. if (type$.SassRuntimeException_2._is(t1)) {
  89742. error = t1;
  89743. if (!B.JSString_methods.endsWith$1(error._span_exception$_message, "isn't a valid CSS value."))
  89744. throw $async$exception;
  89745. throw A.wrapException(A.MultiSpanSassRuntimeException$0(error._span_exception$_message, J.get$span$z(error), "value", A.LinkedHashMap_LinkedHashMap$_literal([nodeWithSpan.get$span(nodeWithSpan), "unknown function treated as plain CSS"], type$.FileSpan, type$.String), J.get$trace$z(error), null));
  89746. } else
  89747. throw $async$exception;
  89748. // goto after finally
  89749. $async$goto = 17;
  89750. break;
  89751. case 14:
  89752. // uncaught
  89753. // goto rethrow
  89754. $async$goto = 2;
  89755. break;
  89756. case 17:
  89757. // after finally
  89758. t1 = buffer;
  89759. t2 = A.Primitives_stringFromCharCode(41);
  89760. t1._contents += t2;
  89761. t2 = buffer._contents;
  89762. $async$returnValue = new A.SassString0(t2.charCodeAt(0) == 0 ? t2 : t2, false);
  89763. // goto return
  89764. $async$goto = 1;
  89765. break;
  89766. // goto join
  89767. $async$goto = 12;
  89768. break;
  89769. case 13:
  89770. // else
  89771. throw A.wrapException(A.ArgumentError$("Unknown callable type " + J.get$runtimeType$(callable).toString$0(0) + ".", null));
  89772. case 12:
  89773. // join
  89774. case 8:
  89775. // join
  89776. case 4:
  89777. // join
  89778. case 1:
  89779. // return
  89780. return A._asyncReturn($async$returnValue, $async$completer);
  89781. case 2:
  89782. // rethrow
  89783. return A._asyncRethrow($async$currentError, $async$completer);
  89784. }
  89785. });
  89786. return A._asyncStartSync($async$_async_evaluate0$_runFunctionCallable$3, $async$completer);
  89787. },
  89788. _async_evaluate0$_runBuiltInCallable$3($arguments, callable, nodeWithSpan) {
  89789. return this._runBuiltInCallable$body$_EvaluateVisitor0($arguments, callable, nodeWithSpan);
  89790. },
  89791. _runBuiltInCallable$body$_EvaluateVisitor0($arguments, callable, nodeWithSpan) {
  89792. var $async$goto = 0,
  89793. $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
  89794. $async$returnValue, $async$handler = 2, $async$currentError, $async$self = this, result, error, stackTrace, namedSet, _0_0, declaredArguments, i, t1, t2, t3, argument, t4, t5, t6, t7, rest, argumentList, exception, _box_0, evaluated, oldCallableNode, $async$exception;
  89795. var $async$_async_evaluate0$_runBuiltInCallable$3 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  89796. if ($async$errorCode === 1) {
  89797. $async$currentError = $async$result;
  89798. $async$goto = $async$handler;
  89799. }
  89800. while (true)
  89801. switch ($async$goto) {
  89802. case 0:
  89803. // Function start
  89804. _box_0 = {};
  89805. $async$goto = 3;
  89806. return A._asyncAwait($async$self._async_evaluate0$_evaluateArguments$1($arguments), $async$_async_evaluate0$_runBuiltInCallable$3);
  89807. case 3:
  89808. // returning from await.
  89809. evaluated = $async$result;
  89810. oldCallableNode = $async$self._async_evaluate0$_callableNode;
  89811. $async$self._async_evaluate0$_callableNode = nodeWithSpan;
  89812. namedSet = new A.MapKeySet(evaluated._values[0], type$.MapKeySet_String);
  89813. _box_0.callback = _box_0.overload = null;
  89814. _0_0 = callable.callbackFor$2(J.get$length$asx(evaluated._values[2]), namedSet);
  89815. _box_0.overload = _0_0._0;
  89816. _box_0.callback = _0_0._1;
  89817. $async$self._async_evaluate0$_addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__runBuiltInCallable_closure8(_box_0, evaluated, namedSet));
  89818. declaredArguments = _box_0.overload.$arguments;
  89819. i = J.get$length$asx(evaluated._values[2]), t1 = declaredArguments.length, t2 = type$._Future_Value_2, t3 = type$.Future_Value_2;
  89820. case 4:
  89821. // for condition
  89822. if (!(i < t1)) {
  89823. // goto after for
  89824. $async$goto = 6;
  89825. break;
  89826. }
  89827. argument = declaredArguments[i];
  89828. t4 = evaluated._values[2];
  89829. t5 = evaluated._values[0].remove$1(0, argument.name);
  89830. $async$goto = t5 == null ? 7 : 8;
  89831. break;
  89832. case 7:
  89833. // then
  89834. t5 = argument.defaultValue;
  89835. t6 = t5.accept$1($async$self);
  89836. if (!t3._is(t6)) {
  89837. t7 = new A._Future($.Zone__current, t2);
  89838. t7._state = 8;
  89839. t7._resultOrListeners = t6;
  89840. t6 = t7;
  89841. }
  89842. $async$goto = 9;
  89843. return A._asyncAwait(t6, $async$_async_evaluate0$_runBuiltInCallable$3);
  89844. case 9:
  89845. // returning from await.
  89846. t5 = $async$self._async_evaluate0$_withoutSlash$2($async$result, t5);
  89847. case 8:
  89848. // join
  89849. J.add$1$ax(t4, t5);
  89850. case 5:
  89851. // for update
  89852. ++i;
  89853. // goto for condition
  89854. $async$goto = 4;
  89855. break;
  89856. case 6:
  89857. // after for
  89858. if (_box_0.overload.restArgument != null) {
  89859. if (J.get$length$asx(evaluated._values[2]) > t1) {
  89860. rest = J.sublist$1$ax(evaluated._values[2], t1);
  89861. J.removeRange$2$ax(evaluated._values[2], t1, J.get$length$asx(evaluated._values[2]));
  89862. } else
  89863. rest = B.List_empty20;
  89864. t1 = evaluated._values[0];
  89865. argumentList = A.SassArgumentList$0(rest, t1, evaluated._values[4] === B.ListSeparator_undecided_null_undecided0 ? B.ListSeparator_ECn0 : evaluated._values[4]);
  89866. J.add$1$ax(evaluated._values[2], argumentList);
  89867. } else
  89868. argumentList = null;
  89869. result = null;
  89870. $async$handler = 11;
  89871. $async$goto = 14;
  89872. return A._asyncAwait($async$self._async_evaluate0$_addExceptionSpanAsync$1$2(nodeWithSpan, new A._EvaluateVisitor__runBuiltInCallable_closure9(_box_0, evaluated), type$.Value_2), $async$_async_evaluate0$_runBuiltInCallable$3);
  89873. case 14:
  89874. // returning from await.
  89875. result = $async$result;
  89876. $async$handler = 2;
  89877. // goto after finally
  89878. $async$goto = 13;
  89879. break;
  89880. case 11:
  89881. // catch
  89882. $async$handler = 10;
  89883. $async$exception = $async$currentError;
  89884. t1 = A.unwrapException($async$exception);
  89885. if (t1 instanceof A.SassException0)
  89886. throw $async$exception;
  89887. else {
  89888. error = t1;
  89889. stackTrace = A.getTraceFromException($async$exception);
  89890. A.throwWithTrace0($async$self._async_evaluate0$_exception$2($async$self._async_evaluate0$_getErrorMessage$1(error), nodeWithSpan.get$span(nodeWithSpan)), error, stackTrace);
  89891. }
  89892. // goto after finally
  89893. $async$goto = 13;
  89894. break;
  89895. case 10:
  89896. // uncaught
  89897. // goto rethrow
  89898. $async$goto = 2;
  89899. break;
  89900. case 13:
  89901. // after finally
  89902. $async$self._async_evaluate0$_callableNode = oldCallableNode;
  89903. if (argumentList == null) {
  89904. $async$returnValue = result;
  89905. // goto return
  89906. $async$goto = 1;
  89907. break;
  89908. }
  89909. t1 = evaluated._values[0];
  89910. if (t1.get$isEmpty(t1)) {
  89911. $async$returnValue = result;
  89912. // goto return
  89913. $async$goto = 1;
  89914. break;
  89915. }
  89916. if (argumentList._argument_list$_wereKeywordsAccessed) {
  89917. $async$returnValue = result;
  89918. // goto return
  89919. $async$goto = 1;
  89920. break;
  89921. }
  89922. t1 = evaluated._values[0];
  89923. t1 = A.pluralize0("argument", J.get$length$asx(t1.get$keys(t1)), null);
  89924. t2 = evaluated._values[0];
  89925. throw A.wrapException(A.MultiSpanSassRuntimeException$0("No " + t1 + " named " + A.toSentence0(J.map$1$1$ax(t2.get$keys(t2), new A._EvaluateVisitor__runBuiltInCallable_closure10(), type$.Object), "or") + ".", nodeWithSpan.get$span(nodeWithSpan), "invocation", A.LinkedHashMap_LinkedHashMap$_literal([_box_0.overload.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), $async$self._async_evaluate0$_stackTrace$1(nodeWithSpan.get$span(nodeWithSpan)), null));
  89926. case 1:
  89927. // return
  89928. return A._asyncReturn($async$returnValue, $async$completer);
  89929. case 2:
  89930. // rethrow
  89931. return A._asyncRethrow($async$currentError, $async$completer);
  89932. }
  89933. });
  89934. return A._asyncStartSync($async$_async_evaluate0$_runBuiltInCallable$3, $async$completer);
  89935. },
  89936. _async_evaluate0$_evaluateArguments$1($arguments) {
  89937. return this._evaluateArguments$body$_EvaluateVisitor0($arguments);
  89938. },
  89939. _evaluateArguments$body$_EvaluateVisitor0($arguments) {
  89940. var $async$goto = 0,
  89941. $async$completer = A._makeAsyncAwaitCompleter(type$.Record_5_Map_String_Value_named_and_Map_String_AstNode_namedNodes_and_List_Value_positional_and_List_AstNode_positionalNodes_and_ListSeparator_separator_2),
  89942. $async$returnValue, $async$self = this, t1, t2, t3, t4, _i, expression, nodeForSpan, t5, t6, named, namedNodes, $name, value, t7, restArgs, rest, restNodeForSpan, separator, keywordRestArgs, keywordRest, keywordRestNodeForSpan, positional, positionalNodes, $async$temp1, $async$temp2;
  89943. var $async$_async_evaluate0$_evaluateArguments$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  89944. if ($async$errorCode === 1)
  89945. return A._asyncRethrow($async$result, $async$completer);
  89946. while (true)
  89947. switch ($async$goto) {
  89948. case 0:
  89949. // Function start
  89950. positional = A._setArrayType([], type$.JSArray_Value_2);
  89951. positionalNodes = A._setArrayType([], type$.JSArray_AstNode_2);
  89952. t1 = $arguments.positional, t2 = t1.length, t3 = type$._Future_Value_2, t4 = type$.Future_Value_2, _i = 0;
  89953. case 3:
  89954. // for condition
  89955. if (!(_i < t2)) {
  89956. // goto after for
  89957. $async$goto = 5;
  89958. break;
  89959. }
  89960. expression = t1[_i];
  89961. nodeForSpan = $async$self._async_evaluate0$_expressionNode$1(expression);
  89962. t5 = expression.accept$1($async$self);
  89963. if (!t4._is(t5)) {
  89964. t6 = new A._Future($.Zone__current, t3);
  89965. t6._state = 8;
  89966. t6._resultOrListeners = t5;
  89967. t5 = t6;
  89968. }
  89969. $async$temp1 = positional;
  89970. $async$goto = 6;
  89971. return A._asyncAwait(t5, $async$_async_evaluate0$_evaluateArguments$1);
  89972. case 6:
  89973. // returning from await.
  89974. $async$temp1.push($async$self._async_evaluate0$_withoutSlash$2($async$result, nodeForSpan));
  89975. positionalNodes.push(nodeForSpan);
  89976. case 4:
  89977. // for update
  89978. ++_i;
  89979. // goto for condition
  89980. $async$goto = 3;
  89981. break;
  89982. case 5:
  89983. // after for
  89984. t1 = type$.String;
  89985. named = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Value_2);
  89986. t2 = type$.AstNode_2;
  89987. namedNodes = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
  89988. t5 = A.MapExtensions_get_pairs0($arguments.named, t1, type$.Expression_2), t5 = t5.get$iterator(t5);
  89989. case 7:
  89990. // for condition
  89991. if (!t5.moveNext$0()) {
  89992. // goto after for
  89993. $async$goto = 8;
  89994. break;
  89995. }
  89996. t6 = t5.get$current(t5);
  89997. $name = t6._0;
  89998. value = t6._1;
  89999. nodeForSpan = $async$self._async_evaluate0$_expressionNode$1(value);
  90000. t6 = value.accept$1($async$self);
  90001. if (!t4._is(t6)) {
  90002. t7 = new A._Future($.Zone__current, t3);
  90003. t7._state = 8;
  90004. t7._resultOrListeners = t6;
  90005. t6 = t7;
  90006. }
  90007. $async$temp1 = named;
  90008. $async$temp2 = $name;
  90009. $async$goto = 9;
  90010. return A._asyncAwait(t6, $async$_async_evaluate0$_evaluateArguments$1);
  90011. case 9:
  90012. // returning from await.
  90013. $async$temp1.$indexSet(0, $async$temp2, $async$self._async_evaluate0$_withoutSlash$2($async$result, nodeForSpan));
  90014. namedNodes.$indexSet(0, $name, nodeForSpan);
  90015. // goto for condition
  90016. $async$goto = 7;
  90017. break;
  90018. case 8:
  90019. // after for
  90020. restArgs = $arguments.rest;
  90021. if (restArgs == null) {
  90022. $async$returnValue = new A._Record_5_named_namedNodes_positional_positionalNodes_separator([named, namedNodes, positional, positionalNodes, B.ListSeparator_undecided_null_undecided0]);
  90023. // goto return
  90024. $async$goto = 1;
  90025. break;
  90026. }
  90027. $async$goto = 10;
  90028. return A._asyncAwait(restArgs.accept$1($async$self), $async$_async_evaluate0$_evaluateArguments$1);
  90029. case 10:
  90030. // returning from await.
  90031. rest = $async$result;
  90032. restNodeForSpan = $async$self._async_evaluate0$_expressionNode$1(restArgs);
  90033. if (rest instanceof A.SassMap0) {
  90034. $async$self._async_evaluate0$_addRestMap$4(named, rest, restArgs, new A._EvaluateVisitor__evaluateArguments_closure11());
  90035. t3 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
  90036. for (t4 = rest._map0$_contents, t4 = J.get$iterator$ax(t4.get$keys(t4)), t5 = type$.SassString_2; t4.moveNext$0();)
  90037. t3.$indexSet(0, t5._as(t4.get$current(t4))._string0$_text, restNodeForSpan);
  90038. namedNodes.addAll$1(0, t3);
  90039. separator = B.ListSeparator_undecided_null_undecided0;
  90040. } else if (rest instanceof A.SassList0) {
  90041. t3 = rest._list1$_contents;
  90042. B.JSArray_methods.addAll$1(positional, new A.MappedListIterable(t3, new A._EvaluateVisitor__evaluateArguments_closure12($async$self, restNodeForSpan), A._arrayInstanceType(t3)._eval$1("MappedListIterable<1,Value0>")));
  90043. B.JSArray_methods.addAll$1(positionalNodes, A.List_List$filled(t3.length, restNodeForSpan, false, t2));
  90044. separator = rest._list1$_separator;
  90045. if (rest instanceof A.SassArgumentList0) {
  90046. rest._argument_list$_wereKeywordsAccessed = true;
  90047. rest._argument_list$_keywords.forEach$1(0, new A._EvaluateVisitor__evaluateArguments_closure13($async$self, named, restNodeForSpan, namedNodes));
  90048. }
  90049. } else {
  90050. positional.push($async$self._async_evaluate0$_withoutSlash$2(rest, restNodeForSpan));
  90051. positionalNodes.push(restNodeForSpan);
  90052. separator = B.ListSeparator_undecided_null_undecided0;
  90053. }
  90054. keywordRestArgs = $arguments.keywordRest;
  90055. if (keywordRestArgs == null) {
  90056. $async$returnValue = new A._Record_5_named_namedNodes_positional_positionalNodes_separator([named, namedNodes, positional, positionalNodes, separator]);
  90057. // goto return
  90058. $async$goto = 1;
  90059. break;
  90060. }
  90061. $async$goto = 11;
  90062. return A._asyncAwait(keywordRestArgs.accept$1($async$self), $async$_async_evaluate0$_evaluateArguments$1);
  90063. case 11:
  90064. // returning from await.
  90065. keywordRest = $async$result;
  90066. keywordRestNodeForSpan = $async$self._async_evaluate0$_expressionNode$1(keywordRestArgs);
  90067. if (keywordRest instanceof A.SassMap0) {
  90068. $async$self._async_evaluate0$_addRestMap$4(named, keywordRest, keywordRestArgs, new A._EvaluateVisitor__evaluateArguments_closure14());
  90069. t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
  90070. for (t2 = keywordRest._map0$_contents, t2 = J.get$iterator$ax(t2.get$keys(t2)), t3 = type$.SassString_2; t2.moveNext$0();)
  90071. t1.$indexSet(0, t3._as(t2.get$current(t2))._string0$_text, keywordRestNodeForSpan);
  90072. namedNodes.addAll$1(0, t1);
  90073. $async$returnValue = new A._Record_5_named_namedNodes_positional_positionalNodes_separator([named, namedNodes, positional, positionalNodes, separator]);
  90074. // goto return
  90075. $async$goto = 1;
  90076. break;
  90077. } else
  90078. throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Variabs + keywordRest.toString$0(0) + ").", keywordRestArgs.get$span(keywordRestArgs)));
  90079. case 1:
  90080. // return
  90081. return A._asyncReturn($async$returnValue, $async$completer);
  90082. }
  90083. });
  90084. return A._asyncStartSync($async$_async_evaluate0$_evaluateArguments$1, $async$completer);
  90085. },
  90086. _async_evaluate0$_evaluateMacroArguments$1(invocation) {
  90087. return this._evaluateMacroArguments$body$_EvaluateVisitor0(invocation);
  90088. },
  90089. _evaluateMacroArguments$body$_EvaluateVisitor0(invocation) {
  90090. var $async$goto = 0,
  90091. $async$completer = A._makeAsyncAwaitCompleter(type$.Record_2_List_Expression_and_Map_String_Expression_2),
  90092. $async$returnValue, $async$self = this, t2, positional, named, rest, restNodeForSpan, keywordRestArgs_, keywordRest, keywordRestNodeForSpan, t1, restArgs_;
  90093. var $async$_async_evaluate0$_evaluateMacroArguments$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  90094. if ($async$errorCode === 1)
  90095. return A._asyncRethrow($async$result, $async$completer);
  90096. while (true)
  90097. switch ($async$goto) {
  90098. case 0:
  90099. // Function start
  90100. t1 = invocation.$arguments;
  90101. restArgs_ = t1.rest;
  90102. if (restArgs_ == null) {
  90103. $async$returnValue = new A._Record_2(t1.positional, t1.named);
  90104. // goto return
  90105. $async$goto = 1;
  90106. break;
  90107. }
  90108. t2 = t1.positional;
  90109. positional = A._setArrayType(t2.slice(0), A._arrayInstanceType(t2));
  90110. named = A.LinkedHashMap_LinkedHashMap$of(t1.named, type$.String, type$.Expression_2);
  90111. $async$goto = 3;
  90112. return A._asyncAwait(restArgs_.accept$1($async$self), $async$_async_evaluate0$_evaluateMacroArguments$1);
  90113. case 3:
  90114. // returning from await.
  90115. rest = $async$result;
  90116. restNodeForSpan = $async$self._async_evaluate0$_expressionNode$1(restArgs_);
  90117. if (rest instanceof A.SassMap0)
  90118. $async$self._async_evaluate0$_addRestMap$4(named, rest, invocation, new A._EvaluateVisitor__evaluateMacroArguments_closure11(restArgs_));
  90119. else if (rest instanceof A.SassList0) {
  90120. t2 = rest._list1$_contents;
  90121. B.JSArray_methods.addAll$1(positional, new A.MappedListIterable(t2, new A._EvaluateVisitor__evaluateMacroArguments_closure12($async$self, restNodeForSpan, restArgs_), A._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Expression0>")));
  90122. if (rest instanceof A.SassArgumentList0) {
  90123. rest._argument_list$_wereKeywordsAccessed = true;
  90124. rest._argument_list$_keywords.forEach$1(0, new A._EvaluateVisitor__evaluateMacroArguments_closure13($async$self, named, restNodeForSpan, restArgs_));
  90125. }
  90126. } else
  90127. positional.push(new A.ValueExpression0($async$self._async_evaluate0$_withoutSlash$2(rest, restNodeForSpan), restArgs_.get$span(restArgs_)));
  90128. keywordRestArgs_ = t1.keywordRest;
  90129. if (keywordRestArgs_ == null) {
  90130. $async$returnValue = new A._Record_2(positional, named);
  90131. // goto return
  90132. $async$goto = 1;
  90133. break;
  90134. }
  90135. $async$goto = 4;
  90136. return A._asyncAwait(keywordRestArgs_.accept$1($async$self), $async$_async_evaluate0$_evaluateMacroArguments$1);
  90137. case 4:
  90138. // returning from await.
  90139. keywordRest = $async$result;
  90140. keywordRestNodeForSpan = $async$self._async_evaluate0$_expressionNode$1(keywordRestArgs_);
  90141. if (keywordRest instanceof A.SassMap0) {
  90142. $async$self._async_evaluate0$_addRestMap$4(named, keywordRest, invocation, new A._EvaluateVisitor__evaluateMacroArguments_closure14($async$self, keywordRestNodeForSpan, keywordRestArgs_));
  90143. $async$returnValue = new A._Record_2(positional, named);
  90144. // goto return
  90145. $async$goto = 1;
  90146. break;
  90147. } else
  90148. throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Variabs + keywordRest.toString$0(0) + ").", keywordRestArgs_.get$span(keywordRestArgs_)));
  90149. case 1:
  90150. // return
  90151. return A._asyncReturn($async$returnValue, $async$completer);
  90152. }
  90153. });
  90154. return A._asyncStartSync($async$_async_evaluate0$_evaluateMacroArguments$1, $async$completer);
  90155. },
  90156. _async_evaluate0$_addRestMap$1$4(values, map, nodeWithSpan, convert) {
  90157. map._map0$_contents.forEach$1(0, new A._EvaluateVisitor__addRestMap_closure2(this, values, convert, this._async_evaluate0$_expressionNode$1(nodeWithSpan), map, nodeWithSpan));
  90158. },
  90159. _async_evaluate0$_addRestMap$4(values, map, nodeWithSpan, convert) {
  90160. return this._async_evaluate0$_addRestMap$1$4(values, map, nodeWithSpan, convert, type$.dynamic);
  90161. },
  90162. _async_evaluate0$_verifyArguments$4(positional, named, $arguments, nodeWithSpan) {
  90163. return this._async_evaluate0$_addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__verifyArguments_closure2($arguments, positional, named));
  90164. },
  90165. visitSelectorExpression$1(_, node) {
  90166. return this.visitSelectorExpression$body$_EvaluateVisitor0(0, node);
  90167. },
  90168. visitSelectorExpression$body$_EvaluateVisitor0(_, node) {
  90169. var $async$goto = 0,
  90170. $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
  90171. $async$returnValue, $async$self = this, t1;
  90172. var $async$visitSelectorExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  90173. if ($async$errorCode === 1)
  90174. return A._asyncRethrow($async$result, $async$completer);
  90175. while (true)
  90176. switch ($async$goto) {
  90177. case 0:
  90178. // Function start
  90179. t1 = $async$self._async_evaluate0$_styleRuleIgnoringAtRoot;
  90180. t1 = t1 == null ? null : t1.originalSelector.get$asSassList();
  90181. $async$returnValue = t1 == null ? B.C__SassNull0 : t1;
  90182. // goto return
  90183. $async$goto = 1;
  90184. break;
  90185. case 1:
  90186. // return
  90187. return A._asyncReturn($async$returnValue, $async$completer);
  90188. }
  90189. });
  90190. return A._asyncStartSync($async$visitSelectorExpression$1, $async$completer);
  90191. },
  90192. visitStringExpression$1(_, node) {
  90193. return this.visitStringExpression$body$_EvaluateVisitor0(0, node);
  90194. },
  90195. visitStringExpression$body$_EvaluateVisitor0(_, node) {
  90196. var $async$goto = 0,
  90197. $async$completer = A._makeAsyncAwaitCompleter(type$.SassString_2),
  90198. $async$returnValue, $async$self = this, t1, t2, t3, _i, value, t4, _0_0, text, oldInSupportsDeclaration;
  90199. var $async$visitStringExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  90200. if ($async$errorCode === 1)
  90201. return A._asyncRethrow($async$result, $async$completer);
  90202. while (true)
  90203. switch ($async$goto) {
  90204. case 0:
  90205. // Function start
  90206. oldInSupportsDeclaration = $async$self._async_evaluate0$_inSupportsDeclaration;
  90207. $async$self._async_evaluate0$_inSupportsDeclaration = false;
  90208. t1 = A._setArrayType([], type$.JSArray_String);
  90209. t2 = node.text.contents, t3 = t2.length, _i = 0;
  90210. case 3:
  90211. // for condition
  90212. if (!(_i < t3)) {
  90213. // goto after for
  90214. $async$goto = 5;
  90215. break;
  90216. }
  90217. value = t2[_i];
  90218. if (typeof value == "string") {
  90219. t4 = value;
  90220. // goto break $label0$0
  90221. $async$goto = 6;
  90222. break;
  90223. }
  90224. $async$goto = value instanceof A.Expression0 ? 7 : 8;
  90225. break;
  90226. case 7:
  90227. // then
  90228. $async$goto = 9;
  90229. return A._asyncAwait(value.accept$1($async$self), $async$visitStringExpression$1);
  90230. case 9:
  90231. // returning from await.
  90232. _0_0 = $async$result;
  90233. $label1$1: {
  90234. if (_0_0 instanceof A.SassString0) {
  90235. text = _0_0._string0$_text;
  90236. t4 = text;
  90237. break $label1$1;
  90238. }
  90239. t4 = $async$self._async_evaluate0$_serialize$3$quote(_0_0, value, false);
  90240. break $label1$1;
  90241. }
  90242. // goto break $label0$0
  90243. $async$goto = 6;
  90244. break;
  90245. case 8:
  90246. // join
  90247. t4 = A.throwExpression(A.UnsupportedError$("Unknown interpolation value " + A.S(value)));
  90248. case 6:
  90249. // break $label0$0
  90250. t1.push(t4);
  90251. case 4:
  90252. // for update
  90253. ++_i;
  90254. // goto for condition
  90255. $async$goto = 3;
  90256. break;
  90257. case 5:
  90258. // after for
  90259. t1 = B.JSArray_methods.join$0(t1);
  90260. $async$self._async_evaluate0$_inSupportsDeclaration = oldInSupportsDeclaration;
  90261. $async$returnValue = new A.SassString0(t1, node.hasQuotes);
  90262. // goto return
  90263. $async$goto = 1;
  90264. break;
  90265. case 1:
  90266. // return
  90267. return A._asyncReturn($async$returnValue, $async$completer);
  90268. }
  90269. });
  90270. return A._asyncStartSync($async$visitStringExpression$1, $async$completer);
  90271. },
  90272. visitSupportsExpression$1(_, expression) {
  90273. return this.visitSupportsExpression$body$_EvaluateVisitor0(0, expression);
  90274. },
  90275. visitSupportsExpression$body$_EvaluateVisitor0(_, expression) {
  90276. var $async$goto = 0,
  90277. $async$completer = A._makeAsyncAwaitCompleter(type$.SassString_2),
  90278. $async$returnValue, $async$self = this, $async$temp1;
  90279. var $async$visitSupportsExpression$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  90280. if ($async$errorCode === 1)
  90281. return A._asyncRethrow($async$result, $async$completer);
  90282. while (true)
  90283. switch ($async$goto) {
  90284. case 0:
  90285. // Function start
  90286. $async$temp1 = A;
  90287. $async$goto = 3;
  90288. return A._asyncAwait($async$self._async_evaluate0$_visitSupportsCondition$1(expression.condition), $async$visitSupportsExpression$1);
  90289. case 3:
  90290. // returning from await.
  90291. $async$returnValue = new $async$temp1.SassString0($async$result, false);
  90292. // goto return
  90293. $async$goto = 1;
  90294. break;
  90295. case 1:
  90296. // return
  90297. return A._asyncReturn($async$returnValue, $async$completer);
  90298. }
  90299. });
  90300. return A._asyncStartSync($async$visitSupportsExpression$1, $async$completer);
  90301. },
  90302. visitCssAtRule$1(node) {
  90303. return this.visitCssAtRule$body$_EvaluateVisitor0(node);
  90304. },
  90305. visitCssAtRule$body$_EvaluateVisitor0(node) {
  90306. var $async$goto = 0,
  90307. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  90308. $async$returnValue, $async$self = this, wasInKeyframes, wasInUnknownAtRule, t1;
  90309. var $async$visitCssAtRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  90310. if ($async$errorCode === 1)
  90311. return A._asyncRethrow($async$result, $async$completer);
  90312. while (true)
  90313. switch ($async$goto) {
  90314. case 0:
  90315. // Function start
  90316. if ($async$self._async_evaluate0$_declarationName != null)
  90317. throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.At_rul, node.span));
  90318. if (node.isChildless) {
  90319. $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent").addChild$1(A.ModifiableCssAtRule$0(node.name, node.span, true, node.value));
  90320. // goto return
  90321. $async$goto = 1;
  90322. break;
  90323. }
  90324. wasInKeyframes = $async$self._async_evaluate0$_inKeyframes;
  90325. wasInUnknownAtRule = $async$self._async_evaluate0$_inUnknownAtRule;
  90326. t1 = node.name;
  90327. if (A.unvendor0(t1.value) === "keyframes")
  90328. $async$self._async_evaluate0$_inKeyframes = true;
  90329. else
  90330. $async$self._async_evaluate0$_inUnknownAtRule = true;
  90331. $async$goto = 3;
  90332. return A._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(A.ModifiableCssAtRule$0(t1, node.span, false, node.value), new A._EvaluateVisitor_visitCssAtRule_closure5($async$self, node), false, new A._EvaluateVisitor_visitCssAtRule_closure6(), type$.ModifiableCssAtRule_2, type$.Null), $async$visitCssAtRule$1);
  90333. case 3:
  90334. // returning from await.
  90335. $async$self._async_evaluate0$_inUnknownAtRule = wasInUnknownAtRule;
  90336. $async$self._async_evaluate0$_inKeyframes = wasInKeyframes;
  90337. case 1:
  90338. // return
  90339. return A._asyncReturn($async$returnValue, $async$completer);
  90340. }
  90341. });
  90342. return A._asyncStartSync($async$visitCssAtRule$1, $async$completer);
  90343. },
  90344. visitCssComment$1(node) {
  90345. return this.visitCssComment$body$_EvaluateVisitor0(node);
  90346. },
  90347. visitCssComment$body$_EvaluateVisitor0(node) {
  90348. var $async$goto = 0,
  90349. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  90350. $async$self = this;
  90351. var $async$visitCssComment$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  90352. if ($async$errorCode === 1)
  90353. return A._asyncRethrow($async$result, $async$completer);
  90354. while (true)
  90355. switch ($async$goto) {
  90356. case 0:
  90357. // Function start
  90358. if ($async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent") === $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__root, "_root") && $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__endOfImports, "_endOfImports") === J.get$length$asx($async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__root, "_root").children._collection$_source))
  90359. $async$self._async_evaluate0$__endOfImports = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__endOfImports, "_endOfImports") + 1;
  90360. $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent").addChild$1(new A.ModifiableCssComment0(node.text, node.span));
  90361. // implicit return
  90362. return A._asyncReturn(null, $async$completer);
  90363. }
  90364. });
  90365. return A._asyncStartSync($async$visitCssComment$1, $async$completer);
  90366. },
  90367. visitCssDeclaration$1(node) {
  90368. return this.visitCssDeclaration$body$_EvaluateVisitor0(node);
  90369. },
  90370. visitCssDeclaration$body$_EvaluateVisitor0(node) {
  90371. var $async$goto = 0,
  90372. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  90373. $async$self = this;
  90374. var $async$visitCssDeclaration$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  90375. if ($async$errorCode === 1)
  90376. return A._asyncRethrow($async$result, $async$completer);
  90377. while (true)
  90378. switch ($async$goto) {
  90379. case 0:
  90380. // Function start
  90381. $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent").addChild$1(A.ModifiableCssDeclaration$0(node.name, node.value, node.span, null, node.parsedAsCustomProperty, null, node.valueSpanForMap));
  90382. // implicit return
  90383. return A._asyncReturn(null, $async$completer);
  90384. }
  90385. });
  90386. return A._asyncStartSync($async$visitCssDeclaration$1, $async$completer);
  90387. },
  90388. visitCssImport$1(node) {
  90389. return this.visitCssImport$body$_EvaluateVisitor0(node);
  90390. },
  90391. visitCssImport$body$_EvaluateVisitor0(node) {
  90392. var $async$goto = 0,
  90393. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  90394. $async$self = this, t1, modifiableNode;
  90395. var $async$visitCssImport$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  90396. if ($async$errorCode === 1)
  90397. return A._asyncRethrow($async$result, $async$completer);
  90398. while (true)
  90399. switch ($async$goto) {
  90400. case 0:
  90401. // Function start
  90402. modifiableNode = new A.ModifiableCssImport0(node.url, node.modifiers, node.span);
  90403. if ($async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent") !== $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__root, "_root"))
  90404. $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent").addChild$1(modifiableNode);
  90405. else if ($async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__endOfImports, "_endOfImports") === J.get$length$asx($async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__root, "_root").children._collection$_source)) {
  90406. $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__root, "_root").addChild$1(modifiableNode);
  90407. $async$self._async_evaluate0$__endOfImports = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__endOfImports, "_endOfImports") + 1;
  90408. } else {
  90409. t1 = $async$self._async_evaluate0$_outOfOrderImports;
  90410. (t1 == null ? $async$self._async_evaluate0$_outOfOrderImports = A._setArrayType([], type$.JSArray_ModifiableCssImport_2) : t1).push(modifiableNode);
  90411. }
  90412. // implicit return
  90413. return A._asyncReturn(null, $async$completer);
  90414. }
  90415. });
  90416. return A._asyncStartSync($async$visitCssImport$1, $async$completer);
  90417. },
  90418. visitCssKeyframeBlock$1(node) {
  90419. return this.visitCssKeyframeBlock$body$_EvaluateVisitor0(node);
  90420. },
  90421. visitCssKeyframeBlock$body$_EvaluateVisitor0(node) {
  90422. var $async$goto = 0,
  90423. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  90424. $async$self = this;
  90425. var $async$visitCssKeyframeBlock$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  90426. if ($async$errorCode === 1)
  90427. return A._asyncRethrow($async$result, $async$completer);
  90428. while (true)
  90429. switch ($async$goto) {
  90430. case 0:
  90431. // Function start
  90432. $async$goto = 2;
  90433. return A._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(A.ModifiableCssKeyframeBlock$0(node.selector, node.span), new A._EvaluateVisitor_visitCssKeyframeBlock_closure5($async$self, node), false, new A._EvaluateVisitor_visitCssKeyframeBlock_closure6(), type$.ModifiableCssKeyframeBlock_2, type$.Null), $async$visitCssKeyframeBlock$1);
  90434. case 2:
  90435. // returning from await.
  90436. // implicit return
  90437. return A._asyncReturn(null, $async$completer);
  90438. }
  90439. });
  90440. return A._asyncStartSync($async$visitCssKeyframeBlock$1, $async$completer);
  90441. },
  90442. visitCssMediaRule$1(node) {
  90443. return this.visitCssMediaRule$body$_EvaluateVisitor0(node);
  90444. },
  90445. visitCssMediaRule$body$_EvaluateVisitor0(node) {
  90446. var $async$goto = 0,
  90447. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  90448. $async$returnValue, $async$self = this, mergedQueries, t1, mergedSources, t2, t3;
  90449. var $async$visitCssMediaRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  90450. if ($async$errorCode === 1)
  90451. return A._asyncRethrow($async$result, $async$completer);
  90452. while (true)
  90453. switch ($async$goto) {
  90454. case 0:
  90455. // Function start
  90456. if ($async$self._async_evaluate0$_declarationName != null)
  90457. throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Media_, node.span));
  90458. mergedQueries = A.NullableExtension_andThen0($async$self._async_evaluate0$_mediaQueries, new A._EvaluateVisitor_visitCssMediaRule_closure8($async$self, node));
  90459. t1 = mergedQueries == null;
  90460. if (!t1 && J.get$isEmpty$asx(mergedQueries)) {
  90461. // goto return
  90462. $async$goto = 1;
  90463. break;
  90464. }
  90465. if (t1)
  90466. mergedSources = B.Set_empty5;
  90467. else {
  90468. t2 = $async$self._async_evaluate0$_mediaQuerySources;
  90469. t2.toString;
  90470. t2 = A.LinkedHashSet_LinkedHashSet$of(t2, type$.CssMediaQuery_2);
  90471. t3 = $async$self._async_evaluate0$_mediaQueries;
  90472. t3.toString;
  90473. t2.addAll$1(0, t3);
  90474. t2.addAll$1(0, node.queries);
  90475. mergedSources = t2;
  90476. }
  90477. t1 = t1 ? node.queries : mergedQueries;
  90478. $async$goto = 3;
  90479. return A._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(A.ModifiableCssMediaRule$0(t1, node.span), new A._EvaluateVisitor_visitCssMediaRule_closure9($async$self, mergedQueries, node, mergedSources), false, new A._EvaluateVisitor_visitCssMediaRule_closure10(mergedSources), type$.ModifiableCssMediaRule_2, type$.Null), $async$visitCssMediaRule$1);
  90480. case 3:
  90481. // returning from await.
  90482. case 1:
  90483. // return
  90484. return A._asyncReturn($async$returnValue, $async$completer);
  90485. }
  90486. });
  90487. return A._asyncStartSync($async$visitCssMediaRule$1, $async$completer);
  90488. },
  90489. visitCssStyleRule$1(node) {
  90490. return this.visitCssStyleRule$body$_EvaluateVisitor0(node);
  90491. },
  90492. visitCssStyleRule$body$_EvaluateVisitor0(node) {
  90493. var $async$goto = 0,
  90494. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  90495. $async$self = this, t1, styleRule, t2, nest, t3, originalSelector, rule, oldAtRootExcludingStyleRule, _0_1, lastChild;
  90496. var $async$visitCssStyleRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  90497. if ($async$errorCode === 1)
  90498. return A._asyncRethrow($async$result, $async$completer);
  90499. while (true)
  90500. switch ($async$goto) {
  90501. case 0:
  90502. // Function start
  90503. if ($async$self._async_evaluate0$_declarationName != null)
  90504. throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Style_n, node.span));
  90505. else if ($async$self._async_evaluate0$_inKeyframes && $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent") instanceof A.ModifiableCssKeyframeBlock0)
  90506. throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Style_k, node.span));
  90507. t1 = $async$self._async_evaluate0$_atRootExcludingStyleRule;
  90508. styleRule = t1 ? null : $async$self._async_evaluate0$_styleRuleIgnoringAtRoot;
  90509. t2 = t1 ? null : $async$self._async_evaluate0$_styleRuleIgnoringAtRoot;
  90510. t2 = t2 == null ? null : t2.fromPlainCss;
  90511. nest = t2 !== true;
  90512. t2 = node._style_rule0$_selector._box0$_inner;
  90513. if (nest) {
  90514. t2 = t2.value;
  90515. t3 = styleRule == null ? null : styleRule.originalSelector;
  90516. originalSelector = t2.nestWithin$3$implicitParent$preserveParentSelectors(t3, !t1, node.fromPlainCss);
  90517. } else
  90518. originalSelector = t2.value;
  90519. rule = A.ModifiableCssStyleRule$0($async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__extensionStore, "_extensionStore").addSelector$2(originalSelector, $async$self._async_evaluate0$_mediaQueries), node.span, node.fromPlainCss, originalSelector);
  90520. oldAtRootExcludingStyleRule = $async$self._async_evaluate0$_atRootExcludingStyleRule;
  90521. $async$self._async_evaluate0$_atRootExcludingStyleRule = false;
  90522. t1 = nest ? new A._EvaluateVisitor_visitCssStyleRule_closure5() : null;
  90523. $async$goto = 2;
  90524. return A._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(rule, new A._EvaluateVisitor_visitCssStyleRule_closure6($async$self, rule, node), false, t1, type$.ModifiableCssStyleRule_2, type$.Null), $async$visitCssStyleRule$1);
  90525. case 2:
  90526. // returning from await.
  90527. $async$self._async_evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  90528. t1 = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent").children._collection$_source;
  90529. t2 = J.getInterceptor$asx(t1);
  90530. _0_1 = t2.get$length(t1);
  90531. if (_0_1 >= 1) {
  90532. lastChild = t2.elementAt$1(t1, _0_1 - 1);
  90533. t1 = styleRule == null;
  90534. } else {
  90535. lastChild = null;
  90536. t1 = false;
  90537. }
  90538. if (t1)
  90539. lastChild.isGroupEnd = true;
  90540. // implicit return
  90541. return A._asyncReturn(null, $async$completer);
  90542. }
  90543. });
  90544. return A._asyncStartSync($async$visitCssStyleRule$1, $async$completer);
  90545. },
  90546. visitCssStylesheet$1(node) {
  90547. return this.visitCssStylesheet$body$_EvaluateVisitor0(node);
  90548. },
  90549. visitCssStylesheet$body$_EvaluateVisitor0(node) {
  90550. var $async$goto = 0,
  90551. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  90552. $async$self = this, t1;
  90553. var $async$visitCssStylesheet$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  90554. if ($async$errorCode === 1)
  90555. return A._asyncRethrow($async$result, $async$completer);
  90556. while (true)
  90557. switch ($async$goto) {
  90558. case 0:
  90559. // Function start
  90560. t1 = J.get$iterator$ax(node.get$children(node));
  90561. case 2:
  90562. // for condition
  90563. if (!t1.moveNext$0()) {
  90564. // goto after for
  90565. $async$goto = 3;
  90566. break;
  90567. }
  90568. $async$goto = 4;
  90569. return A._asyncAwait(t1.get$current(t1).accept$1($async$self), $async$visitCssStylesheet$1);
  90570. case 4:
  90571. // returning from await.
  90572. // goto for condition
  90573. $async$goto = 2;
  90574. break;
  90575. case 3:
  90576. // after for
  90577. // implicit return
  90578. return A._asyncReturn(null, $async$completer);
  90579. }
  90580. });
  90581. return A._asyncStartSync($async$visitCssStylesheet$1, $async$completer);
  90582. },
  90583. visitCssSupportsRule$1(node) {
  90584. return this.visitCssSupportsRule$body$_EvaluateVisitor0(node);
  90585. },
  90586. visitCssSupportsRule$body$_EvaluateVisitor0(node) {
  90587. var $async$goto = 0,
  90588. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  90589. $async$self = this;
  90590. var $async$visitCssSupportsRule$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  90591. if ($async$errorCode === 1)
  90592. return A._asyncRethrow($async$result, $async$completer);
  90593. while (true)
  90594. switch ($async$goto) {
  90595. case 0:
  90596. // Function start
  90597. if ($async$self._async_evaluate0$_declarationName != null)
  90598. throw A.wrapException($async$self._async_evaluate0$_exception$2(string$.Suppor, node.span));
  90599. $async$goto = 2;
  90600. return A._asyncAwait($async$self._async_evaluate0$_withParent$2$4$scopeWhen$through(A.ModifiableCssSupportsRule$0(node.condition, node.span), new A._EvaluateVisitor_visitCssSupportsRule_closure5($async$self, node), false, new A._EvaluateVisitor_visitCssSupportsRule_closure6(), type$.ModifiableCssSupportsRule_2, type$.Null), $async$visitCssSupportsRule$1);
  90601. case 2:
  90602. // returning from await.
  90603. // implicit return
  90604. return A._asyncReturn(null, $async$completer);
  90605. }
  90606. });
  90607. return A._asyncStartSync($async$visitCssSupportsRule$1, $async$completer);
  90608. },
  90609. _async_evaluate0$_handleReturn$1$2(list, callback) {
  90610. return this._handleReturn$body$_EvaluateVisitor0(list, callback);
  90611. },
  90612. _async_evaluate0$_handleReturn$2(list, callback) {
  90613. return this._async_evaluate0$_handleReturn$1$2(list, callback, type$.dynamic);
  90614. },
  90615. _handleReturn$body$_EvaluateVisitor0(list, callback) {
  90616. var $async$goto = 0,
  90617. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  90618. $async$returnValue, t1, _i, _0_0;
  90619. var $async$_async_evaluate0$_handleReturn$1$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  90620. if ($async$errorCode === 1)
  90621. return A._asyncRethrow($async$result, $async$completer);
  90622. while (true)
  90623. switch ($async$goto) {
  90624. case 0:
  90625. // Function start
  90626. t1 = list.length, _i = 0;
  90627. case 3:
  90628. // for condition
  90629. if (!(_i < list.length)) {
  90630. // goto after for
  90631. $async$goto = 5;
  90632. break;
  90633. }
  90634. $async$goto = 6;
  90635. return A._asyncAwait(callback.call$1(list[_i]), $async$_async_evaluate0$_handleReturn$1$2);
  90636. case 6:
  90637. // returning from await.
  90638. _0_0 = $async$result;
  90639. if (_0_0 != null) {
  90640. $async$returnValue = _0_0;
  90641. // goto return
  90642. $async$goto = 1;
  90643. break;
  90644. }
  90645. case 4:
  90646. // for update
  90647. list.length === t1 || (0, A.throwConcurrentModificationError)(list), ++_i;
  90648. // goto for condition
  90649. $async$goto = 3;
  90650. break;
  90651. case 5:
  90652. // after for
  90653. $async$returnValue = null;
  90654. // goto return
  90655. $async$goto = 1;
  90656. break;
  90657. case 1:
  90658. // return
  90659. return A._asyncReturn($async$returnValue, $async$completer);
  90660. }
  90661. });
  90662. return A._asyncStartSync($async$_async_evaluate0$_handleReturn$1$2, $async$completer);
  90663. },
  90664. _async_evaluate0$_withEnvironment$1$2(environment, callback, $T) {
  90665. return this._withEnvironment$body$_EvaluateVisitor0(environment, callback, $T, $T);
  90666. },
  90667. _withEnvironment$body$_EvaluateVisitor0(environment, callback, $T, $async$type) {
  90668. var $async$goto = 0,
  90669. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  90670. $async$returnValue, $async$self = this, result, oldEnvironment;
  90671. var $async$_async_evaluate0$_withEnvironment$1$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  90672. if ($async$errorCode === 1)
  90673. return A._asyncRethrow($async$result, $async$completer);
  90674. while (true)
  90675. switch ($async$goto) {
  90676. case 0:
  90677. // Function start
  90678. oldEnvironment = $async$self._async_evaluate0$_environment;
  90679. $async$self._async_evaluate0$_environment = environment;
  90680. $async$goto = 3;
  90681. return A._asyncAwait(callback.call$0(), $async$_async_evaluate0$_withEnvironment$1$2);
  90682. case 3:
  90683. // returning from await.
  90684. result = $async$result;
  90685. $async$self._async_evaluate0$_environment = oldEnvironment;
  90686. $async$returnValue = result;
  90687. // goto return
  90688. $async$goto = 1;
  90689. break;
  90690. case 1:
  90691. // return
  90692. return A._asyncReturn($async$returnValue, $async$completer);
  90693. }
  90694. });
  90695. return A._asyncStartSync($async$_async_evaluate0$_withEnvironment$1$2, $async$completer);
  90696. },
  90697. _async_evaluate0$_interpolationToValue$3$trim$warnForColor(interpolation, trim, warnForColor) {
  90698. return this._interpolationToValue$body$_EvaluateVisitor0(interpolation, trim, warnForColor);
  90699. },
  90700. _async_evaluate0$_interpolationToValue$1(interpolation) {
  90701. return this._async_evaluate0$_interpolationToValue$3$trim$warnForColor(interpolation, false, false);
  90702. },
  90703. _async_evaluate0$_interpolationToValue$2$warnForColor(interpolation, warnForColor) {
  90704. return this._async_evaluate0$_interpolationToValue$3$trim$warnForColor(interpolation, false, warnForColor);
  90705. },
  90706. _interpolationToValue$body$_EvaluateVisitor0(interpolation, trim, warnForColor) {
  90707. var $async$goto = 0,
  90708. $async$completer = A._makeAsyncAwaitCompleter(type$.CssValue_String_2),
  90709. $async$returnValue, $async$self = this, result, t1;
  90710. var $async$_async_evaluate0$_interpolationToValue$3$trim$warnForColor = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  90711. if ($async$errorCode === 1)
  90712. return A._asyncRethrow($async$result, $async$completer);
  90713. while (true)
  90714. switch ($async$goto) {
  90715. case 0:
  90716. // Function start
  90717. $async$goto = 3;
  90718. return A._asyncAwait($async$self._async_evaluate0$_performInterpolation$2$warnForColor(interpolation, warnForColor), $async$_async_evaluate0$_interpolationToValue$3$trim$warnForColor);
  90719. case 3:
  90720. // returning from await.
  90721. result = $async$result;
  90722. t1 = trim ? A.trimAscii0(result, true) : result;
  90723. $async$returnValue = new A.CssValue0(t1, interpolation.span, type$.CssValue_String_2);
  90724. // goto return
  90725. $async$goto = 1;
  90726. break;
  90727. case 1:
  90728. // return
  90729. return A._asyncReturn($async$returnValue, $async$completer);
  90730. }
  90731. });
  90732. return A._asyncStartSync($async$_async_evaluate0$_interpolationToValue$3$trim$warnForColor, $async$completer);
  90733. },
  90734. _async_evaluate0$_performInterpolation$2$warnForColor(interpolation, warnForColor) {
  90735. return this._performInterpolation$body$_EvaluateVisitor0(interpolation, warnForColor);
  90736. },
  90737. _async_evaluate0$_performInterpolation$1(interpolation) {
  90738. return this._async_evaluate0$_performInterpolation$2$warnForColor(interpolation, false);
  90739. },
  90740. _performInterpolation$body$_EvaluateVisitor0(interpolation, warnForColor) {
  90741. var $async$goto = 0,
  90742. $async$completer = A._makeAsyncAwaitCompleter(type$.String),
  90743. $async$returnValue, $async$self = this;
  90744. var $async$_async_evaluate0$_performInterpolation$2$warnForColor = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  90745. if ($async$errorCode === 1)
  90746. return A._asyncRethrow($async$result, $async$completer);
  90747. while (true)
  90748. switch ($async$goto) {
  90749. case 0:
  90750. // Function start
  90751. $async$goto = 3;
  90752. return A._asyncAwait($async$self._async_evaluate0$_performInterpolationHelper$3$sourceMap$warnForColor(interpolation, false, warnForColor), $async$_async_evaluate0$_performInterpolation$2$warnForColor);
  90753. case 3:
  90754. // returning from await.
  90755. $async$returnValue = $async$result._0;
  90756. // goto return
  90757. $async$goto = 1;
  90758. break;
  90759. case 1:
  90760. // return
  90761. return A._asyncReturn($async$returnValue, $async$completer);
  90762. }
  90763. });
  90764. return A._asyncStartSync($async$_async_evaluate0$_performInterpolation$2$warnForColor, $async$completer);
  90765. },
  90766. _async_evaluate0$_performInterpolationWithMap$2$warnForColor(interpolation, warnForColor) {
  90767. return this._performInterpolationWithMap$body$_EvaluateVisitor0(interpolation, true);
  90768. },
  90769. _performInterpolationWithMap$body$_EvaluateVisitor0(interpolation, warnForColor) {
  90770. var $async$goto = 0,
  90771. $async$completer = A._makeAsyncAwaitCompleter(type$.Record_2_String_and_InterpolationMap_2),
  90772. $async$returnValue, $async$self = this, _0_0, result, map;
  90773. var $async$_async_evaluate0$_performInterpolationWithMap$2$warnForColor = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  90774. if ($async$errorCode === 1)
  90775. return A._asyncRethrow($async$result, $async$completer);
  90776. while (true)
  90777. switch ($async$goto) {
  90778. case 0:
  90779. // Function start
  90780. $async$goto = 3;
  90781. return A._asyncAwait($async$self._async_evaluate0$_performInterpolationHelper$3$sourceMap$warnForColor(interpolation, true, true), $async$_async_evaluate0$_performInterpolationWithMap$2$warnForColor);
  90782. case 3:
  90783. // returning from await.
  90784. _0_0 = $async$result;
  90785. result = _0_0._0;
  90786. map = _0_0._1;
  90787. map.toString;
  90788. $async$returnValue = new A._Record_2(result, map);
  90789. // goto return
  90790. $async$goto = 1;
  90791. break;
  90792. case 1:
  90793. // return
  90794. return A._asyncReturn($async$returnValue, $async$completer);
  90795. }
  90796. });
  90797. return A._asyncStartSync($async$_async_evaluate0$_performInterpolationWithMap$2$warnForColor, $async$completer);
  90798. },
  90799. _async_evaluate0$_performInterpolationHelper$3$sourceMap$warnForColor(interpolation, sourceMap, warnForColor) {
  90800. return this._performInterpolationHelper$body$_EvaluateVisitor0(interpolation, sourceMap, warnForColor);
  90801. },
  90802. _performInterpolationHelper$body$_EvaluateVisitor0(interpolation, sourceMap, warnForColor) {
  90803. var $async$goto = 0,
  90804. $async$completer = A._makeAsyncAwaitCompleter(type$.Record_2_String_and_nullable_InterpolationMap_2),
  90805. $async$returnValue, $async$self = this, t1, t2, t3, t4, t5, t6, first, _i, t7, value, result, result0, t8, targetLocations, oldInSupportsDeclaration;
  90806. var $async$_async_evaluate0$_performInterpolationHelper$3$sourceMap$warnForColor = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  90807. if ($async$errorCode === 1)
  90808. return A._asyncRethrow($async$result, $async$completer);
  90809. while (true)
  90810. switch ($async$goto) {
  90811. case 0:
  90812. // Function start
  90813. targetLocations = sourceMap ? A._setArrayType([], type$.JSArray_SourceLocation) : null;
  90814. oldInSupportsDeclaration = $async$self._async_evaluate0$_inSupportsDeclaration;
  90815. $async$self._async_evaluate0$_inSupportsDeclaration = false;
  90816. t1 = interpolation.contents, t2 = t1.length, t3 = type$.Expression_2, t4 = targetLocations == null, t5 = interpolation.span, t6 = type$.Object, first = true, _i = 0, t7 = "";
  90817. case 3:
  90818. // for condition
  90819. if (!(_i < t2)) {
  90820. // goto after for
  90821. $async$goto = 5;
  90822. break;
  90823. }
  90824. value = t1[_i];
  90825. if (!first)
  90826. if (!t4)
  90827. targetLocations.push(A.SourceLocation$(t7.length, null, null, null));
  90828. if (typeof value == "string") {
  90829. t7 += value;
  90830. // goto for update
  90831. $async$goto = 4;
  90832. break;
  90833. }
  90834. t3._as(value);
  90835. $async$goto = 6;
  90836. return A._asyncAwait(value.accept$1($async$self), $async$_async_evaluate0$_performInterpolationHelper$3$sourceMap$warnForColor);
  90837. case 6:
  90838. // returning from await.
  90839. result = $async$result;
  90840. if (warnForColor && $.$get$namesByColor0().containsKey$1(result)) {
  90841. result0 = A.List_List$from([""], false, t6);
  90842. result0.fixed$length = Array;
  90843. result0.immutable$list = Array;
  90844. t8 = $.$get$namesByColor0();
  90845. $async$self._async_evaluate0$_warn$2(string$.You_pr + A.S(t8.$index(0, result)) + string$.x20in_in + result.toString$0(0) + string$.x2c_whicw + A.S(t8.$index(0, result)) + string$.x22x29__If + new A.BinaryOperationExpression0(B.BinaryOperator_u150, new A.StringExpression0(new A.Interpolation0(result0, B.List_null, t5), true), value, false).toString$0(0) + "'.", value.get$span(value));
  90846. }
  90847. t7 += $async$self._async_evaluate0$_serialize$3$quote(result, value, false);
  90848. case 4:
  90849. // for update
  90850. ++_i, first = false;
  90851. // goto for condition
  90852. $async$goto = 3;
  90853. break;
  90854. case 5:
  90855. // after for
  90856. $async$self._async_evaluate0$_inSupportsDeclaration = oldInSupportsDeclaration;
  90857. $async$returnValue = new A._Record_2(t7.charCodeAt(0) == 0 ? t7 : t7, A.NullableExtension_andThen0(targetLocations, new A._EvaluateVisitor__performInterpolationHelper_closure2(interpolation)));
  90858. // goto return
  90859. $async$goto = 1;
  90860. break;
  90861. case 1:
  90862. // return
  90863. return A._asyncReturn($async$returnValue, $async$completer);
  90864. }
  90865. });
  90866. return A._asyncStartSync($async$_async_evaluate0$_performInterpolationHelper$3$sourceMap$warnForColor, $async$completer);
  90867. },
  90868. _async_evaluate0$_evaluateToCss$2$quote(expression, quote) {
  90869. return this._evaluateToCss$body$_EvaluateVisitor0(expression, quote);
  90870. },
  90871. _async_evaluate0$_evaluateToCss$1(expression) {
  90872. return this._async_evaluate0$_evaluateToCss$2$quote(expression, true);
  90873. },
  90874. _evaluateToCss$body$_EvaluateVisitor0(expression, quote) {
  90875. var $async$goto = 0,
  90876. $async$completer = A._makeAsyncAwaitCompleter(type$.String),
  90877. $async$returnValue, $async$self = this, t1;
  90878. var $async$_async_evaluate0$_evaluateToCss$2$quote = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  90879. if ($async$errorCode === 1)
  90880. return A._asyncRethrow($async$result, $async$completer);
  90881. while (true)
  90882. switch ($async$goto) {
  90883. case 0:
  90884. // Function start
  90885. t1 = expression.accept$1($async$self);
  90886. $async$goto = 3;
  90887. return A._asyncAwait(type$.Future_Value_2._is(t1) ? t1 : A._Future$value(t1, type$.Value_2), $async$_async_evaluate0$_evaluateToCss$2$quote);
  90888. case 3:
  90889. // returning from await.
  90890. $async$returnValue = $async$self._async_evaluate0$_serialize$3$quote($async$result, expression, quote);
  90891. // goto return
  90892. $async$goto = 1;
  90893. break;
  90894. case 1:
  90895. // return
  90896. return A._asyncReturn($async$returnValue, $async$completer);
  90897. }
  90898. });
  90899. return A._asyncStartSync($async$_async_evaluate0$_evaluateToCss$2$quote, $async$completer);
  90900. },
  90901. _async_evaluate0$_serialize$3$quote(value, nodeWithSpan, quote) {
  90902. return this._async_evaluate0$_addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__serialize_closure2(value, quote));
  90903. },
  90904. _async_evaluate0$_serialize$2(value, nodeWithSpan) {
  90905. return this._async_evaluate0$_serialize$3$quote(value, nodeWithSpan, true);
  90906. },
  90907. _async_evaluate0$_expressionNode$1(expression) {
  90908. var t1;
  90909. if (expression instanceof A.VariableExpression0) {
  90910. t1 = this._async_evaluate0$_addExceptionSpan$2(expression, new A._EvaluateVisitor__expressionNode_closure2(this, expression));
  90911. return t1 == null ? expression : t1;
  90912. } else
  90913. return expression;
  90914. },
  90915. _async_evaluate0$_withParent$2$4$scopeWhen$through(node, callback, scopeWhen, through, $S, $T) {
  90916. return this._withParent$body$_EvaluateVisitor0(node, callback, scopeWhen, through, $S, $T, $T);
  90917. },
  90918. _async_evaluate0$_withParent$2$2(node, callback, $S, $T) {
  90919. return this._async_evaluate0$_withParent$2$4$scopeWhen$through(node, callback, true, null, $S, $T);
  90920. },
  90921. _async_evaluate0$_withParent$2$3$scopeWhen(node, callback, scopeWhen, $S, $T) {
  90922. return this._async_evaluate0$_withParent$2$4$scopeWhen$through(node, callback, scopeWhen, null, $S, $T);
  90923. },
  90924. _withParent$body$_EvaluateVisitor0(node, callback, scopeWhen, through, $S, $T, $async$type) {
  90925. var $async$goto = 0,
  90926. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  90927. $async$returnValue, $async$self = this, t1, result;
  90928. var $async$_async_evaluate0$_withParent$2$4$scopeWhen$through = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  90929. if ($async$errorCode === 1)
  90930. return A._asyncRethrow($async$result, $async$completer);
  90931. while (true)
  90932. switch ($async$goto) {
  90933. case 0:
  90934. // Function start
  90935. $async$self._async_evaluate0$_addChild$2$through(node, through);
  90936. t1 = $async$self._async_evaluate0$_assertInModule$2($async$self._async_evaluate0$__parent, "__parent");
  90937. $async$self._async_evaluate0$__parent = node;
  90938. $async$goto = 3;
  90939. return A._asyncAwait($async$self._async_evaluate0$_environment.scope$1$2$when(callback, scopeWhen, $T), $async$_async_evaluate0$_withParent$2$4$scopeWhen$through);
  90940. case 3:
  90941. // returning from await.
  90942. result = $async$result;
  90943. $async$self._async_evaluate0$__parent = t1;
  90944. $async$returnValue = result;
  90945. // goto return
  90946. $async$goto = 1;
  90947. break;
  90948. case 1:
  90949. // return
  90950. return A._asyncReturn($async$returnValue, $async$completer);
  90951. }
  90952. });
  90953. return A._asyncStartSync($async$_async_evaluate0$_withParent$2$4$scopeWhen$through, $async$completer);
  90954. },
  90955. _async_evaluate0$_addChild$2$through(node, through) {
  90956. var _0_0, grandparent, t1,
  90957. $parent = this._async_evaluate0$_assertInModule$2(this._async_evaluate0$__parent, "__parent");
  90958. if (through != null) {
  90959. for (; through.call$1($parent); $parent = _0_0) {
  90960. _0_0 = $parent._node$_parent;
  90961. if (_0_0 == null)
  90962. throw A.wrapException(A.ArgumentError$(string$.throug + node.toString$0(0) + ".", null));
  90963. }
  90964. if ($parent.get$hasFollowingSibling()) {
  90965. grandparent = $parent._node$_parent;
  90966. t1 = grandparent.children;
  90967. if ($parent.equalsIgnoringChildren$1(t1.get$last(t1)))
  90968. $parent = type$.ModifiableCssParentNode_2._as(t1.get$last(t1));
  90969. else {
  90970. $parent = $parent.copyWithoutChildren$0();
  90971. grandparent.addChild$1($parent);
  90972. }
  90973. }
  90974. }
  90975. $parent.addChild$1(node);
  90976. },
  90977. _async_evaluate0$_addChild$1(node) {
  90978. return this._async_evaluate0$_addChild$2$through(node, null);
  90979. },
  90980. _async_evaluate0$_withStyleRule$1$2(rule, callback, $T) {
  90981. return this._withStyleRule$body$_EvaluateVisitor0(rule, callback, $T, $T);
  90982. },
  90983. _withStyleRule$body$_EvaluateVisitor0(rule, callback, $T, $async$type) {
  90984. var $async$goto = 0,
  90985. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  90986. $async$returnValue, $async$self = this, result, oldRule;
  90987. var $async$_async_evaluate0$_withStyleRule$1$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  90988. if ($async$errorCode === 1)
  90989. return A._asyncRethrow($async$result, $async$completer);
  90990. while (true)
  90991. switch ($async$goto) {
  90992. case 0:
  90993. // Function start
  90994. oldRule = $async$self._async_evaluate0$_styleRuleIgnoringAtRoot;
  90995. $async$self._async_evaluate0$_styleRuleIgnoringAtRoot = rule;
  90996. $async$goto = 3;
  90997. return A._asyncAwait(callback.call$0(), $async$_async_evaluate0$_withStyleRule$1$2);
  90998. case 3:
  90999. // returning from await.
  91000. result = $async$result;
  91001. $async$self._async_evaluate0$_styleRuleIgnoringAtRoot = oldRule;
  91002. $async$returnValue = result;
  91003. // goto return
  91004. $async$goto = 1;
  91005. break;
  91006. case 1:
  91007. // return
  91008. return A._asyncReturn($async$returnValue, $async$completer);
  91009. }
  91010. });
  91011. return A._asyncStartSync($async$_async_evaluate0$_withStyleRule$1$2, $async$completer);
  91012. },
  91013. _async_evaluate0$_withMediaQueries$1$3(queries, sources, callback, $T) {
  91014. return this._withMediaQueries$body$_EvaluateVisitor0(queries, sources, callback, $T, $T);
  91015. },
  91016. _withMediaQueries$body$_EvaluateVisitor0(queries, sources, callback, $T, $async$type) {
  91017. var $async$goto = 0,
  91018. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  91019. $async$returnValue, $async$self = this, result, oldMediaQueries, oldSources;
  91020. var $async$_async_evaluate0$_withMediaQueries$1$3 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  91021. if ($async$errorCode === 1)
  91022. return A._asyncRethrow($async$result, $async$completer);
  91023. while (true)
  91024. switch ($async$goto) {
  91025. case 0:
  91026. // Function start
  91027. oldMediaQueries = $async$self._async_evaluate0$_mediaQueries;
  91028. oldSources = $async$self._async_evaluate0$_mediaQuerySources;
  91029. $async$self._async_evaluate0$_mediaQueries = queries;
  91030. $async$self._async_evaluate0$_mediaQuerySources = sources;
  91031. $async$goto = 3;
  91032. return A._asyncAwait(callback.call$0(), $async$_async_evaluate0$_withMediaQueries$1$3);
  91033. case 3:
  91034. // returning from await.
  91035. result = $async$result;
  91036. $async$self._async_evaluate0$_mediaQueries = oldMediaQueries;
  91037. $async$self._async_evaluate0$_mediaQuerySources = oldSources;
  91038. $async$returnValue = result;
  91039. // goto return
  91040. $async$goto = 1;
  91041. break;
  91042. case 1:
  91043. // return
  91044. return A._asyncReturn($async$returnValue, $async$completer);
  91045. }
  91046. });
  91047. return A._asyncStartSync($async$_async_evaluate0$_withMediaQueries$1$3, $async$completer);
  91048. },
  91049. _async_evaluate0$_withStackFrame$1$3(member, nodeWithSpan, callback, $T) {
  91050. return this._withStackFrame$body$_EvaluateVisitor0(member, nodeWithSpan, callback, $T, $T);
  91051. },
  91052. _withStackFrame$body$_EvaluateVisitor0(member, nodeWithSpan, callback, $T, $async$type) {
  91053. var $async$goto = 0,
  91054. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  91055. $async$returnValue, $async$self = this, oldMember, result, t1;
  91056. var $async$_async_evaluate0$_withStackFrame$1$3 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  91057. if ($async$errorCode === 1)
  91058. return A._asyncRethrow($async$result, $async$completer);
  91059. while (true)
  91060. switch ($async$goto) {
  91061. case 0:
  91062. // Function start
  91063. t1 = $async$self._async_evaluate0$_stack;
  91064. t1.push(new A._Record_2($async$self._async_evaluate0$_member, nodeWithSpan));
  91065. oldMember = $async$self._async_evaluate0$_member;
  91066. $async$self._async_evaluate0$_member = member;
  91067. $async$goto = 3;
  91068. return A._asyncAwait(callback.call$0(), $async$_async_evaluate0$_withStackFrame$1$3);
  91069. case 3:
  91070. // returning from await.
  91071. result = $async$result;
  91072. $async$self._async_evaluate0$_member = oldMember;
  91073. t1.pop();
  91074. $async$returnValue = result;
  91075. // goto return
  91076. $async$goto = 1;
  91077. break;
  91078. case 1:
  91079. // return
  91080. return A._asyncReturn($async$returnValue, $async$completer);
  91081. }
  91082. });
  91083. return A._asyncStartSync($async$_async_evaluate0$_withStackFrame$1$3, $async$completer);
  91084. },
  91085. _async_evaluate0$_withoutSlash$2(value, nodeForSpan) {
  91086. var t1;
  91087. if (value instanceof A.SassNumber0)
  91088. t1 = value.asSlash != null;
  91089. else
  91090. t1 = false;
  91091. if (t1)
  91092. this._async_evaluate0$_warn$3(string$.Using__i + A.S(new A._EvaluateVisitor__withoutSlash_recommendation2().call$1(value)) + string$.x0a_Morex20, nodeForSpan.get$span(nodeForSpan), B.Deprecation_q39);
  91093. return value.withoutSlash$0();
  91094. },
  91095. _async_evaluate0$_stackFrame$2(member, span) {
  91096. return A.frameForSpan0(span, member, A.NullableExtension_andThen0(span.get$sourceUrl(span), new A._EvaluateVisitor__stackFrame_closure2(this)));
  91097. },
  91098. _async_evaluate0$_stackTrace$1(span) {
  91099. var t2, t3, _i, t4, nodeWithSpan, _this = this,
  91100. t1 = A._setArrayType([], type$.JSArray_Frame);
  91101. for (t2 = _this._async_evaluate0$_stack, t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, A.throwConcurrentModificationError)(t2), ++_i) {
  91102. t4 = t2[_i];
  91103. nodeWithSpan = t4._1;
  91104. t1.push(_this._async_evaluate0$_stackFrame$2(t4._0, nodeWithSpan.get$span(nodeWithSpan)));
  91105. }
  91106. if (span != null)
  91107. t1.push(_this._async_evaluate0$_stackFrame$2(_this._async_evaluate0$_member, span));
  91108. return A.Trace$(new A.ReversedListIterable(t1, type$.ReversedListIterable_Frame), null);
  91109. },
  91110. _async_evaluate0$_stackTrace$0() {
  91111. return this._async_evaluate0$_stackTrace$1(null);
  91112. },
  91113. _async_evaluate0$_warn$3(message, span, deprecation) {
  91114. var t1, trace, _this = this;
  91115. if (_this._async_evaluate0$_quietDeps)
  91116. if (!_this._async_evaluate0$_inDependency) {
  91117. t1 = _this._async_evaluate0$_currentCallable;
  91118. t1 = t1 == null ? null : t1.inDependency;
  91119. t1 = t1 === true;
  91120. } else
  91121. t1 = true;
  91122. else
  91123. t1 = false;
  91124. if (t1)
  91125. return;
  91126. if (!_this._async_evaluate0$_warningsEmitted.add$1(0, new A._Record_2(message, span)))
  91127. return;
  91128. trace = _this._async_evaluate0$_stackTrace$1(span);
  91129. t1 = _this._async_evaluate0$_logger;
  91130. if (deprecation == null)
  91131. t1.warn$3$span$trace(0, message, span, trace);
  91132. else
  91133. A.WarnForDeprecation_warnForDeprecation0(t1, deprecation, message, span, trace);
  91134. },
  91135. _async_evaluate0$_warn$2(message, span) {
  91136. return this._async_evaluate0$_warn$3(message, span, null);
  91137. },
  91138. _async_evaluate0$_exception$2(message, span) {
  91139. var t1, t2;
  91140. if (span == null) {
  91141. t1 = B.JSArray_methods.get$last(this._async_evaluate0$_stack)._1;
  91142. t1 = t1.get$span(t1);
  91143. } else
  91144. t1 = span;
  91145. t2 = this._async_evaluate0$_stackTrace$1(span);
  91146. return new A.SassRuntimeException0(t2, B.Set_empty, message, t1);
  91147. },
  91148. _async_evaluate0$_exception$1(message) {
  91149. return this._async_evaluate0$_exception$2(message, null);
  91150. },
  91151. _async_evaluate0$_multiSpanException$3(message, primaryLabel, secondaryLabels) {
  91152. var t1 = B.JSArray_methods.get$last(this._async_evaluate0$_stack)._1;
  91153. return A.MultiSpanSassRuntimeException$0(message, t1.get$span(t1), primaryLabel, secondaryLabels, this._async_evaluate0$_stackTrace$0(), null);
  91154. },
  91155. _async_evaluate0$_addExceptionSpan$1$2(nodeWithSpan, callback) {
  91156. var error, stackTrace, t1, exception,
  91157. addStackFrame = true;
  91158. try {
  91159. t1 = callback.call$0();
  91160. return t1;
  91161. } catch (exception) {
  91162. t1 = A.unwrapException(exception);
  91163. if (t1 instanceof A.SassScriptException0) {
  91164. error = t1;
  91165. stackTrace = A.getTraceFromException(exception);
  91166. t1 = error.withSpan$1(nodeWithSpan.get$span(nodeWithSpan));
  91167. A.throwWithTrace0(t1.withTrace$1(this._async_evaluate0$_stackTrace$1(addStackFrame ? nodeWithSpan.get$span(nodeWithSpan) : null)), error, stackTrace);
  91168. } else
  91169. throw exception;
  91170. }
  91171. },
  91172. _async_evaluate0$_addExceptionSpan$2(nodeWithSpan, callback) {
  91173. return this._async_evaluate0$_addExceptionSpan$1$2(nodeWithSpan, callback, type$.dynamic);
  91174. },
  91175. _async_evaluate0$_addExceptionSpanAsync$1$3$addStackFrame(nodeWithSpan, callback, addStackFrame, $T) {
  91176. return this._addExceptionSpanAsync$body$_EvaluateVisitor0(nodeWithSpan, callback, addStackFrame, $T, $T);
  91177. },
  91178. _async_evaluate0$_addExceptionSpanAsync$1$2(nodeWithSpan, callback, $T) {
  91179. return this._async_evaluate0$_addExceptionSpanAsync$1$3$addStackFrame(nodeWithSpan, callback, true, $T);
  91180. },
  91181. _addExceptionSpanAsync$body$_EvaluateVisitor0(nodeWithSpan, callback, addStackFrame, $T, $async$type) {
  91182. var $async$goto = 0,
  91183. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  91184. $async$returnValue, $async$handler = 2, $async$currentError, $async$self = this, error, stackTrace, t1, exception, $async$exception;
  91185. var $async$_async_evaluate0$_addExceptionSpanAsync$1$3$addStackFrame = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  91186. if ($async$errorCode === 1) {
  91187. $async$currentError = $async$result;
  91188. $async$goto = $async$handler;
  91189. }
  91190. while (true)
  91191. switch ($async$goto) {
  91192. case 0:
  91193. // Function start
  91194. $async$handler = 4;
  91195. t1 = callback.call$0();
  91196. $async$goto = 7;
  91197. return A._asyncAwait($T._eval$1("Future<0>")._is(t1) ? t1 : A._Future$value(t1, $T), $async$_async_evaluate0$_addExceptionSpanAsync$1$3$addStackFrame);
  91198. case 7:
  91199. // returning from await.
  91200. t1 = $async$result;
  91201. $async$returnValue = t1;
  91202. // goto return
  91203. $async$goto = 1;
  91204. break;
  91205. $async$handler = 2;
  91206. // goto after finally
  91207. $async$goto = 6;
  91208. break;
  91209. case 4:
  91210. // catch
  91211. $async$handler = 3;
  91212. $async$exception = $async$currentError;
  91213. t1 = A.unwrapException($async$exception);
  91214. if (t1 instanceof A.SassScriptException0) {
  91215. error = t1;
  91216. stackTrace = A.getTraceFromException($async$exception);
  91217. t1 = error.withSpan$1(nodeWithSpan.get$span(nodeWithSpan));
  91218. A.throwWithTrace0(t1.withTrace$1($async$self._async_evaluate0$_stackTrace$1(addStackFrame ? nodeWithSpan.get$span(nodeWithSpan) : null)), error, stackTrace);
  91219. } else
  91220. throw $async$exception;
  91221. // goto after finally
  91222. $async$goto = 6;
  91223. break;
  91224. case 3:
  91225. // uncaught
  91226. // goto rethrow
  91227. $async$goto = 2;
  91228. break;
  91229. case 6:
  91230. // after finally
  91231. case 1:
  91232. // return
  91233. return A._asyncReturn($async$returnValue, $async$completer);
  91234. case 2:
  91235. // rethrow
  91236. return A._asyncRethrow($async$currentError, $async$completer);
  91237. }
  91238. });
  91239. return A._asyncStartSync($async$_async_evaluate0$_addExceptionSpanAsync$1$3$addStackFrame, $async$completer);
  91240. },
  91241. _async_evaluate0$_addExceptionTrace$1$1(callback, $T) {
  91242. return this._addExceptionTrace$body$_EvaluateVisitor0(callback, $T, $T);
  91243. },
  91244. _addExceptionTrace$body$_EvaluateVisitor0(callback, $T, $async$type) {
  91245. var $async$goto = 0,
  91246. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  91247. $async$returnValue, $async$handler = 2, $async$currentError, $async$self = this, error, stackTrace, t1, exception, t2, $async$exception;
  91248. var $async$_async_evaluate0$_addExceptionTrace$1$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  91249. if ($async$errorCode === 1) {
  91250. $async$currentError = $async$result;
  91251. $async$goto = $async$handler;
  91252. }
  91253. while (true)
  91254. switch ($async$goto) {
  91255. case 0:
  91256. // Function start
  91257. $async$handler = 4;
  91258. t1 = callback.call$0();
  91259. $async$goto = 7;
  91260. return A._asyncAwait($T._eval$1("Future<0>")._is(t1) ? t1 : A._Future$value(t1, $T), $async$_async_evaluate0$_addExceptionTrace$1$1);
  91261. case 7:
  91262. // returning from await.
  91263. t1 = $async$result;
  91264. $async$returnValue = t1;
  91265. // goto return
  91266. $async$goto = 1;
  91267. break;
  91268. $async$handler = 2;
  91269. // goto after finally
  91270. $async$goto = 6;
  91271. break;
  91272. case 4:
  91273. // catch
  91274. $async$handler = 3;
  91275. $async$exception = $async$currentError;
  91276. t1 = A.unwrapException($async$exception);
  91277. if (type$.SassRuntimeException_2._is(t1))
  91278. throw $async$exception;
  91279. else if (t1 instanceof A.SassException0) {
  91280. error = t1;
  91281. stackTrace = A.getTraceFromException($async$exception);
  91282. t1 = error;
  91283. t2 = J.getInterceptor$z(t1);
  91284. A.throwWithTrace0(error.withTrace$1($async$self._async_evaluate0$_stackTrace$1(A.SourceSpanException.prototype.get$span.call(t2, t1))), error, stackTrace);
  91285. } else
  91286. throw $async$exception;
  91287. // goto after finally
  91288. $async$goto = 6;
  91289. break;
  91290. case 3:
  91291. // uncaught
  91292. // goto rethrow
  91293. $async$goto = 2;
  91294. break;
  91295. case 6:
  91296. // after finally
  91297. case 1:
  91298. // return
  91299. return A._asyncReturn($async$returnValue, $async$completer);
  91300. case 2:
  91301. // rethrow
  91302. return A._asyncRethrow($async$currentError, $async$completer);
  91303. }
  91304. });
  91305. return A._asyncStartSync($async$_async_evaluate0$_addExceptionTrace$1$1, $async$completer);
  91306. },
  91307. _async_evaluate0$_addErrorSpan$1$2(nodeWithSpan, callback, $T) {
  91308. return this._addErrorSpan$body$_EvaluateVisitor0(nodeWithSpan, callback, $T, $T);
  91309. },
  91310. _addErrorSpan$body$_EvaluateVisitor0(nodeWithSpan, callback, $T, $async$type) {
  91311. var $async$goto = 0,
  91312. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  91313. $async$returnValue, $async$handler = 2, $async$currentError, $async$self = this, error, stackTrace, t1, exception, t2, t3, $async$exception;
  91314. var $async$_async_evaluate0$_addErrorSpan$1$2 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  91315. if ($async$errorCode === 1) {
  91316. $async$currentError = $async$result;
  91317. $async$goto = $async$handler;
  91318. }
  91319. while (true)
  91320. switch ($async$goto) {
  91321. case 0:
  91322. // Function start
  91323. $async$handler = 4;
  91324. $async$goto = 7;
  91325. return A._asyncAwait(callback.call$0(), $async$_async_evaluate0$_addErrorSpan$1$2);
  91326. case 7:
  91327. // returning from await.
  91328. t1 = $async$result;
  91329. $async$returnValue = t1;
  91330. // goto return
  91331. $async$goto = 1;
  91332. break;
  91333. $async$handler = 2;
  91334. // goto after finally
  91335. $async$goto = 6;
  91336. break;
  91337. case 4:
  91338. // catch
  91339. $async$handler = 3;
  91340. $async$exception = $async$currentError;
  91341. t1 = A.unwrapException($async$exception);
  91342. if (type$.SassRuntimeException_2._is(t1)) {
  91343. error = t1;
  91344. stackTrace = A.getTraceFromException($async$exception);
  91345. if (!B.JSString_methods.startsWith$1(J.get$span$z(error).get$text(), "@error"))
  91346. throw $async$exception;
  91347. t1 = error._span_exception$_message;
  91348. t2 = nodeWithSpan.get$span(nodeWithSpan);
  91349. t3 = $async$self._async_evaluate0$_stackTrace$0();
  91350. A.throwWithTrace0(new A.SassRuntimeException0(t3, B.Set_empty, t1, t2), error, stackTrace);
  91351. } else
  91352. throw $async$exception;
  91353. // goto after finally
  91354. $async$goto = 6;
  91355. break;
  91356. case 3:
  91357. // uncaught
  91358. // goto rethrow
  91359. $async$goto = 2;
  91360. break;
  91361. case 6:
  91362. // after finally
  91363. case 1:
  91364. // return
  91365. return A._asyncReturn($async$returnValue, $async$completer);
  91366. case 2:
  91367. // rethrow
  91368. return A._asyncRethrow($async$currentError, $async$completer);
  91369. }
  91370. });
  91371. return A._asyncStartSync($async$_async_evaluate0$_addErrorSpan$1$2, $async$completer);
  91372. },
  91373. _async_evaluate0$_getErrorMessage$1(error) {
  91374. var t1, exception;
  91375. if (type$.Error._is(error))
  91376. return error.toString$0(0);
  91377. try {
  91378. t1 = A._asString(J.get$message$x(error));
  91379. return t1;
  91380. } catch (exception) {
  91381. t1 = J.toString$0$(error);
  91382. return t1;
  91383. }
  91384. },
  91385. $isExpressionVisitor: 1,
  91386. $isStatementVisitor: 1
  91387. };
  91388. A._EvaluateVisitor_closure38.prototype = {
  91389. call$1($arguments) {
  91390. var module, t2,
  91391. t1 = J.getInterceptor$asx($arguments),
  91392. variable = t1.$index($arguments, 0).assertString$1("name");
  91393. t1 = t1.$index($arguments, 1).get$realNull();
  91394. module = t1 == null ? null : t1.assertString$1("module");
  91395. t1 = this.$this._async_evaluate0$_environment;
  91396. t2 = A.stringReplaceAllUnchecked(variable._string0$_text, "_", "-");
  91397. return t1.globalVariableExists$2$namespace(t2, module == null ? null : module._string0$_text) ? B.SassBoolean_true0 : B.SassBoolean_false0;
  91398. },
  91399. $signature: 12
  91400. };
  91401. A._EvaluateVisitor_closure39.prototype = {
  91402. call$1($arguments) {
  91403. var variable = J.$index$asx($arguments, 0).assertString$1("name"),
  91404. t1 = this.$this._async_evaluate0$_environment;
  91405. return t1.getVariable$1(A.stringReplaceAllUnchecked(variable._string0$_text, "_", "-")) != null ? B.SassBoolean_true0 : B.SassBoolean_false0;
  91406. },
  91407. $signature: 12
  91408. };
  91409. A._EvaluateVisitor_closure40.prototype = {
  91410. call$1($arguments) {
  91411. var module, t2, t3, t4,
  91412. t1 = J.getInterceptor$asx($arguments),
  91413. variable = t1.$index($arguments, 0).assertString$1("name");
  91414. t1 = t1.$index($arguments, 1).get$realNull();
  91415. module = t1 == null ? null : t1.assertString$1("module");
  91416. t1 = this.$this;
  91417. t2 = t1._async_evaluate0$_environment;
  91418. t3 = variable._string0$_text;
  91419. t4 = A.stringReplaceAllUnchecked(t3, "_", "-");
  91420. return t2.getFunction$2$namespace(t4, module == null ? null : module._string0$_text) != null || t1._async_evaluate0$_builtInFunctions.containsKey$1(t3) ? B.SassBoolean_true0 : B.SassBoolean_false0;
  91421. },
  91422. $signature: 12
  91423. };
  91424. A._EvaluateVisitor_closure41.prototype = {
  91425. call$1($arguments) {
  91426. var module, t2,
  91427. t1 = J.getInterceptor$asx($arguments),
  91428. variable = t1.$index($arguments, 0).assertString$1("name");
  91429. t1 = t1.$index($arguments, 1).get$realNull();
  91430. module = t1 == null ? null : t1.assertString$1("module");
  91431. t1 = this.$this._async_evaluate0$_environment;
  91432. t2 = A.stringReplaceAllUnchecked(variable._string0$_text, "_", "-");
  91433. return t1.getMixin$2$namespace(t2, module == null ? null : module._string0$_text) != null ? B.SassBoolean_true0 : B.SassBoolean_false0;
  91434. },
  91435. $signature: 12
  91436. };
  91437. A._EvaluateVisitor_closure42.prototype = {
  91438. call$1($arguments) {
  91439. var t1 = this.$this._async_evaluate0$_environment;
  91440. if (!t1._async_environment0$_inMixin)
  91441. throw A.wrapException(A.SassScriptException$0(string$.conten, null));
  91442. return t1._async_environment0$_content != null ? B.SassBoolean_true0 : B.SassBoolean_false0;
  91443. },
  91444. $signature: 12
  91445. };
  91446. A._EvaluateVisitor_closure43.prototype = {
  91447. call$1($arguments) {
  91448. var t2, t3, t4,
  91449. t1 = J.$index$asx($arguments, 0).assertString$1("module")._string0$_text,
  91450. module = this.$this._async_evaluate0$_environment._async_environment0$_modules.$index(0, t1);
  91451. if (module == null)
  91452. throw A.wrapException('There is no module with namespace "' + t1 + '".');
  91453. t1 = type$.Value_2;
  91454. t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  91455. for (t3 = A.MapExtensions_get_pairs0(module.get$variables(), type$.String, t1), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  91456. t4 = t3.get$current(t3);
  91457. t2.$indexSet(0, new A.SassString0(t4._0, true), t4._1);
  91458. }
  91459. return new A.SassMap0(A.ConstantMap_ConstantMap$from(t2, t1, t1));
  91460. },
  91461. $signature: 36
  91462. };
  91463. A._EvaluateVisitor_closure44.prototype = {
  91464. call$1($arguments) {
  91465. var t2, t3, t4,
  91466. t1 = J.$index$asx($arguments, 0).assertString$1("module")._string0$_text,
  91467. module = this.$this._async_evaluate0$_environment._async_environment0$_modules.$index(0, t1);
  91468. if (module == null)
  91469. throw A.wrapException('There is no module with namespace "' + t1 + '".');
  91470. t1 = type$.Value_2;
  91471. t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  91472. for (t3 = A.MapExtensions_get_pairs0(module.get$functions(module), type$.String, type$.AsyncCallable_2), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  91473. t4 = t3.get$current(t3);
  91474. t2.$indexSet(0, new A.SassString0(t4._0, true), new A.SassFunction0(t4._1));
  91475. }
  91476. return new A.SassMap0(A.ConstantMap_ConstantMap$from(t2, t1, t1));
  91477. },
  91478. $signature: 36
  91479. };
  91480. A._EvaluateVisitor_closure45.prototype = {
  91481. call$1($arguments) {
  91482. var t2, t3, t4,
  91483. t1 = J.$index$asx($arguments, 0).assertString$1("module")._string0$_text,
  91484. module = this.$this._async_evaluate0$_environment._async_environment0$_modules.$index(0, t1);
  91485. if (module == null)
  91486. throw A.wrapException('There is no module with namespace "' + t1 + '".');
  91487. t1 = type$.Value_2;
  91488. t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  91489. for (t3 = A.MapExtensions_get_pairs0(module.get$mixins(), type$.String, type$.AsyncCallable_2), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  91490. t4 = t3.get$current(t3);
  91491. t2.$indexSet(0, new A.SassString0(t4._0, true), new A.SassMixin0(t4._1));
  91492. }
  91493. return new A.SassMap0(A.ConstantMap_ConstantMap$from(t2, t1, t1));
  91494. },
  91495. $signature: 36
  91496. };
  91497. A._EvaluateVisitor_closure46.prototype = {
  91498. call$1($arguments) {
  91499. var module, t2, callable,
  91500. t1 = J.getInterceptor$asx($arguments),
  91501. $name = t1.$index($arguments, 0).assertString$1("name"),
  91502. css = t1.$index($arguments, 1).get$isTruthy();
  91503. t1 = t1.$index($arguments, 2).get$realNull();
  91504. module = t1 == null ? null : t1.assertString$1("module");
  91505. if (css) {
  91506. if (module != null)
  91507. throw A.wrapException(string$.x24css_a);
  91508. return new A.SassFunction0(new A.PlainCssCallable0($name._string0$_text));
  91509. }
  91510. t1 = this.$this;
  91511. t2 = t1._async_evaluate0$_callableNode;
  91512. t2.toString;
  91513. callable = t1._async_evaluate0$_addExceptionSpan$2(t2, new A._EvaluateVisitor__closure14(t1, $name, module));
  91514. if (callable == null)
  91515. throw A.wrapException("Function not found: " + $name.toString$0(0));
  91516. return new A.SassFunction0(callable);
  91517. },
  91518. $signature: 169
  91519. };
  91520. A._EvaluateVisitor__closure14.prototype = {
  91521. call$0() {
  91522. var local,
  91523. normalizedName = A.stringReplaceAllUnchecked(this.name._string0$_text, "_", "-"),
  91524. t1 = this.module,
  91525. namespace = t1 == null ? null : t1._string0$_text;
  91526. t1 = this.$this;
  91527. local = t1._async_evaluate0$_environment.getFunction$2$namespace(normalizedName, namespace);
  91528. if (local != null || namespace != null)
  91529. return local;
  91530. return t1._async_evaluate0$_builtInFunctions.$index(0, normalizedName);
  91531. },
  91532. $signature: 96
  91533. };
  91534. A._EvaluateVisitor_closure47.prototype = {
  91535. call$1($arguments) {
  91536. var module, t2, callable,
  91537. t1 = J.getInterceptor$asx($arguments),
  91538. $name = t1.$index($arguments, 0).assertString$1("name");
  91539. t1 = t1.$index($arguments, 1).get$realNull();
  91540. module = t1 == null ? null : t1.assertString$1("module");
  91541. t1 = this.$this;
  91542. t2 = t1._async_evaluate0$_callableNode;
  91543. t2.toString;
  91544. callable = t1._async_evaluate0$_addExceptionSpan$2(t2, new A._EvaluateVisitor__closure13(t1, $name, module));
  91545. if (callable == null)
  91546. throw A.wrapException("Mixin not found: " + $name.toString$0(0));
  91547. return new A.SassMixin0(callable);
  91548. },
  91549. $signature: 171
  91550. };
  91551. A._EvaluateVisitor__closure13.prototype = {
  91552. call$0() {
  91553. var t1 = this.$this._async_evaluate0$_environment,
  91554. t2 = A.stringReplaceAllUnchecked(this.name._string0$_text, "_", "-"),
  91555. t3 = this.module;
  91556. return t1.getMixin$2$namespace(t2, t3 == null ? null : t3._string0$_text);
  91557. },
  91558. $signature: 96
  91559. };
  91560. A._EvaluateVisitor_closure48.prototype = {
  91561. call$1($arguments) {
  91562. return this.$call$body$_EvaluateVisitor_closure4($arguments);
  91563. },
  91564. $call$body$_EvaluateVisitor_closure4($arguments) {
  91565. var $async$goto = 0,
  91566. $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
  91567. $async$returnValue, $async$self = this, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, invocation, callableNode, t1, $function, args;
  91568. var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  91569. if ($async$errorCode === 1)
  91570. return A._asyncRethrow($async$result, $async$completer);
  91571. while (true)
  91572. switch ($async$goto) {
  91573. case 0:
  91574. // Function start
  91575. t1 = J.getInterceptor$asx($arguments);
  91576. $function = t1.$index($arguments, 0);
  91577. args = type$.SassArgumentList_2._as(t1.$index($arguments, 1));
  91578. t1 = $async$self.$this;
  91579. t2 = t1._async_evaluate0$_callableNode;
  91580. t2.toString;
  91581. t3 = A._setArrayType([], type$.JSArray_Expression_2);
  91582. t4 = type$.String;
  91583. t5 = type$.Expression_2;
  91584. t6 = t2.get$span(t2);
  91585. t7 = t2.get$span(t2);
  91586. args._argument_list$_wereKeywordsAccessed = true;
  91587. t8 = args._argument_list$_keywords;
  91588. if (t8.get$isEmpty(t8))
  91589. t2 = null;
  91590. else {
  91591. t9 = type$.Value_2;
  91592. t10 = A.LinkedHashMap_LinkedHashMap$_empty(t9, t9);
  91593. for (args._argument_list$_wereKeywordsAccessed = true, t8 = A.MapExtensions_get_pairs0(t8, t4, t9), t8 = t8.get$iterator(t8); t8.moveNext$0();) {
  91594. t11 = t8.get$current(t8);
  91595. t10.$indexSet(0, new A.SassString0(t11._0, false), t11._1);
  91596. }
  91597. t2 = new A.ValueExpression0(new A.SassMap0(A.ConstantMap_ConstantMap$from(t10, t9, t9)), t2.get$span(t2));
  91598. }
  91599. invocation = new A.ArgumentInvocation0(A.List_List$unmodifiable(t3, t5), A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_empty(t4, t5), t4, t5), new A.ValueExpression0(args, t7), t2, t6);
  91600. $async$goto = $function instanceof A.SassString0 ? 3 : 4;
  91601. break;
  91602. case 3:
  91603. // then
  91604. A.warnForDeprecation0(string$.Passina + $function.toString$0(0) + "))", B.Deprecation_U43);
  91605. callableNode = t1._async_evaluate0$_callableNode;
  91606. t2 = $function._string0$_text;
  91607. t3 = callableNode.get$span(callableNode);
  91608. t1 = t1.visitFunctionExpression$1(0, new A.FunctionExpression0(null, A.stringReplaceAllUnchecked(t2, "_", "-"), t2, invocation, t3));
  91609. $async$goto = 5;
  91610. return A._asyncAwait(type$.Future_Value_2._is(t1) ? t1 : A._Future$value(t1, type$.Value_2), $async$call$1);
  91611. case 5:
  91612. // returning from await.
  91613. $async$returnValue = $async$result;
  91614. // goto return
  91615. $async$goto = 1;
  91616. break;
  91617. case 4:
  91618. // join
  91619. t2 = $function.assertFunction$1("function");
  91620. t3 = t1._async_evaluate0$_callableNode;
  91621. t3.toString;
  91622. $async$goto = 6;
  91623. return A._asyncAwait(t1._async_evaluate0$_runFunctionCallable$3(invocation, t2.callable, t3), $async$call$1);
  91624. case 6:
  91625. // returning from await.
  91626. t3 = $async$result;
  91627. $async$returnValue = t3;
  91628. // goto return
  91629. $async$goto = 1;
  91630. break;
  91631. case 1:
  91632. // return
  91633. return A._asyncReturn($async$returnValue, $async$completer);
  91634. }
  91635. });
  91636. return A._asyncStartSync($async$call$1, $async$completer);
  91637. },
  91638. $signature: 107
  91639. };
  91640. A._EvaluateVisitor_closure49.prototype = {
  91641. call$1($arguments) {
  91642. return this.$call$body$_EvaluateVisitor_closure3($arguments);
  91643. },
  91644. $call$body$_EvaluateVisitor_closure3($arguments) {
  91645. var $async$goto = 0,
  91646. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  91647. $async$self = this, withMap, t2, values, configuration, t3, t1, url;
  91648. var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  91649. if ($async$errorCode === 1)
  91650. return A._asyncRethrow($async$result, $async$completer);
  91651. while (true)
  91652. switch ($async$goto) {
  91653. case 0:
  91654. // Function start
  91655. t1 = J.getInterceptor$asx($arguments);
  91656. url = A.Uri_parse(t1.$index($arguments, 0).assertString$1("url")._string0$_text);
  91657. t1 = t1.$index($arguments, 1).get$realNull();
  91658. withMap = t1 == null ? null : t1.assertMap$1("with")._map0$_contents;
  91659. t1 = $async$self.$this;
  91660. t2 = t1._async_evaluate0$_callableNode;
  91661. t2.toString;
  91662. if (withMap != null) {
  91663. values = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue_2);
  91664. withMap.forEach$1(0, new A._EvaluateVisitor__closure11(values, t2.get$span(t2), t2));
  91665. configuration = new A.ExplicitConfiguration0(t2, values, null);
  91666. } else
  91667. configuration = B.Configuration_Map_empty_null0;
  91668. t3 = t2.get$span(t2);
  91669. $async$goto = 2;
  91670. return A._asyncAwait(t1._async_evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, "load-css()", t2, new A._EvaluateVisitor__closure12(t1), t3.get$sourceUrl(t3), configuration, true), $async$call$1);
  91671. case 2:
  91672. // returning from await.
  91673. t1._async_evaluate0$_assertConfigurationIsEmpty$2$nameInError(configuration, true);
  91674. // implicit return
  91675. return A._asyncReturn(null, $async$completer);
  91676. }
  91677. });
  91678. return A._asyncStartSync($async$call$1, $async$completer);
  91679. },
  91680. $signature: 172
  91681. };
  91682. A._EvaluateVisitor__closure11.prototype = {
  91683. call$2(variable, value) {
  91684. var t1 = variable.assertString$1("with key"),
  91685. $name = A.stringReplaceAllUnchecked(t1._string0$_text, "_", "-");
  91686. t1 = this.values;
  91687. if (t1.containsKey$1($name))
  91688. throw A.wrapException("The variable $" + $name + " was configured twice.");
  91689. t1.$indexSet(0, $name, new A.ConfiguredValue0(value, this.span, this.callableNode));
  91690. },
  91691. $signature: 97
  91692. };
  91693. A._EvaluateVisitor__closure12.prototype = {
  91694. call$2(module, _) {
  91695. var t1 = this.$this;
  91696. return t1._async_evaluate0$_combineCss$2$clone(module, true).accept$1(t1);
  91697. },
  91698. $signature: 331
  91699. };
  91700. A._EvaluateVisitor_closure50.prototype = {
  91701. call$1($arguments) {
  91702. return this.$call$body$_EvaluateVisitor_closure2($arguments);
  91703. },
  91704. $call$body$_EvaluateVisitor_closure2($arguments) {
  91705. var $async$goto = 0,
  91706. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  91707. $async$self = this, callableNode, t2, t3, t4, t5, t1, mixin, args;
  91708. var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  91709. if ($async$errorCode === 1)
  91710. return A._asyncRethrow($async$result, $async$completer);
  91711. while (true)
  91712. switch ($async$goto) {
  91713. case 0:
  91714. // Function start
  91715. t1 = J.getInterceptor$asx($arguments);
  91716. mixin = t1.$index($arguments, 0);
  91717. args = type$.SassArgumentList_2._as(t1.$index($arguments, 1));
  91718. t1 = $async$self.$this;
  91719. callableNode = t1._async_evaluate0$_callableNode;
  91720. t2 = callableNode.get$span(callableNode);
  91721. t3 = callableNode.get$span(callableNode);
  91722. t4 = type$.Expression_2;
  91723. t5 = A.List_List$unmodifiable(B.List_empty21, t4);
  91724. t4 = A.ConstantMap_ConstantMap$from(B.Map_empty14, type$.String, t4);
  91725. $async$goto = 2;
  91726. return A._asyncAwait(t1._async_evaluate0$_applyMixin$5(mixin.assertMixin$1("mixin").callable, t1._async_evaluate0$_environment._async_environment0$_content, new A.ArgumentInvocation0(t5, t4, new A.ValueExpression0(args, t3), null, t2), callableNode, callableNode), $async$call$1);
  91727. case 2:
  91728. // returning from await.
  91729. // implicit return
  91730. return A._asyncReturn(null, $async$completer);
  91731. }
  91732. });
  91733. return A._asyncStartSync($async$call$1, $async$completer);
  91734. },
  91735. $signature: 172
  91736. };
  91737. A._EvaluateVisitor_run_closure2.prototype = {
  91738. call$0() {
  91739. var $async$goto = 0,
  91740. $async$completer = A._makeAsyncAwaitCompleter(type$.Record_2_Set_Uri_loadedUrls_and_CssStylesheet_stylesheet_2),
  91741. $async$returnValue, $async$self = this, module, t2, t1, _0_0, url;
  91742. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  91743. if ($async$errorCode === 1)
  91744. return A._asyncRethrow($async$result, $async$completer);
  91745. while (true)
  91746. switch ($async$goto) {
  91747. case 0:
  91748. // Function start
  91749. t1 = $async$self.node;
  91750. _0_0 = t1.span.file.url;
  91751. url = null;
  91752. if (_0_0 != null) {
  91753. url = _0_0;
  91754. t2 = $async$self.$this;
  91755. t2._async_evaluate0$_activeModules.$indexSet(0, url, null);
  91756. if (!(t2._async_evaluate0$_nodeImporter != null && J.toString$0$(url) === "stdin"))
  91757. t2._async_evaluate0$_loadedUrls.add$1(0, url);
  91758. }
  91759. t2 = $async$self.$this;
  91760. $async$goto = 3;
  91761. return A._asyncAwait(t2._async_evaluate0$_addExceptionTrace$1$1(new A._EvaluateVisitor_run__closure2(t2, $async$self.importer, t1), type$.Module_AsyncCallable_2), $async$call$0);
  91762. case 3:
  91763. // returning from await.
  91764. module = $async$result;
  91765. $async$returnValue = new A._Record_2_loadedUrls_stylesheet(t2._async_evaluate0$_loadedUrls, t2._async_evaluate0$_combineCss$1(module));
  91766. // goto return
  91767. $async$goto = 1;
  91768. break;
  91769. case 1:
  91770. // return
  91771. return A._asyncReturn($async$returnValue, $async$completer);
  91772. }
  91773. });
  91774. return A._asyncStartSync($async$call$0, $async$completer);
  91775. },
  91776. $signature: 332
  91777. };
  91778. A._EvaluateVisitor_run__closure2.prototype = {
  91779. call$0() {
  91780. return this.$this._async_evaluate0$_execute$2(this.importer, this.node);
  91781. },
  91782. $signature: 333
  91783. };
  91784. A._EvaluateVisitor__loadModule_closure5.prototype = {
  91785. call$0() {
  91786. return this.callback.call$2(this._box_1.builtInModule, false);
  91787. },
  91788. $signature: 0
  91789. };
  91790. A._EvaluateVisitor__loadModule_closure6.prototype = {
  91791. call$0() {
  91792. return this.$call$body$_EvaluateVisitor__loadModule_closure0();
  91793. },
  91794. $call$body$_EvaluateVisitor__loadModule_closure0() {
  91795. var $async$goto = 0,
  91796. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  91797. $async$handler = 1, $async$currentError, $async$next = [], $async$self = this, canonicalUrl, oldInDependency, isDependency, t4, message, t1, stylesheet, importer, t2, t3, _1_0, $async$temp1;
  91798. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  91799. if ($async$errorCode === 1) {
  91800. $async$currentError = $async$result;
  91801. $async$goto = $async$handler;
  91802. }
  91803. while (true)
  91804. switch ($async$goto) {
  91805. case 0:
  91806. // Function start
  91807. t1 = {};
  91808. stylesheet = null;
  91809. importer = null;
  91810. t2 = $async$self.$this;
  91811. t3 = $async$self.nodeWithSpan;
  91812. $async$goto = 2;
  91813. return A._asyncAwait(t2._async_evaluate0$_loadStylesheet$3$baseUrl($async$self.url.toString$0(0), t3.get$span(t3), $async$self.baseUrl), $async$call$0);
  91814. case 2:
  91815. // returning from await.
  91816. _1_0 = $async$result;
  91817. stylesheet = _1_0._0;
  91818. importer = _1_0._1;
  91819. isDependency = _1_0._2;
  91820. canonicalUrl = stylesheet.span.file.url;
  91821. if (canonicalUrl != null) {
  91822. t4 = t2._async_evaluate0$_activeModules;
  91823. if (t4.containsKey$1(canonicalUrl)) {
  91824. if ($async$self.namesInErrors) {
  91825. t1 = canonicalUrl;
  91826. t3 = $.$get$context();
  91827. t1.toString;
  91828. message = "Module loop: " + t3.prettyUri$1(t1) + " is already being loaded.";
  91829. } else
  91830. message = string$.Modulel;
  91831. t1 = A.NullableExtension_andThen0(t4.$index(0, canonicalUrl), new A._EvaluateVisitor__loadModule__closure5(t2, message));
  91832. throw A.wrapException(t1 == null ? t2._async_evaluate0$_exception$1(message) : t1);
  91833. } else
  91834. t4.$indexSet(0, canonicalUrl, t3);
  91835. }
  91836. t4 = t2._async_evaluate0$_modules.containsKey$1(canonicalUrl);
  91837. oldInDependency = t2._async_evaluate0$_inDependency;
  91838. t2._async_evaluate0$_inDependency = isDependency;
  91839. t1.module = null;
  91840. $async$handler = 3;
  91841. $async$temp1 = t1;
  91842. $async$goto = 6;
  91843. return A._asyncAwait(t2._async_evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, $async$self.configuration, $async$self.namesInErrors, t3), $async$call$0);
  91844. case 6:
  91845. // returning from await.
  91846. $async$temp1.module = $async$result;
  91847. $async$next.push(5);
  91848. // goto finally
  91849. $async$goto = 4;
  91850. break;
  91851. case 3:
  91852. // uncaught
  91853. $async$next = [1];
  91854. case 4:
  91855. // finally
  91856. $async$handler = 1;
  91857. t2._async_evaluate0$_activeModules.remove$1(0, canonicalUrl);
  91858. t2._async_evaluate0$_inDependency = oldInDependency;
  91859. // goto the next finally handler
  91860. $async$goto = $async$next.pop();
  91861. break;
  91862. case 5:
  91863. // after finally
  91864. $async$goto = 7;
  91865. return A._asyncAwait(t2._async_evaluate0$_addExceptionSpanAsync$1$3$addStackFrame(t3, new A._EvaluateVisitor__loadModule__closure6(t1, $async$self.callback, !t4), false, type$.void), $async$call$0);
  91866. case 7:
  91867. // returning from await.
  91868. // implicit return
  91869. return A._asyncReturn(null, $async$completer);
  91870. case 1:
  91871. // rethrow
  91872. return A._asyncRethrow($async$currentError, $async$completer);
  91873. }
  91874. });
  91875. return A._asyncStartSync($async$call$0, $async$completer);
  91876. },
  91877. $signature: 2
  91878. };
  91879. A._EvaluateVisitor__loadModule__closure5.prototype = {
  91880. call$1(previousLoad) {
  91881. return this.$this._async_evaluate0$_multiSpanException$3(this.message, "new load", A.LinkedHashMap_LinkedHashMap$_literal([previousLoad.get$span(previousLoad), "original load"], type$.FileSpan, type$.String));
  91882. },
  91883. $signature: 98
  91884. };
  91885. A._EvaluateVisitor__loadModule__closure6.prototype = {
  91886. call$0() {
  91887. return this.callback.call$2(this._box_0.module, this.firstLoad);
  91888. },
  91889. $signature: 0
  91890. };
  91891. A._EvaluateVisitor__execute_closure2.prototype = {
  91892. call$0() {
  91893. var $async$goto = 0,
  91894. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  91895. $async$self = this, t3, t4, t5, t6, t1, oldImporter, oldStylesheet, oldRoot, oldPreModuleComments, oldParent, oldEndOfImports, oldOutOfOrderImports, oldExtensionStore, t2, oldStyleRule, oldMediaQueries, oldDeclarationName, oldInUnknownAtRule, oldInKeyframes, oldConfiguration;
  91896. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  91897. if ($async$errorCode === 1)
  91898. return A._asyncRethrow($async$result, $async$completer);
  91899. while (true)
  91900. switch ($async$goto) {
  91901. case 0:
  91902. // Function start
  91903. t1 = $async$self.$this;
  91904. oldImporter = t1._async_evaluate0$_importer;
  91905. oldStylesheet = t1._async_evaluate0$__stylesheet;
  91906. oldRoot = t1._async_evaluate0$__root;
  91907. oldPreModuleComments = t1._async_evaluate0$_preModuleComments;
  91908. oldParent = t1._async_evaluate0$__parent;
  91909. oldEndOfImports = t1._async_evaluate0$__endOfImports;
  91910. oldOutOfOrderImports = t1._async_evaluate0$_outOfOrderImports;
  91911. oldExtensionStore = t1._async_evaluate0$__extensionStore;
  91912. t2 = t1._async_evaluate0$_atRootExcludingStyleRule;
  91913. oldStyleRule = t2 ? null : t1._async_evaluate0$_styleRuleIgnoringAtRoot;
  91914. oldMediaQueries = t1._async_evaluate0$_mediaQueries;
  91915. oldDeclarationName = t1._async_evaluate0$_declarationName;
  91916. oldInUnknownAtRule = t1._async_evaluate0$_inUnknownAtRule;
  91917. oldInKeyframes = t1._async_evaluate0$_inKeyframes;
  91918. oldConfiguration = t1._async_evaluate0$_configuration;
  91919. t1._async_evaluate0$_importer = $async$self.importer;
  91920. t3 = t1._async_evaluate0$__stylesheet = $async$self.stylesheet;
  91921. t4 = t3.span;
  91922. t5 = t1._async_evaluate0$__parent = t1._async_evaluate0$__root = A.ModifiableCssStylesheet$0(t4);
  91923. t1._async_evaluate0$__endOfImports = 0;
  91924. t1._async_evaluate0$_outOfOrderImports = null;
  91925. t1._async_evaluate0$__extensionStore = $async$self.extensionStore;
  91926. t1._async_evaluate0$_declarationName = t1._async_evaluate0$_mediaQueries = t1._async_evaluate0$_styleRuleIgnoringAtRoot = null;
  91927. t1._async_evaluate0$_inKeyframes = t1._async_evaluate0$_atRootExcludingStyleRule = t1._async_evaluate0$_inUnknownAtRule = false;
  91928. t6 = $async$self.configuration;
  91929. if (t6 != null)
  91930. t1._async_evaluate0$_configuration = t6;
  91931. $async$goto = 2;
  91932. return A._asyncAwait(t1.visitStylesheet$1(0, t3), $async$call$0);
  91933. case 2:
  91934. // returning from await.
  91935. t3 = t1._async_evaluate0$_outOfOrderImports == null ? t5 : new A.CssStylesheet0(new A.UnmodifiableListView(t1._async_evaluate0$_addOutOfOrderImports$0(), type$.UnmodifiableListView_CssNode_2), t4);
  91936. $async$self.css.__late_helper$_value = t3;
  91937. $async$self.preModuleComments.__late_helper$_value = t1._async_evaluate0$_preModuleComments;
  91938. t1._async_evaluate0$_importer = oldImporter;
  91939. t1._async_evaluate0$__stylesheet = oldStylesheet;
  91940. t1._async_evaluate0$__root = oldRoot;
  91941. t1._async_evaluate0$_preModuleComments = oldPreModuleComments;
  91942. t1._async_evaluate0$__parent = oldParent;
  91943. t1._async_evaluate0$__endOfImports = oldEndOfImports;
  91944. t1._async_evaluate0$_outOfOrderImports = oldOutOfOrderImports;
  91945. t1._async_evaluate0$__extensionStore = oldExtensionStore;
  91946. t1._async_evaluate0$_styleRuleIgnoringAtRoot = oldStyleRule;
  91947. t1._async_evaluate0$_mediaQueries = oldMediaQueries;
  91948. t1._async_evaluate0$_declarationName = oldDeclarationName;
  91949. t1._async_evaluate0$_inUnknownAtRule = oldInUnknownAtRule;
  91950. t1._async_evaluate0$_atRootExcludingStyleRule = t2;
  91951. t1._async_evaluate0$_inKeyframes = oldInKeyframes;
  91952. t1._async_evaluate0$_configuration = oldConfiguration;
  91953. // implicit return
  91954. return A._asyncReturn(null, $async$completer);
  91955. }
  91956. });
  91957. return A._asyncStartSync($async$call$0, $async$completer);
  91958. },
  91959. $signature: 2
  91960. };
  91961. A._EvaluateVisitor__combineCss_closure5.prototype = {
  91962. call$1(module) {
  91963. return module.get$transitivelyContainsCss();
  91964. },
  91965. $signature: 129
  91966. };
  91967. A._EvaluateVisitor__combineCss_closure6.prototype = {
  91968. call$1(target) {
  91969. return !this.selectors.contains$1(0, target);
  91970. },
  91971. $signature: 14
  91972. };
  91973. A._EvaluateVisitor__combineCss_visitModule2.prototype = {
  91974. call$1(module) {
  91975. var t1, t2, t3, t4, _i, upstream, _1_0, statements, index, _this = this;
  91976. if (!_this.seen.add$1(0, module))
  91977. return;
  91978. if (_this.clone)
  91979. module = module.cloneCss$0();
  91980. for (t1 = module.get$upstream(), t2 = t1.length, t3 = _this.css, t4 = _this.imports, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
  91981. upstream = t1[_i];
  91982. if (upstream.get$transitivelyContainsCss()) {
  91983. _1_0 = module.get$preModuleComments().$index(0, upstream);
  91984. if (_1_0 != null)
  91985. B.JSArray_methods.addAll$1(t3.length === 0 ? t4 : t3, _1_0);
  91986. _this.call$1(upstream);
  91987. }
  91988. }
  91989. _this.sorted.addFirst$1(module);
  91990. t1 = module.get$css(module);
  91991. statements = t1.get$children(t1);
  91992. index = _this.$this._async_evaluate0$_indexAfterImports$1(statements);
  91993. t1 = J.getInterceptor$ax(statements);
  91994. B.JSArray_methods.addAll$1(t4, t1.getRange$2(statements, 0, index));
  91995. B.JSArray_methods.addAll$1(t3, t1.getRange$2(statements, index, t1.get$length(statements)));
  91996. },
  91997. $signature: 335
  91998. };
  91999. A._EvaluateVisitor__extendModules_closure5.prototype = {
  92000. call$1(target) {
  92001. return !this.originalSelectors.contains$1(0, target);
  92002. },
  92003. $signature: 14
  92004. };
  92005. A._EvaluateVisitor__extendModules_closure6.prototype = {
  92006. call$0() {
  92007. return A._setArrayType([], type$.JSArray_ExtensionStore_2);
  92008. },
  92009. $signature: 167
  92010. };
  92011. A._EvaluateVisitor_visitAtRootRule_closure5.prototype = {
  92012. call$0() {
  92013. var $async$goto = 0,
  92014. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  92015. $async$self = this, t1, t2, t3, _i;
  92016. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  92017. if ($async$errorCode === 1)
  92018. return A._asyncRethrow($async$result, $async$completer);
  92019. while (true)
  92020. switch ($async$goto) {
  92021. case 0:
  92022. // Function start
  92023. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  92024. case 2:
  92025. // for condition
  92026. if (!(_i < t2)) {
  92027. // goto after for
  92028. $async$goto = 4;
  92029. break;
  92030. }
  92031. $async$goto = 5;
  92032. return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  92033. case 5:
  92034. // returning from await.
  92035. case 3:
  92036. // for update
  92037. ++_i;
  92038. // goto for condition
  92039. $async$goto = 2;
  92040. break;
  92041. case 4:
  92042. // after for
  92043. // implicit return
  92044. return A._asyncReturn(null, $async$completer);
  92045. }
  92046. });
  92047. return A._asyncStartSync($async$call$0, $async$completer);
  92048. },
  92049. $signature: 2
  92050. };
  92051. A._EvaluateVisitor_visitAtRootRule_closure6.prototype = {
  92052. call$0() {
  92053. var $async$goto = 0,
  92054. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  92055. $async$self = this, t1, t2, t3, _i;
  92056. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  92057. if ($async$errorCode === 1)
  92058. return A._asyncRethrow($async$result, $async$completer);
  92059. while (true)
  92060. switch ($async$goto) {
  92061. case 0:
  92062. // Function start
  92063. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  92064. case 2:
  92065. // for condition
  92066. if (!(_i < t2)) {
  92067. // goto after for
  92068. $async$goto = 4;
  92069. break;
  92070. }
  92071. $async$goto = 5;
  92072. return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  92073. case 5:
  92074. // returning from await.
  92075. case 3:
  92076. // for update
  92077. ++_i;
  92078. // goto for condition
  92079. $async$goto = 2;
  92080. break;
  92081. case 4:
  92082. // after for
  92083. // implicit return
  92084. return A._asyncReturn(null, $async$completer);
  92085. }
  92086. });
  92087. return A._asyncStartSync($async$call$0, $async$completer);
  92088. },
  92089. $signature: 30
  92090. };
  92091. A._EvaluateVisitor__scopeForAtRoot_closure17.prototype = {
  92092. call$1(callback) {
  92093. var $async$goto = 0,
  92094. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  92095. $async$self = this, t1, t2;
  92096. var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  92097. if ($async$errorCode === 1)
  92098. return A._asyncRethrow($async$result, $async$completer);
  92099. while (true)
  92100. switch ($async$goto) {
  92101. case 0:
  92102. // Function start
  92103. t1 = $async$self.$this;
  92104. t2 = t1._async_evaluate0$_assertInModule$2(t1._async_evaluate0$__parent, "__parent");
  92105. t1._async_evaluate0$__parent = $async$self.newParent;
  92106. $async$goto = 2;
  92107. return A._asyncAwait(t1._async_evaluate0$_environment.scope$1$2$when(callback, $async$self.node.hasDeclarations, type$.void), $async$call$1);
  92108. case 2:
  92109. // returning from await.
  92110. t1._async_evaluate0$__parent = t2;
  92111. // implicit return
  92112. return A._asyncReturn(null, $async$completer);
  92113. }
  92114. });
  92115. return A._asyncStartSync($async$call$1, $async$completer);
  92116. },
  92117. $signature: 39
  92118. };
  92119. A._EvaluateVisitor__scopeForAtRoot_closure18.prototype = {
  92120. call$1(callback) {
  92121. var $async$goto = 0,
  92122. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  92123. $async$self = this, t1, oldAtRootExcludingStyleRule;
  92124. var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  92125. if ($async$errorCode === 1)
  92126. return A._asyncRethrow($async$result, $async$completer);
  92127. while (true)
  92128. switch ($async$goto) {
  92129. case 0:
  92130. // Function start
  92131. t1 = $async$self.$this;
  92132. oldAtRootExcludingStyleRule = t1._async_evaluate0$_atRootExcludingStyleRule;
  92133. t1._async_evaluate0$_atRootExcludingStyleRule = true;
  92134. $async$goto = 2;
  92135. return A._asyncAwait($async$self.innerScope.call$1(callback), $async$call$1);
  92136. case 2:
  92137. // returning from await.
  92138. t1._async_evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  92139. // implicit return
  92140. return A._asyncReturn(null, $async$completer);
  92141. }
  92142. });
  92143. return A._asyncStartSync($async$call$1, $async$completer);
  92144. },
  92145. $signature: 39
  92146. };
  92147. A._EvaluateVisitor__scopeForAtRoot_closure19.prototype = {
  92148. call$1(callback) {
  92149. return this.$this._async_evaluate0$_withMediaQueries$1$3(null, null, new A._EvaluateVisitor__scopeForAtRoot__closure2(this.innerScope, callback), type$.Null);
  92150. },
  92151. $signature: 39
  92152. };
  92153. A._EvaluateVisitor__scopeForAtRoot__closure2.prototype = {
  92154. call$0() {
  92155. return this.innerScope.call$1(this.callback);
  92156. },
  92157. $signature: 2
  92158. };
  92159. A._EvaluateVisitor__scopeForAtRoot_closure20.prototype = {
  92160. call$1(callback) {
  92161. var $async$goto = 0,
  92162. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  92163. $async$self = this, t1, wasInKeyframes;
  92164. var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  92165. if ($async$errorCode === 1)
  92166. return A._asyncRethrow($async$result, $async$completer);
  92167. while (true)
  92168. switch ($async$goto) {
  92169. case 0:
  92170. // Function start
  92171. t1 = $async$self.$this;
  92172. wasInKeyframes = t1._async_evaluate0$_inKeyframes;
  92173. t1._async_evaluate0$_inKeyframes = false;
  92174. $async$goto = 2;
  92175. return A._asyncAwait($async$self.innerScope.call$1(callback), $async$call$1);
  92176. case 2:
  92177. // returning from await.
  92178. t1._async_evaluate0$_inKeyframes = wasInKeyframes;
  92179. // implicit return
  92180. return A._asyncReturn(null, $async$completer);
  92181. }
  92182. });
  92183. return A._asyncStartSync($async$call$1, $async$completer);
  92184. },
  92185. $signature: 39
  92186. };
  92187. A._EvaluateVisitor__scopeForAtRoot_closure21.prototype = {
  92188. call$1($parent) {
  92189. return $parent instanceof A.ModifiableCssAtRule0;
  92190. },
  92191. $signature: 175
  92192. };
  92193. A._EvaluateVisitor__scopeForAtRoot_closure22.prototype = {
  92194. call$1(callback) {
  92195. var $async$goto = 0,
  92196. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  92197. $async$self = this, t1, wasInUnknownAtRule;
  92198. var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  92199. if ($async$errorCode === 1)
  92200. return A._asyncRethrow($async$result, $async$completer);
  92201. while (true)
  92202. switch ($async$goto) {
  92203. case 0:
  92204. // Function start
  92205. t1 = $async$self.$this;
  92206. wasInUnknownAtRule = t1._async_evaluate0$_inUnknownAtRule;
  92207. t1._async_evaluate0$_inUnknownAtRule = false;
  92208. $async$goto = 2;
  92209. return A._asyncAwait($async$self.innerScope.call$1(callback), $async$call$1);
  92210. case 2:
  92211. // returning from await.
  92212. t1._async_evaluate0$_inUnknownAtRule = wasInUnknownAtRule;
  92213. // implicit return
  92214. return A._asyncReturn(null, $async$completer);
  92215. }
  92216. });
  92217. return A._asyncStartSync($async$call$1, $async$completer);
  92218. },
  92219. $signature: 39
  92220. };
  92221. A._EvaluateVisitor_visitContentRule_closure2.prototype = {
  92222. call$0() {
  92223. var $async$goto = 0,
  92224. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  92225. $async$returnValue, $async$self = this, t1, t2, t3, _i;
  92226. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  92227. if ($async$errorCode === 1)
  92228. return A._asyncRethrow($async$result, $async$completer);
  92229. while (true)
  92230. switch ($async$goto) {
  92231. case 0:
  92232. // Function start
  92233. t1 = $async$self.content.declaration.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  92234. case 3:
  92235. // for condition
  92236. if (!(_i < t2)) {
  92237. // goto after for
  92238. $async$goto = 5;
  92239. break;
  92240. }
  92241. $async$goto = 6;
  92242. return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  92243. case 6:
  92244. // returning from await.
  92245. case 4:
  92246. // for update
  92247. ++_i;
  92248. // goto for condition
  92249. $async$goto = 3;
  92250. break;
  92251. case 5:
  92252. // after for
  92253. $async$returnValue = null;
  92254. // goto return
  92255. $async$goto = 1;
  92256. break;
  92257. case 1:
  92258. // return
  92259. return A._asyncReturn($async$returnValue, $async$completer);
  92260. }
  92261. });
  92262. return A._asyncStartSync($async$call$0, $async$completer);
  92263. },
  92264. $signature: 2
  92265. };
  92266. A._EvaluateVisitor_visitDeclaration_closure2.prototype = {
  92267. call$0() {
  92268. var $async$goto = 0,
  92269. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  92270. $async$self = this, t1, t2, t3, _i;
  92271. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  92272. if ($async$errorCode === 1)
  92273. return A._asyncRethrow($async$result, $async$completer);
  92274. while (true)
  92275. switch ($async$goto) {
  92276. case 0:
  92277. // Function start
  92278. t1 = $async$self._box_0.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  92279. case 2:
  92280. // for condition
  92281. if (!(_i < t2)) {
  92282. // goto after for
  92283. $async$goto = 4;
  92284. break;
  92285. }
  92286. $async$goto = 5;
  92287. return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  92288. case 5:
  92289. // returning from await.
  92290. case 3:
  92291. // for update
  92292. ++_i;
  92293. // goto for condition
  92294. $async$goto = 2;
  92295. break;
  92296. case 4:
  92297. // after for
  92298. // implicit return
  92299. return A._asyncReturn(null, $async$completer);
  92300. }
  92301. });
  92302. return A._asyncStartSync($async$call$0, $async$completer);
  92303. },
  92304. $signature: 2
  92305. };
  92306. A._EvaluateVisitor_visitEachRule_closure8.prototype = {
  92307. call$1(value) {
  92308. var t1 = this.$this,
  92309. t2 = this.nodeWithSpan;
  92310. return t1._async_evaluate0$_environment.setLocalVariable$3(this._box_0.variable, t1._async_evaluate0$_withoutSlash$2(value, t2), t2);
  92311. },
  92312. $signature: 61
  92313. };
  92314. A._EvaluateVisitor_visitEachRule_closure9.prototype = {
  92315. call$1(value) {
  92316. return this.$this._async_evaluate0$_setMultipleVariables$3(this._box_0.variables, value, this.nodeWithSpan);
  92317. },
  92318. $signature: 61
  92319. };
  92320. A._EvaluateVisitor_visitEachRule_closure10.prototype = {
  92321. call$0() {
  92322. var _this = this,
  92323. t1 = _this.$this;
  92324. return t1._async_evaluate0$_handleReturn$2(_this.list.get$asList(), new A._EvaluateVisitor_visitEachRule__closure2(t1, _this.setVariables, _this.node));
  92325. },
  92326. $signature: 67
  92327. };
  92328. A._EvaluateVisitor_visitEachRule__closure2.prototype = {
  92329. call$1(element) {
  92330. var t1;
  92331. this.setVariables.call$1(element);
  92332. t1 = this.$this;
  92333. return t1._async_evaluate0$_handleReturn$2(this.node.children, new A._EvaluateVisitor_visitEachRule___closure2(t1));
  92334. },
  92335. $signature: 340
  92336. };
  92337. A._EvaluateVisitor_visitEachRule___closure2.prototype = {
  92338. call$1(child) {
  92339. return child.accept$1(this.$this);
  92340. },
  92341. $signature: 101
  92342. };
  92343. A._EvaluateVisitor_visitAtRule_closure8.prototype = {
  92344. call$1(value) {
  92345. return this.$this._async_evaluate0$_interpolationToValue$3$trim$warnForColor(value, true, true);
  92346. },
  92347. $signature: 342
  92348. };
  92349. A._EvaluateVisitor_visitAtRule_closure9.prototype = {
  92350. call$0() {
  92351. var $async$goto = 0,
  92352. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  92353. $async$self = this, t2, t3, _i, t1, styleRule;
  92354. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  92355. if ($async$errorCode === 1)
  92356. return A._asyncRethrow($async$result, $async$completer);
  92357. while (true)
  92358. switch ($async$goto) {
  92359. case 0:
  92360. // Function start
  92361. t1 = $async$self.$this;
  92362. styleRule = t1._async_evaluate0$_atRootExcludingStyleRule ? null : t1._async_evaluate0$_styleRuleIgnoringAtRoot;
  92363. $async$goto = styleRule == null || t1._async_evaluate0$_inKeyframes || J.$eq$($async$self.name.value, "font-face") ? 2 : 4;
  92364. break;
  92365. case 2:
  92366. // then
  92367. t2 = $async$self.children, t3 = t2.length, _i = 0;
  92368. case 5:
  92369. // for condition
  92370. if (!(_i < t3)) {
  92371. // goto after for
  92372. $async$goto = 7;
  92373. break;
  92374. }
  92375. $async$goto = 8;
  92376. return A._asyncAwait(t2[_i].accept$1(t1), $async$call$0);
  92377. case 8:
  92378. // returning from await.
  92379. case 6:
  92380. // for update
  92381. ++_i;
  92382. // goto for condition
  92383. $async$goto = 5;
  92384. break;
  92385. case 7:
  92386. // after for
  92387. // goto join
  92388. $async$goto = 3;
  92389. break;
  92390. case 4:
  92391. // else
  92392. $async$goto = 9;
  92393. return A._asyncAwait(t1._async_evaluate0$_withParent$2$3$scopeWhen(A.ModifiableCssStyleRule$0(styleRule._style_rule0$_selector, styleRule.span, false, styleRule.originalSelector), new A._EvaluateVisitor_visitAtRule__closure2(t1, $async$self.children), false, type$.ModifiableCssStyleRule_2, type$.Null), $async$call$0);
  92394. case 9:
  92395. // returning from await.
  92396. case 3:
  92397. // join
  92398. // implicit return
  92399. return A._asyncReturn(null, $async$completer);
  92400. }
  92401. });
  92402. return A._asyncStartSync($async$call$0, $async$completer);
  92403. },
  92404. $signature: 2
  92405. };
  92406. A._EvaluateVisitor_visitAtRule__closure2.prototype = {
  92407. call$0() {
  92408. var $async$goto = 0,
  92409. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  92410. $async$self = this, t1, t2, t3, _i;
  92411. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  92412. if ($async$errorCode === 1)
  92413. return A._asyncRethrow($async$result, $async$completer);
  92414. while (true)
  92415. switch ($async$goto) {
  92416. case 0:
  92417. // Function start
  92418. t1 = $async$self.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  92419. case 2:
  92420. // for condition
  92421. if (!(_i < t2)) {
  92422. // goto after for
  92423. $async$goto = 4;
  92424. break;
  92425. }
  92426. $async$goto = 5;
  92427. return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  92428. case 5:
  92429. // returning from await.
  92430. case 3:
  92431. // for update
  92432. ++_i;
  92433. // goto for condition
  92434. $async$goto = 2;
  92435. break;
  92436. case 4:
  92437. // after for
  92438. // implicit return
  92439. return A._asyncReturn(null, $async$completer);
  92440. }
  92441. });
  92442. return A._asyncStartSync($async$call$0, $async$completer);
  92443. },
  92444. $signature: 2
  92445. };
  92446. A._EvaluateVisitor_visitAtRule_closure10.prototype = {
  92447. call$1(node) {
  92448. return node instanceof A.ModifiableCssStyleRule0;
  92449. },
  92450. $signature: 8
  92451. };
  92452. A._EvaluateVisitor_visitForRule_closure14.prototype = {
  92453. call$0() {
  92454. var $async$goto = 0,
  92455. $async$completer = A._makeAsyncAwaitCompleter(type$.SassNumber_2),
  92456. $async$returnValue, $async$self = this;
  92457. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  92458. if ($async$errorCode === 1)
  92459. return A._asyncRethrow($async$result, $async$completer);
  92460. while (true)
  92461. switch ($async$goto) {
  92462. case 0:
  92463. // Function start
  92464. $async$goto = 3;
  92465. return A._asyncAwait($async$self.node.from.accept$1($async$self.$this), $async$call$0);
  92466. case 3:
  92467. // returning from await.
  92468. $async$returnValue = $async$result.assertNumber$0();
  92469. // goto return
  92470. $async$goto = 1;
  92471. break;
  92472. case 1:
  92473. // return
  92474. return A._asyncReturn($async$returnValue, $async$completer);
  92475. }
  92476. });
  92477. return A._asyncStartSync($async$call$0, $async$completer);
  92478. },
  92479. $signature: 271
  92480. };
  92481. A._EvaluateVisitor_visitForRule_closure15.prototype = {
  92482. call$0() {
  92483. var $async$goto = 0,
  92484. $async$completer = A._makeAsyncAwaitCompleter(type$.SassNumber_2),
  92485. $async$returnValue, $async$self = this;
  92486. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  92487. if ($async$errorCode === 1)
  92488. return A._asyncRethrow($async$result, $async$completer);
  92489. while (true)
  92490. switch ($async$goto) {
  92491. case 0:
  92492. // Function start
  92493. $async$goto = 3;
  92494. return A._asyncAwait($async$self.node.to.accept$1($async$self.$this), $async$call$0);
  92495. case 3:
  92496. // returning from await.
  92497. $async$returnValue = $async$result.assertNumber$0();
  92498. // goto return
  92499. $async$goto = 1;
  92500. break;
  92501. case 1:
  92502. // return
  92503. return A._asyncReturn($async$returnValue, $async$completer);
  92504. }
  92505. });
  92506. return A._asyncStartSync($async$call$0, $async$completer);
  92507. },
  92508. $signature: 271
  92509. };
  92510. A._EvaluateVisitor_visitForRule_closure16.prototype = {
  92511. call$0() {
  92512. return this.fromNumber.assertInt$0();
  92513. },
  92514. $signature: 10
  92515. };
  92516. A._EvaluateVisitor_visitForRule_closure17.prototype = {
  92517. call$0() {
  92518. var t1 = this.fromNumber;
  92519. return this.toNumber.coerce$2(t1.get$numeratorUnits(t1), t1.get$denominatorUnits(t1)).assertInt$0();
  92520. },
  92521. $signature: 10
  92522. };
  92523. A._EvaluateVisitor_visitForRule_closure18.prototype = {
  92524. call$0() {
  92525. var $async$goto = 0,
  92526. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  92527. $async$returnValue, $async$self = this, i, t3, t4, t5, t6, t7, t8, _0_0, t1, t2, nodeWithSpan;
  92528. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  92529. if ($async$errorCode === 1)
  92530. return A._asyncRethrow($async$result, $async$completer);
  92531. while (true)
  92532. switch ($async$goto) {
  92533. case 0:
  92534. // Function start
  92535. t1 = $async$self.$this;
  92536. t2 = $async$self.node;
  92537. nodeWithSpan = t1._async_evaluate0$_expressionNode$1(t2.from);
  92538. i = $async$self.from, t3 = $async$self._box_0, t4 = $async$self.direction, t5 = t2.variable, t6 = $async$self.fromNumber, t2 = t2.children;
  92539. case 3:
  92540. // for condition
  92541. if (!(i !== t3.to)) {
  92542. // goto after for
  92543. $async$goto = 5;
  92544. break;
  92545. }
  92546. t7 = t1._async_evaluate0$_environment;
  92547. t8 = t6.get$numeratorUnits(t6);
  92548. t7.setLocalVariable$3(t5, A.SassNumber_SassNumber$withUnits0(i, t6.get$denominatorUnits(t6), t8), nodeWithSpan);
  92549. $async$goto = 6;
  92550. return A._asyncAwait(t1._async_evaluate0$_handleReturn$2(t2, new A._EvaluateVisitor_visitForRule__closure2(t1)), $async$call$0);
  92551. case 6:
  92552. // returning from await.
  92553. _0_0 = $async$result;
  92554. if (_0_0 != null) {
  92555. $async$returnValue = _0_0;
  92556. // goto return
  92557. $async$goto = 1;
  92558. break;
  92559. }
  92560. case 4:
  92561. // for update
  92562. i += t4;
  92563. // goto for condition
  92564. $async$goto = 3;
  92565. break;
  92566. case 5:
  92567. // after for
  92568. $async$returnValue = null;
  92569. // goto return
  92570. $async$goto = 1;
  92571. break;
  92572. case 1:
  92573. // return
  92574. return A._asyncReturn($async$returnValue, $async$completer);
  92575. }
  92576. });
  92577. return A._asyncStartSync($async$call$0, $async$completer);
  92578. },
  92579. $signature: 67
  92580. };
  92581. A._EvaluateVisitor_visitForRule__closure2.prototype = {
  92582. call$1(child) {
  92583. return child.accept$1(this.$this);
  92584. },
  92585. $signature: 101
  92586. };
  92587. A._EvaluateVisitor_visitForwardRule_closure5.prototype = {
  92588. call$2(module, firstLoad) {
  92589. if (firstLoad)
  92590. this.$this._async_evaluate0$_registerCommentsForModule$1(module);
  92591. this.$this._async_evaluate0$_environment.forwardModule$2(module, this.node);
  92592. },
  92593. $signature: 114
  92594. };
  92595. A._EvaluateVisitor_visitForwardRule_closure6.prototype = {
  92596. call$2(module, firstLoad) {
  92597. if (firstLoad)
  92598. this.$this._async_evaluate0$_registerCommentsForModule$1(module);
  92599. this.$this._async_evaluate0$_environment.forwardModule$2(module, this.node);
  92600. },
  92601. $signature: 114
  92602. };
  92603. A._EvaluateVisitor__registerCommentsForModule_closure2.prototype = {
  92604. call$0() {
  92605. return A._setArrayType([], type$.JSArray_CssComment_2);
  92606. },
  92607. $signature: 182
  92608. };
  92609. A._EvaluateVisitor_visitIfRule_closure2.prototype = {
  92610. call$1(clause) {
  92611. var t1 = this.$this;
  92612. return t1._async_evaluate0$_environment.scope$1$3$semiGlobal$when(new A._EvaluateVisitor_visitIfRule__closure2(t1, clause), true, clause.hasDeclarations, type$.nullable_Value_2);
  92613. },
  92614. $signature: 347
  92615. };
  92616. A._EvaluateVisitor_visitIfRule__closure2.prototype = {
  92617. call$0() {
  92618. var t1 = this.$this;
  92619. return t1._async_evaluate0$_handleReturn$2(this.clause.children, new A._EvaluateVisitor_visitIfRule___closure2(t1));
  92620. },
  92621. $signature: 67
  92622. };
  92623. A._EvaluateVisitor_visitIfRule___closure2.prototype = {
  92624. call$1(child) {
  92625. return child.accept$1(this.$this);
  92626. },
  92627. $signature: 101
  92628. };
  92629. A._EvaluateVisitor__visitDynamicImport_closure2.prototype = {
  92630. call$0() {
  92631. return this.$call$body$_EvaluateVisitor__visitDynamicImport_closure0();
  92632. },
  92633. $call$body$_EvaluateVisitor__visitDynamicImport_closure0() {
  92634. var $async$goto = 0,
  92635. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  92636. $async$returnValue, $async$self = this, t1, t2, _0_0, stylesheet, importer, isDependency, url, t3, oldImporter, oldInDependency, loadsUserDefinedModules, children, t4, t5, t6, t7, t8, t9, t10, environment, module, visitor, _box_0;
  92637. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  92638. if ($async$errorCode === 1)
  92639. return A._asyncRethrow($async$result, $async$completer);
  92640. while (true)
  92641. switch ($async$goto) {
  92642. case 0:
  92643. // Function start
  92644. _box_0 = {};
  92645. _box_0.isDependency = _box_0.importer = _box_0.stylesheet = null;
  92646. t1 = $async$self.$this;
  92647. t2 = $async$self.$import;
  92648. $async$goto = 3;
  92649. return A._asyncAwait(t1._async_evaluate0$_loadStylesheet$3$forImport(t2.urlString, t2.span, true), $async$call$0);
  92650. case 3:
  92651. // returning from await.
  92652. _0_0 = $async$result;
  92653. stylesheet = _box_0.stylesheet = _0_0._0;
  92654. importer = _0_0._1;
  92655. _box_0.importer = importer;
  92656. isDependency = _0_0._2;
  92657. _box_0.isDependency = isDependency;
  92658. url = stylesheet.span.file.url;
  92659. if (url != null) {
  92660. t3 = t1._async_evaluate0$_activeModules;
  92661. if (t3.containsKey$1(url)) {
  92662. t2 = A.NullableExtension_andThen0(t3.$index(0, url), new A._EvaluateVisitor__visitDynamicImport__closure11(t1));
  92663. throw A.wrapException(t2 == null ? t1._async_evaluate0$_exception$1("This file is already being loaded.") : t2);
  92664. }
  92665. t3.$indexSet(0, url, t2);
  92666. }
  92667. t2 = stylesheet._stylesheet1$_uses;
  92668. t3 = type$.UnmodifiableListView_UseRule_2;
  92669. $async$goto = new A.UnmodifiableListView(t2, t3).get$length(0) === 0 && new A.UnmodifiableListView(stylesheet._stylesheet1$_forwards, type$.UnmodifiableListView_ForwardRule_2).get$length(0) === 0 ? 4 : 5;
  92670. break;
  92671. case 4:
  92672. // then
  92673. oldImporter = t1._async_evaluate0$_importer;
  92674. t2 = t1._async_evaluate0$_assertInModule$2(t1._async_evaluate0$__stylesheet, "_stylesheet");
  92675. oldInDependency = t1._async_evaluate0$_inDependency;
  92676. t1._async_evaluate0$_importer = importer;
  92677. t1._async_evaluate0$__stylesheet = stylesheet;
  92678. t1._async_evaluate0$_inDependency = isDependency;
  92679. $async$goto = 6;
  92680. return A._asyncAwait(t1.visitStylesheet$1(0, stylesheet), $async$call$0);
  92681. case 6:
  92682. // returning from await.
  92683. t1._async_evaluate0$_importer = oldImporter;
  92684. t1._async_evaluate0$__stylesheet = t2;
  92685. t1._async_evaluate0$_inDependency = oldInDependency;
  92686. t1._async_evaluate0$_activeModules.remove$1(0, url);
  92687. // goto return
  92688. $async$goto = 1;
  92689. break;
  92690. case 5:
  92691. // join
  92692. t2 = new A.UnmodifiableListView(t2, t3);
  92693. if (!t2.any$1(t2, new A._EvaluateVisitor__visitDynamicImport__closure12())) {
  92694. t2 = new A.UnmodifiableListView(stylesheet._stylesheet1$_forwards, type$.UnmodifiableListView_ForwardRule_2);
  92695. loadsUserDefinedModules = t2.any$1(t2, new A._EvaluateVisitor__visitDynamicImport__closure13());
  92696. } else
  92697. loadsUserDefinedModules = true;
  92698. children = A._Cell$();
  92699. t2 = t1._async_evaluate0$_environment;
  92700. t3 = type$.String;
  92701. t4 = type$.Module_AsyncCallable_2;
  92702. t5 = type$.AstNode_2;
  92703. t6 = A._setArrayType([], type$.JSArray_Module_AsyncCallable_2);
  92704. t7 = t2._async_environment0$_variables;
  92705. t7 = A._setArrayType(t7.slice(0), A._arrayInstanceType(t7));
  92706. t8 = t2._async_environment0$_variableNodes;
  92707. t8 = A._setArrayType(t8.slice(0), A._arrayInstanceType(t8));
  92708. t9 = t2._async_environment0$_functions;
  92709. t9 = A._setArrayType(t9.slice(0), A._arrayInstanceType(t9));
  92710. t10 = t2._async_environment0$_mixins;
  92711. t10 = A._setArrayType(t10.slice(0), A._arrayInstanceType(t10));
  92712. environment = A.AsyncEnvironment$_0(A.LinkedHashMap_LinkedHashMap$_empty(t3, t4), A.LinkedHashMap_LinkedHashMap$_empty(t3, t5), A.LinkedHashMap_LinkedHashMap$_empty(t4, t5), t2._async_environment0$_importedModules, null, null, t6, t7, t8, t9, t10, t2._async_environment0$_content);
  92713. $async$goto = 7;
  92714. return A._asyncAwait(t1._async_evaluate0$_withEnvironment$1$2(environment, new A._EvaluateVisitor__visitDynamicImport__closure14(_box_0, t1, loadsUserDefinedModules, environment, children), type$.Null), $async$call$0);
  92715. case 7:
  92716. // returning from await.
  92717. module = environment.toDummyModule$0();
  92718. t1._async_evaluate0$_environment.importForwards$1(module);
  92719. $async$goto = loadsUserDefinedModules ? 8 : 9;
  92720. break;
  92721. case 8:
  92722. // then
  92723. $async$goto = module.transitivelyContainsCss ? 10 : 11;
  92724. break;
  92725. case 10:
  92726. // then
  92727. $async$goto = 12;
  92728. return A._asyncAwait(t1._async_evaluate0$_combineCss$2$clone(module, module.transitivelyContainsExtensions).accept$1(t1), $async$call$0);
  92729. case 12:
  92730. // returning from await.
  92731. case 11:
  92732. // join
  92733. visitor = new A._ImportedCssVisitor2(t1);
  92734. for (t2 = J.get$iterator$ax(children._readLocal$0()); t2.moveNext$0();)
  92735. t2.get$current(t2).accept$1(visitor);
  92736. case 9:
  92737. // join
  92738. t1._async_evaluate0$_activeModules.remove$1(0, url);
  92739. case 1:
  92740. // return
  92741. return A._asyncReturn($async$returnValue, $async$completer);
  92742. }
  92743. });
  92744. return A._asyncStartSync($async$call$0, $async$completer);
  92745. },
  92746. $signature: 30
  92747. };
  92748. A._EvaluateVisitor__visitDynamicImport__closure11.prototype = {
  92749. call$1(previousLoad) {
  92750. return this.$this._async_evaluate0$_multiSpanException$3("This file is already being loaded.", "new load", A.LinkedHashMap_LinkedHashMap$_literal([previousLoad.get$span(previousLoad), "original load"], type$.FileSpan, type$.String));
  92751. },
  92752. $signature: 98
  92753. };
  92754. A._EvaluateVisitor__visitDynamicImport__closure12.prototype = {
  92755. call$1(rule) {
  92756. return rule.url.get$scheme() !== "sass";
  92757. },
  92758. $signature: 183
  92759. };
  92760. A._EvaluateVisitor__visitDynamicImport__closure13.prototype = {
  92761. call$1(rule) {
  92762. return rule.url.get$scheme() !== "sass";
  92763. },
  92764. $signature: 184
  92765. };
  92766. A._EvaluateVisitor__visitDynamicImport__closure14.prototype = {
  92767. call$0() {
  92768. var $async$goto = 0,
  92769. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  92770. $async$self = this, t7, t8, t1, oldImporter, t2, t3, t4, t5, oldOutOfOrderImports, oldConfiguration, oldInDependency, t6;
  92771. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  92772. if ($async$errorCode === 1)
  92773. return A._asyncRethrow($async$result, $async$completer);
  92774. while (true)
  92775. switch ($async$goto) {
  92776. case 0:
  92777. // Function start
  92778. t1 = $async$self.$this;
  92779. oldImporter = t1._async_evaluate0$_importer;
  92780. t2 = t1._async_evaluate0$_assertInModule$2(t1._async_evaluate0$__stylesheet, "_stylesheet");
  92781. t3 = t1._async_evaluate0$_assertInModule$2(t1._async_evaluate0$__root, "_root");
  92782. t4 = t1._async_evaluate0$_assertInModule$2(t1._async_evaluate0$__parent, "__parent");
  92783. t5 = t1._async_evaluate0$_assertInModule$2(t1._async_evaluate0$__endOfImports, "_endOfImports");
  92784. oldOutOfOrderImports = t1._async_evaluate0$_outOfOrderImports;
  92785. oldConfiguration = t1._async_evaluate0$_configuration;
  92786. oldInDependency = t1._async_evaluate0$_inDependency;
  92787. t6 = $async$self._box_0;
  92788. t1._async_evaluate0$_importer = t6.importer;
  92789. t7 = t6.stylesheet;
  92790. t1._async_evaluate0$__stylesheet = t7;
  92791. t8 = $async$self.loadsUserDefinedModules;
  92792. if (t8) {
  92793. t7 = A.ModifiableCssStylesheet$0(t7.span);
  92794. t1._async_evaluate0$__root = t7;
  92795. t1._async_evaluate0$__parent = t1._async_evaluate0$_assertInModule$2(t7, "_root");
  92796. t1._async_evaluate0$__endOfImports = 0;
  92797. t1._async_evaluate0$_outOfOrderImports = null;
  92798. }
  92799. t1._async_evaluate0$_inDependency = t6.isDependency;
  92800. t7 = new A.UnmodifiableListView(t6.stylesheet._stylesheet1$_forwards, type$.UnmodifiableListView_ForwardRule_2);
  92801. if (!t7.get$isEmpty(t7))
  92802. t1._async_evaluate0$_configuration = $async$self.environment.toImplicitConfiguration$0();
  92803. $async$goto = 2;
  92804. return A._asyncAwait(t1.visitStylesheet$1(0, t6.stylesheet), $async$call$0);
  92805. case 2:
  92806. // returning from await.
  92807. t6 = t8 ? t1._async_evaluate0$_addOutOfOrderImports$0() : A._setArrayType([], type$.JSArray_ModifiableCssNode_2);
  92808. $async$self.children.__late_helper$_value = t6;
  92809. t1._async_evaluate0$_importer = oldImporter;
  92810. t1._async_evaluate0$__stylesheet = t2;
  92811. if (t8) {
  92812. t1._async_evaluate0$__root = t3;
  92813. t1._async_evaluate0$__parent = t4;
  92814. t1._async_evaluate0$__endOfImports = t5;
  92815. t1._async_evaluate0$_outOfOrderImports = oldOutOfOrderImports;
  92816. }
  92817. t1._async_evaluate0$_configuration = oldConfiguration;
  92818. t1._async_evaluate0$_inDependency = oldInDependency;
  92819. // implicit return
  92820. return A._asyncReturn(null, $async$completer);
  92821. }
  92822. });
  92823. return A._asyncStartSync($async$call$0, $async$completer);
  92824. },
  92825. $signature: 2
  92826. };
  92827. A._EvaluateVisitor__applyMixin_closure5.prototype = {
  92828. call$0() {
  92829. var $async$goto = 0,
  92830. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  92831. $async$self = this, t1;
  92832. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  92833. if ($async$errorCode === 1)
  92834. return A._asyncRethrow($async$result, $async$completer);
  92835. while (true)
  92836. switch ($async$goto) {
  92837. case 0:
  92838. // Function start
  92839. t1 = $async$self.$this;
  92840. $async$goto = 2;
  92841. return A._asyncAwait(t1._async_evaluate0$_environment.asMixin$1(new A._EvaluateVisitor__applyMixin__closure6(t1, $async$self.$arguments, $async$self.mixin, $async$self.nodeWithSpanWithoutContent)), $async$call$0);
  92842. case 2:
  92843. // returning from await.
  92844. // implicit return
  92845. return A._asyncReturn(null, $async$completer);
  92846. }
  92847. });
  92848. return A._asyncStartSync($async$call$0, $async$completer);
  92849. },
  92850. $signature: 30
  92851. };
  92852. A._EvaluateVisitor__applyMixin__closure6.prototype = {
  92853. call$0() {
  92854. var $async$goto = 0,
  92855. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  92856. $async$self = this;
  92857. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  92858. if ($async$errorCode === 1)
  92859. return A._asyncRethrow($async$result, $async$completer);
  92860. while (true)
  92861. switch ($async$goto) {
  92862. case 0:
  92863. // Function start
  92864. $async$goto = 2;
  92865. return A._asyncAwait($async$self.$this._async_evaluate0$_runBuiltInCallable$3($async$self.$arguments, $async$self.mixin, $async$self.nodeWithSpanWithoutContent), $async$call$0);
  92866. case 2:
  92867. // returning from await.
  92868. // implicit return
  92869. return A._asyncReturn(null, $async$completer);
  92870. }
  92871. });
  92872. return A._asyncStartSync($async$call$0, $async$completer);
  92873. },
  92874. $signature: 30
  92875. };
  92876. A._EvaluateVisitor__applyMixin_closure6.prototype = {
  92877. call$0() {
  92878. var $async$goto = 0,
  92879. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  92880. $async$self = this, t1;
  92881. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  92882. if ($async$errorCode === 1)
  92883. return A._asyncRethrow($async$result, $async$completer);
  92884. while (true)
  92885. switch ($async$goto) {
  92886. case 0:
  92887. // Function start
  92888. t1 = $async$self.$this;
  92889. $async$goto = 2;
  92890. return A._asyncAwait(t1._async_evaluate0$_environment.withContent$2($async$self.contentCallable, new A._EvaluateVisitor__applyMixin__closure5(t1, $async$self.mixin, $async$self.nodeWithSpanWithoutContent)), $async$call$0);
  92891. case 2:
  92892. // returning from await.
  92893. // implicit return
  92894. return A._asyncReturn(null, $async$completer);
  92895. }
  92896. });
  92897. return A._asyncStartSync($async$call$0, $async$completer);
  92898. },
  92899. $signature: 2
  92900. };
  92901. A._EvaluateVisitor__applyMixin__closure5.prototype = {
  92902. call$0() {
  92903. var $async$goto = 0,
  92904. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  92905. $async$self = this, t1;
  92906. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  92907. if ($async$errorCode === 1)
  92908. return A._asyncRethrow($async$result, $async$completer);
  92909. while (true)
  92910. switch ($async$goto) {
  92911. case 0:
  92912. // Function start
  92913. t1 = $async$self.$this;
  92914. $async$goto = 2;
  92915. return A._asyncAwait(t1._async_evaluate0$_environment.asMixin$1(new A._EvaluateVisitor__applyMixin___closure2(t1, $async$self.mixin, $async$self.nodeWithSpanWithoutContent)), $async$call$0);
  92916. case 2:
  92917. // returning from await.
  92918. // implicit return
  92919. return A._asyncReturn(null, $async$completer);
  92920. }
  92921. });
  92922. return A._asyncStartSync($async$call$0, $async$completer);
  92923. },
  92924. $signature: 30
  92925. };
  92926. A._EvaluateVisitor__applyMixin___closure2.prototype = {
  92927. call$0() {
  92928. var $async$goto = 0,
  92929. $async$completer = A._makeAsyncAwaitCompleter(type$.void),
  92930. $async$self = this, t1, t2, t3, t4, t5, _i;
  92931. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  92932. if ($async$errorCode === 1)
  92933. return A._asyncRethrow($async$result, $async$completer);
  92934. while (true)
  92935. switch ($async$goto) {
  92936. case 0:
  92937. // Function start
  92938. t1 = $async$self.mixin.declaration.children, t2 = t1.length, t3 = $async$self.$this, t4 = $async$self.nodeWithSpanWithoutContent, t5 = type$.nullable_Value_2, _i = 0;
  92939. case 2:
  92940. // for condition
  92941. if (!(_i < t2)) {
  92942. // goto after for
  92943. $async$goto = 4;
  92944. break;
  92945. }
  92946. $async$goto = 5;
  92947. return A._asyncAwait(t3._async_evaluate0$_addErrorSpan$1$2(t4, new A._EvaluateVisitor__applyMixin____closure2(t3, t1[_i]), t5), $async$call$0);
  92948. case 5:
  92949. // returning from await.
  92950. case 3:
  92951. // for update
  92952. ++_i;
  92953. // goto for condition
  92954. $async$goto = 2;
  92955. break;
  92956. case 4:
  92957. // after for
  92958. // implicit return
  92959. return A._asyncReturn(null, $async$completer);
  92960. }
  92961. });
  92962. return A._asyncStartSync($async$call$0, $async$completer);
  92963. },
  92964. $signature: 30
  92965. };
  92966. A._EvaluateVisitor__applyMixin____closure2.prototype = {
  92967. call$0() {
  92968. return this.statement.accept$1(this.$this);
  92969. },
  92970. $signature: 67
  92971. };
  92972. A._EvaluateVisitor_visitIncludeRule_closure8.prototype = {
  92973. call$0() {
  92974. var t1 = this.node;
  92975. return this.$this._async_evaluate0$_environment.getMixin$2$namespace(t1.name, t1.namespace);
  92976. },
  92977. $signature: 96
  92978. };
  92979. A._EvaluateVisitor_visitIncludeRule_closure9.prototype = {
  92980. call$1($content) {
  92981. var t1 = this.$this;
  92982. return new A.UserDefinedCallable0($content, t1._async_evaluate0$_environment.closure$0(), t1._async_evaluate0$_inDependency, type$.UserDefinedCallable_AsyncEnvironment_2);
  92983. },
  92984. $signature: 350
  92985. };
  92986. A._EvaluateVisitor_visitIncludeRule_closure10.prototype = {
  92987. call$0() {
  92988. return this.node.get$spanWithoutContent();
  92989. },
  92990. $signature: 29
  92991. };
  92992. A._EvaluateVisitor_visitMediaRule_closure8.prototype = {
  92993. call$1(mediaQueries) {
  92994. return this.$this._async_evaluate0$_mergeMediaQueries$2(mediaQueries, this.queries);
  92995. },
  92996. $signature: 105
  92997. };
  92998. A._EvaluateVisitor_visitMediaRule_closure9.prototype = {
  92999. call$0() {
  93000. var $async$goto = 0,
  93001. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  93002. $async$self = this, t1, t2;
  93003. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  93004. if ($async$errorCode === 1)
  93005. return A._asyncRethrow($async$result, $async$completer);
  93006. while (true)
  93007. switch ($async$goto) {
  93008. case 0:
  93009. // Function start
  93010. t1 = $async$self.$this;
  93011. t2 = $async$self.mergedQueries;
  93012. if (t2 == null)
  93013. t2 = $async$self.queries;
  93014. $async$goto = 2;
  93015. return A._asyncAwait(t1._async_evaluate0$_withMediaQueries$1$3(t2, $async$self.mergedSources, new A._EvaluateVisitor_visitMediaRule__closure2(t1, $async$self.node), type$.Null), $async$call$0);
  93016. case 2:
  93017. // returning from await.
  93018. // implicit return
  93019. return A._asyncReturn(null, $async$completer);
  93020. }
  93021. });
  93022. return A._asyncStartSync($async$call$0, $async$completer);
  93023. },
  93024. $signature: 2
  93025. };
  93026. A._EvaluateVisitor_visitMediaRule__closure2.prototype = {
  93027. call$0() {
  93028. var $async$goto = 0,
  93029. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  93030. $async$self = this, t2, t3, _i, t1, _0_0;
  93031. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  93032. if ($async$errorCode === 1)
  93033. return A._asyncRethrow($async$result, $async$completer);
  93034. while (true)
  93035. switch ($async$goto) {
  93036. case 0:
  93037. // Function start
  93038. t1 = $async$self.$this;
  93039. _0_0 = t1._async_evaluate0$_atRootExcludingStyleRule ? null : t1._async_evaluate0$_styleRuleIgnoringAtRoot;
  93040. $async$goto = _0_0 != null ? 2 : 4;
  93041. break;
  93042. case 2:
  93043. // then
  93044. $async$goto = 5;
  93045. return A._asyncAwait(t1._async_evaluate0$_withParent$2$3$scopeWhen(A.ModifiableCssStyleRule$0(_0_0._style_rule0$_selector, _0_0.span, false, _0_0.originalSelector), new A._EvaluateVisitor_visitMediaRule___closure2(t1, $async$self.node), false, type$.ModifiableCssStyleRule_2, type$.Null), $async$call$0);
  93046. case 5:
  93047. // returning from await.
  93048. // goto join
  93049. $async$goto = 3;
  93050. break;
  93051. case 4:
  93052. // else
  93053. t2 = $async$self.node.children, t3 = t2.length, _i = 0;
  93054. case 6:
  93055. // for condition
  93056. if (!(_i < t3)) {
  93057. // goto after for
  93058. $async$goto = 8;
  93059. break;
  93060. }
  93061. $async$goto = 9;
  93062. return A._asyncAwait(t2[_i].accept$1(t1), $async$call$0);
  93063. case 9:
  93064. // returning from await.
  93065. case 7:
  93066. // for update
  93067. ++_i;
  93068. // goto for condition
  93069. $async$goto = 6;
  93070. break;
  93071. case 8:
  93072. // after for
  93073. case 3:
  93074. // join
  93075. // implicit return
  93076. return A._asyncReturn(null, $async$completer);
  93077. }
  93078. });
  93079. return A._asyncStartSync($async$call$0, $async$completer);
  93080. },
  93081. $signature: 2
  93082. };
  93083. A._EvaluateVisitor_visitMediaRule___closure2.prototype = {
  93084. call$0() {
  93085. var $async$goto = 0,
  93086. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  93087. $async$self = this, t1, t2, t3, _i;
  93088. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  93089. if ($async$errorCode === 1)
  93090. return A._asyncRethrow($async$result, $async$completer);
  93091. while (true)
  93092. switch ($async$goto) {
  93093. case 0:
  93094. // Function start
  93095. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  93096. case 2:
  93097. // for condition
  93098. if (!(_i < t2)) {
  93099. // goto after for
  93100. $async$goto = 4;
  93101. break;
  93102. }
  93103. $async$goto = 5;
  93104. return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  93105. case 5:
  93106. // returning from await.
  93107. case 3:
  93108. // for update
  93109. ++_i;
  93110. // goto for condition
  93111. $async$goto = 2;
  93112. break;
  93113. case 4:
  93114. // after for
  93115. // implicit return
  93116. return A._asyncReturn(null, $async$completer);
  93117. }
  93118. });
  93119. return A._asyncStartSync($async$call$0, $async$completer);
  93120. },
  93121. $signature: 2
  93122. };
  93123. A._EvaluateVisitor_visitMediaRule_closure10.prototype = {
  93124. call$1(node) {
  93125. var t1;
  93126. if (!(node instanceof A.ModifiableCssStyleRule0)) {
  93127. t1 = this.mergedSources;
  93128. t1 = t1.get$isNotEmpty(t1) && node instanceof A.ModifiableCssMediaRule0 && B.JSArray_methods.every$1(node.queries, t1.get$contains(t1));
  93129. } else
  93130. t1 = true;
  93131. return t1;
  93132. },
  93133. $signature: 8
  93134. };
  93135. A._EvaluateVisitor_visitStyleRule_closure11.prototype = {
  93136. call$0() {
  93137. var $async$goto = 0,
  93138. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  93139. $async$self = this, t1, t2, t3, _i;
  93140. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  93141. if ($async$errorCode === 1)
  93142. return A._asyncRethrow($async$result, $async$completer);
  93143. while (true)
  93144. switch ($async$goto) {
  93145. case 0:
  93146. // Function start
  93147. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  93148. case 2:
  93149. // for condition
  93150. if (!(_i < t2)) {
  93151. // goto after for
  93152. $async$goto = 4;
  93153. break;
  93154. }
  93155. $async$goto = 5;
  93156. return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  93157. case 5:
  93158. // returning from await.
  93159. case 3:
  93160. // for update
  93161. ++_i;
  93162. // goto for condition
  93163. $async$goto = 2;
  93164. break;
  93165. case 4:
  93166. // after for
  93167. // implicit return
  93168. return A._asyncReturn(null, $async$completer);
  93169. }
  93170. });
  93171. return A._asyncStartSync($async$call$0, $async$completer);
  93172. },
  93173. $signature: 2
  93174. };
  93175. A._EvaluateVisitor_visitStyleRule_closure12.prototype = {
  93176. call$1(node) {
  93177. return node instanceof A.ModifiableCssStyleRule0;
  93178. },
  93179. $signature: 8
  93180. };
  93181. A._EvaluateVisitor_visitStyleRule_closure14.prototype = {
  93182. call$0() {
  93183. var $async$goto = 0,
  93184. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  93185. $async$self = this, t1;
  93186. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  93187. if ($async$errorCode === 1)
  93188. return A._asyncRethrow($async$result, $async$completer);
  93189. while (true)
  93190. switch ($async$goto) {
  93191. case 0:
  93192. // Function start
  93193. t1 = $async$self.$this;
  93194. $async$goto = 2;
  93195. return A._asyncAwait(t1._async_evaluate0$_withStyleRule$1$2($async$self.rule, new A._EvaluateVisitor_visitStyleRule__closure2(t1, $async$self.node), type$.Null), $async$call$0);
  93196. case 2:
  93197. // returning from await.
  93198. // implicit return
  93199. return A._asyncReturn(null, $async$completer);
  93200. }
  93201. });
  93202. return A._asyncStartSync($async$call$0, $async$completer);
  93203. },
  93204. $signature: 2
  93205. };
  93206. A._EvaluateVisitor_visitStyleRule__closure2.prototype = {
  93207. call$0() {
  93208. var $async$goto = 0,
  93209. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  93210. $async$self = this, t1, t2, t3, _i;
  93211. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  93212. if ($async$errorCode === 1)
  93213. return A._asyncRethrow($async$result, $async$completer);
  93214. while (true)
  93215. switch ($async$goto) {
  93216. case 0:
  93217. // Function start
  93218. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  93219. case 2:
  93220. // for condition
  93221. if (!(_i < t2)) {
  93222. // goto after for
  93223. $async$goto = 4;
  93224. break;
  93225. }
  93226. $async$goto = 5;
  93227. return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  93228. case 5:
  93229. // returning from await.
  93230. case 3:
  93231. // for update
  93232. ++_i;
  93233. // goto for condition
  93234. $async$goto = 2;
  93235. break;
  93236. case 4:
  93237. // after for
  93238. // implicit return
  93239. return A._asyncReturn(null, $async$completer);
  93240. }
  93241. });
  93242. return A._asyncStartSync($async$call$0, $async$completer);
  93243. },
  93244. $signature: 2
  93245. };
  93246. A._EvaluateVisitor_visitStyleRule_closure13.prototype = {
  93247. call$1(node) {
  93248. return node instanceof A.ModifiableCssStyleRule0;
  93249. },
  93250. $signature: 8
  93251. };
  93252. A._EvaluateVisitor__warnForBogusCombinators_closure2.prototype = {
  93253. call$1(child) {
  93254. return child instanceof A.ModifiableCssComment0;
  93255. },
  93256. $signature: 8
  93257. };
  93258. A._EvaluateVisitor_visitSupportsRule_closure5.prototype = {
  93259. call$0() {
  93260. var $async$goto = 0,
  93261. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  93262. $async$self = this, t2, t3, _i, t1, _0_0;
  93263. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  93264. if ($async$errorCode === 1)
  93265. return A._asyncRethrow($async$result, $async$completer);
  93266. while (true)
  93267. switch ($async$goto) {
  93268. case 0:
  93269. // Function start
  93270. t1 = $async$self.$this;
  93271. _0_0 = t1._async_evaluate0$_atRootExcludingStyleRule ? null : t1._async_evaluate0$_styleRuleIgnoringAtRoot;
  93272. $async$goto = _0_0 != null ? 2 : 4;
  93273. break;
  93274. case 2:
  93275. // then
  93276. $async$goto = 5;
  93277. return A._asyncAwait(t1._async_evaluate0$_withParent$2$2(A.ModifiableCssStyleRule$0(_0_0._style_rule0$_selector, _0_0.span, false, _0_0.originalSelector), new A._EvaluateVisitor_visitSupportsRule__closure2(t1, $async$self.node), type$.ModifiableCssStyleRule_2, type$.Null), $async$call$0);
  93278. case 5:
  93279. // returning from await.
  93280. // goto join
  93281. $async$goto = 3;
  93282. break;
  93283. case 4:
  93284. // else
  93285. t2 = $async$self.node.children, t3 = t2.length, _i = 0;
  93286. case 6:
  93287. // for condition
  93288. if (!(_i < t3)) {
  93289. // goto after for
  93290. $async$goto = 8;
  93291. break;
  93292. }
  93293. $async$goto = 9;
  93294. return A._asyncAwait(t2[_i].accept$1(t1), $async$call$0);
  93295. case 9:
  93296. // returning from await.
  93297. case 7:
  93298. // for update
  93299. ++_i;
  93300. // goto for condition
  93301. $async$goto = 6;
  93302. break;
  93303. case 8:
  93304. // after for
  93305. case 3:
  93306. // join
  93307. // implicit return
  93308. return A._asyncReturn(null, $async$completer);
  93309. }
  93310. });
  93311. return A._asyncStartSync($async$call$0, $async$completer);
  93312. },
  93313. $signature: 2
  93314. };
  93315. A._EvaluateVisitor_visitSupportsRule__closure2.prototype = {
  93316. call$0() {
  93317. var $async$goto = 0,
  93318. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  93319. $async$self = this, t1, t2, t3, _i;
  93320. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  93321. if ($async$errorCode === 1)
  93322. return A._asyncRethrow($async$result, $async$completer);
  93323. while (true)
  93324. switch ($async$goto) {
  93325. case 0:
  93326. // Function start
  93327. t1 = $async$self.node.children, t2 = t1.length, t3 = $async$self.$this, _i = 0;
  93328. case 2:
  93329. // for condition
  93330. if (!(_i < t2)) {
  93331. // goto after for
  93332. $async$goto = 4;
  93333. break;
  93334. }
  93335. $async$goto = 5;
  93336. return A._asyncAwait(t1[_i].accept$1(t3), $async$call$0);
  93337. case 5:
  93338. // returning from await.
  93339. case 3:
  93340. // for update
  93341. ++_i;
  93342. // goto for condition
  93343. $async$goto = 2;
  93344. break;
  93345. case 4:
  93346. // after for
  93347. // implicit return
  93348. return A._asyncReturn(null, $async$completer);
  93349. }
  93350. });
  93351. return A._asyncStartSync($async$call$0, $async$completer);
  93352. },
  93353. $signature: 2
  93354. };
  93355. A._EvaluateVisitor_visitSupportsRule_closure6.prototype = {
  93356. call$1(node) {
  93357. return node instanceof A.ModifiableCssStyleRule0;
  93358. },
  93359. $signature: 8
  93360. };
  93361. A._EvaluateVisitor__visitSupportsCondition_closure2.prototype = {
  93362. call$0() {
  93363. var $async$goto = 0,
  93364. $async$completer = A._makeAsyncAwaitCompleter(type$.String),
  93365. $async$returnValue, $async$self = this, t1, t2, t3, t4, $async$temp1, $async$temp2;
  93366. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  93367. if ($async$errorCode === 1)
  93368. return A._asyncRethrow($async$result, $async$completer);
  93369. while (true)
  93370. switch ($async$goto) {
  93371. case 0:
  93372. // Function start
  93373. t1 = $async$self.$this;
  93374. t2 = $async$self._box_0;
  93375. $async$temp1 = A;
  93376. $async$goto = 3;
  93377. return A._asyncAwait(t1._async_evaluate0$_evaluateToCss$1(t2.declaration.name), $async$call$0);
  93378. case 3:
  93379. // returning from await.
  93380. t3 = $async$temp1.S($async$result);
  93381. t4 = t2.declaration.get$isCustomProperty() ? "" : " ";
  93382. $async$temp1 = "(" + t3 + ":" + t4;
  93383. $async$temp2 = A;
  93384. $async$goto = 4;
  93385. return A._asyncAwait(t1._async_evaluate0$_evaluateToCss$1(t2.declaration.value), $async$call$0);
  93386. case 4:
  93387. // returning from await.
  93388. $async$returnValue = $async$temp1 + $async$temp2.S($async$result) + ")";
  93389. // goto return
  93390. $async$goto = 1;
  93391. break;
  93392. case 1:
  93393. // return
  93394. return A._asyncReturn($async$returnValue, $async$completer);
  93395. }
  93396. });
  93397. return A._asyncStartSync($async$call$0, $async$completer);
  93398. },
  93399. $signature: 227
  93400. };
  93401. A._EvaluateVisitor_visitVariableDeclaration_closure8.prototype = {
  93402. call$0() {
  93403. var t1 = this.$this._async_evaluate0$_environment,
  93404. t2 = this._box_0.override;
  93405. t1.setVariable$4$global(this.node.name, t2.value, t2.assignmentNode, true);
  93406. },
  93407. $signature: 1
  93408. };
  93409. A._EvaluateVisitor_visitVariableDeclaration_closure9.prototype = {
  93410. call$0() {
  93411. var t1 = this.node;
  93412. return this.$this._async_evaluate0$_environment.getVariable$2$namespace(t1.name, t1.namespace);
  93413. },
  93414. $signature: 44
  93415. };
  93416. A._EvaluateVisitor_visitVariableDeclaration_closure10.prototype = {
  93417. call$0() {
  93418. var t1 = this.$this,
  93419. t2 = this.node;
  93420. t1._async_evaluate0$_environment.setVariable$5$global$namespace(t2.name, this.value, t1._async_evaluate0$_expressionNode$1(t2.expression), t2.isGlobal, t2.namespace);
  93421. },
  93422. $signature: 1
  93423. };
  93424. A._EvaluateVisitor_visitUseRule_closure2.prototype = {
  93425. call$2(module, firstLoad) {
  93426. var t1, t2, t3, _0_0, t4, t5, span;
  93427. if (firstLoad)
  93428. this.$this._async_evaluate0$_registerCommentsForModule$1(module);
  93429. t1 = this.$this._async_evaluate0$_environment;
  93430. t2 = this.node;
  93431. t3 = t2.namespace;
  93432. if (t3 == null) {
  93433. t1._async_environment0$_globalModules.$indexSet(0, module, t2);
  93434. t1._async_environment0$_allModules.push(module);
  93435. _0_0 = A.IterableExtension_firstWhereOrNull(J.get$keys$z(B.JSArray_methods.get$first(t1._async_environment0$_variables)), module.get$variables().get$containsKey());
  93436. if (_0_0 != null)
  93437. A.throwExpression(A.SassScriptException$0(string$.This_ma + _0_0 + '".', null));
  93438. } else {
  93439. t4 = t1._async_environment0$_modules;
  93440. if (t4.containsKey$1(t3)) {
  93441. t5 = t1._async_environment0$_namespaceNodes.$index(0, t3);
  93442. span = t5 == null ? null : t5.span;
  93443. t5 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
  93444. if (span != null)
  93445. t5.$indexSet(0, span, "original @use");
  93446. A.throwExpression(A.MultiSpanSassScriptException$0(string$.There_ + t3 + '".', "new @use", t5));
  93447. }
  93448. t4.$indexSet(0, t3, module);
  93449. t1._async_environment0$_namespaceNodes.$indexSet(0, t3, t2);
  93450. t1._async_environment0$_allModules.push(module);
  93451. }
  93452. },
  93453. $signature: 114
  93454. };
  93455. A._EvaluateVisitor_visitWarnRule_closure2.prototype = {
  93456. call$0() {
  93457. return this.node.expression.accept$1(this.$this);
  93458. },
  93459. $signature: 78
  93460. };
  93461. A._EvaluateVisitor_visitWhileRule_closure2.prototype = {
  93462. call$0() {
  93463. var $async$goto = 0,
  93464. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Value_2),
  93465. $async$returnValue, $async$self = this, t1, t2, t3, _0_0;
  93466. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  93467. if ($async$errorCode === 1)
  93468. return A._asyncRethrow($async$result, $async$completer);
  93469. while (true)
  93470. switch ($async$goto) {
  93471. case 0:
  93472. // Function start
  93473. t1 = $async$self.node, t2 = t1.condition, t3 = $async$self.$this, t1 = t1.children;
  93474. case 3:
  93475. // for condition
  93476. $async$goto = 5;
  93477. return A._asyncAwait(t2.accept$1(t3), $async$call$0);
  93478. case 5:
  93479. // returning from await.
  93480. if (!$async$result.get$isTruthy()) {
  93481. // goto after for
  93482. $async$goto = 4;
  93483. break;
  93484. }
  93485. $async$goto = 6;
  93486. return A._asyncAwait(t3._async_evaluate0$_handleReturn$2(t1, new A._EvaluateVisitor_visitWhileRule__closure2(t3)), $async$call$0);
  93487. case 6:
  93488. // returning from await.
  93489. _0_0 = $async$result;
  93490. if (_0_0 != null) {
  93491. $async$returnValue = _0_0;
  93492. // goto return
  93493. $async$goto = 1;
  93494. break;
  93495. }
  93496. // goto for condition
  93497. $async$goto = 3;
  93498. break;
  93499. case 4:
  93500. // after for
  93501. $async$returnValue = null;
  93502. // goto return
  93503. $async$goto = 1;
  93504. break;
  93505. case 1:
  93506. // return
  93507. return A._asyncReturn($async$returnValue, $async$completer);
  93508. }
  93509. });
  93510. return A._asyncStartSync($async$call$0, $async$completer);
  93511. },
  93512. $signature: 67
  93513. };
  93514. A._EvaluateVisitor_visitWhileRule__closure2.prototype = {
  93515. call$1(child) {
  93516. return child.accept$1(this.$this);
  93517. },
  93518. $signature: 101
  93519. };
  93520. A._EvaluateVisitor_visitBinaryOperationExpression_closure2.prototype = {
  93521. call$0() {
  93522. var $async$goto = 0,
  93523. $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
  93524. $async$returnValue, $async$self = this, t3, t1, t2, left, $async$temp1, $async$temp2;
  93525. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  93526. if ($async$errorCode === 1)
  93527. return A._asyncRethrow($async$result, $async$completer);
  93528. while (true)
  93529. switch ($async$goto) {
  93530. case 0:
  93531. // Function start
  93532. t1 = $async$self.node;
  93533. t2 = $async$self.$this;
  93534. $async$goto = 3;
  93535. return A._asyncAwait(t1.left.accept$1(t2), $async$call$0);
  93536. case 3:
  93537. // returning from await.
  93538. left = $async$result;
  93539. case 4:
  93540. // switch
  93541. switch (t1.operator) {
  93542. case B.BinaryOperator_wdM0:
  93543. // goto case
  93544. $async$goto = 6;
  93545. break;
  93546. case B.BinaryOperator_qNM0:
  93547. // goto case
  93548. $async$goto = 7;
  93549. break;
  93550. case B.BinaryOperator_eDt0:
  93551. // goto case
  93552. $async$goto = 8;
  93553. break;
  93554. case B.BinaryOperator_g8k0:
  93555. // goto case
  93556. $async$goto = 9;
  93557. break;
  93558. case B.BinaryOperator_icU0:
  93559. // goto case
  93560. $async$goto = 10;
  93561. break;
  93562. case B.BinaryOperator_bEa0:
  93563. // goto case
  93564. $async$goto = 11;
  93565. break;
  93566. case B.BinaryOperator_oEm0:
  93567. // goto case
  93568. $async$goto = 12;
  93569. break;
  93570. case B.BinaryOperator_miq0:
  93571. // goto case
  93572. $async$goto = 13;
  93573. break;
  93574. case B.BinaryOperator_SPQ0:
  93575. // goto case
  93576. $async$goto = 14;
  93577. break;
  93578. case B.BinaryOperator_u150:
  93579. // goto case
  93580. $async$goto = 15;
  93581. break;
  93582. case B.BinaryOperator_SjO0:
  93583. // goto case
  93584. $async$goto = 16;
  93585. break;
  93586. case B.BinaryOperator_2No0:
  93587. // goto case
  93588. $async$goto = 17;
  93589. break;
  93590. case B.BinaryOperator_U770:
  93591. // goto case
  93592. $async$goto = 18;
  93593. break;
  93594. case B.BinaryOperator_KNx0:
  93595. // goto case
  93596. $async$goto = 19;
  93597. break;
  93598. default:
  93599. // goto default
  93600. $async$goto = 20;
  93601. break;
  93602. }
  93603. break;
  93604. case 6:
  93605. // case
  93606. t1 = t1.right.accept$1(t2);
  93607. $async$goto = 21;
  93608. return A._asyncAwait(type$.Future_Value_2._is(t1) ? t1 : A._Future$value(t1, type$.Value_2), $async$call$0);
  93609. case 21:
  93610. // returning from await.
  93611. t1 = $async$result;
  93612. t1 = new A.SassString0(A.serializeValue0(left, false, true) + "=" + A.serializeValue0(t1, false, true), false);
  93613. // goto after switch
  93614. $async$goto = 5;
  93615. break;
  93616. case 7:
  93617. // case
  93618. $async$goto = left.get$isTruthy() ? 22 : 24;
  93619. break;
  93620. case 22:
  93621. // then
  93622. t1 = left;
  93623. // goto join
  93624. $async$goto = 23;
  93625. break;
  93626. case 24:
  93627. // else
  93628. t1 = t1.right.accept$1(t2);
  93629. $async$goto = 25;
  93630. return A._asyncAwait(type$.Future_Value_2._is(t1) ? t1 : A._Future$value(t1, type$.Value_2), $async$call$0);
  93631. case 25:
  93632. // returning from await.
  93633. t1 = $async$result;
  93634. case 23:
  93635. // join
  93636. // goto after switch
  93637. $async$goto = 5;
  93638. break;
  93639. case 8:
  93640. // case
  93641. $async$goto = left.get$isTruthy() ? 26 : 28;
  93642. break;
  93643. case 26:
  93644. // then
  93645. t1 = t1.right.accept$1(t2);
  93646. $async$goto = 29;
  93647. return A._asyncAwait(type$.Future_Value_2._is(t1) ? t1 : A._Future$value(t1, type$.Value_2), $async$call$0);
  93648. case 29:
  93649. // returning from await.
  93650. t1 = $async$result;
  93651. // goto join
  93652. $async$goto = 27;
  93653. break;
  93654. case 28:
  93655. // else
  93656. t1 = left;
  93657. case 27:
  93658. // join
  93659. // goto after switch
  93660. $async$goto = 5;
  93661. break;
  93662. case 9:
  93663. // case
  93664. $async$temp1 = left;
  93665. $async$goto = 30;
  93666. return A._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  93667. case 30:
  93668. // returning from await.
  93669. t1 = $async$temp1.$eq(0, $async$result) ? B.SassBoolean_true0 : B.SassBoolean_false0;
  93670. // goto after switch
  93671. $async$goto = 5;
  93672. break;
  93673. case 10:
  93674. // case
  93675. $async$temp1 = left;
  93676. $async$goto = 31;
  93677. return A._asyncAwait(t1.right.accept$1(t2), $async$call$0);
  93678. case 31:
  93679. // returning from await.
  93680. t1 = !$async$temp1.$eq(0, $async$result) ? B.SassBoolean_true0 : B.SassBoolean_false0;
  93681. // goto after switch
  93682. $async$goto = 5;
  93683. break;
  93684. case 11:
  93685. // case
  93686. t1 = t1.right.accept$1(t2);
  93687. $async$temp1 = left;
  93688. $async$goto = 32;
  93689. return A._asyncAwait(type$.Future_Value_2._is(t1) ? t1 : A._Future$value(t1, type$.Value_2), $async$call$0);
  93690. case 32:
  93691. // returning from await.
  93692. t1 = $async$temp1.greaterThan$1($async$result);
  93693. // goto after switch
  93694. $async$goto = 5;
  93695. break;
  93696. case 12:
  93697. // case
  93698. t1 = t1.right.accept$1(t2);
  93699. $async$temp1 = left;
  93700. $async$goto = 33;
  93701. return A._asyncAwait(type$.Future_Value_2._is(t1) ? t1 : A._Future$value(t1, type$.Value_2), $async$call$0);
  93702. case 33:
  93703. // returning from await.
  93704. t1 = $async$temp1.greaterThanOrEquals$1($async$result);
  93705. // goto after switch
  93706. $async$goto = 5;
  93707. break;
  93708. case 13:
  93709. // case
  93710. t1 = t1.right.accept$1(t2);
  93711. $async$temp1 = left;
  93712. $async$goto = 34;
  93713. return A._asyncAwait(type$.Future_Value_2._is(t1) ? t1 : A._Future$value(t1, type$.Value_2), $async$call$0);
  93714. case 34:
  93715. // returning from await.
  93716. t1 = $async$temp1.lessThan$1($async$result);
  93717. // goto after switch
  93718. $async$goto = 5;
  93719. break;
  93720. case 14:
  93721. // case
  93722. t1 = t1.right.accept$1(t2);
  93723. $async$temp1 = left;
  93724. $async$goto = 35;
  93725. return A._asyncAwait(type$.Future_Value_2._is(t1) ? t1 : A._Future$value(t1, type$.Value_2), $async$call$0);
  93726. case 35:
  93727. // returning from await.
  93728. t1 = $async$temp1.lessThanOrEquals$1($async$result);
  93729. // goto after switch
  93730. $async$goto = 5;
  93731. break;
  93732. case 15:
  93733. // case
  93734. t1 = t1.right.accept$1(t2);
  93735. $async$temp1 = left;
  93736. $async$goto = 36;
  93737. return A._asyncAwait(type$.Future_Value_2._is(t1) ? t1 : A._Future$value(t1, type$.Value_2), $async$call$0);
  93738. case 36:
  93739. // returning from await.
  93740. t1 = $async$temp1.plus$1($async$result);
  93741. // goto after switch
  93742. $async$goto = 5;
  93743. break;
  93744. case 16:
  93745. // case
  93746. t1 = t1.right.accept$1(t2);
  93747. $async$temp1 = left;
  93748. $async$goto = 37;
  93749. return A._asyncAwait(type$.Future_Value_2._is(t1) ? t1 : A._Future$value(t1, type$.Value_2), $async$call$0);
  93750. case 37:
  93751. // returning from await.
  93752. t1 = $async$temp1.minus$1($async$result);
  93753. // goto after switch
  93754. $async$goto = 5;
  93755. break;
  93756. case 17:
  93757. // case
  93758. t1 = t1.right.accept$1(t2);
  93759. $async$temp1 = left;
  93760. $async$goto = 38;
  93761. return A._asyncAwait(type$.Future_Value_2._is(t1) ? t1 : A._Future$value(t1, type$.Value_2), $async$call$0);
  93762. case 38:
  93763. // returning from await.
  93764. t1 = $async$temp1.times$1($async$result);
  93765. // goto after switch
  93766. $async$goto = 5;
  93767. break;
  93768. case 18:
  93769. // case
  93770. t3 = t1.right.accept$1(t2);
  93771. $async$temp1 = t2;
  93772. $async$temp2 = left;
  93773. $async$goto = 39;
  93774. return A._asyncAwait(type$.Future_Value_2._is(t3) ? t3 : A._Future$value(t3, type$.Value_2), $async$call$0);
  93775. case 39:
  93776. // returning from await.
  93777. t1 = $async$temp1._async_evaluate0$_slash$3($async$temp2, $async$result, t1);
  93778. // goto after switch
  93779. $async$goto = 5;
  93780. break;
  93781. case 19:
  93782. // case
  93783. t1 = t1.right.accept$1(t2);
  93784. $async$temp1 = left;
  93785. $async$goto = 40;
  93786. return A._asyncAwait(type$.Future_Value_2._is(t1) ? t1 : A._Future$value(t1, type$.Value_2), $async$call$0);
  93787. case 40:
  93788. // returning from await.
  93789. t1 = $async$temp1.modulo$1($async$result);
  93790. // goto after switch
  93791. $async$goto = 5;
  93792. break;
  93793. case 20:
  93794. // default
  93795. t1 = null;
  93796. case 5:
  93797. // after switch
  93798. $async$returnValue = t1;
  93799. // goto return
  93800. $async$goto = 1;
  93801. break;
  93802. case 1:
  93803. // return
  93804. return A._asyncReturn($async$returnValue, $async$completer);
  93805. }
  93806. });
  93807. return A._asyncStartSync($async$call$0, $async$completer);
  93808. },
  93809. $signature: 78
  93810. };
  93811. A._EvaluateVisitor__slash_recommendation2.prototype = {
  93812. call$1(expression) {
  93813. var t1;
  93814. $label0$0: {
  93815. if (expression instanceof A.BinaryOperationExpression0 && B.BinaryOperator_U770 === expression.operator) {
  93816. t1 = "math.div(" + A.S(this.call$1(expression.left)) + ", " + A.S(this.call$1(expression.right)) + ")";
  93817. break $label0$0;
  93818. }
  93819. if (expression instanceof A.ParenthesizedExpression0) {
  93820. t1 = expression.expression.toString$0(0);
  93821. break $label0$0;
  93822. }
  93823. t1 = expression.toString$0(0);
  93824. break $label0$0;
  93825. }
  93826. return t1;
  93827. },
  93828. $signature: 112
  93829. };
  93830. A._EvaluateVisitor_visitVariableExpression_closure2.prototype = {
  93831. call$0() {
  93832. var t1 = this.node;
  93833. return this.$this._async_evaluate0$_environment.getVariable$2$namespace(t1.name, t1.namespace);
  93834. },
  93835. $signature: 44
  93836. };
  93837. A._EvaluateVisitor_visitUnaryOperationExpression_closure2.prototype = {
  93838. call$0() {
  93839. var t1, _this = this;
  93840. switch (_this.node.operator) {
  93841. case B.UnaryOperator_cLp0:
  93842. t1 = _this.operand.unaryPlus$0();
  93843. break;
  93844. case B.UnaryOperator_AiQ0:
  93845. t1 = _this.operand.unaryMinus$0();
  93846. break;
  93847. case B.UnaryOperator_SJr0:
  93848. t1 = new A.SassString0("/" + A.serializeValue0(_this.operand, false, true), false);
  93849. break;
  93850. case B.UnaryOperator_not_not_not0:
  93851. t1 = _this.operand.unaryNot$0();
  93852. break;
  93853. default:
  93854. t1 = null;
  93855. }
  93856. return t1;
  93857. },
  93858. $signature: 48
  93859. };
  93860. A._EvaluateVisitor_visitListExpression_closure2.prototype = {
  93861. call$1(expression) {
  93862. return expression.accept$1(this.$this);
  93863. },
  93864. $signature: 356
  93865. };
  93866. A._EvaluateVisitor_visitFunctionExpression_closure8.prototype = {
  93867. call$0() {
  93868. var t1 = this.node;
  93869. return this.$this._async_evaluate0$_environment.getFunction$2$namespace(t1.name, t1.namespace);
  93870. },
  93871. $signature: 96
  93872. };
  93873. A._EvaluateVisitor_visitFunctionExpression_closure9.prototype = {
  93874. call$1(argument) {
  93875. return argument.accept$1(B.C_IsCalculationSafeVisitor0);
  93876. },
  93877. $signature: 137
  93878. };
  93879. A._EvaluateVisitor_visitFunctionExpression_closure10.prototype = {
  93880. call$0() {
  93881. var t1 = this.node;
  93882. return this.$this._async_evaluate0$_runFunctionCallable$3(t1.$arguments, this._box_0.$function, t1);
  93883. },
  93884. $signature: 78
  93885. };
  93886. A._EvaluateVisitor__checkCalculationArguments_check2.prototype = {
  93887. call$1(maxArgs) {
  93888. var t1 = this.node,
  93889. t2 = t1.$arguments.positional.length;
  93890. if (t2 === 0)
  93891. throw A.wrapException(this.$this._async_evaluate0$_exception$2("Missing argument.", t1.span));
  93892. else if (maxArgs != null && t2 > maxArgs)
  93893. throw A.wrapException(this.$this._async_evaluate0$_exception$2("Only " + A.S(maxArgs) + " " + A.pluralize0("argument", maxArgs, null) + " allowed, but " + t2 + " " + A.pluralize0("was", t2, "were") + " passed.", t1.span));
  93894. },
  93895. call$0() {
  93896. return this.call$1(null);
  93897. },
  93898. $signature: 99
  93899. };
  93900. A._EvaluateVisitor__visitCalculationExpression_closure2.prototype = {
  93901. call$0() {
  93902. var $async$goto = 0,
  93903. $async$completer = A._makeAsyncAwaitCompleter(type$.Object),
  93904. $async$returnValue, $async$self = this, t1, t2, t3, $async$temp1, $async$temp2, $async$temp3;
  93905. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  93906. if ($async$errorCode === 1)
  93907. return A._asyncRethrow($async$result, $async$completer);
  93908. while (true)
  93909. switch ($async$goto) {
  93910. case 0:
  93911. // Function start
  93912. t1 = $async$self.$this;
  93913. t2 = $async$self._box_0;
  93914. t3 = $async$self.inLegacySassFunction;
  93915. $async$temp1 = A;
  93916. $async$temp2 = t1._async_evaluate0$_binaryOperatorToCalculationOperator$2(t2.operator, $async$self.node);
  93917. $async$goto = 3;
  93918. return A._asyncAwait(t1._async_evaluate0$_visitCalculationExpression$2$inLegacySassFunction(t2.left, t3), $async$call$0);
  93919. case 3:
  93920. // returning from await.
  93921. $async$temp3 = $async$result;
  93922. $async$goto = 4;
  93923. return A._asyncAwait(t1._async_evaluate0$_visitCalculationExpression$2$inLegacySassFunction(t2.right, t3), $async$call$0);
  93924. case 4:
  93925. // returning from await.
  93926. $async$returnValue = $async$temp1.SassCalculation_operateInternal0($async$temp2, $async$temp3, $async$result, t3, !t1._async_evaluate0$_inSupportsDeclaration);
  93927. // goto return
  93928. $async$goto = 1;
  93929. break;
  93930. case 1:
  93931. // return
  93932. return A._asyncReturn($async$returnValue, $async$completer);
  93933. }
  93934. });
  93935. return A._asyncStartSync($async$call$0, $async$completer);
  93936. },
  93937. $signature: 252
  93938. };
  93939. A._EvaluateVisitor_visitInterpolatedFunctionExpression_closure2.prototype = {
  93940. call$0() {
  93941. var t1 = this.node;
  93942. return this.$this._async_evaluate0$_runFunctionCallable$3(t1.$arguments, this.$function, t1);
  93943. },
  93944. $signature: 78
  93945. };
  93946. A._EvaluateVisitor__runUserDefinedCallable_closure2.prototype = {
  93947. call$0() {
  93948. var _this = this,
  93949. t1 = _this.$this,
  93950. t2 = _this.callable,
  93951. t3 = _this.V;
  93952. return t1._async_evaluate0$_withEnvironment$1$2(t2.environment.closure$0(), new A._EvaluateVisitor__runUserDefinedCallable__closure2(t1, _this.evaluated, t2, _this.nodeWithSpan, _this.run, t3), t3);
  93953. },
  93954. $signature() {
  93955. return this.V._eval$1("Future<0>()");
  93956. }
  93957. };
  93958. A._EvaluateVisitor__runUserDefinedCallable__closure2.prototype = {
  93959. call$0() {
  93960. var _this = this,
  93961. t1 = _this.$this,
  93962. t2 = _this.V;
  93963. return t1._async_evaluate0$_environment.scope$1$1(new A._EvaluateVisitor__runUserDefinedCallable___closure2(t1, _this.evaluated, _this.callable, _this.nodeWithSpan, _this.run, t2), t2);
  93964. },
  93965. $signature() {
  93966. return this.V._eval$1("Future<0>()");
  93967. }
  93968. };
  93969. A._EvaluateVisitor__runUserDefinedCallable___closure2.prototype = {
  93970. call$0() {
  93971. return this.$call$body$_EvaluateVisitor__runUserDefinedCallable___closure0(this.V);
  93972. },
  93973. $call$body$_EvaluateVisitor__runUserDefinedCallable___closure0($async$type) {
  93974. var $async$goto = 0,
  93975. $async$completer = A._makeAsyncAwaitCompleter($async$type),
  93976. $async$returnValue, $async$self = this, declaredArguments, t5, minLength, i, argument, t6, t7, value, t8, restArgument, rest, argumentList, result, argumentWord, t1, t2, t3, t4, $async$temp1;
  93977. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  93978. if ($async$errorCode === 1)
  93979. return A._asyncRethrow($async$result, $async$completer);
  93980. while (true)
  93981. switch ($async$goto) {
  93982. case 0:
  93983. // Function start
  93984. t1 = $async$self.$this;
  93985. t2 = $async$self.evaluated._values;
  93986. t3 = $async$self.callable.declaration.$arguments;
  93987. t4 = $async$self.nodeWithSpan;
  93988. t1._async_evaluate0$_verifyArguments$4(J.get$length$asx(t2[2]), t2[0], t3, t4);
  93989. declaredArguments = t3.$arguments;
  93990. t5 = declaredArguments.length;
  93991. minLength = Math.min(J.get$length$asx(t2[2]), t5);
  93992. for (i = 0; i < minLength; ++i)
  93993. t1._async_evaluate0$_environment.setLocalVariable$3(declaredArguments[i].name, J.$index$asx(t2[2], i), J.$index$asx(t2[3], i));
  93994. i = J.get$length$asx(t2[2]);
  93995. case 3:
  93996. // for condition
  93997. if (!(i < t5)) {
  93998. // goto after for
  93999. $async$goto = 5;
  94000. break;
  94001. }
  94002. argument = declaredArguments[i];
  94003. t6 = t2[0];
  94004. t7 = argument.name;
  94005. value = t6.remove$1(0, t7);
  94006. $async$goto = value == null ? 6 : 7;
  94007. break;
  94008. case 6:
  94009. // then
  94010. t6 = argument.defaultValue;
  94011. $async$temp1 = t1;
  94012. $async$goto = 8;
  94013. return A._asyncAwait(t6.accept$1(t1), $async$call$0);
  94014. case 8:
  94015. // returning from await.
  94016. value = $async$temp1._async_evaluate0$_withoutSlash$2($async$result, t1._async_evaluate0$_expressionNode$1(t6));
  94017. case 7:
  94018. // join
  94019. t6 = t1._async_evaluate0$_environment;
  94020. t8 = t2[1].$index(0, t7);
  94021. if (t8 == null) {
  94022. t8 = argument.defaultValue;
  94023. t8.toString;
  94024. t8 = t1._async_evaluate0$_expressionNode$1(t8);
  94025. }
  94026. t6.setLocalVariable$3(t7, value, t8);
  94027. case 4:
  94028. // for update
  94029. ++i;
  94030. // goto for condition
  94031. $async$goto = 3;
  94032. break;
  94033. case 5:
  94034. // after for
  94035. restArgument = t3.restArgument;
  94036. if (restArgument != null) {
  94037. rest = J.get$length$asx(t2[2]) > t5 ? J.sublist$1$ax(t2[2], t5) : B.List_empty20;
  94038. t5 = t2[0];
  94039. t6 = t2[4];
  94040. argumentList = A.SassArgumentList$0(rest, t5, t6 === B.ListSeparator_undecided_null_undecided0 ? B.ListSeparator_ECn0 : t6);
  94041. t1._async_evaluate0$_environment.setLocalVariable$3(restArgument, argumentList, t4);
  94042. } else
  94043. argumentList = null;
  94044. $async$goto = 9;
  94045. return A._asyncAwait($async$self.run.call$0(), $async$call$0);
  94046. case 9:
  94047. // returning from await.
  94048. result = $async$result;
  94049. if (argumentList == null) {
  94050. $async$returnValue = result;
  94051. // goto return
  94052. $async$goto = 1;
  94053. break;
  94054. }
  94055. t5 = t2[0];
  94056. if (t5.get$isEmpty(t5)) {
  94057. $async$returnValue = result;
  94058. // goto return
  94059. $async$goto = 1;
  94060. break;
  94061. }
  94062. if (argumentList._argument_list$_wereKeywordsAccessed) {
  94063. $async$returnValue = result;
  94064. // goto return
  94065. $async$goto = 1;
  94066. break;
  94067. }
  94068. t5 = t2[0];
  94069. argumentWord = A.pluralize0("argument", J.get$length$asx(t5.get$keys(t5)), null);
  94070. t2 = t2[0];
  94071. throw A.wrapException(A.MultiSpanSassRuntimeException$0("No " + argumentWord + " named " + A.toSentence0(J.map$1$1$ax(t2.get$keys(t2), new A._EvaluateVisitor__runUserDefinedCallable____closure2(), type$.Object), "or") + ".", t4.get$span(t4), "invocation", A.LinkedHashMap_LinkedHashMap$_literal([t3.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), t1._async_evaluate0$_stackTrace$1(t4.get$span(t4)), null));
  94072. case 1:
  94073. // return
  94074. return A._asyncReturn($async$returnValue, $async$completer);
  94075. }
  94076. });
  94077. return A._asyncStartSync($async$call$0, $async$completer);
  94078. },
  94079. $signature() {
  94080. return this.V._eval$1("Future<0>()");
  94081. }
  94082. };
  94083. A._EvaluateVisitor__runUserDefinedCallable____closure2.prototype = {
  94084. call$1($name) {
  94085. return "$" + $name;
  94086. },
  94087. $signature: 6
  94088. };
  94089. A._EvaluateVisitor__runFunctionCallable_closure2.prototype = {
  94090. call$0() {
  94091. var $async$goto = 0,
  94092. $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
  94093. $async$returnValue, $async$self = this, t1, t2, t3, t4, _i, $returnValue;
  94094. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  94095. if ($async$errorCode === 1)
  94096. return A._asyncRethrow($async$result, $async$completer);
  94097. while (true)
  94098. switch ($async$goto) {
  94099. case 0:
  94100. // Function start
  94101. t1 = $async$self.callable.declaration, t2 = t1.children, t3 = t2.length, t4 = $async$self.$this, _i = 0;
  94102. case 3:
  94103. // for condition
  94104. if (!(_i < t3)) {
  94105. // goto after for
  94106. $async$goto = 5;
  94107. break;
  94108. }
  94109. $async$goto = 6;
  94110. return A._asyncAwait(t2[_i].accept$1(t4), $async$call$0);
  94111. case 6:
  94112. // returning from await.
  94113. $returnValue = $async$result;
  94114. if ($returnValue instanceof A.Value0) {
  94115. $async$returnValue = $returnValue;
  94116. // goto return
  94117. $async$goto = 1;
  94118. break;
  94119. }
  94120. case 4:
  94121. // for update
  94122. ++_i;
  94123. // goto for condition
  94124. $async$goto = 3;
  94125. break;
  94126. case 5:
  94127. // after for
  94128. throw A.wrapException(t4._async_evaluate0$_exception$2("Function finished without @return.", t1.span));
  94129. case 1:
  94130. // return
  94131. return A._asyncReturn($async$returnValue, $async$completer);
  94132. }
  94133. });
  94134. return A._asyncStartSync($async$call$0, $async$completer);
  94135. },
  94136. $signature: 78
  94137. };
  94138. A._EvaluateVisitor__runBuiltInCallable_closure8.prototype = {
  94139. call$0() {
  94140. return this._box_0.overload.verify$2(J.get$length$asx(this.evaluated._values[2]), this.namedSet);
  94141. },
  94142. $signature: 0
  94143. };
  94144. A._EvaluateVisitor__runBuiltInCallable_closure9.prototype = {
  94145. call$0() {
  94146. return this._box_0.callback.call$1(this.evaluated._values[2]);
  94147. },
  94148. $signature: 358
  94149. };
  94150. A._EvaluateVisitor__runBuiltInCallable_closure10.prototype = {
  94151. call$1($name) {
  94152. return "$" + $name;
  94153. },
  94154. $signature: 6
  94155. };
  94156. A._EvaluateVisitor__evaluateArguments_closure11.prototype = {
  94157. call$1(value) {
  94158. return value;
  94159. },
  94160. $signature: 43
  94161. };
  94162. A._EvaluateVisitor__evaluateArguments_closure12.prototype = {
  94163. call$1(value) {
  94164. return this.$this._async_evaluate0$_withoutSlash$2(value, this.restNodeForSpan);
  94165. },
  94166. $signature: 43
  94167. };
  94168. A._EvaluateVisitor__evaluateArguments_closure13.prototype = {
  94169. call$2(key, value) {
  94170. var _this = this,
  94171. t1 = _this.restNodeForSpan;
  94172. _this.named.$indexSet(0, key, _this.$this._async_evaluate0$_withoutSlash$2(value, t1));
  94173. _this.namedNodes.$indexSet(0, key, t1);
  94174. },
  94175. $signature: 108
  94176. };
  94177. A._EvaluateVisitor__evaluateArguments_closure14.prototype = {
  94178. call$1(value) {
  94179. return value;
  94180. },
  94181. $signature: 43
  94182. };
  94183. A._EvaluateVisitor__evaluateMacroArguments_closure11.prototype = {
  94184. call$1(value) {
  94185. var t1 = this.restArgs;
  94186. return new A.ValueExpression0(value, t1.get$span(t1));
  94187. },
  94188. $signature: 66
  94189. };
  94190. A._EvaluateVisitor__evaluateMacroArguments_closure12.prototype = {
  94191. call$1(value) {
  94192. var t1 = this.restArgs;
  94193. return new A.ValueExpression0(this.$this._async_evaluate0$_withoutSlash$2(value, this.restNodeForSpan), t1.get$span(t1));
  94194. },
  94195. $signature: 66
  94196. };
  94197. A._EvaluateVisitor__evaluateMacroArguments_closure13.prototype = {
  94198. call$2(key, value) {
  94199. var _this = this,
  94200. t1 = _this.restArgs;
  94201. _this.named.$indexSet(0, key, new A.ValueExpression0(_this.$this._async_evaluate0$_withoutSlash$2(value, _this.restNodeForSpan), t1.get$span(t1)));
  94202. },
  94203. $signature: 108
  94204. };
  94205. A._EvaluateVisitor__evaluateMacroArguments_closure14.prototype = {
  94206. call$1(value) {
  94207. var t1 = this.keywordRestArgs;
  94208. return new A.ValueExpression0(this.$this._async_evaluate0$_withoutSlash$2(value, this.keywordRestNodeForSpan), t1.get$span(t1));
  94209. },
  94210. $signature: 66
  94211. };
  94212. A._EvaluateVisitor__addRestMap_closure2.prototype = {
  94213. call$2(key, value) {
  94214. var t2, _this = this,
  94215. t1 = _this.$this;
  94216. if (key instanceof A.SassString0)
  94217. _this.values.$indexSet(0, key._string0$_text, _this.convert.call$1(t1._async_evaluate0$_withoutSlash$2(value, _this.expressionNode)));
  94218. else {
  94219. t2 = _this.nodeWithSpan;
  94220. throw A.wrapException(t1._async_evaluate0$_exception$2(string$.Variab_ + key.toString$0(0) + " is not a string in " + _this.map.toString$0(0) + ".", t2.get$span(t2)));
  94221. }
  94222. },
  94223. $signature: 97
  94224. };
  94225. A._EvaluateVisitor__verifyArguments_closure2.prototype = {
  94226. call$0() {
  94227. return this.$arguments.verify$2(this.positional, new A.MapKeySet(this.named, type$.MapKeySet_String));
  94228. },
  94229. $signature: 0
  94230. };
  94231. A._EvaluateVisitor_visitCssAtRule_closure5.prototype = {
  94232. call$0() {
  94233. var $async$goto = 0,
  94234. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  94235. $async$self = this, t1, t2, t3, t4;
  94236. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  94237. if ($async$errorCode === 1)
  94238. return A._asyncRethrow($async$result, $async$completer);
  94239. while (true)
  94240. switch ($async$goto) {
  94241. case 0:
  94242. // Function start
  94243. t1 = $async$self.node.children, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t3 = $async$self.$this, t2 = t2._eval$1("ListBase.E");
  94244. case 2:
  94245. // for condition
  94246. if (!t1.moveNext$0()) {
  94247. // goto after for
  94248. $async$goto = 3;
  94249. break;
  94250. }
  94251. t4 = t1.__internal$_current;
  94252. $async$goto = 4;
  94253. return A._asyncAwait((t4 == null ? t2._as(t4) : t4).accept$1(t3), $async$call$0);
  94254. case 4:
  94255. // returning from await.
  94256. // goto for condition
  94257. $async$goto = 2;
  94258. break;
  94259. case 3:
  94260. // after for
  94261. // implicit return
  94262. return A._asyncReturn(null, $async$completer);
  94263. }
  94264. });
  94265. return A._asyncStartSync($async$call$0, $async$completer);
  94266. },
  94267. $signature: 2
  94268. };
  94269. A._EvaluateVisitor_visitCssAtRule_closure6.prototype = {
  94270. call$1(node) {
  94271. return node instanceof A.ModifiableCssStyleRule0;
  94272. },
  94273. $signature: 8
  94274. };
  94275. A._EvaluateVisitor_visitCssKeyframeBlock_closure5.prototype = {
  94276. call$0() {
  94277. var $async$goto = 0,
  94278. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  94279. $async$self = this, t1, t2, t3, t4;
  94280. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  94281. if ($async$errorCode === 1)
  94282. return A._asyncRethrow($async$result, $async$completer);
  94283. while (true)
  94284. switch ($async$goto) {
  94285. case 0:
  94286. // Function start
  94287. t1 = $async$self.node.children, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t3 = $async$self.$this, t2 = t2._eval$1("ListBase.E");
  94288. case 2:
  94289. // for condition
  94290. if (!t1.moveNext$0()) {
  94291. // goto after for
  94292. $async$goto = 3;
  94293. break;
  94294. }
  94295. t4 = t1.__internal$_current;
  94296. $async$goto = 4;
  94297. return A._asyncAwait((t4 == null ? t2._as(t4) : t4).accept$1(t3), $async$call$0);
  94298. case 4:
  94299. // returning from await.
  94300. // goto for condition
  94301. $async$goto = 2;
  94302. break;
  94303. case 3:
  94304. // after for
  94305. // implicit return
  94306. return A._asyncReturn(null, $async$completer);
  94307. }
  94308. });
  94309. return A._asyncStartSync($async$call$0, $async$completer);
  94310. },
  94311. $signature: 2
  94312. };
  94313. A._EvaluateVisitor_visitCssKeyframeBlock_closure6.prototype = {
  94314. call$1(node) {
  94315. return node instanceof A.ModifiableCssStyleRule0;
  94316. },
  94317. $signature: 8
  94318. };
  94319. A._EvaluateVisitor_visitCssMediaRule_closure8.prototype = {
  94320. call$1(mediaQueries) {
  94321. return this.$this._async_evaluate0$_mergeMediaQueries$2(mediaQueries, this.node.queries);
  94322. },
  94323. $signature: 105
  94324. };
  94325. A._EvaluateVisitor_visitCssMediaRule_closure9.prototype = {
  94326. call$0() {
  94327. var $async$goto = 0,
  94328. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  94329. $async$self = this, t1, t2;
  94330. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  94331. if ($async$errorCode === 1)
  94332. return A._asyncRethrow($async$result, $async$completer);
  94333. while (true)
  94334. switch ($async$goto) {
  94335. case 0:
  94336. // Function start
  94337. t1 = $async$self.$this;
  94338. t2 = $async$self.mergedQueries;
  94339. if (t2 == null)
  94340. t2 = $async$self.node.queries;
  94341. $async$goto = 2;
  94342. return A._asyncAwait(t1._async_evaluate0$_withMediaQueries$1$3(t2, $async$self.mergedSources, new A._EvaluateVisitor_visitCssMediaRule__closure2(t1, $async$self.node), type$.Null), $async$call$0);
  94343. case 2:
  94344. // returning from await.
  94345. // implicit return
  94346. return A._asyncReturn(null, $async$completer);
  94347. }
  94348. });
  94349. return A._asyncStartSync($async$call$0, $async$completer);
  94350. },
  94351. $signature: 2
  94352. };
  94353. A._EvaluateVisitor_visitCssMediaRule__closure2.prototype = {
  94354. call$0() {
  94355. var $async$goto = 0,
  94356. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  94357. $async$self = this, t2, t3, t4, t1, _0_0;
  94358. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  94359. if ($async$errorCode === 1)
  94360. return A._asyncRethrow($async$result, $async$completer);
  94361. while (true)
  94362. switch ($async$goto) {
  94363. case 0:
  94364. // Function start
  94365. t1 = $async$self.$this;
  94366. _0_0 = t1._async_evaluate0$_atRootExcludingStyleRule ? null : t1._async_evaluate0$_styleRuleIgnoringAtRoot;
  94367. $async$goto = _0_0 != null ? 2 : 4;
  94368. break;
  94369. case 2:
  94370. // then
  94371. $async$goto = 5;
  94372. return A._asyncAwait(t1._async_evaluate0$_withParent$2$3$scopeWhen(A.ModifiableCssStyleRule$0(_0_0._style_rule0$_selector, _0_0.span, false, _0_0.originalSelector), new A._EvaluateVisitor_visitCssMediaRule___closure2(t1, $async$self.node), false, type$.ModifiableCssStyleRule_2, type$.Null), $async$call$0);
  94373. case 5:
  94374. // returning from await.
  94375. // goto join
  94376. $async$goto = 3;
  94377. break;
  94378. case 4:
  94379. // else
  94380. t2 = $async$self.node.children, t3 = t2.$ti, t2 = new A.ListIterator(t2, t2.get$length(0), t3._eval$1("ListIterator<ListBase.E>")), t3 = t3._eval$1("ListBase.E");
  94381. case 6:
  94382. // for condition
  94383. if (!t2.moveNext$0()) {
  94384. // goto after for
  94385. $async$goto = 7;
  94386. break;
  94387. }
  94388. t4 = t2.__internal$_current;
  94389. $async$goto = 8;
  94390. return A._asyncAwait((t4 == null ? t3._as(t4) : t4).accept$1(t1), $async$call$0);
  94391. case 8:
  94392. // returning from await.
  94393. // goto for condition
  94394. $async$goto = 6;
  94395. break;
  94396. case 7:
  94397. // after for
  94398. case 3:
  94399. // join
  94400. // implicit return
  94401. return A._asyncReturn(null, $async$completer);
  94402. }
  94403. });
  94404. return A._asyncStartSync($async$call$0, $async$completer);
  94405. },
  94406. $signature: 2
  94407. };
  94408. A._EvaluateVisitor_visitCssMediaRule___closure2.prototype = {
  94409. call$0() {
  94410. var $async$goto = 0,
  94411. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  94412. $async$self = this, t1, t2, t3, t4;
  94413. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  94414. if ($async$errorCode === 1)
  94415. return A._asyncRethrow($async$result, $async$completer);
  94416. while (true)
  94417. switch ($async$goto) {
  94418. case 0:
  94419. // Function start
  94420. t1 = $async$self.node.children, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t3 = $async$self.$this, t2 = t2._eval$1("ListBase.E");
  94421. case 2:
  94422. // for condition
  94423. if (!t1.moveNext$0()) {
  94424. // goto after for
  94425. $async$goto = 3;
  94426. break;
  94427. }
  94428. t4 = t1.__internal$_current;
  94429. $async$goto = 4;
  94430. return A._asyncAwait((t4 == null ? t2._as(t4) : t4).accept$1(t3), $async$call$0);
  94431. case 4:
  94432. // returning from await.
  94433. // goto for condition
  94434. $async$goto = 2;
  94435. break;
  94436. case 3:
  94437. // after for
  94438. // implicit return
  94439. return A._asyncReturn(null, $async$completer);
  94440. }
  94441. });
  94442. return A._asyncStartSync($async$call$0, $async$completer);
  94443. },
  94444. $signature: 2
  94445. };
  94446. A._EvaluateVisitor_visitCssMediaRule_closure10.prototype = {
  94447. call$1(node) {
  94448. var t1;
  94449. if (!(node instanceof A.ModifiableCssStyleRule0)) {
  94450. t1 = this.mergedSources;
  94451. t1 = t1.get$isNotEmpty(t1) && node instanceof A.ModifiableCssMediaRule0 && B.JSArray_methods.every$1(node.queries, t1.get$contains(t1));
  94452. } else
  94453. t1 = true;
  94454. return t1;
  94455. },
  94456. $signature: 8
  94457. };
  94458. A._EvaluateVisitor_visitCssStyleRule_closure6.prototype = {
  94459. call$0() {
  94460. var $async$goto = 0,
  94461. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  94462. $async$self = this, t1;
  94463. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  94464. if ($async$errorCode === 1)
  94465. return A._asyncRethrow($async$result, $async$completer);
  94466. while (true)
  94467. switch ($async$goto) {
  94468. case 0:
  94469. // Function start
  94470. t1 = $async$self.$this;
  94471. $async$goto = 2;
  94472. return A._asyncAwait(t1._async_evaluate0$_withStyleRule$1$2($async$self.rule, new A._EvaluateVisitor_visitCssStyleRule__closure2(t1, $async$self.node), type$.Null), $async$call$0);
  94473. case 2:
  94474. // returning from await.
  94475. // implicit return
  94476. return A._asyncReturn(null, $async$completer);
  94477. }
  94478. });
  94479. return A._asyncStartSync($async$call$0, $async$completer);
  94480. },
  94481. $signature: 2
  94482. };
  94483. A._EvaluateVisitor_visitCssStyleRule__closure2.prototype = {
  94484. call$0() {
  94485. var $async$goto = 0,
  94486. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  94487. $async$self = this, t1, t2, t3, t4;
  94488. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  94489. if ($async$errorCode === 1)
  94490. return A._asyncRethrow($async$result, $async$completer);
  94491. while (true)
  94492. switch ($async$goto) {
  94493. case 0:
  94494. // Function start
  94495. t1 = $async$self.node.children, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t3 = $async$self.$this, t2 = t2._eval$1("ListBase.E");
  94496. case 2:
  94497. // for condition
  94498. if (!t1.moveNext$0()) {
  94499. // goto after for
  94500. $async$goto = 3;
  94501. break;
  94502. }
  94503. t4 = t1.__internal$_current;
  94504. $async$goto = 4;
  94505. return A._asyncAwait((t4 == null ? t2._as(t4) : t4).accept$1(t3), $async$call$0);
  94506. case 4:
  94507. // returning from await.
  94508. // goto for condition
  94509. $async$goto = 2;
  94510. break;
  94511. case 3:
  94512. // after for
  94513. // implicit return
  94514. return A._asyncReturn(null, $async$completer);
  94515. }
  94516. });
  94517. return A._asyncStartSync($async$call$0, $async$completer);
  94518. },
  94519. $signature: 2
  94520. };
  94521. A._EvaluateVisitor_visitCssStyleRule_closure5.prototype = {
  94522. call$1(node) {
  94523. return node instanceof A.ModifiableCssStyleRule0;
  94524. },
  94525. $signature: 8
  94526. };
  94527. A._EvaluateVisitor_visitCssSupportsRule_closure5.prototype = {
  94528. call$0() {
  94529. var $async$goto = 0,
  94530. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  94531. $async$self = this, t2, t3, t4, t1, _0_0;
  94532. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  94533. if ($async$errorCode === 1)
  94534. return A._asyncRethrow($async$result, $async$completer);
  94535. while (true)
  94536. switch ($async$goto) {
  94537. case 0:
  94538. // Function start
  94539. t1 = $async$self.$this;
  94540. _0_0 = t1._async_evaluate0$_atRootExcludingStyleRule ? null : t1._async_evaluate0$_styleRuleIgnoringAtRoot;
  94541. $async$goto = _0_0 != null ? 2 : 4;
  94542. break;
  94543. case 2:
  94544. // then
  94545. $async$goto = 5;
  94546. return A._asyncAwait(t1._async_evaluate0$_withParent$2$2(A.ModifiableCssStyleRule$0(_0_0._style_rule0$_selector, _0_0.span, false, _0_0.originalSelector), new A._EvaluateVisitor_visitCssSupportsRule__closure2(t1, $async$self.node), type$.ModifiableCssStyleRule_2, type$.Null), $async$call$0);
  94547. case 5:
  94548. // returning from await.
  94549. // goto join
  94550. $async$goto = 3;
  94551. break;
  94552. case 4:
  94553. // else
  94554. t2 = $async$self.node.children, t3 = t2.$ti, t2 = new A.ListIterator(t2, t2.get$length(0), t3._eval$1("ListIterator<ListBase.E>")), t3 = t3._eval$1("ListBase.E");
  94555. case 6:
  94556. // for condition
  94557. if (!t2.moveNext$0()) {
  94558. // goto after for
  94559. $async$goto = 7;
  94560. break;
  94561. }
  94562. t4 = t2.__internal$_current;
  94563. $async$goto = 8;
  94564. return A._asyncAwait((t4 == null ? t3._as(t4) : t4).accept$1(t1), $async$call$0);
  94565. case 8:
  94566. // returning from await.
  94567. // goto for condition
  94568. $async$goto = 6;
  94569. break;
  94570. case 7:
  94571. // after for
  94572. case 3:
  94573. // join
  94574. // implicit return
  94575. return A._asyncReturn(null, $async$completer);
  94576. }
  94577. });
  94578. return A._asyncStartSync($async$call$0, $async$completer);
  94579. },
  94580. $signature: 2
  94581. };
  94582. A._EvaluateVisitor_visitCssSupportsRule__closure2.prototype = {
  94583. call$0() {
  94584. var $async$goto = 0,
  94585. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  94586. $async$self = this, t1, t2, t3, t4;
  94587. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  94588. if ($async$errorCode === 1)
  94589. return A._asyncRethrow($async$result, $async$completer);
  94590. while (true)
  94591. switch ($async$goto) {
  94592. case 0:
  94593. // Function start
  94594. t1 = $async$self.node.children, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t3 = $async$self.$this, t2 = t2._eval$1("ListBase.E");
  94595. case 2:
  94596. // for condition
  94597. if (!t1.moveNext$0()) {
  94598. // goto after for
  94599. $async$goto = 3;
  94600. break;
  94601. }
  94602. t4 = t1.__internal$_current;
  94603. $async$goto = 4;
  94604. return A._asyncAwait((t4 == null ? t2._as(t4) : t4).accept$1(t3), $async$call$0);
  94605. case 4:
  94606. // returning from await.
  94607. // goto for condition
  94608. $async$goto = 2;
  94609. break;
  94610. case 3:
  94611. // after for
  94612. // implicit return
  94613. return A._asyncReturn(null, $async$completer);
  94614. }
  94615. });
  94616. return A._asyncStartSync($async$call$0, $async$completer);
  94617. },
  94618. $signature: 2
  94619. };
  94620. A._EvaluateVisitor_visitCssSupportsRule_closure6.prototype = {
  94621. call$1(node) {
  94622. return node instanceof A.ModifiableCssStyleRule0;
  94623. },
  94624. $signature: 8
  94625. };
  94626. A._EvaluateVisitor__performInterpolationHelper_closure2.prototype = {
  94627. call$1(targetLocations) {
  94628. return A.InterpolationMap$0(this.interpolation, targetLocations);
  94629. },
  94630. $signature: 194
  94631. };
  94632. A._EvaluateVisitor__serialize_closure2.prototype = {
  94633. call$0() {
  94634. return A.serializeValue0(this.value, false, this.quote);
  94635. },
  94636. $signature: 31
  94637. };
  94638. A._EvaluateVisitor__expressionNode_closure2.prototype = {
  94639. call$0() {
  94640. var t1 = this.expression;
  94641. return this.$this._async_evaluate0$_environment.getVariableNode$2$namespace(t1.name, t1.namespace);
  94642. },
  94643. $signature: 195
  94644. };
  94645. A._EvaluateVisitor__withoutSlash_recommendation2.prototype = {
  94646. call$1(number) {
  94647. var before, after, t1,
  94648. _1_0 = number.asSlash;
  94649. $label0$0: {
  94650. if (type$.Record_2_nullable_Object_and_nullable_Object._is(_1_0)) {
  94651. before = _1_0._0;
  94652. after = _1_0._1;
  94653. t1 = "math.div(" + A.S(this.call$1(before)) + ", " + A.S(this.call$1(after)) + ")";
  94654. break $label0$0;
  94655. }
  94656. t1 = A.serializeValue0(number, true, true);
  94657. break $label0$0;
  94658. }
  94659. return t1;
  94660. },
  94661. $signature: 196
  94662. };
  94663. A._EvaluateVisitor__stackFrame_closure2.prototype = {
  94664. call$1(url) {
  94665. var t1 = this.$this._async_evaluate0$_importCache;
  94666. t1 = t1 == null ? null : t1.humanize$1(url);
  94667. return t1 == null ? url : t1;
  94668. },
  94669. $signature: 50
  94670. };
  94671. A._ImportedCssVisitor2.prototype = {
  94672. visitCssAtRule$1(node) {
  94673. var t1 = node.isChildless ? null : new A._ImportedCssVisitor_visitCssAtRule_closure2();
  94674. this._async_evaluate0$_visitor._async_evaluate0$_addChild$2$through(node, t1);
  94675. },
  94676. visitCssComment$1(node) {
  94677. return this._async_evaluate0$_visitor._async_evaluate0$_addChild$1(node);
  94678. },
  94679. visitCssDeclaration$1(node) {
  94680. },
  94681. visitCssImport$1(node) {
  94682. var t2,
  94683. _s13_ = "_endOfImports",
  94684. t1 = this._async_evaluate0$_visitor;
  94685. if (t1._async_evaluate0$_assertInModule$2(t1._async_evaluate0$__parent, "__parent") !== t1._async_evaluate0$_assertInModule$2(t1._async_evaluate0$__root, "_root"))
  94686. t1._async_evaluate0$_addChild$1(node);
  94687. else if (t1._async_evaluate0$_assertInModule$2(t1._async_evaluate0$__endOfImports, _s13_) === J.get$length$asx(t1._async_evaluate0$_assertInModule$2(t1._async_evaluate0$__root, "_root").children._collection$_source)) {
  94688. t1._async_evaluate0$_addChild$1(node);
  94689. t1._async_evaluate0$__endOfImports = t1._async_evaluate0$_assertInModule$2(t1._async_evaluate0$__endOfImports, _s13_) + 1;
  94690. } else {
  94691. t2 = t1._async_evaluate0$_outOfOrderImports;
  94692. (t2 == null ? t1._async_evaluate0$_outOfOrderImports = A._setArrayType([], type$.JSArray_ModifiableCssImport_2) : t2).push(node);
  94693. }
  94694. },
  94695. visitCssKeyframeBlock$1(node) {
  94696. },
  94697. visitCssMediaRule$1(node) {
  94698. var t1 = this._async_evaluate0$_visitor,
  94699. mediaQueries = t1._async_evaluate0$_mediaQueries;
  94700. t1._async_evaluate0$_addChild$2$through(node, new A._ImportedCssVisitor_visitCssMediaRule_closure2(mediaQueries == null || t1._async_evaluate0$_mergeMediaQueries$2(mediaQueries, node.queries) != null));
  94701. },
  94702. visitCssStyleRule$1(node) {
  94703. return this._async_evaluate0$_visitor._async_evaluate0$_addChild$2$through(node, new A._ImportedCssVisitor_visitCssStyleRule_closure2());
  94704. },
  94705. visitCssStylesheet$1(node) {
  94706. var t1, t2, t3;
  94707. for (t1 = node.children, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t2 = t2._eval$1("ListBase.E"); t1.moveNext$0();) {
  94708. t3 = t1.__internal$_current;
  94709. (t3 == null ? t2._as(t3) : t3).accept$1(this);
  94710. }
  94711. },
  94712. visitCssSupportsRule$1(node) {
  94713. return this._async_evaluate0$_visitor._async_evaluate0$_addChild$2$through(node, new A._ImportedCssVisitor_visitCssSupportsRule_closure2());
  94714. }
  94715. };
  94716. A._ImportedCssVisitor_visitCssAtRule_closure2.prototype = {
  94717. call$1(node) {
  94718. return node instanceof A.ModifiableCssStyleRule0;
  94719. },
  94720. $signature: 8
  94721. };
  94722. A._ImportedCssVisitor_visitCssMediaRule_closure2.prototype = {
  94723. call$1(node) {
  94724. var t1;
  94725. if (!(node instanceof A.ModifiableCssStyleRule0))
  94726. t1 = this.hasBeenMerged && node instanceof A.ModifiableCssMediaRule0;
  94727. else
  94728. t1 = true;
  94729. return t1;
  94730. },
  94731. $signature: 8
  94732. };
  94733. A._ImportedCssVisitor_visitCssStyleRule_closure2.prototype = {
  94734. call$1(node) {
  94735. return node instanceof A.ModifiableCssStyleRule0;
  94736. },
  94737. $signature: 8
  94738. };
  94739. A._ImportedCssVisitor_visitCssSupportsRule_closure2.prototype = {
  94740. call$1(node) {
  94741. return node instanceof A.ModifiableCssStyleRule0;
  94742. },
  94743. $signature: 8
  94744. };
  94745. A._EvaluationContext2.prototype = {
  94746. get$currentCallableSpan() {
  94747. var _0_0 = this._async_evaluate0$_visitor._async_evaluate0$_callableNode;
  94748. if (_0_0 != null)
  94749. return _0_0.get$span(_0_0);
  94750. throw A.wrapException(A.StateError$(string$.No_Sasc));
  94751. },
  94752. warn$2(_, message, deprecation) {
  94753. var t1 = this._async_evaluate0$_visitor,
  94754. t2 = t1._async_evaluate0$_importSpan;
  94755. if (t2 == null) {
  94756. t2 = t1._async_evaluate0$_callableNode;
  94757. t2 = t2 == null ? null : t2.get$span(t2);
  94758. }
  94759. t1._async_evaluate0$_warn$3(message, t2 == null ? this._async_evaluate0$_defaultWarnNodeWithSpan.span : t2, deprecation);
  94760. },
  94761. $isEvaluationContext0: 1
  94762. };
  94763. A.JSToDartAsyncFileImporter.prototype = {
  94764. canonicalize$1(_, url) {
  94765. return this.canonicalize$body$JSToDartAsyncFileImporter(0, url);
  94766. },
  94767. canonicalize$body$JSToDartAsyncFileImporter(_, url) {
  94768. var $async$goto = 0,
  94769. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Uri),
  94770. $async$returnValue, $async$self = this, result, t1, resultUrl;
  94771. var $async$canonicalize$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  94772. if ($async$errorCode === 1)
  94773. return A._asyncRethrow($async$result, $async$completer);
  94774. while (true)
  94775. switch ($async$goto) {
  94776. case 0:
  94777. // Function start
  94778. if (url.get$scheme() === "file") {
  94779. $async$returnValue = $.$get$FilesystemImporter_cwd0().canonicalize$1(0, url);
  94780. // goto return
  94781. $async$goto = 1;
  94782. break;
  94783. }
  94784. result = A.wrapJSExceptions(new A.JSToDartAsyncFileImporter_canonicalize_closure($async$self, url));
  94785. $async$goto = result != null && result instanceof self.Promise ? 3 : 4;
  94786. break;
  94787. case 3:
  94788. // then
  94789. $async$goto = 5;
  94790. return A._asyncAwait(A.promiseToFuture(type$.Promise._as(result), type$.nullable_Object), $async$canonicalize$1);
  94791. case 5:
  94792. // returning from await.
  94793. result = $async$result;
  94794. case 4:
  94795. // join
  94796. if (result == null) {
  94797. $async$returnValue = null;
  94798. // goto return
  94799. $async$goto = 1;
  94800. break;
  94801. }
  94802. t1 = self.URL;
  94803. if (!(result instanceof t1))
  94804. A.jsThrow(new self.Error(string$.The_fie));
  94805. resultUrl = A.Uri_parse(J.toString$0$(type$.JSUrl._as(result)));
  94806. if (resultUrl.get$scheme() !== "file")
  94807. A.jsThrow(new self.Error(string$.The_fiu + url.toString$0(0) + '".'));
  94808. $async$returnValue = $.$get$FilesystemImporter_cwd0().canonicalize$1(0, resultUrl);
  94809. // goto return
  94810. $async$goto = 1;
  94811. break;
  94812. case 1:
  94813. // return
  94814. return A._asyncReturn($async$returnValue, $async$completer);
  94815. }
  94816. });
  94817. return A._asyncStartSync($async$canonicalize$1, $async$completer);
  94818. },
  94819. load$1(_, url) {
  94820. return $.$get$FilesystemImporter_cwd0().load$1(0, url);
  94821. },
  94822. isNonCanonicalScheme$1(scheme) {
  94823. return scheme !== "file";
  94824. }
  94825. };
  94826. A.JSToDartAsyncFileImporter_canonicalize_closure.prototype = {
  94827. call$0() {
  94828. return this.$this._findFileUrl.call$2(this.url.toString$0(0), A.canonicalizeContext0());
  94829. },
  94830. $signature: 37
  94831. };
  94832. A.AsyncImportCache0.prototype = {
  94833. canonicalize$4$baseImporter$baseUrl$forImport(_, url, baseImporter, baseUrl, forImport) {
  94834. return this.canonicalize$body$AsyncImportCache0(0, url, baseImporter, baseUrl, forImport);
  94835. },
  94836. canonicalize$body$AsyncImportCache0(_, url, baseImporter, baseUrl, forImport) {
  94837. var $async$goto = 0,
  94838. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl_2),
  94839. $async$returnValue, $async$self = this, t1, resolvedUrl, key, relativeResult, t2, t3, t4, t5, t6, cacheable, i, importer, perImporterKey, t7, _1_0, _1_2_isSet, result, _1_2, _2_0, _2_1, _2_5_isSet, _2_5, _2_3, _2_3_isSet, j;
  94840. var $async$canonicalize$4$baseImporter$baseUrl$forImport = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  94841. if ($async$errorCode === 1)
  94842. return A._asyncRethrow($async$result, $async$completer);
  94843. while (true)
  94844. switch ($async$goto) {
  94845. case 0:
  94846. // Function start
  94847. if (A.isBrowser())
  94848. t1 = (baseImporter == null || baseImporter instanceof A.NoOpImporter0) && $async$self._async_import_cache0$_importers.length === 0;
  94849. else
  94850. t1 = false;
  94851. if (t1)
  94852. throw A.wrapException(string$.Custom);
  94853. $async$goto = baseImporter != null && url.get$scheme() === "" ? 3 : 4;
  94854. break;
  94855. case 3:
  94856. // then
  94857. resolvedUrl = baseUrl == null ? null : baseUrl.resolveUri$1(url);
  94858. if (resolvedUrl == null)
  94859. resolvedUrl = url;
  94860. key = new A._Record_3_forImport(baseImporter, resolvedUrl, forImport);
  94861. $async$goto = 5;
  94862. return A._asyncAwait(A.putIfAbsentAsync0($async$self._async_import_cache0$_perImporterCanonicalizeCache, key, new A.AsyncImportCache_canonicalize_closure0($async$self, baseImporter, resolvedUrl, baseUrl, forImport, key, url), type$.Record_3_AsyncImporter_and_Uri_and_bool_forImport_2, type$.nullable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl_2), $async$canonicalize$4$baseImporter$baseUrl$forImport);
  94863. case 5:
  94864. // returning from await.
  94865. relativeResult = $async$result;
  94866. if (relativeResult != null) {
  94867. $async$returnValue = relativeResult;
  94868. // goto return
  94869. $async$goto = 1;
  94870. break;
  94871. }
  94872. case 4:
  94873. // join
  94874. key = new A._Record_2_forImport(url, forImport);
  94875. t1 = $async$self._async_import_cache0$_canonicalizeCache;
  94876. if (t1.containsKey$1(key)) {
  94877. $async$returnValue = t1.$index(0, key);
  94878. // goto return
  94879. $async$goto = 1;
  94880. break;
  94881. }
  94882. t2 = $async$self._async_import_cache0$_importers, t3 = type$.Record_1_nullable_Object, t4 = $async$self._async_import_cache0$_perImporterCanonicalizeCache, t5 = type$.nullable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl_2, t6 = type$.Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl_2, cacheable = true, i = 0;
  94883. case 6:
  94884. // for condition
  94885. if (!(i < t2.length)) {
  94886. // goto after for
  94887. $async$goto = 8;
  94888. break;
  94889. }
  94890. importer = t2[i];
  94891. perImporterKey = new A._Record_3_forImport(importer, url, forImport);
  94892. if (t4.containsKey$1(perImporterKey)) {
  94893. t7 = t4.$index(0, perImporterKey);
  94894. _1_0 = new A._Record_1(t7 == null ? t5._as(t7) : t7);
  94895. } else
  94896. _1_0 = null;
  94897. _1_2_isSet = t3._is(_1_0);
  94898. result = null;
  94899. if (_1_2_isSet) {
  94900. _1_2 = _1_0._0;
  94901. t7 = _1_2 != null;
  94902. if (t7) {
  94903. t6._as(_1_2);
  94904. result = _1_2;
  94905. }
  94906. } else {
  94907. _1_2 = null;
  94908. t7 = false;
  94909. }
  94910. if (t7) {
  94911. $async$returnValue = result;
  94912. // goto return
  94913. $async$goto = 1;
  94914. break;
  94915. }
  94916. if (_1_2_isSet)
  94917. t7 = _1_2 == null;
  94918. else
  94919. t7 = false;
  94920. if (t7) {
  94921. // goto for update
  94922. $async$goto = 7;
  94923. break;
  94924. }
  94925. $async$goto = 10;
  94926. return A._asyncAwait($async$self._async_import_cache0$_canonicalize$4(importer, url, baseUrl, forImport), $async$canonicalize$4$baseImporter$baseUrl$forImport);
  94927. case 10:
  94928. // returning from await.
  94929. _2_0 = $async$result;
  94930. _2_1 = _2_0._0;
  94931. _2_5_isSet = _2_1 != null;
  94932. _2_5 = null;
  94933. _2_3 = null;
  94934. t7 = false;
  94935. if (_2_5_isSet) {
  94936. result = _2_1 == null ? t6._as(_2_1) : _2_1;
  94937. _2_3 = _2_0._1;
  94938. t7 = _2_3;
  94939. _2_5 = t7;
  94940. t7 = t7 && cacheable;
  94941. } else
  94942. result = null;
  94943. if (t7) {
  94944. t1.$indexSet(0, key, result);
  94945. $async$returnValue = result;
  94946. // goto return
  94947. $async$goto = 1;
  94948. break;
  94949. }
  94950. if (_2_5_isSet) {
  94951. t7 = _2_5;
  94952. _2_3_isSet = _2_5_isSet;
  94953. } else {
  94954. _2_3 = _2_0._1;
  94955. t7 = _2_3;
  94956. _2_3_isSet = true;
  94957. }
  94958. t7 = t7 && !cacheable;
  94959. if (t7) {
  94960. t4.$indexSet(0, perImporterKey, _2_1);
  94961. if (_2_1 != null) {
  94962. $async$returnValue = _2_1;
  94963. // goto return
  94964. $async$goto = 1;
  94965. break;
  94966. }
  94967. // goto break $label0$1
  94968. $async$goto = 9;
  94969. break;
  94970. }
  94971. t7 = false === (_2_3_isSet ? _2_3 : _2_0._1);
  94972. if (t7) {
  94973. if (cacheable) {
  94974. for (j = 0; j < i; ++j)
  94975. t4.$indexSet(0, new A._Record_3_forImport(t2[j], url, forImport), null);
  94976. cacheable = false;
  94977. }
  94978. if (_2_1 != null) {
  94979. $async$returnValue = _2_1;
  94980. // goto return
  94981. $async$goto = 1;
  94982. break;
  94983. }
  94984. }
  94985. case 9:
  94986. // break $label0$1
  94987. case 7:
  94988. // for update
  94989. ++i;
  94990. // goto for condition
  94991. $async$goto = 6;
  94992. break;
  94993. case 8:
  94994. // after for
  94995. if (cacheable)
  94996. t1.$indexSet(0, key, null);
  94997. $async$returnValue = null;
  94998. // goto return
  94999. $async$goto = 1;
  95000. break;
  95001. case 1:
  95002. // return
  95003. return A._asyncReturn($async$returnValue, $async$completer);
  95004. }
  95005. });
  95006. return A._asyncStartSync($async$canonicalize$4$baseImporter$baseUrl$forImport, $async$completer);
  95007. },
  95008. _async_import_cache0$_canonicalize$4(importer, url, baseUrl, forImport) {
  95009. return this._canonicalize$body$AsyncImportCache0(importer, url, baseUrl, forImport);
  95010. },
  95011. _canonicalize$body$AsyncImportCache0(importer, url, baseUrl, forImport) {
  95012. var $async$goto = 0,
  95013. $async$completer = A._makeAsyncAwaitCompleter(type$.Record_2_nullable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl_and_bool_2),
  95014. $async$returnValue, t1, passContainingUrl, canonicalizeContext, result, cacheable;
  95015. var $async$_async_import_cache0$_canonicalize$4 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  95016. if ($async$errorCode === 1)
  95017. return A._asyncRethrow($async$result, $async$completer);
  95018. while (true)
  95019. switch ($async$goto) {
  95020. case 0:
  95021. // Function start
  95022. $async$goto = baseUrl != null ? 3 : 5;
  95023. break;
  95024. case 3:
  95025. // then
  95026. $async$goto = url.get$scheme() !== "" ? 6 : 8;
  95027. break;
  95028. case 6:
  95029. // then
  95030. t1 = A._Future$value(importer.isNonCanonicalScheme$1(url.get$scheme()), type$.bool);
  95031. $async$goto = 9;
  95032. return A._asyncAwait(t1, $async$_async_import_cache0$_canonicalize$4);
  95033. case 9:
  95034. // returning from await.
  95035. t1 = $async$result;
  95036. passContainingUrl = t1;
  95037. // goto join
  95038. $async$goto = 7;
  95039. break;
  95040. case 8:
  95041. // else
  95042. passContainingUrl = true;
  95043. case 7:
  95044. // join
  95045. // goto join
  95046. $async$goto = 4;
  95047. break;
  95048. case 5:
  95049. // else
  95050. passContainingUrl = false;
  95051. case 4:
  95052. // join
  95053. canonicalizeContext = new A.CanonicalizeContext0(forImport, passContainingUrl ? baseUrl : null);
  95054. t1 = type$.nullable_Object;
  95055. t1 = A.runZoned(new A.AsyncImportCache__canonicalize_closure0(importer, url), A.LinkedHashMap_LinkedHashMap$_literal([B.Symbol__canonicalizeContext, canonicalizeContext], t1, t1), type$.FutureOr_nullable_Uri);
  95056. $async$goto = 10;
  95057. return A._asyncAwait(type$.Future_nullable_Uri._is(t1) ? t1 : A._Future$value(t1, type$.nullable_Uri), $async$_async_import_cache0$_canonicalize$4);
  95058. case 10:
  95059. // returning from await.
  95060. result = $async$result;
  95061. cacheable = !passContainingUrl || !canonicalizeContext._canonicalize_context$_wasContainingUrlAccessed;
  95062. if (result == null) {
  95063. $async$returnValue = new A._Record_2(null, cacheable);
  95064. // goto return
  95065. $async$goto = 1;
  95066. break;
  95067. }
  95068. $async$goto = result.get$scheme() !== "" ? 11 : 13;
  95069. break;
  95070. case 11:
  95071. // then
  95072. t1 = A._Future$value(importer.isNonCanonicalScheme$1(result.get$scheme()), type$.bool);
  95073. $async$goto = 14;
  95074. return A._asyncAwait(t1, $async$_async_import_cache0$_canonicalize$4);
  95075. case 14:
  95076. // returning from await.
  95077. t1 = $async$result;
  95078. // goto join
  95079. $async$goto = 12;
  95080. break;
  95081. case 13:
  95082. // else
  95083. t1 = false;
  95084. case 12:
  95085. // join
  95086. if (t1)
  95087. throw A.wrapException("Importer " + importer.toString$0(0) + " canonicalized " + url.toString$0(0) + " to " + result.toString$0(0) + string$.x2c_whicu);
  95088. $async$returnValue = new A._Record_2(new A._Record_3_originalUrl(importer, result, url), cacheable);
  95089. // goto return
  95090. $async$goto = 1;
  95091. break;
  95092. case 1:
  95093. // return
  95094. return A._asyncReturn($async$returnValue, $async$completer);
  95095. }
  95096. });
  95097. return A._asyncStartSync($async$_async_import_cache0$_canonicalize$4, $async$completer);
  95098. },
  95099. importCanonical$3$originalUrl(importer, canonicalUrl, originalUrl) {
  95100. return this.importCanonical$body$AsyncImportCache0(importer, canonicalUrl, originalUrl);
  95101. },
  95102. importCanonical$body$AsyncImportCache0(importer, canonicalUrl, originalUrl) {
  95103. var $async$goto = 0,
  95104. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Stylesheet_2),
  95105. $async$returnValue, $async$self = this;
  95106. var $async$importCanonical$3$originalUrl = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  95107. if ($async$errorCode === 1)
  95108. return A._asyncRethrow($async$result, $async$completer);
  95109. while (true)
  95110. switch ($async$goto) {
  95111. case 0:
  95112. // Function start
  95113. $async$goto = 3;
  95114. return A._asyncAwait(A.putIfAbsentAsync0($async$self._async_import_cache0$_importCache, canonicalUrl, new A.AsyncImportCache_importCanonical_closure0($async$self, importer, canonicalUrl, originalUrl), type$.Uri, type$.nullable_Stylesheet_2), $async$importCanonical$3$originalUrl);
  95115. case 3:
  95116. // returning from await.
  95117. $async$returnValue = $async$result;
  95118. // goto return
  95119. $async$goto = 1;
  95120. break;
  95121. case 1:
  95122. // return
  95123. return A._asyncReturn($async$returnValue, $async$completer);
  95124. }
  95125. });
  95126. return A._asyncStartSync($async$importCanonical$3$originalUrl, $async$completer);
  95127. },
  95128. humanize$1(canonicalUrl) {
  95129. var t1 = type$.NonNullsIterable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl_2;
  95130. t1 = A.NullableExtension_andThen0(A.minBy(new A.MappedIterable(new A.WhereIterable(new A.NonNullsIterable(this._async_import_cache0$_canonicalizeCache.get$values(0), t1), new A.AsyncImportCache_humanize_closure3(canonicalUrl), t1._eval$1("WhereIterable<Iterable.E>")), new A.AsyncImportCache_humanize_closure4(), t1._eval$1("MappedIterable<Iterable.E,Uri>")), new A.AsyncImportCache_humanize_closure5()), new A.AsyncImportCache_humanize_closure6(canonicalUrl));
  95131. return t1 == null ? canonicalUrl : t1;
  95132. },
  95133. sourceMapUrl$1(_, canonicalUrl) {
  95134. var t1 = this._async_import_cache0$_resultsCache.$index(0, canonicalUrl);
  95135. t1 = t1 == null ? null : t1.get$sourceMapUrl(0);
  95136. return t1 == null ? canonicalUrl : t1;
  95137. }
  95138. };
  95139. A.AsyncImportCache_canonicalize_closure0.prototype = {
  95140. call$0() {
  95141. var $async$goto = 0,
  95142. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl_2),
  95143. $async$returnValue, $async$self = this, t1, t2, _0_0, result;
  95144. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  95145. if ($async$errorCode === 1)
  95146. return A._asyncRethrow($async$result, $async$completer);
  95147. while (true)
  95148. switch ($async$goto) {
  95149. case 0:
  95150. // Function start
  95151. t1 = $async$self.$this;
  95152. t2 = $async$self.baseUrl;
  95153. $async$goto = 3;
  95154. return A._asyncAwait(t1._async_import_cache0$_canonicalize$4($async$self.baseImporter, $async$self.resolvedUrl, t2, $async$self.forImport), $async$call$0);
  95155. case 3:
  95156. // returning from await.
  95157. _0_0 = $async$result;
  95158. result = _0_0._0;
  95159. _0_0._1;
  95160. if (t2 != null)
  95161. t1._async_import_cache0$_nonCanonicalRelativeUrls.$indexSet(0, $async$self.key, $async$self.url);
  95162. $async$returnValue = result;
  95163. // goto return
  95164. $async$goto = 1;
  95165. break;
  95166. case 1:
  95167. // return
  95168. return A._asyncReturn($async$returnValue, $async$completer);
  95169. }
  95170. });
  95171. return A._asyncStartSync($async$call$0, $async$completer);
  95172. },
  95173. $signature: 365
  95174. };
  95175. A.AsyncImportCache__canonicalize_closure0.prototype = {
  95176. call$0() {
  95177. return this.importer.canonicalize$1(0, this.url);
  95178. },
  95179. $signature: 225
  95180. };
  95181. A.AsyncImportCache_importCanonical_closure0.prototype = {
  95182. call$0() {
  95183. var $async$goto = 0,
  95184. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Stylesheet_2),
  95185. $async$returnValue, $async$self = this, t3, t1, t2, result;
  95186. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  95187. if ($async$errorCode === 1)
  95188. return A._asyncRethrow($async$result, $async$completer);
  95189. while (true)
  95190. switch ($async$goto) {
  95191. case 0:
  95192. // Function start
  95193. t1 = $async$self.canonicalUrl;
  95194. t2 = $async$self.importer.load$1(0, t1);
  95195. $async$goto = 3;
  95196. return A._asyncAwait(type$.Future_nullable_ImporterResult._is(t2) ? t2 : A._Future$value(t2, type$.nullable_ImporterResult_2), $async$call$0);
  95197. case 3:
  95198. // returning from await.
  95199. result = $async$result;
  95200. if (result == null) {
  95201. $async$returnValue = null;
  95202. // goto return
  95203. $async$goto = 1;
  95204. break;
  95205. }
  95206. $async$self.$this._async_import_cache0$_resultsCache.$indexSet(0, t1, result);
  95207. t2 = result.contents;
  95208. t3 = result.syntax;
  95209. t1 = $async$self.originalUrl.resolveUri$1(t1);
  95210. $async$returnValue = A.Stylesheet_Stylesheet$parse0(t2, t3, t1);
  95211. // goto return
  95212. $async$goto = 1;
  95213. break;
  95214. case 1:
  95215. // return
  95216. return A._asyncReturn($async$returnValue, $async$completer);
  95217. }
  95218. });
  95219. return A._asyncStartSync($async$call$0, $async$completer);
  95220. },
  95221. $signature: 366
  95222. };
  95223. A.AsyncImportCache_humanize_closure3.prototype = {
  95224. call$1(result) {
  95225. return result._1.$eq(0, this.canonicalUrl);
  95226. },
  95227. $signature: 367
  95228. };
  95229. A.AsyncImportCache_humanize_closure4.prototype = {
  95230. call$1(result) {
  95231. return result._2;
  95232. },
  95233. $signature: 368
  95234. };
  95235. A.AsyncImportCache_humanize_closure5.prototype = {
  95236. call$1(url) {
  95237. return url.get$path(url).length;
  95238. },
  95239. $signature: 87
  95240. };
  95241. A.AsyncImportCache_humanize_closure6.prototype = {
  95242. call$1(url) {
  95243. var t1 = $.$get$url(),
  95244. t2 = this.canonicalUrl;
  95245. return url.resolve$1(0, A.ParsedPath_ParsedPath$parse(t2.get$path(t2), t1.style).get$basename());
  95246. },
  95247. $signature: 50
  95248. };
  95249. A.AtRootQueryParser0.prototype = {
  95250. parse$0(_) {
  95251. return this.wrapSpanFormatException$1(new A.AtRootQueryParser_parse_closure0(this));
  95252. }
  95253. };
  95254. A.AtRootQueryParser_parse_closure0.prototype = {
  95255. call$0() {
  95256. var include, atRules,
  95257. t1 = this.$this,
  95258. t2 = t1.scanner;
  95259. t2.expectChar$1(40);
  95260. t1.whitespace$0();
  95261. include = t1.scanIdentifier$1("with");
  95262. if (!include)
  95263. t1.expectIdentifier$2$name("without", '"with" or "without"');
  95264. t1.whitespace$0();
  95265. t2.expectChar$1(58);
  95266. t1.whitespace$0();
  95267. atRules = A.LinkedHashSet_LinkedHashSet$_empty(type$.String);
  95268. do {
  95269. atRules.add$1(0, t1.identifier$0().toLowerCase());
  95270. t1.whitespace$0();
  95271. } while (t1.lookingAtIdentifier$0());
  95272. t2.expectChar$1(41);
  95273. t2.expectDone$0();
  95274. return new A.AtRootQuery0(include, atRules, atRules.contains$1(0, "all"), atRules.contains$1(0, "rule"));
  95275. },
  95276. $signature: 369
  95277. };
  95278. A.AtRootQuery0.prototype = {
  95279. excludes$1(node) {
  95280. var t1, _this = this;
  95281. if (_this._at_root_query0$_all)
  95282. return !_this.include;
  95283. $label0$0: {
  95284. if (node instanceof A.ModifiableCssStyleRule0) {
  95285. t1 = _this._at_root_query0$_rule !== _this.include;
  95286. break $label0$0;
  95287. }
  95288. if (node instanceof A.ModifiableCssMediaRule0) {
  95289. t1 = _this.excludesName$1("media");
  95290. break $label0$0;
  95291. }
  95292. if (node instanceof A.ModifiableCssSupportsRule0) {
  95293. t1 = _this.excludesName$1("supports");
  95294. break $label0$0;
  95295. }
  95296. if (node instanceof A.ModifiableCssAtRule0) {
  95297. t1 = _this.excludesName$1(node.name.value.toLowerCase());
  95298. break $label0$0;
  95299. }
  95300. t1 = false;
  95301. break $label0$0;
  95302. }
  95303. return t1;
  95304. },
  95305. excludesName$1($name) {
  95306. var t1 = this._at_root_query0$_all || this.names.contains$1(0, $name);
  95307. return t1 !== this.include;
  95308. }
  95309. };
  95310. A.AtRootRule0.prototype = {
  95311. accept$1$1(visitor) {
  95312. return visitor.visitAtRootRule$1(0, this);
  95313. },
  95314. accept$1(visitor) {
  95315. return this.accept$1$1(visitor, type$.dynamic);
  95316. },
  95317. toString$0(_) {
  95318. var buffer = new A.StringBuffer("@at-root "),
  95319. t1 = this.query;
  95320. if (t1 != null)
  95321. buffer._contents = "@at-root " + (t1.toString$0(0) + " ");
  95322. t1 = this.children;
  95323. return buffer.toString$0(0) + " {" + (t1 && B.JSArray_methods).join$1(t1, " ") + "}";
  95324. },
  95325. get$span(receiver) {
  95326. return this.span;
  95327. }
  95328. };
  95329. A.ModifiableCssAtRule0.prototype = {
  95330. accept$1$1(visitor) {
  95331. return visitor.visitCssAtRule$1(this);
  95332. },
  95333. accept$1(visitor) {
  95334. return this.accept$1$1(visitor, type$.dynamic);
  95335. },
  95336. equalsIgnoringChildren$1(other) {
  95337. var t1, t2;
  95338. if (other instanceof A.ModifiableCssAtRule0) {
  95339. t1 = this.name;
  95340. t2 = other.name;
  95341. t1 = t1.$ti._is(t2) && J.$eq$(t2.value, t1.value) && J.$eq$(this.value, other.value) && this.isChildless === other.isChildless;
  95342. } else
  95343. t1 = false;
  95344. return t1;
  95345. },
  95346. copyWithoutChildren$0() {
  95347. var _this = this;
  95348. return A.ModifiableCssAtRule$0(_this.name, _this.span, _this.isChildless, _this.value);
  95349. },
  95350. addChild$1(child) {
  95351. this.super$ModifiableCssParentNode$addChild0(child);
  95352. },
  95353. get$isChildless() {
  95354. return this.isChildless;
  95355. },
  95356. get$span(receiver) {
  95357. return this.span;
  95358. }
  95359. };
  95360. A.AtRule0.prototype = {
  95361. accept$1$1(visitor) {
  95362. return visitor.visitAtRule$1(0, this);
  95363. },
  95364. accept$1(visitor) {
  95365. return this.accept$1$1(visitor, type$.dynamic);
  95366. },
  95367. toString$0(_) {
  95368. var children,
  95369. t1 = "@" + this.name.toString$0(0),
  95370. buffer = new A.StringBuffer(t1),
  95371. t2 = this.value;
  95372. if (t2 != null)
  95373. buffer._contents = t1 + (" " + t2.toString$0(0));
  95374. children = this.children;
  95375. return children == null ? buffer.toString$0(0) + ";" : buffer.toString$0(0) + " {" + B.JSArray_methods.join$1(children, " ") + "}";
  95376. },
  95377. get$span(receiver) {
  95378. return this.span;
  95379. }
  95380. };
  95381. A.AttributeSelector0.prototype = {
  95382. accept$1$1(visitor) {
  95383. return visitor.visitAttributeSelector$1(this);
  95384. },
  95385. accept$1(visitor) {
  95386. return this.accept$1$1(visitor, type$.dynamic);
  95387. },
  95388. $eq(_, other) {
  95389. var _this = this;
  95390. if (other == null)
  95391. return false;
  95392. return other instanceof A.AttributeSelector0 && other.name.$eq(0, _this.name) && other.op == _this.op && other.value == _this.value && other.modifier == _this.modifier;
  95393. },
  95394. get$hashCode(_) {
  95395. var _this = this,
  95396. t1 = _this.name;
  95397. return (B.JSString_methods.get$hashCode(t1.name) ^ J.get$hashCode$(t1.namespace) ^ J.get$hashCode$(_this.op) ^ J.get$hashCode$(_this.value) ^ J.get$hashCode$(_this.modifier)) >>> 0;
  95398. }
  95399. };
  95400. A.AttributeOperator0.prototype = {
  95401. _enumToString$0() {
  95402. return "AttributeOperator." + this._name;
  95403. },
  95404. toString$0(_) {
  95405. return this._attribute0$_text;
  95406. }
  95407. };
  95408. A.BinaryOperationExpression0.prototype = {
  95409. get$span(_) {
  95410. var right,
  95411. left = this.left;
  95412. for (; left instanceof A.BinaryOperationExpression0;)
  95413. left = left.left;
  95414. right = this.right;
  95415. for (; right instanceof A.BinaryOperationExpression0;)
  95416. right = right.right;
  95417. return left.get$span(left).expand$1(0, right.get$span(right));
  95418. },
  95419. get$operatorSpan() {
  95420. var t3, t4,
  95421. t1 = this.left,
  95422. t2 = t1.get$span(t1);
  95423. t2 = t2.get$file(t2);
  95424. t3 = this.right;
  95425. t4 = t3.get$span(t3);
  95426. if (t2 === t4.get$file(t4)) {
  95427. t2 = t1.get$span(t1);
  95428. t2 = t2.get$end(t2);
  95429. t4 = t3.get$span(t3);
  95430. t4 = t2.offset < t4.get$start(t4).offset;
  95431. t2 = t4;
  95432. } else
  95433. t2 = false;
  95434. if (t2) {
  95435. t2 = t1.get$span(t1);
  95436. t2 = t2.get$file(t2);
  95437. t1 = t1.get$span(t1);
  95438. t1 = t1.get$end(t1);
  95439. t3 = t3.get$span(t3);
  95440. t3 = A.SpanExtensions_trimRight0(A.SpanExtensions_trimLeft0(t2.span$2(0, t1.offset, t3.get$start(t3).offset)));
  95441. t1 = t3;
  95442. } else
  95443. t1 = this.get$span(0);
  95444. return t1;
  95445. },
  95446. accept$1$1(visitor) {
  95447. return visitor.visitBinaryOperationExpression$1(0, this);
  95448. },
  95449. accept$1(visitor) {
  95450. return this.accept$1$1(visitor, type$.dynamic);
  95451. },
  95452. toString$0(_) {
  95453. var t1, t2, right, t3, operator, _this = this,
  95454. _0_0 = _this.left;
  95455. $label0$0: {
  95456. if (_0_0 instanceof A.BinaryOperationExpression0) {
  95457. t1 = _0_0.operator.precedence < _this.operator.precedence;
  95458. break $label0$0;
  95459. }
  95460. if (_0_0 instanceof A.ListExpression0 && !_0_0.hasBrackets && _0_0.contents.length >= 2) {
  95461. t1 = true;
  95462. break $label0$0;
  95463. }
  95464. t1 = false;
  95465. break $label0$0;
  95466. }
  95467. t2 = t1 ? "" + A.Primitives_stringFromCharCode(40) : "";
  95468. t2 += _0_0.toString$0(0);
  95469. t1 = t1 ? t2 + A.Primitives_stringFromCharCode(41) : t2;
  95470. t2 = _this.operator;
  95471. t1 = t1 + A.Primitives_stringFromCharCode(32) + t2.operator + A.Primitives_stringFromCharCode(32);
  95472. right = _this.right;
  95473. $label1$1: {
  95474. t3 = false;
  95475. if (right instanceof A.BinaryOperationExpression0) {
  95476. operator = right.operator;
  95477. if (operator.precedence <= t2.precedence) {
  95478. t3 = !(operator === t2 && operator.isAssociative);
  95479. t2 = t3;
  95480. } else
  95481. t2 = t3;
  95482. break $label1$1;
  95483. }
  95484. if (right instanceof A.ListExpression0 && !right.hasBrackets && right.contents.length >= 2) {
  95485. t2 = true;
  95486. break $label1$1;
  95487. }
  95488. t2 = t3;
  95489. break $label1$1;
  95490. }
  95491. if (t2)
  95492. t1 += A.Primitives_stringFromCharCode(40);
  95493. t1 += right.toString$0(0);
  95494. if (t2)
  95495. t1 += A.Primitives_stringFromCharCode(41);
  95496. return t1.charCodeAt(0) == 0 ? t1 : t1;
  95497. }
  95498. };
  95499. A.BinaryOperator0.prototype = {
  95500. _enumToString$0() {
  95501. return "BinaryOperator." + this._name;
  95502. },
  95503. toString$0(_) {
  95504. return this.name;
  95505. }
  95506. };
  95507. A.BooleanExpression0.prototype = {
  95508. accept$1$1(visitor) {
  95509. return visitor.visitBooleanExpression$1(0, this);
  95510. },
  95511. accept$1(visitor) {
  95512. return this.accept$1$1(visitor, type$.dynamic);
  95513. },
  95514. toString$0(_) {
  95515. return String(this.value);
  95516. },
  95517. get$span(receiver) {
  95518. return this.span;
  95519. }
  95520. };
  95521. A.booleanClass_closure.prototype = {
  95522. call$0() {
  95523. var t1 = type$.JSClass,
  95524. jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.SassBoolean", new A.booleanClass__closure()));
  95525. A.JSClassExtension_injectSuperclass(t1._as(B.SassBoolean_true0.constructor), jsClass);
  95526. return jsClass;
  95527. },
  95528. $signature: 16
  95529. };
  95530. A.booleanClass__closure.prototype = {
  95531. call$2($self, _) {
  95532. A.jsThrow(new self.Error("new sass.SassBoolean() isn't allowed.\nUse sass.sassTrue or sass.sassFalse instead."));
  95533. },
  95534. call$1($self) {
  95535. return this.call$2($self, null);
  95536. },
  95537. "call*": "call$2",
  95538. $requiredArgCount: 1,
  95539. $defaultValues() {
  95540. return [null];
  95541. },
  95542. $signature: 197
  95543. };
  95544. A.legacyBooleanClass_closure.prototype = {
  95545. call$0() {
  95546. var t1 = type$.JSClass,
  95547. jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.types.Boolean", new A.legacyBooleanClass__closure()));
  95548. J.get$$prototype$x(jsClass).getValue = A.allowInteropCaptureThisNamed("getValue", new A.legacyBooleanClass__closure0());
  95549. jsClass.TRUE = B.SassBoolean_true0;
  95550. jsClass.FALSE = B.SassBoolean_false0;
  95551. A.JSClassExtension_injectSuperclass(t1._as(B.SassBoolean_true0.constructor), jsClass);
  95552. return jsClass;
  95553. },
  95554. $signature: 16
  95555. };
  95556. A.legacyBooleanClass__closure.prototype = {
  95557. call$2(_, __) {
  95558. throw A.wrapException("new sass.types.Boolean() isn't allowed.\nUse sass.types.Boolean.TRUE or sass.types.Boolean.FALSE instead.");
  95559. },
  95560. call$1(_) {
  95561. return this.call$2(_, null);
  95562. },
  95563. "call*": "call$2",
  95564. $requiredArgCount: 1,
  95565. $defaultValues() {
  95566. return [null];
  95567. },
  95568. $signature: 198
  95569. };
  95570. A.legacyBooleanClass__closure0.prototype = {
  95571. call$1($self) {
  95572. return $self === B.SassBoolean_true0;
  95573. },
  95574. $signature: 76
  95575. };
  95576. A.SassBoolean0.prototype = {
  95577. get$isTruthy() {
  95578. return this.value;
  95579. },
  95580. accept$1$1(visitor) {
  95581. return visitor._serialize0$_buffer.write$1(0, String(this.value));
  95582. },
  95583. accept$1(visitor) {
  95584. return this.accept$1$1(visitor, type$.dynamic);
  95585. },
  95586. assertBoolean$1($name) {
  95587. return this;
  95588. },
  95589. unaryNot$0() {
  95590. return this.value ? B.SassBoolean_false0 : B.SassBoolean_true0;
  95591. }
  95592. };
  95593. A.Box0.prototype = {
  95594. $eq(_, other) {
  95595. if (other == null)
  95596. return false;
  95597. return this.$ti._is(other) && other._box0$_inner === this._box0$_inner;
  95598. },
  95599. get$hashCode(_) {
  95600. return A.Primitives_objectHashCode(this._box0$_inner);
  95601. }
  95602. };
  95603. A.ModifiableBox0.prototype = {};
  95604. A.BuiltInCallable0.prototype = {
  95605. callbackFor$2(positional, names) {
  95606. var t1, t2, fuzzyMatch, minMismatchDistance, _i, overload, t3, mismatchDistance, t4;
  95607. for (t1 = this._built_in$_overloads, t2 = t1.length, fuzzyMatch = null, minMismatchDistance = null, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
  95608. overload = t1[_i];
  95609. t3 = overload._0;
  95610. if (t3.matches$2(positional, names))
  95611. return overload;
  95612. mismatchDistance = t3.$arguments.length - positional;
  95613. if (minMismatchDistance != null) {
  95614. t3 = Math.abs(mismatchDistance);
  95615. t4 = Math.abs(minMismatchDistance);
  95616. if (t3 > t4)
  95617. continue;
  95618. if (t3 === t4 && mismatchDistance < 0)
  95619. continue;
  95620. }
  95621. minMismatchDistance = mismatchDistance;
  95622. fuzzyMatch = overload;
  95623. }
  95624. if (fuzzyMatch != null)
  95625. return fuzzyMatch;
  95626. throw A.wrapException(A.StateError$("BuiltInCallable " + this.name + " may not have empty overloads."));
  95627. },
  95628. withName$1($name) {
  95629. return new A.BuiltInCallable0($name, this._built_in$_overloads, this.acceptsContent);
  95630. },
  95631. withDeprecationWarning$2(module, newName) {
  95632. var t2, t3, _i, t4, t5, _this = this,
  95633. t1 = A._setArrayType([], type$.JSArray_Record_2_ArgumentDeclaration_and_Value_Function_List_Value_2);
  95634. for (t2 = _this._built_in$_overloads, t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, A.throwConcurrentModificationError)(t2), ++_i) {
  95635. t4 = {};
  95636. t5 = t2[_i];
  95637. t4.$function = null;
  95638. t4.$function = t5._1;
  95639. t1.push(new A._Record_2(t5._0, new A.BuiltInCallable_withDeprecationWarning_closure0(t4, _this, module, newName)));
  95640. }
  95641. return new A.BuiltInCallable0(_this.name, t1, _this.acceptsContent);
  95642. },
  95643. withDeprecationWarning$1(module) {
  95644. return this.withDeprecationWarning$2(module, null);
  95645. },
  95646. $isAsyncCallable0: 1,
  95647. $isAsyncBuiltInCallable0: 1,
  95648. $isCallable: 1,
  95649. get$name(receiver) {
  95650. return this.name;
  95651. },
  95652. get$acceptsContent() {
  95653. return this.acceptsContent;
  95654. }
  95655. };
  95656. A.BuiltInCallable$mixin_closure0.prototype = {
  95657. call$1($arguments) {
  95658. this.callback.call$1($arguments);
  95659. return B.C__SassNull0;
  95660. },
  95661. $signature: 3
  95662. };
  95663. A.BuiltInCallable_withDeprecationWarning_closure0.prototype = {
  95664. call$1(args) {
  95665. var _this = this,
  95666. t1 = _this.newName;
  95667. if (t1 == null)
  95668. t1 = _this.$this.name;
  95669. A.warnForDeprecation0(string$.Global + _this.module + "." + t1 + string$.x20inste, B.Deprecation_Q5r);
  95670. return _this._box_0.$function.call$1(args);
  95671. },
  95672. $signature: 3
  95673. };
  95674. A.BuiltInModule0.prototype = {
  95675. get$upstream() {
  95676. return B.List_empty19;
  95677. },
  95678. get$variableNodes() {
  95679. return B.Map_empty12;
  95680. },
  95681. get$extensionStore() {
  95682. return B.C_EmptyExtensionStore0;
  95683. },
  95684. get$css(_) {
  95685. return new A.CssStylesheet0(B.List_empty17, A.SourceFile$decoded(B.List_empty4, this.url).span$2(0, 0, 0));
  95686. },
  95687. get$preModuleComments() {
  95688. return B.Map_empty11;
  95689. },
  95690. get$transitivelyContainsCss() {
  95691. return false;
  95692. },
  95693. get$transitivelyContainsExtensions() {
  95694. return false;
  95695. },
  95696. setVariable$3($name, value, nodeWithSpan) {
  95697. if (!this.variables.containsKey$1($name))
  95698. throw A.wrapException(A.SassScriptException$0("Undefined variable.", null));
  95699. throw A.wrapException(A.SassScriptException$0("Cannot modify built-in variable.", null));
  95700. },
  95701. variableIdentity$1($name) {
  95702. return this;
  95703. },
  95704. cloneCss$0() {
  95705. return this;
  95706. },
  95707. $isModule1: 1,
  95708. get$url(receiver) {
  95709. return this.url;
  95710. },
  95711. get$functions(receiver) {
  95712. return this.functions;
  95713. },
  95714. get$mixins() {
  95715. return this.mixins;
  95716. },
  95717. get$variables() {
  95718. return this.variables;
  95719. }
  95720. };
  95721. A.calculationClass_closure.prototype = {
  95722. call$0() {
  95723. var t1 = type$.JSClass,
  95724. jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.SassCalculation", new A.calculationClass__closure())),
  95725. t2 = type$.String,
  95726. t3 = type$.Function;
  95727. A.LinkedHashMap_LinkedHashMap$_literal(["calc", new A.calculationClass__closure0(), "min", new A.calculationClass__closure1(), "max", new A.calculationClass__closure2(), "clamp", new A.calculationClass__closure3()], t2, t3).forEach$1(0, A.JSClassExtension_get_defineStaticMethod(jsClass));
  95728. A.LinkedHashMap_LinkedHashMap$_literal(["assertCalculation", new A.calculationClass__closure4()], t2, t3).forEach$1(0, A.JSClassExtension_get_defineMethod(jsClass));
  95729. A.LinkedHashMap_LinkedHashMap$_literal(["arguments", new A.calculationClass__closure5()], t2, t3).forEach$1(0, A.JSClassExtension_get_defineGetter(jsClass));
  95730. A.JSClassExtension_injectSuperclass(t1._as(new A.SassCalculation0("calc", A.List_List$unmodifiable(A._setArrayType([A.SassNumber_SassNumber0(1, null)], type$.JSArray_Object), type$.Object)).constructor), jsClass);
  95731. return jsClass;
  95732. },
  95733. $signature: 16
  95734. };
  95735. A.calculationClass__closure.prototype = {
  95736. call$2($self, _) {
  95737. A.jsThrow0(new self.Error("new sass.SassCalculation() isn't allowed"));
  95738. },
  95739. call$1($self) {
  95740. return this.call$2($self, null);
  95741. },
  95742. "call*": "call$2",
  95743. $requiredArgCount: 1,
  95744. $defaultValues() {
  95745. return [null];
  95746. },
  95747. $signature: 197
  95748. };
  95749. A.calculationClass__closure0.prototype = {
  95750. call$1(argument) {
  95751. A._assertCalculationValue(argument);
  95752. return new A.SassCalculation0("calc", A.List_List$unmodifiable(A._setArrayType([argument], type$.JSArray_Object), type$.Object));
  95753. },
  95754. $signature: 115
  95755. };
  95756. A.calculationClass__closure1.prototype = {
  95757. call$1($arguments) {
  95758. var t1 = self.immutable.isOrderedMap($arguments) ? J.toArray$0$x(type$.ImmutableList_2._as($arguments)) : type$.List_dynamic._as($arguments),
  95759. t2 = type$.Object,
  95760. argList = J.cast$1$0$ax(t1, t2);
  95761. argList.forEach$1(argList, A.calculation1___assertCalculationValue$closure());
  95762. return new A.SassCalculation0("min", A.List_List$unmodifiable(argList, t2));
  95763. },
  95764. $signature: 115
  95765. };
  95766. A.calculationClass__closure2.prototype = {
  95767. call$1($arguments) {
  95768. var t1 = self.immutable.isOrderedMap($arguments) ? J.toArray$0$x(type$.ImmutableList_2._as($arguments)) : type$.List_dynamic._as($arguments),
  95769. t2 = type$.Object,
  95770. argList = J.cast$1$0$ax(t1, t2);
  95771. argList.forEach$1(argList, A.calculation1___assertCalculationValue$closure());
  95772. return new A.SassCalculation0("max", A.List_List$unmodifiable(argList, t2));
  95773. },
  95774. $signature: 115
  95775. };
  95776. A.calculationClass__closure3.prototype = {
  95777. call$3(min, value, max) {
  95778. var t1;
  95779. if (!(value == null && !A._isValidClampArg(min)))
  95780. t1 = max == null && !B.JSArray_methods.any$1([min, value], A.calculation1___isValidClampArg$closure());
  95781. else
  95782. t1 = true;
  95783. if (t1)
  95784. A.jsThrow0(new self.Error("Expected at least one SassString or CalculationInterpolation in `" + new A.NonNullsIterable([min, value, max], type$.NonNullsIterable_Object).toString$0(0) + "`"));
  95785. t1 = type$.NonNullsIterable_Object;
  95786. new A.NonNullsIterable([min, value, max], t1).forEach$1(0, A.calculation1___assertCalculationValue$closure());
  95787. return new A.SassCalculation0("clamp", A.List_List$unmodifiable(new A.NonNullsIterable([min, value, max], t1), type$.Object));
  95788. },
  95789. call$1(min) {
  95790. return this.call$3(min, null, null);
  95791. },
  95792. call$2(min, value) {
  95793. return this.call$3(min, value, null);
  95794. },
  95795. "call*": "call$3",
  95796. $requiredArgCount: 1,
  95797. $defaultValues() {
  95798. return [null, null];
  95799. },
  95800. $signature: 374
  95801. };
  95802. A.calculationClass__closure4.prototype = {
  95803. call$2($self, $name) {
  95804. return $self;
  95805. },
  95806. call$1($self) {
  95807. return this.call$2($self, null);
  95808. },
  95809. "call*": "call$2",
  95810. $requiredArgCount: 1,
  95811. $defaultValues() {
  95812. return [null];
  95813. },
  95814. $signature: 375
  95815. };
  95816. A.calculationClass__closure5.prototype = {
  95817. call$1($self) {
  95818. return new self.immutable.List($self.$arguments);
  95819. },
  95820. $signature: 376
  95821. };
  95822. A.calculationOperationClass_closure.prototype = {
  95823. call$0() {
  95824. var t1 = type$.JSClass,
  95825. jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.CalculationOperation", new A.calculationOperationClass__closure())),
  95826. t2 = type$.String,
  95827. t3 = type$.Function;
  95828. A.LinkedHashMap_LinkedHashMap$_literal(["equals", new A.calculationOperationClass__closure0(), "hashCode", new A.calculationOperationClass__closure1()], t2, t3).forEach$1(0, A.JSClassExtension_get_defineMethod(jsClass));
  95829. A.LinkedHashMap_LinkedHashMap$_literal(["operator", new A.calculationOperationClass__closure2(), "left", new A.calculationOperationClass__closure3(), "right", new A.calculationOperationClass__closure4()], t2, t3).forEach$1(0, A.JSClassExtension_get_defineGetter(jsClass));
  95830. A.JSClassExtension_injectSuperclass(t1._as(A.SassCalculation_operateInternal0(B.CalculationOperator_g2q0, A.SassNumber_SassNumber0(1, null), A.SassNumber_SassNumber0(1, null), false, false).constructor), jsClass);
  95831. return jsClass;
  95832. },
  95833. $signature: 16
  95834. };
  95835. A.calculationOperationClass__closure.prototype = {
  95836. call$4($self, strOperator, left, right) {
  95837. var operator = A.IterableExtension_firstWhereOrNull(B.List_kUZ, new A.calculationOperationClass___closure(strOperator));
  95838. if (operator == null)
  95839. A.jsThrow0(new self.Error("Invalid operator: " + strOperator));
  95840. A._assertCalculationValue(left);
  95841. A._assertCalculationValue(right);
  95842. return A.SassCalculation_operateInternal0(operator, left, right, false, false);
  95843. },
  95844. "call*": "call$4",
  95845. $requiredArgCount: 4,
  95846. $signature: 377
  95847. };
  95848. A.calculationOperationClass___closure.prototype = {
  95849. call$1(value) {
  95850. return value.operator === this.strOperator;
  95851. },
  95852. $signature: 378
  95853. };
  95854. A.calculationOperationClass__closure0.prototype = {
  95855. call$2($self, other) {
  95856. return $self.$eq(0, other);
  95857. },
  95858. $signature: 379
  95859. };
  95860. A.calculationOperationClass__closure1.prototype = {
  95861. call$1($self) {
  95862. return $self.get$hashCode(0);
  95863. },
  95864. $signature: 380
  95865. };
  95866. A.calculationOperationClass__closure2.prototype = {
  95867. call$1($self) {
  95868. return $self._calculation0$_operator.operator;
  95869. },
  95870. $signature: 381
  95871. };
  95872. A.calculationOperationClass__closure3.prototype = {
  95873. call$1($self) {
  95874. return $self._calculation0$_left;
  95875. },
  95876. $signature: 201
  95877. };
  95878. A.calculationOperationClass__closure4.prototype = {
  95879. call$1($self) {
  95880. return $self._calculation0$_right;
  95881. },
  95882. $signature: 201
  95883. };
  95884. A.calculationInterpolationClass_closure.prototype = {
  95885. call$0() {
  95886. var t1 = type$.JSClass,
  95887. jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.CalculationInterpolation", new A.calculationInterpolationClass__closure())),
  95888. t2 = type$.String,
  95889. t3 = type$.Function;
  95890. A.LinkedHashMap_LinkedHashMap$_literal(["equals", new A.calculationInterpolationClass__closure0(), "hashCode", new A.calculationInterpolationClass__closure1()], t2, t3).forEach$1(0, A.JSClassExtension_get_defineMethod(jsClass));
  95891. A.LinkedHashMap_LinkedHashMap$_literal(["value", new A.calculationInterpolationClass__closure2()], t2, t3).forEach$1(0, A.JSClassExtension_get_defineGetter(jsClass));
  95892. A.JSClassExtension_injectSuperclass(t1._as(new A.CalculationInterpolation("").constructor), jsClass);
  95893. return jsClass;
  95894. },
  95895. $signature: 16
  95896. };
  95897. A.calculationInterpolationClass__closure.prototype = {
  95898. call$2($self, value) {
  95899. return new A.CalculationInterpolation(value);
  95900. },
  95901. $signature: 383
  95902. };
  95903. A.calculationInterpolationClass__closure0.prototype = {
  95904. call$2($self, other) {
  95905. return other instanceof A.CalculationInterpolation && $self._calculation0$_value === other._calculation0$_value;
  95906. },
  95907. $signature: 384
  95908. };
  95909. A.calculationInterpolationClass__closure1.prototype = {
  95910. call$1($self) {
  95911. return B.JSString_methods.get$hashCode($self._calculation0$_value);
  95912. },
  95913. $signature: 385
  95914. };
  95915. A.calculationInterpolationClass__closure2.prototype = {
  95916. call$1($self) {
  95917. return $self._calculation0$_value;
  95918. },
  95919. $signature: 386
  95920. };
  95921. A.SassCalculation0.prototype = {
  95922. get$isSpecialNumber() {
  95923. return true;
  95924. },
  95925. accept$1$1(visitor) {
  95926. return visitor.visitCalculation$1(this);
  95927. },
  95928. accept$1(visitor) {
  95929. return this.accept$1$1(visitor, type$.dynamic);
  95930. },
  95931. assertCalculation$1($name) {
  95932. return this;
  95933. },
  95934. plus$1(other) {
  95935. if (other instanceof A.SassString0)
  95936. return this.super$Value$plus0(other);
  95937. throw A.wrapException(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " + " + other.toString$0(0) + '".', null));
  95938. },
  95939. minus$1(other) {
  95940. return A.throwExpression(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " - " + other.toString$0(0) + '".', null));
  95941. },
  95942. unaryPlus$0() {
  95943. return A.throwExpression(A.SassScriptException$0('Undefined operation "+' + this.toString$0(0) + '".', null));
  95944. },
  95945. unaryMinus$0() {
  95946. return A.throwExpression(A.SassScriptException$0('Undefined operation "-' + this.toString$0(0) + '".', null));
  95947. },
  95948. $eq(_, other) {
  95949. if (other == null)
  95950. return false;
  95951. return other instanceof A.SassCalculation0 && this.name === other.name && B.C_ListEquality.equals$2(0, this.$arguments, other.$arguments);
  95952. },
  95953. get$hashCode(_) {
  95954. return B.JSString_methods.get$hashCode(this.name) ^ B.C_ListEquality0.hash$1(this.$arguments);
  95955. }
  95956. };
  95957. A.SassCalculation__verifyLength_closure0.prototype = {
  95958. call$1(arg) {
  95959. return arg instanceof A.SassString0;
  95960. },
  95961. $signature: 76
  95962. };
  95963. A.CalculationOperation0.prototype = {
  95964. $eq(_, other) {
  95965. if (other == null)
  95966. return false;
  95967. return other instanceof A.CalculationOperation0 && this._calculation0$_operator === other._calculation0$_operator && J.$eq$(this._calculation0$_left, other._calculation0$_left) && J.$eq$(this._calculation0$_right, other._calculation0$_right);
  95968. },
  95969. get$hashCode(_) {
  95970. return (A.Primitives_objectHashCode(this._calculation0$_operator) ^ J.get$hashCode$(this._calculation0$_left) ^ J.get$hashCode$(this._calculation0$_right)) >>> 0;
  95971. },
  95972. toString$0(_) {
  95973. var parenthesized = A.serializeValue0(new A.SassCalculation0("", A._setArrayType([this], type$.JSArray_Object)), true, true);
  95974. return B.JSString_methods.substring$2(parenthesized, 1, parenthesized.length - 1);
  95975. }
  95976. };
  95977. A.CalculationOperator0.prototype = {
  95978. _enumToString$0() {
  95979. return "CalculationOperator." + this._name;
  95980. },
  95981. toString$0(_) {
  95982. return this.name;
  95983. }
  95984. };
  95985. A.CalculationInterpolation.prototype = {
  95986. $eq(_, other) {
  95987. if (other == null)
  95988. return false;
  95989. return other instanceof A.CalculationInterpolation && this._calculation0$_value === other._calculation0$_value;
  95990. },
  95991. get$hashCode(_) {
  95992. return B.JSString_methods.get$hashCode(this._calculation0$_value);
  95993. },
  95994. toString$0(_) {
  95995. return this._calculation0$_value;
  95996. }
  95997. };
  95998. A.CallableDeclaration0.prototype = {
  95999. get$span(receiver) {
  96000. return this.span;
  96001. }
  96002. };
  96003. A.updateCanonicalizeContextPrototype_closure.prototype = {
  96004. call$1($self) {
  96005. return $self._canonicalize_context$_fromImport;
  96006. },
  96007. $signature: 387
  96008. };
  96009. A.updateCanonicalizeContextPrototype_closure0.prototype = {
  96010. call$1($self) {
  96011. $self._canonicalize_context$_wasContainingUrlAccessed = true;
  96012. return A.NullableExtension_andThen0($self._canonicalize_context$_containingUrl, A.utils3__dartToJSUrl$closure());
  96013. },
  96014. $signature: 388
  96015. };
  96016. A.CanonicalizeContext0.prototype = {
  96017. withFromImport$1$2(fromImport, callback) {
  96018. var t1,
  96019. oldFromImport = this._canonicalize_context$_fromImport;
  96020. this._canonicalize_context$_fromImport = true;
  96021. try {
  96022. t1 = callback.call$0();
  96023. return t1;
  96024. } finally {
  96025. this._canonicalize_context$_fromImport = oldFromImport;
  96026. }
  96027. },
  96028. withFromImport$2(fromImport, callback) {
  96029. return this.withFromImport$1$2(fromImport, callback, type$.dynamic);
  96030. }
  96031. };
  96032. A.ColorChannel0.prototype = {
  96033. isAnalogous$1(other) {
  96034. var _0_6_isSet, t1, _0_60, t2, _0_6_isSet0,
  96035. _0_1 = this.name,
  96036. _0_6 = other.name;
  96037. $label0$0: {
  96038. if ("red" !== _0_1)
  96039. _0_6_isSet = "x" === _0_1;
  96040. else
  96041. _0_6_isSet = true;
  96042. if (_0_6_isSet) {
  96043. if ("red" !== _0_6)
  96044. t1 = "x" === _0_6;
  96045. else
  96046. t1 = true;
  96047. _0_60 = _0_6;
  96048. } else {
  96049. _0_60 = null;
  96050. t1 = false;
  96051. }
  96052. t2 = true;
  96053. if (!t1) {
  96054. if ("green" !== _0_1)
  96055. t1 = "y" === _0_1;
  96056. else
  96057. t1 = true;
  96058. if (t1) {
  96059. _0_6_isSet0 = true;
  96060. if (_0_6_isSet)
  96061. t1 = _0_60;
  96062. else {
  96063. t1 = _0_6;
  96064. _0_6_isSet = _0_6_isSet0;
  96065. _0_60 = t1;
  96066. }
  96067. if ("green" !== t1) {
  96068. if (_0_6_isSet)
  96069. t1 = _0_60;
  96070. else {
  96071. t1 = _0_6;
  96072. _0_6_isSet = _0_6_isSet0;
  96073. _0_60 = t1;
  96074. }
  96075. t1 = "y" === t1;
  96076. } else
  96077. t1 = true;
  96078. } else
  96079. t1 = false;
  96080. if (!t1) {
  96081. if ("blue" !== _0_1)
  96082. t1 = "z" === _0_1;
  96083. else
  96084. t1 = true;
  96085. if (t1) {
  96086. _0_6_isSet0 = true;
  96087. if (_0_6_isSet)
  96088. t1 = _0_60;
  96089. else {
  96090. t1 = _0_6;
  96091. _0_6_isSet = _0_6_isSet0;
  96092. _0_60 = t1;
  96093. }
  96094. if ("blue" !== t1) {
  96095. if (_0_6_isSet)
  96096. t1 = _0_60;
  96097. else {
  96098. t1 = _0_6;
  96099. _0_6_isSet = _0_6_isSet0;
  96100. _0_60 = t1;
  96101. }
  96102. t1 = "z" === t1;
  96103. } else
  96104. t1 = true;
  96105. } else
  96106. t1 = false;
  96107. if (!t1) {
  96108. if ("chroma" !== _0_1)
  96109. t1 = "saturation" === _0_1;
  96110. else
  96111. t1 = true;
  96112. if (t1) {
  96113. _0_6_isSet0 = true;
  96114. if (_0_6_isSet)
  96115. t1 = _0_60;
  96116. else {
  96117. t1 = _0_6;
  96118. _0_6_isSet = _0_6_isSet0;
  96119. _0_60 = t1;
  96120. }
  96121. if ("chroma" !== t1) {
  96122. if (_0_6_isSet)
  96123. t1 = _0_60;
  96124. else {
  96125. t1 = _0_6;
  96126. _0_6_isSet = _0_6_isSet0;
  96127. _0_60 = t1;
  96128. }
  96129. t1 = "saturation" === t1;
  96130. } else
  96131. t1 = true;
  96132. } else
  96133. t1 = false;
  96134. if (!t1) {
  96135. if ("lightness" === _0_1) {
  96136. if (_0_6_isSet)
  96137. t1 = _0_60;
  96138. else {
  96139. t1 = _0_6;
  96140. _0_60 = t1;
  96141. _0_6_isSet = true;
  96142. }
  96143. t1 = "lightness" === t1;
  96144. } else
  96145. t1 = false;
  96146. if (!t1)
  96147. if ("hue" === _0_1)
  96148. t1 = "hue" === (_0_6_isSet ? _0_60 : _0_6);
  96149. else
  96150. t1 = false;
  96151. else
  96152. t1 = t2;
  96153. } else
  96154. t1 = t2;
  96155. } else
  96156. t1 = t2;
  96157. } else
  96158. t1 = t2;
  96159. } else
  96160. t1 = t2;
  96161. if (t1)
  96162. break $label0$0;
  96163. break $label0$0;
  96164. }
  96165. return t1;
  96166. }
  96167. };
  96168. A.LinearChannel0.prototype = {};
  96169. A.Chokidar0.prototype = {};
  96170. A.ChokidarOptions0.prototype = {};
  96171. A.ChokidarWatcher0.prototype = {};
  96172. A.ClassSelector0.prototype = {
  96173. $eq(_, other) {
  96174. if (other == null)
  96175. return false;
  96176. return other instanceof A.ClassSelector0 && other.name === this.name;
  96177. },
  96178. accept$1$1(visitor) {
  96179. return visitor.visitClassSelector$1(this);
  96180. },
  96181. accept$1(visitor) {
  96182. return this.accept$1$1(visitor, type$.dynamic);
  96183. },
  96184. addSuffix$1(suffix) {
  96185. return new A.ClassSelector0(this.name + suffix, this.span);
  96186. },
  96187. get$hashCode(_) {
  96188. return B.JSString_methods.get$hashCode(this.name);
  96189. }
  96190. };
  96191. A.ClipGamutMap0.prototype = {
  96192. map$1(_, color) {
  96193. var t1 = color._color0$_space,
  96194. t2 = t1._space$_channels;
  96195. return A.SassColor_SassColor$forSpaceInternal0(t1, this._clip$_clampChannel$2(color.channel0OrNull, t2[0]), this._clip$_clampChannel$2(color.channel1OrNull, t2[1]), this._clip$_clampChannel$2(color.channel2OrNull, t2[2]), color.alphaOrNull);
  96196. },
  96197. _clip$_clampChannel$2(value, channel) {
  96198. var t1, min;
  96199. if (value == null)
  96200. t1 = null;
  96201. else
  96202. $label0$0: {
  96203. if (channel instanceof A.LinearChannel0) {
  96204. min = channel.min;
  96205. t1 = isNaN(value) ? min : B.JSNumber_methods.clamp$2(value, min, channel.max);
  96206. break $label0$0;
  96207. }
  96208. t1 = value;
  96209. break $label0$0;
  96210. }
  96211. return t1;
  96212. }
  96213. };
  96214. A._CloneCssVisitor0.prototype = {
  96215. visitCssAtRule$1(node) {
  96216. var t1 = node.isChildless,
  96217. rule = A.ModifiableCssAtRule$0(node.name, node.span, t1, node.value);
  96218. return t1 ? rule : this._clone_css$_visitChildren$2(rule, node);
  96219. },
  96220. visitCssComment$1(node) {
  96221. return new A.ModifiableCssComment0(node.text, node.span);
  96222. },
  96223. visitCssDeclaration$1(node) {
  96224. return A.ModifiableCssDeclaration$0(node.name, node.value, node.span, null, node.parsedAsCustomProperty, null, node.valueSpanForMap);
  96225. },
  96226. visitCssImport$1(node) {
  96227. return new A.ModifiableCssImport0(node.url, node.modifiers, node.span);
  96228. },
  96229. visitCssKeyframeBlock$1(node) {
  96230. return this._clone_css$_visitChildren$2(A.ModifiableCssKeyframeBlock$0(node.selector, node.span), node);
  96231. },
  96232. visitCssMediaRule$1(node) {
  96233. return this._clone_css$_visitChildren$2(A.ModifiableCssMediaRule$0(node.queries, node.span), node);
  96234. },
  96235. visitCssStyleRule$1(node) {
  96236. var _0_0 = this._clone_css$_oldToNewSelectors.$index(0, node._style_rule0$_selector._box0$_inner.value);
  96237. if (_0_0 != null)
  96238. return this._clone_css$_visitChildren$2(A.ModifiableCssStyleRule$0(_0_0, node.span, false, node.originalSelector), node);
  96239. else
  96240. throw A.wrapException(A.StateError$(string$.The_Ex));
  96241. },
  96242. visitCssStylesheet$1(node) {
  96243. return this._clone_css$_visitChildren$2(A.ModifiableCssStylesheet$0(node.get$span(node)), node);
  96244. },
  96245. visitCssSupportsRule$1(node) {
  96246. return this._clone_css$_visitChildren$2(A.ModifiableCssSupportsRule$0(node.condition, node.span), node);
  96247. },
  96248. _clone_css$_visitChildren$1$2(newParent, oldParent) {
  96249. var t1, t2, newChild;
  96250. for (t1 = J.get$iterator$ax(oldParent.get$children(oldParent)); t1.moveNext$0();) {
  96251. t2 = t1.get$current(t1);
  96252. newChild = t2.accept$1(this);
  96253. newChild.isGroupEnd = t2.get$isGroupEnd();
  96254. newParent.addChild$1(newChild);
  96255. }
  96256. return newParent;
  96257. },
  96258. _clone_css$_visitChildren$2(newParent, oldParent) {
  96259. return this._clone_css$_visitChildren$1$2(newParent, oldParent, type$.ModifiableCssParentNode_2);
  96260. }
  96261. };
  96262. A.ColorExpression0.prototype = {
  96263. accept$1$1(visitor) {
  96264. return visitor.visitColorExpression$1(0, this);
  96265. },
  96266. accept$1(visitor) {
  96267. return this.accept$1$1(visitor, type$.dynamic);
  96268. },
  96269. toString$0(_) {
  96270. return A.serializeValue0(this.value, true, true);
  96271. },
  96272. get$span(receiver) {
  96273. return this.span;
  96274. }
  96275. };
  96276. A.global_closure44.prototype = {
  96277. call$1(color) {
  96278. return B.JSNumber_methods.round$0(color._color0$_legacyChannel$2(B.RgbColorSpace_mlz0, "red"));
  96279. },
  96280. $signature: 40
  96281. };
  96282. A.global_closure45.prototype = {
  96283. call$1(color) {
  96284. return B.JSNumber_methods.round$0(color._color0$_legacyChannel$2(B.RgbColorSpace_mlz0, "green"));
  96285. },
  96286. $signature: 40
  96287. };
  96288. A.global_closure46.prototype = {
  96289. call$1(color) {
  96290. return B.JSNumber_methods.round$0(color._color0$_legacyChannel$2(B.RgbColorSpace_mlz0, "blue"));
  96291. },
  96292. $signature: 40
  96293. };
  96294. A.global_closure47.prototype = {
  96295. call$1($arguments) {
  96296. return A._rgb0("rgb", $arguments);
  96297. },
  96298. $signature: 3
  96299. };
  96300. A.global_closure48.prototype = {
  96301. call$1($arguments) {
  96302. return A._rgb0("rgb", $arguments);
  96303. },
  96304. $signature: 3
  96305. };
  96306. A.global_closure49.prototype = {
  96307. call$1($arguments) {
  96308. return A._rgbTwoArg0("rgb", $arguments);
  96309. },
  96310. $signature: 3
  96311. };
  96312. A.global_closure50.prototype = {
  96313. call$1($arguments) {
  96314. return A._parseChannels0("rgb", J.$index$asx($arguments, 0), "channels", B.RgbColorSpace_mlz0);
  96315. },
  96316. $signature: 3
  96317. };
  96318. A.global_closure51.prototype = {
  96319. call$1($arguments) {
  96320. return A._rgb0("rgba", $arguments);
  96321. },
  96322. $signature: 3
  96323. };
  96324. A.global_closure52.prototype = {
  96325. call$1($arguments) {
  96326. return A._rgb0("rgba", $arguments);
  96327. },
  96328. $signature: 3
  96329. };
  96330. A.global_closure53.prototype = {
  96331. call$1($arguments) {
  96332. return A._rgbTwoArg0("rgba", $arguments);
  96333. },
  96334. $signature: 3
  96335. };
  96336. A.global_closure54.prototype = {
  96337. call$1($arguments) {
  96338. return A._parseChannels0("rgba", J.$index$asx($arguments, 0), "channels", B.RgbColorSpace_mlz0);
  96339. },
  96340. $signature: 3
  96341. };
  96342. A.global_closure55.prototype = {
  96343. call$1($arguments) {
  96344. var t1 = J.getInterceptor$asx($arguments);
  96345. if (!(t1.$index($arguments, 0) instanceof A.SassNumber0) && !t1.$index($arguments, 0).get$isSpecialNumber())
  96346. A.warnForDeprecation0(string$.Globalci, B.Deprecation_Q5r);
  96347. return A._invert0($arguments, true);
  96348. },
  96349. $signature: 3
  96350. };
  96351. A.global_closure56.prototype = {
  96352. call$1(color) {
  96353. return color._color0$_legacyChannel$2(B.HslColorSpace_gsm0, "hue");
  96354. },
  96355. $signature: 28
  96356. };
  96357. A.global_closure57.prototype = {
  96358. call$1(color) {
  96359. return color._color0$_legacyChannel$2(B.HslColorSpace_gsm0, "saturation");
  96360. },
  96361. $signature: 28
  96362. };
  96363. A.global_closure58.prototype = {
  96364. call$1(color) {
  96365. return color._color0$_legacyChannel$2(B.HslColorSpace_gsm0, "lightness");
  96366. },
  96367. $signature: 28
  96368. };
  96369. A.global_closure59.prototype = {
  96370. call$1($arguments) {
  96371. return A._hsl0("hsl", $arguments);
  96372. },
  96373. $signature: 3
  96374. };
  96375. A.global_closure60.prototype = {
  96376. call$1($arguments) {
  96377. return A._hsl0("hsl", $arguments);
  96378. },
  96379. $signature: 3
  96380. };
  96381. A.global_closure61.prototype = {
  96382. call$1($arguments) {
  96383. var t1 = J.getInterceptor$asx($arguments);
  96384. if (t1.$index($arguments, 0).get$isVar() || t1.$index($arguments, 1).get$isVar())
  96385. return A._functionString0("hsl", $arguments);
  96386. else
  96387. throw A.wrapException(A.SassScriptException$0("Missing argument $lightness.", null));
  96388. },
  96389. $signature: 17
  96390. };
  96391. A.global_closure62.prototype = {
  96392. call$1($arguments) {
  96393. return A._parseChannels0("hsl", J.$index$asx($arguments, 0), "channels", B.HslColorSpace_gsm0);
  96394. },
  96395. $signature: 3
  96396. };
  96397. A.global_closure63.prototype = {
  96398. call$1($arguments) {
  96399. return A._hsl0("hsla", $arguments);
  96400. },
  96401. $signature: 3
  96402. };
  96403. A.global_closure64.prototype = {
  96404. call$1($arguments) {
  96405. return A._hsl0("hsla", $arguments);
  96406. },
  96407. $signature: 3
  96408. };
  96409. A.global_closure65.prototype = {
  96410. call$1($arguments) {
  96411. var t1 = J.getInterceptor$asx($arguments);
  96412. if (t1.$index($arguments, 0).get$isVar() || t1.$index($arguments, 1).get$isVar())
  96413. return A._functionString0("hsla", $arguments);
  96414. else
  96415. throw A.wrapException(A.SassScriptException$0("Missing argument $lightness.", null));
  96416. },
  96417. $signature: 17
  96418. };
  96419. A.global_closure66.prototype = {
  96420. call$1($arguments) {
  96421. return A._parseChannels0("hsla", J.$index$asx($arguments, 0), "channels", B.HslColorSpace_gsm0);
  96422. },
  96423. $signature: 3
  96424. };
  96425. A.global_closure67.prototype = {
  96426. call$1($arguments) {
  96427. var t1 = J.getInterceptor$asx($arguments);
  96428. if (t1.$index($arguments, 0) instanceof A.SassNumber0 || t1.$index($arguments, 0).get$isSpecialNumber())
  96429. return A._functionString0("grayscale", $arguments);
  96430. else {
  96431. A.warnForDeprecation0(string$.Globalcg, B.Deprecation_Q5r);
  96432. return A._grayscale0(t1.$index($arguments, 0));
  96433. }
  96434. },
  96435. $signature: 3
  96436. };
  96437. A.global_closure68.prototype = {
  96438. call$1($arguments) {
  96439. var t1 = J.getInterceptor$asx($arguments),
  96440. color = t1.$index($arguments, 0).assertColor$1("color"),
  96441. degrees = A._angleValue0(t1.$index($arguments, 1), "degrees");
  96442. if (!color._color0$_space.get$isLegacyInternal())
  96443. throw A.wrapException(A.SassScriptException$0(string$.adjusto, null));
  96444. A.warnForDeprecation0(string$.adjustd + A.SassNumber_SassNumber0(degrees, "deg").toString$0(0) + string$.x29x0a_Mor_, B.Deprecation_rb9);
  96445. return color.changeHsl$1$hue(color._color0$_legacyChannel$2(B.HslColorSpace_gsm0, "hue") + degrees);
  96446. },
  96447. $signature: 25
  96448. };
  96449. A.global_closure69.prototype = {
  96450. call$1($arguments) {
  96451. var result,
  96452. _s9_ = "lightness",
  96453. t1 = J.getInterceptor$asx($arguments),
  96454. color = t1.$index($arguments, 0).assertColor$1("color"),
  96455. amount = t1.$index($arguments, 1).assertNumber$1("amount");
  96456. if (!color._color0$_space.get$isLegacyInternal())
  96457. throw A.wrapException(A.SassScriptException$0(string$.lighte, null));
  96458. t1 = color._color0$_legacyChannel$2(B.HslColorSpace_gsm0, _s9_) + amount.valueInRange$3(0, 100, "amount");
  96459. result = color.changeHsl$1$lightness(isNaN(t1) ? 0 : B.JSNumber_methods.clamp$2(t1, 0, 100));
  96460. A.warnForDeprecation0("lighten() is deprecated. " + A._suggestScaleAndAdjust0(color, amount._number1$_value, _s9_) + string$.x0a_Morex3ac, B.Deprecation_rb9);
  96461. return result;
  96462. },
  96463. $signature: 25
  96464. };
  96465. A.global_closure70.prototype = {
  96466. call$1($arguments) {
  96467. var result,
  96468. _s9_ = "lightness",
  96469. t1 = J.getInterceptor$asx($arguments),
  96470. color = t1.$index($arguments, 0).assertColor$1("color"),
  96471. amount = t1.$index($arguments, 1).assertNumber$1("amount");
  96472. if (!color._color0$_space.get$isLegacyInternal())
  96473. throw A.wrapException(A.SassScriptException$0(string$.darken, null));
  96474. t1 = color._color0$_legacyChannel$2(B.HslColorSpace_gsm0, _s9_) - amount.valueInRange$3(0, 100, "amount");
  96475. result = color.changeHsl$1$lightness(isNaN(t1) ? 0 : B.JSNumber_methods.clamp$2(t1, 0, 100));
  96476. A.warnForDeprecation0("darken() is deprecated. " + A._suggestScaleAndAdjust0(color, -amount._number1$_value, _s9_) + string$.x0a_Morex3ac, B.Deprecation_rb9);
  96477. return result;
  96478. },
  96479. $signature: 25
  96480. };
  96481. A.global_closure71.prototype = {
  96482. call$1($arguments) {
  96483. var t1 = J.getInterceptor$asx($arguments);
  96484. if (t1.$index($arguments, 0) instanceof A.SassNumber0 || t1.$index($arguments, 0).get$isSpecialNumber())
  96485. return A._functionString0("saturate", $arguments);
  96486. return new A.SassString0("saturate(" + A.serializeValue0(t1.$index($arguments, 0).assertNumber$1("amount"), false, true) + ")", false);
  96487. },
  96488. $signature: 17
  96489. };
  96490. A.global_closure72.prototype = {
  96491. call$1($arguments) {
  96492. var t1, color, amount, result,
  96493. _s10_ = "saturation";
  96494. A.warnForDeprecation0(string$.Globalcad, B.Deprecation_Q5r);
  96495. t1 = J.getInterceptor$asx($arguments);
  96496. color = t1.$index($arguments, 0).assertColor$1("color");
  96497. amount = t1.$index($arguments, 1).assertNumber$1("amount");
  96498. if (!color._color0$_space.get$isLegacyInternal())
  96499. throw A.wrapException(A.SassScriptException$0(string$.satura, null));
  96500. t1 = color._color0$_legacyChannel$2(B.HslColorSpace_gsm0, _s10_) + amount.valueInRange$3(0, 100, "amount");
  96501. result = color.changeHsl$1$saturation(isNaN(t1) ? 0 : B.JSNumber_methods.clamp$2(t1, 0, 100));
  96502. A.warnForDeprecation0("saturate() is deprecated. " + A._suggestScaleAndAdjust0(color, amount._number1$_value, _s10_) + string$.x0a_Morex3ac, B.Deprecation_rb9);
  96503. return result;
  96504. },
  96505. $signature: 25
  96506. };
  96507. A.global_closure73.prototype = {
  96508. call$1($arguments) {
  96509. var result,
  96510. _s10_ = "saturation",
  96511. t1 = J.getInterceptor$asx($arguments),
  96512. color = t1.$index($arguments, 0).assertColor$1("color"),
  96513. amount = t1.$index($arguments, 1).assertNumber$1("amount");
  96514. if (!color._color0$_space.get$isLegacyInternal())
  96515. throw A.wrapException(A.SassScriptException$0(string$.desatu, null));
  96516. t1 = color._color0$_legacyChannel$2(B.HslColorSpace_gsm0, _s10_) - amount.valueInRange$3(0, 100, "amount");
  96517. result = color.changeHsl$1$saturation(isNaN(t1) ? 0 : B.JSNumber_methods.clamp$2(t1, 0, 100));
  96518. A.warnForDeprecation0("desaturate() is deprecated. " + A._suggestScaleAndAdjust0(color, -amount._number1$_value, _s10_) + string$.x0a_Morex3ac, B.Deprecation_rb9);
  96519. return result;
  96520. },
  96521. $signature: 25
  96522. };
  96523. A.global_closure74.prototype = {
  96524. call$1($arguments) {
  96525. return A._opacify0("opacify", $arguments);
  96526. },
  96527. $signature: 25
  96528. };
  96529. A.global_closure75.prototype = {
  96530. call$1($arguments) {
  96531. return A._opacify0("fade-in", $arguments);
  96532. },
  96533. $signature: 25
  96534. };
  96535. A.global_closure76.prototype = {
  96536. call$1($arguments) {
  96537. return A._transparentize0("transparentize", $arguments);
  96538. },
  96539. $signature: 25
  96540. };
  96541. A.global_closure77.prototype = {
  96542. call$1($arguments) {
  96543. return A._transparentize0("fade-out", $arguments);
  96544. },
  96545. $signature: 25
  96546. };
  96547. A.global_closure78.prototype = {
  96548. call$1($arguments) {
  96549. var _0_0 = J.$index$asx($arguments, 0),
  96550. t1 = false;
  96551. if (_0_0 instanceof A.SassString0)
  96552. if (!_0_0._string0$_hasQuotes)
  96553. t1 = B.JSString_methods.contains$1(_0_0._string0$_text, $.$get$_microsoftFilterStart0());
  96554. if (t1)
  96555. return A._functionString0("alpha", $arguments);
  96556. if (_0_0 instanceof A.SassColor0 && !_0_0._color0$_space.get$isLegacyInternal())
  96557. throw A.wrapException(A.SassScriptException$0(string$.alpha_, null));
  96558. A.warnForDeprecation0(string$.Globalcal, B.Deprecation_Q5r);
  96559. t1 = _0_0.assertColor$1("color").alphaOrNull;
  96560. return A.SassNumber_SassNumber0(t1 == null ? 0 : t1, null);
  96561. },
  96562. $signature: 3
  96563. };
  96564. A.global_closure79.prototype = {
  96565. call$1($arguments) {
  96566. var t1,
  96567. argList = J.$index$asx($arguments, 0).get$asList();
  96568. if (argList.length !== 0 && B.JSArray_methods.every$1(argList, new A.global__closure0()))
  96569. return A._functionString0("alpha", $arguments);
  96570. t1 = argList.length;
  96571. if (t1 === 0)
  96572. throw A.wrapException(A.SassScriptException$0("Missing argument $color.", null));
  96573. else
  96574. throw A.wrapException(A.SassScriptException$0("Only 1 argument allowed, but " + t1 + " were passed.", null));
  96575. },
  96576. $signature: 17
  96577. };
  96578. A.global__closure0.prototype = {
  96579. call$1(argument) {
  96580. return argument instanceof A.SassString0 && !argument._string0$_hasQuotes && B.JSString_methods.contains$1(argument._string0$_text, $.$get$_microsoftFilterStart0());
  96581. },
  96582. $signature: 56
  96583. };
  96584. A.global_closure80.prototype = {
  96585. call$1($arguments) {
  96586. var t1 = J.getInterceptor$asx($arguments);
  96587. if (t1.$index($arguments, 0) instanceof A.SassNumber0 || t1.$index($arguments, 0).get$isSpecialNumber())
  96588. return A._functionString0("opacity", $arguments);
  96589. A.warnForDeprecation0(string$.Globalco, B.Deprecation_Q5r);
  96590. t1 = t1.$index($arguments, 0).assertColor$1("color").alphaOrNull;
  96591. return A.SassNumber_SassNumber0(t1 == null ? 0 : t1, null);
  96592. },
  96593. $signature: 3
  96594. };
  96595. A.global_closure81.prototype = {
  96596. call$1($arguments) {
  96597. return A._parseChannels0("color", J.$index$asx($arguments, 0), "description", null);
  96598. },
  96599. $signature: 3
  96600. };
  96601. A.global_closure82.prototype = {
  96602. call$1($arguments) {
  96603. return A._parseChannels0("hwb", J.$index$asx($arguments, 0), "channels", B.HwbColorSpace_06z0);
  96604. },
  96605. $signature: 3
  96606. };
  96607. A.global_closure83.prototype = {
  96608. call$1($arguments) {
  96609. return A._parseChannels0("lab", J.$index$asx($arguments, 0), "channels", B.LabColorSpace_IF20);
  96610. },
  96611. $signature: 3
  96612. };
  96613. A.global_closure84.prototype = {
  96614. call$1($arguments) {
  96615. return A._parseChannels0("lch", J.$index$asx($arguments, 0), "channels", B.LchColorSpace_wv80);
  96616. },
  96617. $signature: 3
  96618. };
  96619. A.global_closure85.prototype = {
  96620. call$1($arguments) {
  96621. return A._parseChannels0("oklab", J.$index$asx($arguments, 0), "channels", B.OklabColorSpace_yrt0);
  96622. },
  96623. $signature: 3
  96624. };
  96625. A.global_closure86.prototype = {
  96626. call$1($arguments) {
  96627. return A._parseChannels0("oklch", J.$index$asx($arguments, 0), "channels", B.OklchColorSpace_li80);
  96628. },
  96629. $signature: 3
  96630. };
  96631. A.module_closure27.prototype = {
  96632. call$1(color) {
  96633. return B.JSNumber_methods.round$0(color._color0$_legacyChannel$2(B.RgbColorSpace_mlz0, "red"));
  96634. },
  96635. $signature: 40
  96636. };
  96637. A.module_closure28.prototype = {
  96638. call$1(color) {
  96639. return B.JSNumber_methods.round$0(color._color0$_legacyChannel$2(B.RgbColorSpace_mlz0, "green"));
  96640. },
  96641. $signature: 40
  96642. };
  96643. A.module_closure29.prototype = {
  96644. call$1(color) {
  96645. return B.JSNumber_methods.round$0(color._color0$_legacyChannel$2(B.RgbColorSpace_mlz0, "blue"));
  96646. },
  96647. $signature: 40
  96648. };
  96649. A.module_closure30.prototype = {
  96650. call$1($arguments) {
  96651. var result = A._invert0($arguments, false);
  96652. if (result instanceof A.SassString0)
  96653. A.warnForDeprecation0("Passing a number (" + A.S(J.$index$asx($arguments, 0)) + string$.x29x20to_ci + result.toString$0(0), B.Deprecation_4QP);
  96654. return result;
  96655. },
  96656. $signature: 3
  96657. };
  96658. A.module_closure31.prototype = {
  96659. call$1(color) {
  96660. return color._color0$_legacyChannel$2(B.HslColorSpace_gsm0, "hue");
  96661. },
  96662. $signature: 28
  96663. };
  96664. A.module_closure32.prototype = {
  96665. call$1(color) {
  96666. return color._color0$_legacyChannel$2(B.HslColorSpace_gsm0, "saturation");
  96667. },
  96668. $signature: 28
  96669. };
  96670. A.module_closure33.prototype = {
  96671. call$1(color) {
  96672. return color._color0$_legacyChannel$2(B.HslColorSpace_gsm0, "lightness");
  96673. },
  96674. $signature: 28
  96675. };
  96676. A.module_closure34.prototype = {
  96677. call$1($arguments) {
  96678. var result,
  96679. t1 = J.getInterceptor$asx($arguments);
  96680. if (t1.$index($arguments, 0) instanceof A.SassNumber0) {
  96681. result = A._functionString0("grayscale", t1.take$1($arguments, 1));
  96682. A.warnForDeprecation0("Passing a number (" + A.S(t1.$index($arguments, 0)) + string$.x29x20to_cg + result.toString$0(0), B.Deprecation_4QP);
  96683. return result;
  96684. }
  96685. return A._grayscale0(t1.$index($arguments, 0));
  96686. },
  96687. $signature: 3
  96688. };
  96689. A.module_closure35.prototype = {
  96690. call$1($arguments) {
  96691. var t1 = J.getInterceptor$asx($arguments),
  96692. t2 = type$.JSArray_Value_2;
  96693. return A._parseChannels0("hwb", A.SassList$0(A._setArrayType([A.SassList$0(A._setArrayType([t1.$index($arguments, 0), t1.$index($arguments, 1), t1.$index($arguments, 2)], t2), B.ListSeparator_nbm0, false), t1.$index($arguments, 3)], t2), B.ListSeparator_cQA0, false), null, B.HwbColorSpace_06z0);
  96694. },
  96695. $signature: 3
  96696. };
  96697. A.module_closure36.prototype = {
  96698. call$1($arguments) {
  96699. return A._parseChannels0("hwb", J.$index$asx($arguments, 0), "channels", B.HwbColorSpace_06z0);
  96700. },
  96701. $signature: 3
  96702. };
  96703. A.module_closure37.prototype = {
  96704. call$1(color) {
  96705. return color._color0$_legacyChannel$2(B.HwbColorSpace_06z0, "whiteness");
  96706. },
  96707. $signature: 28
  96708. };
  96709. A.module_closure38.prototype = {
  96710. call$1(color) {
  96711. return color._color0$_legacyChannel$2(B.HwbColorSpace_06z0, "blackness");
  96712. },
  96713. $signature: 28
  96714. };
  96715. A.module_closure39.prototype = {
  96716. call$1($arguments) {
  96717. var result,
  96718. _0_0 = J.$index$asx($arguments, 0),
  96719. t1 = false;
  96720. if (_0_0 instanceof A.SassString0)
  96721. if (!_0_0._string0$_hasQuotes)
  96722. t1 = B.JSString_methods.contains$1(_0_0._string0$_text, $.$get$_microsoftFilterStart0());
  96723. if (t1) {
  96724. result = A._functionString0("alpha", $arguments);
  96725. A.warnForDeprecation0(string$.Using_c + result.toString$0(0), B.Deprecation_4QP);
  96726. return result;
  96727. }
  96728. if (_0_0 instanceof A.SassColor0 && !_0_0._color0$_space.get$isLegacyInternal())
  96729. throw A.wrapException(A.SassScriptException$0(string$.color_a, null));
  96730. t1 = _0_0.assertColor$1("color").alphaOrNull;
  96731. return A.SassNumber_SassNumber0(t1 == null ? 0 : t1, null);
  96732. },
  96733. $signature: 3
  96734. };
  96735. A.module_closure40.prototype = {
  96736. call$1($arguments) {
  96737. var result,
  96738. t1 = J.getInterceptor$asx($arguments);
  96739. if (B.JSArray_methods.every$1(t1.$index($arguments, 0).get$asList(), new A.module__closure6())) {
  96740. result = A._functionString0("alpha", $arguments);
  96741. A.warnForDeprecation0(string$.Using_c + result.toString$0(0), B.Deprecation_4QP);
  96742. return result;
  96743. }
  96744. throw A.wrapException(A.SassScriptException$0("Only 1 argument allowed, but " + t1.get$length($arguments) + " were passed.", null));
  96745. },
  96746. $signature: 17
  96747. };
  96748. A.module__closure6.prototype = {
  96749. call$1(argument) {
  96750. return argument instanceof A.SassString0 && !argument._string0$_hasQuotes && B.JSString_methods.contains$1(argument._string0$_text, $.$get$_microsoftFilterStart0());
  96751. },
  96752. $signature: 56
  96753. };
  96754. A.module_closure41.prototype = {
  96755. call$1($arguments) {
  96756. var result,
  96757. t1 = J.getInterceptor$asx($arguments);
  96758. if (t1.$index($arguments, 0) instanceof A.SassNumber0) {
  96759. result = A._functionString0("opacity", $arguments);
  96760. A.warnForDeprecation0("Passing a number (" + A.S(t1.$index($arguments, 0)) + string$.x20to_co + result.toString$0(0), B.Deprecation_4QP);
  96761. return result;
  96762. }
  96763. t1 = t1.$index($arguments, 0).assertColor$1("color").alphaOrNull;
  96764. return A.SassNumber_SassNumber0(t1 == null ? 0 : t1, null);
  96765. },
  96766. $signature: 3
  96767. };
  96768. A.module_closure42.prototype = {
  96769. call$1($arguments) {
  96770. return new A.SassString0(J.get$first$ax($arguments).assertColor$1("color")._color0$_space.name, false);
  96771. },
  96772. $signature: 17
  96773. };
  96774. A.module_closure43.prototype = {
  96775. call$1($arguments) {
  96776. var t1 = J.getInterceptor$asx($arguments);
  96777. return A._colorInSpace0(t1.$index($arguments, 0), t1.$index($arguments, 1), false);
  96778. },
  96779. $signature: 25
  96780. };
  96781. A.module_closure44.prototype = {
  96782. call$1($arguments) {
  96783. return J.$index$asx($arguments, 0).assertColor$1("color")._color0$_space.get$isLegacyInternal() ? B.SassBoolean_true0 : B.SassBoolean_false0;
  96784. },
  96785. $signature: 12
  96786. };
  96787. A.module_closure45.prototype = {
  96788. call$1($arguments) {
  96789. var t1 = J.getInterceptor$asx($arguments);
  96790. return t1.$index($arguments, 0).assertColor$1("color").isChannelMissing$3$channelName$colorName(A._channelName0(t1.$index($arguments, 1)), "channel", "color") ? B.SassBoolean_true0 : B.SassBoolean_false0;
  96791. },
  96792. $signature: 12
  96793. };
  96794. A.module_closure46.prototype = {
  96795. call$1($arguments) {
  96796. var t1 = J.getInterceptor$asx($arguments);
  96797. return A._colorInSpace0(t1.$index($arguments, 0), t1.$index($arguments, 1), true).get$isInGamut() ? B.SassBoolean_true0 : B.SassBoolean_false0;
  96798. },
  96799. $signature: 12
  96800. };
  96801. A.module_closure47.prototype = {
  96802. call$1($arguments) {
  96803. var space, method, _s5_ = "space", _s6_ = "method",
  96804. t1 = J.getInterceptor$asx($arguments),
  96805. color = t1.$index($arguments, 0).assertColor$1("color"),
  96806. t2 = t1.$index($arguments, 1);
  96807. if (t2.$eq(0, B.C__SassNull0))
  96808. space = color._color0$_space;
  96809. else {
  96810. t2 = t2.assertString$1(_s5_);
  96811. t2.assertUnquoted$1(_s5_);
  96812. space = A.ColorSpace_fromName0(t2._string0$_text, _s5_);
  96813. }
  96814. if (J.$eq$(t1.$index($arguments, 2), B.C__SassNull0))
  96815. throw A.wrapException(A.SassScriptException$0(string$.color_t, _s6_));
  96816. t1 = t1.$index($arguments, 2).assertString$1(_s6_);
  96817. t1.assertUnquoted$1(_s6_);
  96818. method = A.GamutMapMethod_GamutMapMethod$fromName0(t1._string0$_text);
  96819. if (!space.get$isBoundedInternal())
  96820. return color;
  96821. t1 = color.toSpace$1(space);
  96822. t1 = t1.get$isInGamut() ? t1 : method.map$1(0, t1);
  96823. return t1.toSpace$2$legacyMissing(color._color0$_space, false);
  96824. },
  96825. $signature: 25
  96826. };
  96827. A.module_closure48.prototype = {
  96828. call$1($arguments) {
  96829. var channelIndex, channelInfo, channelValue, unit,
  96830. t1 = J.getInterceptor$asx($arguments),
  96831. color = A._colorInSpace0(t1.$index($arguments, 0), t1.$index($arguments, 2), true),
  96832. channelName = A._channelName0(t1.$index($arguments, 1));
  96833. if (channelName === "alpha") {
  96834. t1 = color.alphaOrNull;
  96835. return A.SassNumber_SassNumber0(t1 == null ? 0 : t1, null);
  96836. }
  96837. t1 = color._color0$_space._space$_channels;
  96838. channelIndex = B.JSArray_methods.indexWhere$1(t1, new A.module__closure5(channelName));
  96839. if (channelIndex === -1)
  96840. throw A.wrapException(A.SassScriptException$0("Color " + color.toString$0(0) + " has no channel named " + channelName + ".", "channel"));
  96841. channelInfo = t1[channelIndex];
  96842. channelValue = color.get$channels()[channelIndex];
  96843. unit = channelInfo.associatedUnit;
  96844. return A.SassNumber_SassNumber0(unit === "%" ? channelValue * 100 / type$.LinearChannel_2._as(channelInfo).max : channelValue, unit);
  96845. },
  96846. $signature: 22
  96847. };
  96848. A.module__closure5.prototype = {
  96849. call$1(channel) {
  96850. return channel.name === this.channelName;
  96851. },
  96852. $signature: 71
  96853. };
  96854. A.module_closure49.prototype = {
  96855. call$1($arguments) {
  96856. var t2, t3,
  96857. t1 = J.getInterceptor$asx($arguments),
  96858. color1 = t1.$index($arguments, 0).assertColor$1("color1"),
  96859. color2 = t1.$index($arguments, 1).assertColor$1("color2");
  96860. t1 = new A.module_closure_toXyzNoMissing0();
  96861. if (color1._color0$_space === color2._color0$_space) {
  96862. t1 = color1.channel0OrNull;
  96863. t2 = false;
  96864. if (t1 == null)
  96865. t1 = 0;
  96866. t3 = color2.channel0OrNull;
  96867. if (A.fuzzyEquals0(t1, t3 == null ? 0 : t3)) {
  96868. t1 = color1.channel1OrNull;
  96869. if (t1 == null)
  96870. t1 = 0;
  96871. t3 = color2.channel1OrNull;
  96872. if (A.fuzzyEquals0(t1, t3 == null ? 0 : t3)) {
  96873. t1 = color1.channel2OrNull;
  96874. if (t1 == null)
  96875. t1 = 0;
  96876. t3 = color2.channel2OrNull;
  96877. if (A.fuzzyEquals0(t1, t3 == null ? 0 : t3)) {
  96878. t1 = color1.alphaOrNull;
  96879. if (t1 == null)
  96880. t1 = 0;
  96881. t2 = color2.alphaOrNull;
  96882. t1 = A.fuzzyEquals0(t1, t2 == null ? 0 : t2);
  96883. } else
  96884. t1 = t2;
  96885. } else
  96886. t1 = t2;
  96887. } else
  96888. t1 = t2;
  96889. } else
  96890. t1 = J.$eq$(t1.call$1(color1), t1.call$1(color2));
  96891. return t1 ? B.SassBoolean_true0 : B.SassBoolean_false0;
  96892. },
  96893. $signature: 12
  96894. };
  96895. A.module_closure_toXyzNoMissing0.prototype = {
  96896. call$1(color) {
  96897. var _1_1, _1_3, t1, _1_7, channel0, _1_8, channel1, _1_9, channel2, _1_10, alpha, _null = null;
  96898. $label0$0: {
  96899. _1_1 = color._color0$_space;
  96900. _1_3 = B.XyzD65ColorSpace_4CA0 === _1_1;
  96901. t1 = _1_3;
  96902. if (t1)
  96903. t1 = !(color.channel0OrNull == null || color.channel1OrNull == null || color.channel2OrNull == null || color.alphaOrNull == null);
  96904. else
  96905. t1 = false;
  96906. if (t1) {
  96907. t1 = color;
  96908. break $label0$0;
  96909. }
  96910. if (_1_3) {
  96911. _1_7 = color.channel0OrNull;
  96912. if (_1_7 == null)
  96913. _1_7 = 0;
  96914. channel0 = _1_7;
  96915. _1_8 = color.channel1OrNull;
  96916. if (_1_8 == null)
  96917. _1_8 = 0;
  96918. channel1 = _1_8;
  96919. _1_9 = color.channel2OrNull;
  96920. if (_1_9 == null)
  96921. _1_9 = 0;
  96922. channel2 = _1_9;
  96923. _1_10 = color.alphaOrNull;
  96924. if (_1_10 == null)
  96925. _1_10 = 0;
  96926. alpha = _1_10;
  96927. t1 = A.SassColor$_forSpace0(B.XyzD65ColorSpace_4CA0, channel0, channel1, channel2, alpha, _null);
  96928. break $label0$0;
  96929. }
  96930. _1_7 = color.channel0OrNull;
  96931. if (_1_7 == null)
  96932. _1_7 = 0;
  96933. channel0 = _1_7;
  96934. _1_8 = color.channel1OrNull;
  96935. if (_1_8 == null)
  96936. _1_8 = 0;
  96937. channel1 = _1_8;
  96938. _1_9 = color.channel2OrNull;
  96939. if (_1_9 == null)
  96940. _1_9 = 0;
  96941. channel2 = _1_9;
  96942. _1_10 = color.alphaOrNull;
  96943. if (_1_10 == null)
  96944. _1_10 = 0;
  96945. alpha = _1_10;
  96946. t1 = _1_1.convert$5(B.XyzD65ColorSpace_4CA0, channel0, channel1, channel2, alpha);
  96947. break $label0$0;
  96948. }
  96949. return t1;
  96950. },
  96951. $signature: 396
  96952. };
  96953. A.module_closure50.prototype = {
  96954. call$1($arguments) {
  96955. var t1 = J.getInterceptor$asx($arguments);
  96956. return A._colorInSpace0(t1.$index($arguments, 0), t1.$index($arguments, 2), true).isChannelPowerless$3$channelName$colorName(A._channelName0(t1.$index($arguments, 1)), "channel", "color") ? B.SassBoolean_true0 : B.SassBoolean_false0;
  96957. },
  96958. $signature: 12
  96959. };
  96960. A._mix_closure0.prototype = {
  96961. call$1($arguments) {
  96962. var _s6_ = "weight",
  96963. _s41_ = string$.To_usem,
  96964. _s29_ = ", you must provide a $method.",
  96965. t1 = J.getInterceptor$asx($arguments),
  96966. color1 = t1.$index($arguments, 0).assertColor$1("color1"),
  96967. color2 = t1.$index($arguments, 1).assertColor$1("color2"),
  96968. weight = t1.$index($arguments, 2).assertNumber$1(_s6_);
  96969. if (!J.$eq$(t1.$index($arguments, 3), B.C__SassNull0))
  96970. return color1.interpolate$4$legacyMissing$weight(color2, A.InterpolationMethod_InterpolationMethod$fromValue0(t1.$index($arguments, 3), "method"), false, weight.valueInRangeWithUnit$4(0, 100, _s6_, "%") / 100);
  96971. A._checkPercent0(weight, _s6_);
  96972. if (!color1._color0$_space.get$isLegacyInternal())
  96973. throw A.wrapException(A.SassScriptException$0(_s41_ + color1.toString$0(0) + _s29_, "color1"));
  96974. else if (!color2._color0$_space.get$isLegacyInternal())
  96975. throw A.wrapException(A.SassScriptException$0(_s41_ + color2.toString$0(0) + _s29_, "color2"));
  96976. return A._mixLegacy0(color1, color2, weight);
  96977. },
  96978. $signature: 25
  96979. };
  96980. A._complement_closure0.prototype = {
  96981. call$1($arguments) {
  96982. var space, t3, colorInSpace, t4, t5, t6, _s5_ = "space",
  96983. t1 = J.getInterceptor$asx($arguments),
  96984. color = t1.$index($arguments, 0).assertColor$1("color"),
  96985. t2 = color._color0$_space;
  96986. if (t2.get$isLegacyInternal() && J.$eq$(t1.$index($arguments, 1), B.C__SassNull0))
  96987. space = B.HslColorSpace_gsm0;
  96988. else {
  96989. t3 = t1.$index($arguments, 1).assertString$1(_s5_);
  96990. t3.assertUnquoted$1(_s5_);
  96991. space = A.ColorSpace_fromName0(t3._string0$_text, _s5_);
  96992. }
  96993. if (!space.get$isPolarInternal())
  96994. throw A.wrapException(A.SassScriptException$0("Color space " + space.toString$0(0) + " doesn't have a hue channel.", _s5_));
  96995. colorInSpace = color.toSpace$2$legacyMissing(space, !J.$eq$(t1.$index($arguments, 1), B.C__SassNull0));
  96996. t1 = space._space$_channels;
  96997. t3 = colorInSpace.channel0OrNull;
  96998. t4 = colorInSpace.channel1OrNull;
  96999. t5 = colorInSpace.channel2OrNull;
  97000. t6 = colorInSpace.alphaOrNull;
  97001. return (space.get$isLegacyInternal() ? A.SassColor_SassColor$forSpaceInternal0(space, A._adjustChannel0(colorInSpace, t1[0], t3, A.SassNumber_SassNumber0(180, null)), t4, t5, t6) : A.SassColor_SassColor$forSpaceInternal0(space, t3, t4, A._adjustChannel0(colorInSpace, t1[2], t5, A.SassNumber_SassNumber0(180, null)), t6)).toSpace$2$legacyMissing(t2, false);
  97002. },
  97003. $signature: 25
  97004. };
  97005. A._adjust_closure0.prototype = {
  97006. call$1($arguments) {
  97007. return A._updateComponents0($arguments, true, false, false);
  97008. },
  97009. $signature: 25
  97010. };
  97011. A._scale_closure0.prototype = {
  97012. call$1($arguments) {
  97013. return A._updateComponents0($arguments, false, false, true);
  97014. },
  97015. $signature: 25
  97016. };
  97017. A._change_closure0.prototype = {
  97018. call$1($arguments) {
  97019. return A._updateComponents0($arguments, false, true, false);
  97020. },
  97021. $signature: 25
  97022. };
  97023. A._ieHexStr_closure0.prototype = {
  97024. call$1($arguments) {
  97025. var t1, t2, t3, t4, t5,
  97026. color = J.$index$asx($arguments, 0).assertColor$1("color").toSpace$1(B.RgbColorSpace_mlz0);
  97027. color = color.get$isInGamut() ? color : B.LocalMindeGamutMap_Q7f0.map$1(0, color);
  97028. t1 = new A._ieHexStr_closure_hexString0();
  97029. t2 = color.alphaOrNull;
  97030. t2 = A.S(t1.call$1((t2 == null ? 0 : t2) * 255));
  97031. t3 = color.channel0OrNull;
  97032. t3 = A.S(t1.call$1(t3 == null ? 0 : t3));
  97033. t4 = color.channel1OrNull;
  97034. t4 = A.S(t1.call$1(t4 == null ? 0 : t4));
  97035. t5 = color.channel2OrNull;
  97036. return new A.SassString0("#" + t2 + t3 + t4 + A.S(t1.call$1(t5 == null ? 0 : t5)), false);
  97037. },
  97038. $signature: 17
  97039. };
  97040. A._ieHexStr_closure_hexString0.prototype = {
  97041. call$1(component) {
  97042. return B.JSString_methods.padLeft$2(B.JSInt_methods.toRadixString$1(A.fuzzyRound0(component), 16), 2, "0").toUpperCase();
  97043. },
  97044. $signature: 203
  97045. };
  97046. A._updateComponents_closure1.prototype = {
  97047. call$1(space) {
  97048. return this.originalColor.toSpace$2$legacyMissing(space, false);
  97049. },
  97050. $signature: 397
  97051. };
  97052. A._updateComponents_closure2.prototype = {
  97053. call$1(info) {
  97054. return this._box_0.name === info.name;
  97055. },
  97056. $signature: 71
  97057. };
  97058. A._changeColor_closure0.prototype = {
  97059. call$0() {
  97060. var t1 = this.alphaArg;
  97061. A.warnForDeprecation0("$alpha: Passing a unit other than % (" + A.S(t1) + string$.x29x20is_d + t1.unitSuggestion$1("alpha") + string$.x0a_See_, B.Deprecation_jV0);
  97062. return t1.valueInRange$3(0, 1, "alpha");
  97063. },
  97064. $signature: 205
  97065. };
  97066. A._adjustColor_closure0.prototype = {
  97067. call$1(alpha) {
  97068. return isNaN(alpha) ? 0 : B.JSNumber_methods.clamp$2(alpha, 0, 1);
  97069. },
  97070. $signature: 15
  97071. };
  97072. A._functionString_closure0.prototype = {
  97073. call$1(argument) {
  97074. return A.serializeValue0(argument, false, true);
  97075. },
  97076. $signature: 209
  97077. };
  97078. A._removedColorFunction_closure0.prototype = {
  97079. call$1($arguments) {
  97080. var t1 = this.name,
  97081. t2 = J.getInterceptor$asx($arguments),
  97082. t3 = A.S(t2.$index($arguments, 0)),
  97083. t4 = this.negative ? "-" : "";
  97084. throw A.wrapException(A.SassScriptException$0("The function " + t1 + string$.x28__isn + t3 + ", $" + this.argument + ": " + t4 + A.S(t2.$index($arguments, 1)) + string$.x29x0a_Moro + t1, null));
  97085. },
  97086. $signature: 399
  97087. };
  97088. A._rgb_closure0.prototype = {
  97089. call$1(alpha) {
  97090. var t1 = A._percentageOrUnitless0(alpha.assertNumber$1("alpha"), 1, "alpha");
  97091. return isNaN(t1) ? 0 : B.JSNumber_methods.clamp$2(t1, 0, 1);
  97092. },
  97093. $signature: 210
  97094. };
  97095. A._hsl_closure0.prototype = {
  97096. call$1(alpha) {
  97097. var t1 = A._percentageOrUnitless0(alpha.assertNumber$1("alpha"), 1, "alpha");
  97098. return isNaN(t1) ? 0 : B.JSNumber_methods.clamp$2(t1, 0, 1);
  97099. },
  97100. $signature: 210
  97101. };
  97102. A._parseChannels_closure1.prototype = {
  97103. call$1($name) {
  97104. return $name + " channel";
  97105. },
  97106. $signature: 6
  97107. };
  97108. A._parseChannels_closure2.prototype = {
  97109. call$1(channel) {
  97110. return channel.get$isSpecialNumber();
  97111. },
  97112. $signature: 56
  97113. };
  97114. A._colorFromChannels_closure1.prototype = {
  97115. call$1(channel0) {
  97116. return A._angleValue0(channel0, "hue");
  97117. },
  97118. $signature: 95
  97119. };
  97120. A._colorFromChannels_closure2.prototype = {
  97121. call$1(channel0) {
  97122. return A._angleValue0(channel0, "hue");
  97123. },
  97124. $signature: 95
  97125. };
  97126. A._channelFromValue_closure0.prototype = {
  97127. call$1(value) {
  97128. var t1, _0_8, t2, _0_5, _0_8_isSet, upperClamped, t3,
  97129. _0_0 = this.channel;
  97130. $label0$0: {
  97131. t1 = _0_0 instanceof A.LinearChannel0;
  97132. if (t1 && _0_0.requiresPercent && !value.hasUnit$1("%"))
  97133. A.throwExpression(A.SassScriptException$0("Expected " + value.toString$0(0) + ' to have unit "%".', _0_0.name));
  97134. _0_8 = null;
  97135. t2 = false;
  97136. if (t1) {
  97137. _0_5 = _0_0.lowerClamped;
  97138. _0_8_isSet = !_0_5;
  97139. if (_0_8_isSet) {
  97140. _0_8 = _0_0.upperClamped;
  97141. t2 = !_0_8;
  97142. }
  97143. } else {
  97144. _0_5 = null;
  97145. _0_8_isSet = false;
  97146. }
  97147. if (t2) {
  97148. t1 = A._percentageOrUnitless0(value, _0_0.max, _0_0.name);
  97149. break $label0$0;
  97150. }
  97151. if (t1 && !this.clamp) {
  97152. t1 = A._percentageOrUnitless0(value, _0_0.max, _0_0.name);
  97153. break $label0$0;
  97154. }
  97155. if (t1) {
  97156. upperClamped = _0_8_isSet ? _0_8 : _0_0.upperClamped;
  97157. t1 = _0_0.max;
  97158. t2 = A._percentageOrUnitless0(value, t1, _0_0.name);
  97159. t3 = _0_5 ? _0_0.min : -1 / 0;
  97160. t1 = upperClamped ? t1 : 1 / 0;
  97161. t1 = isNaN(t2) ? t3 : B.JSNumber_methods.clamp$2(t2, t3, t1);
  97162. break $label0$0;
  97163. }
  97164. t1 = B.JSNumber_methods.$mod(value.coerceValueToUnit$2("deg", _0_0.name), 360);
  97165. break $label0$0;
  97166. }
  97167. return t1;
  97168. },
  97169. $signature: 95
  97170. };
  97171. A._channelFunction_closure0.prototype = {
  97172. call$1($arguments) {
  97173. var _this = this,
  97174. result = A.SassNumber_SassNumber0(_this.getter.call$1(J.get$first$ax($arguments).assertColor$1("color")), _this.unit),
  97175. t1 = _this.global ? "" : "color.",
  97176. t2 = _this.name;
  97177. A.warnForDeprecation0(t1 + t2 + string$.x28__is_d + t2 + '", $space: ' + _this.space.toString$0(0) + string$.x29x0a_Mor_, B.Deprecation_rb9);
  97178. return result;
  97179. },
  97180. $signature: 22
  97181. };
  97182. A._suggestScaleAndAdjust_closure0.prototype = {
  97183. call$1(channel) {
  97184. return channel.name === this.channelName;
  97185. },
  97186. $signature: 71
  97187. };
  97188. A.colorClass_closure.prototype = {
  97189. call$0() {
  97190. var t1 = type$.JSClass,
  97191. jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.SassColor", new A.colorClass__closure())),
  97192. t2 = type$.String,
  97193. t3 = type$.Function;
  97194. A.LinkedHashMap_LinkedHashMap$_literal(["equals", new A.colorClass__closure0(), "hashCode", new A.colorClass__closure1(), "toSpace", new A.colorClass__closure2(), "isInGamut", new A.colorClass__closure3(), "toGamut", new A.colorClass__closure4(), "channel", new A.colorClass__closure5(), "isChannelMissing", new A.colorClass__closure6(), "isChannelPowerless", new A.colorClass__closure7(), "change", new A.colorClass__closure8(), "interpolate", new A.colorClass__closure9()], t2, t3).forEach$1(0, A.JSClassExtension_get_defineMethod(jsClass));
  97195. A.LinkedHashMap_LinkedHashMap$_literal(["red", new A.colorClass__closure10(), "green", new A.colorClass__closure11(), "blue", new A.colorClass__closure12(), "hue", new A.colorClass__closure13(), "saturation", new A.colorClass__closure14(), "lightness", new A.colorClass__closure15(), "whiteness", new A.colorClass__closure16(), "blackness", new A.colorClass__closure17(), "alpha", new A.colorClass__closure18(), "space", new A.colorClass__closure19(), "isLegacy", new A.colorClass__closure20(), "channelsOrNull", new A.colorClass__closure21(), "channels", new A.colorClass__closure22()], t2, t3).forEach$1(0, A.JSClassExtension_get_defineGetter(jsClass));
  97196. A.JSClassExtension_injectSuperclass(t1._as(A.SassColor_SassColor$rgbInternal0(0, 0, 0, 1, null).constructor), jsClass);
  97197. return jsClass;
  97198. },
  97199. $signature: 16
  97200. };
  97201. A.colorClass__closure.prototype = {
  97202. call$2($self, options) {
  97203. var t1, t2, t3, t4, _null = null;
  97204. switch (A._constructionSpace(options)) {
  97205. case B.RgbColorSpace_mlz0:
  97206. A._checkNullAlphaDeprecation(options);
  97207. t1 = J.getInterceptor$x(options);
  97208. t2 = t1.get$red(options);
  97209. t3 = t1.get$green(options);
  97210. t4 = t1.get$blue(options);
  97211. t1 = t1.get$alpha(options);
  97212. return A.SassColor_SassColor$rgbInternal0(t2, t3, t4, A._asBool($.$get$_isUndefined().call$1(t1)) ? 1 : t1, _null);
  97213. case B.HslColorSpace_gsm0:
  97214. A._checkNullAlphaDeprecation(options);
  97215. t1 = J.getInterceptor$x(options);
  97216. t2 = t1.get$hue(options);
  97217. t3 = t1.get$saturation(options);
  97218. t4 = t1.get$lightness(options);
  97219. t1 = t1.get$alpha(options);
  97220. return A.SassColor_SassColor$hsl0(t2, t3, t4, A._asBool($.$get$_isUndefined().call$1(t1)) ? 1 : t1);
  97221. case B.HwbColorSpace_06z0:
  97222. A._checkNullAlphaDeprecation(options);
  97223. t1 = J.getInterceptor$x(options);
  97224. t2 = t1.get$hue(options);
  97225. t3 = t1.get$whiteness(options);
  97226. t4 = t1.get$blackness(options);
  97227. t1 = t1.get$alpha(options);
  97228. return A.SassColor_SassColor$hwb0(t2, t3, t4, A._asBool($.$get$_isUndefined().call$1(t1)) ? 1 : t1);
  97229. case B.LabColorSpace_IF20:
  97230. t1 = J.getInterceptor$x(options);
  97231. t2 = t1.get$lightness(options);
  97232. t3 = t1.get$a(options);
  97233. t4 = t1.get$b(options);
  97234. t1 = t1.get$alpha(options);
  97235. return A.SassColor$_forSpace0(B.LabColorSpace_IF20, t2, t3, t4, A._asBool($.$get$_isUndefined().call$1(t1)) ? 1 : t1, _null);
  97236. case B.OklabColorSpace_yrt0:
  97237. t1 = J.getInterceptor$x(options);
  97238. t2 = t1.get$lightness(options);
  97239. t3 = t1.get$a(options);
  97240. t4 = t1.get$b(options);
  97241. t1 = t1.get$alpha(options);
  97242. return A.SassColor$_forSpace0(B.OklabColorSpace_yrt0, t2, t3, t4, A._asBool($.$get$_isUndefined().call$1(t1)) ? 1 : t1, _null);
  97243. case B.LchColorSpace_wv80:
  97244. t1 = J.getInterceptor$x(options);
  97245. t2 = t1.get$lightness(options);
  97246. t3 = t1.get$chroma(options);
  97247. t4 = t1.get$hue(options);
  97248. t1 = t1.get$alpha(options);
  97249. return A.SassColor_SassColor$forSpaceInternal0(B.LchColorSpace_wv80, t2, t3, t4, A._asBool($.$get$_isUndefined().call$1(t1)) ? 1 : t1);
  97250. case B.OklchColorSpace_li80:
  97251. t1 = J.getInterceptor$x(options);
  97252. t2 = t1.get$lightness(options);
  97253. t3 = t1.get$chroma(options);
  97254. t4 = t1.get$hue(options);
  97255. t1 = t1.get$alpha(options);
  97256. return A.SassColor_SassColor$forSpaceInternal0(B.OklchColorSpace_li80, t2, t3, t4, A._asBool($.$get$_isUndefined().call$1(t1)) ? 1 : t1);
  97257. case B.SrgbColorSpace_AD40:
  97258. t1 = J.getInterceptor$x(options);
  97259. t2 = t1.get$red(options);
  97260. t3 = t1.get$green(options);
  97261. t4 = t1.get$blue(options);
  97262. t1 = t1.get$alpha(options);
  97263. return A.SassColor$_forSpace0(B.SrgbColorSpace_AD40, t2, t3, t4, A._asBool($.$get$_isUndefined().call$1(t1)) ? 1 : t1, _null);
  97264. case B.SrgbLinearColorSpace_sEs0:
  97265. t1 = J.getInterceptor$x(options);
  97266. t2 = t1.get$red(options);
  97267. t3 = t1.get$green(options);
  97268. t4 = t1.get$blue(options);
  97269. t1 = t1.get$alpha(options);
  97270. return A.SassColor$_forSpace0(B.SrgbLinearColorSpace_sEs0, t2, t3, t4, A._asBool($.$get$_isUndefined().call$1(t1)) ? 1 : t1, _null);
  97271. case B.DisplayP3ColorSpace_NQk0:
  97272. t1 = J.getInterceptor$x(options);
  97273. t2 = t1.get$red(options);
  97274. t3 = t1.get$green(options);
  97275. t4 = t1.get$blue(options);
  97276. t1 = t1.get$alpha(options);
  97277. return A.SassColor$_forSpace0(B.DisplayP3ColorSpace_NQk0, t2, t3, t4, A._asBool($.$get$_isUndefined().call$1(t1)) ? 1 : t1, _null);
  97278. case B.A98RgbColorSpace_bdu0:
  97279. t1 = J.getInterceptor$x(options);
  97280. t2 = t1.get$red(options);
  97281. t3 = t1.get$green(options);
  97282. t4 = t1.get$blue(options);
  97283. t1 = t1.get$alpha(options);
  97284. return A.SassColor$_forSpace0(B.A98RgbColorSpace_bdu0, t2, t3, t4, A._asBool($.$get$_isUndefined().call$1(t1)) ? 1 : t1, _null);
  97285. case B.ProphotoRgbColorSpace_KiG0:
  97286. t1 = J.getInterceptor$x(options);
  97287. t2 = t1.get$red(options);
  97288. t3 = t1.get$green(options);
  97289. t4 = t1.get$blue(options);
  97290. t1 = t1.get$alpha(options);
  97291. return A.SassColor$_forSpace0(B.ProphotoRgbColorSpace_KiG0, t2, t3, t4, A._asBool($.$get$_isUndefined().call$1(t1)) ? 1 : t1, _null);
  97292. case B.Rec2020ColorSpace_2jN0:
  97293. t1 = J.getInterceptor$x(options);
  97294. t2 = t1.get$red(options);
  97295. t3 = t1.get$green(options);
  97296. t4 = t1.get$blue(options);
  97297. t1 = t1.get$alpha(options);
  97298. return A.SassColor$_forSpace0(B.Rec2020ColorSpace_2jN0, t2, t3, t4, A._asBool($.$get$_isUndefined().call$1(t1)) ? 1 : t1, _null);
  97299. case B.XyzD50ColorSpace_2No0:
  97300. t1 = J.getInterceptor$x(options);
  97301. t2 = t1.get$x(options);
  97302. t3 = t1.get$y(options);
  97303. t4 = t1.get$z(options);
  97304. t1 = t1.get$alpha(options);
  97305. return A.SassColor$_forSpace0(B.XyzD50ColorSpace_2No0, t2, t3, t4, A._asBool($.$get$_isUndefined().call$1(t1)) ? 1 : t1, _null);
  97306. case B.XyzD65ColorSpace_4CA0:
  97307. t1 = J.getInterceptor$x(options);
  97308. t2 = t1.get$x(options);
  97309. t3 = t1.get$y(options);
  97310. t4 = t1.get$z(options);
  97311. t1 = t1.get$alpha(options);
  97312. return A.SassColor$_forSpace0(B.XyzD65ColorSpace_4CA0, t2, t3, t4, A._asBool($.$get$_isUndefined().call$1(t1)) ? 1 : t1, _null);
  97313. default:
  97314. throw A.wrapException("Unreachable");
  97315. }
  97316. },
  97317. $signature: 402
  97318. };
  97319. A.colorClass__closure0.prototype = {
  97320. call$2($self, other) {
  97321. return $self.$eq(0, other);
  97322. },
  97323. $signature: 403
  97324. };
  97325. A.colorClass__closure1.prototype = {
  97326. call$1($self) {
  97327. return $self.get$hashCode(0);
  97328. },
  97329. $signature: 40
  97330. };
  97331. A.colorClass__closure2.prototype = {
  97332. call$2($self, space) {
  97333. return A._toSpace($self, space);
  97334. },
  97335. $signature: 404
  97336. };
  97337. A.colorClass__closure3.prototype = {
  97338. call$2($self, space) {
  97339. return A._toSpace($self, space).get$isInGamut();
  97340. },
  97341. call$1($self) {
  97342. return this.call$2($self, null);
  97343. },
  97344. "call*": "call$2",
  97345. $requiredArgCount: 1,
  97346. $defaultValues() {
  97347. return [null];
  97348. },
  97349. $signature: 405
  97350. };
  97351. A.colorClass__closure4.prototype = {
  97352. call$2($self, options) {
  97353. var t1 = J.getInterceptor$x(options),
  97354. t2 = A._toSpace($self, t1.get$space(options));
  97355. t1 = A.GamutMapMethod_GamutMapMethod$fromName0(t1.get$method(options));
  97356. t1 = t2.get$isInGamut() ? t2 : t1.map$1(0, t2);
  97357. return t1.toSpace$1($self._color0$_space);
  97358. },
  97359. $signature: 406
  97360. };
  97361. A.colorClass__closure5.prototype = {
  97362. call$3($self, channel, options) {
  97363. return A._toSpace($self, options == null ? null : J.get$space$x(options)).channel$1(0, channel);
  97364. },
  97365. call$2($self, channel) {
  97366. return this.call$3($self, channel, null);
  97367. },
  97368. "call*": "call$3",
  97369. $requiredArgCount: 2,
  97370. $defaultValues() {
  97371. return [null];
  97372. },
  97373. $signature: 407
  97374. };
  97375. A.colorClass__closure6.prototype = {
  97376. call$2($self, channel) {
  97377. return $self.isChannelMissing$1(channel);
  97378. },
  97379. $signature: 408
  97380. };
  97381. A.colorClass__closure7.prototype = {
  97382. call$3($self, channel, options) {
  97383. return A._toSpace($self, options == null ? null : J.get$space$x(options)).isChannelPowerless$1(channel);
  97384. },
  97385. call$2($self, channel) {
  97386. return this.call$3($self, channel, null);
  97387. },
  97388. "call*": "call$3",
  97389. $requiredArgCount: 2,
  97390. $defaultValues() {
  97391. return [null];
  97392. },
  97393. $signature: 409
  97394. };
  97395. A.colorClass__closure8.prototype = {
  97396. call$2($self, options) {
  97397. var t3, space, t4, t5, t6, color, changedValue, _0_2, changedColor, _0_4, _0_6, _null = null,
  97398. _s9_ = "whiteness",
  97399. _s9_0 = "blackness",
  97400. _s3_ = "hue",
  97401. _s10_ = "saturation",
  97402. _s9_1 = "lightness",
  97403. _s3_0 = "red", _s5_ = "green", _s4_ = "blue", _s5_0 = "alpha",
  97404. _s106_ = string$.Passin_,
  97405. _s105_ = "Passing `hue: null` without setting `space` is deprecated.\nMore info: https://sass-lang.com/d/color-4-api",
  97406. t1 = J.getInterceptor$x(options),
  97407. t2 = t1.get$space(options) == null,
  97408. spaceSetExplicitly = !t2;
  97409. if (spaceSetExplicitly) {
  97410. t3 = t1.get$space(options);
  97411. t3.toString;
  97412. space = A.ColorSpace_fromName0(t3, _null);
  97413. } else
  97414. space = $self._color0$_space;
  97415. t3 = $self._color0$_space;
  97416. if (t3.get$isLegacyInternal() && t2) {
  97417. if ("whiteness" in options || "blackness" in options)
  97418. space = B.HwbColorSpace_06z0;
  97419. else if ("hue" in options && t3 === B.HwbColorSpace_06z0)
  97420. space = B.HwbColorSpace_06z0;
  97421. else if ("hue" in options || "saturation" in options || "lightness" in options)
  97422. space = B.HslColorSpace_gsm0;
  97423. else if ("red" in options || "green" in options || "blue" in options)
  97424. space = B.RgbColorSpace_mlz0;
  97425. if (space !== t3)
  97426. A.warnForDeprecationFromApi("Changing a channel not in this color's space without explicitly specifying the `space` option is deprecated.\nMore info: https://sass-lang.com/d/color-4-api", B.Deprecation_FIw);
  97427. }
  97428. for (t2 = J.get$iterator$ax(self.Object.keys(options)), t4 = space._space$_channels, t5 = type$.JSArray_String; t2.moveNext$0();) {
  97429. t6 = t2.get$current(t2);
  97430. if (B.JSArray_methods.contains$1(A._setArrayType(["alpha", "space"], t5), t6))
  97431. continue;
  97432. if (!B.JSArray_methods.any$1(t4, new A.colorClass___closure(t6)))
  97433. A.jsThrow(new self.Error("`" + t6 + "` is not a valid channel in `" + space.toString$0(0) + "`."));
  97434. }
  97435. color = $self.toSpace$1(space);
  97436. changedValue = new A.colorClass__closure_changedValue(color, options);
  97437. $label0$2: {
  97438. _0_2 = B.HslColorSpace_gsm0 === space;
  97439. if (_0_2 && spaceSetExplicitly) {
  97440. changedColor = A.SassColor_SassColor$hsl0(changedValue.call$1(_s3_), changedValue.call$1(_s10_), changedValue.call$1(_s9_1), changedValue.call$1(_s5_0));
  97441. break $label0$2;
  97442. }
  97443. if (_0_2) {
  97444. t2 = t1.get$hue(options);
  97445. t4 = $.$get$_isNull();
  97446. if (A._asBool(t4.call$1(t2)))
  97447. A.warnForDeprecationFromApi(_s105_, B.Deprecation_FIw);
  97448. else if (A._asBool(t4.call$1(t1.get$saturation(options))))
  97449. A.warnForDeprecationFromApi("Passing `saturation: null` without setting `space` is deprecated.\nMore info: https://sass-lang.com/d/color-4-api", B.Deprecation_FIw);
  97450. else if (A._asBool(t4.call$1(t1.get$lightness(options))))
  97451. A.warnForDeprecationFromApi("Passing `lightness: null` without setting `space` is deprecated.\nMore info: https://sass-lang.com/d/color-4-api", B.Deprecation_FIw);
  97452. if (A._asBool(t4.call$1(t1.get$alpha(options))))
  97453. A.warnForDeprecationFromApi(_s106_, B.Deprecation_mBb);
  97454. t2 = t1.get$hue(options);
  97455. if (t2 == null)
  97456. t2 = color.channel$1(0, _s3_);
  97457. t4 = t1.get$saturation(options);
  97458. if (t4 == null)
  97459. t4 = color.channel$1(0, _s10_);
  97460. t5 = t1.get$lightness(options);
  97461. if (t5 == null)
  97462. t5 = color.channel$1(0, _s9_1);
  97463. t1 = t1.get$alpha(options);
  97464. changedColor = A.SassColor_SassColor$hsl0(t2, t4, t5, t1 == null ? color.channel$1(0, _s5_0) : t1);
  97465. break $label0$2;
  97466. }
  97467. _0_4 = B.HwbColorSpace_06z0 === space;
  97468. if (_0_4 && spaceSetExplicitly) {
  97469. changedColor = A.SassColor_SassColor$hwb0(changedValue.call$1(_s3_), changedValue.call$1(_s9_), changedValue.call$1(_s9_0), changedValue.call$1(_s5_0));
  97470. break $label0$2;
  97471. }
  97472. if (_0_4) {
  97473. t2 = t1.get$hue(options);
  97474. t4 = $.$get$_isNull();
  97475. if (A._asBool(t4.call$1(t2)))
  97476. A.warnForDeprecationFromApi(_s105_, B.Deprecation_FIw);
  97477. else if (A._asBool(t4.call$1(t1.get$whiteness(options))))
  97478. A.warnForDeprecationFromApi("Passing `whiteness: null` without setting `space` is deprecated.\nMore info: https://sass-lang.com/d/color-4-api", B.Deprecation_FIw);
  97479. else if (A._asBool(t4.call$1(t1.get$blackness(options))))
  97480. A.warnForDeprecationFromApi("Passing `blackness: null` without setting `space` is deprecated.\nMore info: https://sass-lang.com/d/color-4-api", B.Deprecation_FIw);
  97481. if (A._asBool(t4.call$1(t1.get$alpha(options))))
  97482. A.warnForDeprecationFromApi(_s106_, B.Deprecation_mBb);
  97483. t2 = t1.get$hue(options);
  97484. if (t2 == null)
  97485. t2 = color.channel$1(0, _s3_);
  97486. t4 = t1.get$whiteness(options);
  97487. if (t4 == null)
  97488. t4 = color.channel$1(0, _s9_);
  97489. t5 = t1.get$blackness(options);
  97490. if (t5 == null)
  97491. t5 = color.channel$1(0, _s9_0);
  97492. t1 = t1.get$alpha(options);
  97493. changedColor = A.SassColor_SassColor$hwb0(t2, t4, t5, t1 == null ? color.channel$1(0, _s5_0) : t1);
  97494. break $label0$2;
  97495. }
  97496. _0_6 = B.RgbColorSpace_mlz0 === space;
  97497. if (_0_6 && spaceSetExplicitly) {
  97498. changedColor = A.SassColor_SassColor$rgbInternal0(changedValue.call$1(_s3_0), changedValue.call$1(_s5_), changedValue.call$1(_s4_), changedValue.call$1(_s5_0), _null);
  97499. break $label0$2;
  97500. }
  97501. if (_0_6) {
  97502. t2 = t1.get$red(options);
  97503. t4 = $.$get$_isNull();
  97504. if (A._asBool(t4.call$1(t2)))
  97505. A.warnForDeprecationFromApi("Passing `red: null` without setting `space` is deprecated.\nMore info: https://sass-lang.com/d/color-4-api", B.Deprecation_FIw);
  97506. else if (A._asBool(t4.call$1(t1.get$green(options))))
  97507. A.warnForDeprecationFromApi("Passing `green: null` without setting `space` is deprecated.\nMore info: https://sass-lang.com/d/color-4-api", B.Deprecation_FIw);
  97508. else if (A._asBool(t4.call$1(t1.get$blue(options))))
  97509. A.warnForDeprecationFromApi("Passing `blue: null` without setting `space` is deprecated.\nMore info: https://sass-lang.com/d/color-4-api", B.Deprecation_FIw);
  97510. if (A._asBool(t4.call$1(t1.get$alpha(options))))
  97511. A.warnForDeprecationFromApi(_s106_, B.Deprecation_mBb);
  97512. t2 = t1.get$red(options);
  97513. if (t2 == null)
  97514. t2 = color.channel$1(0, _s3_0);
  97515. t4 = t1.get$green(options);
  97516. if (t4 == null)
  97517. t4 = color.channel$1(0, _s5_);
  97518. t5 = t1.get$blue(options);
  97519. if (t5 == null)
  97520. t5 = color.channel$1(0, _s4_);
  97521. t1 = t1.get$alpha(options);
  97522. changedColor = A.SassColor_SassColor$rgbInternal0(t2, t4, t5, t1 == null ? color.channel$1(0, _s5_0) : t1, _null);
  97523. break $label0$2;
  97524. }
  97525. if (B.LabColorSpace_IF20 === space) {
  97526. changedColor = A.SassColor$_forSpace0(B.LabColorSpace_IF20, changedValue.call$1(_s9_1), changedValue.call$1("a"), changedValue.call$1("b"), changedValue.call$1(_s5_0), _null);
  97527. break $label0$2;
  97528. }
  97529. if (B.OklabColorSpace_yrt0 === space) {
  97530. changedColor = A.SassColor$_forSpace0(B.OklabColorSpace_yrt0, changedValue.call$1(_s9_1), changedValue.call$1("a"), changedValue.call$1("b"), changedValue.call$1(_s5_0), _null);
  97531. break $label0$2;
  97532. }
  97533. if (B.LchColorSpace_wv80 === space) {
  97534. changedColor = A.SassColor_SassColor$forSpaceInternal0(B.LchColorSpace_wv80, changedValue.call$1(_s9_1), changedValue.call$1("chroma"), changedValue.call$1(_s3_), changedValue.call$1(_s5_0));
  97535. break $label0$2;
  97536. }
  97537. if (B.OklchColorSpace_li80 === space) {
  97538. changedColor = A.SassColor_SassColor$forSpaceInternal0(B.OklchColorSpace_li80, changedValue.call$1(_s9_1), changedValue.call$1("chroma"), changedValue.call$1(_s3_), changedValue.call$1(_s5_0));
  97539. break $label0$2;
  97540. }
  97541. if (B.A98RgbColorSpace_bdu0 === space) {
  97542. changedColor = A.SassColor$_forSpace0(B.A98RgbColorSpace_bdu0, changedValue.call$1(_s3_0), changedValue.call$1(_s5_), changedValue.call$1(_s4_), changedValue.call$1(_s5_0), _null);
  97543. break $label0$2;
  97544. }
  97545. if (B.DisplayP3ColorSpace_NQk0 === space) {
  97546. changedColor = A.SassColor$_forSpace0(B.DisplayP3ColorSpace_NQk0, changedValue.call$1(_s3_0), changedValue.call$1(_s5_), changedValue.call$1(_s4_), changedValue.call$1(_s5_0), _null);
  97547. break $label0$2;
  97548. }
  97549. if (B.ProphotoRgbColorSpace_KiG0 === space) {
  97550. changedColor = A.SassColor$_forSpace0(B.ProphotoRgbColorSpace_KiG0, changedValue.call$1(_s3_0), changedValue.call$1(_s5_), changedValue.call$1(_s4_), changedValue.call$1(_s5_0), _null);
  97551. break $label0$2;
  97552. }
  97553. if (B.Rec2020ColorSpace_2jN0 === space) {
  97554. changedColor = A.SassColor$_forSpace0(B.Rec2020ColorSpace_2jN0, changedValue.call$1(_s3_0), changedValue.call$1(_s5_), changedValue.call$1(_s4_), changedValue.call$1(_s5_0), _null);
  97555. break $label0$2;
  97556. }
  97557. if (B.SrgbColorSpace_AD40 === space) {
  97558. changedColor = A.SassColor$_forSpace0(B.SrgbColorSpace_AD40, changedValue.call$1(_s3_0), changedValue.call$1(_s5_), changedValue.call$1(_s4_), changedValue.call$1(_s5_0), _null);
  97559. break $label0$2;
  97560. }
  97561. if (B.SrgbLinearColorSpace_sEs0 === space) {
  97562. changedColor = A.SassColor$_forSpace0(B.SrgbLinearColorSpace_sEs0, changedValue.call$1(_s3_0), changedValue.call$1(_s5_), changedValue.call$1(_s4_), changedValue.call$1(_s5_0), _null);
  97563. break $label0$2;
  97564. }
  97565. if (B.XyzD50ColorSpace_2No0 === space) {
  97566. changedColor = A.SassColor_SassColor$forSpaceInternal0(space, changedValue.call$1("x"), changedValue.call$1("y"), changedValue.call$1("z"), changedValue.call$1(_s5_0));
  97567. break $label0$2;
  97568. }
  97569. if (B.XyzD65ColorSpace_4CA0 === space) {
  97570. changedColor = A.SassColor_SassColor$forSpaceInternal0(space, changedValue.call$1("x"), changedValue.call$1("y"), changedValue.call$1("z"), changedValue.call$1(_s5_0));
  97571. break $label0$2;
  97572. }
  97573. throw A.wrapException("No space set");
  97574. }
  97575. return changedColor.toSpace$1(t3);
  97576. },
  97577. $signature: 410
  97578. };
  97579. A.colorClass___closure.prototype = {
  97580. call$1(channel) {
  97581. return channel.name === this.key;
  97582. },
  97583. $signature: 71
  97584. };
  97585. A.colorClass__closure_changedValue.prototype = {
  97586. call$1(channel) {
  97587. var t2,
  97588. t1 = this.options;
  97589. if (channel in t1) {
  97590. t2 = t1[channel];
  97591. t2 = !A._asBool($.$get$_isUndefined().call$1(t2));
  97592. } else
  97593. t2 = false;
  97594. return t2 ? t1[channel] : this.color.channel$1(0, channel);
  97595. },
  97596. $signature: 411
  97597. };
  97598. A.colorClass__closure9.prototype = {
  97599. call$3($self, color2, options) {
  97600. var interpolationMethod, t2,
  97601. t1 = options == null,
  97602. _1_0 = t1 ? null : J.get$method$x(options);
  97603. if (_1_0 != null)
  97604. interpolationMethod = A.InterpolationMethod$0($self._color0$_space, A.EnumByName_byName(B.List_23h, _1_0));
  97605. else {
  97606. t2 = $self._color0$_space;
  97607. interpolationMethod = !t2.get$isPolarInternal() ? A.InterpolationMethod$0(t2, null) : A.InterpolationMethod$0(t2, B.HueInterpolationMethod_00);
  97608. }
  97609. return $self.interpolate$3$weight(color2, interpolationMethod, t1 ? null : J.get$weight$x(options));
  97610. },
  97611. call$2($self, color2) {
  97612. return this.call$3($self, color2, null);
  97613. },
  97614. "call*": "call$3",
  97615. $requiredArgCount: 2,
  97616. $defaultValues() {
  97617. return [null];
  97618. },
  97619. $signature: 412
  97620. };
  97621. A.colorClass__closure10.prototype = {
  97622. call$1($self) {
  97623. A.warnForDeprecationFromApi("red is deprecated, use `channel` instead.\nMore info: https://sass-lang.com/d/color-4-api", B.Deprecation_FIw);
  97624. return B.JSNumber_methods.round$0($self._color0$_legacyChannel$2(B.RgbColorSpace_mlz0, "red"));
  97625. },
  97626. $signature: 40
  97627. };
  97628. A.colorClass__closure11.prototype = {
  97629. call$1($self) {
  97630. A.warnForDeprecationFromApi("green is deprecated, use `channel` instead.\nMore info: https://sass-lang.com/d/color-4-api", B.Deprecation_FIw);
  97631. return B.JSNumber_methods.round$0($self._color0$_legacyChannel$2(B.RgbColorSpace_mlz0, "green"));
  97632. },
  97633. $signature: 40
  97634. };
  97635. A.colorClass__closure12.prototype = {
  97636. call$1($self) {
  97637. A.warnForDeprecationFromApi("blue is deprecated, use `channel` instead.\nMore info: https://sass-lang.com/d/color-4-api", B.Deprecation_FIw);
  97638. return B.JSNumber_methods.round$0($self._color0$_legacyChannel$2(B.RgbColorSpace_mlz0, "blue"));
  97639. },
  97640. $signature: 40
  97641. };
  97642. A.colorClass__closure13.prototype = {
  97643. call$1($self) {
  97644. A.warnForDeprecationFromApi("hue is deprecated, use `channel` instead.\nMore info: https://sass-lang.com/d/color-4-api", B.Deprecation_FIw);
  97645. return $self._color0$_legacyChannel$2(B.HslColorSpace_gsm0, "hue");
  97646. },
  97647. $signature: 28
  97648. };
  97649. A.colorClass__closure14.prototype = {
  97650. call$1($self) {
  97651. A.warnForDeprecationFromApi("saturation is deprecated, use `channel` instead.\nMore info: https://sass-lang.com/d/color-4-api", B.Deprecation_FIw);
  97652. return $self._color0$_legacyChannel$2(B.HslColorSpace_gsm0, "saturation");
  97653. },
  97654. $signature: 28
  97655. };
  97656. A.colorClass__closure15.prototype = {
  97657. call$1($self) {
  97658. A.warnForDeprecationFromApi("lightness is deprecated, use `channel` instead.\nMore info: https://sass-lang.com/d/color-4-api", B.Deprecation_FIw);
  97659. return $self._color0$_legacyChannel$2(B.HslColorSpace_gsm0, "lightness");
  97660. },
  97661. $signature: 28
  97662. };
  97663. A.colorClass__closure16.prototype = {
  97664. call$1($self) {
  97665. A.warnForDeprecationFromApi("whiteness is deprecated, use `channel` instead.\nMore info: https://sass-lang.com/d/color-4-api", B.Deprecation_FIw);
  97666. return $self._color0$_legacyChannel$2(B.HwbColorSpace_06z0, "whiteness");
  97667. },
  97668. $signature: 28
  97669. };
  97670. A.colorClass__closure17.prototype = {
  97671. call$1($self) {
  97672. A.warnForDeprecationFromApi("blackness is deprecated, use `channel` instead.\nMore info: https://sass-lang.com/d/color-4-api", B.Deprecation_FIw);
  97673. return $self._color0$_legacyChannel$2(B.HwbColorSpace_06z0, "blackness");
  97674. },
  97675. $signature: 28
  97676. };
  97677. A.colorClass__closure18.prototype = {
  97678. call$1($self) {
  97679. var t1 = $self.alphaOrNull;
  97680. return t1 == null ? 0 : t1;
  97681. },
  97682. $signature: 28
  97683. };
  97684. A.colorClass__closure19.prototype = {
  97685. call$1($self) {
  97686. return $self._color0$_space.name;
  97687. },
  97688. $signature: 413
  97689. };
  97690. A.colorClass__closure20.prototype = {
  97691. call$1($self) {
  97692. return $self._color0$_space.get$isLegacyInternal();
  97693. },
  97694. $signature: 414
  97695. };
  97696. A.colorClass__closure21.prototype = {
  97697. call$1($self) {
  97698. return new self.immutable.List($self.get$channelsOrNull());
  97699. },
  97700. $signature: 212
  97701. };
  97702. A.colorClass__closure22.prototype = {
  97703. call$1($self) {
  97704. return new self.immutable.List($self.get$channels());
  97705. },
  97706. $signature: 212
  97707. };
  97708. A._Channels.prototype = {};
  97709. A._ConstructionOptions.prototype = {};
  97710. A._ChannelOptions.prototype = {};
  97711. A._ToGamutOptions.prototype = {};
  97712. A._InterpolationOptions.prototype = {};
  97713. A._NodeSassColor.prototype = {};
  97714. A.legacyColorClass_closure.prototype = {
  97715. call$6(thisArg, redOrArgb, green, blue, alpha, dartValue) {
  97716. var red, t1, t2, t3, t4;
  97717. if (dartValue != null) {
  97718. J.set$dartValue$x(thisArg, dartValue);
  97719. return;
  97720. }
  97721. if (green == null || blue == null) {
  97722. A._asInt(redOrArgb);
  97723. alpha = B.JSInt_methods._shrOtherPositive$1(redOrArgb, 24) / 255;
  97724. red = B.JSInt_methods.$mod(B.JSInt_methods._shrOtherPositive$1(redOrArgb, 16), 256);
  97725. green = B.JSInt_methods.$mod(B.JSInt_methods._shrOtherPositive$1(redOrArgb, 8), 256);
  97726. blue = B.JSInt_methods.$mod(redOrArgb, 256);
  97727. } else {
  97728. redOrArgb.toString;
  97729. red = redOrArgb;
  97730. }
  97731. t1 = A.fuzzyRound0(isNaN(red) ? 0 : B.JSNumber_methods.clamp$2(red, 0, 255));
  97732. t2 = A.fuzzyRound0(isNaN(green) ? 0 : B.JSNumber_methods.clamp$2(green, 0, 255));
  97733. t3 = A.fuzzyRound0(isNaN(blue) ? 0 : B.JSNumber_methods.clamp$2(blue, 0, 255));
  97734. t4 = A.NullableExtension_andThen0(alpha, new A.legacyColorClass__closure());
  97735. J.set$dartValue$x(thisArg, A.SassColor_SassColor$rgbInternal0(t1, t2, t3, t4 == null ? 1 : t4, null));
  97736. },
  97737. call$2(thisArg, redOrArgb) {
  97738. var _null = null;
  97739. return this.call$6(thisArg, redOrArgb, _null, _null, _null, _null);
  97740. },
  97741. call$3(thisArg, redOrArgb, green) {
  97742. return this.call$6(thisArg, redOrArgb, green, null, null, null);
  97743. },
  97744. call$4(thisArg, redOrArgb, green, blue) {
  97745. return this.call$6(thisArg, redOrArgb, green, blue, null, null);
  97746. },
  97747. call$5(thisArg, redOrArgb, green, blue, alpha) {
  97748. return this.call$6(thisArg, redOrArgb, green, blue, alpha, null);
  97749. },
  97750. "call*": "call$6",
  97751. $requiredArgCount: 2,
  97752. $defaultValues() {
  97753. return [null, null, null, null];
  97754. },
  97755. $signature: 416
  97756. };
  97757. A.legacyColorClass__closure.prototype = {
  97758. call$1(alpha) {
  97759. return isNaN(alpha) ? 0 : B.JSNumber_methods.clamp$2(alpha, 0, 1);
  97760. },
  97761. $signature: 417
  97762. };
  97763. A.legacyColorClass_closure0.prototype = {
  97764. call$1(thisArg) {
  97765. return B.JSNumber_methods.round$0(J.get$dartValue$x(thisArg)._color0$_legacyChannel$2(B.RgbColorSpace_mlz0, "red"));
  97766. },
  97767. $signature: 124
  97768. };
  97769. A.legacyColorClass_closure1.prototype = {
  97770. call$1(thisArg) {
  97771. return B.JSNumber_methods.round$0(J.get$dartValue$x(thisArg)._color0$_legacyChannel$2(B.RgbColorSpace_mlz0, "green"));
  97772. },
  97773. $signature: 124
  97774. };
  97775. A.legacyColorClass_closure2.prototype = {
  97776. call$1(thisArg) {
  97777. return B.JSNumber_methods.round$0(J.get$dartValue$x(thisArg)._color0$_legacyChannel$2(B.RgbColorSpace_mlz0, "blue"));
  97778. },
  97779. $signature: 124
  97780. };
  97781. A.legacyColorClass_closure3.prototype = {
  97782. call$1(thisArg) {
  97783. var t1 = J.get$dartValue$x(thisArg).alphaOrNull;
  97784. return t1 == null ? 0 : t1;
  97785. },
  97786. $signature: 419
  97787. };
  97788. A.legacyColorClass_closure4.prototype = {
  97789. call$2(thisArg, value) {
  97790. var t1 = J.getInterceptor$x(thisArg),
  97791. t2 = t1.get$dartValue(thisArg);
  97792. t1.set$dartValue(thisArg, t2.changeRgb$1$red(A.fuzzyRound0(isNaN(value) ? 0 : B.JSNumber_methods.clamp$2(value, 0, 255))));
  97793. },
  97794. $signature: 94
  97795. };
  97796. A.legacyColorClass_closure5.prototype = {
  97797. call$2(thisArg, value) {
  97798. var t1 = J.getInterceptor$x(thisArg),
  97799. t2 = t1.get$dartValue(thisArg);
  97800. t1.set$dartValue(thisArg, t2.changeRgb$1$green(A.fuzzyRound0(isNaN(value) ? 0 : B.JSNumber_methods.clamp$2(value, 0, 255))));
  97801. },
  97802. $signature: 94
  97803. };
  97804. A.legacyColorClass_closure6.prototype = {
  97805. call$2(thisArg, value) {
  97806. var t1 = J.getInterceptor$x(thisArg),
  97807. t2 = t1.get$dartValue(thisArg);
  97808. t1.set$dartValue(thisArg, t2.changeRgb$1$blue(A.fuzzyRound0(isNaN(value) ? 0 : B.JSNumber_methods.clamp$2(value, 0, 255))));
  97809. },
  97810. $signature: 94
  97811. };
  97812. A.legacyColorClass_closure7.prototype = {
  97813. call$2(thisArg, value) {
  97814. var t1 = J.getInterceptor$x(thisArg),
  97815. t2 = t1.get$dartValue(thisArg);
  97816. t1.set$dartValue(thisArg, t2.changeRgb$1$alpha(isNaN(value) ? 0 : B.JSNumber_methods.clamp$2(value, 0, 1)));
  97817. },
  97818. $signature: 94
  97819. };
  97820. A.SassColor0.prototype = {
  97821. get$channels() {
  97822. var t2, t3,
  97823. t1 = this.channel0OrNull;
  97824. if (t1 == null)
  97825. t1 = 0;
  97826. t2 = this.channel1OrNull;
  97827. if (t2 == null)
  97828. t2 = 0;
  97829. t3 = this.channel2OrNull;
  97830. return A.List_List$unmodifiable([t1, t2, t3 == null ? 0 : t3], type$.double);
  97831. },
  97832. get$channelsOrNull() {
  97833. return A.List_List$unmodifiable([this.channel0OrNull, this.channel1OrNull, this.channel2OrNull], type$.nullable_double);
  97834. },
  97835. get$isChannel0Powerless() {
  97836. var t1, t2, _this = this,
  97837. _0_0 = _this._color0$_space;
  97838. $label0$0: {
  97839. if (B.HslColorSpace_gsm0 === _0_0) {
  97840. t1 = _this.channel1OrNull;
  97841. t1 = A.fuzzyEquals0(t1 == null ? 0 : t1, 0);
  97842. break $label0$0;
  97843. }
  97844. if (B.HwbColorSpace_06z0 === _0_0) {
  97845. t1 = _this.channel1OrNull;
  97846. if (t1 == null)
  97847. t1 = 0;
  97848. t2 = _this.channel2OrNull;
  97849. t1 += t2 == null ? 0 : t2;
  97850. t1 = t1 > 100 || A.fuzzyEquals0(t1, 100);
  97851. break $label0$0;
  97852. }
  97853. t1 = false;
  97854. break $label0$0;
  97855. }
  97856. return t1;
  97857. },
  97858. get$isChannel2Powerless() {
  97859. var t1,
  97860. _0_0 = this._color0$_space;
  97861. $label0$0: {
  97862. if (B.LchColorSpace_wv80 === _0_0 || B.OklchColorSpace_li80 === _0_0) {
  97863. t1 = this.channel1OrNull;
  97864. t1 = A.fuzzyEquals0(t1 == null ? 0 : t1, 0);
  97865. break $label0$0;
  97866. }
  97867. t1 = false;
  97868. break $label0$0;
  97869. }
  97870. return t1;
  97871. },
  97872. get$isInGamut() {
  97873. var t2, t3, _this = this,
  97874. t1 = _this._color0$_space;
  97875. if (!t1.get$isBoundedInternal())
  97876. return true;
  97877. t2 = _this.channel0OrNull;
  97878. if (t2 == null)
  97879. t2 = 0;
  97880. t1 = t1._space$_channels;
  97881. t3 = false;
  97882. if (_this._color0$_isChannelInGamut$2(t2, t1[0])) {
  97883. t2 = _this.channel1OrNull;
  97884. if (t2 == null)
  97885. t2 = 0;
  97886. if (_this._color0$_isChannelInGamut$2(t2, t1[1])) {
  97887. t2 = _this.channel2OrNull;
  97888. if (t2 == null)
  97889. t2 = 0;
  97890. t1 = _this._color0$_isChannelInGamut$2(t2, t1[2]);
  97891. } else
  97892. t1 = t3;
  97893. } else
  97894. t1 = t3;
  97895. return t1;
  97896. },
  97897. _color0$_isChannelInGamut$2(value, channel) {
  97898. var min, max, t1;
  97899. $label0$0: {
  97900. if (channel instanceof A.LinearChannel0) {
  97901. min = channel.min;
  97902. max = channel.max;
  97903. if (value < max || A.fuzzyEquals0(value, max))
  97904. t1 = value > min || A.fuzzyEquals0(value, min);
  97905. else
  97906. t1 = false;
  97907. break $label0$0;
  97908. }
  97909. t1 = true;
  97910. break $label0$0;
  97911. }
  97912. return t1;
  97913. },
  97914. accept$1$1(visitor) {
  97915. return visitor.visitColor$1(this);
  97916. },
  97917. accept$1(visitor) {
  97918. return this.accept$1$1(visitor, type$.dynamic);
  97919. },
  97920. assertColor$1($name) {
  97921. return this;
  97922. },
  97923. assertLegacy$1($name) {
  97924. if (this._color0$_space.get$isLegacyInternal())
  97925. return;
  97926. throw A.wrapException(A.SassScriptException$0("Expected " + this.toString$0(0) + string$.x20to_be, $name));
  97927. },
  97928. channel$1(_, channel) {
  97929. var t1, _this = this,
  97930. channels = _this._color0$_space._space$_channels;
  97931. if (channel === channels[0].name) {
  97932. t1 = _this.channel0OrNull;
  97933. return t1 == null ? 0 : t1;
  97934. }
  97935. if (channel === channels[1].name) {
  97936. t1 = _this.channel1OrNull;
  97937. return t1 == null ? 0 : t1;
  97938. }
  97939. if (channel === channels[2].name) {
  97940. t1 = _this.channel2OrNull;
  97941. return t1 == null ? 0 : t1;
  97942. }
  97943. if (channel === "alpha") {
  97944. t1 = _this.alphaOrNull;
  97945. return t1 == null ? 0 : t1;
  97946. }
  97947. throw A.wrapException(A.SassScriptException$0("Color " + _this.toString$0(0) + " doesn't have a channel named \"" + channel + '".', null));
  97948. },
  97949. isChannelMissing$3$channelName$colorName(channel, channelName, colorName) {
  97950. var _this = this,
  97951. channels = _this._color0$_space._space$_channels;
  97952. if (channel === channels[0].name)
  97953. return _this.channel0OrNull == null;
  97954. if (channel === channels[1].name)
  97955. return _this.channel1OrNull == null;
  97956. if (channel === channels[2].name)
  97957. return _this.channel2OrNull == null;
  97958. if (channel === "alpha")
  97959. return _this.alphaOrNull == null;
  97960. throw A.wrapException(A.SassScriptException$0("Color " + _this.toString$0(0) + " doesn't have a channel named \"" + channel + '".', channelName));
  97961. },
  97962. isChannelMissing$1(channel) {
  97963. return this.isChannelMissing$3$channelName$colorName(channel, null, null);
  97964. },
  97965. isChannelPowerless$3$channelName$colorName(channel, channelName, colorName) {
  97966. var _this = this,
  97967. channels = _this._color0$_space._space$_channels;
  97968. if (channel === channels[0].name)
  97969. return _this.get$isChannel0Powerless();
  97970. if (channel === channels[1].name)
  97971. return false;
  97972. if (channel === channels[2].name)
  97973. return _this.get$isChannel2Powerless();
  97974. if (channel === "alpha")
  97975. return false;
  97976. throw A.wrapException(A.SassScriptException$0("Color " + _this.toString$0(0) + " doesn't have a channel named \"" + channel + '".', channelName));
  97977. },
  97978. isChannelPowerless$1(channel) {
  97979. return this.isChannelPowerless$3$channelName$colorName(channel, null, null);
  97980. },
  97981. _color0$_legacyChannel$2(space, channel) {
  97982. if (!this._color0$_space.get$isLegacyInternal())
  97983. throw A.wrapException(A.SassScriptException$0("color." + channel + string$.x28__is_oc, null));
  97984. return this.toSpace$1(space).channel$1(0, channel);
  97985. },
  97986. toSpace$2$legacyMissing(space, legacyMissing) {
  97987. var t2, converted, t3, t4, _this = this,
  97988. t1 = _this._color0$_space;
  97989. if (t1 === space)
  97990. return _this;
  97991. t2 = _this.alphaOrNull;
  97992. if (t2 == null)
  97993. t2 = 0;
  97994. converted = t1.convert$5(space, _this.channel0OrNull, _this.channel1OrNull, _this.channel2OrNull, t2);
  97995. t1 = false;
  97996. if (!legacyMissing)
  97997. if (converted._color0$_space.get$isLegacyInternal())
  97998. t1 = converted.channel0OrNull == null || converted.channel1OrNull == null || converted.channel2OrNull == null || converted.alphaOrNull == null;
  97999. if (t1) {
  98000. t1 = converted.channel0OrNull;
  98001. if (t1 == null)
  98002. t1 = 0;
  98003. t2 = converted.channel1OrNull;
  98004. if (t2 == null)
  98005. t2 = 0;
  98006. t3 = converted.channel2OrNull;
  98007. if (t3 == null)
  98008. t3 = 0;
  98009. t4 = converted.alphaOrNull;
  98010. if (t4 == null)
  98011. t4 = 0;
  98012. t4 = A.SassColor_SassColor$forSpaceInternal0(converted._color0$_space, t1, t2, t3, t4);
  98013. t1 = t4;
  98014. } else
  98015. t1 = converted;
  98016. return t1;
  98017. },
  98018. toSpace$1(space) {
  98019. return this.toSpace$2$legacyMissing(space, true);
  98020. },
  98021. changeRgb$4$alpha$blue$green$red(alpha, blue, green, red) {
  98022. var t1, t2, t3, t4, _this = this, _null = null;
  98023. if (!_this._color0$_space.get$isLegacyInternal())
  98024. throw A.wrapException(A.SassScriptException$0("color.changeRgb() is only supported for legacy colors. Please use color.changeChannels() instead with an explicit $space argument.", _null));
  98025. t1 = red == null ? _null : red;
  98026. if (t1 == null)
  98027. t1 = _this.channel$1(0, "red");
  98028. t2 = green == null ? _null : green;
  98029. if (t2 == null)
  98030. t2 = _this.channel$1(0, "green");
  98031. t3 = blue == null ? _null : blue;
  98032. if (t3 == null)
  98033. t3 = _this.channel$1(0, "blue");
  98034. t4 = alpha == null ? _null : alpha;
  98035. if (t4 == null) {
  98036. t4 = _this.alphaOrNull;
  98037. if (t4 == null)
  98038. t4 = 0;
  98039. }
  98040. return A.SassColor_SassColor$rgbInternal0(t1, t2, t3, t4, _null);
  98041. },
  98042. changeRgb$1$alpha(alpha) {
  98043. return this.changeRgb$4$alpha$blue$green$red(alpha, null, null, null);
  98044. },
  98045. changeRgb$1$blue(blue) {
  98046. return this.changeRgb$4$alpha$blue$green$red(null, blue, null, null);
  98047. },
  98048. changeRgb$1$green(green) {
  98049. return this.changeRgb$4$alpha$blue$green$red(null, null, green, null);
  98050. },
  98051. changeRgb$1$red(red) {
  98052. return this.changeRgb$4$alpha$blue$green$red(null, null, null, red);
  98053. },
  98054. changeHsl$3$hue$lightness$saturation(hue, lightness, saturation) {
  98055. var t2, t3, t4, t5, _this = this, _null = null,
  98056. t1 = _this._color0$_space;
  98057. if (!t1.get$isLegacyInternal())
  98058. throw A.wrapException(A.SassScriptException$0(string$.color_c, _null));
  98059. t2 = hue == null ? _null : hue;
  98060. if (t2 == null)
  98061. t2 = _this._color0$_legacyChannel$2(B.HslColorSpace_gsm0, "hue");
  98062. t3 = saturation == null ? _null : saturation;
  98063. if (t3 == null)
  98064. t3 = _this._color0$_legacyChannel$2(B.HslColorSpace_gsm0, "saturation");
  98065. t4 = lightness == null ? _null : lightness;
  98066. if (t4 == null)
  98067. t4 = _this._color0$_legacyChannel$2(B.HslColorSpace_gsm0, "lightness");
  98068. t5 = _this.alphaOrNull;
  98069. if (t5 == null)
  98070. t5 = 0;
  98071. return A.SassColor_SassColor$hsl0(t2, t3, t4, t5).toSpace$1(t1);
  98072. },
  98073. changeHsl$1$saturation(saturation) {
  98074. return this.changeHsl$3$hue$lightness$saturation(null, null, saturation);
  98075. },
  98076. changeHsl$1$lightness(lightness) {
  98077. return this.changeHsl$3$hue$lightness$saturation(null, lightness, null);
  98078. },
  98079. changeHsl$1$hue(hue) {
  98080. return this.changeHsl$3$hue$lightness$saturation(hue, null, null);
  98081. },
  98082. changeAlpha$1(alpha) {
  98083. var t2, t3, _this = this,
  98084. t1 = _this.channel0OrNull;
  98085. if (t1 == null)
  98086. t1 = 0;
  98087. t2 = _this.channel1OrNull;
  98088. if (t2 == null)
  98089. t2 = 0;
  98090. t3 = _this.channel2OrNull;
  98091. if (t3 == null)
  98092. t3 = 0;
  98093. return A.SassColor_SassColor$forSpaceInternal0(_this._color0$_space, t1, t2, t3, alpha);
  98094. },
  98095. interpolate$4$legacyMissing$weight(other, method, legacyMissing, weight) {
  98096. var t1, color1, color2, missing1_0, missing1_1, missing1_2, missing2_0, missing2_1, missing2_2, channel1_0, channel1_1, channel1_2, channel2_0, channel2_1, channel2_2, alpha1, t2, t3, alpha10, alpha2, alpha20, thisMultiplier, t4, t5, otherMultiplier, mixedAlpha, mixed0, mixed1, mixed2, _this = this, _null = null;
  98097. if (weight == null)
  98098. weight = 0.5;
  98099. if (A.fuzzyEquals0(weight, 0))
  98100. return other;
  98101. if (A.fuzzyEquals0(weight, 1))
  98102. return _this;
  98103. t1 = method.space;
  98104. color1 = _this.toSpace$1(t1);
  98105. color2 = other.toSpace$1(t1);
  98106. if (weight < 0 || weight > 1)
  98107. throw A.wrapException(A.RangeError$range(weight, 0, 1, "weight", _null));
  98108. missing1_0 = _this._color0$_isAnalogousChannelMissing$3(_this, color1, 0);
  98109. missing1_1 = _this._color0$_isAnalogousChannelMissing$3(_this, color1, 1);
  98110. missing1_2 = _this._color0$_isAnalogousChannelMissing$3(_this, color1, 2);
  98111. missing2_0 = _this._color0$_isAnalogousChannelMissing$3(other, color2, 0);
  98112. missing2_1 = _this._color0$_isAnalogousChannelMissing$3(other, color2, 1);
  98113. missing2_2 = _this._color0$_isAnalogousChannelMissing$3(other, color2, 2);
  98114. channel1_0 = (missing1_0 ? color2 : color1).channel0OrNull;
  98115. if (channel1_0 == null)
  98116. channel1_0 = 0;
  98117. channel1_1 = (missing1_1 ? color2 : color1).channel1OrNull;
  98118. if (channel1_1 == null)
  98119. channel1_1 = 0;
  98120. channel1_2 = (missing1_2 ? color2 : color1).channel2OrNull;
  98121. if (channel1_2 == null)
  98122. channel1_2 = 0;
  98123. channel2_0 = (missing2_0 ? color1 : color2).channel0OrNull;
  98124. if (channel2_0 == null)
  98125. channel2_0 = 0;
  98126. channel2_1 = (missing2_1 ? color1 : color2).channel1OrNull;
  98127. if (channel2_1 == null)
  98128. channel2_1 = 0;
  98129. channel2_2 = (missing2_2 ? color1 : color2).channel2OrNull;
  98130. if (channel2_2 == null)
  98131. channel2_2 = 0;
  98132. alpha1 = _this.alphaOrNull;
  98133. t2 = alpha1 == null;
  98134. if (t2) {
  98135. t3 = other.alphaOrNull;
  98136. alpha10 = t3 == null ? 0 : t3;
  98137. } else
  98138. alpha10 = alpha1;
  98139. alpha2 = other.alphaOrNull;
  98140. t3 = alpha2 == null;
  98141. if (t3)
  98142. alpha20 = t2 ? 0 : alpha1;
  98143. else
  98144. alpha20 = alpha2;
  98145. thisMultiplier = (t2 ? 1 : alpha1) * weight;
  98146. t4 = t3 ? 1 : alpha2;
  98147. t5 = 1 - weight;
  98148. otherMultiplier = t4 * t5;
  98149. mixedAlpha = t2 && t3 ? _null : alpha10 * weight + alpha20 * t5;
  98150. if (missing1_0 && missing2_0)
  98151. mixed0 = _null;
  98152. else {
  98153. t2 = mixedAlpha == null ? 1 : mixedAlpha;
  98154. mixed0 = (channel1_0 * thisMultiplier + channel2_0 * otherMultiplier) / t2;
  98155. }
  98156. if (missing1_1 && missing2_1)
  98157. mixed1 = _null;
  98158. else {
  98159. t2 = mixedAlpha == null ? 1 : mixedAlpha;
  98160. mixed1 = (channel1_1 * thisMultiplier + channel2_1 * otherMultiplier) / t2;
  98161. }
  98162. if (missing1_2 && missing2_2)
  98163. mixed2 = _null;
  98164. else {
  98165. t2 = mixedAlpha == null ? 1 : mixedAlpha;
  98166. mixed2 = (channel1_2 * thisMultiplier + channel2_2 * otherMultiplier) / t2;
  98167. }
  98168. $label0$0: {
  98169. if (B.HslColorSpace_gsm0 === t1 || B.HwbColorSpace_06z0 === t1) {
  98170. if (missing1_0 && missing2_0)
  98171. t2 = _null;
  98172. else {
  98173. t2 = method.hue;
  98174. t2.toString;
  98175. t2 = _this._color0$_interpolateHues$4(channel1_0, channel2_0, t2, weight);
  98176. }
  98177. t2 = A.SassColor_SassColor$forSpaceInternal0(t1, t2, mixed1, mixed2, mixedAlpha);
  98178. t1 = t2;
  98179. break $label0$0;
  98180. }
  98181. if (B.LchColorSpace_wv80 === t1 || B.OklchColorSpace_li80 === t1) {
  98182. if (missing1_2 && missing2_2)
  98183. t2 = _null;
  98184. else {
  98185. t2 = method.hue;
  98186. t2.toString;
  98187. t2 = _this._color0$_interpolateHues$4(channel1_2, channel2_2, t2, weight);
  98188. }
  98189. t2 = A.SassColor_SassColor$forSpaceInternal0(t1, mixed0, mixed1, t2, mixedAlpha);
  98190. t1 = t2;
  98191. break $label0$0;
  98192. }
  98193. t1 = A.SassColor_SassColor$forSpaceInternal0(t1, mixed0, mixed1, mixed2, mixedAlpha);
  98194. break $label0$0;
  98195. }
  98196. return t1.toSpace$2$legacyMissing(_this._color0$_space, legacyMissing);
  98197. },
  98198. interpolate$3$weight(other, method, weight) {
  98199. return this.interpolate$4$legacyMissing$weight(other, method, true, weight);
  98200. },
  98201. _color0$_isAnalogousChannelMissing$3(original, output, outputChannelIndex) {
  98202. var originalChannel;
  98203. if (output.get$channelsOrNull()[outputChannelIndex] == null)
  98204. return true;
  98205. if (original === output)
  98206. return false;
  98207. originalChannel = A.IterableExtension_firstWhereOrNull(original._color0$_space._space$_channels, output._color0$_space._space$_channels[outputChannelIndex].get$isAnalogous());
  98208. if (originalChannel == null)
  98209. return false;
  98210. return original.isChannelMissing$1(originalChannel.name);
  98211. },
  98212. _color0$_interpolateHues$4(hue1, hue2, method, weight) {
  98213. var _0_0, _1_0;
  98214. $label1$1: {
  98215. if (B.HueInterpolationMethod_00 === method) {
  98216. $label0$0: {
  98217. _0_0 = hue2 - hue1;
  98218. if (_0_0 > 180) {
  98219. hue1 += 360;
  98220. break $label0$0;
  98221. }
  98222. if (_0_0 < -180)
  98223. hue2 += 360;
  98224. }
  98225. break $label1$1;
  98226. }
  98227. if (B.HueInterpolationMethod_10 === method) {
  98228. $label2$2: {
  98229. _1_0 = hue2 - hue1;
  98230. if (_1_0 > 0 && _1_0 < 180) {
  98231. hue2 += 360;
  98232. break $label2$2;
  98233. }
  98234. if (_1_0 > -180 && _1_0 <= 0)
  98235. hue1 += 360;
  98236. }
  98237. break $label1$1;
  98238. }
  98239. if (B.HueInterpolationMethod_20 === method && hue2 < hue1) {
  98240. hue2 += 360;
  98241. break $label1$1;
  98242. }
  98243. if (B.HueInterpolationMethod_30 === method && hue1 < hue2) {
  98244. hue1 += 360;
  98245. break $label1$1;
  98246. }
  98247. break $label1$1;
  98248. }
  98249. return hue1 * weight + hue2 * (1 - weight);
  98250. },
  98251. plus$1(other) {
  98252. if (!(other instanceof A.SassNumber0) && !(other instanceof A.SassColor0))
  98253. return this.super$Value$plus0(other);
  98254. throw A.wrapException(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " + " + other.toString$0(0) + '".', null));
  98255. },
  98256. minus$1(other) {
  98257. if (!(other instanceof A.SassNumber0) && !(other instanceof A.SassColor0))
  98258. return this.super$Value$minus0(other);
  98259. throw A.wrapException(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " - " + other.toString$0(0) + '".', null));
  98260. },
  98261. dividedBy$1(other) {
  98262. if (!(other instanceof A.SassNumber0) && !(other instanceof A.SassColor0))
  98263. return this.super$Value$dividedBy0(other);
  98264. throw A.wrapException(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " / " + other.toString$0(0) + '".', null));
  98265. },
  98266. $eq(_, other) {
  98267. var t1, t2, _this = this;
  98268. if (other == null)
  98269. return false;
  98270. if (!(other instanceof A.SassColor0))
  98271. return false;
  98272. t1 = _this._color0$_space;
  98273. if (t1.get$isLegacyInternal()) {
  98274. t2 = other._color0$_space;
  98275. if (!t2.get$isLegacyInternal())
  98276. return false;
  98277. if (!A.fuzzyEqualsNullable0(_this.alphaOrNull, other.alphaOrNull))
  98278. return false;
  98279. if (t1 === t2)
  98280. return A.fuzzyEqualsNullable0(_this.channel0OrNull, other.channel0OrNull) && A.fuzzyEqualsNullable0(_this.channel1OrNull, other.channel1OrNull) && A.fuzzyEqualsNullable0(_this.channel2OrNull, other.channel2OrNull);
  98281. else
  98282. return _this.toSpace$1(B.RgbColorSpace_mlz0).$eq(0, other.toSpace$1(B.RgbColorSpace_mlz0));
  98283. }
  98284. return t1 === other._color0$_space && A.fuzzyEqualsNullable0(_this.channel0OrNull, other.channel0OrNull) && A.fuzzyEqualsNullable0(_this.channel1OrNull, other.channel1OrNull) && A.fuzzyEqualsNullable0(_this.channel2OrNull, other.channel2OrNull) && A.fuzzyEqualsNullable0(_this.alphaOrNull, other.alphaOrNull);
  98285. },
  98286. get$hashCode(_) {
  98287. var rgb, t2, t3, t4, t5, _this = this,
  98288. t1 = _this._color0$_space;
  98289. if (t1.get$isLegacyInternal()) {
  98290. rgb = _this.toSpace$1(B.RgbColorSpace_mlz0);
  98291. t1 = rgb.channel0OrNull;
  98292. t1 = A.fuzzyHashCode0(t1 == null ? 0 : t1);
  98293. t2 = rgb.channel1OrNull;
  98294. t2 = A.fuzzyHashCode0(t2 == null ? 0 : t2);
  98295. t3 = rgb.channel2OrNull;
  98296. t3 = A.fuzzyHashCode0(t3 == null ? 0 : t3);
  98297. t4 = _this.alphaOrNull;
  98298. return t1 ^ t2 ^ t3 ^ A.fuzzyHashCode0(t4 == null ? 0 : t4);
  98299. } else {
  98300. t1 = A.Primitives_objectHashCode(t1);
  98301. t2 = _this.channel0OrNull;
  98302. t2 = A.fuzzyHashCode0(t2 == null ? 0 : t2);
  98303. t3 = _this.channel1OrNull;
  98304. t3 = A.fuzzyHashCode0(t3 == null ? 0 : t3);
  98305. t4 = _this.channel2OrNull;
  98306. t4 = A.fuzzyHashCode0(t4 == null ? 0 : t4);
  98307. t5 = _this.alphaOrNull;
  98308. return (t1 ^ t2 ^ t3 ^ t4 ^ A.fuzzyHashCode0(t5 == null ? 0 : t5)) >>> 0;
  98309. }
  98310. }
  98311. };
  98312. A.SassColor$_forSpace_closure0.prototype = {
  98313. call$1(alpha) {
  98314. return A.fuzzyAssertRange0(alpha, 0, 1, "alpha");
  98315. },
  98316. $signature: 15
  98317. };
  98318. A._ColorFormatEnum0.prototype = {
  98319. toString$0(_) {
  98320. return "rgbFunction";
  98321. }
  98322. };
  98323. A.SpanColorFormat0.prototype = {};
  98324. A.Combinator0.prototype = {
  98325. _enumToString$0() {
  98326. return "Combinator." + this._name;
  98327. },
  98328. toString$0(_) {
  98329. return this._combinator0$_text;
  98330. }
  98331. };
  98332. A.ModifiableCssComment0.prototype = {
  98333. accept$1$1(visitor) {
  98334. return visitor.visitCssComment$1(this);
  98335. },
  98336. accept$1(visitor) {
  98337. return this.accept$1$1(visitor, type$.dynamic);
  98338. },
  98339. $isCssComment0: 1,
  98340. get$span(receiver) {
  98341. return this.span;
  98342. }
  98343. };
  98344. A.compileAsync_closure.prototype = {
  98345. call$0() {
  98346. var $async$goto = 0,
  98347. $async$completer = A._makeAsyncAwaitCompleter(type$.NodeCompileResult),
  98348. $async$returnValue, $async$self = this, t5, t6, t7, t8, t9, t10, t11, t12, t13, result, t1, t2, t3, t4;
  98349. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  98350. if ($async$errorCode === 1)
  98351. return A._asyncRethrow($async$result, $async$completer);
  98352. while (true)
  98353. switch ($async$goto) {
  98354. case 0:
  98355. // Function start
  98356. t1 = $async$self.options;
  98357. t2 = t1 == null;
  98358. t3 = t2 ? null : J.get$loadPaths$x(t1);
  98359. t4 = t2 ? null : J.get$quietDeps$x(t1);
  98360. if (t4 == null)
  98361. t4 = false;
  98362. t5 = A._parseOutputStyle0(t2 ? null : J.get$style$x(t1));
  98363. t6 = t2 ? null : J.get$verbose$x(t1);
  98364. if (t6 == null)
  98365. t6 = false;
  98366. t7 = t2 ? null : J.get$charset$x(t1);
  98367. if (t7 == null)
  98368. t7 = true;
  98369. t8 = t2 ? null : J.get$sourceMap$x(t1);
  98370. if (t8 == null)
  98371. t8 = false;
  98372. t9 = $async$self.logger;
  98373. if (t2)
  98374. t10 = null;
  98375. else {
  98376. t10 = J.get$importers$x(t1);
  98377. t10 = t10 == null ? null : J.map$1$1$ax(t10, new A.compileAsync__closure(), type$.AsyncImporter);
  98378. }
  98379. t11 = A._parseFunctions0(t2 ? null : J.get$functions$x(t1), true);
  98380. t12 = A.parseDeprecations(t9, t2 ? null : J.get$fatalDeprecations$x(t1), true);
  98381. t13 = A.parseDeprecations(t9, t2 ? null : J.get$silenceDeprecations$x(t1), false);
  98382. $async$goto = 3;
  98383. return A._asyncAwait(A.compileAsync0($async$self.path, t7, t12, t11, A.parseDeprecations(t9, t2 ? null : J.get$futureDeprecations$x(t1), false), A.AsyncImportCache$(t10, t3, null), null, null, t9, null, t4, t13, t8, t5, null, true, t6), $async$call$0);
  98384. case 3:
  98385. // returning from await.
  98386. result = $async$result;
  98387. t1 = t2 ? null : J.get$sourceMapIncludeSources$x(t1);
  98388. $async$returnValue = A._convertResult(result, t1 == null ? false : t1);
  98389. // goto return
  98390. $async$goto = 1;
  98391. break;
  98392. case 1:
  98393. // return
  98394. return A._asyncReturn($async$returnValue, $async$completer);
  98395. }
  98396. });
  98397. return A._asyncStartSync($async$call$0, $async$completer);
  98398. },
  98399. $signature: 215
  98400. };
  98401. A.compileAsync__closure.prototype = {
  98402. call$1(importer) {
  98403. return A._parseAsyncImporter(importer);
  98404. },
  98405. $signature: 216
  98406. };
  98407. A.compileStringAsync_closure.prototype = {
  98408. call$0() {
  98409. var $async$goto = 0,
  98410. $async$completer = A._makeAsyncAwaitCompleter(type$.NodeCompileResult),
  98411. $async$returnValue, $async$self = this, t7, t8, t9, t10, t11, t12, t13, t14, t15, t16, result, t1, t2, t3, t4, t5, t6;
  98412. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  98413. if ($async$errorCode === 1)
  98414. return A._asyncRethrow($async$result, $async$completer);
  98415. while (true)
  98416. switch ($async$goto) {
  98417. case 0:
  98418. // Function start
  98419. t1 = $async$self.options;
  98420. t2 = t1 == null;
  98421. t3 = A.parseSyntax(t2 ? null : J.get$syntax$x(t1));
  98422. t4 = t2 ? null : A.NullableExtension_andThen0(J.get$url$x(t1), A.utils3__jsToDartUrl$closure());
  98423. t5 = t2 ? null : J.get$loadPaths$x(t1);
  98424. t6 = t2 ? null : J.get$quietDeps$x(t1);
  98425. if (t6 == null)
  98426. t6 = false;
  98427. t7 = A._parseOutputStyle0(t2 ? null : J.get$style$x(t1));
  98428. t8 = t2 ? null : J.get$verbose$x(t1);
  98429. if (t8 == null)
  98430. t8 = false;
  98431. t9 = t2 ? null : J.get$charset$x(t1);
  98432. if (t9 == null)
  98433. t9 = true;
  98434. t10 = t2 ? null : J.get$sourceMap$x(t1);
  98435. if (t10 == null)
  98436. t10 = false;
  98437. t11 = $async$self.logger;
  98438. if (t2)
  98439. t12 = null;
  98440. else {
  98441. t12 = J.get$importers$x(t1);
  98442. t12 = t12 == null ? null : J.map$1$1$ax(t12, new A.compileStringAsync__closure(), type$.AsyncImporter);
  98443. }
  98444. t13 = t2 ? null : A.NullableExtension_andThen0(J.get$importer$x(t1), new A.compileStringAsync__closure0());
  98445. if (t13 == null)
  98446. t13 = (t2 ? null : J.get$url$x(t1)) == null ? new A.NoOpImporter0() : null;
  98447. t14 = A._parseFunctions0(t2 ? null : J.get$functions$x(t1), true);
  98448. t15 = A.parseDeprecations(t11, t2 ? null : J.get$fatalDeprecations$x(t1), true);
  98449. t16 = A.parseDeprecations(t11, t2 ? null : J.get$silenceDeprecations$x(t1), false);
  98450. $async$goto = 3;
  98451. return A._asyncAwait(A.compileStringAsync0($async$self.text, t9, t15, t14, A.parseDeprecations(t11, t2 ? null : J.get$futureDeprecations$x(t1), false), A.AsyncImportCache$(t12, t5, null), t13, null, null, t11, null, t6, t16, t10, t7, t3, t4, true, t8), $async$call$0);
  98452. case 3:
  98453. // returning from await.
  98454. result = $async$result;
  98455. t1 = t2 ? null : J.get$sourceMapIncludeSources$x(t1);
  98456. $async$returnValue = A._convertResult(result, t1 == null ? false : t1);
  98457. // goto return
  98458. $async$goto = 1;
  98459. break;
  98460. case 1:
  98461. // return
  98462. return A._asyncReturn($async$returnValue, $async$completer);
  98463. }
  98464. });
  98465. return A._asyncStartSync($async$call$0, $async$completer);
  98466. },
  98467. $signature: 215
  98468. };
  98469. A.compileStringAsync__closure.prototype = {
  98470. call$1(importer) {
  98471. return A._parseAsyncImporter(importer);
  98472. },
  98473. $signature: 216
  98474. };
  98475. A.compileStringAsync__closure0.prototype = {
  98476. call$1(importer) {
  98477. return A._parseAsyncImporter(importer);
  98478. },
  98479. $signature: 423
  98480. };
  98481. A._wrapAsyncSassExceptions_closure.prototype = {
  98482. call$1(error) {
  98483. var t1;
  98484. if (error instanceof A.SassException0)
  98485. t1 = A.throwNodeException(error, this.ascii, this.color, null);
  98486. else
  98487. t1 = A.jsThrow(error == null ? type$.Object._as(error) : error);
  98488. return t1;
  98489. },
  98490. $signature: 424
  98491. };
  98492. A._parseFunctions_closure0.prototype = {
  98493. call$2(signature, callback) {
  98494. var callable,
  98495. t1 = this.result;
  98496. if (!this.asynch) {
  98497. callable = A._Cell$();
  98498. callable.__late_helper$_value = A.Callable_Callable$fromSignature(signature, new A._parseFunctions__closure2(callback, callable), true);
  98499. t1.push(callable._readLocal$0());
  98500. } else {
  98501. callable = A._Cell$();
  98502. callable.__late_helper$_value = A.AsyncCallable_AsyncCallable$fromSignature(signature, new A._parseFunctions__closure3(callback, callable), true);
  98503. t1.push(callable._readLocal$0());
  98504. }
  98505. },
  98506. $signature: 126
  98507. };
  98508. A._parseFunctions__closure2.prototype = {
  98509. call$1($arguments) {
  98510. var t1, t2,
  98511. _s42_ = string$.Invali,
  98512. result = A.wrapJSExceptions(new A._parseFunctions___closure6(this.callback, $arguments));
  98513. if (result instanceof A.Value0)
  98514. return A._simplifyValue(result);
  98515. t1 = result != null && result instanceof self.Promise;
  98516. t2 = this.callable;
  98517. if (t1)
  98518. throw A.wrapException(_s42_ + J.get$name$x(t2.readLocal$0()) + '":\nPromises may only be returned for sass.compileAsync() and sass.compileStringAsync().');
  98519. else
  98520. throw A.wrapException(_s42_ + J.get$name$x(t2.readLocal$0()) + '": ' + A.S(result) + " is not a sass.Value.");
  98521. },
  98522. $signature: 3
  98523. };
  98524. A._parseFunctions___closure6.prototype = {
  98525. call$0() {
  98526. return type$.Function._as(this.callback).call$1(A.toJSArray(this.$arguments));
  98527. },
  98528. $signature: 65
  98529. };
  98530. A._parseFunctions__closure3.prototype = {
  98531. call$1($arguments) {
  98532. return this.$call$body$_parseFunctions__closure0($arguments);
  98533. },
  98534. $call$body$_parseFunctions__closure0($arguments) {
  98535. var $async$goto = 0,
  98536. $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
  98537. $async$returnValue, $async$self = this, result;
  98538. var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  98539. if ($async$errorCode === 1)
  98540. return A._asyncRethrow($async$result, $async$completer);
  98541. while (true)
  98542. switch ($async$goto) {
  98543. case 0:
  98544. // Function start
  98545. result = A.wrapJSExceptions(new A._parseFunctions___closure5($async$self.callback, $arguments));
  98546. $async$goto = result != null && result instanceof self.Promise ? 3 : 4;
  98547. break;
  98548. case 3:
  98549. // then
  98550. $async$goto = 5;
  98551. return A._asyncAwait(A.promiseToFuture(type$.Promise._as(result), type$.Object), $async$call$1);
  98552. case 5:
  98553. // returning from await.
  98554. result = $async$result;
  98555. case 4:
  98556. // join
  98557. if (result instanceof A.Value0) {
  98558. $async$returnValue = A._simplifyValue(result);
  98559. // goto return
  98560. $async$goto = 1;
  98561. break;
  98562. }
  98563. throw A.wrapException(string$.Invali + J.get$name$x($async$self.callable.readLocal$0()) + '": ' + A.S(result) + " is not a sass.Value.");
  98564. case 1:
  98565. // return
  98566. return A._asyncReturn($async$returnValue, $async$completer);
  98567. }
  98568. });
  98569. return A._asyncStartSync($async$call$1, $async$completer);
  98570. },
  98571. $signature: 107
  98572. };
  98573. A._parseFunctions___closure5.prototype = {
  98574. call$0() {
  98575. return type$.Function._as(this.callback).call$1(A.toJSArray(this.$arguments));
  98576. },
  98577. $signature: 65
  98578. };
  98579. A.nodePackageImporterClass_closure.prototype = {
  98580. call$0() {
  98581. return type$.JSClass._as(A.allowInteropCaptureThisNamed("sass.NodePackageImporter", new A.nodePackageImporterClass__closure()));
  98582. },
  98583. $signature: 16
  98584. };
  98585. A.nodePackageImporterClass__closure.prototype = {
  98586. call$2($self, entrypointDirectory) {
  98587. var directory, t1, filename, t2, _null = null,
  98588. _0_3 = A.entrypointFilename();
  98589. $label0$0: {
  98590. if (entrypointDirectory != null) {
  98591. directory = entrypointDirectory == null ? A._asString(entrypointDirectory) : entrypointDirectory;
  98592. t1 = directory;
  98593. break $label0$0;
  98594. }
  98595. if (_0_3 != null) {
  98596. filename = _0_3 == null ? A._asString(_0_3) : _0_3;
  98597. t1 = $.$get$context().dirname$1(filename);
  98598. break $label0$0;
  98599. }
  98600. t1 = A.throwExpression("The Node package importer cannot determine an entry point because `require.main.filename` is not defined. Please provide an `entryPointDirectory` to the `NodePackageImporter`.");
  98601. }
  98602. t2 = new A.NodePackageImporter0();
  98603. if (A.isBrowser())
  98604. A.throwExpression(string$.The_No);
  98605. t2._node_package$__NodePackageImporter__entryPointDirectory_F = A.absolute(t1, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null);
  98606. return t2;
  98607. },
  98608. call$1($self) {
  98609. return this.call$2($self, null);
  98610. },
  98611. "call*": "call$2",
  98612. $requiredArgCount: 1,
  98613. $defaultValues() {
  98614. return [null];
  98615. },
  98616. $signature: 426
  98617. };
  98618. A._compileStylesheet_closure1.prototype = {
  98619. call$1(url) {
  98620. return url === "" ? A.Uri_Uri$dataFromString(A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(this.stylesheet.span.file._decodedChars, 0, null), 0, null), B.C_Utf8Codec, null).get$_text() : this.importCache.sourceMapUrl$1(0, A.Uri_parse(url)).toString$0(0);
  98621. },
  98622. $signature: 6
  98623. };
  98624. A.CompileOptions.prototype = {};
  98625. A.CompileStringOptions.prototype = {};
  98626. A.NodeCompileResult.prototype = {};
  98627. A.CompileResult0.prototype = {};
  98628. A.Compiler.prototype = {};
  98629. A.AsyncCompiler.prototype = {
  98630. addCompilation$1(compilation) {
  98631. this.compilations.add$1(0, A.promiseToFuture0(compilation, type$.dynamic).catchError$1(new A.AsyncCompiler_addCompilation_closure()));
  98632. }
  98633. };
  98634. A.AsyncCompiler_addCompilation_closure.prototype = {
  98635. call$1(err) {
  98636. },
  98637. $signature: 58
  98638. };
  98639. A.compilerClass_closure.prototype = {
  98640. call$0() {
  98641. var t1 = type$.JSClass,
  98642. jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.Compiler", new A.compilerClass__closure()));
  98643. A.LinkedHashMap_LinkedHashMap$_literal(["compile", new A.compilerClass__closure0(), "compileString", new A.compilerClass__closure1(), "dispose", new A.compilerClass__closure2()], type$.String, type$.Function).forEach$1(0, A.JSClassExtension_get_defineMethod(jsClass));
  98644. A.JSClassExtension_injectSuperclass(t1._as(new A.Compiler().constructor), jsClass);
  98645. return jsClass;
  98646. },
  98647. $signature: 16
  98648. };
  98649. A.compilerClass__closure.prototype = {
  98650. call$1($self) {
  98651. return A.LinkedHashSet_LinkedHashSet$_literal([A.jsThrow(new self.Error("Compiler can not be directly constructed. Please use `sass.initCompiler()` instead."))], type$.Never);
  98652. },
  98653. $signature: 218
  98654. };
  98655. A.compilerClass__closure0.prototype = {
  98656. call$3($self, path, options) {
  98657. if ($self._disposed)
  98658. A.jsThrow(new self.Error("Compiler has already been disposed."));
  98659. return A.compile0(path, options);
  98660. },
  98661. call$2($self, path) {
  98662. return this.call$3($self, path, null);
  98663. },
  98664. "call*": "call$3",
  98665. $requiredArgCount: 2,
  98666. $defaultValues() {
  98667. return [null];
  98668. },
  98669. $signature: 428
  98670. };
  98671. A.compilerClass__closure1.prototype = {
  98672. call$3($self, source, options) {
  98673. if ($self._disposed)
  98674. A.jsThrow(new self.Error("Compiler has already been disposed."));
  98675. return A.compileString0(source, options);
  98676. },
  98677. call$2($self, source) {
  98678. return this.call$3($self, source, null);
  98679. },
  98680. "call*": "call$3",
  98681. $requiredArgCount: 2,
  98682. $defaultValues() {
  98683. return [null];
  98684. },
  98685. $signature: 429
  98686. };
  98687. A.compilerClass__closure2.prototype = {
  98688. call$1($self) {
  98689. $self._disposed = true;
  98690. },
  98691. $signature: 430
  98692. };
  98693. A.asyncCompilerClass_closure.prototype = {
  98694. call$0() {
  98695. var t1 = type$.JSClass,
  98696. jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.AsyncCompiler", new A.asyncCompilerClass__closure()));
  98697. A.LinkedHashMap_LinkedHashMap$_literal(["compileAsync", new A.asyncCompilerClass__closure0(), "compileStringAsync", new A.asyncCompilerClass__closure1(), "dispose", new A.asyncCompilerClass__closure2()], type$.String, type$.Function).forEach$1(0, A.JSClassExtension_get_defineMethod(jsClass));
  98698. A.JSClassExtension_injectSuperclass(t1._as(new A.AsyncCompiler(new A.FutureGroup(new A._AsyncCompleter(new A._Future($.Zone__current, type$._Future_List_void), type$._AsyncCompleter_List_void), [], type$.FutureGroup_void)).constructor), jsClass);
  98699. return jsClass;
  98700. },
  98701. $signature: 16
  98702. };
  98703. A.asyncCompilerClass__closure.prototype = {
  98704. call$1($self) {
  98705. return A.LinkedHashSet_LinkedHashSet$_literal([A.jsThrow(new self.Error("AsyncCompiler can not be directly constructed. Please use `sass.initAsyncCompiler()` instead."))], type$.Never);
  98706. },
  98707. $signature: 218
  98708. };
  98709. A.asyncCompilerClass__closure0.prototype = {
  98710. call$3($self, path, options) {
  98711. var compilation;
  98712. if ($self._disposed)
  98713. A.jsThrow(new self.Error("Compiler has already been disposed."));
  98714. compilation = A.compileAsync1(path, options);
  98715. $self.addCompilation$1(compilation);
  98716. return compilation;
  98717. },
  98718. call$2($self, path) {
  98719. return this.call$3($self, path, null);
  98720. },
  98721. "call*": "call$3",
  98722. $requiredArgCount: 2,
  98723. $defaultValues() {
  98724. return [null];
  98725. },
  98726. $signature: 431
  98727. };
  98728. A.asyncCompilerClass__closure1.prototype = {
  98729. call$3($self, source, options) {
  98730. var compilation;
  98731. if ($self._disposed)
  98732. A.jsThrow(new self.Error("Compiler has already been disposed."));
  98733. compilation = A.compileStringAsync1(source, options);
  98734. $self.addCompilation$1(compilation);
  98735. return compilation;
  98736. },
  98737. call$2($self, source) {
  98738. return this.call$3($self, source, null);
  98739. },
  98740. "call*": "call$3",
  98741. $requiredArgCount: 2,
  98742. $defaultValues() {
  98743. return [null];
  98744. },
  98745. $signature: 432
  98746. };
  98747. A.asyncCompilerClass__closure2.prototype = {
  98748. call$1($self) {
  98749. $self._disposed = true;
  98750. return A.futureToPromise0(new A.asyncCompilerClass___closure($self).call$0());
  98751. },
  98752. $signature: 433
  98753. };
  98754. A.asyncCompilerClass___closure.prototype = {
  98755. call$0() {
  98756. var $async$goto = 0,
  98757. $async$completer = A._makeAsyncAwaitCompleter(type$.Null),
  98758. $async$self = this, t1;
  98759. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  98760. if ($async$errorCode === 1)
  98761. return A._asyncRethrow($async$result, $async$completer);
  98762. while (true)
  98763. switch ($async$goto) {
  98764. case 0:
  98765. // Function start
  98766. t1 = $async$self.self.compilations;
  98767. t1.close$0(0);
  98768. $async$goto = 2;
  98769. return A._asyncAwait(t1._future_group$_completer.future, $async$call$0);
  98770. case 2:
  98771. // returning from await.
  98772. // implicit return
  98773. return A._asyncReturn(null, $async$completer);
  98774. }
  98775. });
  98776. return A._asyncStartSync($async$call$0, $async$completer);
  98777. },
  98778. $signature: 2
  98779. };
  98780. A.initAsyncCompiler_closure.prototype = {
  98781. call$0() {
  98782. var $async$goto = 0,
  98783. $async$completer = A._makeAsyncAwaitCompleter(type$.AsyncCompiler),
  98784. $async$returnValue;
  98785. var $async$call$0 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  98786. if ($async$errorCode === 1)
  98787. return A._asyncRethrow($async$result, $async$completer);
  98788. while (true)
  98789. switch ($async$goto) {
  98790. case 0:
  98791. // Function start
  98792. $async$returnValue = new A.AsyncCompiler(new A.FutureGroup(new A._AsyncCompleter(new A._Future($.Zone__current, type$._Future_List_void), type$._AsyncCompleter_List_void), [], type$.FutureGroup_void));
  98793. // goto return
  98794. $async$goto = 1;
  98795. break;
  98796. case 1:
  98797. // return
  98798. return A._asyncReturn($async$returnValue, $async$completer);
  98799. }
  98800. });
  98801. return A._asyncStartSync($async$call$0, $async$completer);
  98802. },
  98803. $signature: 434
  98804. };
  98805. A.ComplexSassNumber0.prototype = {
  98806. get$numeratorUnits(_) {
  98807. return this._complex0$_numeratorUnits;
  98808. },
  98809. get$denominatorUnits(_) {
  98810. return this._complex0$_denominatorUnits;
  98811. },
  98812. get$hasUnits() {
  98813. return true;
  98814. },
  98815. get$hasComplexUnits() {
  98816. return true;
  98817. },
  98818. hasUnit$1(unit) {
  98819. return false;
  98820. },
  98821. compatibleWithUnit$1(unit) {
  98822. return false;
  98823. },
  98824. hasPossiblyCompatibleUnits$1(other) {
  98825. throw A.wrapException(A.UnimplementedError$(string$.Comple));
  98826. },
  98827. withValue$1(value) {
  98828. return new A.ComplexSassNumber0(this._complex0$_numeratorUnits, this._complex0$_denominatorUnits, value, null);
  98829. },
  98830. withSlash$2(numerator, denominator) {
  98831. return new A.ComplexSassNumber0(this._complex0$_numeratorUnits, this._complex0$_denominatorUnits, this._number1$_value, new A._Record_2(numerator, denominator));
  98832. }
  98833. };
  98834. A.ComplexSelector0.prototype = {
  98835. get$specificity() {
  98836. var result, _this = this,
  98837. value = _this._complex$__ComplexSelector_specificity_FI;
  98838. if (value === $) {
  98839. result = B.JSArray_methods.fold$2(_this.components, 0, new A.ComplexSelector_specificity_closure0());
  98840. _this._complex$__ComplexSelector_specificity_FI !== $ && A.throwUnnamedLateFieldADI();
  98841. _this._complex$__ComplexSelector_specificity_FI = result;
  98842. value = result;
  98843. }
  98844. return value;
  98845. },
  98846. get$singleCompound() {
  98847. var _0_0, t1, _0_4, t2, selector, _null = null;
  98848. if (this.leadingCombinators.length !== 0)
  98849. return _null;
  98850. _0_0 = this.components;
  98851. $label0$0: {
  98852. t1 = false;
  98853. if (_0_0.length === 1) {
  98854. _0_4 = _0_0[0];
  98855. t2 = _0_4;
  98856. selector = t2.selector;
  98857. t1 = _0_4.combinators.length <= 0;
  98858. } else
  98859. selector = _null;
  98860. if (t1) {
  98861. t1 = selector;
  98862. break $label0$0;
  98863. }
  98864. t1 = _null;
  98865. break $label0$0;
  98866. }
  98867. return t1;
  98868. },
  98869. accept$1$1(visitor) {
  98870. return visitor.visitComplexSelector$1(this);
  98871. },
  98872. accept$1(visitor) {
  98873. return this.accept$1$1(visitor, type$.dynamic);
  98874. },
  98875. isSuperselector$1(other) {
  98876. return this.leadingCombinators.length === 0 && other.leadingCombinators.length === 0 && A.complexIsSuperselector0(this.components, other.components);
  98877. },
  98878. withAdditionalCombinators$1(combinators) {
  98879. var _0_0, _0_1, t1, initial, last, _this = this;
  98880. if (combinators.length === 0)
  98881. return _this;
  98882. _0_0 = _this.components;
  98883. $label0$0: {
  98884. _0_1 = _0_0.length;
  98885. if (_0_1 >= 1) {
  98886. t1 = _0_1 - 1;
  98887. initial = B.JSArray_methods.sublist$2(_0_0, 0, t1);
  98888. last = _0_0[t1];
  98889. t1 = A.List_List$of(initial, true, type$.ComplexSelectorComponent_2);
  98890. t1.push(last.withAdditionalCombinators$1(combinators));
  98891. t1 = A.ComplexSelector$0(_this.leadingCombinators, t1, _this.span, _this.lineBreak);
  98892. break $label0$0;
  98893. }
  98894. if (_0_1 <= 0) {
  98895. t1 = A.List_List$of(_this.leadingCombinators, true, type$.CssValue_Combinator_2);
  98896. B.JSArray_methods.addAll$1(t1, combinators);
  98897. t1 = A.ComplexSelector$0(t1, B.List_empty16, _this.span, _this.lineBreak);
  98898. break $label0$0;
  98899. }
  98900. throw A.wrapException(A.ReachabilityError$(string$.None_o));
  98901. }
  98902. return t1;
  98903. },
  98904. concatenate$3$forceLineBreak(child, span, forceLineBreak) {
  98905. var t2, _0_1, initial, last, _this = this,
  98906. t1 = child.leadingCombinators,
  98907. _0_0 = _this.components;
  98908. if (t1.length === 0) {
  98909. t1 = A.List_List$of(_0_0, true, type$.ComplexSelectorComponent_2);
  98910. B.JSArray_methods.addAll$1(t1, child.components);
  98911. t2 = _this.lineBreak || child.lineBreak || forceLineBreak;
  98912. return A.ComplexSelector$0(_this.leadingCombinators, t1, span, t2);
  98913. } else {
  98914. _0_1 = _0_0.length;
  98915. if (_0_1 >= 1) {
  98916. t2 = _0_1 - 1;
  98917. initial = B.JSArray_methods.sublist$2(_0_0, 0, t2);
  98918. last = _0_0[t2];
  98919. t2 = A.List_List$of(initial, true, type$.ComplexSelectorComponent_2);
  98920. t2.push(last.withAdditionalCombinators$1(t1));
  98921. B.JSArray_methods.addAll$1(t2, child.components);
  98922. t1 = _this.lineBreak || child.lineBreak || forceLineBreak;
  98923. return A.ComplexSelector$0(_this.leadingCombinators, t2, span, t1);
  98924. } else {
  98925. t2 = A.List_List$of(_this.leadingCombinators, true, type$.CssValue_Combinator_2);
  98926. B.JSArray_methods.addAll$1(t2, t1);
  98927. t1 = _this.lineBreak || child.lineBreak || forceLineBreak;
  98928. return A.ComplexSelector$0(t2, child.components, span, t1);
  98929. }
  98930. }
  98931. },
  98932. concatenate$2(child, span) {
  98933. return this.concatenate$3$forceLineBreak(child, span, false);
  98934. },
  98935. get$hashCode(_) {
  98936. return B.C_ListEquality0.hash$1(this.leadingCombinators) ^ B.C_ListEquality0.hash$1(this.components);
  98937. },
  98938. $eq(_, other) {
  98939. if (other == null)
  98940. return false;
  98941. return other instanceof A.ComplexSelector0 && B.C_ListEquality.equals$2(0, this.leadingCombinators, other.leadingCombinators) && B.C_ListEquality.equals$2(0, this.components, other.components);
  98942. }
  98943. };
  98944. A.ComplexSelector_specificity_closure0.prototype = {
  98945. call$2(sum, component) {
  98946. return sum + component.selector.get$specificity();
  98947. },
  98948. $signature: 435
  98949. };
  98950. A.ComplexSelectorComponent0.prototype = {
  98951. withAdditionalCombinators$1(combinators) {
  98952. var t1, t2, _this = this;
  98953. if (combinators.length === 0)
  98954. t1 = _this;
  98955. else {
  98956. t1 = type$.CssValue_Combinator_2;
  98957. t2 = A.List_List$of(_this.combinators, true, t1);
  98958. B.JSArray_methods.addAll$1(t2, combinators);
  98959. t1 = new A.ComplexSelectorComponent0(_this.selector, A.List_List$unmodifiable(t2, t1), _this.span);
  98960. }
  98961. return t1;
  98962. },
  98963. get$hashCode(_) {
  98964. return B.C_ListEquality0.hash$1(this.selector.components) ^ B.C_ListEquality0.hash$1(this.combinators);
  98965. },
  98966. $eq(_, other) {
  98967. var t1;
  98968. if (other == null)
  98969. return false;
  98970. if (other instanceof A.ComplexSelectorComponent0) {
  98971. t1 = B.C_ListEquality.equals$2(0, this.selector.components, other.selector.components);
  98972. t1 = t1 && B.C_ListEquality.equals$2(0, this.combinators, other.combinators);
  98973. } else
  98974. t1 = false;
  98975. return t1;
  98976. },
  98977. toString$0(_) {
  98978. var t1 = this.combinators;
  98979. return A.serializeSelector0(this.selector, true) + new A.MappedListIterable(t1, new A.ComplexSelectorComponent_toString_closure0(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$1(0, "");
  98980. }
  98981. };
  98982. A.ComplexSelectorComponent_toString_closure0.prototype = {
  98983. call$1(combinator) {
  98984. return " " + combinator.toString$0(0);
  98985. },
  98986. $signature: 436
  98987. };
  98988. A.CompoundSelector0.prototype = {
  98989. get$specificity() {
  98990. var result, _this = this,
  98991. value = _this._compound$__CompoundSelector_specificity_FI;
  98992. if (value === $) {
  98993. result = B.JSArray_methods.fold$2(_this.components, 0, new A.CompoundSelector_specificity_closure0());
  98994. _this._compound$__CompoundSelector_specificity_FI !== $ && A.throwUnnamedLateFieldADI();
  98995. _this._compound$__CompoundSelector_specificity_FI = result;
  98996. value = result;
  98997. }
  98998. return value;
  98999. },
  99000. get$hasComplicatedSuperselectorSemantics() {
  99001. var result, _this = this,
  99002. value = _this._compound$__CompoundSelector_hasComplicatedSuperselectorSemantics_FI;
  99003. if (value === $) {
  99004. result = B.JSArray_methods.any$1(_this.components, new A.CompoundSelector_hasComplicatedSuperselectorSemantics_closure0());
  99005. _this._compound$__CompoundSelector_hasComplicatedSuperselectorSemantics_FI !== $ && A.throwUnnamedLateFieldADI();
  99006. _this._compound$__CompoundSelector_hasComplicatedSuperselectorSemantics_FI = result;
  99007. value = result;
  99008. }
  99009. return value;
  99010. },
  99011. accept$1$1(visitor) {
  99012. return visitor.visitCompoundSelector$1(this);
  99013. },
  99014. accept$1(visitor) {
  99015. return this.accept$1$1(visitor, type$.dynamic);
  99016. },
  99017. get$hashCode(_) {
  99018. return B.C_ListEquality0.hash$1(this.components);
  99019. },
  99020. $eq(_, other) {
  99021. if (other == null)
  99022. return false;
  99023. return other instanceof A.CompoundSelector0 && B.C_ListEquality.equals$2(0, this.components, other.components);
  99024. }
  99025. };
  99026. A.CompoundSelector_specificity_closure0.prototype = {
  99027. call$2(sum, component) {
  99028. return sum + component.get$specificity();
  99029. },
  99030. $signature: 437
  99031. };
  99032. A.CompoundSelector_hasComplicatedSuperselectorSemantics_closure0.prototype = {
  99033. call$1(component) {
  99034. return component.get$hasComplicatedSuperselectorSemantics();
  99035. },
  99036. $signature: 14
  99037. };
  99038. A.Configuration0.prototype = {
  99039. throughForward$1($forward) {
  99040. var _0_0, _1_0, _2_0, t1, hiddenVariables,
  99041. newValues = this._configuration0$_values;
  99042. if (newValues.get$isEmpty(newValues))
  99043. return B.Configuration_Map_empty_null0;
  99044. _0_0 = $forward.prefix;
  99045. if (_0_0 != null)
  99046. newValues = new A.UnprefixedMapView0(newValues, _0_0, type$.UnprefixedMapView_ConfiguredValue_2);
  99047. _1_0 = $forward.shownVariables;
  99048. if (_1_0 != null)
  99049. newValues = new A.LimitedMapView0(newValues, _1_0._base.intersection$1(new A.MapKeySet(newValues, type$.MapKeySet_nullable_Object)), type$.LimitedMapView_String_ConfiguredValue_2);
  99050. else {
  99051. _2_0 = $forward.hiddenVariables;
  99052. if (_2_0 != null) {
  99053. t1 = _2_0._base.get$isNotEmpty(0);
  99054. hiddenVariables = _2_0;
  99055. } else {
  99056. hiddenVariables = null;
  99057. t1 = false;
  99058. }
  99059. if (t1)
  99060. newValues = A.LimitedMapView$blocklist0(newValues, hiddenVariables, type$.String, type$.ConfiguredValue_2);
  99061. }
  99062. return this._configuration0$_withValues$1(newValues);
  99063. },
  99064. _configuration0$_withValues$1(values) {
  99065. var t1 = this._configuration0$__originalConfiguration;
  99066. return new A.Configuration0(values, t1 == null ? this : t1);
  99067. },
  99068. toString$0(_) {
  99069. var t2, t3,
  99070. t1 = A._setArrayType([], type$.JSArray_String);
  99071. for (t2 = A.MapExtensions_get_pairs0(new A.UnmodifiableMapView(this._configuration0$_values, type$.UnmodifiableMapView_String_ConfiguredValue_2), type$.String, type$.ConfiguredValue_2), t2 = t2.get$iterator(t2); t2.moveNext$0();) {
  99072. t3 = t2.get$current(t2);
  99073. t1.push("$" + t3._0 + ": " + t3._1.toString$0(0));
  99074. }
  99075. return "(" + B.JSArray_methods.join$1(t1, ",") + ")";
  99076. }
  99077. };
  99078. A.ExplicitConfiguration0.prototype = {
  99079. _configuration0$_withValues$1(values) {
  99080. var t1 = this._configuration0$__originalConfiguration;
  99081. if (t1 == null)
  99082. t1 = this;
  99083. return new A.ExplicitConfiguration0(this.nodeWithSpan, values, t1);
  99084. }
  99085. };
  99086. A.ConfiguredValue0.prototype = {
  99087. toString$0(_) {
  99088. return this.value.toString$0(0);
  99089. }
  99090. };
  99091. A.ConfiguredVariable0.prototype = {
  99092. toString$0(_) {
  99093. var t1 = this.expression.toString$0(0),
  99094. t2 = this.isGuarded ? " !default" : "";
  99095. return "$" + this.name + ": " + t1 + t2;
  99096. },
  99097. $isAstNode0: 1,
  99098. $isSassNode: 1,
  99099. get$span(receiver) {
  99100. return this.span;
  99101. }
  99102. };
  99103. A.ContentBlock0.prototype = {
  99104. accept$1$1(visitor) {
  99105. return visitor.visitContentBlock$1(0, this);
  99106. },
  99107. accept$1(visitor) {
  99108. return this.accept$1$1(visitor, type$.dynamic);
  99109. },
  99110. toString$0(_) {
  99111. var t2,
  99112. t1 = this.$arguments;
  99113. t1 = t1.$arguments.length === 0 && t1.restArgument == null ? "" : " using (" + t1.toString$0(0) + ")";
  99114. t2 = this.children;
  99115. return t1 + (" {" + (t2 && B.JSArray_methods).join$1(t2, " ") + "}");
  99116. }
  99117. };
  99118. A.ContentRule0.prototype = {
  99119. accept$1$1(visitor) {
  99120. return visitor.visitContentRule$1(0, this);
  99121. },
  99122. accept$1(visitor) {
  99123. return this.accept$1$1(visitor, type$.dynamic);
  99124. },
  99125. toString$0(_) {
  99126. var t1 = this.$arguments;
  99127. return t1.get$isEmpty(0) ? "@content;" : "@content(" + t1.toString$0(0) + ");";
  99128. },
  99129. get$span(receiver) {
  99130. return this.span;
  99131. }
  99132. };
  99133. A._disallowedFunctionNames_closure0.prototype = {
  99134. call$1($function) {
  99135. return $function.name;
  99136. },
  99137. $signature: 438
  99138. };
  99139. A.CssParser0.prototype = {
  99140. get$plainCss() {
  99141. return true;
  99142. },
  99143. silentComment$0() {
  99144. var t1, t2, _this = this;
  99145. if (_this._stylesheet0$_inExpression)
  99146. return false;
  99147. t1 = _this.scanner;
  99148. t2 = t1._string_scanner$_position;
  99149. _this.super$Parser$silentComment0();
  99150. _this.error$2(0, string$.Silent, t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  99151. },
  99152. atRule$2$root(child, root) {
  99153. var $name, _0_0, _this = this,
  99154. t1 = _this.scanner,
  99155. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  99156. t1.expectChar$1(64);
  99157. $name = _this.interpolatedIdentifier$0();
  99158. _this.whitespace$0();
  99159. _0_0 = $name.get$asPlain();
  99160. $label0$0: {
  99161. if ("at-root" === _0_0 || "content" === _0_0 || "debug" === _0_0 || "each" === _0_0 || "error" === _0_0 || "extend" === _0_0 || "for" === _0_0 || "function" === _0_0 || "if" === _0_0 || "include" === _0_0 || "mixin" === _0_0 || "return" === _0_0 || "warn" === _0_0 || "while" === _0_0)
  99162. _this._css$_forbiddenAtRule$1(start);
  99163. if ("import" === _0_0) {
  99164. t1 = _this._css$_cssImportRule$1(start);
  99165. break $label0$0;
  99166. }
  99167. if ("media" === _0_0) {
  99168. t1 = _this.mediaRule$1(start);
  99169. break $label0$0;
  99170. }
  99171. if ("-moz-document" === _0_0) {
  99172. t1 = _this.mozDocumentRule$2(start, $name);
  99173. break $label0$0;
  99174. }
  99175. if ("supports" === _0_0) {
  99176. t1 = _this.supportsRule$1(start);
  99177. break $label0$0;
  99178. }
  99179. t1 = _this.unknownAtRule$2(start, $name);
  99180. break $label0$0;
  99181. }
  99182. return t1;
  99183. },
  99184. _css$_forbiddenAtRule$1(start) {
  99185. this.almostAnyValue$0();
  99186. this.error$2(0, "This at-rule isn't allowed in plain CSS.", this.scanner.spanFrom$1(start));
  99187. },
  99188. _css$_cssImportRule$1(start) {
  99189. var _0_0, t3, string, $name, _0_3, _0_4, t4, _0_8, t5, modifiers, _this = this, _null = null,
  99190. t1 = _this.scanner,
  99191. t2 = t1._string_scanner$_position,
  99192. _1_0 = t1.peekChar$0();
  99193. $label1$1: {
  99194. if (117 === _1_0 || 85 === _1_0) {
  99195. _0_0 = _this.dynamicUrl$0();
  99196. $label0$0: {
  99197. if (_0_0 instanceof A.StringExpression0) {
  99198. t3 = _0_0.text;
  99199. break $label0$0;
  99200. }
  99201. string = _null;
  99202. t3 = false;
  99203. if (_0_0 instanceof A.InterpolatedFunctionExpression0) {
  99204. $name = _0_0.name;
  99205. _0_3 = _0_0.$arguments;
  99206. _0_4 = _0_3.positional;
  99207. t4 = _0_4;
  99208. if (t4.length === 1) {
  99209. _0_8 = _0_4[0];
  99210. t4 = _0_8;
  99211. if (t4 instanceof A.StringExpression0) {
  99212. type$.StringExpression_2._as(_0_8);
  99213. t4 = _0_3.named;
  99214. if (t4.get$isEmpty(t4))
  99215. if (_0_3.rest == null)
  99216. t3 = _0_3.keywordRest == null;
  99217. string = _0_8;
  99218. }
  99219. }
  99220. } else
  99221. $name = _null;
  99222. if (t3) {
  99223. t3 = new A.StringBuffer("");
  99224. t4 = new A.InterpolationBuffer0(t3, A._setArrayType([], type$.JSArray_Object), A._setArrayType([], type$.JSArray_nullable_FileSpan));
  99225. t4.addInterpolation$1($name);
  99226. t5 = A.Primitives_stringFromCharCode(40);
  99227. t3._contents += t5;
  99228. t4.addInterpolation$1(string.asInterpolation$0());
  99229. t5 = A.Primitives_stringFromCharCode(41);
  99230. t3._contents += t5;
  99231. t4 = t4.interpolation$1(_0_0.span);
  99232. t3 = t4;
  99233. break $label0$0;
  99234. }
  99235. t3 = _this.error$2(0, "Unsupported plain CSS import.", _0_0.get$span(_0_0));
  99236. }
  99237. break $label1$1;
  99238. }
  99239. t3 = _this.interpolatedString$0().asInterpolation$1$static(true);
  99240. break $label1$1;
  99241. }
  99242. _this.whitespace$0();
  99243. modifiers = _this.tryImportModifiers$0();
  99244. _this.expectStatementSeparator$1("@import rule");
  99245. t2 = A._setArrayType([new A.StaticImport0(t3, modifiers, t1.spanFrom$1(new A._SpanScannerState(t1, t2)))], type$.JSArray_Import_2);
  99246. t1 = t1.spanFrom$1(start);
  99247. return new A.ImportRule0(A.List_List$unmodifiable(t2, type$.Import_2), t1);
  99248. },
  99249. parentheses$0() {
  99250. var expression,
  99251. t1 = this.scanner,
  99252. t2 = t1._string_scanner$_position;
  99253. t1.expectChar$1(40);
  99254. this.whitespace$0();
  99255. expression = this.expressionUntilComma$0();
  99256. t1.expectChar$1(41);
  99257. return new A.ParenthesizedExpression0(expression, t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  99258. },
  99259. identifierLike$0() {
  99260. var t2, allowEmptySecondArg, $arguments, t3, t4, _this = this,
  99261. t1 = _this.scanner,
  99262. start = new A._SpanScannerState(t1, t1._string_scanner$_position),
  99263. identifier = _this.interpolatedIdentifier$0(),
  99264. plain = identifier.get$asPlain(),
  99265. lower = plain.toLowerCase(),
  99266. _0_0 = _this.trySpecialFunction$2(lower, start);
  99267. if (_0_0 != null)
  99268. return _0_0;
  99269. t2 = t1._string_scanner$_position;
  99270. if (t1.scanChar$1(46))
  99271. return _this.namespacedExpression$2(plain, start);
  99272. if (!t1.scanChar$1(40))
  99273. return new A.StringExpression0(identifier, false);
  99274. allowEmptySecondArg = lower === "var";
  99275. $arguments = A._setArrayType([], type$.JSArray_Expression_2);
  99276. if (!t1.scanChar$1(41)) {
  99277. do {
  99278. _this.whitespace$0();
  99279. if (allowEmptySecondArg && $arguments.length === 1 && t1.peekChar$0() === 41) {
  99280. t3 = A.FileLocation$_(t1._sourceFile, t1._string_scanner$_position);
  99281. t4 = t3.offset;
  99282. t4 = A._FileSpan$(t3.file, t4, t4);
  99283. $arguments.push(new A.StringExpression0(new A.Interpolation0(A.List_List$unmodifiable([""], type$.Object), B.List_null, t4), false));
  99284. break;
  99285. }
  99286. $arguments.push(_this.expressionUntilComma$1$singleEquals(true));
  99287. _this.whitespace$0();
  99288. } while (t1.scanChar$1(44));
  99289. t1.expectChar$1(41);
  99290. }
  99291. if ($.$get$_disallowedFunctionNames0().contains$1(0, plain))
  99292. _this.error$2(0, string$.This_f, t1.spanFrom$1(start));
  99293. t2 = t1.spanFrom$1(new A._SpanScannerState(t1, t2));
  99294. t3 = type$.Expression_2;
  99295. t4 = A.List_List$unmodifiable($arguments, t3);
  99296. t3 = A.ConstantMap_ConstantMap$from(B.Map_empty14, type$.String, t3);
  99297. t1 = t1.spanFrom$1(start);
  99298. return new A.FunctionExpression0(null, A.stringReplaceAllUnchecked(plain, "_", "-"), plain, new A.ArgumentInvocation0(t4, t3, null, null, t2), t1);
  99299. },
  99300. namespacedExpression$2(namespace, start) {
  99301. var expression = this.super$StylesheetParser$namespacedExpression0(namespace, start);
  99302. this.error$2(0, string$.Modulen, expression.get$span(expression));
  99303. }
  99304. };
  99305. A.DebugRule0.prototype = {
  99306. accept$1$1(visitor) {
  99307. return visitor.visitDebugRule$1(0, this);
  99308. },
  99309. accept$1(visitor) {
  99310. return this.accept$1$1(visitor, type$.dynamic);
  99311. },
  99312. toString$0(_) {
  99313. return "@debug " + this.expression.toString$0(0) + ";";
  99314. },
  99315. get$span(receiver) {
  99316. return this.span;
  99317. }
  99318. };
  99319. A.ModifiableCssDeclaration0.prototype = {
  99320. accept$1$1(visitor) {
  99321. return visitor.visitCssDeclaration$1(this);
  99322. },
  99323. accept$1(visitor) {
  99324. return this.accept$1$1(visitor, type$.dynamic);
  99325. },
  99326. toString$0(_) {
  99327. return this.name.toString$0(0) + ": " + this.value.toString$0(0) + ";";
  99328. },
  99329. get$span(receiver) {
  99330. return this.span;
  99331. }
  99332. };
  99333. A.Declaration0.prototype = {
  99334. accept$1$1(visitor) {
  99335. return visitor.visitDeclaration$1(0, this);
  99336. },
  99337. accept$1(visitor) {
  99338. return this.accept$1$1(visitor, type$.dynamic);
  99339. },
  99340. toString$0(_) {
  99341. var t3, _0_0,
  99342. buffer = new A.StringBuffer(""),
  99343. t1 = this.name,
  99344. t2 = "" + t1.toString$0(0);
  99345. buffer._contents = t2;
  99346. t2 = buffer._contents = t2 + A.Primitives_stringFromCharCode(58);
  99347. t3 = this.value;
  99348. if (t3 != null) {
  99349. t1 = !B.JSString_methods.startsWith$1(t1.get$initialPlain(), "--") ? buffer._contents = t2 + A.Primitives_stringFromCharCode(32) : t2;
  99350. buffer._contents = t1 + t3.toString$0(0);
  99351. }
  99352. _0_0 = this.children;
  99353. if (_0_0 != null)
  99354. return buffer.toString$0(0) + " {" + B.JSArray_methods.join$1(_0_0, " ") + "}";
  99355. else
  99356. return buffer.toString$0(0) + ";";
  99357. },
  99358. get$span(receiver) {
  99359. return this.span;
  99360. }
  99361. };
  99362. A.SupportsDeclaration0.prototype = {
  99363. get$isCustomProperty() {
  99364. var t1,
  99365. _0_0 = this.name;
  99366. $label0$0: {
  99367. if (_0_0 instanceof A.StringExpression0 && !_0_0.hasQuotes) {
  99368. t1 = B.JSString_methods.startsWith$1(_0_0.text.get$initialPlain(), "--");
  99369. break $label0$0;
  99370. }
  99371. t1 = false;
  99372. break $label0$0;
  99373. }
  99374. return t1;
  99375. },
  99376. toInterpolation$0() {
  99377. var visitor, _1_0, _null = null,
  99378. t1 = new A.StringBuffer(""),
  99379. t2 = type$.JSArray_Object,
  99380. t3 = type$.JSArray_nullable_FileSpan,
  99381. buffer = new A.InterpolationBuffer0(t1, A._setArrayType([], t2), A._setArrayType([], t3)),
  99382. t4 = this.span,
  99383. t5 = this.name,
  99384. t6 = A.SpanExtensions_before(t4, t5.get$span(t5));
  99385. t6 = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t6.file._decodedChars, t6._file$_start, t6._end), 0, _null);
  99386. t1._contents += t6;
  99387. if (t5 instanceof A.StringExpression0 && !t5.hasQuotes)
  99388. buffer.addInterpolation$1(t5.text);
  99389. else
  99390. buffer.add$2(0, t5, t5.get$span(t5));
  99391. t6 = this.value;
  99392. t5 = A.SpanExtensions_between(t5.get$span(t5), t6.get$span(t6));
  99393. t5 = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t5.file._decodedChars, t5._file$_start, t5._end), 0, _null);
  99394. t1._contents += t5;
  99395. visitor = new A.SourceInterpolationVisitor(new A.InterpolationBuffer0(new A.StringBuffer(""), A._setArrayType([], t2), A._setArrayType([], t3)));
  99396. t6.accept$1(visitor);
  99397. t3 = visitor.buffer;
  99398. _1_0 = t3 == null ? _null : t3.interpolation$1(t6.get$span(t6));
  99399. if (_1_0 != null)
  99400. buffer.addInterpolation$1(_1_0);
  99401. else
  99402. buffer.add$2(0, t6, t6.get$span(t6));
  99403. t2 = A.SpanExtensions_after(t4, t6.get$span(t6));
  99404. t2 = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t2.file._decodedChars, t2._file$_start, t2._end), 0, _null);
  99405. t1._contents += t2;
  99406. return buffer.interpolation$1(t4);
  99407. },
  99408. withSpan$1(span) {
  99409. return new A.SupportsDeclaration0(this.name, this.value, span);
  99410. },
  99411. toString$0(_) {
  99412. return "(" + this.name.toString$0(0) + ": " + this.value.toString$0(0) + ")";
  99413. },
  99414. $isAstNode0: 1,
  99415. $isSassNode: 1,
  99416. $isSupportsCondition: 1,
  99417. get$span(receiver) {
  99418. return this.span;
  99419. }
  99420. };
  99421. A.Deprecation0.prototype = {
  99422. _enumToString$0() {
  99423. return "Deprecation." + this._name;
  99424. },
  99425. get$deprecatedIn(_) {
  99426. return A.NullableExtension_andThen0(this._deprecation$_deprecatedIn, A.version_Version___parse_tearOff$closure());
  99427. },
  99428. get$obsoleteIn(_) {
  99429. return null;
  99430. },
  99431. toString$0(_) {
  99432. return this.id;
  99433. }
  99434. };
  99435. A.Deprecation_fromId_closure0.prototype = {
  99436. call$1(deprecation) {
  99437. return deprecation.id === this.id;
  99438. },
  99439. $signature: 439
  99440. };
  99441. A.DeprecationProcessingLogger0.prototype = {
  99442. validate$0() {
  99443. var t1, t2, t3, t4, t5, _this = this, _null = null;
  99444. for (t1 = _this.fatalDeprecations, t1 = A._LinkedHashSetIterator$(t1, t1._modifications, A._instanceType(t1)._precomputed1), t2 = _this.silenceDeprecations, t3 = t1.$ti._precomputed1; t1.moveNext$0();) {
  99445. t4 = t1._collection$_current;
  99446. if (t4 == null)
  99447. t4 = t3._as(t4);
  99448. t5 = t2.contains$1(0, t4);
  99449. if (t5) {
  99450. t4 = t4.toString$0(0);
  99451. _this.internalWarn$4$deprecation$span$trace("Ignoring setting to silence " + t4 + string$.x20deprex2c, _null, _null, _null);
  99452. continue;
  99453. }
  99454. }
  99455. for (t1 = A._LinkedHashSetIterator$(t2, t2._modifications, A._instanceType(t2)._precomputed1), t2 = t1.$ti._precomputed1, t3 = _this.futureDeprecations; t1.moveNext$0();) {
  99456. t4 = t1._collection$_current;
  99457. if (B.Deprecation_JeE === (t4 == null ? t2._as(t4) : t4)) {
  99458. _this.internalWarn$4$deprecation$span$trace(string$.User_a, _null, _null, _null);
  99459. continue;
  99460. }
  99461. }
  99462. for (t1 = A._LinkedHashSetIterator$(t3, t3._modifications, A._instanceType(t3)._precomputed1), t2 = t1.$ti._precomputed1; t1.moveNext$0();) {
  99463. t3 = t1._collection$_current;
  99464. t3 = (t3 == null ? t2._as(t3) : t3).toString$0(0);
  99465. _this.internalWarn$4$deprecation$span$trace(t3 + string$.x20is_noaf, _null, _null, _null);
  99466. }
  99467. },
  99468. internalWarn$4$deprecation$span$trace(message, deprecation, span, trace) {
  99469. if (deprecation != null)
  99470. this._deprecation_processing$_handleDeprecation$4$span$trace(deprecation, message, span, trace);
  99471. else
  99472. this._deprecation_processing$_inner.warn$3$span$trace(0, message, span, trace);
  99473. },
  99474. _deprecation_processing$_handleDeprecation$4$span$trace(deprecation, message, span, trace) {
  99475. var _0_3_isSet, _0_3, t1, span0, t2, count, _1_0, _this = this, _null = null;
  99476. if (_this.fatalDeprecations.contains$1(0, deprecation)) {
  99477. message += string$.x0a_This + deprecation.toString$0(0) + string$.x20deprex20;
  99478. $label0$0: {
  99479. _0_3_isSet = span != null;
  99480. _0_3 = _null;
  99481. t1 = false;
  99482. if (_0_3_isSet) {
  99483. span0 = span == null ? type$.FileSpan._as(span) : span;
  99484. t1 = trace != null;
  99485. _0_3 = trace;
  99486. } else
  99487. span0 = _null;
  99488. if (t1) {
  99489. if (_0_3_isSet)
  99490. trace = _0_3;
  99491. t1 = A.SassRuntimeException$0(message, span0, trace == null ? type$.Trace._as(trace) : trace, _null);
  99492. break $label0$0;
  99493. }
  99494. t1 = false;
  99495. if (span != null)
  99496. t1 = (_0_3_isSet ? _0_3 : trace) == null;
  99497. else
  99498. span = _null;
  99499. if (t1) {
  99500. t1 = A.SassException$0(message, span, _null);
  99501. break $label0$0;
  99502. }
  99503. t1 = A.SassScriptException$0(message, _null);
  99504. break $label0$0;
  99505. }
  99506. throw A.wrapException(t1);
  99507. }
  99508. if (_this.silenceDeprecations.contains$1(0, deprecation))
  99509. return;
  99510. if (_this.limitRepetition) {
  99511. t1 = _this._deprecation_processing$_warningCounts;
  99512. t2 = t1.$index(0, deprecation);
  99513. count = (t2 == null ? 0 : t2) + 1;
  99514. t1.$indexSet(0, deprecation, count);
  99515. if (count > 5)
  99516. return;
  99517. }
  99518. _1_0 = _this._deprecation_processing$_inner;
  99519. if (_1_0 instanceof A.LoggerWithDeprecationType)
  99520. _1_0.internalWarn$4$deprecation$span$trace(message, deprecation, span, trace);
  99521. else
  99522. _1_0.warn$4$deprecation$span$trace(0, message, true, span, trace);
  99523. },
  99524. debug$2(_, message, span) {
  99525. return this._deprecation_processing$_inner.debug$2(0, message, span);
  99526. },
  99527. summarize$1$js(js) {
  99528. var t1 = this._deprecation_processing$_warningCounts.get$values(0),
  99529. t2 = A._instanceType(t1),
  99530. total = A.IterableIntegerExtension_get_sum(new A.MappedIterable(new A.WhereIterable(t1, new A.DeprecationProcessingLogger_summarize_closure1(), t2._eval$1("WhereIterable<Iterable.E>")), new A.DeprecationProcessingLogger_summarize_closure2(), t2._eval$1("MappedIterable<Iterable.E,int>")));
  99531. if (total > 0) {
  99532. t1 = js ? "" : string$.x0aRun_i;
  99533. this._deprecation_processing$_inner.warn$1(0, "" + total + string$.x20repet + t1);
  99534. }
  99535. }
  99536. };
  99537. A.DeprecationProcessingLogger_summarize_closure1.prototype = {
  99538. call$1(count) {
  99539. return count > 5;
  99540. },
  99541. $signature: 47
  99542. };
  99543. A.DeprecationProcessingLogger_summarize_closure2.prototype = {
  99544. call$1(count) {
  99545. return count - 5;
  99546. },
  99547. $signature: 168
  99548. };
  99549. A.Deprecation1.prototype = {};
  99550. A.deprecations_closure.prototype = {
  99551. call$0() {
  99552. var _0_8_isSet, _0_8, t1,
  99553. _0_0 = this.deprecation;
  99554. $label0$0: {
  99555. _0_8_isSet = A.NullableExtension_andThen0(_0_0._deprecation$_deprecatedIn, A.version_Version___parse_tearOff$closure()) == null;
  99556. if (_0_8_isSet) {
  99557. _0_8 = _0_0.get$obsoleteIn(0) == null;
  99558. t1 = _0_8;
  99559. } else {
  99560. _0_8 = null;
  99561. t1 = false;
  99562. }
  99563. if (t1) {
  99564. t1 = "user";
  99565. break $label0$0;
  99566. }
  99567. if (_0_8_isSet ? _0_8 : _0_0.get$obsoleteIn(0) == null) {
  99568. t1 = "active";
  99569. break $label0$0;
  99570. }
  99571. t1 = "obsolete";
  99572. break $label0$0;
  99573. }
  99574. return t1;
  99575. },
  99576. $signature: 31
  99577. };
  99578. A.parseDeprecations_closure.prototype = {
  99579. call$0() {
  99580. return new A._SyncStarIterable(this.$call$body$parseDeprecations_closure(), type$._SyncStarIterable_Deprecation);
  99581. },
  99582. $call$body$parseDeprecations_closure() {
  99583. var $async$self = this;
  99584. return function() {
  99585. var $async$goto = 0, $async$handler = 1, $async$currentError, t1, t2, t3, t4, item, t5, id, deprecation, version;
  99586. return function $async$call$0($async$iterator, $async$errorCode, $async$result) {
  99587. if ($async$errorCode === 1) {
  99588. $async$currentError = $async$result;
  99589. $async$goto = $async$handler;
  99590. }
  99591. while (true)
  99592. switch ($async$goto) {
  99593. case 0:
  99594. // Function start
  99595. t1 = J.get$iterator$ax($async$self.deprecations), t2 = type$.Deprecation_2, t3 = $async$self.supportVersions, t4 = $async$self.logger;
  99596. case 2:
  99597. // for condition
  99598. if (!t1.moveNext$0()) {
  99599. // goto after for
  99600. $async$goto = 3;
  99601. break;
  99602. }
  99603. item = t1.get$current(t1);
  99604. t5 = typeof item == "string";
  99605. id = t5 ? item : null;
  99606. $async$goto = t5 ? 4 : 5;
  99607. break;
  99608. case 4:
  99609. // then
  99610. deprecation = A.Deprecation_fromId0(id);
  99611. $async$goto = deprecation == null ? 6 : 8;
  99612. break;
  99613. case 6:
  99614. // then
  99615. t4.internalWarn$4$deprecation$span$trace('Invalid deprecation "' + A.S(id) + '".', null, null, null);
  99616. // goto join
  99617. $async$goto = 7;
  99618. break;
  99619. case 8:
  99620. // else
  99621. $async$goto = 9;
  99622. return $async$iterator._async$_current = deprecation, 1;
  99623. case 9:
  99624. // after yield
  99625. case 7:
  99626. // join
  99627. // goto for condition
  99628. $async$goto = 2;
  99629. break;
  99630. case 5:
  99631. // join
  99632. t5 = t2._is(item);
  99633. id = t5 ? J.get$id$x(item) : null;
  99634. $async$goto = t5 ? 10 : 11;
  99635. break;
  99636. case 10:
  99637. // then
  99638. deprecation = A.Deprecation_fromId0(id);
  99639. $async$goto = deprecation == null ? 12 : 14;
  99640. break;
  99641. case 12:
  99642. // then
  99643. t4.internalWarn$4$deprecation$span$trace('Invalid deprecation "' + A.S(id) + '".', null, null, null);
  99644. // goto join
  99645. $async$goto = 13;
  99646. break;
  99647. case 14:
  99648. // else
  99649. $async$goto = 15;
  99650. return $async$iterator._async$_current = deprecation, 1;
  99651. case 15:
  99652. // after yield
  99653. case 13:
  99654. // join
  99655. // goto for condition
  99656. $async$goto = 2;
  99657. break;
  99658. case 11:
  99659. // join
  99660. if (item instanceof A.Version) {
  99661. t5 = t3;
  99662. version = item;
  99663. } else {
  99664. version = null;
  99665. t5 = false;
  99666. }
  99667. $async$goto = t5 ? 16 : 17;
  99668. break;
  99669. case 16:
  99670. // then
  99671. $async$goto = 18;
  99672. return $async$iterator._yieldStar$1(A.Deprecation_forVersion0(version));
  99673. case 18:
  99674. // after yield
  99675. case 17:
  99676. // join
  99677. // goto for condition
  99678. $async$goto = 2;
  99679. break;
  99680. case 3:
  99681. // after for
  99682. // implicit return
  99683. return 0;
  99684. case 1:
  99685. // rethrow
  99686. return $async$iterator._datum = $async$currentError, 3;
  99687. }
  99688. };
  99689. };
  99690. },
  99691. $signature: 440
  99692. };
  99693. A.versionClass_closure.prototype = {
  99694. call$0() {
  99695. var t1 = type$.JSClass,
  99696. jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.Version", new A.versionClass__closure()));
  99697. jsClass.parse = A.allowInteropNamed("parse", new A.versionClass__closure0());
  99698. A.JSClassExtension_injectSuperclass(t1._as(A.Version_Version(0, 0, 0, null).constructor), jsClass);
  99699. return jsClass;
  99700. },
  99701. $signature: 16
  99702. };
  99703. A.versionClass__closure.prototype = {
  99704. call$4($self, major, minor, patch) {
  99705. return A.Version_Version(major, minor, patch, null);
  99706. },
  99707. "call*": "call$4",
  99708. $requiredArgCount: 4,
  99709. $signature: 441
  99710. };
  99711. A.versionClass__closure0.prototype = {
  99712. call$1(version) {
  99713. var v = A.Version_Version$parse(version);
  99714. if (v.preRelease.length !== 0 || v.build.length !== 0)
  99715. throw A.wrapException(A.FormatException$("Build identifiers and prerelease versions not supported.", null, null));
  99716. return v;
  99717. },
  99718. $signature: 219
  99719. };
  99720. A.DisplayP3ColorSpace0.prototype = {
  99721. get$isBoundedInternal() {
  99722. return true;
  99723. },
  99724. toLinear$1(channel) {
  99725. return A.srgbAndDisplayP3ToLinear0(channel);
  99726. },
  99727. fromLinear$1(channel) {
  99728. return A.srgbAndDisplayP3FromLinear0(channel);
  99729. },
  99730. transformationMatrix$1(dest) {
  99731. var t1;
  99732. $label0$0: {
  99733. if (B.SrgbLinearColorSpace_sEs0 === dest || B.SrgbColorSpace_AD40 === dest || B.RgbColorSpace_mlz0 === dest) {
  99734. t1 = $.$get$linearDisplayP3ToLinearSrgb0();
  99735. break $label0$0;
  99736. }
  99737. if (B.A98RgbColorSpace_bdu0 === dest) {
  99738. t1 = $.$get$linearDisplayP3ToLinearA98Rgb0();
  99739. break $label0$0;
  99740. }
  99741. if (B.ProphotoRgbColorSpace_KiG0 === dest) {
  99742. t1 = $.$get$linearDisplayP3ToLinearProphotoRgb0();
  99743. break $label0$0;
  99744. }
  99745. if (B.Rec2020ColorSpace_2jN0 === dest) {
  99746. t1 = $.$get$linearDisplayP3ToLinearRec20200();
  99747. break $label0$0;
  99748. }
  99749. if (B.XyzD65ColorSpace_4CA0 === dest) {
  99750. t1 = $.$get$linearDisplayP3ToXyzD650();
  99751. break $label0$0;
  99752. }
  99753. if (B.XyzD50ColorSpace_2No0 === dest) {
  99754. t1 = $.$get$linearDisplayP3ToXyzD500();
  99755. break $label0$0;
  99756. }
  99757. if (B.LmsColorSpace_8I80 === dest) {
  99758. t1 = $.$get$linearDisplayP3ToLms0();
  99759. break $label0$0;
  99760. }
  99761. t1 = this.super$ColorSpace$transformationMatrix0(dest);
  99762. break $label0$0;
  99763. }
  99764. return t1;
  99765. }
  99766. };
  99767. A.DynamicImport0.prototype = {
  99768. toString$0(_) {
  99769. return A.StringExpression_quoteText0(this.urlString);
  99770. },
  99771. $isImport0: 1,
  99772. $isAstNode0: 1,
  99773. $isSassNode: 1,
  99774. get$span(receiver) {
  99775. return this.span;
  99776. }
  99777. };
  99778. A.EachRule0.prototype = {
  99779. accept$1$1(visitor) {
  99780. return visitor.visitEachRule$1(0, this);
  99781. },
  99782. accept$1(visitor) {
  99783. return this.accept$1$1(visitor, type$.dynamic);
  99784. },
  99785. toString$0(_) {
  99786. var t1 = this.variables,
  99787. t2 = this.children;
  99788. return "@each " + new A.MappedListIterable(t1, new A.EachRule_toString_closure0(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$1(0, ", ") + " in " + this.list.toString$0(0) + " {" + (t2 && B.JSArray_methods).join$1(t2, " ") + "}";
  99789. },
  99790. get$span(receiver) {
  99791. return this.span;
  99792. }
  99793. };
  99794. A.EachRule_toString_closure0.prototype = {
  99795. call$1(variable) {
  99796. return "$" + variable;
  99797. },
  99798. $signature: 6
  99799. };
  99800. A.EmptyExtensionStore0.prototype = {
  99801. get$_extension_store$_extensions() {
  99802. return A.throwExpression(A.NoSuchMethodError_NoSuchMethodError$withInvocation(this, A.JSInvocationMirror$(B.Symbol__extensions, "get$_empty_extension_store0$_extensions", 1, [], [], 0)));
  99803. },
  99804. get$_extension_store$_sourceSpecificity() {
  99805. return A.throwExpression(A.NoSuchMethodError_NoSuchMethodError$withInvocation(this, A.JSInvocationMirror$(B.Symbol__sourceSpecificity, "get$_empty_extension_store0$_sourceSpecificity", 1, [], [], 0)));
  99806. },
  99807. get$isEmpty(_) {
  99808. return true;
  99809. },
  99810. get$simpleSelectors() {
  99811. return B.C_EmptyUnmodifiableSet0;
  99812. },
  99813. extensionsWhereTarget$1(callback) {
  99814. return B.List_empty18;
  99815. },
  99816. addSelector$2(selector, mediaContext) {
  99817. throw A.wrapException(A.UnsupportedError$("addSelector() can't be called for a const ExtensionStore."));
  99818. },
  99819. addExtension$4(extender, target, extend, mediaContext) {
  99820. throw A.wrapException(A.UnsupportedError$("addExtension() can't be called for a const ExtensionStore."));
  99821. },
  99822. addExtensions$1(extenders) {
  99823. throw A.wrapException(A.UnsupportedError$(string$.addExt));
  99824. },
  99825. clone$0() {
  99826. return B.Record2_EmptyExtensionStore_Map_empty0;
  99827. },
  99828. $isExtensionStore0: 1
  99829. };
  99830. A.Environment0.prototype = {
  99831. closure$0() {
  99832. var t4, t5, t6, _this = this,
  99833. t1 = _this._environment0$_forwardedModules,
  99834. t2 = _this._environment0$_nestedForwardedModules,
  99835. t3 = _this._environment0$_variables;
  99836. t3 = A._setArrayType(t3.slice(0), A._arrayInstanceType(t3));
  99837. t4 = _this._environment0$_variableNodes;
  99838. t4 = A._setArrayType(t4.slice(0), A._arrayInstanceType(t4));
  99839. t5 = _this._environment0$_functions;
  99840. t5 = A._setArrayType(t5.slice(0), A._arrayInstanceType(t5));
  99841. t6 = _this._environment0$_mixins;
  99842. t6 = A._setArrayType(t6.slice(0), A._arrayInstanceType(t6));
  99843. return A.Environment$_0(_this._environment0$_modules, _this._environment0$_namespaceNodes, _this._environment0$_globalModules, _this._environment0$_importedModules, t1, t2, _this._environment0$_allModules, t3, t4, t5, t6, _this._environment0$_content);
  99844. },
  99845. forwardModule$2(module, rule) {
  99846. var view, t1, t2, _this = this,
  99847. forwardedModules = _this._environment0$_forwardedModules;
  99848. if (forwardedModules == null)
  99849. forwardedModules = _this._environment0$_forwardedModules = A.LinkedHashMap_LinkedHashMap$_empty(type$.Module_Callable_2, type$.AstNode_2);
  99850. view = A.ForwardedModuleView_ifNecessary0(module, rule, type$.Callable_2);
  99851. for (t1 = A.LinkedHashMapKeyIterator$(forwardedModules, forwardedModules.__js_helper$_modifications); t1.moveNext$0();) {
  99852. t2 = t1.__js_helper$_current;
  99853. _this._environment0$_assertNoConflicts$5(view.get$variables(), t2.get$variables(), view, t2, "variable");
  99854. _this._environment0$_assertNoConflicts$5(view.get$functions(view), t2.get$functions(t2), view, t2, "function");
  99855. _this._environment0$_assertNoConflicts$5(view.get$mixins(), t2.get$mixins(), view, t2, "mixin");
  99856. }
  99857. _this._environment0$_allModules.push(module);
  99858. forwardedModules.$indexSet(0, view, rule);
  99859. },
  99860. _environment0$_assertNoConflicts$5(newMembers, oldMembers, newModule, oldModule, type) {
  99861. var larger, smaller, t1, t2, t3, t4, $name, small, large, span;
  99862. if (newMembers.get$length(newMembers) < oldMembers.get$length(oldMembers)) {
  99863. larger = oldMembers;
  99864. smaller = newMembers;
  99865. } else {
  99866. larger = newMembers;
  99867. smaller = oldMembers;
  99868. }
  99869. for (t1 = type$.String, t2 = A.MapExtensions_get_pairs0(smaller, t1, type$.Object), t2 = t2.get$iterator(t2), t3 = type === "variable"; t2.moveNext$0();) {
  99870. t4 = t2.get$current(t2);
  99871. $name = t4._0;
  99872. small = t4._1;
  99873. large = larger.$index(0, $name);
  99874. if (large == null)
  99875. continue;
  99876. if (t3 ? newModule.variableIdentity$1($name) === oldModule.variableIdentity$1($name) : J.$eq$(large, small))
  99877. continue;
  99878. if (t3)
  99879. $name = "$" + $name;
  99880. t2 = this._environment0$_forwardedModules;
  99881. if (t2 == null)
  99882. span = null;
  99883. else {
  99884. t2 = t2.$index(0, oldModule);
  99885. span = t2 == null ? null : J.get$span$z(t2);
  99886. }
  99887. t2 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, t1);
  99888. if (span != null)
  99889. t2.$indexSet(0, span, "original @forward");
  99890. throw A.wrapException(A.MultiSpanSassScriptException$0("Two forwarded modules both define a " + type + " named " + $name + ".", "new @forward", t2));
  99891. }
  99892. },
  99893. importForwards$1(module) {
  99894. var forwardedModules, t1, t2, t3, t4, node, t5, t6, t7, t8, t9, t10, _i, t11, shadowed, t12, _length, _list, _this = this,
  99895. forwarded = module._environment0$_environment._environment0$_forwardedModules;
  99896. if (forwarded == null)
  99897. return;
  99898. forwardedModules = _this._environment0$_forwardedModules;
  99899. if (forwardedModules != null) {
  99900. t1 = type$.Module_Callable_2;
  99901. t2 = type$.AstNode_2;
  99902. t3 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
  99903. for (t1 = A.MapExtensions_get_pairs0(forwarded, t1, t2), t1 = t1.get$iterator(t1), t2 = _this._environment0$_globalModules; t1.moveNext$0();) {
  99904. t4 = t1.get$current(t1);
  99905. module = t4._0;
  99906. node = t4._1;
  99907. if (!forwardedModules.containsKey$1(module) || !t2.containsKey$1(module))
  99908. t3.$indexSet(0, module, node);
  99909. }
  99910. forwarded = t3;
  99911. } else
  99912. forwardedModules = _this._environment0$_forwardedModules = A.LinkedHashMap_LinkedHashMap$_empty(type$.Module_Callable_2, type$.AstNode_2);
  99913. t1 = type$.String;
  99914. t2 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
  99915. for (t3 = A.LinkedHashMapKeyIterator$(forwarded, forwarded.__js_helper$_modifications); t3.moveNext$0();)
  99916. for (t4 = t3.__js_helper$_current.get$variables(), t4 = J.get$iterator$ax(t4.get$keys(t4)); t4.moveNext$0();)
  99917. t2.add$1(0, t4.get$current(t4));
  99918. t3 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
  99919. for (t4 = A.LinkedHashMapKeyIterator$(forwarded, forwarded.__js_helper$_modifications); t4.moveNext$0();) {
  99920. t5 = t4.__js_helper$_current;
  99921. for (t5 = t5.get$functions(t5), t5 = J.get$iterator$ax(t5.get$keys(t5)); t5.moveNext$0();)
  99922. t3.add$1(0, t5.get$current(t5));
  99923. }
  99924. t1 = A.LinkedHashSet_LinkedHashSet$_empty(t1);
  99925. for (t4 = A.LinkedHashMapKeyIterator$(forwarded, forwarded.__js_helper$_modifications); t4.moveNext$0();)
  99926. for (t5 = t4.__js_helper$_current.get$mixins(), t5 = J.get$iterator$ax(t5.get$keys(t5)); t5.moveNext$0();)
  99927. t1.add$1(0, t5.get$current(t5));
  99928. t4 = _this._environment0$_variables;
  99929. t5 = t4.length;
  99930. if (t5 === 1) {
  99931. for (t5 = _this._environment0$_importedModules, t6 = type$.Module_Callable_2, t7 = type$.AstNode_2, t8 = A.MapExtensions_get_pairs0(t5, t6, t7).toList$0(0), t9 = t8.length, t10 = type$.Callable_2, _i = 0; _i < t8.length; t8.length === t9 || (0, A.throwConcurrentModificationError)(t8), ++_i) {
  99932. t11 = t8[_i];
  99933. module = t11._0;
  99934. node = t11._1;
  99935. shadowed = A.ShadowedModuleView_ifNecessary0(module, t3, t1, t2, t10);
  99936. if (shadowed != null) {
  99937. t5.remove$1(0, module);
  99938. t11 = shadowed.variables;
  99939. t12 = false;
  99940. if (t11.get$isEmpty(t11)) {
  99941. t11 = shadowed.functions;
  99942. if (t11.get$isEmpty(t11)) {
  99943. t11 = shadowed.mixins;
  99944. if (t11.get$isEmpty(t11)) {
  99945. t11 = shadowed._shadowed_view0$_inner;
  99946. t11 = t11.get$css(t11);
  99947. t11 = J.get$isEmpty$asx(t11.get$children(t11));
  99948. } else
  99949. t11 = t12;
  99950. } else
  99951. t11 = t12;
  99952. } else
  99953. t11 = t12;
  99954. if (!t11)
  99955. t5.$indexSet(0, shadowed, node);
  99956. }
  99957. }
  99958. for (t6 = A.MapExtensions_get_pairs0(forwardedModules, t6, t7).toList$0(0), t7 = t6.length, _i = 0; _i < t6.length; t6.length === t7 || (0, A.throwConcurrentModificationError)(t6), ++_i) {
  99959. t8 = t6[_i];
  99960. module = t8._0;
  99961. node = t8._1;
  99962. shadowed = A.ShadowedModuleView_ifNecessary0(module, t3, t1, t2, t10);
  99963. if (shadowed != null) {
  99964. forwardedModules.remove$1(0, module);
  99965. t8 = shadowed.variables;
  99966. t9 = false;
  99967. if (t8.get$isEmpty(t8)) {
  99968. t8 = shadowed.functions;
  99969. if (t8.get$isEmpty(t8)) {
  99970. t8 = shadowed.mixins;
  99971. if (t8.get$isEmpty(t8)) {
  99972. t8 = shadowed._shadowed_view0$_inner;
  99973. t8 = t8.get$css(t8);
  99974. t8 = J.get$isEmpty$asx(t8.get$children(t8));
  99975. } else
  99976. t8 = t9;
  99977. } else
  99978. t8 = t9;
  99979. } else
  99980. t8 = t9;
  99981. if (!t8)
  99982. forwardedModules.$indexSet(0, shadowed, node);
  99983. }
  99984. }
  99985. t5.addAll$1(0, forwarded);
  99986. forwardedModules.addAll$1(0, forwarded);
  99987. } else {
  99988. t6 = _this._environment0$_nestedForwardedModules;
  99989. if (t6 == null) {
  99990. _length = t5 - 1;
  99991. _list = J.JSArray_JSArray$allocateGrowable(_length, type$.List_Module_Callable_2);
  99992. for (t5 = type$.JSArray_Module_Callable_2, _i = 0; _i < _length; ++_i)
  99993. _list[_i] = A._setArrayType([], t5);
  99994. _this._environment0$_nestedForwardedModules = _list;
  99995. t5 = _list;
  99996. } else
  99997. t5 = t6;
  99998. B.JSArray_methods.addAll$1(B.JSArray_methods.get$last(t5), new A.LinkedHashMapKeyIterable(forwarded, A._instanceType(forwarded)._eval$1("LinkedHashMapKeyIterable<1>")));
  99999. }
  100000. for (t2 = A._LinkedHashSetIterator$(t2, t2._modifications, t2.$ti._precomputed1), t5 = _this._environment0$_variableIndices, t6 = _this._environment0$_variableNodes, t7 = t2.$ti._precomputed1; t2.moveNext$0();) {
  100001. t8 = t2._collection$_current;
  100002. if (t8 == null)
  100003. t8 = t7._as(t8);
  100004. t5.remove$1(0, t8);
  100005. J.remove$1$z(B.JSArray_methods.get$last(t4), t8);
  100006. J.remove$1$z(B.JSArray_methods.get$last(t6), t8);
  100007. }
  100008. for (t2 = A._LinkedHashSetIterator$(t3, t3._modifications, t3.$ti._precomputed1), t3 = _this._environment0$_functionIndices, t4 = _this._environment0$_functions, t5 = t2.$ti._precomputed1; t2.moveNext$0();) {
  100009. t6 = t2._collection$_current;
  100010. if (t6 == null)
  100011. t6 = t5._as(t6);
  100012. t3.remove$1(0, t6);
  100013. J.remove$1$z(B.JSArray_methods.get$last(t4), t6);
  100014. }
  100015. for (t1 = A._LinkedHashSetIterator$(t1, t1._modifications, t1.$ti._precomputed1), t2 = _this._environment0$_mixinIndices, t3 = _this._environment0$_mixins, t4 = t1.$ti._precomputed1; t1.moveNext$0();) {
  100016. t5 = t1._collection$_current;
  100017. if (t5 == null)
  100018. t5 = t4._as(t5);
  100019. t2.remove$1(0, t5);
  100020. J.remove$1$z(B.JSArray_methods.get$last(t3), t5);
  100021. }
  100022. },
  100023. getVariable$2$namespace($name, namespace) {
  100024. var t1, _0_0, _1_0, _this = this;
  100025. if (namespace != null)
  100026. return _this._environment0$_getModule$1(namespace).get$variables().$index(0, $name);
  100027. if (_this._environment0$_lastVariableName === $name) {
  100028. t1 = _this._environment0$_lastVariableIndex;
  100029. t1.toString;
  100030. t1 = J.$index$asx(_this._environment0$_variables[t1], $name);
  100031. return t1 == null ? _this._environment0$_getVariableFromGlobalModule$1($name) : t1;
  100032. }
  100033. t1 = _this._environment0$_variableIndices;
  100034. _0_0 = t1.$index(0, $name);
  100035. if (_0_0 != null) {
  100036. _this._environment0$_lastVariableName = $name;
  100037. _this._environment0$_lastVariableIndex = _0_0;
  100038. t1 = J.$index$asx(_this._environment0$_variables[_0_0], $name);
  100039. return t1 == null ? _this._environment0$_getVariableFromGlobalModule$1($name) : t1;
  100040. } else {
  100041. _1_0 = _this._environment0$_variableIndex$1($name);
  100042. if (_1_0 != null) {
  100043. _this._environment0$_lastVariableName = $name;
  100044. _this._environment0$_lastVariableIndex = _1_0;
  100045. t1.$indexSet(0, $name, _1_0);
  100046. t1 = J.$index$asx(_this._environment0$_variables[_1_0], $name);
  100047. return t1 == null ? _this._environment0$_getVariableFromGlobalModule$1($name) : t1;
  100048. } else
  100049. return _this._environment0$_getVariableFromGlobalModule$1($name);
  100050. }
  100051. },
  100052. getVariable$1($name) {
  100053. return this.getVariable$2$namespace($name, null);
  100054. },
  100055. _environment0$_getVariableFromGlobalModule$1($name) {
  100056. return this._environment0$_fromOneModule$3($name, "variable", new A.Environment__getVariableFromGlobalModule_closure0($name));
  100057. },
  100058. getVariableNode$2$namespace($name, namespace) {
  100059. var t1, _0_0, _1_0, _this = this;
  100060. if (namespace != null)
  100061. return _this._environment0$_getModule$1(namespace).get$variableNodes().$index(0, $name);
  100062. if (_this._environment0$_lastVariableName === $name) {
  100063. t1 = _this._environment0$_lastVariableIndex;
  100064. t1.toString;
  100065. t1 = J.$index$asx(_this._environment0$_variableNodes[t1], $name);
  100066. return t1 == null ? _this._environment0$_getVariableNodeFromGlobalModule$1($name) : t1;
  100067. }
  100068. t1 = _this._environment0$_variableIndices;
  100069. _0_0 = t1.$index(0, $name);
  100070. if (_0_0 != null) {
  100071. _this._environment0$_lastVariableName = $name;
  100072. _this._environment0$_lastVariableIndex = _0_0;
  100073. t1 = J.$index$asx(_this._environment0$_variableNodes[_0_0], $name);
  100074. return t1 == null ? _this._environment0$_getVariableNodeFromGlobalModule$1($name) : t1;
  100075. } else {
  100076. _1_0 = _this._environment0$_variableIndex$1($name);
  100077. if (_1_0 != null) {
  100078. _this._environment0$_lastVariableName = $name;
  100079. _this._environment0$_lastVariableIndex = _1_0;
  100080. t1.$indexSet(0, $name, _1_0);
  100081. t1 = J.$index$asx(_this._environment0$_variableNodes[_1_0], $name);
  100082. return t1 == null ? _this._environment0$_getVariableNodeFromGlobalModule$1($name) : t1;
  100083. } else
  100084. return _this._environment0$_getVariableNodeFromGlobalModule$1($name);
  100085. }
  100086. },
  100087. _environment0$_getVariableNodeFromGlobalModule$1($name) {
  100088. var t1, t2, _0_0;
  100089. for (t1 = this._environment0$_importedModules, t2 = this._environment0$_globalModules, t2 = new A.LinkedHashMapKeyIterable(t1, A._instanceType(t1)._eval$1("LinkedHashMapKeyIterable<1>")).followedBy$1(0, new A.LinkedHashMapKeyIterable(t2, A._instanceType(t2)._eval$1("LinkedHashMapKeyIterable<1>"))), t2 = new A.FollowedByIterator(J.get$iterator$ax(t2.__internal$_first), t2._second); t2.moveNext$0();) {
  100090. t1 = t2._currentIterator;
  100091. _0_0 = t1.get$current(t1).get$variableNodes().$index(0, $name);
  100092. if (_0_0 != null)
  100093. return _0_0;
  100094. }
  100095. return null;
  100096. },
  100097. globalVariableExists$2$namespace($name, namespace) {
  100098. if (namespace != null)
  100099. return this._environment0$_getModule$1(namespace).get$variables().containsKey$1($name);
  100100. if (B.JSArray_methods.get$first(this._environment0$_variables).containsKey$1($name))
  100101. return true;
  100102. return this._environment0$_getVariableFromGlobalModule$1($name) != null;
  100103. },
  100104. globalVariableExists$1($name) {
  100105. return this.globalVariableExists$2$namespace($name, null);
  100106. },
  100107. _environment0$_variableIndex$1($name) {
  100108. var t1, i;
  100109. for (t1 = this._environment0$_variables, i = t1.length - 1; i >= 0; --i)
  100110. if (t1[i].containsKey$1($name))
  100111. return i;
  100112. return null;
  100113. },
  100114. setVariable$5$global$namespace($name, value, nodeWithSpan, global, namespace) {
  100115. var t1, moduleWithName, nestedForwardedModules, t2, t3, t4, t5, index, _this = this;
  100116. if (namespace != null) {
  100117. _this._environment0$_getModule$1(namespace).setVariable$3($name, value, nodeWithSpan);
  100118. return;
  100119. }
  100120. if (global || _this._environment0$_variables.length === 1) {
  100121. _this._environment0$_variableIndices.putIfAbsent$2($name, new A.Environment_setVariable_closure2(_this, $name));
  100122. t1 = _this._environment0$_variables;
  100123. if (!B.JSArray_methods.get$first(t1).containsKey$1($name)) {
  100124. moduleWithName = _this._environment0$_fromOneModule$3($name, "variable", new A.Environment_setVariable_closure3($name));
  100125. if (moduleWithName != null) {
  100126. moduleWithName.setVariable$3($name, value, nodeWithSpan);
  100127. return;
  100128. }
  100129. }
  100130. J.$indexSet$ax(B.JSArray_methods.get$first(t1), $name, value);
  100131. J.$indexSet$ax(B.JSArray_methods.get$first(_this._environment0$_variableNodes), $name, nodeWithSpan);
  100132. return;
  100133. }
  100134. nestedForwardedModules = _this._environment0$_nestedForwardedModules;
  100135. if (nestedForwardedModules != null && !_this._environment0$_variableIndices.containsKey$1($name) && _this._environment0$_variableIndex$1($name) == null)
  100136. for (t1 = A._arrayInstanceType(nestedForwardedModules)._eval$1("ReversedListIterable<1>"), t2 = new A.ReversedListIterable(nestedForwardedModules, t1), t2 = new A.ListIterator(t2, t2.get$length(0), t1._eval$1("ListIterator<ListIterable.E>")), t1 = t1._eval$1("ListIterable.E"); t2.moveNext$0();) {
  100137. t3 = t2.__internal$_current;
  100138. for (t3 = J.get$reversed$ax(t3 == null ? t1._as(t3) : t3), t4 = t3.$ti, t3 = new A.ListIterator(t3, t3.get$length(0), t4._eval$1("ListIterator<ListIterable.E>")), t4 = t4._eval$1("ListIterable.E"); t3.moveNext$0();) {
  100139. t5 = t3.__internal$_current;
  100140. if (t5 == null)
  100141. t5 = t4._as(t5);
  100142. if (t5.get$variables().containsKey$1($name)) {
  100143. t5.setVariable$3($name, value, nodeWithSpan);
  100144. return;
  100145. }
  100146. }
  100147. }
  100148. if (_this._environment0$_lastVariableName === $name) {
  100149. t1 = _this._environment0$_lastVariableIndex;
  100150. t1.toString;
  100151. index = t1;
  100152. } else
  100153. index = _this._environment0$_variableIndices.putIfAbsent$2($name, new A.Environment_setVariable_closure4(_this, $name));
  100154. if (!_this._environment0$_inSemiGlobalScope && index === 0) {
  100155. index = _this._environment0$_variables.length - 1;
  100156. _this._environment0$_variableIndices.$indexSet(0, $name, index);
  100157. }
  100158. _this._environment0$_lastVariableName = $name;
  100159. _this._environment0$_lastVariableIndex = index;
  100160. J.$indexSet$ax(_this._environment0$_variables[index], $name, value);
  100161. J.$indexSet$ax(_this._environment0$_variableNodes[index], $name, nodeWithSpan);
  100162. },
  100163. setVariable$4$global($name, value, nodeWithSpan, global) {
  100164. return this.setVariable$5$global$namespace($name, value, nodeWithSpan, global, null);
  100165. },
  100166. setLocalVariable$3($name, value, nodeWithSpan) {
  100167. var index, _this = this,
  100168. t1 = _this._environment0$_variables,
  100169. t2 = t1.length;
  100170. _this._environment0$_lastVariableName = $name;
  100171. index = _this._environment0$_lastVariableIndex = t2 - 1;
  100172. _this._environment0$_variableIndices.$indexSet(0, $name, index);
  100173. J.$indexSet$ax(t1[index], $name, value);
  100174. J.$indexSet$ax(_this._environment0$_variableNodes[index], $name, nodeWithSpan);
  100175. },
  100176. getFunction$2$namespace($name, namespace) {
  100177. var t1, _0_0, _1_0, _this = this;
  100178. if (namespace != null) {
  100179. t1 = _this._environment0$_getModule$1(namespace);
  100180. return t1.get$functions(t1).$index(0, $name);
  100181. }
  100182. t1 = _this._environment0$_functionIndices;
  100183. _0_0 = t1.$index(0, $name);
  100184. if (_0_0 != null) {
  100185. t1 = J.$index$asx(_this._environment0$_functions[_0_0], $name);
  100186. return t1 == null ? _this._environment0$_getFunctionFromGlobalModule$1($name) : t1;
  100187. } else {
  100188. _1_0 = _this._environment0$_functionIndex$1($name);
  100189. if (_1_0 != null) {
  100190. t1.$indexSet(0, $name, _1_0);
  100191. t1 = J.$index$asx(_this._environment0$_functions[_1_0], $name);
  100192. return t1 == null ? _this._environment0$_getFunctionFromGlobalModule$1($name) : t1;
  100193. } else
  100194. return _this._environment0$_getFunctionFromGlobalModule$1($name);
  100195. }
  100196. },
  100197. getFunction$1($name) {
  100198. return this.getFunction$2$namespace($name, null);
  100199. },
  100200. _environment0$_getFunctionFromGlobalModule$1($name) {
  100201. return this._environment0$_fromOneModule$3($name, "function", new A.Environment__getFunctionFromGlobalModule_closure0($name));
  100202. },
  100203. _environment0$_functionIndex$1($name) {
  100204. var t1, i;
  100205. for (t1 = this._environment0$_functions, i = t1.length - 1; i >= 0; --i)
  100206. if (t1[i].containsKey$1($name))
  100207. return i;
  100208. return null;
  100209. },
  100210. getMixin$2$namespace($name, namespace) {
  100211. var t1, _0_0, _1_0, _this = this;
  100212. if (namespace != null)
  100213. return _this._environment0$_getModule$1(namespace).get$mixins().$index(0, $name);
  100214. t1 = _this._environment0$_mixinIndices;
  100215. _0_0 = t1.$index(0, $name);
  100216. if (_0_0 != null) {
  100217. t1 = J.$index$asx(_this._environment0$_mixins[_0_0], $name);
  100218. return t1 == null ? _this._environment0$_getMixinFromGlobalModule$1($name) : t1;
  100219. } else {
  100220. _1_0 = _this._environment0$_mixinIndex$1($name);
  100221. if (_1_0 != null) {
  100222. t1.$indexSet(0, $name, _1_0);
  100223. t1 = J.$index$asx(_this._environment0$_mixins[_1_0], $name);
  100224. return t1 == null ? _this._environment0$_getMixinFromGlobalModule$1($name) : t1;
  100225. } else
  100226. return _this._environment0$_getMixinFromGlobalModule$1($name);
  100227. }
  100228. },
  100229. _environment0$_getMixinFromGlobalModule$1($name) {
  100230. return this._environment0$_fromOneModule$3($name, "mixin", new A.Environment__getMixinFromGlobalModule_closure0($name));
  100231. },
  100232. _environment0$_mixinIndex$1($name) {
  100233. var t1, i;
  100234. for (t1 = this._environment0$_mixins, i = t1.length - 1; i >= 0; --i)
  100235. if (t1[i].containsKey$1($name))
  100236. return i;
  100237. return null;
  100238. },
  100239. withContent$2($content, callback) {
  100240. var oldContent = this._environment0$_content;
  100241. this._environment0$_content = $content;
  100242. callback.call$0();
  100243. this._environment0$_content = oldContent;
  100244. },
  100245. asMixin$1(callback) {
  100246. var oldInMixin = this._environment0$_inMixin;
  100247. this._environment0$_inMixin = true;
  100248. callback.call$0();
  100249. this._environment0$_inMixin = oldInMixin;
  100250. },
  100251. scope$1$3$semiGlobal$when(callback, semiGlobal, when) {
  100252. var wasInSemiGlobalScope, $name, name0, name1, t1, t2, t3, t4, t5, t6, _this = this;
  100253. semiGlobal = semiGlobal && _this._environment0$_inSemiGlobalScope;
  100254. wasInSemiGlobalScope = _this._environment0$_inSemiGlobalScope;
  100255. _this._environment0$_inSemiGlobalScope = semiGlobal;
  100256. if (!when)
  100257. try {
  100258. t1 = callback.call$0();
  100259. return t1;
  100260. } finally {
  100261. _this._environment0$_inSemiGlobalScope = wasInSemiGlobalScope;
  100262. }
  100263. t1 = _this._environment0$_variables;
  100264. t2 = type$.String;
  100265. B.JSArray_methods.add$1(t1, A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.Value_2));
  100266. t3 = _this._environment0$_variableNodes;
  100267. B.JSArray_methods.add$1(t3, A.LinkedHashMap_LinkedHashMap$_empty(t2, type$.AstNode_2));
  100268. t4 = _this._environment0$_functions;
  100269. t5 = type$.Callable_2;
  100270. B.JSArray_methods.add$1(t4, A.LinkedHashMap_LinkedHashMap$_empty(t2, t5));
  100271. t6 = _this._environment0$_mixins;
  100272. B.JSArray_methods.add$1(t6, A.LinkedHashMap_LinkedHashMap$_empty(t2, t5));
  100273. t5 = _this._environment0$_nestedForwardedModules;
  100274. if (t5 != null)
  100275. t5.push(A._setArrayType([], type$.JSArray_Module_Callable_2));
  100276. try {
  100277. t2 = callback.call$0();
  100278. return t2;
  100279. } finally {
  100280. _this._environment0$_inSemiGlobalScope = wasInSemiGlobalScope;
  100281. _this._environment0$_lastVariableIndex = _this._environment0$_lastVariableName = null;
  100282. for (t1 = J.get$iterator$ax(J.get$keys$z(B.JSArray_methods.removeLast$0(t1))), t2 = _this._environment0$_variableIndices; t1.moveNext$0();) {
  100283. $name = t1.get$current(t1);
  100284. t2.remove$1(0, $name);
  100285. }
  100286. B.JSArray_methods.removeLast$0(t3);
  100287. for (t1 = J.get$iterator$ax(J.get$keys$z(B.JSArray_methods.removeLast$0(t4))), t2 = _this._environment0$_functionIndices; t1.moveNext$0();) {
  100288. name0 = t1.get$current(t1);
  100289. t2.remove$1(0, name0);
  100290. }
  100291. for (t1 = J.get$iterator$ax(J.get$keys$z(B.JSArray_methods.removeLast$0(t6))), t2 = _this._environment0$_mixinIndices; t1.moveNext$0();) {
  100292. name1 = t1.get$current(t1);
  100293. t2.remove$1(0, name1);
  100294. }
  100295. t1 = _this._environment0$_nestedForwardedModules;
  100296. if (t1 != null)
  100297. t1.pop();
  100298. }
  100299. },
  100300. scope$1$1(callback) {
  100301. return this.scope$1$3$semiGlobal$when(callback, false, true);
  100302. },
  100303. scope$1$2$when(callback, when) {
  100304. return this.scope$1$3$semiGlobal$when(callback, false, when);
  100305. },
  100306. scope$1$2$semiGlobal(callback, semiGlobal) {
  100307. return this.scope$1$3$semiGlobal$when(callback, semiGlobal, true);
  100308. },
  100309. toImplicitConfiguration$0() {
  100310. var t2, t3, t4, i, values, nodes, t5, t6, $name, value,
  100311. t1 = type$.String,
  100312. configuration = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.ConfiguredValue_2);
  100313. for (t2 = this._environment0$_variables, t3 = type$.Value_2, t4 = this._environment0$_variableNodes, i = 0; i < t2.length; ++i) {
  100314. values = t2[i];
  100315. nodes = t4[i];
  100316. for (t5 = A.MapExtensions_get_pairs0(values, t1, t3), t5 = t5.get$iterator(t5); t5.moveNext$0();) {
  100317. t6 = t5.get$current(t5);
  100318. $name = t6._0;
  100319. value = t6._1;
  100320. t6 = nodes.$index(0, $name);
  100321. t6.toString;
  100322. configuration.$indexSet(0, $name, new A.ConfiguredValue0(value, null, t6));
  100323. }
  100324. }
  100325. return new A.Configuration0(configuration, null);
  100326. },
  100327. toModule$3(css, preModuleComments, extensionStore) {
  100328. return A._EnvironmentModule__EnvironmentModule1(this, css, preModuleComments, extensionStore, A.NullableExtension_andThen0(this._environment0$_forwardedModules, new A.Environment_toModule_closure0()));
  100329. },
  100330. toDummyModule$0() {
  100331. return A._EnvironmentModule__EnvironmentModule1(this, new A.CssStylesheet0(new A.UnmodifiableListView(B.List_empty17, type$.UnmodifiableListView_CssNode_2), A.SourceFile$decoded(B.List_empty4, "<dummy module>").span$1(0, 0)), B.Map_empty9, B.C_EmptyExtensionStore0, A.NullableExtension_andThen0(this._environment0$_forwardedModules, new A.Environment_toDummyModule_closure0()));
  100332. },
  100333. _environment0$_getModule$1(namespace) {
  100334. var _0_0 = this._environment0$_modules.$index(0, namespace);
  100335. if (_0_0 != null)
  100336. return _0_0;
  100337. throw A.wrapException(A.SassScriptException$0('There is no module with the namespace "' + namespace + '".', null));
  100338. },
  100339. _environment0$_fromOneModule$1$3($name, type, callback) {
  100340. var t1, t2, t3, t4, t5, _1_0, _2_0, value, identity, valueInModule, identityFromModule, module, node,
  100341. _0_0 = this._environment0$_nestedForwardedModules;
  100342. if (_0_0 != null)
  100343. for (t1 = A._arrayInstanceType(_0_0)._eval$1("ReversedListIterable<1>"), t2 = new A.ReversedListIterable(_0_0, t1), t2 = new A.ListIterator(t2, t2.get$length(0), t1._eval$1("ListIterator<ListIterable.E>")), t1 = t1._eval$1("ListIterable.E"); t2.moveNext$0();) {
  100344. t3 = t2.__internal$_current;
  100345. for (t3 = J.get$reversed$ax(t3 == null ? t1._as(t3) : t3), t4 = t3.$ti, t3 = new A.ListIterator(t3, t3.get$length(0), t4._eval$1("ListIterator<ListIterable.E>")), t4 = t4._eval$1("ListIterable.E"); t3.moveNext$0();) {
  100346. t5 = t3.__internal$_current;
  100347. _1_0 = callback.call$1(t5 == null ? t4._as(t5) : t5);
  100348. if (_1_0 != null)
  100349. return _1_0;
  100350. }
  100351. }
  100352. for (t1 = this._environment0$_importedModules, t1 = A.LinkedHashMapKeyIterator$(t1, t1.__js_helper$_modifications); t1.moveNext$0();) {
  100353. _2_0 = callback.call$1(t1.__js_helper$_current);
  100354. if (_2_0 != null)
  100355. return _2_0;
  100356. }
  100357. for (t1 = this._environment0$_globalModules, t2 = A.LinkedHashMapKeyIterator$(t1, t1.__js_helper$_modifications), t3 = type$.Callable_2, value = null, identity = null; t2.moveNext$0();) {
  100358. t4 = t2.__js_helper$_current;
  100359. valueInModule = callback.call$1(t4);
  100360. if (valueInModule == null)
  100361. continue;
  100362. identityFromModule = t3._is(valueInModule) ? valueInModule : t4.variableIdentity$1($name);
  100363. if (identityFromModule.$eq(0, identity))
  100364. continue;
  100365. if (value != null) {
  100366. t2 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
  100367. for (t3 = A.MapExtensions_get_pairs0(t1, type$.Module_Callable_2, type$.AstNode_2), t3 = t3.get$iterator(t3), t4 = "includes " + type; t3.moveNext$0();) {
  100368. t1 = t3.get$current(t3);
  100369. module = t1._0;
  100370. node = t1._1;
  100371. if (callback.call$1(module) != null)
  100372. t2.$indexSet(0, node.get$span(node), t4);
  100373. }
  100374. throw A.wrapException(A.MultiSpanSassScriptException$0("This " + type + string$.x20is_av, type + " use", t2));
  100375. }
  100376. identity = identityFromModule;
  100377. value = valueInModule;
  100378. }
  100379. return value;
  100380. },
  100381. _environment0$_fromOneModule$3($name, type, callback) {
  100382. return this._environment0$_fromOneModule$1$3($name, type, callback, type$.dynamic);
  100383. }
  100384. };
  100385. A.Environment__getVariableFromGlobalModule_closure0.prototype = {
  100386. call$1(module) {
  100387. return module.get$variables().$index(0, this.name);
  100388. },
  100389. $signature: 444
  100390. };
  100391. A.Environment_setVariable_closure2.prototype = {
  100392. call$0() {
  100393. var t1 = this.$this;
  100394. t1._environment0$_lastVariableName = this.name;
  100395. return t1._environment0$_lastVariableIndex = 0;
  100396. },
  100397. $signature: 10
  100398. };
  100399. A.Environment_setVariable_closure3.prototype = {
  100400. call$1(module) {
  100401. return module.get$variables().containsKey$1(this.name) ? module : null;
  100402. },
  100403. $signature: 445
  100404. };
  100405. A.Environment_setVariable_closure4.prototype = {
  100406. call$0() {
  100407. var t1 = this.$this,
  100408. t2 = t1._environment0$_variableIndex$1(this.name);
  100409. return t2 == null ? t1._environment0$_variables.length - 1 : t2;
  100410. },
  100411. $signature: 10
  100412. };
  100413. A.Environment__getFunctionFromGlobalModule_closure0.prototype = {
  100414. call$1(module) {
  100415. return module.get$functions(module).$index(0, this.name);
  100416. },
  100417. $signature: 221
  100418. };
  100419. A.Environment__getMixinFromGlobalModule_closure0.prototype = {
  100420. call$1(module) {
  100421. return module.get$mixins().$index(0, this.name);
  100422. },
  100423. $signature: 221
  100424. };
  100425. A.Environment_toModule_closure0.prototype = {
  100426. call$1(modules) {
  100427. return new A.MapKeySet(modules, type$.MapKeySet_Module_Callable_2);
  100428. },
  100429. $signature: 222
  100430. };
  100431. A.Environment_toDummyModule_closure0.prototype = {
  100432. call$1(modules) {
  100433. return new A.MapKeySet(modules, type$.MapKeySet_Module_Callable_2);
  100434. },
  100435. $signature: 222
  100436. };
  100437. A._EnvironmentModule1.prototype = {
  100438. get$url(_) {
  100439. var t1 = this.css;
  100440. return t1.get$span(t1).file.url;
  100441. },
  100442. setVariable$3($name, value, nodeWithSpan) {
  100443. var t1, t2,
  100444. _0_0 = this._environment0$_modulesByVariable.$index(0, $name);
  100445. if (_0_0 != null) {
  100446. _0_0.setVariable$3($name, value, nodeWithSpan);
  100447. return;
  100448. }
  100449. t1 = this._environment0$_environment;
  100450. t2 = t1._environment0$_variables;
  100451. if (!B.JSArray_methods.get$first(t2).containsKey$1($name))
  100452. throw A.wrapException(A.SassScriptException$0("Undefined variable.", null));
  100453. J.$indexSet$ax(B.JSArray_methods.get$first(t2), $name, value);
  100454. J.$indexSet$ax(B.JSArray_methods.get$first(t1._environment0$_variableNodes), $name, nodeWithSpan);
  100455. return;
  100456. },
  100457. variableIdentity$1($name) {
  100458. var module = this._environment0$_modulesByVariable.$index(0, $name);
  100459. return module == null ? this : module.variableIdentity$1($name);
  100460. },
  100461. cloneCss$0() {
  100462. var _0_0, _this = this;
  100463. if (!_this.transitivelyContainsCss)
  100464. return _this;
  100465. _0_0 = A.cloneCssStylesheet0(_this.css, _this.extensionStore);
  100466. return A._EnvironmentModule$_1(_this._environment0$_environment, _0_0._0, _this.preModuleComments, _0_0._1, _this._environment0$_modulesByVariable, _this.variables, _this.variableNodes, _this.functions, _this.mixins, true, _this.transitivelyContainsExtensions);
  100467. },
  100468. toString$0(_) {
  100469. var t2,
  100470. t1 = this.css;
  100471. if (t1.get$span(t1).file.url == null)
  100472. t1 = "<unknown url>";
  100473. else {
  100474. t1 = t1.get$span(t1).file.url;
  100475. t2 = $.$get$context();
  100476. t1.toString;
  100477. t1 = t2.prettyUri$1(t1);
  100478. }
  100479. return t1;
  100480. },
  100481. $isModule1: 1,
  100482. get$upstream() {
  100483. return this.upstream;
  100484. },
  100485. get$variables() {
  100486. return this.variables;
  100487. },
  100488. get$variableNodes() {
  100489. return this.variableNodes;
  100490. },
  100491. get$functions(receiver) {
  100492. return this.functions;
  100493. },
  100494. get$mixins() {
  100495. return this.mixins;
  100496. },
  100497. get$extensionStore() {
  100498. return this.extensionStore;
  100499. },
  100500. get$css(receiver) {
  100501. return this.css;
  100502. },
  100503. get$preModuleComments() {
  100504. return this.preModuleComments;
  100505. },
  100506. get$transitivelyContainsCss() {
  100507. return this.transitivelyContainsCss;
  100508. },
  100509. get$transitivelyContainsExtensions() {
  100510. return this.transitivelyContainsExtensions;
  100511. }
  100512. };
  100513. A._EnvironmentModule__EnvironmentModule_closure11.prototype = {
  100514. call$1(module) {
  100515. return module.get$variables();
  100516. },
  100517. $signature: 672
  100518. };
  100519. A._EnvironmentModule__EnvironmentModule_closure12.prototype = {
  100520. call$1(module) {
  100521. return module.get$variableNodes();
  100522. },
  100523. $signature: 449
  100524. };
  100525. A._EnvironmentModule__EnvironmentModule_closure13.prototype = {
  100526. call$1(module) {
  100527. return module.get$functions(module);
  100528. },
  100529. $signature: 223
  100530. };
  100531. A._EnvironmentModule__EnvironmentModule_closure14.prototype = {
  100532. call$1(module) {
  100533. return module.get$mixins();
  100534. },
  100535. $signature: 223
  100536. };
  100537. A._EnvironmentModule__EnvironmentModule_closure15.prototype = {
  100538. call$1(module) {
  100539. return module.get$transitivelyContainsCss();
  100540. },
  100541. $signature: 127
  100542. };
  100543. A._EnvironmentModule__EnvironmentModule_closure16.prototype = {
  100544. call$1(module) {
  100545. return module.get$transitivelyContainsExtensions();
  100546. },
  100547. $signature: 127
  100548. };
  100549. A.ErrorRule0.prototype = {
  100550. accept$1$1(visitor) {
  100551. return visitor.visitErrorRule$1(0, this);
  100552. },
  100553. accept$1(visitor) {
  100554. return this.accept$1$1(visitor, type$.dynamic);
  100555. },
  100556. toString$0(_) {
  100557. return "@error " + this.expression.toString$0(0) + ";";
  100558. },
  100559. get$span(receiver) {
  100560. return this.span;
  100561. }
  100562. };
  100563. A._EvaluateVisitor1.prototype = {
  100564. _EvaluateVisitor$6$functions$importCache$logger$nodeImporter$quietDeps$sourceMap1(functions, importCache, logger, nodeImporter, quietDeps, sourceMap) {
  100565. var t2, metaModule, t3, _i, module, $function, t4, _this = this,
  100566. _s20_ = "$name, $module: null",
  100567. _s9_ = "sass:meta",
  100568. _s7_ = "$module",
  100569. t1 = type$.JSArray_BuiltInCallable_2,
  100570. metaFunctions = A._setArrayType([A.BuiltInCallable$function0("global-variable-exists", _s20_, new A._EvaluateVisitor_closure25(_this), _s9_), A.BuiltInCallable$function0("variable-exists", "$name", new A._EvaluateVisitor_closure26(_this), _s9_), A.BuiltInCallable$function0("function-exists", _s20_, new A._EvaluateVisitor_closure27(_this), _s9_), A.BuiltInCallable$function0("mixin-exists", _s20_, new A._EvaluateVisitor_closure28(_this), _s9_), A.BuiltInCallable$function0("content-exists", "", new A._EvaluateVisitor_closure29(_this), _s9_), A.BuiltInCallable$function0("module-variables", _s7_, new A._EvaluateVisitor_closure30(_this), _s9_), A.BuiltInCallable$function0("module-functions", _s7_, new A._EvaluateVisitor_closure31(_this), _s9_), A.BuiltInCallable$function0("module-mixins", _s7_, new A._EvaluateVisitor_closure32(_this), _s9_), A.BuiltInCallable$function0("get-function", "$name, $css: false, $module: null", new A._EvaluateVisitor_closure33(_this), _s9_), A.BuiltInCallable$function0("get-mixin", _s20_, new A._EvaluateVisitor_closure34(_this), _s9_), A.BuiltInCallable$function0("call", "$function, $args...", new A._EvaluateVisitor_closure35(_this), _s9_)], t1),
  100571. metaMixins = A._setArrayType([A.BuiltInCallable$mixin0("load-css", "$url, $with: null", new A._EvaluateVisitor_closure36(_this), false, _s9_), A.BuiltInCallable$mixin0("apply", "$mixin, $args...", new A._EvaluateVisitor_closure37(_this), true, _s9_)], t1);
  100572. t1 = type$.BuiltInCallable_2;
  100573. t2 = A.List_List$of($.$get$moduleFunctions0(), true, t1);
  100574. B.JSArray_methods.addAll$1(t2, metaFunctions);
  100575. metaModule = A.BuiltInModule$0("meta", t2, metaMixins, null, t1);
  100576. for (t1 = A.List_List$of($.$get$coreModules0(), true, type$.BuiltInModule_Callable_2), t1.push(metaModule), t2 = t1.length, t3 = _this._evaluate0$_builtInModules, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
  100577. module = t1[_i];
  100578. t3.$indexSet(0, module.url, module);
  100579. }
  100580. t1 = type$.JSArray_Callable_2;
  100581. t2 = A._setArrayType([], t1);
  100582. B.JSArray_methods.addAll$1(t2, functions);
  100583. B.JSArray_methods.addAll$1(t2, $.$get$globalFunctions0());
  100584. t1 = A._setArrayType([], t1);
  100585. for (_i = 0; _i < 11; ++_i)
  100586. t1.push(metaFunctions[_i].withDeprecationWarning$1("meta"));
  100587. B.JSArray_methods.addAll$1(t2, t1);
  100588. for (t1 = t2.length, t3 = _this._evaluate0$_builtInFunctions, _i = 0; _i < t2.length; t2.length === t1 || (0, A.throwConcurrentModificationError)(t2), ++_i) {
  100589. $function = t2[_i];
  100590. t4 = J.get$name$x($function);
  100591. t3.$indexSet(0, A.stringReplaceAllUnchecked(t4, "_", "-"), $function);
  100592. }
  100593. },
  100594. run$2(_, importer, node) {
  100595. var error, stackTrace, t1, exception;
  100596. try {
  100597. t1 = type$.nullable_Object;
  100598. t1 = A.runZoned(new A._EvaluateVisitor_run_closure1(this, node, importer), A.LinkedHashMap_LinkedHashMap$_literal([B.Symbol__evaluationContext, new A._EvaluationContext1(this, node)], t1, t1), type$.Record_2_Set_Uri_loadedUrls_and_CssStylesheet_stylesheet_2);
  100599. return t1;
  100600. } catch (exception) {
  100601. t1 = A.unwrapException(exception);
  100602. if (t1 instanceof A.SassException0) {
  100603. error = t1;
  100604. stackTrace = A.getTraceFromException(exception);
  100605. A.throwWithTrace0(error.withLoadedUrls$1(this._evaluate0$_loadedUrls), error, stackTrace);
  100606. } else
  100607. throw exception;
  100608. }
  100609. },
  100610. _evaluate0$_assertInModule$1$2(value, $name) {
  100611. if (value != null)
  100612. return value;
  100613. throw A.wrapException(A.StateError$("Can't access " + $name + " outside of a module."));
  100614. },
  100615. _evaluate0$_assertInModule$2(value, $name) {
  100616. return this._evaluate0$_assertInModule$1$2(value, $name, type$.dynamic);
  100617. },
  100618. _evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, baseUrl, configuration, namesInErrors) {
  100619. var t2, _this = this, t1 = {},
  100620. _0_0 = _this._evaluate0$_builtInModules.$index(0, url);
  100621. t1.builtInModule = null;
  100622. if (_0_0 != null) {
  100623. t1.builtInModule = _0_0;
  100624. if (configuration instanceof A.ExplicitConfiguration0) {
  100625. t1 = namesInErrors ? "Built-in module " + url.toString$0(0) + " can't be configured." : "Built-in modules can't be configured.";
  100626. t2 = configuration.nodeWithSpan;
  100627. throw A.wrapException(_this._evaluate0$_exception$2(t1, t2.get$span(t2)));
  100628. }
  100629. _this._evaluate0$_addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__loadModule_closure3(t1, callback));
  100630. return;
  100631. }
  100632. _this._evaluate0$_withStackFrame$3(stackFrame, nodeWithSpan, new A._EvaluateVisitor__loadModule_closure4(_this, url, nodeWithSpan, baseUrl, namesInErrors, configuration, callback));
  100633. },
  100634. _evaluate0$_loadModule$5$configuration(url, stackFrame, nodeWithSpan, callback, configuration) {
  100635. return this._evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, configuration, false);
  100636. },
  100637. _evaluate0$_loadModule$4(url, stackFrame, nodeWithSpan, callback) {
  100638. return this._evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, stackFrame, nodeWithSpan, callback, null, null, false);
  100639. },
  100640. _evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, configuration, namesInErrors, nodeWithSpan) {
  100641. var currentConfiguration, t2, t3, message, existingSpan, configurationSpan, environment, css, preModuleComments, extensionStore, module, _this = this,
  100642. url = stylesheet.span.file.url,
  100643. t1 = _this._evaluate0$_modules,
  100644. _0_0 = t1.$index(0, url);
  100645. if (_0_0 != null) {
  100646. t1 = configuration == null;
  100647. currentConfiguration = t1 ? _this._evaluate0$_configuration : configuration;
  100648. t2 = _this._evaluate0$_moduleConfigurations.$index(0, url);
  100649. t3 = t2._configuration0$__originalConfiguration;
  100650. t2 = t3 == null ? t2 : t3;
  100651. t3 = currentConfiguration._configuration0$__originalConfiguration;
  100652. if (t2 !== (t3 == null ? currentConfiguration : t3) && currentConfiguration instanceof A.ExplicitConfiguration0) {
  100653. if (namesInErrors) {
  100654. t2 = $.$get$context();
  100655. url.toString;
  100656. message = t2.prettyUri$1(url) + string$.x20was_a;
  100657. } else
  100658. message = string$.This_mw;
  100659. t2 = _this._evaluate0$_moduleNodes.$index(0, url);
  100660. existingSpan = t2 == null ? null : t2.get$span(t2);
  100661. if (t1) {
  100662. t1 = currentConfiguration.nodeWithSpan;
  100663. configurationSpan = t1.get$span(t1);
  100664. } else
  100665. configurationSpan = null;
  100666. t1 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
  100667. if (existingSpan != null)
  100668. t1.$indexSet(0, existingSpan, "original load");
  100669. if (configurationSpan != null)
  100670. t1.$indexSet(0, configurationSpan, "configuration");
  100671. throw A.wrapException(t1.get$isEmpty(0) ? _this._evaluate0$_exception$1(message) : _this._evaluate0$_multiSpanException$3(message, "new load", t1));
  100672. }
  100673. return _0_0;
  100674. }
  100675. environment = A.Environment$0();
  100676. css = A._Cell$();
  100677. preModuleComments = A._Cell$();
  100678. extensionStore = A.ExtensionStore$0();
  100679. _this._evaluate0$_withEnvironment$2(environment, new A._EvaluateVisitor__execute_closure1(_this, importer, stylesheet, extensionStore, configuration, css, preModuleComments));
  100680. t2 = css._readLocal$0();
  100681. t3 = preModuleComments._readLocal$0();
  100682. module = environment.toModule$3(t2, t3 == null ? B.Map_empty9 : t3, extensionStore);
  100683. if (url != null) {
  100684. t1.$indexSet(0, url, module);
  100685. _this._evaluate0$_moduleConfigurations.$indexSet(0, url, _this._evaluate0$_configuration);
  100686. if (nodeWithSpan != null)
  100687. _this._evaluate0$_moduleNodes.$indexSet(0, url, nodeWithSpan);
  100688. }
  100689. return module;
  100690. },
  100691. _evaluate0$_execute$2(importer, stylesheet) {
  100692. return this._evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, null, false, null);
  100693. },
  100694. _evaluate0$_addOutOfOrderImports$0() {
  100695. var t1, t2, _this = this, _s5_ = "_root",
  100696. _s13_ = "_endOfImports",
  100697. _0_0 = _this._evaluate0$_outOfOrderImports;
  100698. $label0$0: {
  100699. if (_0_0 == null) {
  100700. t1 = _this._evaluate0$_assertInModule$2(_this._evaluate0$__root, _s5_).children;
  100701. break $label0$0;
  100702. }
  100703. t1 = _this._evaluate0$_assertInModule$2(_this._evaluate0$__root, _s5_).children;
  100704. t1 = A.List_List$of(A.SubListIterable$(t1, 0, A.checkNotNullable(_this._evaluate0$_assertInModule$2(_this._evaluate0$__endOfImports, _s13_), "count", type$.int), t1.$ti._eval$1("ListBase.E")), true, type$.ModifiableCssNode_2);
  100705. B.JSArray_methods.addAll$1(t1, _0_0);
  100706. t2 = _this._evaluate0$_assertInModule$2(_this._evaluate0$__root, _s5_).children;
  100707. B.JSArray_methods.addAll$1(t1, A.SubListIterable$(t2, _this._evaluate0$_assertInModule$2(_this._evaluate0$__endOfImports, _s13_), null, t2.$ti._eval$1("ListBase.E")));
  100708. break $label0$0;
  100709. }
  100710. return t1;
  100711. },
  100712. _evaluate0$_combineCss$2$clone(root, clone) {
  100713. var selectors, _0_0, t1, imports, css, sorted, t2;
  100714. if (!B.JSArray_methods.any$1(root.get$upstream(), new A._EvaluateVisitor__combineCss_closure3())) {
  100715. selectors = root.get$extensionStore().get$simpleSelectors();
  100716. _0_0 = A.IterableExtension_get_firstOrNull(root.get$extensionStore().extensionsWhereTarget$1(new A._EvaluateVisitor__combineCss_closure4(selectors)));
  100717. if (_0_0 != null)
  100718. this._evaluate0$_throwForUnsatisfiedExtension$1(_0_0);
  100719. return root.get$css(root);
  100720. }
  100721. t1 = type$.JSArray_CssNode_2;
  100722. imports = A._setArrayType([], t1);
  100723. css = A._setArrayType([], t1);
  100724. t1 = type$.Module_Callable_2;
  100725. sorted = A.ListQueue$(t1);
  100726. new A._EvaluateVisitor__combineCss_visitModule1(this, A.LinkedHashSet_LinkedHashSet$_empty(t1), clone, css, imports, sorted).call$1(root);
  100727. if (root.get$transitivelyContainsExtensions())
  100728. this._evaluate0$_extendModules$1(sorted);
  100729. t1 = B.JSArray_methods.$add(imports, css);
  100730. t2 = root.get$css(root);
  100731. return new A.CssStylesheet0(new A.UnmodifiableListView(t1, type$.UnmodifiableListView_CssNode_2), t2.get$span(t2));
  100732. },
  100733. _evaluate0$_combineCss$1(root) {
  100734. return this._evaluate0$_combineCss$2$clone(root, false);
  100735. },
  100736. _evaluate0$_extendModules$1(sortedModules) {
  100737. var t1, t2, t3, originalSelectors, $self, t4, t5, _i, upstream, _0_0,
  100738. downstreamExtensionStores = A.LinkedHashMap_LinkedHashMap$_empty(type$.Uri, type$.List_ExtensionStore_2),
  100739. unsatisfiedExtensions = new A._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_Extension_2);
  100740. for (t1 = A._ListQueueIterator$(sortedModules, sortedModules.$ti._precomputed1), t2 = t1.$ti._precomputed1; t1.moveNext$0();) {
  100741. t3 = t1._collection$_current;
  100742. if (t3 == null)
  100743. t3 = t2._as(t3);
  100744. originalSelectors = t3.get$extensionStore().get$simpleSelectors().toSet$0(0);
  100745. unsatisfiedExtensions.addAll$1(0, t3.get$extensionStore().extensionsWhereTarget$1(new A._EvaluateVisitor__extendModules_closure3(originalSelectors)));
  100746. $self = downstreamExtensionStores.$index(0, t3.get$url(t3));
  100747. t4 = t3.get$extensionStore().get$addExtensions();
  100748. if ($self != null)
  100749. t4.call$1($self);
  100750. t4 = t3.get$extensionStore();
  100751. if (t4.get$isEmpty(t4))
  100752. continue;
  100753. for (t4 = t3.get$upstream(), t5 = t4.length, _i = 0; _i < t4.length; t4.length === t5 || (0, A.throwConcurrentModificationError)(t4), ++_i) {
  100754. upstream = t4[_i];
  100755. _0_0 = upstream.get$url(upstream);
  100756. if (_0_0 != null)
  100757. J.add$1$ax(downstreamExtensionStores.putIfAbsent$2(_0_0, new A._EvaluateVisitor__extendModules_closure4()), t3.get$extensionStore());
  100758. }
  100759. unsatisfiedExtensions.removeAll$1(t3.get$extensionStore().extensionsWhereTarget$1(originalSelectors.get$contains(originalSelectors)));
  100760. }
  100761. if (unsatisfiedExtensions._collection$_length !== 0)
  100762. this._evaluate0$_throwForUnsatisfiedExtension$1(unsatisfiedExtensions.get$first(0));
  100763. },
  100764. _evaluate0$_throwForUnsatisfiedExtension$1(extension) {
  100765. throw A.wrapException(A.SassException$0(string$.The_ta + extension.target.toString$0(0) + ' !optional" to avoid this error.', extension.span, null));
  100766. },
  100767. _evaluate0$_indexAfterImports$1(statements) {
  100768. var t1, lastImport, i, _0_0;
  100769. for (t1 = J.getInterceptor$asx(statements), lastImport = -1, i = 0; i < t1.get$length(statements); ++i) {
  100770. $label0$0: {
  100771. _0_0 = t1.$index(statements, i);
  100772. if (_0_0 instanceof A.ModifiableCssImport0)
  100773. break $label0$0;
  100774. if (_0_0 instanceof A.ModifiableCssComment0)
  100775. continue;
  100776. break;
  100777. }
  100778. lastImport = i;
  100779. }
  100780. return lastImport + 1;
  100781. },
  100782. visitStylesheet$1(_, node) {
  100783. var t1, t2, warning, _i;
  100784. for (t1 = node.parseTimeWarnings, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t2 = t2._eval$1("ListBase.E"); t1.moveNext$0();) {
  100785. warning = t1.__internal$_current;
  100786. if (warning == null)
  100787. warning = t2._as(warning);
  100788. this._evaluate0$_warn$3(warning._1, warning._2, warning._0);
  100789. }
  100790. for (t1 = node.children, t2 = t1.length, _i = 0; _i < t2; ++_i)
  100791. t1[_i].accept$1(this);
  100792. return null;
  100793. },
  100794. visitAtRootRule$1(_, node) {
  100795. var t1, _2_0, root, first, rest, innerCopy, outerCopy, _i, copy, _this = this, _null = null,
  100796. _s8_ = "__parent",
  100797. _0_0 = node.query,
  100798. query = _0_0 != null ? new A.AtRootQueryParser0(A.SpanScanner$(_this._evaluate0$_performInterpolationWithMap$2$warnForColor(_0_0, true)._0, _null), _null).parse$0(0) : B.AtRootQuery_n2q0,
  100799. $parent = _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_),
  100800. included = A._setArrayType([], type$.JSArray_ModifiableCssParentNode_2);
  100801. for (t1 = type$.CssStylesheet_2; !t1._is($parent); $parent = _2_0) {
  100802. if (!query.excludes$1($parent))
  100803. included.push($parent);
  100804. _2_0 = $parent._node$_parent;
  100805. if (_2_0 == null)
  100806. throw A.wrapException(A.StateError$(string$.CssNod));
  100807. }
  100808. root = _this._evaluate0$_trimIncluded$1(included);
  100809. if (root === _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_)) {
  100810. _this._evaluate0$_environment.scope$1$2$when(new A._EvaluateVisitor_visitAtRootRule_closure3(_this, node), node.hasDeclarations, type$.Null);
  100811. return _null;
  100812. }
  100813. if (included.length >= 1) {
  100814. first = included[0];
  100815. rest = B.JSArray_methods.sublist$1(included, 1);
  100816. innerCopy = first.copyWithoutChildren$0();
  100817. for (t1 = rest.length, outerCopy = innerCopy, _i = 0; _i < rest.length; rest.length === t1 || (0, A.throwConcurrentModificationError)(rest), ++_i, outerCopy = copy) {
  100818. copy = rest[_i].copyWithoutChildren$0();
  100819. copy.addChild$1(outerCopy);
  100820. }
  100821. root.addChild$1(outerCopy);
  100822. } else
  100823. innerCopy = root;
  100824. _this._evaluate0$_scopeForAtRoot$4(node, innerCopy, query, included).call$1(new A._EvaluateVisitor_visitAtRootRule_closure4(_this, node));
  100825. return _null;
  100826. },
  100827. _evaluate0$_trimIncluded$1(nodes) {
  100828. var $parent, t1, innermostContiguous, i, t2, _0_0, _1_0, root, _this = this, _null = null, _s5_ = "_root",
  100829. _s22_ = " to be an ancestor of ";
  100830. if (nodes.length === 0)
  100831. return _this._evaluate0$_assertInModule$2(_this._evaluate0$__root, _s5_);
  100832. $parent = _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, "__parent");
  100833. for (t1 = nodes.length, innermostContiguous = _null, i = 0; i < t1; ++i, $parent = _1_0) {
  100834. for (; t2 = nodes[i], $parent !== t2; innermostContiguous = _null, $parent = _0_0) {
  100835. _0_0 = $parent._node$_parent;
  100836. if (_0_0 == null)
  100837. throw A.wrapException(A.ArgumentError$("Expected " + t2.toString$0(0) + _s22_ + _this.toString$0(0) + ".", _null));
  100838. }
  100839. if (innermostContiguous == null)
  100840. innermostContiguous = i;
  100841. _1_0 = $parent._node$_parent;
  100842. if (_1_0 == null)
  100843. throw A.wrapException(A.ArgumentError$("Expected " + t2.toString$0(0) + _s22_ + _this.toString$0(0) + ".", _null));
  100844. }
  100845. if ($parent !== _this._evaluate0$_assertInModule$2(_this._evaluate0$__root, _s5_))
  100846. return _this._evaluate0$_assertInModule$2(_this._evaluate0$__root, _s5_);
  100847. innermostContiguous.toString;
  100848. root = nodes[innermostContiguous];
  100849. B.JSArray_methods.removeRange$2(nodes, innermostContiguous, nodes.length);
  100850. return root;
  100851. },
  100852. _evaluate0$_scopeForAtRoot$4(node, newParent, query, included) {
  100853. var _this = this,
  100854. scope = new A._EvaluateVisitor__scopeForAtRoot_closure11(_this, newParent, node),
  100855. t1 = query._at_root_query0$_all || query._at_root_query0$_rule;
  100856. if (t1 !== query.include)
  100857. scope = new A._EvaluateVisitor__scopeForAtRoot_closure12(_this, scope);
  100858. if (_this._evaluate0$_mediaQueries != null && query.excludesName$1("media"))
  100859. scope = new A._EvaluateVisitor__scopeForAtRoot_closure13(_this, scope);
  100860. if (_this._evaluate0$_inKeyframes && query.excludesName$1("keyframes"))
  100861. scope = new A._EvaluateVisitor__scopeForAtRoot_closure14(_this, scope);
  100862. return _this._evaluate0$_inUnknownAtRule && !B.JSArray_methods.any$1(included, new A._EvaluateVisitor__scopeForAtRoot_closure15()) ? new A._EvaluateVisitor__scopeForAtRoot_closure16(_this, scope) : scope;
  100863. },
  100864. visitContentBlock$1(_, node) {
  100865. return A.throwExpression(A.UnsupportedError$(string$.Evalua));
  100866. },
  100867. visitContentRule$1(_, node) {
  100868. var $content = this._evaluate0$_environment._environment0$_content;
  100869. if ($content == null)
  100870. return null;
  100871. this._evaluate0$_runUserDefinedCallable$1$4(node.$arguments, $content, node, new A._EvaluateVisitor_visitContentRule_closure1(this, $content), type$.Null);
  100872. return null;
  100873. },
  100874. visitDebugRule$1(_, node) {
  100875. var value = node.expression.accept$1(this),
  100876. t1 = value instanceof A.SassString0 ? value._string0$_text : A.serializeValue0(value, true, true);
  100877. this._evaluate0$_logger.debug$2(0, t1, node.span);
  100878. return null;
  100879. },
  100880. visitDeclaration$1(_, node) {
  100881. var siblings, interleavedRules, t1, t2, t3, t4, t5, t6, rule, rule0, $name, _1_0, _2_0, value, _3_0, oldDeclarationName, _this = this, _null = null,
  100882. _s8_ = "__parent",
  100883. _box_0 = {};
  100884. if ((_this._evaluate0$_atRootExcludingStyleRule ? _null : _this._evaluate0$_styleRuleIgnoringAtRoot) == null && !_this._evaluate0$_inUnknownAtRule && !_this._evaluate0$_inKeyframes)
  100885. throw A.wrapException(_this._evaluate0$_exception$2(string$.Declarm, node.span));
  100886. if (_this._evaluate0$_declarationName != null && B.JSString_methods.startsWith$1(node.name.get$initialPlain(), "--"))
  100887. throw A.wrapException(_this._evaluate0$_exception$2(string$.Declarw, node.span));
  100888. siblings = _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_)._node$_parent.children;
  100889. interleavedRules = A._setArrayType([], type$.JSArray_CssStyleRule_2);
  100890. if (siblings.get$last(siblings) !== _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_)) {
  100891. if (_this._evaluate0$_quietDeps)
  100892. if (!_this._evaluate0$_inDependency) {
  100893. t1 = _this._evaluate0$_currentCallable;
  100894. t1 = t1 == null ? _null : t1.inDependency;
  100895. t1 = t1 === true;
  100896. } else
  100897. t1 = true;
  100898. else
  100899. t1 = false;
  100900. t1 = !t1;
  100901. } else
  100902. t1 = false;
  100903. if (t1)
  100904. for (t1 = A.SubListIterable$(siblings, siblings.indexOf$1(siblings, _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_)) + 1, _null, siblings.$ti._eval$1("ListBase.E")), t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListIterable.E>")), t3 = node.span, t4 = type$.SourceSpan, t5 = type$.String, t2 = t2._eval$1("ListIterable.E"); t1.moveNext$0();) {
  100905. t6 = t1.__internal$_current;
  100906. rule = t6 == null ? t2._as(t6) : t6;
  100907. $label0$1: {
  100908. if (rule instanceof A.ModifiableCssComment0)
  100909. continue;
  100910. t6 = rule instanceof A.ModifiableCssStyleRule0;
  100911. rule0 = t6 ? rule : _null;
  100912. if (t6) {
  100913. interleavedRules.push(rule0);
  100914. break $label0$1;
  100915. }
  100916. _this._evaluate0$_warn$3(string$.Sassx27s, new A.MultiSpan0(t3, "declaration", A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_literal([rule.get$span(rule), "nested rule"], t4, t5), t4, t5)), B.Deprecation_VIq);
  100917. B.JSArray_methods.clear$0(interleavedRules);
  100918. break $label0$1;
  100919. }
  100920. }
  100921. t1 = node.name;
  100922. $name = _this._evaluate0$_interpolationToValue$2$warnForColor(t1, true);
  100923. _1_0 = _this._evaluate0$_declarationName;
  100924. if (_1_0 != null)
  100925. $name = new A.CssValue0(_1_0 + "-" + A.S($name.value), $name.span, type$.CssValue_String_2);
  100926. _2_0 = node.value;
  100927. if (_2_0 != null) {
  100928. value = _2_0.accept$1(_this);
  100929. if (!value.get$isBlank() || value.get$asList().length === 0) {
  100930. t2 = _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_);
  100931. t3 = _2_0.get$span(_2_0);
  100932. t4 = node.span;
  100933. t1 = B.JSString_methods.startsWith$1(t1.get$initialPlain(), "--");
  100934. t5 = interleavedRules.length === 0 ? _null : _this._evaluate0$_stackTrace$1(t4);
  100935. if (_this._evaluate0$_sourceMap) {
  100936. t6 = A.NullableExtension_andThen0(_2_0, _this.get$_evaluate0$_expressionNode());
  100937. t6 = t6 == null ? _null : J.get$span$z(t6);
  100938. } else
  100939. t6 = _null;
  100940. t2.addChild$1(A.ModifiableCssDeclaration$0($name, new A.CssValue0(value, t3, type$.CssValue_Value_2), t4, interleavedRules, t1, t5, t6));
  100941. } else if (J.startsWith$1$s($name.value, "--"))
  100942. throw A.wrapException(_this._evaluate0$_exception$2("Custom property values may not be empty.", _2_0.get$span(_2_0)));
  100943. }
  100944. _3_0 = node.children;
  100945. _box_0.children = null;
  100946. if (_3_0 != null) {
  100947. _box_0.children = _3_0;
  100948. oldDeclarationName = _this._evaluate0$_declarationName;
  100949. _this._evaluate0$_declarationName = $name.value;
  100950. _this._evaluate0$_environment.scope$1$2$when(new A._EvaluateVisitor_visitDeclaration_closure1(_box_0, _this), node.hasDeclarations, type$.Null);
  100951. _this._evaluate0$_declarationName = oldDeclarationName;
  100952. }
  100953. return _null;
  100954. },
  100955. visitEachRule$1(_, node) {
  100956. var _this = this, _box_0 = {},
  100957. t1 = node.list,
  100958. list = t1.accept$1(_this),
  100959. nodeWithSpan = _this._evaluate0$_expressionNode$1(t1),
  100960. _0_0 = node.variables;
  100961. $label0$0: {
  100962. _box_0.variable = null;
  100963. if (_0_0.length === 1) {
  100964. _box_0.variable = _0_0[0];
  100965. t1 = new A._EvaluateVisitor_visitEachRule_closure5(_box_0, _this, nodeWithSpan);
  100966. break $label0$0;
  100967. }
  100968. _box_0.variables = null;
  100969. _box_0.variables = _0_0;
  100970. t1 = new A._EvaluateVisitor_visitEachRule_closure6(_box_0, _this, nodeWithSpan);
  100971. break $label0$0;
  100972. }
  100973. return _this._evaluate0$_environment.scope$1$2$semiGlobal(new A._EvaluateVisitor_visitEachRule_closure7(_this, list, t1, node), true, type$.nullable_Value_2);
  100974. },
  100975. _evaluate0$_setMultipleVariables$3(variables, value, nodeWithSpan) {
  100976. var i,
  100977. list = value.get$asList(),
  100978. t1 = variables.length,
  100979. minLength = Math.min(t1, list.length);
  100980. for (i = 0; i < minLength; ++i)
  100981. this._evaluate0$_environment.setLocalVariable$3(variables[i], this._evaluate0$_withoutSlash$2(list[i], nodeWithSpan), nodeWithSpan);
  100982. for (i = minLength; i < t1; ++i)
  100983. this._evaluate0$_environment.setLocalVariable$3(variables[i], B.C__SassNull0, nodeWithSpan);
  100984. },
  100985. visitErrorRule$1(_, node) {
  100986. throw A.wrapException(this._evaluate0$_exception$2(J.toString$0$(node.expression.accept$1(this)), node.span));
  100987. },
  100988. visitExtendRule$1(_, node) {
  100989. var t1, t2, t3, t4, t5, _i, complex, visitor, t6, t7, _0_0, compound, _this = this, _null = null,
  100990. styleRule = _this._evaluate0$_atRootExcludingStyleRule ? _null : _this._evaluate0$_styleRuleIgnoringAtRoot;
  100991. if (styleRule == null || _this._evaluate0$_declarationName != null)
  100992. throw A.wrapException(_this._evaluate0$_exception$2(string$.x40exten, node.span));
  100993. for (t1 = styleRule.originalSelector.components, t2 = t1.length, t3 = node.span, t4 = type$.SourceSpan, t5 = type$.String, _i = 0; _i < t2; ++_i) {
  100994. complex = t1[_i];
  100995. if (!complex.accept$1(B._IsBogusVisitor_true0))
  100996. continue;
  100997. visitor = A._SerializeVisitor$0(_null, true, _null, _null, true, false, _null, true);
  100998. complex.accept$1(visitor);
  100999. t6 = B.JSString_methods.trim$0(visitor._serialize0$_buffer.toString$0(0));
  101000. t7 = complex.accept$1(B.C__IsUselessVisitor0) ? "can't" : "shouldn't";
  101001. _this._evaluate0$_warn$3('The selector "' + t6 + '" is invalid CSS and ' + t7 + string$.x20be_an, new A.MultiSpan0(A.SpanExtensions_trimRight0(complex.span), "invalid selector", A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_literal([t3, "@extend rule"], t4, t5), t4, t5)), B.Deprecation_bh9);
  101002. }
  101003. _0_0 = _this._evaluate0$_performInterpolationWithMap$2$warnForColor(node.selector, true);
  101004. for (t1 = A.SelectorList_SelectorList$parse0(A.trimAscii0(_0_0._0, true), false, _0_0._1, false).components, t2 = t1.length, t3 = styleRule._style_rule0$_selector._box0$_inner, _i = 0; _i < t2; ++_i) {
  101005. complex = t1[_i];
  101006. compound = complex.get$singleCompound();
  101007. if (compound == null)
  101008. throw A.wrapException(A.SassFormatException$0("complex selectors may not be extended.", complex.span, _null));
  101009. t4 = compound.components;
  101010. t5 = t4.length === 1 ? B.JSArray_methods.get$first(t4) : _null;
  101011. if (t5 == null)
  101012. throw A.wrapException(A.SassFormatException$0(string$.compou + B.JSArray_methods.join$1(t4, ", ") + string$.x60_inst, compound.span, _null));
  101013. _this._evaluate0$_assertInModule$2(_this._evaluate0$__extensionStore, "_extensionStore").addExtension$4(t3.value, t5, node, _this._evaluate0$_mediaQueries);
  101014. }
  101015. return _null;
  101016. },
  101017. visitAtRule$1(_, node) {
  101018. var $name, value, children, wasInKeyframes, wasInUnknownAtRule, _this = this;
  101019. if (_this._evaluate0$_declarationName != null)
  101020. throw A.wrapException(_this._evaluate0$_exception$2(string$.At_rul, node.span));
  101021. $name = _this._evaluate0$_interpolationToValue$1(node.name);
  101022. value = A.NullableExtension_andThen0(node.value, new A._EvaluateVisitor_visitAtRule_closure5(_this));
  101023. children = node.children;
  101024. if (children == null) {
  101025. _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, "__parent").addChild$1(A.ModifiableCssAtRule$0($name, node.span, true, value));
  101026. return null;
  101027. }
  101028. wasInKeyframes = _this._evaluate0$_inKeyframes;
  101029. wasInUnknownAtRule = _this._evaluate0$_inUnknownAtRule;
  101030. if (A.unvendor0($name.value) === "keyframes")
  101031. _this._evaluate0$_inKeyframes = true;
  101032. else
  101033. _this._evaluate0$_inUnknownAtRule = true;
  101034. _this._evaluate0$_withParent$2$4$scopeWhen$through(A.ModifiableCssAtRule$0($name, node.span, false, value), new A._EvaluateVisitor_visitAtRule_closure6(_this, $name, children), node.hasDeclarations, new A._EvaluateVisitor_visitAtRule_closure7(), type$.ModifiableCssAtRule_2, type$.Null);
  101035. _this._evaluate0$_inUnknownAtRule = wasInUnknownAtRule;
  101036. _this._evaluate0$_inKeyframes = wasInKeyframes;
  101037. return null;
  101038. },
  101039. visitForRule$1(_, node) {
  101040. var _this = this, t1 = {},
  101041. t2 = node.from,
  101042. fromNumber = _this._evaluate0$_addExceptionSpan$2(t2, new A._EvaluateVisitor_visitForRule_closure9(_this, node)),
  101043. t3 = node.to,
  101044. toNumber = _this._evaluate0$_addExceptionSpan$2(t3, new A._EvaluateVisitor_visitForRule_closure10(_this, node)),
  101045. from = _this._evaluate0$_addExceptionSpan$2(t2, new A._EvaluateVisitor_visitForRule_closure11(fromNumber)),
  101046. to = t1.to = _this._evaluate0$_addExceptionSpan$2(t3, new A._EvaluateVisitor_visitForRule_closure12(toNumber, fromNumber)),
  101047. direction = from > to ? -1 : 1;
  101048. if (from === (!node.isExclusive ? t1.to = to + direction : to))
  101049. return null;
  101050. return _this._evaluate0$_environment.scope$1$2$semiGlobal(new A._EvaluateVisitor_visitForRule_closure13(t1, _this, node, from, direction, fromNumber), true, type$.nullable_Value_2);
  101051. },
  101052. visitForwardRule$1(_, node) {
  101053. var newConfiguration, t4, _i, variable, $name, _this = this,
  101054. _s8_ = "@forward",
  101055. oldConfiguration = _this._evaluate0$_configuration,
  101056. adjustedConfiguration = oldConfiguration.throughForward$1(node),
  101057. t1 = node.configuration,
  101058. t2 = t1.length,
  101059. t3 = node.url;
  101060. if (t2 !== 0) {
  101061. newConfiguration = _this._evaluate0$_addForwardConfiguration$2(adjustedConfiguration, node);
  101062. _this._evaluate0$_loadModule$5$configuration(t3, _s8_, node, new A._EvaluateVisitor_visitForwardRule_closure3(_this, node), newConfiguration);
  101063. t3 = type$.String;
  101064. t4 = A.LinkedHashSet_LinkedHashSet$_empty(t3);
  101065. for (_i = 0; _i < t2; ++_i) {
  101066. variable = t1[_i];
  101067. if (!variable.isGuarded)
  101068. t4.add$1(0, variable.name);
  101069. }
  101070. _this._evaluate0$_removeUsedConfiguration$3$except(adjustedConfiguration, newConfiguration, t4);
  101071. t3 = A.LinkedHashSet_LinkedHashSet$_empty(t3);
  101072. for (_i = 0; _i < t2; ++_i)
  101073. t3.add$1(0, t1[_i].name);
  101074. for (t1 = newConfiguration._configuration0$_values, t2 = J.toList$0$ax(t1.get$keys(t1)), t4 = t2.length, _i = 0; _i < t2.length; t2.length === t4 || (0, A.throwConcurrentModificationError)(t2), ++_i) {
  101075. $name = t2[_i];
  101076. if (!t3.contains$1(0, $name))
  101077. if (!t1.get$isEmpty(t1))
  101078. t1.remove$1(0, $name);
  101079. }
  101080. _this._evaluate0$_assertConfigurationIsEmpty$1(newConfiguration);
  101081. } else {
  101082. _this._evaluate0$_configuration = adjustedConfiguration;
  101083. _this._evaluate0$_loadModule$4(t3, _s8_, node, new A._EvaluateVisitor_visitForwardRule_closure4(_this, node));
  101084. _this._evaluate0$_configuration = oldConfiguration;
  101085. }
  101086. return null;
  101087. },
  101088. _evaluate0$_addForwardConfiguration$2(configuration, node) {
  101089. var t2, t3, _i, variable, t4, oldValue, t5, variableNodeWithSpan, _null = null,
  101090. t1 = configuration._configuration0$_values,
  101091. newValues = A.LinkedHashMap_LinkedHashMap$of(new A.UnmodifiableMapView(t1, type$.UnmodifiableMapView_String_ConfiguredValue_2), type$.String, type$.ConfiguredValue_2);
  101092. for (t2 = node.configuration, t3 = t2.length, _i = 0; _i < t3; ++_i) {
  101093. variable = t2[_i];
  101094. if (variable.isGuarded) {
  101095. t4 = variable.name;
  101096. oldValue = t1.get$isEmpty(t1) ? _null : t1.remove$1(0, t4);
  101097. if (oldValue != null)
  101098. t5 = !oldValue.value.$eq(0, B.C__SassNull0);
  101099. else {
  101100. oldValue = _null;
  101101. t5 = false;
  101102. }
  101103. if (t5) {
  101104. newValues.$indexSet(0, t4, oldValue);
  101105. continue;
  101106. }
  101107. }
  101108. t4 = variable.expression;
  101109. variableNodeWithSpan = this._evaluate0$_expressionNode$1(t4);
  101110. newValues.$indexSet(0, variable.name, new A.ConfiguredValue0(this._evaluate0$_withoutSlash$2(t4.accept$1(this), variableNodeWithSpan), variable.span, variableNodeWithSpan));
  101111. }
  101112. if (configuration instanceof A.ExplicitConfiguration0 || t1.get$isEmpty(t1))
  101113. return new A.ExplicitConfiguration0(node, newValues, _null);
  101114. else
  101115. return new A.Configuration0(newValues, _null);
  101116. },
  101117. _evaluate0$_registerCommentsForModule$1(module) {
  101118. var _this = this, _s5_ = "_root",
  101119. t1 = _this._evaluate0$__root;
  101120. if (t1 == null)
  101121. return;
  101122. if (_this._evaluate0$_assertInModule$2(t1, _s5_).children.get$length(0) === 0 || !module.get$transitivelyContainsCss())
  101123. return;
  101124. t1 = _this._evaluate0$_preModuleComments;
  101125. if (t1 == null)
  101126. t1 = _this._evaluate0$_preModuleComments = A.LinkedHashMap_LinkedHashMap$_empty(type$.Module_Callable_2, type$.List_CssComment_2);
  101127. J.addAll$1$ax(t1.putIfAbsent$2(module, new A._EvaluateVisitor__registerCommentsForModule_closure1()), new A.UnmodifiableListView(J.cast$1$0$ax(_this._evaluate0$_assertInModule$2(_this._evaluate0$__root, _s5_).children._collection$_source, type$.CssComment_2), type$.UnmodifiableListView_CssComment_2));
  101128. _this._evaluate0$_assertInModule$2(_this._evaluate0$__root, _s5_).clearChildren$0();
  101129. _this._evaluate0$__endOfImports = 0;
  101130. },
  101131. _evaluate0$_removeUsedConfiguration$3$except(upstream, downstream, except) {
  101132. var t1, t2, t3, t4, _i, $name;
  101133. for (t1 = upstream._configuration0$_values, t2 = J.toList$0$ax(t1.get$keys(t1)), t3 = t2.length, t4 = downstream._configuration0$_values, _i = 0; _i < t2.length; t2.length === t3 || (0, A.throwConcurrentModificationError)(t2), ++_i) {
  101134. $name = t2[_i];
  101135. if (except.contains$1(0, $name))
  101136. continue;
  101137. if (!t4.containsKey$1($name))
  101138. if (!t1.get$isEmpty(t1))
  101139. t1.remove$1(0, $name);
  101140. }
  101141. },
  101142. _evaluate0$_assertConfigurationIsEmpty$2$nameInError(configuration, nameInError) {
  101143. var t1, _0_0, $name, value;
  101144. if (!(configuration instanceof A.ExplicitConfiguration0))
  101145. return;
  101146. t1 = configuration._configuration0$_values;
  101147. if (t1.get$isEmpty(t1))
  101148. return;
  101149. t1 = A.MapExtensions_get_pairs0(new A.UnmodifiableMapView(t1, type$.UnmodifiableMapView_String_ConfiguredValue_2), type$.String, type$.ConfiguredValue_2);
  101150. _0_0 = t1.get$first(t1);
  101151. $name = _0_0._0;
  101152. value = _0_0._1;
  101153. t1 = nameInError ? "$" + $name + string$.x20was_n : string$.This_v;
  101154. throw A.wrapException(this._evaluate0$_exception$2(t1, value.configurationSpan));
  101155. },
  101156. _evaluate0$_assertConfigurationIsEmpty$1(configuration) {
  101157. return this._evaluate0$_assertConfigurationIsEmpty$2$nameInError(configuration, false);
  101158. },
  101159. visitFunctionRule$1(_, node) {
  101160. var t1 = this._evaluate0$_environment,
  101161. t2 = t1.closure$0(),
  101162. t3 = this._evaluate0$_inDependency,
  101163. t4 = t1._environment0$_functions,
  101164. index = t4.length - 1,
  101165. t5 = node.name;
  101166. t1._environment0$_functionIndices.$indexSet(0, t5, index);
  101167. J.$indexSet$ax(t4[index], t5, new A.UserDefinedCallable0(node, t2, t3, type$.UserDefinedCallable_Environment_2));
  101168. return null;
  101169. },
  101170. visitIfRule$1(_, node) {
  101171. var t1, t2, _i, clauseToCheck,
  101172. clause = node.lastClause;
  101173. for (t1 = node.clauses, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  101174. clauseToCheck = t1[_i];
  101175. if (clauseToCheck.expression.accept$1(this).get$isTruthy()) {
  101176. clause = clauseToCheck;
  101177. break;
  101178. }
  101179. }
  101180. return A.NullableExtension_andThen0(clause, new A._EvaluateVisitor_visitIfRule_closure1(this));
  101181. },
  101182. visitImportRule$1(_, node) {
  101183. var t1, t2, t3, t4, t5, t6, _i, $import, t7, _0_0, $self, t8, _this = this,
  101184. _s8_ = "__parent",
  101185. _s5_ = "_root",
  101186. _s13_ = "_endOfImports";
  101187. for (t1 = node.imports, t2 = t1.length, t3 = type$.CssValue_String_2, t4 = _this.get$_evaluate0$_interpolationToValue(), t5 = type$.StaticImport_2, t6 = type$.JSArray_ModifiableCssImport_2, _i = 0; _i < t2; ++_i) {
  101188. $import = t1[_i];
  101189. if ($import instanceof A.DynamicImport0)
  101190. _this._evaluate0$_visitDynamicImport$1($import);
  101191. else {
  101192. t5._as($import);
  101193. t7 = $import.url;
  101194. _0_0 = _this._evaluate0$_performInterpolationHelper$3$sourceMap$warnForColor(t7, false, false);
  101195. $self = $import.modifiers;
  101196. t8 = $self == null ? null : t4.call$1($self);
  101197. node = new A.ModifiableCssImport0(new A.CssValue0(_0_0._0, t7.span, t3), t8, $import.span);
  101198. if (_this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_) !== _this._evaluate0$_assertInModule$2(_this._evaluate0$__root, _s5_))
  101199. _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_).addChild$1(node);
  101200. else if (_this._evaluate0$_assertInModule$2(_this._evaluate0$__endOfImports, _s13_) === J.get$length$asx(_this._evaluate0$_assertInModule$2(_this._evaluate0$__root, _s5_).children._collection$_source)) {
  101201. t7 = _this._evaluate0$_assertInModule$2(_this._evaluate0$__root, _s5_);
  101202. node._node$_parent = t7;
  101203. t7 = t7._node$_children;
  101204. node._node$_indexInParent = t7.length;
  101205. t7.push(node);
  101206. _this._evaluate0$__endOfImports = _this._evaluate0$_assertInModule$2(_this._evaluate0$__endOfImports, _s13_) + 1;
  101207. } else {
  101208. t7 = _this._evaluate0$_outOfOrderImports;
  101209. (t7 == null ? _this._evaluate0$_outOfOrderImports = A._setArrayType([], t6) : t7).push(node);
  101210. }
  101211. }
  101212. }
  101213. return null;
  101214. },
  101215. _evaluate0$_visitDynamicImport$1($import) {
  101216. return this._evaluate0$_withStackFrame$3("@import", $import, new A._EvaluateVisitor__visitDynamicImport_closure1(this, $import));
  101217. },
  101218. _evaluate0$_loadStylesheet$4$baseUrl$forImport(url, span, baseUrl, forImport) {
  101219. var _0_0, importCache, _1_0, importer, canonicalUrl, originalUrl, isDependency, _2_0, stylesheet, _3_0, result, error, stackTrace, error0, stackTrace0, t1, t2, exception, _this = this,
  101220. _s11_ = "_stylesheet";
  101221. baseUrl = baseUrl;
  101222. try {
  101223. _this._evaluate0$_importSpan = span;
  101224. _0_0 = _this._evaluate0$_importCache;
  101225. importCache = null;
  101226. if (_0_0 != null) {
  101227. importCache = _0_0;
  101228. if (baseUrl == null)
  101229. baseUrl = _this._evaluate0$_assertInModule$2(_this._evaluate0$__stylesheet, _s11_).span.file.url;
  101230. _1_0 = J.canonicalize$4$baseImporter$baseUrl$forImport$x(importCache, A.Uri_parse(url), _this._evaluate0$_importer, baseUrl, forImport);
  101231. importer = null;
  101232. canonicalUrl = null;
  101233. originalUrl = null;
  101234. if (type$.Record_3_nullable_Object_and_nullable_Object_and_nullable_Object_originalUrl._is(_1_0)) {
  101235. importer = _1_0._0;
  101236. canonicalUrl = _1_0._1;
  101237. originalUrl = _1_0._2;
  101238. if (canonicalUrl.get$scheme() === "")
  101239. A.WarnForDeprecation_warnForDeprecation0(_this._evaluate0$_logger, B.Deprecation_fXI, "Importer " + A.S(importer) + " canonicalized " + url + " to " + A.S(canonicalUrl) + string$.x2e_Rela, null, null);
  101240. _this._evaluate0$_loadedUrls.add$1(0, canonicalUrl);
  101241. isDependency = _this._evaluate0$_inDependency || !J.$eq$(importer, _this._evaluate0$_importer);
  101242. _2_0 = importCache.importCanonical$3$originalUrl(importer, canonicalUrl, originalUrl);
  101243. stylesheet = null;
  101244. if (_2_0 != null) {
  101245. stylesheet = _2_0;
  101246. t1 = stylesheet;
  101247. t2 = importer;
  101248. return new A._Record_3_importer_isDependency(t1, t2, isDependency);
  101249. }
  101250. }
  101251. }
  101252. if (_this._nodeImporter != null) {
  101253. t1 = baseUrl;
  101254. _3_0 = _this._importLikeNode$3(url, t1 == null ? _this._evaluate0$_assertInModule$2(_this._evaluate0$__stylesheet, _s11_).span.file.url : t1, forImport);
  101255. result = null;
  101256. if (_3_0 != null) {
  101257. result = _3_0;
  101258. t1 = _this._evaluate0$_loadedUrls;
  101259. A.NullableExtension_andThen0(result._0.span.file.url, t1.get$add(t1));
  101260. t1 = result;
  101261. return t1;
  101262. }
  101263. }
  101264. t1 = B.JSString_methods.startsWith$1(url, "package:");
  101265. if (t1)
  101266. throw A.wrapException(string$.x22packa);
  101267. else
  101268. throw A.wrapException("Can't find stylesheet to import.");
  101269. } catch (exception) {
  101270. t1 = A.unwrapException(exception);
  101271. if (t1 instanceof A.SassException0)
  101272. throw exception;
  101273. else if (t1 instanceof A.ArgumentError) {
  101274. error = t1;
  101275. stackTrace = A.getTraceFromException(exception);
  101276. A.throwWithTrace0(_this._evaluate0$_exception$1(J.toString$0$(error)), error, stackTrace);
  101277. } else {
  101278. error0 = t1;
  101279. stackTrace0 = A.getTraceFromException(exception);
  101280. A.throwWithTrace0(_this._evaluate0$_exception$1(_this._evaluate0$_getErrorMessage$1(error0)), error0, stackTrace0);
  101281. }
  101282. } finally {
  101283. _this._evaluate0$_importSpan = null;
  101284. }
  101285. },
  101286. _evaluate0$_loadStylesheet$3$baseUrl(url, span, baseUrl) {
  101287. return this._evaluate0$_loadStylesheet$4$baseUrl$forImport(url, span, baseUrl, false);
  101288. },
  101289. _evaluate0$_loadStylesheet$3$forImport(url, span, forImport) {
  101290. return this._evaluate0$_loadStylesheet$4$baseUrl$forImport(url, span, null, forImport);
  101291. },
  101292. _importLikeNode$3(originalUrl, previous, forImport) {
  101293. var isDependency, url,
  101294. t1 = this._nodeImporter,
  101295. result = t1.loadRelative$3(originalUrl, previous, forImport);
  101296. if (result != null)
  101297. isDependency = this._evaluate0$_inDependency;
  101298. else {
  101299. result = t1.load$3(0, originalUrl, previous, forImport);
  101300. if (result == null)
  101301. return null;
  101302. isDependency = true;
  101303. }
  101304. url = result._1;
  101305. t1 = B.JSString_methods.startsWith$1(url, "file") ? A.Syntax_forPath0(url) : B.Syntax_SCSS_scss0;
  101306. return new A._Record_3_importer_isDependency(A.Stylesheet_Stylesheet$parse0(result._0, t1, url), null, isDependency);
  101307. },
  101308. _evaluate0$_applyMixin$5(mixin, contentCallable, $arguments, nodeWithSpan, nodeWithSpanWithoutContent) {
  101309. var t1, _0_0, t2, _1_8, _this = this,
  101310. _s37_ = "Mixin doesn't accept a content block.",
  101311. _s10_ = "invocation";
  101312. $label0$0: {
  101313. if (mixin == null)
  101314. throw A.wrapException(_this._evaluate0$_exception$2("Undefined mixin.", nodeWithSpan.get$span(nodeWithSpan)));
  101315. t1 = mixin instanceof A.BuiltInCallable0;
  101316. if (t1 && !mixin.acceptsContent && contentCallable != null) {
  101317. t1 = _this._evaluate0$_evaluateArguments$1($arguments)._values;
  101318. _0_0 = mixin.callbackFor$2(t1[2].length, new A.MapKeySet(t1[0], type$.MapKeySet_String));
  101319. throw A.wrapException(A.MultiSpanSassRuntimeException$0(_s37_, nodeWithSpanWithoutContent.get$span(nodeWithSpanWithoutContent), _s10_, A.LinkedHashMap_LinkedHashMap$_literal([_0_0._0.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), _this._evaluate0$_stackTrace$1(nodeWithSpanWithoutContent.get$span(nodeWithSpanWithoutContent)), null));
  101320. }
  101321. if (t1) {
  101322. _this._evaluate0$_environment.withContent$2(contentCallable, new A._EvaluateVisitor__applyMixin_closure3(_this, $arguments, mixin, nodeWithSpanWithoutContent));
  101323. break $label0$0;
  101324. }
  101325. t1 = type$.UserDefinedCallable_Environment_2._is(mixin);
  101326. t2 = false;
  101327. if (t1) {
  101328. _1_8 = mixin.declaration;
  101329. if (_1_8 instanceof A.MixinRule0)
  101330. t2 = !type$.MixinRule_2._as(_1_8).get$hasContent() && contentCallable != null;
  101331. }
  101332. if (t2)
  101333. throw A.wrapException(A.MultiSpanSassRuntimeException$0(_s37_, nodeWithSpanWithoutContent.get$span(nodeWithSpanWithoutContent), _s10_, A.LinkedHashMap_LinkedHashMap$_literal([mixin.declaration.$arguments.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), _this._evaluate0$_stackTrace$1(nodeWithSpanWithoutContent.get$span(nodeWithSpanWithoutContent)), null));
  101334. if (t1) {
  101335. _this._evaluate0$_runUserDefinedCallable$1$4($arguments, mixin, nodeWithSpanWithoutContent, new A._EvaluateVisitor__applyMixin_closure4(_this, contentCallable, mixin, nodeWithSpanWithoutContent), type$.Null);
  101336. break $label0$0;
  101337. }
  101338. throw A.wrapException(A.UnsupportedError$("Unknown callable type " + mixin.toString$0(0) + "."));
  101339. }
  101340. },
  101341. visitIncludeRule$1(_, node) {
  101342. var _this = this,
  101343. mixin = _this._evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitIncludeRule_closure5(_this, node));
  101344. if (B.JSString_methods.startsWith$1(node.originalName, "--") && mixin instanceof A.UserDefinedCallable0 && !B.JSString_methods.startsWith$1(mixin.declaration.originalName, "--"))
  101345. _this._evaluate0$_warn$3(string$.Sassx20_m, node.get$nameSpan(), B.Deprecation_omC);
  101346. _this._evaluate0$_applyMixin$5(mixin, A.NullableExtension_andThen0(node.content, new A._EvaluateVisitor_visitIncludeRule_closure6(_this)), node.$arguments, node, new A._FakeAstNode0(new A._EvaluateVisitor_visitIncludeRule_closure7(node)));
  101347. return null;
  101348. },
  101349. visitMixinRule$1(_, node) {
  101350. var t1 = this._evaluate0$_environment,
  101351. t2 = t1.closure$0(),
  101352. t3 = this._evaluate0$_inDependency,
  101353. t4 = t1._environment0$_mixins,
  101354. index = t4.length - 1,
  101355. t5 = node.name;
  101356. t1._environment0$_mixinIndices.$indexSet(0, t5, index);
  101357. J.$indexSet$ax(t4[index], t5, new A.UserDefinedCallable0(node, t2, t3, type$.UserDefinedCallable_Environment_2));
  101358. return null;
  101359. },
  101360. visitLoudComment$1(_, node) {
  101361. var t1, text, _this = this,
  101362. _s8_ = "__parent",
  101363. _s13_ = "_endOfImports";
  101364. if (_this._evaluate0$_inFunction)
  101365. return null;
  101366. if (_this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_) === _this._evaluate0$_assertInModule$2(_this._evaluate0$__root, "_root") && _this._evaluate0$_assertInModule$2(_this._evaluate0$__endOfImports, _s13_) === J.get$length$asx(_this._evaluate0$_assertInModule$2(_this._evaluate0$__root, "_root").children._collection$_source))
  101367. _this._evaluate0$__endOfImports = _this._evaluate0$_assertInModule$2(_this._evaluate0$__endOfImports, _s13_) + 1;
  101368. t1 = node.text;
  101369. text = _this._evaluate0$_performInterpolation$1(t1);
  101370. if (!B.JSString_methods.endsWith$1(text, "*/"))
  101371. text += " */";
  101372. _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_).addChild$1(new A.ModifiableCssComment0(text, t1.span));
  101373. return null;
  101374. },
  101375. visitMediaRule$1(_, node) {
  101376. var _0_0, queries, mergedQueries, t1, mergedSources, t2, t3, _this = this;
  101377. if (_this._evaluate0$_declarationName != null)
  101378. throw A.wrapException(_this._evaluate0$_exception$2(string$.Media_, node.span));
  101379. _0_0 = _this._evaluate0$_performInterpolationWithMap$2$warnForColor(node.query, true);
  101380. queries = new A.MediaQueryParser0(A.SpanScanner$(_0_0._0, null), _0_0._1).parse$0(0);
  101381. mergedQueries = A.NullableExtension_andThen0(_this._evaluate0$_mediaQueries, new A._EvaluateVisitor_visitMediaRule_closure5(_this, queries));
  101382. t1 = mergedQueries == null;
  101383. if (!t1 && J.get$isEmpty$asx(mergedQueries))
  101384. return null;
  101385. if (t1)
  101386. mergedSources = B.Set_empty5;
  101387. else {
  101388. t2 = _this._evaluate0$_mediaQuerySources;
  101389. t2.toString;
  101390. t2 = A.LinkedHashSet_LinkedHashSet$of(t2, type$.CssMediaQuery_2);
  101391. t3 = _this._evaluate0$_mediaQueries;
  101392. t3.toString;
  101393. t2.addAll$1(0, t3);
  101394. t2.addAll$1(0, queries);
  101395. mergedSources = t2;
  101396. }
  101397. t1 = t1 ? queries : mergedQueries;
  101398. _this._evaluate0$_withParent$2$4$scopeWhen$through(A.ModifiableCssMediaRule$0(t1, node.span), new A._EvaluateVisitor_visitMediaRule_closure6(_this, mergedQueries, queries, mergedSources, node), node.hasDeclarations, new A._EvaluateVisitor_visitMediaRule_closure7(mergedSources), type$.ModifiableCssMediaRule_2, type$.Null);
  101399. return null;
  101400. },
  101401. _evaluate0$_mergeMediaQueries$2(queries1, queries2) {
  101402. var t1, t2, t3, t4, _0_0, t5, result,
  101403. queries = A._setArrayType([], type$.JSArray_CssMediaQuery_2);
  101404. for (t1 = J.get$iterator$ax(queries1), t2 = J.getInterceptor$ax(queries2); t1.moveNext$0();) {
  101405. t3 = t1.get$current(t1);
  101406. for (t4 = t2.get$iterator(queries2); t4.moveNext$0();)
  101407. $label0$1: {
  101408. _0_0 = t3.merge$1(t4.get$current(t4));
  101409. if (B._SingletonCssMediaQueryMergeResult_00 === _0_0)
  101410. continue;
  101411. if (B._SingletonCssMediaQueryMergeResult_10 === _0_0)
  101412. return null;
  101413. t5 = _0_0 instanceof A.MediaQuerySuccessfulMergeResult0;
  101414. result = t5 ? _0_0 : null;
  101415. if (t5)
  101416. queries.push(result.query);
  101417. break $label0$1;
  101418. }
  101419. }
  101420. return queries;
  101421. },
  101422. visitReturnRule$1(_, node) {
  101423. var t1 = node.expression;
  101424. return this._evaluate0$_withoutSlash$2(t1.accept$1(this), t1);
  101425. },
  101426. visitSilentComment$1(_, node) {
  101427. return null;
  101428. },
  101429. visitStyleRule$1(_, node) {
  101430. var t1, _0_0, selectorText, selectorMap, parsedSelector, nest, t2, _i, _1_0, first, t3, rule, oldAtRootExcludingStyleRule, _this = this, _null = null,
  101431. _s8_ = "__parent",
  101432. _s11_ = "_stylesheet";
  101433. if (_this._evaluate0$_declarationName != null)
  101434. throw A.wrapException(_this._evaluate0$_exception$2(string$.Style_n, node.span));
  101435. else if (_this._evaluate0$_inKeyframes && _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_) instanceof A.ModifiableCssKeyframeBlock0)
  101436. throw A.wrapException(_this._evaluate0$_exception$2(string$.Style_k, node.span));
  101437. t1 = node.selector;
  101438. _0_0 = _this._evaluate0$_performInterpolationWithMap$2$warnForColor(t1, true);
  101439. selectorText = _0_0._0;
  101440. selectorMap = _0_0._1;
  101441. if (_this._evaluate0$_inKeyframes) {
  101442. _this._evaluate0$_withParent$2$4$scopeWhen$through(A.ModifiableCssKeyframeBlock$0(new A.CssValue0(A.List_List$unmodifiable(new A.KeyframeSelectorParser0(A.SpanScanner$(selectorText, _null), selectorMap).parse$0(0), type$.String), t1.span, type$.CssValue_List_String_2), node.span), new A._EvaluateVisitor_visitStyleRule_closure7(_this, node), node.hasDeclarations, new A._EvaluateVisitor_visitStyleRule_closure8(), type$.ModifiableCssKeyframeBlock_2, type$.Null);
  101443. return _null;
  101444. }
  101445. parsedSelector = A.SelectorList_SelectorList$parse0(selectorText, true, selectorMap, _this._evaluate0$_assertInModule$2(_this._evaluate0$__stylesheet, _s11_).plainCss);
  101446. t1 = _this._evaluate0$_atRootExcludingStyleRule ? _null : _this._evaluate0$_styleRuleIgnoringAtRoot;
  101447. t1 = t1 == null ? _null : t1.fromPlainCss;
  101448. nest = t1 !== true;
  101449. if (nest) {
  101450. if (_this._evaluate0$_assertInModule$2(_this._evaluate0$__stylesheet, _s11_).plainCss)
  101451. for (t1 = parsedSelector.components, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  101452. _1_0 = t1[_i].leadingCombinators;
  101453. if (_1_0.length >= 1) {
  101454. first = _1_0[0];
  101455. t3 = _this._evaluate0$_assertInModule$2(_this._evaluate0$__stylesheet, _s11_);
  101456. t3 = t3.plainCss;
  101457. } else {
  101458. first = _null;
  101459. t3 = false;
  101460. }
  101461. if (t3)
  101462. throw A.wrapException(_this._evaluate0$_exception$2(string$.Top_lel, first.span));
  101463. }
  101464. t1 = _this._evaluate0$_styleRuleIgnoringAtRoot;
  101465. t1 = t1 == null ? _null : t1.originalSelector;
  101466. parsedSelector = parsedSelector.nestWithin$3$implicitParent$preserveParentSelectors(t1, !_this._evaluate0$_atRootExcludingStyleRule, _this._evaluate0$_assertInModule$2(_this._evaluate0$__stylesheet, _s11_).plainCss);
  101467. }
  101468. rule = A.ModifiableCssStyleRule$0(_this._evaluate0$_assertInModule$2(_this._evaluate0$__extensionStore, "_extensionStore").addSelector$2(parsedSelector, _this._evaluate0$_mediaQueries), node.span, _this._evaluate0$_assertInModule$2(_this._evaluate0$__stylesheet, _s11_).plainCss, parsedSelector);
  101469. oldAtRootExcludingStyleRule = _this._evaluate0$_atRootExcludingStyleRule;
  101470. t1 = _this._evaluate0$_atRootExcludingStyleRule = false;
  101471. t2 = nest ? new A._EvaluateVisitor_visitStyleRule_closure9() : _null;
  101472. _this._evaluate0$_withParent$2$4$scopeWhen$through(rule, new A._EvaluateVisitor_visitStyleRule_closure10(_this, rule, node), node.hasDeclarations, t2, type$.ModifiableCssStyleRule_2, type$.Null);
  101473. _this._evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  101474. _this._evaluate0$_warnForBogusCombinators$1(rule);
  101475. if ((_this._evaluate0$_atRootExcludingStyleRule ? _null : _this._evaluate0$_styleRuleIgnoringAtRoot) == null) {
  101476. t1 = _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_).children;
  101477. t1 = !t1.get$isEmpty(t1);
  101478. }
  101479. if (t1) {
  101480. t1 = _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_).children;
  101481. t1.get$last(t1).isGroupEnd = true;
  101482. }
  101483. return _null;
  101484. },
  101485. _evaluate0$_warnForBogusCombinators$1(rule) {
  101486. var t1, t2, t3, t4, t5, _i, complex, visitor, t6, t7, t8, t9, _this = this, _null = null;
  101487. if (!rule.accept$1(B._IsInvisibleVisitor_false_false0))
  101488. for (t1 = rule._style_rule0$_selector._box0$_inner.value.components, t2 = t1.length, t3 = type$.SourceSpan, t4 = type$.String, t5 = rule.children, _i = 0; _i < t2; ++_i) {
  101489. complex = t1[_i];
  101490. if (!complex.accept$1(B._IsBogusVisitor_true0))
  101491. continue;
  101492. if (complex.accept$1(B.C__IsUselessVisitor0)) {
  101493. visitor = A._SerializeVisitor$0(_null, true, _null, _null, true, false, _null, true);
  101494. complex.accept$1(visitor);
  101495. _this._evaluate0$_warn$3('The selector "' + B.JSString_methods.trim$0(visitor._serialize0$_buffer.toString$0(0)) + string$.x22x20is_ix20, A.SpanExtensions_trimRight0(complex.span), B.Deprecation_bh9);
  101496. } else if (complex.leadingCombinators.length !== 0) {
  101497. if (!_this._evaluate0$_assertInModule$2(_this._evaluate0$__stylesheet, "_stylesheet").plainCss) {
  101498. visitor = A._SerializeVisitor$0(_null, true, _null, _null, true, false, _null, true);
  101499. complex.accept$1(visitor);
  101500. _this._evaluate0$_warn$3('The selector "' + B.JSString_methods.trim$0(visitor._serialize0$_buffer.toString$0(0)) + string$.x22x20is_ix0a, A.SpanExtensions_trimRight0(complex.span), B.Deprecation_bh9);
  101501. }
  101502. } else {
  101503. visitor = A._SerializeVisitor$0(_null, true, _null, _null, true, false, _null, true);
  101504. complex.accept$1(visitor);
  101505. t6 = B.JSString_methods.trim$0(visitor._serialize0$_buffer.toString$0(0));
  101506. t7 = complex.accept$1(B._IsBogusVisitor_false0) ? string$.x20It_wi : "";
  101507. t8 = A.SpanExtensions_trimRight0(complex.span);
  101508. if (t5.get$length(0) === 0)
  101509. A.throwExpression(A.IterableElementError_noElement());
  101510. t9 = J.get$span$z(t5.$index(0, 0));
  101511. _this._evaluate0$_warn$3('The selector "' + t6 + string$.x22x20is_o + t7 + string$.x0aThis_, new A.MultiSpan0(t8, "invalid selector", A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_literal([t9, "this is not a style rule" + (t5.every$1(t5, new A._EvaluateVisitor__warnForBogusCombinators_closure1()) ? "\n(try converting to a //-style comment)" : "")], t3, t4), t3, t4)), B.Deprecation_bh9);
  101512. }
  101513. }
  101514. },
  101515. visitSupportsRule$1(_, node) {
  101516. var t1, _this = this;
  101517. if (_this._evaluate0$_declarationName != null)
  101518. throw A.wrapException(_this._evaluate0$_exception$2(string$.Suppor, node.span));
  101519. t1 = node.condition;
  101520. _this._evaluate0$_withParent$2$4$scopeWhen$through(A.ModifiableCssSupportsRule$0(new A.CssValue0(_this._evaluate0$_visitSupportsCondition$1(t1), t1.get$span(t1), type$.CssValue_String_2), node.span), new A._EvaluateVisitor_visitSupportsRule_closure3(_this, node), node.hasDeclarations, new A._EvaluateVisitor_visitSupportsRule_closure4(), type$.ModifiableCssSupportsRule_2, type$.Null);
  101521. return null;
  101522. },
  101523. _evaluate0$_visitSupportsCondition$1(condition) {
  101524. var t1, _this = this, _box_0 = {};
  101525. $label0$0: {
  101526. if (condition instanceof A.SupportsOperation0) {
  101527. t1 = condition.operator;
  101528. t1 = _this._evaluate0$_parenthesize$2(condition.left, t1) + " " + t1 + " " + _this._evaluate0$_parenthesize$2(condition.right, t1);
  101529. break $label0$0;
  101530. }
  101531. if (condition instanceof A.SupportsNegation0) {
  101532. t1 = "not " + _this._evaluate0$_parenthesize$1(condition.condition);
  101533. break $label0$0;
  101534. }
  101535. if (condition instanceof A.SupportsInterpolation0) {
  101536. t1 = condition.expression;
  101537. t1 = _this._evaluate0$_serialize$3$quote(t1.accept$1(_this), t1, false);
  101538. break $label0$0;
  101539. }
  101540. _box_0.declaration = null;
  101541. if (condition instanceof A.SupportsDeclaration0) {
  101542. _box_0.declaration = condition;
  101543. t1 = _this._evaluate0$_withSupportsDeclaration$1(new A._EvaluateVisitor__visitSupportsCondition_closure1(_box_0, _this));
  101544. break $label0$0;
  101545. }
  101546. if (condition instanceof A.SupportsFunction0) {
  101547. t1 = _this._evaluate0$_performInterpolation$1(condition.name) + "(" + _this._evaluate0$_performInterpolation$1(condition.$arguments) + ")";
  101548. break $label0$0;
  101549. }
  101550. if (condition instanceof A.SupportsAnything0) {
  101551. t1 = "(" + _this._evaluate0$_performInterpolation$1(condition.contents) + ")";
  101552. break $label0$0;
  101553. }
  101554. t1 = A.throwExpression(A.ArgumentError$("Unknown supports condition type " + A.getRuntimeTypeOfDartObject(condition).toString$0(0) + ".", null));
  101555. }
  101556. return t1;
  101557. },
  101558. _evaluate0$_withSupportsDeclaration$1$1(callback) {
  101559. var t1,
  101560. oldInSupportsDeclaration = this._evaluate0$_inSupportsDeclaration;
  101561. this._evaluate0$_inSupportsDeclaration = true;
  101562. try {
  101563. t1 = callback.call$0();
  101564. return t1;
  101565. } finally {
  101566. this._evaluate0$_inSupportsDeclaration = oldInSupportsDeclaration;
  101567. }
  101568. },
  101569. _evaluate0$_withSupportsDeclaration$1(callback) {
  101570. return this._evaluate0$_withSupportsDeclaration$1$1(callback, type$.dynamic);
  101571. },
  101572. _evaluate0$_parenthesize$2(condition, operator) {
  101573. var t1;
  101574. if (!(condition instanceof A.SupportsNegation0))
  101575. if (condition instanceof A.SupportsOperation0)
  101576. t1 = operator == null || operator !== condition.operator;
  101577. else
  101578. t1 = false;
  101579. else
  101580. t1 = true;
  101581. if (t1)
  101582. return "(" + this._evaluate0$_visitSupportsCondition$1(condition) + ")";
  101583. return this._evaluate0$_visitSupportsCondition$1(condition);
  101584. },
  101585. _evaluate0$_parenthesize$1(condition) {
  101586. return this._evaluate0$_parenthesize$2(condition, null);
  101587. },
  101588. visitVariableDeclaration$1(_, node) {
  101589. var t2, value, _this = this, _null = null, t1 = {};
  101590. if (node.isGuarded) {
  101591. if (node.namespace == null && _this._evaluate0$_environment._environment0$_variables.length === 1) {
  101592. t2 = _this._evaluate0$_configuration._configuration0$_values;
  101593. t2 = t2.get$isEmpty(t2) ? _null : t2.remove$1(0, node.name);
  101594. t1.override = null;
  101595. if (t2 != null) {
  101596. t1.override = t2;
  101597. t2 = !t2.value.$eq(0, B.C__SassNull0);
  101598. } else
  101599. t2 = false;
  101600. if (t2) {
  101601. _this._evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableDeclaration_closure5(t1, _this, node));
  101602. return _null;
  101603. }
  101604. }
  101605. value = _this._evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableDeclaration_closure6(_this, node));
  101606. if (value != null && !value.$eq(0, B.C__SassNull0))
  101607. return _null;
  101608. }
  101609. if (node.isGlobal && !_this._evaluate0$_environment.globalVariableExists$1(node.name)) {
  101610. t1 = _this._evaluate0$_environment._environment0$_variables.length === 1 ? string$.As_of_S : string$.As_of_R + A.declarationName0(node.span) + ": null` at the stylesheet root.";
  101611. _this._evaluate0$_warn$3(t1, node.span, B.Deprecation_MT8);
  101612. }
  101613. t1 = node.expression;
  101614. _this._evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableDeclaration_closure7(_this, node, _this._evaluate0$_withoutSlash$2(t1.accept$1(_this), t1)));
  101615. return _null;
  101616. },
  101617. visitUseRule$1(_, node) {
  101618. var values, _i, variable, t3, variableNodeWithSpan, configuration, _this = this,
  101619. t1 = node.configuration,
  101620. t2 = t1.length;
  101621. if (t2 !== 0) {
  101622. values = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue_2);
  101623. for (_i = 0; _i < t2; ++_i) {
  101624. variable = t1[_i];
  101625. t3 = variable.expression;
  101626. variableNodeWithSpan = _this._evaluate0$_expressionNode$1(t3);
  101627. values.$indexSet(0, variable.name, new A.ConfiguredValue0(_this._evaluate0$_withoutSlash$2(t3.accept$1(_this), variableNodeWithSpan), variable.span, variableNodeWithSpan));
  101628. }
  101629. configuration = new A.ExplicitConfiguration0(node, values, null);
  101630. } else
  101631. configuration = B.Configuration_Map_empty_null0;
  101632. _this._evaluate0$_loadModule$5$configuration(node.url, "@use", node, new A._EvaluateVisitor_visitUseRule_closure1(_this, node), configuration);
  101633. _this._evaluate0$_assertConfigurationIsEmpty$1(configuration);
  101634. return null;
  101635. },
  101636. visitWarnRule$1(_, node) {
  101637. var _this = this,
  101638. value = _this._evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitWarnRule_closure1(_this, node)),
  101639. t1 = value instanceof A.SassString0 ? value._string0$_text : _this._evaluate0$_serialize$2(value, node.expression);
  101640. _this._evaluate0$_logger.warn$2$trace(0, t1, _this._evaluate0$_stackTrace$1(node.span));
  101641. return null;
  101642. },
  101643. visitWhileRule$1(_, node) {
  101644. return this._evaluate0$_environment.scope$1$3$semiGlobal$when(new A._EvaluateVisitor_visitWhileRule_closure1(this, node), true, node.hasDeclarations, type$.nullable_Value_2);
  101645. },
  101646. visitBinaryOperationExpression$1(_, node) {
  101647. var t1, _this = this;
  101648. if (_this._evaluate0$_assertInModule$2(_this._evaluate0$__stylesheet, "_stylesheet").plainCss) {
  101649. t1 = node.operator;
  101650. t1 = t1 !== B.BinaryOperator_wdM0 && t1 !== B.BinaryOperator_U770;
  101651. } else
  101652. t1 = false;
  101653. if (t1)
  101654. throw A.wrapException(_this._evaluate0$_exception$2("Operators aren't allowed in plain CSS.", node.get$operatorSpan()));
  101655. return _this._evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitBinaryOperationExpression_closure1(_this, node));
  101656. },
  101657. _evaluate0$_slash$3(left, right, node) {
  101658. var t2, _1_1,
  101659. result = left.dividedBy$1(right),
  101660. _1_2_isSet = left instanceof A.SassNumber0,
  101661. _1_2 = null, right0 = null,
  101662. t1 = false;
  101663. if (_1_2_isSet) {
  101664. t2 = type$.SassNumber_2;
  101665. t2._as(left);
  101666. if (right instanceof A.SassNumber0) {
  101667. t2._as(right);
  101668. t1 = node.allowsSlash && this._evaluate0$_operandAllowsSlash$1(node.left) && this._evaluate0$_operandAllowsSlash$1(node.right);
  101669. right0 = right;
  101670. _1_2 = right0;
  101671. } else
  101672. _1_2 = right;
  101673. _1_1 = left;
  101674. } else {
  101675. _1_1 = left;
  101676. left = null;
  101677. }
  101678. if (t1)
  101679. return type$.SassNumber_2._as(result).withSlash$2(left, right0);
  101680. if (_1_1 instanceof A.SassNumber0)
  101681. t1 = (_1_2_isSet ? _1_2 : right) instanceof A.SassNumber0;
  101682. else
  101683. t1 = false;
  101684. if (t1) {
  101685. this._evaluate0$_warn$3(string$.Using__o + A.S(new A._EvaluateVisitor__slash_recommendation1().call$1(node)) + " or " + A.expressionToCalc0(node).toString$0(0) + string$.x0a_Morex20, node.get$span(0), B.Deprecation_q39);
  101686. return result;
  101687. }
  101688. return result;
  101689. },
  101690. _evaluate0$_operandAllowsSlash$1(node) {
  101691. var t1;
  101692. if (node instanceof A.FunctionExpression0)
  101693. if (node.namespace == null) {
  101694. t1 = node.name;
  101695. t1 = B.Set_yHF81.contains$1(0, t1.toLowerCase()) && this._evaluate0$_environment.getFunction$1(t1) == null;
  101696. } else
  101697. t1 = false;
  101698. else
  101699. t1 = true;
  101700. return t1;
  101701. },
  101702. visitValueExpression$1(_, node) {
  101703. return node.value;
  101704. },
  101705. visitVariableExpression$1(_, node) {
  101706. var result = this._evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitVariableExpression_closure1(this, node));
  101707. if (result != null)
  101708. return result;
  101709. throw A.wrapException(this._evaluate0$_exception$2("Undefined variable.", node.span));
  101710. },
  101711. visitUnaryOperationExpression$1(_, node) {
  101712. return this._evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitUnaryOperationExpression_closure1(node, node.operand.accept$1(this)));
  101713. },
  101714. visitBooleanExpression$1(_, node) {
  101715. return node.value ? B.SassBoolean_true0 : B.SassBoolean_false0;
  101716. },
  101717. visitIfExpression$1(_, node) {
  101718. var condition, t1, ifTrue, ifFalse, result, _this = this,
  101719. _0_0 = _this._evaluate0$_evaluateMacroArguments$1(node),
  101720. positional = _0_0._0,
  101721. named = _0_0._1;
  101722. _this._evaluate0$_verifyArguments$4(positional.length, named, $.$get$IfExpression_declaration0(), node);
  101723. condition = A.ListExtensions_elementAtOrNull(positional, 0);
  101724. if (condition == null) {
  101725. t1 = named.$index(0, "condition");
  101726. t1.toString;
  101727. condition = t1;
  101728. }
  101729. ifTrue = A.ListExtensions_elementAtOrNull(positional, 1);
  101730. if (ifTrue == null) {
  101731. t1 = named.$index(0, "if-true");
  101732. t1.toString;
  101733. ifTrue = t1;
  101734. }
  101735. ifFalse = A.ListExtensions_elementAtOrNull(positional, 2);
  101736. if (ifFalse == null) {
  101737. t1 = named.$index(0, "if-false");
  101738. t1.toString;
  101739. ifFalse = t1;
  101740. }
  101741. result = condition.accept$1(_this).get$isTruthy() ? ifTrue : ifFalse;
  101742. return _this._evaluate0$_withoutSlash$2(result.accept$1(_this), _this._evaluate0$_expressionNode$1(result));
  101743. },
  101744. visitNullExpression$1(_, node) {
  101745. return B.C__SassNull0;
  101746. },
  101747. visitNumberExpression$1(_, node) {
  101748. return A.SassNumber_SassNumber0(node.value, node.unit);
  101749. },
  101750. visitParenthesizedExpression$1(_, node) {
  101751. var _this = this;
  101752. return _this._evaluate0$_assertInModule$2(_this._evaluate0$__stylesheet, "_stylesheet").plainCss ? A.throwExpression(_this._evaluate0$_exception$2("Parentheses aren't allowed in plain CSS.", node.span)) : node.expression.accept$1(_this);
  101753. },
  101754. visitColorExpression$1(_, node) {
  101755. return node.value;
  101756. },
  101757. visitListExpression$1(_, node) {
  101758. var t1 = node.contents;
  101759. return A.SassList$0(new A.MappedListIterable(t1, new A._EvaluateVisitor_visitListExpression_closure1(this), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value0>")), node.separator, node.hasBrackets);
  101760. },
  101761. visitMapExpression$1(_, node) {
  101762. var t2, t3, _i, t4, key, value, keyValue, valueValue, oldValueSpan,
  101763. t1 = type$.Value_2,
  101764. map = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1),
  101765. keyNodes = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.AstNode_2);
  101766. for (t2 = node.pairs, t3 = t2.length, _i = 0; _i < t3; ++_i) {
  101767. t4 = t2[_i];
  101768. key = t4._0;
  101769. value = t4._1;
  101770. keyValue = key.accept$1(this);
  101771. valueValue = value.accept$1(this);
  101772. if (map.containsKey$1(keyValue)) {
  101773. t1 = keyNodes.$index(0, keyValue);
  101774. oldValueSpan = t1 == null ? null : t1.get$span(t1);
  101775. t1 = key.get$span(key);
  101776. t2 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
  101777. if (oldValueSpan != null)
  101778. t2.$indexSet(0, oldValueSpan, "first key");
  101779. throw A.wrapException(A.MultiSpanSassRuntimeException$0("Duplicate key.", t1, "second key", t2, this._evaluate0$_stackTrace$1(key.get$span(key)), null));
  101780. }
  101781. map.$indexSet(0, keyValue, valueValue);
  101782. keyNodes.$indexSet(0, keyValue, key);
  101783. }
  101784. return new A.SassMap0(A.ConstantMap_ConstantMap$from(map, t1, t1));
  101785. },
  101786. visitFunctionExpression$1(_, node) {
  101787. var t2, _0_0, t3, t4, oldInFunction, result, _this = this,
  101788. _s11_ = "_stylesheet",
  101789. t1 = {},
  101790. $function = _this._evaluate0$_assertInModule$2(_this._evaluate0$__stylesheet, _s11_).plainCss ? null : _this._evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor_visitFunctionExpression_closure5(_this, node));
  101791. t1.$function = $function;
  101792. if ($function == null) {
  101793. if (node.namespace != null)
  101794. throw A.wrapException(_this._evaluate0$_exception$2("Undefined function.", node.span));
  101795. t2 = node.name;
  101796. _0_0 = t2.toLowerCase();
  101797. if ("min" === _0_0 || "max" === _0_0 || "round" === _0_0 || "abs" === _0_0) {
  101798. t3 = node.$arguments;
  101799. t4 = t3.named;
  101800. t3 = t4.get$isEmpty(t4) && t3.rest == null && B.JSArray_methods.every$1(t3.positional, new A._EvaluateVisitor_visitFunctionExpression_closure6());
  101801. } else
  101802. t3 = false;
  101803. if (t3)
  101804. return _this._evaluate0$_visitCalculation$2$inLegacySassFunction(node, true);
  101805. if ("calc" === _0_0 || "clamp" === _0_0 || "hypot" === _0_0 || "sin" === _0_0 || "cos" === _0_0 || "tan" === _0_0 || "asin" === _0_0 || "acos" === _0_0 || "atan" === _0_0 || "sqrt" === _0_0 || "exp" === _0_0 || "sign" === _0_0 || "mod" === _0_0 || "rem" === _0_0 || "atan2" === _0_0 || "pow" === _0_0 || "log" === _0_0)
  101806. return _this._evaluate0$_visitCalculation$1(node);
  101807. $function = _this._evaluate0$_assertInModule$2(_this._evaluate0$__stylesheet, _s11_).plainCss ? null : _this._evaluate0$_builtInFunctions.$index(0, t2);
  101808. t2 = t1.$function = $function == null ? new A.PlainCssCallable0(node.originalName) : $function;
  101809. } else
  101810. t2 = $function;
  101811. if (B.JSString_methods.startsWith$1(node.originalName, "--") && t2 instanceof A.UserDefinedCallable0 && !B.JSString_methods.startsWith$1(t2.declaration.originalName, "--"))
  101812. _this._evaluate0$_warn$3(string$.Sassx20_ff, node.get$nameSpan(), B.Deprecation_omC);
  101813. oldInFunction = _this._evaluate0$_inFunction;
  101814. _this._evaluate0$_inFunction = true;
  101815. result = _this._evaluate0$_addErrorSpan$2(node, new A._EvaluateVisitor_visitFunctionExpression_closure7(t1, _this, node));
  101816. _this._evaluate0$_inFunction = oldInFunction;
  101817. return result;
  101818. },
  101819. _evaluate0$_visitCalculation$2$inLegacySassFunction(node, inLegacySassFunction) {
  101820. var $arguments, oldCallableNode, t1, _0_0, error, stackTrace, t4, _i, exception, _this = this,
  101821. t2 = node.$arguments,
  101822. t3 = t2.named;
  101823. if (t3.get$isNotEmpty(t3))
  101824. throw A.wrapException(_this._evaluate0$_exception$2(string$.Keywor, node.span));
  101825. else if (t2.rest != null)
  101826. throw A.wrapException(_this._evaluate0$_exception$2(string$.Rest_a, node.span));
  101827. _this._evaluate0$_checkCalculationArguments$1(node);
  101828. t3 = A._setArrayType([], type$.JSArray_Object);
  101829. for (t2 = t2.positional, t4 = t2.length, _i = 0; _i < t4; ++_i)
  101830. t3.push(_this._evaluate0$_visitCalculationExpression$2$inLegacySassFunction(t2[_i], inLegacySassFunction));
  101831. $arguments = t3;
  101832. if (_this._evaluate0$_inSupportsDeclaration)
  101833. return new A.SassCalculation0(node.name, A.List_List$unmodifiable($arguments, type$.Object));
  101834. oldCallableNode = _this._evaluate0$_callableNode;
  101835. _this._evaluate0$_callableNode = node;
  101836. try {
  101837. t1 = null;
  101838. t3 = node.name;
  101839. _0_0 = t3.toLowerCase();
  101840. $label0$0: {
  101841. if ("calc" === _0_0) {
  101842. t1 = A.SassCalculation_calc0(J.$index$asx($arguments, 0));
  101843. break $label0$0;
  101844. }
  101845. if ("sqrt" === _0_0) {
  101846. t1 = A.SassCalculation__singleArgument0("sqrt", J.$index$asx($arguments, 0), A.number2__sqrt$closure(), true);
  101847. break $label0$0;
  101848. }
  101849. if ("sin" === _0_0) {
  101850. t1 = A.SassCalculation__singleArgument0("sin", J.$index$asx($arguments, 0), A.number2__sin$closure(), false);
  101851. break $label0$0;
  101852. }
  101853. if ("cos" === _0_0) {
  101854. t1 = A.SassCalculation__singleArgument0("cos", J.$index$asx($arguments, 0), A.number2__cos$closure(), false);
  101855. break $label0$0;
  101856. }
  101857. if ("tan" === _0_0) {
  101858. t1 = A.SassCalculation__singleArgument0("tan", J.$index$asx($arguments, 0), A.number2__tan$closure(), false);
  101859. break $label0$0;
  101860. }
  101861. if ("asin" === _0_0) {
  101862. t1 = A.SassCalculation__singleArgument0("asin", J.$index$asx($arguments, 0), A.number2__asin$closure(), true);
  101863. break $label0$0;
  101864. }
  101865. if ("acos" === _0_0) {
  101866. t1 = A.SassCalculation__singleArgument0("acos", J.$index$asx($arguments, 0), A.number2__acos$closure(), true);
  101867. break $label0$0;
  101868. }
  101869. if ("atan" === _0_0) {
  101870. t1 = A.SassCalculation__singleArgument0("atan", J.$index$asx($arguments, 0), A.number2__atan$closure(), true);
  101871. break $label0$0;
  101872. }
  101873. if ("abs" === _0_0) {
  101874. t1 = A.SassCalculation_abs0(J.$index$asx($arguments, 0));
  101875. break $label0$0;
  101876. }
  101877. if ("exp" === _0_0) {
  101878. t1 = A.SassCalculation_exp0(J.$index$asx($arguments, 0));
  101879. break $label0$0;
  101880. }
  101881. if ("sign" === _0_0) {
  101882. t1 = A.SassCalculation_sign0(J.$index$asx($arguments, 0));
  101883. break $label0$0;
  101884. }
  101885. if ("min" === _0_0) {
  101886. t1 = A.SassCalculation_min0($arguments);
  101887. break $label0$0;
  101888. }
  101889. if ("max" === _0_0) {
  101890. t1 = A.SassCalculation_max0($arguments);
  101891. break $label0$0;
  101892. }
  101893. if ("hypot" === _0_0) {
  101894. t1 = A.SassCalculation_hypot0($arguments);
  101895. break $label0$0;
  101896. }
  101897. if ("pow" === _0_0) {
  101898. t1 = A.SassCalculation_pow0(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1));
  101899. break $label0$0;
  101900. }
  101901. if ("atan2" === _0_0) {
  101902. t1 = A.SassCalculation_atan20(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1));
  101903. break $label0$0;
  101904. }
  101905. if ("log" === _0_0) {
  101906. t1 = A.SassCalculation_log0(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1));
  101907. break $label0$0;
  101908. }
  101909. if ("mod" === _0_0) {
  101910. t1 = A.SassCalculation_mod0(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1));
  101911. break $label0$0;
  101912. }
  101913. if ("rem" === _0_0) {
  101914. t1 = A.SassCalculation_rem0(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1));
  101915. break $label0$0;
  101916. }
  101917. if ("round" === _0_0) {
  101918. t1 = A.SassCalculation_round0(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1), A.ListExtensions_elementAtOrNull($arguments, 2));
  101919. break $label0$0;
  101920. }
  101921. if ("clamp" === _0_0) {
  101922. t1 = A.SassCalculation_clamp0(J.$index$asx($arguments, 0), A.ListExtensions_elementAtOrNull($arguments, 1), A.ListExtensions_elementAtOrNull($arguments, 2));
  101923. break $label0$0;
  101924. }
  101925. t3 = A.UnsupportedError$('Unknown calculation name "' + t3 + '".');
  101926. t1 = A.throwExpression(t3);
  101927. }
  101928. t1 = t1;
  101929. return t1;
  101930. } catch (exception) {
  101931. t1 = A.unwrapException(exception);
  101932. if (t1 instanceof A.SassScriptException0) {
  101933. error = t1;
  101934. stackTrace = A.getTraceFromException(exception);
  101935. if (B.JSString_methods.contains$1(error.message, "compatible"))
  101936. _this._evaluate0$_verifyCompatibleNumbers$2($arguments, t2);
  101937. A.throwWithTrace0(_this._evaluate0$_exception$2(error.message, node.span), error, stackTrace);
  101938. } else
  101939. throw exception;
  101940. } finally {
  101941. _this._evaluate0$_callableNode = oldCallableNode;
  101942. }
  101943. },
  101944. _evaluate0$_visitCalculation$1(node) {
  101945. return this._evaluate0$_visitCalculation$2$inLegacySassFunction(node, false);
  101946. },
  101947. _evaluate0$_checkCalculationArguments$1(node) {
  101948. var t1, _0_0,
  101949. check = new A._EvaluateVisitor__checkCalculationArguments_check1(this, node);
  101950. $label0$0: {
  101951. t1 = node.name;
  101952. _0_0 = t1.toLowerCase();
  101953. if ("calc" === _0_0 || "sqrt" === _0_0 || "sin" === _0_0 || "cos" === _0_0 || "tan" === _0_0 || "asin" === _0_0 || "acos" === _0_0 || "atan" === _0_0 || "abs" === _0_0 || "exp" === _0_0 || "sign" === _0_0) {
  101954. check.call$1(1);
  101955. break $label0$0;
  101956. }
  101957. if ("min" === _0_0 || "max" === _0_0 || "hypot" === _0_0) {
  101958. check.call$0();
  101959. break $label0$0;
  101960. }
  101961. if ("pow" === _0_0 || "atan2" === _0_0 || "log" === _0_0 || "mod" === _0_0 || "rem" === _0_0) {
  101962. check.call$1(2);
  101963. break $label0$0;
  101964. }
  101965. if ("round" === _0_0 || "clamp" === _0_0) {
  101966. check.call$1(3);
  101967. break $label0$0;
  101968. }
  101969. throw A.wrapException(A.UnsupportedError$('Unknown calculation name "' + t1 + '".'));
  101970. }
  101971. },
  101972. _evaluate0$_verifyCompatibleNumbers$2(args, nodesWithSpans) {
  101973. var i, t1, _0_0, arg, number1, j, number2;
  101974. for (i = 0; t1 = args.length, i < t1; ++i) {
  101975. _0_0 = args[i];
  101976. if (_0_0 instanceof A.SassNumber0) {
  101977. t1 = _0_0.get$hasComplexUnits();
  101978. arg = _0_0;
  101979. } else {
  101980. arg = null;
  101981. t1 = false;
  101982. }
  101983. if (t1)
  101984. throw A.wrapException(this._evaluate0$_exception$2("Number " + A.S(arg) + " isn't compatible with CSS calculations.", J.get$span$z(nodesWithSpans[i])));
  101985. }
  101986. for (i = 0; i < t1 - 1; ++i) {
  101987. number1 = args[i];
  101988. if (!(number1 instanceof A.SassNumber0))
  101989. continue;
  101990. for (j = i + 1; t1 = args.length, j < t1; ++j) {
  101991. number2 = args[j];
  101992. if (!(number2 instanceof A.SassNumber0))
  101993. continue;
  101994. if (number1.hasPossiblyCompatibleUnits$1(number2))
  101995. continue;
  101996. throw A.wrapException(A.MultiSpanSassRuntimeException$0(number1.toString$0(0) + " and " + number2.toString$0(0) + " are incompatible.", J.get$span$z(nodesWithSpans[i]), number1.toString$0(0), A.LinkedHashMap_LinkedHashMap$_literal([J.get$span$z(nodesWithSpans[j]), number2.toString$0(0)], type$.FileSpan, type$.String), this._evaluate0$_stackTrace$1(J.get$span$z(nodesWithSpans[i])), null));
  101997. }
  101998. }
  101999. },
  102000. _evaluate0$_visitCalculationExpression$2$inLegacySassFunction(node, inLegacySassFunction) {
  102001. var result, t2, _0_0, _1_0, t3, _i, i, _this = this, _null = null, _box_0 = {},
  102002. t1 = node instanceof A.ParenthesizedExpression0,
  102003. inner = t1 ? node.expression : _null;
  102004. if (t1) {
  102005. result = _this._evaluate0$_visitCalculationExpression$2$inLegacySassFunction(inner, inLegacySassFunction);
  102006. return result instanceof A.SassString0 ? new A.SassString0("(" + result._string0$_text + ")", false) : result;
  102007. }
  102008. if (node instanceof A.StringExpression0 && node.accept$1(B.C_IsCalculationSafeVisitor0)) {
  102009. t1 = node.text;
  102010. t2 = t1.get$asPlain();
  102011. _0_0 = t2 == null ? _null : t2.toLowerCase();
  102012. $label0$0: {
  102013. if ("pi" === _0_0) {
  102014. t1 = A.SassNumber_SassNumber0(3.141592653589793, _null);
  102015. break $label0$0;
  102016. }
  102017. if ("e" === _0_0) {
  102018. t1 = A.SassNumber_SassNumber0(2.718281828459045, _null);
  102019. break $label0$0;
  102020. }
  102021. if ("infinity" === _0_0) {
  102022. t1 = A.SassNumber_SassNumber0(1 / 0, _null);
  102023. break $label0$0;
  102024. }
  102025. if ("-infinity" === _0_0) {
  102026. t1 = A.SassNumber_SassNumber0(-1 / 0, _null);
  102027. break $label0$0;
  102028. }
  102029. if ("nan" === _0_0) {
  102030. t1 = A.SassNumber_SassNumber0(0 / 0, _null);
  102031. break $label0$0;
  102032. }
  102033. t1 = new A.SassString0(_this._evaluate0$_performInterpolation$1(t1), false);
  102034. break $label0$0;
  102035. }
  102036. return t1;
  102037. }
  102038. _box_0.right = _box_0.left = _box_0.operator = null;
  102039. t1 = node instanceof A.BinaryOperationExpression0;
  102040. if (t1) {
  102041. _box_0.operator = node.operator;
  102042. _box_0.left = node.left;
  102043. _box_0.right = node.right;
  102044. }
  102045. if (t1) {
  102046. _this._evaluate0$_checkWhitespaceAroundCalculationOperator$1(node);
  102047. return _this._evaluate0$_addExceptionSpan$2(node, new A._EvaluateVisitor__visitCalculationExpression_closure1(_box_0, _this, node, inLegacySassFunction));
  102048. }
  102049. if (node instanceof A.NumberExpression0 || node instanceof A.VariableExpression0 || node instanceof A.FunctionExpression0 || node instanceof A.IfExpression0) {
  102050. _1_0 = node.accept$1(_this);
  102051. $label1$1: {
  102052. if (_1_0 instanceof A.SassNumber0) {
  102053. t1 = _1_0;
  102054. break $label1$1;
  102055. }
  102056. if (_1_0 instanceof A.SassCalculation0) {
  102057. t1 = _1_0;
  102058. break $label1$1;
  102059. }
  102060. if (_1_0 instanceof A.SassString0) {
  102061. t1 = !_1_0._string0$_hasQuotes;
  102062. result = _1_0;
  102063. } else {
  102064. result = _null;
  102065. t1 = false;
  102066. }
  102067. if (t1) {
  102068. t1 = result;
  102069. break $label1$1;
  102070. }
  102071. t1 = A.throwExpression(_this._evaluate0$_exception$2("Value " + _1_0.toString$0(0) + " can't be used in a calculation.", node.get$span(node)));
  102072. }
  102073. return t1;
  102074. }
  102075. if (node instanceof A.ListExpression0 && !node.hasBrackets && B.ListSeparator_nbm0 === node.separator && node.contents.length >= 2) {
  102076. t1 = A._setArrayType([], type$.JSArray_Object);
  102077. for (t2 = node.contents, t3 = t2.length, _i = 0; _i < t3; ++_i)
  102078. t1.push(_this._evaluate0$_visitCalculationExpression$2$inLegacySassFunction(t2[_i], inLegacySassFunction));
  102079. _this._evaluate0$_checkAdjacentCalculationValues$2(t1, node);
  102080. for (i = 0; i < t1.length; ++i) {
  102081. t3 = t1[i];
  102082. if (t3 instanceof A.CalculationOperation0 && t2[i] instanceof A.ParenthesizedExpression0)
  102083. t1[i] = new A.SassString0("(" + A.S(t3) + ")", false);
  102084. }
  102085. return new A.SassString0(B.JSArray_methods.join$1(t1, " "), false);
  102086. }
  102087. throw A.wrapException(_this._evaluate0$_exception$2(string$.This_e, node.get$span(node)));
  102088. },
  102089. _evaluate0$_checkWhitespaceAroundCalculationOperator$1(node) {
  102090. var t2, t3, t4, textBetweenOperands, first, last,
  102091. t1 = node.operator;
  102092. if (t1 !== B.BinaryOperator_u150 && t1 !== B.BinaryOperator_SjO0)
  102093. return;
  102094. t1 = node.left;
  102095. t2 = t1.get$span(t1);
  102096. t2 = t2.get$file(t2);
  102097. t3 = node.right;
  102098. t4 = t3.get$span(t3);
  102099. if (t2 !== t4.get$file(t4))
  102100. return;
  102101. t2 = t1.get$span(t1);
  102102. t2 = t2.get$end(t2);
  102103. t4 = t3.get$span(t3);
  102104. if (t2.offset >= t4.get$start(t4).offset)
  102105. return;
  102106. t2 = t1.get$span(t1);
  102107. t2 = t2.get$file(t2);
  102108. t1 = t1.get$span(t1);
  102109. t1 = t1.get$end(t1);
  102110. t3 = t3.get$span(t3);
  102111. textBetweenOperands = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t2._decodedChars, t1.offset, t3.get$start(t3).offset), 0, null);
  102112. first = textBetweenOperands.charCodeAt(0);
  102113. last = textBetweenOperands.charCodeAt(textBetweenOperands.length - 1);
  102114. if (first === 32 || first === 9 || first === 10 || first === 13 || first === 12 || first === 47)
  102115. t1 = !(last === 32 || last === 9 || last === 10 || last === 13 || last === 12 || last === 47);
  102116. else
  102117. t1 = true;
  102118. if (t1)
  102119. throw A.wrapException(this._evaluate0$_exception$2(string$.x22x2b__an, node.get$operatorSpan()));
  102120. },
  102121. _evaluate0$_binaryOperatorToCalculationOperator$2(operator, node) {
  102122. var t1;
  102123. $label0$0: {
  102124. if (B.BinaryOperator_u150 === operator) {
  102125. t1 = B.CalculationOperator_g2q0;
  102126. break $label0$0;
  102127. }
  102128. if (B.BinaryOperator_SjO0 === operator) {
  102129. t1 = B.CalculationOperator_CxF0;
  102130. break $label0$0;
  102131. }
  102132. if (B.BinaryOperator_2No0 === operator) {
  102133. t1 = B.CalculationOperator_1710;
  102134. break $label0$0;
  102135. }
  102136. if (B.BinaryOperator_U770 === operator) {
  102137. t1 = B.CalculationOperator_Qf10;
  102138. break $label0$0;
  102139. }
  102140. t1 = A.throwExpression(this._evaluate0$_exception$2(string$.This_o, node.get$operatorSpan()));
  102141. }
  102142. return t1;
  102143. },
  102144. _evaluate0$_checkAdjacentCalculationValues$2(elements, node) {
  102145. var t1, i, t2, previous, current, previousNode, currentNode, _0_2;
  102146. for (t1 = elements.length, i = 1; i < t1; ++i) {
  102147. t2 = i - 1;
  102148. previous = elements[t2];
  102149. current = elements[i];
  102150. if (previous instanceof A.SassString0 || current instanceof A.SassString0)
  102151. continue;
  102152. t1 = node.contents;
  102153. previousNode = t1[t2];
  102154. currentNode = t1[i];
  102155. if (currentNode instanceof A.UnaryOperationExpression0) {
  102156. _0_2 = currentNode.operator;
  102157. if (B.UnaryOperator_AiQ0 !== _0_2)
  102158. t1 = B.UnaryOperator_cLp0 === _0_2;
  102159. else
  102160. t1 = true;
  102161. } else
  102162. t1 = false;
  102163. if (!t1)
  102164. t1 = currentNode instanceof A.NumberExpression0 && currentNode.value < 0;
  102165. else
  102166. t1 = true;
  102167. if (t1)
  102168. throw A.wrapException(this._evaluate0$_exception$2(string$.x22x2b__an, A.FileSpanExtension_subspan(currentNode.get$span(currentNode), 0, 1)));
  102169. else
  102170. throw A.wrapException(this._evaluate0$_exception$2("Missing math operator.", previousNode.get$span(previousNode).expand$1(0, currentNode.get$span(currentNode))));
  102171. }
  102172. },
  102173. visitInterpolatedFunctionExpression$1(_, node) {
  102174. var result, _this = this,
  102175. t1 = _this._evaluate0$_performInterpolation$1(node.name),
  102176. oldInFunction = _this._evaluate0$_inFunction;
  102177. _this._evaluate0$_inFunction = true;
  102178. result = _this._evaluate0$_addErrorSpan$2(node, new A._EvaluateVisitor_visitInterpolatedFunctionExpression_closure1(_this, node, new A.PlainCssCallable0(t1)));
  102179. _this._evaluate0$_inFunction = oldInFunction;
  102180. return result;
  102181. },
  102182. _evaluate0$_runUserDefinedCallable$1$4($arguments, callable, nodeWithSpan, run, $V) {
  102183. var oldCallable, result, _this = this,
  102184. evaluated = _this._evaluate0$_evaluateArguments$1($arguments),
  102185. $name = callable.declaration.name;
  102186. if ($name !== "@content")
  102187. $name += "()";
  102188. oldCallable = _this._evaluate0$_currentCallable;
  102189. _this._evaluate0$_currentCallable = callable;
  102190. result = _this._evaluate0$_withStackFrame$3($name, nodeWithSpan, new A._EvaluateVisitor__runUserDefinedCallable_closure1(_this, callable, evaluated, nodeWithSpan, run, $V));
  102191. _this._evaluate0$_currentCallable = oldCallable;
  102192. return result;
  102193. },
  102194. _evaluate0$_runFunctionCallable$3($arguments, callable, nodeWithSpan) {
  102195. var buffer, first, argument, restArg, rest, error, t1, t2, _i, t3, t4, exception, _this = this;
  102196. if (callable instanceof A.BuiltInCallable0)
  102197. return _this._evaluate0$_withoutSlash$2(_this._evaluate0$_runBuiltInCallable$3($arguments, callable, nodeWithSpan), nodeWithSpan);
  102198. else if (type$.UserDefinedCallable_Environment_2._is(callable))
  102199. return _this._evaluate0$_runUserDefinedCallable$1$4($arguments, callable, nodeWithSpan, new A._EvaluateVisitor__runFunctionCallable_closure1(_this, callable), type$.Value_2);
  102200. else if (callable instanceof A.PlainCssCallable0) {
  102201. t1 = $arguments.named;
  102202. if (t1.get$isNotEmpty(t1) || $arguments.keywordRest != null)
  102203. throw A.wrapException(_this._evaluate0$_exception$2(string$.Plain_, nodeWithSpan.get$span(nodeWithSpan)));
  102204. buffer = new A.StringBuffer(callable.name + "(");
  102205. try {
  102206. first = true;
  102207. for (t1 = $arguments.positional, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  102208. argument = t1[_i];
  102209. if (first)
  102210. first = false;
  102211. else
  102212. buffer._contents += ", ";
  102213. t3 = buffer;
  102214. t4 = argument;
  102215. t4 = _this._evaluate0$_serialize$3$quote(t4.accept$1(_this), t4, true);
  102216. t3._contents += t4;
  102217. }
  102218. restArg = $arguments.rest;
  102219. if (restArg != null) {
  102220. rest = restArg.accept$1(_this);
  102221. if (!first)
  102222. buffer._contents += ", ";
  102223. t1 = buffer;
  102224. t2 = _this._evaluate0$_serialize$2(rest, restArg);
  102225. t1._contents += t2;
  102226. }
  102227. } catch (exception) {
  102228. t1 = A.unwrapException(exception);
  102229. if (type$.SassRuntimeException_2._is(t1)) {
  102230. error = t1;
  102231. if (!B.JSString_methods.endsWith$1(error._span_exception$_message, "isn't a valid CSS value."))
  102232. throw exception;
  102233. throw A.wrapException(A.MultiSpanSassRuntimeException$0(error._span_exception$_message, J.get$span$z(error), "value", A.LinkedHashMap_LinkedHashMap$_literal([nodeWithSpan.get$span(nodeWithSpan), "unknown function treated as plain CSS"], type$.FileSpan, type$.String), J.get$trace$z(error), null));
  102234. } else
  102235. throw exception;
  102236. }
  102237. t1 = buffer;
  102238. t2 = A.Primitives_stringFromCharCode(41);
  102239. t1._contents += t2;
  102240. t2 = buffer._contents;
  102241. return new A.SassString0(t2.charCodeAt(0) == 0 ? t2 : t2, false);
  102242. } else
  102243. throw A.wrapException(A.ArgumentError$("Unknown callable type " + J.get$runtimeType$(callable).toString$0(0) + ".", null));
  102244. },
  102245. _evaluate0$_runBuiltInCallable$3($arguments, callable, nodeWithSpan) {
  102246. var result, error, stackTrace, namedSet, _0_0, declaredArguments, i, t1, argument, t2, t3, rest, argumentList, exception, _this = this, _box_0 = {},
  102247. evaluated = _this._evaluate0$_evaluateArguments$1($arguments),
  102248. oldCallableNode = _this._evaluate0$_callableNode;
  102249. _this._evaluate0$_callableNode = nodeWithSpan;
  102250. namedSet = new A.MapKeySet(evaluated._values[0], type$.MapKeySet_String);
  102251. _box_0.callback = _box_0.overload = null;
  102252. _0_0 = callable.callbackFor$2(evaluated._values[2].length, namedSet);
  102253. _box_0.overload = _0_0._0;
  102254. _box_0.callback = _0_0._1;
  102255. _this._evaluate0$_addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__runBuiltInCallable_closure5(_box_0, evaluated, namedSet));
  102256. declaredArguments = _box_0.overload.$arguments;
  102257. for (i = evaluated._values[2].length, t1 = declaredArguments.length; i < t1; ++i) {
  102258. argument = declaredArguments[i];
  102259. t2 = evaluated._values[2];
  102260. t3 = evaluated._values[0].remove$1(0, argument.name);
  102261. if (t3 == null) {
  102262. t3 = argument.defaultValue;
  102263. t3 = _this._evaluate0$_withoutSlash$2(t3.accept$1(_this), t3);
  102264. }
  102265. t2.push(t3);
  102266. }
  102267. if (_box_0.overload.restArgument != null) {
  102268. if (evaluated._values[2].length > t1) {
  102269. rest = B.JSArray_methods.sublist$1(evaluated._values[2], t1);
  102270. B.JSArray_methods.removeRange$2(evaluated._values[2], t1, evaluated._values[2].length);
  102271. } else
  102272. rest = B.List_empty20;
  102273. t1 = evaluated._values[0];
  102274. argumentList = A.SassArgumentList$0(rest, t1, evaluated._values[4] === B.ListSeparator_undecided_null_undecided0 ? B.ListSeparator_ECn0 : evaluated._values[4]);
  102275. evaluated._values[2].push(argumentList);
  102276. } else
  102277. argumentList = null;
  102278. result = null;
  102279. try {
  102280. result = _this._evaluate0$_addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__runBuiltInCallable_closure6(_box_0, evaluated));
  102281. } catch (exception) {
  102282. t1 = A.unwrapException(exception);
  102283. if (t1 instanceof A.SassException0)
  102284. throw exception;
  102285. else {
  102286. error = t1;
  102287. stackTrace = A.getTraceFromException(exception);
  102288. A.throwWithTrace0(_this._evaluate0$_exception$2(_this._evaluate0$_getErrorMessage$1(error), nodeWithSpan.get$span(nodeWithSpan)), error, stackTrace);
  102289. }
  102290. }
  102291. _this._evaluate0$_callableNode = oldCallableNode;
  102292. if (argumentList == null)
  102293. return result;
  102294. if (evaluated._values[0].__js_helper$_length === 0)
  102295. return result;
  102296. if (argumentList._argument_list$_wereKeywordsAccessed)
  102297. return result;
  102298. throw A.wrapException(A.MultiSpanSassRuntimeException$0("No " + A.pluralize0("argument", evaluated._values[0].get$keys(0).get$length(0), null) + " named " + A.toSentence0(evaluated._values[0].get$keys(0).map$1$1(0, new A._EvaluateVisitor__runBuiltInCallable_closure7(), type$.Object), "or") + ".", nodeWithSpan.get$span(nodeWithSpan), "invocation", A.LinkedHashMap_LinkedHashMap$_literal([_box_0.overload.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), _this._evaluate0$_stackTrace$1(nodeWithSpan.get$span(nodeWithSpan)), null));
  102299. },
  102300. _evaluate0$_evaluateArguments$1($arguments) {
  102301. var t1, t2, _i, expression, nodeForSpan, named, namedNodes, t3, t4, $name, value, restArgs, rest, restNodeForSpan, t5, separator, keywordRestArgs, keywordRest, keywordRestNodeForSpan, _this = this,
  102302. positional = A._setArrayType([], type$.JSArray_Value_2),
  102303. positionalNodes = A._setArrayType([], type$.JSArray_AstNode_2);
  102304. for (t1 = $arguments.positional, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  102305. expression = t1[_i];
  102306. nodeForSpan = _this._evaluate0$_expressionNode$1(expression);
  102307. positional.push(_this._evaluate0$_withoutSlash$2(expression.accept$1(_this), nodeForSpan));
  102308. positionalNodes.push(nodeForSpan);
  102309. }
  102310. t1 = type$.String;
  102311. named = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Value_2);
  102312. t2 = type$.AstNode_2;
  102313. namedNodes = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
  102314. for (t3 = A.MapExtensions_get_pairs0($arguments.named, t1, type$.Expression_2), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  102315. t4 = t3.get$current(t3);
  102316. $name = t4._0;
  102317. value = t4._1;
  102318. nodeForSpan = _this._evaluate0$_expressionNode$1(value);
  102319. named.$indexSet(0, $name, _this._evaluate0$_withoutSlash$2(value.accept$1(_this), nodeForSpan));
  102320. namedNodes.$indexSet(0, $name, nodeForSpan);
  102321. }
  102322. restArgs = $arguments.rest;
  102323. if (restArgs == null)
  102324. return new A._Record_5_named_namedNodes_positional_positionalNodes_separator([named, namedNodes, positional, positionalNodes, B.ListSeparator_undecided_null_undecided0]);
  102325. rest = restArgs.accept$1(_this);
  102326. restNodeForSpan = _this._evaluate0$_expressionNode$1(restArgs);
  102327. if (rest instanceof A.SassMap0) {
  102328. _this._evaluate0$_addRestMap$4(named, rest, restArgs, new A._EvaluateVisitor__evaluateArguments_closure7());
  102329. t3 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
  102330. for (t4 = rest._map0$_contents, t4 = J.get$iterator$ax(t4.get$keys(t4)), t5 = type$.SassString_2; t4.moveNext$0();)
  102331. t3.$indexSet(0, t5._as(t4.get$current(t4))._string0$_text, restNodeForSpan);
  102332. namedNodes.addAll$1(0, t3);
  102333. separator = B.ListSeparator_undecided_null_undecided0;
  102334. } else if (rest instanceof A.SassList0) {
  102335. t3 = rest._list1$_contents;
  102336. B.JSArray_methods.addAll$1(positional, new A.MappedListIterable(t3, new A._EvaluateVisitor__evaluateArguments_closure8(_this, restNodeForSpan), A._arrayInstanceType(t3)._eval$1("MappedListIterable<1,Value0>")));
  102337. B.JSArray_methods.addAll$1(positionalNodes, A.List_List$filled(t3.length, restNodeForSpan, false, t2));
  102338. separator = rest._list1$_separator;
  102339. if (rest instanceof A.SassArgumentList0) {
  102340. rest._argument_list$_wereKeywordsAccessed = true;
  102341. rest._argument_list$_keywords.forEach$1(0, new A._EvaluateVisitor__evaluateArguments_closure9(_this, named, restNodeForSpan, namedNodes));
  102342. }
  102343. } else {
  102344. positional.push(_this._evaluate0$_withoutSlash$2(rest, restNodeForSpan));
  102345. positionalNodes.push(restNodeForSpan);
  102346. separator = B.ListSeparator_undecided_null_undecided0;
  102347. }
  102348. keywordRestArgs = $arguments.keywordRest;
  102349. if (keywordRestArgs == null)
  102350. return new A._Record_5_named_namedNodes_positional_positionalNodes_separator([named, namedNodes, positional, positionalNodes, separator]);
  102351. keywordRest = keywordRestArgs.accept$1(_this);
  102352. keywordRestNodeForSpan = _this._evaluate0$_expressionNode$1(keywordRestArgs);
  102353. if (keywordRest instanceof A.SassMap0) {
  102354. _this._evaluate0$_addRestMap$4(named, keywordRest, keywordRestArgs, new A._EvaluateVisitor__evaluateArguments_closure10());
  102355. t1 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
  102356. for (t2 = keywordRest._map0$_contents, t2 = J.get$iterator$ax(t2.get$keys(t2)), t3 = type$.SassString_2; t2.moveNext$0();)
  102357. t1.$indexSet(0, t3._as(t2.get$current(t2))._string0$_text, keywordRestNodeForSpan);
  102358. namedNodes.addAll$1(0, t1);
  102359. return new A._Record_5_named_namedNodes_positional_positionalNodes_separator([named, namedNodes, positional, positionalNodes, separator]);
  102360. } else
  102361. throw A.wrapException(_this._evaluate0$_exception$2(string$.Variabs + keywordRest.toString$0(0) + ").", keywordRestArgs.get$span(keywordRestArgs)));
  102362. },
  102363. _evaluate0$_evaluateMacroArguments$1(invocation) {
  102364. var t2, positional, named, rest, restNodeForSpan, keywordRestArgs_, keywordRest, keywordRestNodeForSpan, _this = this,
  102365. t1 = invocation.$arguments,
  102366. restArgs_ = t1.rest;
  102367. if (restArgs_ == null)
  102368. return new A._Record_2(t1.positional, t1.named);
  102369. t2 = t1.positional;
  102370. positional = A._setArrayType(t2.slice(0), A._arrayInstanceType(t2));
  102371. named = A.LinkedHashMap_LinkedHashMap$of(t1.named, type$.String, type$.Expression_2);
  102372. rest = restArgs_.accept$1(_this);
  102373. restNodeForSpan = _this._evaluate0$_expressionNode$1(restArgs_);
  102374. if (rest instanceof A.SassMap0)
  102375. _this._evaluate0$_addRestMap$4(named, rest, invocation, new A._EvaluateVisitor__evaluateMacroArguments_closure7(restArgs_));
  102376. else if (rest instanceof A.SassList0) {
  102377. t2 = rest._list1$_contents;
  102378. B.JSArray_methods.addAll$1(positional, new A.MappedListIterable(t2, new A._EvaluateVisitor__evaluateMacroArguments_closure8(_this, restNodeForSpan, restArgs_), A._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Expression0>")));
  102379. if (rest instanceof A.SassArgumentList0) {
  102380. rest._argument_list$_wereKeywordsAccessed = true;
  102381. rest._argument_list$_keywords.forEach$1(0, new A._EvaluateVisitor__evaluateMacroArguments_closure9(_this, named, restNodeForSpan, restArgs_));
  102382. }
  102383. } else
  102384. positional.push(new A.ValueExpression0(_this._evaluate0$_withoutSlash$2(rest, restNodeForSpan), restArgs_.get$span(restArgs_)));
  102385. keywordRestArgs_ = t1.keywordRest;
  102386. if (keywordRestArgs_ == null)
  102387. return new A._Record_2(positional, named);
  102388. keywordRest = keywordRestArgs_.accept$1(_this);
  102389. keywordRestNodeForSpan = _this._evaluate0$_expressionNode$1(keywordRestArgs_);
  102390. if (keywordRest instanceof A.SassMap0) {
  102391. _this._evaluate0$_addRestMap$4(named, keywordRest, invocation, new A._EvaluateVisitor__evaluateMacroArguments_closure10(_this, keywordRestNodeForSpan, keywordRestArgs_));
  102392. return new A._Record_2(positional, named);
  102393. } else
  102394. throw A.wrapException(_this._evaluate0$_exception$2(string$.Variabs + keywordRest.toString$0(0) + ").", keywordRestArgs_.get$span(keywordRestArgs_)));
  102395. },
  102396. _evaluate0$_addRestMap$1$4(values, map, nodeWithSpan, convert) {
  102397. map._map0$_contents.forEach$1(0, new A._EvaluateVisitor__addRestMap_closure1(this, values, convert, this._evaluate0$_expressionNode$1(nodeWithSpan), map, nodeWithSpan));
  102398. },
  102399. _evaluate0$_addRestMap$4(values, map, nodeWithSpan, convert) {
  102400. return this._evaluate0$_addRestMap$1$4(values, map, nodeWithSpan, convert, type$.dynamic);
  102401. },
  102402. _evaluate0$_verifyArguments$4(positional, named, $arguments, nodeWithSpan) {
  102403. return this._evaluate0$_addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__verifyArguments_closure1($arguments, positional, named));
  102404. },
  102405. visitSelectorExpression$1(_, node) {
  102406. var t1 = this._evaluate0$_styleRuleIgnoringAtRoot;
  102407. t1 = t1 == null ? null : t1.originalSelector.get$asSassList();
  102408. return t1 == null ? B.C__SassNull0 : t1;
  102409. },
  102410. visitStringExpression$1(_, node) {
  102411. var t1, t2, t3, _i, value, t4, _0_0, text, _this = this,
  102412. oldInSupportsDeclaration = _this._evaluate0$_inSupportsDeclaration;
  102413. _this._evaluate0$_inSupportsDeclaration = false;
  102414. t1 = A._setArrayType([], type$.JSArray_String);
  102415. for (t2 = node.text.contents, t3 = t2.length, _i = 0; _i < t3; ++_i) {
  102416. value = t2[_i];
  102417. $label0$0: {
  102418. if (typeof value == "string") {
  102419. t4 = value;
  102420. break $label0$0;
  102421. }
  102422. if (value instanceof A.Expression0) {
  102423. _0_0 = value.accept$1(_this);
  102424. $label1$1: {
  102425. if (_0_0 instanceof A.SassString0) {
  102426. text = _0_0._string0$_text;
  102427. t4 = text;
  102428. break $label1$1;
  102429. }
  102430. t4 = _this._evaluate0$_serialize$3$quote(_0_0, value, false);
  102431. break $label1$1;
  102432. }
  102433. break $label0$0;
  102434. }
  102435. t4 = A.throwExpression(A.UnsupportedError$("Unknown interpolation value " + A.S(value)));
  102436. }
  102437. t1.push(t4);
  102438. }
  102439. t1 = B.JSArray_methods.join$0(t1);
  102440. _this._evaluate0$_inSupportsDeclaration = oldInSupportsDeclaration;
  102441. return new A.SassString0(t1, node.hasQuotes);
  102442. },
  102443. visitSupportsExpression$1(_, expression) {
  102444. return new A.SassString0(this._evaluate0$_visitSupportsCondition$1(expression.condition), false);
  102445. },
  102446. visitCssAtRule$1(node) {
  102447. var wasInKeyframes, wasInUnknownAtRule, t1, _this = this;
  102448. if (_this._evaluate0$_declarationName != null)
  102449. throw A.wrapException(_this._evaluate0$_exception$2(string$.At_rul, node.span));
  102450. if (node.isChildless) {
  102451. _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, "__parent").addChild$1(A.ModifiableCssAtRule$0(node.name, node.span, true, node.value));
  102452. return;
  102453. }
  102454. wasInKeyframes = _this._evaluate0$_inKeyframes;
  102455. wasInUnknownAtRule = _this._evaluate0$_inUnknownAtRule;
  102456. t1 = node.name;
  102457. if (A.unvendor0(t1.value) === "keyframes")
  102458. _this._evaluate0$_inKeyframes = true;
  102459. else
  102460. _this._evaluate0$_inUnknownAtRule = true;
  102461. _this._evaluate0$_withParent$2$4$scopeWhen$through(A.ModifiableCssAtRule$0(t1, node.span, false, node.value), new A._EvaluateVisitor_visitCssAtRule_closure3(_this, node), false, new A._EvaluateVisitor_visitCssAtRule_closure4(), type$.ModifiableCssAtRule_2, type$.Null);
  102462. _this._evaluate0$_inUnknownAtRule = wasInUnknownAtRule;
  102463. _this._evaluate0$_inKeyframes = wasInKeyframes;
  102464. },
  102465. visitCssComment$1(node) {
  102466. var _this = this,
  102467. _s8_ = "__parent",
  102468. _s13_ = "_endOfImports";
  102469. if (_this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_) === _this._evaluate0$_assertInModule$2(_this._evaluate0$__root, "_root") && _this._evaluate0$_assertInModule$2(_this._evaluate0$__endOfImports, _s13_) === J.get$length$asx(_this._evaluate0$_assertInModule$2(_this._evaluate0$__root, "_root").children._collection$_source))
  102470. _this._evaluate0$__endOfImports = _this._evaluate0$_assertInModule$2(_this._evaluate0$__endOfImports, _s13_) + 1;
  102471. _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_).addChild$1(new A.ModifiableCssComment0(node.text, node.span));
  102472. },
  102473. visitCssDeclaration$1(node) {
  102474. this._evaluate0$_assertInModule$2(this._evaluate0$__parent, "__parent").addChild$1(A.ModifiableCssDeclaration$0(node.name, node.value, node.span, null, node.parsedAsCustomProperty, null, node.valueSpanForMap));
  102475. },
  102476. visitCssImport$1(node) {
  102477. var t1, _this = this,
  102478. _s8_ = "__parent",
  102479. _s5_ = "_root",
  102480. _s13_ = "_endOfImports",
  102481. modifiableNode = new A.ModifiableCssImport0(node.url, node.modifiers, node.span);
  102482. if (_this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_) !== _this._evaluate0$_assertInModule$2(_this._evaluate0$__root, _s5_))
  102483. _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_).addChild$1(modifiableNode);
  102484. else if (_this._evaluate0$_assertInModule$2(_this._evaluate0$__endOfImports, _s13_) === J.get$length$asx(_this._evaluate0$_assertInModule$2(_this._evaluate0$__root, _s5_).children._collection$_source)) {
  102485. _this._evaluate0$_assertInModule$2(_this._evaluate0$__root, _s5_).addChild$1(modifiableNode);
  102486. _this._evaluate0$__endOfImports = _this._evaluate0$_assertInModule$2(_this._evaluate0$__endOfImports, _s13_) + 1;
  102487. } else {
  102488. t1 = _this._evaluate0$_outOfOrderImports;
  102489. (t1 == null ? _this._evaluate0$_outOfOrderImports = A._setArrayType([], type$.JSArray_ModifiableCssImport_2) : t1).push(modifiableNode);
  102490. }
  102491. },
  102492. visitCssKeyframeBlock$1(node) {
  102493. this._evaluate0$_withParent$2$4$scopeWhen$through(A.ModifiableCssKeyframeBlock$0(node.selector, node.span), new A._EvaluateVisitor_visitCssKeyframeBlock_closure3(this, node), false, new A._EvaluateVisitor_visitCssKeyframeBlock_closure4(), type$.ModifiableCssKeyframeBlock_2, type$.Null);
  102494. },
  102495. visitCssMediaRule$1(node) {
  102496. var mergedQueries, t1, mergedSources, t2, t3, _this = this;
  102497. if (_this._evaluate0$_declarationName != null)
  102498. throw A.wrapException(_this._evaluate0$_exception$2(string$.Media_, node.span));
  102499. mergedQueries = A.NullableExtension_andThen0(_this._evaluate0$_mediaQueries, new A._EvaluateVisitor_visitCssMediaRule_closure5(_this, node));
  102500. t1 = mergedQueries == null;
  102501. if (!t1 && J.get$isEmpty$asx(mergedQueries))
  102502. return;
  102503. if (t1)
  102504. mergedSources = B.Set_empty5;
  102505. else {
  102506. t2 = _this._evaluate0$_mediaQuerySources;
  102507. t2.toString;
  102508. t2 = A.LinkedHashSet_LinkedHashSet$of(t2, type$.CssMediaQuery_2);
  102509. t3 = _this._evaluate0$_mediaQueries;
  102510. t3.toString;
  102511. t2.addAll$1(0, t3);
  102512. t2.addAll$1(0, node.queries);
  102513. mergedSources = t2;
  102514. }
  102515. t1 = t1 ? node.queries : mergedQueries;
  102516. _this._evaluate0$_withParent$2$4$scopeWhen$through(A.ModifiableCssMediaRule$0(t1, node.span), new A._EvaluateVisitor_visitCssMediaRule_closure6(_this, mergedQueries, node, mergedSources), false, new A._EvaluateVisitor_visitCssMediaRule_closure7(mergedSources), type$.ModifiableCssMediaRule_2, type$.Null);
  102517. },
  102518. visitCssStyleRule$1(node) {
  102519. var t1, styleRule, t2, nest, t3, originalSelector, rule, oldAtRootExcludingStyleRule, _0_1, lastChild, _this = this, _null = null,
  102520. _s8_ = "__parent";
  102521. if (_this._evaluate0$_declarationName != null)
  102522. throw A.wrapException(_this._evaluate0$_exception$2(string$.Style_n, node.span));
  102523. else if (_this._evaluate0$_inKeyframes && _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_) instanceof A.ModifiableCssKeyframeBlock0)
  102524. throw A.wrapException(_this._evaluate0$_exception$2(string$.Style_k, node.span));
  102525. t1 = _this._evaluate0$_atRootExcludingStyleRule;
  102526. styleRule = t1 ? _null : _this._evaluate0$_styleRuleIgnoringAtRoot;
  102527. t2 = t1 ? _null : _this._evaluate0$_styleRuleIgnoringAtRoot;
  102528. t2 = t2 == null ? _null : t2.fromPlainCss;
  102529. nest = t2 !== true;
  102530. t2 = node._style_rule0$_selector._box0$_inner;
  102531. if (nest) {
  102532. t2 = t2.value;
  102533. t3 = styleRule == null ? _null : styleRule.originalSelector;
  102534. originalSelector = t2.nestWithin$3$implicitParent$preserveParentSelectors(t3, !t1, node.fromPlainCss);
  102535. } else
  102536. originalSelector = t2.value;
  102537. rule = A.ModifiableCssStyleRule$0(_this._evaluate0$_assertInModule$2(_this._evaluate0$__extensionStore, "_extensionStore").addSelector$2(originalSelector, _this._evaluate0$_mediaQueries), node.span, node.fromPlainCss, originalSelector);
  102538. oldAtRootExcludingStyleRule = _this._evaluate0$_atRootExcludingStyleRule;
  102539. _this._evaluate0$_atRootExcludingStyleRule = false;
  102540. t1 = nest ? new A._EvaluateVisitor_visitCssStyleRule_closure3() : _null;
  102541. _this._evaluate0$_withParent$2$4$scopeWhen$through(rule, new A._EvaluateVisitor_visitCssStyleRule_closure4(_this, rule, node), false, t1, type$.ModifiableCssStyleRule_2, type$.Null);
  102542. _this._evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  102543. t1 = _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, _s8_).children._collection$_source;
  102544. t2 = J.getInterceptor$asx(t1);
  102545. _0_1 = t2.get$length(t1);
  102546. if (_0_1 >= 1) {
  102547. lastChild = t2.elementAt$1(t1, _0_1 - 1);
  102548. t1 = styleRule == null;
  102549. } else {
  102550. lastChild = _null;
  102551. t1 = false;
  102552. }
  102553. if (t1)
  102554. lastChild.isGroupEnd = true;
  102555. },
  102556. visitCssStylesheet$1(node) {
  102557. var t1;
  102558. for (t1 = J.get$iterator$ax(node.get$children(node)); t1.moveNext$0();)
  102559. t1.get$current(t1).accept$1(this);
  102560. },
  102561. visitCssSupportsRule$1(node) {
  102562. var _this = this;
  102563. if (_this._evaluate0$_declarationName != null)
  102564. throw A.wrapException(_this._evaluate0$_exception$2(string$.Suppor, node.span));
  102565. _this._evaluate0$_withParent$2$4$scopeWhen$through(A.ModifiableCssSupportsRule$0(node.condition, node.span), new A._EvaluateVisitor_visitCssSupportsRule_closure3(_this, node), false, new A._EvaluateVisitor_visitCssSupportsRule_closure4(), type$.ModifiableCssSupportsRule_2, type$.Null);
  102566. },
  102567. _evaluate0$_handleReturn$1$2(list, callback) {
  102568. var t1, _i, _0_0;
  102569. for (t1 = list.length, _i = 0; _i < list.length; list.length === t1 || (0, A.throwConcurrentModificationError)(list), ++_i) {
  102570. _0_0 = callback.call$1(list[_i]);
  102571. if (_0_0 != null)
  102572. return _0_0;
  102573. }
  102574. return null;
  102575. },
  102576. _evaluate0$_handleReturn$2(list, callback) {
  102577. return this._evaluate0$_handleReturn$1$2(list, callback, type$.dynamic);
  102578. },
  102579. _evaluate0$_withEnvironment$1$2(environment, callback) {
  102580. var result,
  102581. oldEnvironment = this._evaluate0$_environment;
  102582. this._evaluate0$_environment = environment;
  102583. result = callback.call$0();
  102584. this._evaluate0$_environment = oldEnvironment;
  102585. return result;
  102586. },
  102587. _evaluate0$_withEnvironment$2(environment, callback) {
  102588. return this._evaluate0$_withEnvironment$1$2(environment, callback, type$.dynamic);
  102589. },
  102590. _evaluate0$_interpolationToValue$3$trim$warnForColor(interpolation, trim, warnForColor) {
  102591. var result = this._evaluate0$_performInterpolation$2$warnForColor(interpolation, warnForColor),
  102592. t1 = trim ? A.trimAscii0(result, true) : result;
  102593. return new A.CssValue0(t1, interpolation.span, type$.CssValue_String_2);
  102594. },
  102595. _evaluate0$_interpolationToValue$1(interpolation) {
  102596. return this._evaluate0$_interpolationToValue$3$trim$warnForColor(interpolation, false, false);
  102597. },
  102598. _evaluate0$_interpolationToValue$2$warnForColor(interpolation, warnForColor) {
  102599. return this._evaluate0$_interpolationToValue$3$trim$warnForColor(interpolation, false, warnForColor);
  102600. },
  102601. _evaluate0$_performInterpolation$2$warnForColor(interpolation, warnForColor) {
  102602. return this._evaluate0$_performInterpolationHelper$3$sourceMap$warnForColor(interpolation, false, warnForColor)._0;
  102603. },
  102604. _evaluate0$_performInterpolation$1(interpolation) {
  102605. return this._evaluate0$_performInterpolation$2$warnForColor(interpolation, false);
  102606. },
  102607. _evaluate0$_performInterpolationWithMap$2$warnForColor(interpolation, warnForColor) {
  102608. var _0_0 = this._evaluate0$_performInterpolationHelper$3$sourceMap$warnForColor(interpolation, true, true),
  102609. map = _0_0._1;
  102610. map.toString;
  102611. return new A._Record_2(_0_0._0, map);
  102612. },
  102613. _evaluate0$_performInterpolationHelper$3$sourceMap$warnForColor(interpolation, sourceMap, warnForColor) {
  102614. var t1, t2, t3, t4, t5, t6, first, _i, t7, value, result, result0, t8, _this = this, _null = null,
  102615. targetLocations = sourceMap ? A._setArrayType([], type$.JSArray_SourceLocation) : _null,
  102616. oldInSupportsDeclaration = _this._evaluate0$_inSupportsDeclaration;
  102617. _this._evaluate0$_inSupportsDeclaration = false;
  102618. for (t1 = interpolation.contents, t2 = t1.length, t3 = type$.Expression_2, t4 = targetLocations == null, t5 = interpolation.span, t6 = type$.Object, first = true, _i = 0, t7 = ""; _i < t2; ++_i, first = false) {
  102619. value = t1[_i];
  102620. if (!first)
  102621. if (!t4)
  102622. targetLocations.push(A.SourceLocation$(t7.length, _null, _null, _null));
  102623. if (typeof value == "string") {
  102624. t7 += value;
  102625. continue;
  102626. }
  102627. t3._as(value);
  102628. result = value.accept$1(_this);
  102629. if (warnForColor && $.$get$namesByColor0().containsKey$1(result)) {
  102630. result0 = A.List_List$from([""], false, t6);
  102631. result0.fixed$length = Array;
  102632. result0.immutable$list = Array;
  102633. t8 = $.$get$namesByColor0();
  102634. _this._evaluate0$_warn$2(string$.You_pr + A.S(t8.$index(0, result)) + string$.x20in_in + result.toString$0(0) + string$.x2c_whicw + A.S(t8.$index(0, result)) + string$.x22x29__If + new A.BinaryOperationExpression0(B.BinaryOperator_u150, new A.StringExpression0(new A.Interpolation0(result0, B.List_null, t5), true), value, false).toString$0(0) + "'.", value.get$span(value));
  102635. }
  102636. t7 += _this._evaluate0$_serialize$3$quote(result, value, false);
  102637. }
  102638. _this._evaluate0$_inSupportsDeclaration = oldInSupportsDeclaration;
  102639. return new A._Record_2(t7.charCodeAt(0) == 0 ? t7 : t7, A.NullableExtension_andThen0(targetLocations, new A._EvaluateVisitor__performInterpolationHelper_closure1(interpolation)));
  102640. },
  102641. _evaluate0$_serialize$3$quote(value, nodeWithSpan, quote) {
  102642. return this._evaluate0$_addExceptionSpan$2(nodeWithSpan, new A._EvaluateVisitor__serialize_closure1(value, quote));
  102643. },
  102644. _evaluate0$_serialize$2(value, nodeWithSpan) {
  102645. return this._evaluate0$_serialize$3$quote(value, nodeWithSpan, true);
  102646. },
  102647. _evaluate0$_expressionNode$1(expression) {
  102648. var t1;
  102649. if (expression instanceof A.VariableExpression0) {
  102650. t1 = this._evaluate0$_addExceptionSpan$2(expression, new A._EvaluateVisitor__expressionNode_closure1(this, expression));
  102651. return t1 == null ? expression : t1;
  102652. } else
  102653. return expression;
  102654. },
  102655. _evaluate0$_withParent$2$4$scopeWhen$through(node, callback, scopeWhen, through, $S, $T) {
  102656. var t1, result, _this = this;
  102657. _this._evaluate0$_addChild$2$through(node, through);
  102658. t1 = _this._evaluate0$_assertInModule$2(_this._evaluate0$__parent, "__parent");
  102659. _this._evaluate0$__parent = node;
  102660. result = _this._evaluate0$_environment.scope$1$2$when(callback, scopeWhen, $T);
  102661. _this._evaluate0$__parent = t1;
  102662. return result;
  102663. },
  102664. _evaluate0$_withParent$2$3$scopeWhen(node, callback, scopeWhen, $S, $T) {
  102665. return this._evaluate0$_withParent$2$4$scopeWhen$through(node, callback, scopeWhen, null, $S, $T);
  102666. },
  102667. _evaluate0$_withParent$2$2(node, callback, $S, $T) {
  102668. return this._evaluate0$_withParent$2$4$scopeWhen$through(node, callback, true, null, $S, $T);
  102669. },
  102670. _evaluate0$_addChild$2$through(node, through) {
  102671. var _0_0, grandparent, t1,
  102672. $parent = this._evaluate0$_assertInModule$2(this._evaluate0$__parent, "__parent");
  102673. if (through != null) {
  102674. for (; through.call$1($parent); $parent = _0_0) {
  102675. _0_0 = $parent._node$_parent;
  102676. if (_0_0 == null)
  102677. throw A.wrapException(A.ArgumentError$(string$.throug + node.toString$0(0) + ".", null));
  102678. }
  102679. if ($parent.get$hasFollowingSibling()) {
  102680. grandparent = $parent._node$_parent;
  102681. t1 = grandparent.children;
  102682. if ($parent.equalsIgnoringChildren$1(t1.get$last(t1)))
  102683. $parent = type$.ModifiableCssParentNode_2._as(t1.get$last(t1));
  102684. else {
  102685. $parent = $parent.copyWithoutChildren$0();
  102686. grandparent.addChild$1($parent);
  102687. }
  102688. }
  102689. }
  102690. $parent.addChild$1(node);
  102691. },
  102692. _evaluate0$_addChild$1(node) {
  102693. return this._evaluate0$_addChild$2$through(node, null);
  102694. },
  102695. _evaluate0$_withStyleRule$1$2(rule, callback) {
  102696. var result,
  102697. oldRule = this._evaluate0$_styleRuleIgnoringAtRoot;
  102698. this._evaluate0$_styleRuleIgnoringAtRoot = rule;
  102699. result = callback.call$0();
  102700. this._evaluate0$_styleRuleIgnoringAtRoot = oldRule;
  102701. return result;
  102702. },
  102703. _evaluate0$_withStyleRule$2(rule, callback) {
  102704. return this._evaluate0$_withStyleRule$1$2(rule, callback, type$.dynamic);
  102705. },
  102706. _evaluate0$_withMediaQueries$1$3(queries, sources, callback) {
  102707. var result, _this = this,
  102708. oldMediaQueries = _this._evaluate0$_mediaQueries,
  102709. oldSources = _this._evaluate0$_mediaQuerySources;
  102710. _this._evaluate0$_mediaQueries = queries;
  102711. _this._evaluate0$_mediaQuerySources = sources;
  102712. result = callback.call$0();
  102713. _this._evaluate0$_mediaQueries = oldMediaQueries;
  102714. _this._evaluate0$_mediaQuerySources = oldSources;
  102715. return result;
  102716. },
  102717. _evaluate0$_withMediaQueries$3(queries, sources, callback) {
  102718. return this._evaluate0$_withMediaQueries$1$3(queries, sources, callback, type$.dynamic);
  102719. },
  102720. _evaluate0$_withStackFrame$1$3(member, nodeWithSpan, callback) {
  102721. var oldMember, result, _this = this,
  102722. t1 = _this._evaluate0$_stack;
  102723. t1.push(new A._Record_2(_this._evaluate0$_member, nodeWithSpan));
  102724. oldMember = _this._evaluate0$_member;
  102725. _this._evaluate0$_member = member;
  102726. result = callback.call$0();
  102727. _this._evaluate0$_member = oldMember;
  102728. t1.pop();
  102729. return result;
  102730. },
  102731. _evaluate0$_withStackFrame$3(member, nodeWithSpan, callback) {
  102732. return this._evaluate0$_withStackFrame$1$3(member, nodeWithSpan, callback, type$.dynamic);
  102733. },
  102734. _evaluate0$_withoutSlash$2(value, nodeForSpan) {
  102735. var t1;
  102736. if (value instanceof A.SassNumber0)
  102737. t1 = value.asSlash != null;
  102738. else
  102739. t1 = false;
  102740. if (t1)
  102741. this._evaluate0$_warn$3(string$.Using__i + A.S(new A._EvaluateVisitor__withoutSlash_recommendation1().call$1(value)) + string$.x0a_Morex20, nodeForSpan.get$span(nodeForSpan), B.Deprecation_q39);
  102742. return value.withoutSlash$0();
  102743. },
  102744. _evaluate0$_stackFrame$2(member, span) {
  102745. return A.frameForSpan0(span, member, A.NullableExtension_andThen0(span.get$sourceUrl(span), new A._EvaluateVisitor__stackFrame_closure1(this)));
  102746. },
  102747. _evaluate0$_stackTrace$1(span) {
  102748. var t2, t3, _i, t4, nodeWithSpan, _this = this,
  102749. t1 = A._setArrayType([], type$.JSArray_Frame);
  102750. for (t2 = _this._evaluate0$_stack, t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, A.throwConcurrentModificationError)(t2), ++_i) {
  102751. t4 = t2[_i];
  102752. nodeWithSpan = t4._1;
  102753. t1.push(_this._evaluate0$_stackFrame$2(t4._0, nodeWithSpan.get$span(nodeWithSpan)));
  102754. }
  102755. if (span != null)
  102756. t1.push(_this._evaluate0$_stackFrame$2(_this._evaluate0$_member, span));
  102757. return A.Trace$(new A.ReversedListIterable(t1, type$.ReversedListIterable_Frame), null);
  102758. },
  102759. _evaluate0$_stackTrace$0() {
  102760. return this._evaluate0$_stackTrace$1(null);
  102761. },
  102762. _evaluate0$_warn$3(message, span, deprecation) {
  102763. var t1, trace, _this = this;
  102764. if (_this._evaluate0$_quietDeps)
  102765. if (!_this._evaluate0$_inDependency) {
  102766. t1 = _this._evaluate0$_currentCallable;
  102767. t1 = t1 == null ? null : t1.inDependency;
  102768. t1 = t1 === true;
  102769. } else
  102770. t1 = true;
  102771. else
  102772. t1 = false;
  102773. if (t1)
  102774. return;
  102775. if (!_this._evaluate0$_warningsEmitted.add$1(0, new A._Record_2(message, span)))
  102776. return;
  102777. trace = _this._evaluate0$_stackTrace$1(span);
  102778. t1 = _this._evaluate0$_logger;
  102779. if (deprecation == null)
  102780. t1.warn$3$span$trace(0, message, span, trace);
  102781. else
  102782. A.WarnForDeprecation_warnForDeprecation0(t1, deprecation, message, span, trace);
  102783. },
  102784. _evaluate0$_warn$2(message, span) {
  102785. return this._evaluate0$_warn$3(message, span, null);
  102786. },
  102787. _evaluate0$_exception$2(message, span) {
  102788. var t1, t2;
  102789. if (span == null) {
  102790. t1 = B.JSArray_methods.get$last(this._evaluate0$_stack)._1;
  102791. t1 = t1.get$span(t1);
  102792. } else
  102793. t1 = span;
  102794. t2 = this._evaluate0$_stackTrace$1(span);
  102795. return new A.SassRuntimeException0(t2, B.Set_empty, message, t1);
  102796. },
  102797. _evaluate0$_exception$1(message) {
  102798. return this._evaluate0$_exception$2(message, null);
  102799. },
  102800. _evaluate0$_multiSpanException$3(message, primaryLabel, secondaryLabels) {
  102801. var t1 = B.JSArray_methods.get$last(this._evaluate0$_stack)._1;
  102802. return A.MultiSpanSassRuntimeException$0(message, t1.get$span(t1), primaryLabel, secondaryLabels, this._evaluate0$_stackTrace$0(), null);
  102803. },
  102804. _evaluate0$_addExceptionSpan$1$3$addStackFrame(nodeWithSpan, callback, addStackFrame) {
  102805. var error, stackTrace, t1, exception;
  102806. try {
  102807. t1 = callback.call$0();
  102808. return t1;
  102809. } catch (exception) {
  102810. t1 = A.unwrapException(exception);
  102811. if (t1 instanceof A.SassScriptException0) {
  102812. error = t1;
  102813. stackTrace = A.getTraceFromException(exception);
  102814. t1 = error.withSpan$1(nodeWithSpan.get$span(nodeWithSpan));
  102815. A.throwWithTrace0(t1.withTrace$1(this._evaluate0$_stackTrace$1(addStackFrame ? nodeWithSpan.get$span(nodeWithSpan) : null)), error, stackTrace);
  102816. } else
  102817. throw exception;
  102818. }
  102819. },
  102820. _evaluate0$_addExceptionSpan$2(nodeWithSpan, callback) {
  102821. return this._evaluate0$_addExceptionSpan$1$3$addStackFrame(nodeWithSpan, callback, true, type$.dynamic);
  102822. },
  102823. _evaluate0$_addExceptionSpan$3$addStackFrame(nodeWithSpan, callback, addStackFrame) {
  102824. return this._evaluate0$_addExceptionSpan$1$3$addStackFrame(nodeWithSpan, callback, addStackFrame, type$.dynamic);
  102825. },
  102826. _evaluate0$_addExceptionTrace$1$1(callback) {
  102827. var error, stackTrace, t1, exception, t2;
  102828. try {
  102829. t1 = callback.call$0();
  102830. return t1;
  102831. } catch (exception) {
  102832. t1 = A.unwrapException(exception);
  102833. if (type$.SassRuntimeException_2._is(t1))
  102834. throw exception;
  102835. else if (t1 instanceof A.SassException0) {
  102836. error = t1;
  102837. stackTrace = A.getTraceFromException(exception);
  102838. t1 = error;
  102839. t2 = J.getInterceptor$z(t1);
  102840. A.throwWithTrace0(error.withTrace$1(this._evaluate0$_stackTrace$1(A.SourceSpanException.prototype.get$span.call(t2, t1))), error, stackTrace);
  102841. } else
  102842. throw exception;
  102843. }
  102844. },
  102845. _evaluate0$_addExceptionTrace$1(callback) {
  102846. return this._evaluate0$_addExceptionTrace$1$1(callback, type$.dynamic);
  102847. },
  102848. _evaluate0$_addErrorSpan$1$2(nodeWithSpan, callback) {
  102849. var error, stackTrace, t1, exception, t2, t3;
  102850. try {
  102851. t1 = callback.call$0();
  102852. return t1;
  102853. } catch (exception) {
  102854. t1 = A.unwrapException(exception);
  102855. if (type$.SassRuntimeException_2._is(t1)) {
  102856. error = t1;
  102857. stackTrace = A.getTraceFromException(exception);
  102858. if (!B.JSString_methods.startsWith$1(J.get$span$z(error).get$text(), "@error"))
  102859. throw exception;
  102860. t1 = error._span_exception$_message;
  102861. t2 = nodeWithSpan.get$span(nodeWithSpan);
  102862. t3 = this._evaluate0$_stackTrace$0();
  102863. A.throwWithTrace0(new A.SassRuntimeException0(t3, B.Set_empty, t1, t2), error, stackTrace);
  102864. } else
  102865. throw exception;
  102866. }
  102867. },
  102868. _evaluate0$_addErrorSpan$2(nodeWithSpan, callback) {
  102869. return this._evaluate0$_addErrorSpan$1$2(nodeWithSpan, callback, type$.dynamic);
  102870. },
  102871. _evaluate0$_getErrorMessage$1(error) {
  102872. var t1, exception;
  102873. if (type$.Error._is(error))
  102874. return error.toString$0(0);
  102875. try {
  102876. t1 = A._asString(J.get$message$x(error));
  102877. return t1;
  102878. } catch (exception) {
  102879. t1 = J.toString$0$(error);
  102880. return t1;
  102881. }
  102882. },
  102883. $isExpressionVisitor: 1,
  102884. $isStatementVisitor: 1
  102885. };
  102886. A._EvaluateVisitor_closure25.prototype = {
  102887. call$1($arguments) {
  102888. var module, t2,
  102889. t1 = J.getInterceptor$asx($arguments),
  102890. variable = t1.$index($arguments, 0).assertString$1("name");
  102891. t1 = t1.$index($arguments, 1).get$realNull();
  102892. module = t1 == null ? null : t1.assertString$1("module");
  102893. t1 = this.$this._evaluate0$_environment;
  102894. t2 = A.stringReplaceAllUnchecked(variable._string0$_text, "_", "-");
  102895. return t1.globalVariableExists$2$namespace(t2, module == null ? null : module._string0$_text) ? B.SassBoolean_true0 : B.SassBoolean_false0;
  102896. },
  102897. $signature: 12
  102898. };
  102899. A._EvaluateVisitor_closure26.prototype = {
  102900. call$1($arguments) {
  102901. var variable = J.$index$asx($arguments, 0).assertString$1("name"),
  102902. t1 = this.$this._evaluate0$_environment;
  102903. return t1.getVariable$1(A.stringReplaceAllUnchecked(variable._string0$_text, "_", "-")) != null ? B.SassBoolean_true0 : B.SassBoolean_false0;
  102904. },
  102905. $signature: 12
  102906. };
  102907. A._EvaluateVisitor_closure27.prototype = {
  102908. call$1($arguments) {
  102909. var module, t2, t3, t4,
  102910. t1 = J.getInterceptor$asx($arguments),
  102911. variable = t1.$index($arguments, 0).assertString$1("name");
  102912. t1 = t1.$index($arguments, 1).get$realNull();
  102913. module = t1 == null ? null : t1.assertString$1("module");
  102914. t1 = this.$this;
  102915. t2 = t1._evaluate0$_environment;
  102916. t3 = variable._string0$_text;
  102917. t4 = A.stringReplaceAllUnchecked(t3, "_", "-");
  102918. return t2.getFunction$2$namespace(t4, module == null ? null : module._string0$_text) != null || t1._evaluate0$_builtInFunctions.containsKey$1(t3) ? B.SassBoolean_true0 : B.SassBoolean_false0;
  102919. },
  102920. $signature: 12
  102921. };
  102922. A._EvaluateVisitor_closure28.prototype = {
  102923. call$1($arguments) {
  102924. var module, t2,
  102925. t1 = J.getInterceptor$asx($arguments),
  102926. variable = t1.$index($arguments, 0).assertString$1("name");
  102927. t1 = t1.$index($arguments, 1).get$realNull();
  102928. module = t1 == null ? null : t1.assertString$1("module");
  102929. t1 = this.$this._evaluate0$_environment;
  102930. t2 = A.stringReplaceAllUnchecked(variable._string0$_text, "_", "-");
  102931. return t1.getMixin$2$namespace(t2, module == null ? null : module._string0$_text) != null ? B.SassBoolean_true0 : B.SassBoolean_false0;
  102932. },
  102933. $signature: 12
  102934. };
  102935. A._EvaluateVisitor_closure29.prototype = {
  102936. call$1($arguments) {
  102937. var t1 = this.$this._evaluate0$_environment;
  102938. if (!t1._environment0$_inMixin)
  102939. throw A.wrapException(A.SassScriptException$0(string$.conten, null));
  102940. return t1._environment0$_content != null ? B.SassBoolean_true0 : B.SassBoolean_false0;
  102941. },
  102942. $signature: 12
  102943. };
  102944. A._EvaluateVisitor_closure30.prototype = {
  102945. call$1($arguments) {
  102946. var t2, t3, t4,
  102947. t1 = J.$index$asx($arguments, 0).assertString$1("module")._string0$_text,
  102948. module = this.$this._evaluate0$_environment._environment0$_modules.$index(0, t1);
  102949. if (module == null)
  102950. throw A.wrapException('There is no module with namespace "' + t1 + '".');
  102951. t1 = type$.Value_2;
  102952. t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  102953. for (t3 = A.MapExtensions_get_pairs0(module.get$variables(), type$.String, t1), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  102954. t4 = t3.get$current(t3);
  102955. t2.$indexSet(0, new A.SassString0(t4._0, true), t4._1);
  102956. }
  102957. return new A.SassMap0(A.ConstantMap_ConstantMap$from(t2, t1, t1));
  102958. },
  102959. $signature: 36
  102960. };
  102961. A._EvaluateVisitor_closure31.prototype = {
  102962. call$1($arguments) {
  102963. var t2, t3, t4,
  102964. t1 = J.$index$asx($arguments, 0).assertString$1("module")._string0$_text,
  102965. module = this.$this._evaluate0$_environment._environment0$_modules.$index(0, t1);
  102966. if (module == null)
  102967. throw A.wrapException('There is no module with namespace "' + t1 + '".');
  102968. t1 = type$.Value_2;
  102969. t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  102970. for (t3 = A.MapExtensions_get_pairs0(module.get$functions(module), type$.String, type$.Callable_2), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  102971. t4 = t3.get$current(t3);
  102972. t2.$indexSet(0, new A.SassString0(t4._0, true), new A.SassFunction0(t4._1));
  102973. }
  102974. return new A.SassMap0(A.ConstantMap_ConstantMap$from(t2, t1, t1));
  102975. },
  102976. $signature: 36
  102977. };
  102978. A._EvaluateVisitor_closure32.prototype = {
  102979. call$1($arguments) {
  102980. var t2, t3, t4,
  102981. t1 = J.$index$asx($arguments, 0).assertString$1("module")._string0$_text,
  102982. module = this.$this._evaluate0$_environment._environment0$_modules.$index(0, t1);
  102983. if (module == null)
  102984. throw A.wrapException('There is no module with namespace "' + t1 + '".');
  102985. t1 = type$.Value_2;
  102986. t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  102987. for (t3 = A.MapExtensions_get_pairs0(module.get$mixins(), type$.String, type$.Callable_2), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  102988. t4 = t3.get$current(t3);
  102989. t2.$indexSet(0, new A.SassString0(t4._0, true), new A.SassMixin0(t4._1));
  102990. }
  102991. return new A.SassMap0(A.ConstantMap_ConstantMap$from(t2, t1, t1));
  102992. },
  102993. $signature: 36
  102994. };
  102995. A._EvaluateVisitor_closure33.prototype = {
  102996. call$1($arguments) {
  102997. var module, t2, callable,
  102998. t1 = J.getInterceptor$asx($arguments),
  102999. $name = t1.$index($arguments, 0).assertString$1("name"),
  103000. css = t1.$index($arguments, 1).get$isTruthy();
  103001. t1 = t1.$index($arguments, 2).get$realNull();
  103002. module = t1 == null ? null : t1.assertString$1("module");
  103003. if (css) {
  103004. if (module != null)
  103005. throw A.wrapException(string$.x24css_a);
  103006. return new A.SassFunction0(new A.PlainCssCallable0($name._string0$_text));
  103007. }
  103008. t1 = this.$this;
  103009. t2 = t1._evaluate0$_callableNode;
  103010. t2.toString;
  103011. callable = t1._evaluate0$_addExceptionSpan$2(t2, new A._EvaluateVisitor__closure10(t1, $name, module));
  103012. if (callable == null)
  103013. throw A.wrapException("Function not found: " + $name.toString$0(0));
  103014. return new A.SassFunction0(callable);
  103015. },
  103016. $signature: 169
  103017. };
  103018. A._EvaluateVisitor__closure10.prototype = {
  103019. call$0() {
  103020. var local,
  103021. normalizedName = A.stringReplaceAllUnchecked(this.name._string0$_text, "_", "-"),
  103022. t1 = this.module,
  103023. namespace = t1 == null ? null : t1._string0$_text;
  103024. t1 = this.$this;
  103025. local = t1._evaluate0$_environment.getFunction$2$namespace(normalizedName, namespace);
  103026. if (local != null || namespace != null)
  103027. return local;
  103028. return t1._evaluate0$_builtInFunctions.$index(0, normalizedName);
  103029. },
  103030. $signature: 109
  103031. };
  103032. A._EvaluateVisitor_closure34.prototype = {
  103033. call$1($arguments) {
  103034. var module, t2, callable,
  103035. t1 = J.getInterceptor$asx($arguments),
  103036. $name = t1.$index($arguments, 0).assertString$1("name");
  103037. t1 = t1.$index($arguments, 1).get$realNull();
  103038. module = t1 == null ? null : t1.assertString$1("module");
  103039. t1 = this.$this;
  103040. t2 = t1._evaluate0$_callableNode;
  103041. t2.toString;
  103042. callable = t1._evaluate0$_addExceptionSpan$2(t2, new A._EvaluateVisitor__closure9(t1, $name, module));
  103043. if (callable == null)
  103044. throw A.wrapException("Mixin not found: " + $name.toString$0(0));
  103045. return new A.SassMixin0(callable);
  103046. },
  103047. $signature: 171
  103048. };
  103049. A._EvaluateVisitor__closure9.prototype = {
  103050. call$0() {
  103051. var t1 = this.$this._evaluate0$_environment,
  103052. t2 = A.stringReplaceAllUnchecked(this.name._string0$_text, "_", "-"),
  103053. t3 = this.module;
  103054. return t1.getMixin$2$namespace(t2, t3 == null ? null : t3._string0$_text);
  103055. },
  103056. $signature: 109
  103057. };
  103058. A._EvaluateVisitor_closure35.prototype = {
  103059. call$1($arguments) {
  103060. var t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, invocation, callableNode, callable,
  103061. t1 = J.getInterceptor$asx($arguments),
  103062. $function = t1.$index($arguments, 0),
  103063. args = type$.SassArgumentList_2._as(t1.$index($arguments, 1));
  103064. t1 = this.$this;
  103065. t2 = t1._evaluate0$_callableNode;
  103066. t2.toString;
  103067. t3 = A._setArrayType([], type$.JSArray_Expression_2);
  103068. t4 = type$.String;
  103069. t5 = type$.Expression_2;
  103070. t6 = t2.get$span(t2);
  103071. t7 = t2.get$span(t2);
  103072. args._argument_list$_wereKeywordsAccessed = true;
  103073. t8 = args._argument_list$_keywords;
  103074. if (t8.get$isEmpty(t8))
  103075. t2 = null;
  103076. else {
  103077. t9 = type$.Value_2;
  103078. t10 = A.LinkedHashMap_LinkedHashMap$_empty(t9, t9);
  103079. for (args._argument_list$_wereKeywordsAccessed = true, t8 = A.MapExtensions_get_pairs0(t8, t4, t9), t8 = t8.get$iterator(t8); t8.moveNext$0();) {
  103080. t11 = t8.get$current(t8);
  103081. t10.$indexSet(0, new A.SassString0(t11._0, false), t11._1);
  103082. }
  103083. t2 = new A.ValueExpression0(new A.SassMap0(A.ConstantMap_ConstantMap$from(t10, t9, t9)), t2.get$span(t2));
  103084. }
  103085. invocation = new A.ArgumentInvocation0(A.List_List$unmodifiable(t3, t5), A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_empty(t4, t5), t4, t5), new A.ValueExpression0(args, t7), t2, t6);
  103086. if ($function instanceof A.SassString0) {
  103087. A.warnForDeprecation0(string$.Passina + $function.toString$0(0) + "))", B.Deprecation_U43);
  103088. callableNode = t1._evaluate0$_callableNode;
  103089. t2 = $function._string0$_text;
  103090. t3 = callableNode.get$span(callableNode);
  103091. return t1.visitFunctionExpression$1(0, new A.FunctionExpression0(null, A.stringReplaceAllUnchecked(t2, "_", "-"), t2, invocation, t3));
  103092. }
  103093. callable = $function.assertFunction$1("function").callable;
  103094. if (type$.Callable_2._is(callable)) {
  103095. t2 = t1._evaluate0$_callableNode;
  103096. t2.toString;
  103097. return t1._evaluate0$_runFunctionCallable$3(invocation, callable, t2);
  103098. } else
  103099. throw A.wrapException(A.SassScriptException$0("The function " + callable.get$name(callable) + string$.x20is_as, null));
  103100. },
  103101. $signature: 3
  103102. };
  103103. A._EvaluateVisitor_closure36.prototype = {
  103104. call$1($arguments) {
  103105. var withMap, t2, values, configuration, t3,
  103106. t1 = J.getInterceptor$asx($arguments),
  103107. url = A.Uri_parse(t1.$index($arguments, 0).assertString$1("url")._string0$_text);
  103108. t1 = t1.$index($arguments, 1).get$realNull();
  103109. withMap = t1 == null ? null : t1.assertMap$1("with")._map0$_contents;
  103110. t1 = this.$this;
  103111. t2 = t1._evaluate0$_callableNode;
  103112. t2.toString;
  103113. if (withMap != null) {
  103114. values = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, type$.ConfiguredValue_2);
  103115. withMap.forEach$1(0, new A._EvaluateVisitor__closure7(values, t2.get$span(t2), t2));
  103116. configuration = new A.ExplicitConfiguration0(t2, values, null);
  103117. } else
  103118. configuration = B.Configuration_Map_empty_null0;
  103119. t3 = t2.get$span(t2);
  103120. t1._evaluate0$_loadModule$7$baseUrl$configuration$namesInErrors(url, "load-css()", t2, new A._EvaluateVisitor__closure8(t1), t3.get$sourceUrl(t3), configuration, true);
  103121. t1._evaluate0$_assertConfigurationIsEmpty$2$nameInError(configuration, true);
  103122. },
  103123. $signature: 226
  103124. };
  103125. A._EvaluateVisitor__closure7.prototype = {
  103126. call$2(variable, value) {
  103127. var t1 = variable.assertString$1("with key"),
  103128. $name = A.stringReplaceAllUnchecked(t1._string0$_text, "_", "-");
  103129. t1 = this.values;
  103130. if (t1.containsKey$1($name))
  103131. throw A.wrapException("The variable $" + $name + " was configured twice.");
  103132. t1.$indexSet(0, $name, new A.ConfiguredValue0(value, this.span, this.callableNode));
  103133. },
  103134. $signature: 97
  103135. };
  103136. A._EvaluateVisitor__closure8.prototype = {
  103137. call$2(module, _) {
  103138. var t1 = this.$this;
  103139. return t1._evaluate0$_combineCss$2$clone(module, true).accept$1(t1);
  103140. },
  103141. $signature: 93
  103142. };
  103143. A._EvaluateVisitor_closure37.prototype = {
  103144. call$1($arguments) {
  103145. var callableNode, t2, t3, t4, t5, callable, $content,
  103146. t1 = J.getInterceptor$asx($arguments),
  103147. mixin = t1.$index($arguments, 0),
  103148. args = type$.SassArgumentList_2._as(t1.$index($arguments, 1));
  103149. t1 = this.$this;
  103150. callableNode = t1._evaluate0$_callableNode;
  103151. t2 = callableNode.get$span(callableNode);
  103152. t3 = callableNode.get$span(callableNode);
  103153. t4 = type$.Expression_2;
  103154. t5 = A.List_List$unmodifiable(B.List_empty21, t4);
  103155. t4 = A.ConstantMap_ConstantMap$from(B.Map_empty14, type$.String, t4);
  103156. callable = mixin.assertMixin$1("mixin").callable;
  103157. $content = t1._evaluate0$_environment._environment0$_content;
  103158. if (type$.Callable_2._is(callable))
  103159. t1._evaluate0$_applyMixin$5(callable, $content, new A.ArgumentInvocation0(t5, t4, new A.ValueExpression0(args, t3), null, t2), callableNode, callableNode);
  103160. else
  103161. throw A.wrapException(A.SassScriptException$0("The mixin " + callable.get$name(callable) + string$.x20is_as, null));
  103162. },
  103163. $signature: 226
  103164. };
  103165. A._EvaluateVisitor_run_closure1.prototype = {
  103166. call$0() {
  103167. var module, t2, _this = this,
  103168. t1 = _this.node,
  103169. _0_0 = t1.span.file.url,
  103170. url = null;
  103171. if (_0_0 != null) {
  103172. url = _0_0;
  103173. t2 = _this.$this;
  103174. t2._evaluate0$_activeModules.$indexSet(0, url, null);
  103175. if (!(t2._nodeImporter != null && J.toString$0$(url) === "stdin"))
  103176. t2._evaluate0$_loadedUrls.add$1(0, url);
  103177. }
  103178. t2 = _this.$this;
  103179. module = t2._evaluate0$_addExceptionTrace$1(new A._EvaluateVisitor_run__closure1(t2, _this.importer, t1));
  103180. return new A._Record_2_loadedUrls_stylesheet(t2._evaluate0$_loadedUrls, t2._evaluate0$_combineCss$1(module));
  103181. },
  103182. $signature: 456
  103183. };
  103184. A._EvaluateVisitor_run__closure1.prototype = {
  103185. call$0() {
  103186. return this.$this._evaluate0$_execute$2(this.importer, this.node);
  103187. },
  103188. $signature: 457
  103189. };
  103190. A._EvaluateVisitor__loadModule_closure3.prototype = {
  103191. call$0() {
  103192. return this.callback.call$2(this._box_1.builtInModule, false);
  103193. },
  103194. $signature: 0
  103195. };
  103196. A._EvaluateVisitor__loadModule_closure4.prototype = {
  103197. call$0() {
  103198. var canonicalUrl, oldInDependency, t4, message, _this = this, t1 = {}, stylesheet = null, importer = null,
  103199. t2 = _this.$this,
  103200. t3 = _this.nodeWithSpan,
  103201. _1_0 = t2._evaluate0$_loadStylesheet$3$baseUrl(_this.url.toString$0(0), t3.get$span(t3), _this.baseUrl);
  103202. stylesheet = _1_0._0;
  103203. importer = _1_0._1;
  103204. canonicalUrl = stylesheet.span.file.url;
  103205. if (canonicalUrl != null) {
  103206. t4 = t2._evaluate0$_activeModules;
  103207. if (t4.containsKey$1(canonicalUrl)) {
  103208. if (_this.namesInErrors) {
  103209. t1 = canonicalUrl;
  103210. t3 = $.$get$context();
  103211. t1.toString;
  103212. message = "Module loop: " + t3.prettyUri$1(t1) + " is already being loaded.";
  103213. } else
  103214. message = string$.Modulel;
  103215. t1 = A.NullableExtension_andThen0(t4.$index(0, canonicalUrl), new A._EvaluateVisitor__loadModule__closure3(t2, message));
  103216. throw A.wrapException(t1 == null ? t2._evaluate0$_exception$1(message) : t1);
  103217. } else
  103218. t4.$indexSet(0, canonicalUrl, t3);
  103219. }
  103220. t4 = t2._evaluate0$_modules.containsKey$1(canonicalUrl);
  103221. oldInDependency = t2._evaluate0$_inDependency;
  103222. t2._evaluate0$_inDependency = _1_0._2;
  103223. t1.module = null;
  103224. try {
  103225. t1.module = t2._evaluate0$_execute$5$configuration$namesInErrors$nodeWithSpan(importer, stylesheet, _this.configuration, _this.namesInErrors, t3);
  103226. } finally {
  103227. t2._evaluate0$_activeModules.remove$1(0, canonicalUrl);
  103228. t2._evaluate0$_inDependency = oldInDependency;
  103229. }
  103230. t2._evaluate0$_addExceptionSpan$3$addStackFrame(t3, new A._EvaluateVisitor__loadModule__closure4(t1, _this.callback, !t4), false);
  103231. },
  103232. $signature: 1
  103233. };
  103234. A._EvaluateVisitor__loadModule__closure3.prototype = {
  103235. call$1(previousLoad) {
  103236. return this.$this._evaluate0$_multiSpanException$3(this.message, "new load", A.LinkedHashMap_LinkedHashMap$_literal([previousLoad.get$span(previousLoad), "original load"], type$.FileSpan, type$.String));
  103237. },
  103238. $signature: 98
  103239. };
  103240. A._EvaluateVisitor__loadModule__closure4.prototype = {
  103241. call$0() {
  103242. return this.callback.call$2(this._box_0.module, this.firstLoad);
  103243. },
  103244. $signature: 0
  103245. };
  103246. A._EvaluateVisitor__execute_closure1.prototype = {
  103247. call$0() {
  103248. var t3, t4, t5, t6, _this = this,
  103249. t1 = _this.$this,
  103250. oldImporter = t1._evaluate0$_importer,
  103251. oldStylesheet = t1._evaluate0$__stylesheet,
  103252. oldRoot = t1._evaluate0$__root,
  103253. oldPreModuleComments = t1._evaluate0$_preModuleComments,
  103254. oldParent = t1._evaluate0$__parent,
  103255. oldEndOfImports = t1._evaluate0$__endOfImports,
  103256. oldOutOfOrderImports = t1._evaluate0$_outOfOrderImports,
  103257. oldExtensionStore = t1._evaluate0$__extensionStore,
  103258. t2 = t1._evaluate0$_atRootExcludingStyleRule,
  103259. oldStyleRule = t2 ? null : t1._evaluate0$_styleRuleIgnoringAtRoot,
  103260. oldMediaQueries = t1._evaluate0$_mediaQueries,
  103261. oldDeclarationName = t1._evaluate0$_declarationName,
  103262. oldInUnknownAtRule = t1._evaluate0$_inUnknownAtRule,
  103263. oldInKeyframes = t1._evaluate0$_inKeyframes,
  103264. oldConfiguration = t1._evaluate0$_configuration;
  103265. t1._evaluate0$_importer = _this.importer;
  103266. t3 = t1._evaluate0$__stylesheet = _this.stylesheet;
  103267. t4 = t3.span;
  103268. t5 = t1._evaluate0$__parent = t1._evaluate0$__root = A.ModifiableCssStylesheet$0(t4);
  103269. t1._evaluate0$__endOfImports = 0;
  103270. t1._evaluate0$_outOfOrderImports = null;
  103271. t1._evaluate0$__extensionStore = _this.extensionStore;
  103272. t1._evaluate0$_declarationName = t1._evaluate0$_mediaQueries = t1._evaluate0$_styleRuleIgnoringAtRoot = null;
  103273. t1._evaluate0$_inKeyframes = t1._evaluate0$_atRootExcludingStyleRule = t1._evaluate0$_inUnknownAtRule = false;
  103274. t6 = _this.configuration;
  103275. if (t6 != null)
  103276. t1._evaluate0$_configuration = t6;
  103277. t1.visitStylesheet$1(0, t3);
  103278. t3 = t1._evaluate0$_outOfOrderImports == null ? t5 : new A.CssStylesheet0(new A.UnmodifiableListView(t1._evaluate0$_addOutOfOrderImports$0(), type$.UnmodifiableListView_CssNode_2), t4);
  103279. _this.css.__late_helper$_value = t3;
  103280. _this.preModuleComments.__late_helper$_value = t1._evaluate0$_preModuleComments;
  103281. t1._evaluate0$_importer = oldImporter;
  103282. t1._evaluate0$__stylesheet = oldStylesheet;
  103283. t1._evaluate0$__root = oldRoot;
  103284. t1._evaluate0$_preModuleComments = oldPreModuleComments;
  103285. t1._evaluate0$__parent = oldParent;
  103286. t1._evaluate0$__endOfImports = oldEndOfImports;
  103287. t1._evaluate0$_outOfOrderImports = oldOutOfOrderImports;
  103288. t1._evaluate0$__extensionStore = oldExtensionStore;
  103289. t1._evaluate0$_styleRuleIgnoringAtRoot = oldStyleRule;
  103290. t1._evaluate0$_mediaQueries = oldMediaQueries;
  103291. t1._evaluate0$_declarationName = oldDeclarationName;
  103292. t1._evaluate0$_inUnknownAtRule = oldInUnknownAtRule;
  103293. t1._evaluate0$_atRootExcludingStyleRule = t2;
  103294. t1._evaluate0$_inKeyframes = oldInKeyframes;
  103295. t1._evaluate0$_configuration = oldConfiguration;
  103296. },
  103297. $signature: 1
  103298. };
  103299. A._EvaluateVisitor__combineCss_closure3.prototype = {
  103300. call$1(module) {
  103301. return module.get$transitivelyContainsCss();
  103302. },
  103303. $signature: 127
  103304. };
  103305. A._EvaluateVisitor__combineCss_closure4.prototype = {
  103306. call$1(target) {
  103307. return !this.selectors.contains$1(0, target);
  103308. },
  103309. $signature: 14
  103310. };
  103311. A._EvaluateVisitor__combineCss_visitModule1.prototype = {
  103312. call$1(module) {
  103313. var t1, t2, t3, t4, _i, upstream, _1_0, statements, index, _this = this;
  103314. if (!_this.seen.add$1(0, module))
  103315. return;
  103316. if (_this.clone)
  103317. module = module.cloneCss$0();
  103318. for (t1 = module.get$upstream(), t2 = t1.length, t3 = _this.css, t4 = _this.imports, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
  103319. upstream = t1[_i];
  103320. if (upstream.get$transitivelyContainsCss()) {
  103321. _1_0 = module.get$preModuleComments().$index(0, upstream);
  103322. if (_1_0 != null)
  103323. B.JSArray_methods.addAll$1(t3.length === 0 ? t4 : t3, _1_0);
  103324. _this.call$1(upstream);
  103325. }
  103326. }
  103327. _this.sorted.addFirst$1(module);
  103328. t1 = module.get$css(module);
  103329. statements = t1.get$children(t1);
  103330. index = _this.$this._evaluate0$_indexAfterImports$1(statements);
  103331. t1 = J.getInterceptor$ax(statements);
  103332. B.JSArray_methods.addAll$1(t4, t1.getRange$2(statements, 0, index));
  103333. B.JSArray_methods.addAll$1(t3, t1.getRange$2(statements, index, t1.get$length(statements)));
  103334. },
  103335. $signature: 458
  103336. };
  103337. A._EvaluateVisitor__extendModules_closure3.prototype = {
  103338. call$1(target) {
  103339. return !this.originalSelectors.contains$1(0, target);
  103340. },
  103341. $signature: 14
  103342. };
  103343. A._EvaluateVisitor__extendModules_closure4.prototype = {
  103344. call$0() {
  103345. return A._setArrayType([], type$.JSArray_ExtensionStore_2);
  103346. },
  103347. $signature: 167
  103348. };
  103349. A._EvaluateVisitor_visitAtRootRule_closure3.prototype = {
  103350. call$0() {
  103351. var t1, t2, t3, _i;
  103352. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  103353. t1[_i].accept$1(t3);
  103354. },
  103355. $signature: 1
  103356. };
  103357. A._EvaluateVisitor_visitAtRootRule_closure4.prototype = {
  103358. call$0() {
  103359. var t1, t2, t3, _i;
  103360. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  103361. t1[_i].accept$1(t3);
  103362. },
  103363. $signature: 0
  103364. };
  103365. A._EvaluateVisitor__scopeForAtRoot_closure11.prototype = {
  103366. call$1(callback) {
  103367. var t1 = this.$this,
  103368. t2 = t1._evaluate0$_assertInModule$2(t1._evaluate0$__parent, "__parent");
  103369. t1._evaluate0$__parent = this.newParent;
  103370. t1._evaluate0$_environment.scope$1$2$when(callback, this.node.hasDeclarations, type$.void);
  103371. t1._evaluate0$__parent = t2;
  103372. },
  103373. $signature: 35
  103374. };
  103375. A._EvaluateVisitor__scopeForAtRoot_closure12.prototype = {
  103376. call$1(callback) {
  103377. var t1 = this.$this,
  103378. oldAtRootExcludingStyleRule = t1._evaluate0$_atRootExcludingStyleRule;
  103379. t1._evaluate0$_atRootExcludingStyleRule = true;
  103380. this.innerScope.call$1(callback);
  103381. t1._evaluate0$_atRootExcludingStyleRule = oldAtRootExcludingStyleRule;
  103382. },
  103383. $signature: 35
  103384. };
  103385. A._EvaluateVisitor__scopeForAtRoot_closure13.prototype = {
  103386. call$1(callback) {
  103387. return this.$this._evaluate0$_withMediaQueries$3(null, null, new A._EvaluateVisitor__scopeForAtRoot__closure1(this.innerScope, callback));
  103388. },
  103389. $signature: 35
  103390. };
  103391. A._EvaluateVisitor__scopeForAtRoot__closure1.prototype = {
  103392. call$0() {
  103393. return this.innerScope.call$1(this.callback);
  103394. },
  103395. $signature: 1
  103396. };
  103397. A._EvaluateVisitor__scopeForAtRoot_closure14.prototype = {
  103398. call$1(callback) {
  103399. var t1 = this.$this,
  103400. wasInKeyframes = t1._evaluate0$_inKeyframes;
  103401. t1._evaluate0$_inKeyframes = false;
  103402. this.innerScope.call$1(callback);
  103403. t1._evaluate0$_inKeyframes = wasInKeyframes;
  103404. },
  103405. $signature: 35
  103406. };
  103407. A._EvaluateVisitor__scopeForAtRoot_closure15.prototype = {
  103408. call$1($parent) {
  103409. return $parent instanceof A.ModifiableCssAtRule0;
  103410. },
  103411. $signature: 175
  103412. };
  103413. A._EvaluateVisitor__scopeForAtRoot_closure16.prototype = {
  103414. call$1(callback) {
  103415. var t1 = this.$this,
  103416. wasInUnknownAtRule = t1._evaluate0$_inUnknownAtRule;
  103417. t1._evaluate0$_inUnknownAtRule = false;
  103418. this.innerScope.call$1(callback);
  103419. t1._evaluate0$_inUnknownAtRule = wasInUnknownAtRule;
  103420. },
  103421. $signature: 35
  103422. };
  103423. A._EvaluateVisitor_visitContentRule_closure1.prototype = {
  103424. call$0() {
  103425. var t1, t2, t3, _i;
  103426. for (t1 = this.content.declaration.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  103427. t1[_i].accept$1(t3);
  103428. return null;
  103429. },
  103430. $signature: 1
  103431. };
  103432. A._EvaluateVisitor_visitDeclaration_closure1.prototype = {
  103433. call$0() {
  103434. var t1, t2, t3, _i;
  103435. for (t1 = this._box_0.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  103436. t1[_i].accept$1(t3);
  103437. },
  103438. $signature: 1
  103439. };
  103440. A._EvaluateVisitor_visitEachRule_closure5.prototype = {
  103441. call$1(value) {
  103442. var t1 = this.$this,
  103443. t2 = this.nodeWithSpan;
  103444. return t1._evaluate0$_environment.setLocalVariable$3(this._box_0.variable, t1._evaluate0$_withoutSlash$2(value, t2), t2);
  103445. },
  103446. $signature: 61
  103447. };
  103448. A._EvaluateVisitor_visitEachRule_closure6.prototype = {
  103449. call$1(value) {
  103450. return this.$this._evaluate0$_setMultipleVariables$3(this._box_0.variables, value, this.nodeWithSpan);
  103451. },
  103452. $signature: 61
  103453. };
  103454. A._EvaluateVisitor_visitEachRule_closure7.prototype = {
  103455. call$0() {
  103456. var _this = this,
  103457. t1 = _this.$this;
  103458. return t1._evaluate0$_handleReturn$2(_this.list.get$asList(), new A._EvaluateVisitor_visitEachRule__closure1(t1, _this.setVariables, _this.node));
  103459. },
  103460. $signature: 44
  103461. };
  103462. A._EvaluateVisitor_visitEachRule__closure1.prototype = {
  103463. call$1(element) {
  103464. var t1;
  103465. this.setVariables.call$1(element);
  103466. t1 = this.$this;
  103467. return t1._evaluate0$_handleReturn$2(this.node.children, new A._EvaluateVisitor_visitEachRule___closure1(t1));
  103468. },
  103469. $signature: 228
  103470. };
  103471. A._EvaluateVisitor_visitEachRule___closure1.prototype = {
  103472. call$1(child) {
  103473. return child.accept$1(this.$this);
  103474. },
  103475. $signature: 91
  103476. };
  103477. A._EvaluateVisitor_visitAtRule_closure5.prototype = {
  103478. call$1(value) {
  103479. return this.$this._evaluate0$_interpolationToValue$3$trim$warnForColor(value, true, true);
  103480. },
  103481. $signature: 461
  103482. };
  103483. A._EvaluateVisitor_visitAtRule_closure6.prototype = {
  103484. call$0() {
  103485. var t2, t3, _i, _this = this,
  103486. t1 = _this.$this,
  103487. styleRule = t1._evaluate0$_atRootExcludingStyleRule ? null : t1._evaluate0$_styleRuleIgnoringAtRoot;
  103488. if (styleRule == null || t1._evaluate0$_inKeyframes || J.$eq$(_this.name.value, "font-face"))
  103489. for (t2 = _this.children, t3 = t2.length, _i = 0; _i < t3; ++_i)
  103490. t2[_i].accept$1(t1);
  103491. else
  103492. t1._evaluate0$_withParent$2$3$scopeWhen(A.ModifiableCssStyleRule$0(styleRule._style_rule0$_selector, styleRule.span, false, styleRule.originalSelector), new A._EvaluateVisitor_visitAtRule__closure1(t1, _this.children), false, type$.ModifiableCssStyleRule_2, type$.Null);
  103493. },
  103494. $signature: 1
  103495. };
  103496. A._EvaluateVisitor_visitAtRule__closure1.prototype = {
  103497. call$0() {
  103498. var t1, t2, t3, _i;
  103499. for (t1 = this.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  103500. t1[_i].accept$1(t3);
  103501. },
  103502. $signature: 1
  103503. };
  103504. A._EvaluateVisitor_visitAtRule_closure7.prototype = {
  103505. call$1(node) {
  103506. return node instanceof A.ModifiableCssStyleRule0;
  103507. },
  103508. $signature: 8
  103509. };
  103510. A._EvaluateVisitor_visitForRule_closure9.prototype = {
  103511. call$0() {
  103512. return this.node.from.accept$1(this.$this).assertNumber$0();
  103513. },
  103514. $signature: 230
  103515. };
  103516. A._EvaluateVisitor_visitForRule_closure10.prototype = {
  103517. call$0() {
  103518. return this.node.to.accept$1(this.$this).assertNumber$0();
  103519. },
  103520. $signature: 230
  103521. };
  103522. A._EvaluateVisitor_visitForRule_closure11.prototype = {
  103523. call$0() {
  103524. return this.fromNumber.assertInt$0();
  103525. },
  103526. $signature: 10
  103527. };
  103528. A._EvaluateVisitor_visitForRule_closure12.prototype = {
  103529. call$0() {
  103530. var t1 = this.fromNumber;
  103531. return this.toNumber.coerce$2(t1.get$numeratorUnits(t1), t1.get$denominatorUnits(t1)).assertInt$0();
  103532. },
  103533. $signature: 10
  103534. };
  103535. A._EvaluateVisitor_visitForRule_closure13.prototype = {
  103536. call$0() {
  103537. var i, t3, t4, t5, t6, t7, t8, _0_0, _this = this,
  103538. t1 = _this.$this,
  103539. t2 = _this.node,
  103540. nodeWithSpan = t1._evaluate0$_expressionNode$1(t2.from);
  103541. for (i = _this.from, t3 = _this._box_0, t4 = _this.direction, t5 = t2.variable, t6 = _this.fromNumber, t2 = t2.children; i !== t3.to; i += t4) {
  103542. t7 = t1._evaluate0$_environment;
  103543. t8 = t6.get$numeratorUnits(t6);
  103544. t7.setLocalVariable$3(t5, A.SassNumber_SassNumber$withUnits0(i, t6.get$denominatorUnits(t6), t8), nodeWithSpan);
  103545. _0_0 = t1._evaluate0$_handleReturn$2(t2, new A._EvaluateVisitor_visitForRule__closure1(t1));
  103546. if (_0_0 != null)
  103547. return _0_0;
  103548. }
  103549. return null;
  103550. },
  103551. $signature: 44
  103552. };
  103553. A._EvaluateVisitor_visitForRule__closure1.prototype = {
  103554. call$1(child) {
  103555. return child.accept$1(this.$this);
  103556. },
  103557. $signature: 91
  103558. };
  103559. A._EvaluateVisitor_visitForwardRule_closure3.prototype = {
  103560. call$2(module, firstLoad) {
  103561. if (firstLoad)
  103562. this.$this._evaluate0$_registerCommentsForModule$1(module);
  103563. this.$this._evaluate0$_environment.forwardModule$2(module, this.node);
  103564. },
  103565. $signature: 93
  103566. };
  103567. A._EvaluateVisitor_visitForwardRule_closure4.prototype = {
  103568. call$2(module, firstLoad) {
  103569. if (firstLoad)
  103570. this.$this._evaluate0$_registerCommentsForModule$1(module);
  103571. this.$this._evaluate0$_environment.forwardModule$2(module, this.node);
  103572. },
  103573. $signature: 93
  103574. };
  103575. A._EvaluateVisitor__registerCommentsForModule_closure1.prototype = {
  103576. call$0() {
  103577. return A._setArrayType([], type$.JSArray_CssComment_2);
  103578. },
  103579. $signature: 182
  103580. };
  103581. A._EvaluateVisitor_visitIfRule_closure1.prototype = {
  103582. call$1(clause) {
  103583. var t1 = this.$this;
  103584. return t1._evaluate0$_environment.scope$1$3$semiGlobal$when(new A._EvaluateVisitor_visitIfRule__closure1(t1, clause), true, clause.hasDeclarations, type$.nullable_Value_2);
  103585. },
  103586. $signature: 463
  103587. };
  103588. A._EvaluateVisitor_visitIfRule__closure1.prototype = {
  103589. call$0() {
  103590. var t1 = this.$this;
  103591. return t1._evaluate0$_handleReturn$2(this.clause.children, new A._EvaluateVisitor_visitIfRule___closure1(t1));
  103592. },
  103593. $signature: 44
  103594. };
  103595. A._EvaluateVisitor_visitIfRule___closure1.prototype = {
  103596. call$1(child) {
  103597. return child.accept$1(this.$this);
  103598. },
  103599. $signature: 91
  103600. };
  103601. A._EvaluateVisitor__visitDynamicImport_closure1.prototype = {
  103602. call$0() {
  103603. var t1, t2, _0_0, stylesheet, importer, isDependency, url, t3, oldImporter, oldInDependency, loadsUserDefinedModules, children, t4, t5, t6, t7, t8, t9, t10, environment, module, visitor, _box_0 = {};
  103604. _box_0.isDependency = _box_0.importer = _box_0.stylesheet = null;
  103605. t1 = this.$this;
  103606. t2 = this.$import;
  103607. _0_0 = t1._evaluate0$_loadStylesheet$3$forImport(t2.urlString, t2.span, true);
  103608. stylesheet = _box_0.stylesheet = _0_0._0;
  103609. importer = _0_0._1;
  103610. _box_0.importer = importer;
  103611. isDependency = _0_0._2;
  103612. _box_0.isDependency = isDependency;
  103613. url = stylesheet.span.file.url;
  103614. if (url != null) {
  103615. t3 = t1._evaluate0$_activeModules;
  103616. if (t3.containsKey$1(url)) {
  103617. t2 = A.NullableExtension_andThen0(t3.$index(0, url), new A._EvaluateVisitor__visitDynamicImport__closure7(t1));
  103618. throw A.wrapException(t2 == null ? t1._evaluate0$_exception$1("This file is already being loaded.") : t2);
  103619. }
  103620. t3.$indexSet(0, url, t2);
  103621. }
  103622. t2 = stylesheet._stylesheet1$_uses;
  103623. t3 = type$.UnmodifiableListView_UseRule_2;
  103624. if (new A.UnmodifiableListView(t2, t3).get$length(0) === 0 && new A.UnmodifiableListView(stylesheet._stylesheet1$_forwards, type$.UnmodifiableListView_ForwardRule_2).get$length(0) === 0) {
  103625. oldImporter = t1._evaluate0$_importer;
  103626. t2 = t1._evaluate0$_assertInModule$2(t1._evaluate0$__stylesheet, "_stylesheet");
  103627. oldInDependency = t1._evaluate0$_inDependency;
  103628. t1._evaluate0$_importer = importer;
  103629. t1._evaluate0$__stylesheet = stylesheet;
  103630. t1._evaluate0$_inDependency = isDependency;
  103631. t1.visitStylesheet$1(0, stylesheet);
  103632. t1._evaluate0$_importer = oldImporter;
  103633. t1._evaluate0$__stylesheet = t2;
  103634. t1._evaluate0$_inDependency = oldInDependency;
  103635. t1._evaluate0$_activeModules.remove$1(0, url);
  103636. return;
  103637. }
  103638. t2 = new A.UnmodifiableListView(t2, t3);
  103639. if (!t2.any$1(t2, new A._EvaluateVisitor__visitDynamicImport__closure8())) {
  103640. t2 = new A.UnmodifiableListView(stylesheet._stylesheet1$_forwards, type$.UnmodifiableListView_ForwardRule_2);
  103641. loadsUserDefinedModules = t2.any$1(t2, new A._EvaluateVisitor__visitDynamicImport__closure9());
  103642. } else
  103643. loadsUserDefinedModules = true;
  103644. children = A._Cell$();
  103645. t2 = t1._evaluate0$_environment;
  103646. t3 = type$.String;
  103647. t4 = type$.Module_Callable_2;
  103648. t5 = type$.AstNode_2;
  103649. t6 = A._setArrayType([], type$.JSArray_Module_Callable_2);
  103650. t7 = t2._environment0$_variables;
  103651. t7 = A._setArrayType(t7.slice(0), A._arrayInstanceType(t7));
  103652. t8 = t2._environment0$_variableNodes;
  103653. t8 = A._setArrayType(t8.slice(0), A._arrayInstanceType(t8));
  103654. t9 = t2._environment0$_functions;
  103655. t9 = A._setArrayType(t9.slice(0), A._arrayInstanceType(t9));
  103656. t10 = t2._environment0$_mixins;
  103657. t10 = A._setArrayType(t10.slice(0), A._arrayInstanceType(t10));
  103658. environment = A.Environment$_0(A.LinkedHashMap_LinkedHashMap$_empty(t3, t4), A.LinkedHashMap_LinkedHashMap$_empty(t3, t5), A.LinkedHashMap_LinkedHashMap$_empty(t4, t5), t2._environment0$_importedModules, null, null, t6, t7, t8, t9, t10, t2._environment0$_content);
  103659. t1._evaluate0$_withEnvironment$2(environment, new A._EvaluateVisitor__visitDynamicImport__closure10(_box_0, t1, loadsUserDefinedModules, environment, children));
  103660. module = environment.toDummyModule$0();
  103661. t1._evaluate0$_environment.importForwards$1(module);
  103662. if (loadsUserDefinedModules) {
  103663. if (module.transitivelyContainsCss)
  103664. t1._evaluate0$_combineCss$2$clone(module, module.transitivelyContainsExtensions).accept$1(t1);
  103665. visitor = new A._ImportedCssVisitor1(t1);
  103666. for (t2 = J.get$iterator$ax(children._readLocal$0()); t2.moveNext$0();)
  103667. t2.get$current(t2).accept$1(visitor);
  103668. }
  103669. t1._evaluate0$_activeModules.remove$1(0, url);
  103670. },
  103671. $signature: 0
  103672. };
  103673. A._EvaluateVisitor__visitDynamicImport__closure7.prototype = {
  103674. call$1(previousLoad) {
  103675. return this.$this._evaluate0$_multiSpanException$3("This file is already being loaded.", "new load", A.LinkedHashMap_LinkedHashMap$_literal([previousLoad.get$span(previousLoad), "original load"], type$.FileSpan, type$.String));
  103676. },
  103677. $signature: 98
  103678. };
  103679. A._EvaluateVisitor__visitDynamicImport__closure8.prototype = {
  103680. call$1(rule) {
  103681. return rule.url.get$scheme() !== "sass";
  103682. },
  103683. $signature: 183
  103684. };
  103685. A._EvaluateVisitor__visitDynamicImport__closure9.prototype = {
  103686. call$1(rule) {
  103687. return rule.url.get$scheme() !== "sass";
  103688. },
  103689. $signature: 184
  103690. };
  103691. A._EvaluateVisitor__visitDynamicImport__closure10.prototype = {
  103692. call$0() {
  103693. var t7, t8, _this = this,
  103694. t1 = _this.$this,
  103695. oldImporter = t1._evaluate0$_importer,
  103696. t2 = t1._evaluate0$_assertInModule$2(t1._evaluate0$__stylesheet, "_stylesheet"),
  103697. t3 = t1._evaluate0$_assertInModule$2(t1._evaluate0$__root, "_root"),
  103698. t4 = t1._evaluate0$_assertInModule$2(t1._evaluate0$__parent, "__parent"),
  103699. t5 = t1._evaluate0$_assertInModule$2(t1._evaluate0$__endOfImports, "_endOfImports"),
  103700. oldOutOfOrderImports = t1._evaluate0$_outOfOrderImports,
  103701. oldConfiguration = t1._evaluate0$_configuration,
  103702. oldInDependency = t1._evaluate0$_inDependency,
  103703. t6 = _this._box_0;
  103704. t1._evaluate0$_importer = t6.importer;
  103705. t7 = t6.stylesheet;
  103706. t1._evaluate0$__stylesheet = t7;
  103707. t8 = _this.loadsUserDefinedModules;
  103708. if (t8) {
  103709. t7 = A.ModifiableCssStylesheet$0(t7.span);
  103710. t1._evaluate0$__root = t7;
  103711. t1._evaluate0$__parent = t1._evaluate0$_assertInModule$2(t7, "_root");
  103712. t1._evaluate0$__endOfImports = 0;
  103713. t1._evaluate0$_outOfOrderImports = null;
  103714. }
  103715. t1._evaluate0$_inDependency = t6.isDependency;
  103716. t7 = new A.UnmodifiableListView(t6.stylesheet._stylesheet1$_forwards, type$.UnmodifiableListView_ForwardRule_2);
  103717. if (!t7.get$isEmpty(t7))
  103718. t1._evaluate0$_configuration = _this.environment.toImplicitConfiguration$0();
  103719. t1.visitStylesheet$1(0, t6.stylesheet);
  103720. t6 = t8 ? t1._evaluate0$_addOutOfOrderImports$0() : A._setArrayType([], type$.JSArray_ModifiableCssNode_2);
  103721. _this.children.__late_helper$_value = t6;
  103722. t1._evaluate0$_importer = oldImporter;
  103723. t1._evaluate0$__stylesheet = t2;
  103724. if (t8) {
  103725. t1._evaluate0$__root = t3;
  103726. t1._evaluate0$__parent = t4;
  103727. t1._evaluate0$__endOfImports = t5;
  103728. t1._evaluate0$_outOfOrderImports = oldOutOfOrderImports;
  103729. }
  103730. t1._evaluate0$_configuration = oldConfiguration;
  103731. t1._evaluate0$_inDependency = oldInDependency;
  103732. },
  103733. $signature: 1
  103734. };
  103735. A._EvaluateVisitor__applyMixin_closure3.prototype = {
  103736. call$0() {
  103737. var _this = this,
  103738. t1 = _this.$this;
  103739. t1._evaluate0$_environment.asMixin$1(new A._EvaluateVisitor__applyMixin__closure4(t1, _this.$arguments, _this.mixin, _this.nodeWithSpanWithoutContent));
  103740. },
  103741. $signature: 0
  103742. };
  103743. A._EvaluateVisitor__applyMixin__closure4.prototype = {
  103744. call$0() {
  103745. var _this = this;
  103746. _this.$this._evaluate0$_runBuiltInCallable$3(_this.$arguments, _this.mixin, _this.nodeWithSpanWithoutContent);
  103747. },
  103748. $signature: 0
  103749. };
  103750. A._EvaluateVisitor__applyMixin_closure4.prototype = {
  103751. call$0() {
  103752. var _this = this,
  103753. t1 = _this.$this;
  103754. t1._evaluate0$_environment.withContent$2(_this.contentCallable, new A._EvaluateVisitor__applyMixin__closure3(t1, _this.mixin, _this.nodeWithSpanWithoutContent));
  103755. },
  103756. $signature: 1
  103757. };
  103758. A._EvaluateVisitor__applyMixin__closure3.prototype = {
  103759. call$0() {
  103760. var t1 = this.$this;
  103761. t1._evaluate0$_environment.asMixin$1(new A._EvaluateVisitor__applyMixin___closure1(t1, this.mixin, this.nodeWithSpanWithoutContent));
  103762. },
  103763. $signature: 0
  103764. };
  103765. A._EvaluateVisitor__applyMixin___closure1.prototype = {
  103766. call$0() {
  103767. var t1, t2, t3, t4, _i;
  103768. for (t1 = this.mixin.declaration.children, t2 = t1.length, t3 = this.$this, t4 = this.nodeWithSpanWithoutContent, _i = 0; _i < t2; ++_i)
  103769. t3._evaluate0$_addErrorSpan$2(t4, new A._EvaluateVisitor__applyMixin____closure1(t3, t1[_i]));
  103770. },
  103771. $signature: 0
  103772. };
  103773. A._EvaluateVisitor__applyMixin____closure1.prototype = {
  103774. call$0() {
  103775. return this.statement.accept$1(this.$this);
  103776. },
  103777. $signature: 44
  103778. };
  103779. A._EvaluateVisitor_visitIncludeRule_closure5.prototype = {
  103780. call$0() {
  103781. var t1 = this.node;
  103782. return this.$this._evaluate0$_environment.getMixin$2$namespace(t1.name, t1.namespace);
  103783. },
  103784. $signature: 109
  103785. };
  103786. A._EvaluateVisitor_visitIncludeRule_closure6.prototype = {
  103787. call$1($content) {
  103788. var t1 = this.$this;
  103789. return new A.UserDefinedCallable0($content, t1._evaluate0$_environment.closure$0(), t1._evaluate0$_inDependency, type$.UserDefinedCallable_Environment_2);
  103790. },
  103791. $signature: 464
  103792. };
  103793. A._EvaluateVisitor_visitIncludeRule_closure7.prototype = {
  103794. call$0() {
  103795. return this.node.get$spanWithoutContent();
  103796. },
  103797. $signature: 29
  103798. };
  103799. A._EvaluateVisitor_visitMediaRule_closure5.prototype = {
  103800. call$1(mediaQueries) {
  103801. return this.$this._evaluate0$_mergeMediaQueries$2(mediaQueries, this.queries);
  103802. },
  103803. $signature: 105
  103804. };
  103805. A._EvaluateVisitor_visitMediaRule_closure6.prototype = {
  103806. call$0() {
  103807. var _this = this,
  103808. t1 = _this.$this,
  103809. t2 = _this.mergedQueries;
  103810. if (t2 == null)
  103811. t2 = _this.queries;
  103812. t1._evaluate0$_withMediaQueries$3(t2, _this.mergedSources, new A._EvaluateVisitor_visitMediaRule__closure1(t1, _this.node));
  103813. },
  103814. $signature: 1
  103815. };
  103816. A._EvaluateVisitor_visitMediaRule__closure1.prototype = {
  103817. call$0() {
  103818. var t2, t3, _i,
  103819. t1 = this.$this,
  103820. _0_0 = t1._evaluate0$_atRootExcludingStyleRule ? null : t1._evaluate0$_styleRuleIgnoringAtRoot;
  103821. if (_0_0 != null)
  103822. t1._evaluate0$_withParent$2$3$scopeWhen(A.ModifiableCssStyleRule$0(_0_0._style_rule0$_selector, _0_0.span, false, _0_0.originalSelector), new A._EvaluateVisitor_visitMediaRule___closure1(t1, this.node), false, type$.ModifiableCssStyleRule_2, type$.Null);
  103823. else
  103824. for (t2 = this.node.children, t3 = t2.length, _i = 0; _i < t3; ++_i)
  103825. t2[_i].accept$1(t1);
  103826. },
  103827. $signature: 1
  103828. };
  103829. A._EvaluateVisitor_visitMediaRule___closure1.prototype = {
  103830. call$0() {
  103831. var t1, t2, t3, _i;
  103832. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  103833. t1[_i].accept$1(t3);
  103834. },
  103835. $signature: 1
  103836. };
  103837. A._EvaluateVisitor_visitMediaRule_closure7.prototype = {
  103838. call$1(node) {
  103839. var t1;
  103840. if (!(node instanceof A.ModifiableCssStyleRule0)) {
  103841. t1 = this.mergedSources;
  103842. t1 = t1.get$isNotEmpty(t1) && node instanceof A.ModifiableCssMediaRule0 && B.JSArray_methods.every$1(node.queries, t1.get$contains(t1));
  103843. } else
  103844. t1 = true;
  103845. return t1;
  103846. },
  103847. $signature: 8
  103848. };
  103849. A._EvaluateVisitor_visitStyleRule_closure7.prototype = {
  103850. call$0() {
  103851. var t1, t2, t3, _i;
  103852. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  103853. t1[_i].accept$1(t3);
  103854. },
  103855. $signature: 1
  103856. };
  103857. A._EvaluateVisitor_visitStyleRule_closure8.prototype = {
  103858. call$1(node) {
  103859. return node instanceof A.ModifiableCssStyleRule0;
  103860. },
  103861. $signature: 8
  103862. };
  103863. A._EvaluateVisitor_visitStyleRule_closure10.prototype = {
  103864. call$0() {
  103865. var t1 = this.$this;
  103866. t1._evaluate0$_withStyleRule$2(this.rule, new A._EvaluateVisitor_visitStyleRule__closure1(t1, this.node));
  103867. },
  103868. $signature: 1
  103869. };
  103870. A._EvaluateVisitor_visitStyleRule__closure1.prototype = {
  103871. call$0() {
  103872. var t1, t2, t3, _i;
  103873. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  103874. t1[_i].accept$1(t3);
  103875. },
  103876. $signature: 1
  103877. };
  103878. A._EvaluateVisitor_visitStyleRule_closure9.prototype = {
  103879. call$1(node) {
  103880. return node instanceof A.ModifiableCssStyleRule0;
  103881. },
  103882. $signature: 8
  103883. };
  103884. A._EvaluateVisitor__warnForBogusCombinators_closure1.prototype = {
  103885. call$1(child) {
  103886. return child instanceof A.ModifiableCssComment0;
  103887. },
  103888. $signature: 8
  103889. };
  103890. A._EvaluateVisitor_visitSupportsRule_closure3.prototype = {
  103891. call$0() {
  103892. var t2, t3, _i,
  103893. t1 = this.$this,
  103894. _0_0 = t1._evaluate0$_atRootExcludingStyleRule ? null : t1._evaluate0$_styleRuleIgnoringAtRoot;
  103895. if (_0_0 != null)
  103896. t1._evaluate0$_withParent$2$2(A.ModifiableCssStyleRule$0(_0_0._style_rule0$_selector, _0_0.span, false, _0_0.originalSelector), new A._EvaluateVisitor_visitSupportsRule__closure1(t1, this.node), type$.ModifiableCssStyleRule_2, type$.Null);
  103897. else
  103898. for (t2 = this.node.children, t3 = t2.length, _i = 0; _i < t3; ++_i)
  103899. t2[_i].accept$1(t1);
  103900. },
  103901. $signature: 1
  103902. };
  103903. A._EvaluateVisitor_visitSupportsRule__closure1.prototype = {
  103904. call$0() {
  103905. var t1, t2, t3, _i;
  103906. for (t1 = this.node.children, t2 = t1.length, t3 = this.$this, _i = 0; _i < t2; ++_i)
  103907. t1[_i].accept$1(t3);
  103908. },
  103909. $signature: 1
  103910. };
  103911. A._EvaluateVisitor_visitSupportsRule_closure4.prototype = {
  103912. call$1(node) {
  103913. return node instanceof A.ModifiableCssStyleRule0;
  103914. },
  103915. $signature: 8
  103916. };
  103917. A._EvaluateVisitor__visitSupportsCondition_closure1.prototype = {
  103918. call$0() {
  103919. var t4,
  103920. t1 = this.$this,
  103921. t2 = this._box_0,
  103922. t3 = t2.declaration.name;
  103923. t3 = t1._evaluate0$_serialize$3$quote(t3.accept$1(t1), t3, true);
  103924. t4 = t2.declaration.get$isCustomProperty() ? "" : " ";
  103925. t2 = t2.declaration.value;
  103926. return "(" + t3 + ":" + t4 + t1._evaluate0$_serialize$3$quote(t2.accept$1(t1), t2, true) + ")";
  103927. },
  103928. $signature: 31
  103929. };
  103930. A._EvaluateVisitor_visitVariableDeclaration_closure5.prototype = {
  103931. call$0() {
  103932. var t1 = this.$this._evaluate0$_environment,
  103933. t2 = this._box_0.override;
  103934. t1.setVariable$4$global(this.node.name, t2.value, t2.assignmentNode, true);
  103935. },
  103936. $signature: 1
  103937. };
  103938. A._EvaluateVisitor_visitVariableDeclaration_closure6.prototype = {
  103939. call$0() {
  103940. var t1 = this.node;
  103941. return this.$this._evaluate0$_environment.getVariable$2$namespace(t1.name, t1.namespace);
  103942. },
  103943. $signature: 44
  103944. };
  103945. A._EvaluateVisitor_visitVariableDeclaration_closure7.prototype = {
  103946. call$0() {
  103947. var t1 = this.$this,
  103948. t2 = this.node;
  103949. t1._evaluate0$_environment.setVariable$5$global$namespace(t2.name, this.value, t1._evaluate0$_expressionNode$1(t2.expression), t2.isGlobal, t2.namespace);
  103950. },
  103951. $signature: 1
  103952. };
  103953. A._EvaluateVisitor_visitUseRule_closure1.prototype = {
  103954. call$2(module, firstLoad) {
  103955. var t1, t2, t3, _0_0, t4, t5, span;
  103956. if (firstLoad)
  103957. this.$this._evaluate0$_registerCommentsForModule$1(module);
  103958. t1 = this.$this._evaluate0$_environment;
  103959. t2 = this.node;
  103960. t3 = t2.namespace;
  103961. if (t3 == null) {
  103962. t1._environment0$_globalModules.$indexSet(0, module, t2);
  103963. t1._environment0$_allModules.push(module);
  103964. _0_0 = A.IterableExtension_firstWhereOrNull(J.get$keys$z(B.JSArray_methods.get$first(t1._environment0$_variables)), module.get$variables().get$containsKey());
  103965. if (_0_0 != null)
  103966. A.throwExpression(A.SassScriptException$0(string$.This_ma + _0_0 + '".', null));
  103967. } else {
  103968. t4 = t1._environment0$_modules;
  103969. if (t4.containsKey$1(t3)) {
  103970. t5 = t1._environment0$_namespaceNodes.$index(0, t3);
  103971. span = t5 == null ? null : t5.span;
  103972. t5 = A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String);
  103973. if (span != null)
  103974. t5.$indexSet(0, span, "original @use");
  103975. A.throwExpression(A.MultiSpanSassScriptException$0(string$.There_ + t3 + '".', "new @use", t5));
  103976. }
  103977. t4.$indexSet(0, t3, module);
  103978. t1._environment0$_namespaceNodes.$indexSet(0, t3, t2);
  103979. t1._environment0$_allModules.push(module);
  103980. }
  103981. },
  103982. $signature: 93
  103983. };
  103984. A._EvaluateVisitor_visitWarnRule_closure1.prototype = {
  103985. call$0() {
  103986. return this.node.expression.accept$1(this.$this);
  103987. },
  103988. $signature: 48
  103989. };
  103990. A._EvaluateVisitor_visitWhileRule_closure1.prototype = {
  103991. call$0() {
  103992. var t1, t2, t3, _0_0;
  103993. for (t1 = this.node, t2 = t1.condition, t3 = this.$this, t1 = t1.children; t2.accept$1(t3).get$isTruthy();) {
  103994. _0_0 = t3._evaluate0$_handleReturn$2(t1, new A._EvaluateVisitor_visitWhileRule__closure1(t3));
  103995. if (_0_0 != null)
  103996. return _0_0;
  103997. }
  103998. return null;
  103999. },
  104000. $signature: 44
  104001. };
  104002. A._EvaluateVisitor_visitWhileRule__closure1.prototype = {
  104003. call$1(child) {
  104004. return child.accept$1(this.$this);
  104005. },
  104006. $signature: 91
  104007. };
  104008. A._EvaluateVisitor_visitBinaryOperationExpression_closure1.prototype = {
  104009. call$0() {
  104010. var t1 = this.node,
  104011. t2 = this.$this,
  104012. left = t1.left.accept$1(t2);
  104013. switch (t1.operator) {
  104014. case B.BinaryOperator_wdM0:
  104015. t1 = t1.right.accept$1(t2);
  104016. t1 = new A.SassString0(A.serializeValue0(left, false, true) + "=" + A.serializeValue0(t1, false, true), false);
  104017. break;
  104018. case B.BinaryOperator_qNM0:
  104019. t1 = left.get$isTruthy() ? left : t1.right.accept$1(t2);
  104020. break;
  104021. case B.BinaryOperator_eDt0:
  104022. t1 = left.get$isTruthy() ? t1.right.accept$1(t2) : left;
  104023. break;
  104024. case B.BinaryOperator_g8k0:
  104025. t1 = left.$eq(0, t1.right.accept$1(t2)) ? B.SassBoolean_true0 : B.SassBoolean_false0;
  104026. break;
  104027. case B.BinaryOperator_icU0:
  104028. t1 = !left.$eq(0, t1.right.accept$1(t2)) ? B.SassBoolean_true0 : B.SassBoolean_false0;
  104029. break;
  104030. case B.BinaryOperator_bEa0:
  104031. t1 = left.greaterThan$1(t1.right.accept$1(t2));
  104032. break;
  104033. case B.BinaryOperator_oEm0:
  104034. t1 = left.greaterThanOrEquals$1(t1.right.accept$1(t2));
  104035. break;
  104036. case B.BinaryOperator_miq0:
  104037. t1 = left.lessThan$1(t1.right.accept$1(t2));
  104038. break;
  104039. case B.BinaryOperator_SPQ0:
  104040. t1 = left.lessThanOrEquals$1(t1.right.accept$1(t2));
  104041. break;
  104042. case B.BinaryOperator_u150:
  104043. t1 = left.plus$1(t1.right.accept$1(t2));
  104044. break;
  104045. case B.BinaryOperator_SjO0:
  104046. t1 = left.minus$1(t1.right.accept$1(t2));
  104047. break;
  104048. case B.BinaryOperator_2No0:
  104049. t1 = left.times$1(t1.right.accept$1(t2));
  104050. break;
  104051. case B.BinaryOperator_U770:
  104052. t1 = t2._evaluate0$_slash$3(left, t1.right.accept$1(t2), t1);
  104053. break;
  104054. case B.BinaryOperator_KNx0:
  104055. t1 = left.modulo$1(t1.right.accept$1(t2));
  104056. break;
  104057. default:
  104058. t1 = null;
  104059. }
  104060. return t1;
  104061. },
  104062. $signature: 48
  104063. };
  104064. A._EvaluateVisitor__slash_recommendation1.prototype = {
  104065. call$1(expression) {
  104066. var t1;
  104067. $label0$0: {
  104068. if (expression instanceof A.BinaryOperationExpression0 && B.BinaryOperator_U770 === expression.operator) {
  104069. t1 = "math.div(" + A.S(this.call$1(expression.left)) + ", " + A.S(this.call$1(expression.right)) + ")";
  104070. break $label0$0;
  104071. }
  104072. if (expression instanceof A.ParenthesizedExpression0) {
  104073. t1 = expression.expression.toString$0(0);
  104074. break $label0$0;
  104075. }
  104076. t1 = expression.toString$0(0);
  104077. break $label0$0;
  104078. }
  104079. return t1;
  104080. },
  104081. $signature: 112
  104082. };
  104083. A._EvaluateVisitor_visitVariableExpression_closure1.prototype = {
  104084. call$0() {
  104085. var t1 = this.node;
  104086. return this.$this._evaluate0$_environment.getVariable$2$namespace(t1.name, t1.namespace);
  104087. },
  104088. $signature: 44
  104089. };
  104090. A._EvaluateVisitor_visitUnaryOperationExpression_closure1.prototype = {
  104091. call$0() {
  104092. var t1, _this = this;
  104093. switch (_this.node.operator) {
  104094. case B.UnaryOperator_cLp0:
  104095. t1 = _this.operand.unaryPlus$0();
  104096. break;
  104097. case B.UnaryOperator_AiQ0:
  104098. t1 = _this.operand.unaryMinus$0();
  104099. break;
  104100. case B.UnaryOperator_SJr0:
  104101. t1 = new A.SassString0("/" + A.serializeValue0(_this.operand, false, true), false);
  104102. break;
  104103. case B.UnaryOperator_not_not_not0:
  104104. t1 = _this.operand.unaryNot$0();
  104105. break;
  104106. default:
  104107. t1 = null;
  104108. }
  104109. return t1;
  104110. },
  104111. $signature: 48
  104112. };
  104113. A._EvaluateVisitor_visitListExpression_closure1.prototype = {
  104114. call$1(expression) {
  104115. return expression.accept$1(this.$this);
  104116. },
  104117. $signature: 465
  104118. };
  104119. A._EvaluateVisitor_visitFunctionExpression_closure5.prototype = {
  104120. call$0() {
  104121. var t1 = this.node;
  104122. return this.$this._evaluate0$_environment.getFunction$2$namespace(t1.name, t1.namespace);
  104123. },
  104124. $signature: 109
  104125. };
  104126. A._EvaluateVisitor_visitFunctionExpression_closure6.prototype = {
  104127. call$1(argument) {
  104128. return argument.accept$1(B.C_IsCalculationSafeVisitor0);
  104129. },
  104130. $signature: 137
  104131. };
  104132. A._EvaluateVisitor_visitFunctionExpression_closure7.prototype = {
  104133. call$0() {
  104134. var t1 = this.node;
  104135. return this.$this._evaluate0$_runFunctionCallable$3(t1.$arguments, this._box_0.$function, t1);
  104136. },
  104137. $signature: 48
  104138. };
  104139. A._EvaluateVisitor__checkCalculationArguments_check1.prototype = {
  104140. call$1(maxArgs) {
  104141. var t1 = this.node,
  104142. t2 = t1.$arguments.positional.length;
  104143. if (t2 === 0)
  104144. throw A.wrapException(this.$this._evaluate0$_exception$2("Missing argument.", t1.span));
  104145. else if (maxArgs != null && t2 > maxArgs)
  104146. throw A.wrapException(this.$this._evaluate0$_exception$2("Only " + A.S(maxArgs) + " " + A.pluralize0("argument", maxArgs, null) + " allowed, but " + t2 + " " + A.pluralize0("was", t2, "were") + " passed.", t1.span));
  104147. },
  104148. call$0() {
  104149. return this.call$1(null);
  104150. },
  104151. $signature: 99
  104152. };
  104153. A._EvaluateVisitor__visitCalculationExpression_closure1.prototype = {
  104154. call$0() {
  104155. var _this = this,
  104156. t1 = _this.$this,
  104157. t2 = _this._box_0,
  104158. t3 = _this.inLegacySassFunction;
  104159. return A.SassCalculation_operateInternal0(t1._evaluate0$_binaryOperatorToCalculationOperator$2(t2.operator, _this.node), t1._evaluate0$_visitCalculationExpression$2$inLegacySassFunction(t2.left, t3), t1._evaluate0$_visitCalculationExpression$2$inLegacySassFunction(t2.right, t3), t3, !t1._evaluate0$_inSupportsDeclaration);
  104160. },
  104161. $signature: 83
  104162. };
  104163. A._EvaluateVisitor_visitInterpolatedFunctionExpression_closure1.prototype = {
  104164. call$0() {
  104165. var t1 = this.node;
  104166. return this.$this._evaluate0$_runFunctionCallable$3(t1.$arguments, this.$function, t1);
  104167. },
  104168. $signature: 48
  104169. };
  104170. A._EvaluateVisitor__runUserDefinedCallable_closure1.prototype = {
  104171. call$0() {
  104172. var _this = this,
  104173. t1 = _this.$this,
  104174. t2 = _this.callable;
  104175. return t1._evaluate0$_withEnvironment$2(t2.environment.closure$0(), new A._EvaluateVisitor__runUserDefinedCallable__closure1(t1, _this.evaluated, t2, _this.nodeWithSpan, _this.run, _this.V));
  104176. },
  104177. $signature() {
  104178. return this.V._eval$1("0()");
  104179. }
  104180. };
  104181. A._EvaluateVisitor__runUserDefinedCallable__closure1.prototype = {
  104182. call$0() {
  104183. var _this = this,
  104184. t1 = _this.$this,
  104185. t2 = _this.V;
  104186. return t1._evaluate0$_environment.scope$1$1(new A._EvaluateVisitor__runUserDefinedCallable___closure1(t1, _this.evaluated, _this.callable, _this.nodeWithSpan, _this.run, t2), t2);
  104187. },
  104188. $signature() {
  104189. return this.V._eval$1("0()");
  104190. }
  104191. };
  104192. A._EvaluateVisitor__runUserDefinedCallable___closure1.prototype = {
  104193. call$0() {
  104194. var declaredArguments, t5, minLength, i, argument, t6, t7, value, t8, restArgument, rest, argumentList, result, argumentWord, _this = this,
  104195. t1 = _this.$this,
  104196. t2 = _this.evaluated._values,
  104197. t3 = _this.callable.declaration.$arguments,
  104198. t4 = _this.nodeWithSpan;
  104199. t1._evaluate0$_verifyArguments$4(t2[2].length, t2[0], t3, t4);
  104200. declaredArguments = t3.$arguments;
  104201. t5 = declaredArguments.length;
  104202. minLength = Math.min(t2[2].length, t5);
  104203. for (i = 0; i < minLength; ++i)
  104204. t1._evaluate0$_environment.setLocalVariable$3(declaredArguments[i].name, t2[2][i], t2[3][i]);
  104205. for (i = t2[2].length; i < t5; ++i) {
  104206. argument = declaredArguments[i];
  104207. t6 = t2[0];
  104208. t7 = argument.name;
  104209. value = t6.remove$1(0, t7);
  104210. if (value == null) {
  104211. t6 = argument.defaultValue;
  104212. value = t1._evaluate0$_withoutSlash$2(t6.accept$1(t1), t1._evaluate0$_expressionNode$1(t6));
  104213. }
  104214. t6 = t1._evaluate0$_environment;
  104215. t8 = t2[1].$index(0, t7);
  104216. if (t8 == null) {
  104217. t8 = argument.defaultValue;
  104218. t8.toString;
  104219. t8 = t1._evaluate0$_expressionNode$1(t8);
  104220. }
  104221. t6.setLocalVariable$3(t7, value, t8);
  104222. }
  104223. restArgument = t3.restArgument;
  104224. if (restArgument != null) {
  104225. t6 = t2[2];
  104226. rest = t6.length > t5 ? B.JSArray_methods.sublist$1(t6, t5) : B.List_empty20;
  104227. t5 = t2[0];
  104228. t6 = t2[4];
  104229. argumentList = A.SassArgumentList$0(rest, t5, t6 === B.ListSeparator_undecided_null_undecided0 ? B.ListSeparator_ECn0 : t6);
  104230. t1._evaluate0$_environment.setLocalVariable$3(restArgument, argumentList, t4);
  104231. } else
  104232. argumentList = null;
  104233. result = _this.run.call$0();
  104234. if (argumentList == null)
  104235. return result;
  104236. t5 = t2[0].__js_helper$_length;
  104237. if (t5 === 0)
  104238. return result;
  104239. if (argumentList._argument_list$_wereKeywordsAccessed)
  104240. return result;
  104241. argumentWord = A.pluralize0("argument", t5, null);
  104242. t2 = t2[0];
  104243. t5 = A._instanceType(t2)._eval$1("LinkedHashMapKeyIterable<1>");
  104244. throw A.wrapException(A.MultiSpanSassRuntimeException$0("No " + argumentWord + " named " + A.toSentence0(A.MappedIterable_MappedIterable(new A.LinkedHashMapKeyIterable(t2, t5), new A._EvaluateVisitor__runUserDefinedCallable____closure1(), t5._eval$1("Iterable.E"), type$.Object), "or") + ".", t4.get$span(t4), "invocation", A.LinkedHashMap_LinkedHashMap$_literal([t3.get$spanWithName(), "declaration"], type$.FileSpan, type$.String), t1._evaluate0$_stackTrace$1(t4.get$span(t4)), null));
  104245. },
  104246. $signature() {
  104247. return this.V._eval$1("0()");
  104248. }
  104249. };
  104250. A._EvaluateVisitor__runUserDefinedCallable____closure1.prototype = {
  104251. call$1($name) {
  104252. return "$" + $name;
  104253. },
  104254. $signature: 6
  104255. };
  104256. A._EvaluateVisitor__runFunctionCallable_closure1.prototype = {
  104257. call$0() {
  104258. var t1, t2, t3, t4, _i, $returnValue;
  104259. for (t1 = this.callable.declaration, t2 = t1.children, t3 = t2.length, t4 = this.$this, _i = 0; _i < t3; ++_i) {
  104260. $returnValue = t2[_i].accept$1(t4);
  104261. if ($returnValue instanceof A.Value0)
  104262. return $returnValue;
  104263. }
  104264. throw A.wrapException(t4._evaluate0$_exception$2("Function finished without @return.", t1.span));
  104265. },
  104266. $signature: 48
  104267. };
  104268. A._EvaluateVisitor__runBuiltInCallable_closure5.prototype = {
  104269. call$0() {
  104270. return this._box_0.overload.verify$2(this.evaluated._values[2].length, this.namedSet);
  104271. },
  104272. $signature: 0
  104273. };
  104274. A._EvaluateVisitor__runBuiltInCallable_closure6.prototype = {
  104275. call$0() {
  104276. return this._box_0.callback.call$1(this.evaluated._values[2]);
  104277. },
  104278. $signature: 48
  104279. };
  104280. A._EvaluateVisitor__runBuiltInCallable_closure7.prototype = {
  104281. call$1($name) {
  104282. return "$" + $name;
  104283. },
  104284. $signature: 6
  104285. };
  104286. A._EvaluateVisitor__evaluateArguments_closure7.prototype = {
  104287. call$1(value) {
  104288. return value;
  104289. },
  104290. $signature: 43
  104291. };
  104292. A._EvaluateVisitor__evaluateArguments_closure8.prototype = {
  104293. call$1(value) {
  104294. return this.$this._evaluate0$_withoutSlash$2(value, this.restNodeForSpan);
  104295. },
  104296. $signature: 43
  104297. };
  104298. A._EvaluateVisitor__evaluateArguments_closure9.prototype = {
  104299. call$2(key, value) {
  104300. var _this = this,
  104301. t1 = _this.restNodeForSpan;
  104302. _this.named.$indexSet(0, key, _this.$this._evaluate0$_withoutSlash$2(value, t1));
  104303. _this.namedNodes.$indexSet(0, key, t1);
  104304. },
  104305. $signature: 108
  104306. };
  104307. A._EvaluateVisitor__evaluateArguments_closure10.prototype = {
  104308. call$1(value) {
  104309. return value;
  104310. },
  104311. $signature: 43
  104312. };
  104313. A._EvaluateVisitor__evaluateMacroArguments_closure7.prototype = {
  104314. call$1(value) {
  104315. var t1 = this.restArgs;
  104316. return new A.ValueExpression0(value, t1.get$span(t1));
  104317. },
  104318. $signature: 66
  104319. };
  104320. A._EvaluateVisitor__evaluateMacroArguments_closure8.prototype = {
  104321. call$1(value) {
  104322. var t1 = this.restArgs;
  104323. return new A.ValueExpression0(this.$this._evaluate0$_withoutSlash$2(value, this.restNodeForSpan), t1.get$span(t1));
  104324. },
  104325. $signature: 66
  104326. };
  104327. A._EvaluateVisitor__evaluateMacroArguments_closure9.prototype = {
  104328. call$2(key, value) {
  104329. var _this = this,
  104330. t1 = _this.restArgs;
  104331. _this.named.$indexSet(0, key, new A.ValueExpression0(_this.$this._evaluate0$_withoutSlash$2(value, _this.restNodeForSpan), t1.get$span(t1)));
  104332. },
  104333. $signature: 108
  104334. };
  104335. A._EvaluateVisitor__evaluateMacroArguments_closure10.prototype = {
  104336. call$1(value) {
  104337. var t1 = this.keywordRestArgs;
  104338. return new A.ValueExpression0(this.$this._evaluate0$_withoutSlash$2(value, this.keywordRestNodeForSpan), t1.get$span(t1));
  104339. },
  104340. $signature: 66
  104341. };
  104342. A._EvaluateVisitor__addRestMap_closure1.prototype = {
  104343. call$2(key, value) {
  104344. var t2, _this = this,
  104345. t1 = _this.$this;
  104346. if (key instanceof A.SassString0)
  104347. _this.values.$indexSet(0, key._string0$_text, _this.convert.call$1(t1._evaluate0$_withoutSlash$2(value, _this.expressionNode)));
  104348. else {
  104349. t2 = _this.nodeWithSpan;
  104350. throw A.wrapException(t1._evaluate0$_exception$2(string$.Variab_ + key.toString$0(0) + " is not a string in " + _this.map.toString$0(0) + ".", t2.get$span(t2)));
  104351. }
  104352. },
  104353. $signature: 97
  104354. };
  104355. A._EvaluateVisitor__verifyArguments_closure1.prototype = {
  104356. call$0() {
  104357. return this.$arguments.verify$2(this.positional, new A.MapKeySet(this.named, type$.MapKeySet_String));
  104358. },
  104359. $signature: 0
  104360. };
  104361. A._EvaluateVisitor_visitCssAtRule_closure3.prototype = {
  104362. call$0() {
  104363. var t1, t2, t3, t4;
  104364. for (t1 = this.node.children, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t3 = this.$this, t2 = t2._eval$1("ListBase.E"); t1.moveNext$0();) {
  104365. t4 = t1.__internal$_current;
  104366. (t4 == null ? t2._as(t4) : t4).accept$1(t3);
  104367. }
  104368. },
  104369. $signature: 1
  104370. };
  104371. A._EvaluateVisitor_visitCssAtRule_closure4.prototype = {
  104372. call$1(node) {
  104373. return node instanceof A.ModifiableCssStyleRule0;
  104374. },
  104375. $signature: 8
  104376. };
  104377. A._EvaluateVisitor_visitCssKeyframeBlock_closure3.prototype = {
  104378. call$0() {
  104379. var t1, t2, t3, t4;
  104380. for (t1 = this.node.children, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t3 = this.$this, t2 = t2._eval$1("ListBase.E"); t1.moveNext$0();) {
  104381. t4 = t1.__internal$_current;
  104382. (t4 == null ? t2._as(t4) : t4).accept$1(t3);
  104383. }
  104384. },
  104385. $signature: 1
  104386. };
  104387. A._EvaluateVisitor_visitCssKeyframeBlock_closure4.prototype = {
  104388. call$1(node) {
  104389. return node instanceof A.ModifiableCssStyleRule0;
  104390. },
  104391. $signature: 8
  104392. };
  104393. A._EvaluateVisitor_visitCssMediaRule_closure5.prototype = {
  104394. call$1(mediaQueries) {
  104395. return this.$this._evaluate0$_mergeMediaQueries$2(mediaQueries, this.node.queries);
  104396. },
  104397. $signature: 105
  104398. };
  104399. A._EvaluateVisitor_visitCssMediaRule_closure6.prototype = {
  104400. call$0() {
  104401. var _this = this,
  104402. t1 = _this.$this,
  104403. t2 = _this.mergedQueries;
  104404. if (t2 == null)
  104405. t2 = _this.node.queries;
  104406. t1._evaluate0$_withMediaQueries$3(t2, _this.mergedSources, new A._EvaluateVisitor_visitCssMediaRule__closure1(t1, _this.node));
  104407. },
  104408. $signature: 1
  104409. };
  104410. A._EvaluateVisitor_visitCssMediaRule__closure1.prototype = {
  104411. call$0() {
  104412. var t2, t3, t4,
  104413. t1 = this.$this,
  104414. _0_0 = t1._evaluate0$_atRootExcludingStyleRule ? null : t1._evaluate0$_styleRuleIgnoringAtRoot;
  104415. if (_0_0 != null)
  104416. t1._evaluate0$_withParent$2$3$scopeWhen(A.ModifiableCssStyleRule$0(_0_0._style_rule0$_selector, _0_0.span, false, _0_0.originalSelector), new A._EvaluateVisitor_visitCssMediaRule___closure1(t1, this.node), false, type$.ModifiableCssStyleRule_2, type$.Null);
  104417. else
  104418. for (t2 = this.node.children, t3 = t2.$ti, t2 = new A.ListIterator(t2, t2.get$length(0), t3._eval$1("ListIterator<ListBase.E>")), t3 = t3._eval$1("ListBase.E"); t2.moveNext$0();) {
  104419. t4 = t2.__internal$_current;
  104420. (t4 == null ? t3._as(t4) : t4).accept$1(t1);
  104421. }
  104422. },
  104423. $signature: 1
  104424. };
  104425. A._EvaluateVisitor_visitCssMediaRule___closure1.prototype = {
  104426. call$0() {
  104427. var t1, t2, t3, t4;
  104428. for (t1 = this.node.children, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t3 = this.$this, t2 = t2._eval$1("ListBase.E"); t1.moveNext$0();) {
  104429. t4 = t1.__internal$_current;
  104430. (t4 == null ? t2._as(t4) : t4).accept$1(t3);
  104431. }
  104432. },
  104433. $signature: 1
  104434. };
  104435. A._EvaluateVisitor_visitCssMediaRule_closure7.prototype = {
  104436. call$1(node) {
  104437. var t1;
  104438. if (!(node instanceof A.ModifiableCssStyleRule0)) {
  104439. t1 = this.mergedSources;
  104440. t1 = t1.get$isNotEmpty(t1) && node instanceof A.ModifiableCssMediaRule0 && B.JSArray_methods.every$1(node.queries, t1.get$contains(t1));
  104441. } else
  104442. t1 = true;
  104443. return t1;
  104444. },
  104445. $signature: 8
  104446. };
  104447. A._EvaluateVisitor_visitCssStyleRule_closure4.prototype = {
  104448. call$0() {
  104449. var t1 = this.$this;
  104450. t1._evaluate0$_withStyleRule$2(this.rule, new A._EvaluateVisitor_visitCssStyleRule__closure1(t1, this.node));
  104451. },
  104452. $signature: 1
  104453. };
  104454. A._EvaluateVisitor_visitCssStyleRule__closure1.prototype = {
  104455. call$0() {
  104456. var t1, t2, t3, t4;
  104457. for (t1 = this.node.children, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t3 = this.$this, t2 = t2._eval$1("ListBase.E"); t1.moveNext$0();) {
  104458. t4 = t1.__internal$_current;
  104459. (t4 == null ? t2._as(t4) : t4).accept$1(t3);
  104460. }
  104461. },
  104462. $signature: 1
  104463. };
  104464. A._EvaluateVisitor_visitCssStyleRule_closure3.prototype = {
  104465. call$1(node) {
  104466. return node instanceof A.ModifiableCssStyleRule0;
  104467. },
  104468. $signature: 8
  104469. };
  104470. A._EvaluateVisitor_visitCssSupportsRule_closure3.prototype = {
  104471. call$0() {
  104472. var t2, t3, t4,
  104473. t1 = this.$this,
  104474. _0_0 = t1._evaluate0$_atRootExcludingStyleRule ? null : t1._evaluate0$_styleRuleIgnoringAtRoot;
  104475. if (_0_0 != null)
  104476. t1._evaluate0$_withParent$2$2(A.ModifiableCssStyleRule$0(_0_0._style_rule0$_selector, _0_0.span, false, _0_0.originalSelector), new A._EvaluateVisitor_visitCssSupportsRule__closure1(t1, this.node), type$.ModifiableCssStyleRule_2, type$.Null);
  104477. else
  104478. for (t2 = this.node.children, t3 = t2.$ti, t2 = new A.ListIterator(t2, t2.get$length(0), t3._eval$1("ListIterator<ListBase.E>")), t3 = t3._eval$1("ListBase.E"); t2.moveNext$0();) {
  104479. t4 = t2.__internal$_current;
  104480. (t4 == null ? t3._as(t4) : t4).accept$1(t1);
  104481. }
  104482. },
  104483. $signature: 1
  104484. };
  104485. A._EvaluateVisitor_visitCssSupportsRule__closure1.prototype = {
  104486. call$0() {
  104487. var t1, t2, t3, t4;
  104488. for (t1 = this.node.children, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t3 = this.$this, t2 = t2._eval$1("ListBase.E"); t1.moveNext$0();) {
  104489. t4 = t1.__internal$_current;
  104490. (t4 == null ? t2._as(t4) : t4).accept$1(t3);
  104491. }
  104492. },
  104493. $signature: 1
  104494. };
  104495. A._EvaluateVisitor_visitCssSupportsRule_closure4.prototype = {
  104496. call$1(node) {
  104497. return node instanceof A.ModifiableCssStyleRule0;
  104498. },
  104499. $signature: 8
  104500. };
  104501. A._EvaluateVisitor__performInterpolationHelper_closure1.prototype = {
  104502. call$1(targetLocations) {
  104503. return A.InterpolationMap$0(this.interpolation, targetLocations);
  104504. },
  104505. $signature: 194
  104506. };
  104507. A._EvaluateVisitor__serialize_closure1.prototype = {
  104508. call$0() {
  104509. return A.serializeValue0(this.value, false, this.quote);
  104510. },
  104511. $signature: 31
  104512. };
  104513. A._EvaluateVisitor__expressionNode_closure1.prototype = {
  104514. call$0() {
  104515. var t1 = this.expression;
  104516. return this.$this._evaluate0$_environment.getVariableNode$2$namespace(t1.name, t1.namespace);
  104517. },
  104518. $signature: 195
  104519. };
  104520. A._EvaluateVisitor__withoutSlash_recommendation1.prototype = {
  104521. call$1(number) {
  104522. var before, after, t1,
  104523. _1_0 = number.asSlash;
  104524. $label0$0: {
  104525. if (type$.Record_2_nullable_Object_and_nullable_Object._is(_1_0)) {
  104526. before = _1_0._0;
  104527. after = _1_0._1;
  104528. t1 = "math.div(" + A.S(this.call$1(before)) + ", " + A.S(this.call$1(after)) + ")";
  104529. break $label0$0;
  104530. }
  104531. t1 = A.serializeValue0(number, true, true);
  104532. break $label0$0;
  104533. }
  104534. return t1;
  104535. },
  104536. $signature: 196
  104537. };
  104538. A._EvaluateVisitor__stackFrame_closure1.prototype = {
  104539. call$1(url) {
  104540. var t1 = this.$this._evaluate0$_importCache;
  104541. t1 = t1 == null ? null : t1.humanize$1(url);
  104542. return t1 == null ? url : t1;
  104543. },
  104544. $signature: 50
  104545. };
  104546. A._ImportedCssVisitor1.prototype = {
  104547. visitCssAtRule$1(node) {
  104548. var t1 = node.isChildless ? null : new A._ImportedCssVisitor_visitCssAtRule_closure1();
  104549. this._evaluate0$_visitor._evaluate0$_addChild$2$through(node, t1);
  104550. },
  104551. visitCssComment$1(node) {
  104552. return this._evaluate0$_visitor._evaluate0$_addChild$1(node);
  104553. },
  104554. visitCssDeclaration$1(node) {
  104555. },
  104556. visitCssImport$1(node) {
  104557. var t2,
  104558. _s13_ = "_endOfImports",
  104559. t1 = this._evaluate0$_visitor;
  104560. if (t1._evaluate0$_assertInModule$2(t1._evaluate0$__parent, "__parent") !== t1._evaluate0$_assertInModule$2(t1._evaluate0$__root, "_root"))
  104561. t1._evaluate0$_addChild$1(node);
  104562. else if (t1._evaluate0$_assertInModule$2(t1._evaluate0$__endOfImports, _s13_) === J.get$length$asx(t1._evaluate0$_assertInModule$2(t1._evaluate0$__root, "_root").children._collection$_source)) {
  104563. t1._evaluate0$_addChild$1(node);
  104564. t1._evaluate0$__endOfImports = t1._evaluate0$_assertInModule$2(t1._evaluate0$__endOfImports, _s13_) + 1;
  104565. } else {
  104566. t2 = t1._evaluate0$_outOfOrderImports;
  104567. (t2 == null ? t1._evaluate0$_outOfOrderImports = A._setArrayType([], type$.JSArray_ModifiableCssImport_2) : t2).push(node);
  104568. }
  104569. },
  104570. visitCssKeyframeBlock$1(node) {
  104571. },
  104572. visitCssMediaRule$1(node) {
  104573. var t1 = this._evaluate0$_visitor,
  104574. mediaQueries = t1._evaluate0$_mediaQueries;
  104575. t1._evaluate0$_addChild$2$through(node, new A._ImportedCssVisitor_visitCssMediaRule_closure1(mediaQueries == null || t1._evaluate0$_mergeMediaQueries$2(mediaQueries, node.queries) != null));
  104576. },
  104577. visitCssStyleRule$1(node) {
  104578. return this._evaluate0$_visitor._evaluate0$_addChild$2$through(node, new A._ImportedCssVisitor_visitCssStyleRule_closure1());
  104579. },
  104580. visitCssStylesheet$1(node) {
  104581. var t1, t2, t3;
  104582. for (t1 = node.children, t2 = t1.$ti, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t2 = t2._eval$1("ListBase.E"); t1.moveNext$0();) {
  104583. t3 = t1.__internal$_current;
  104584. (t3 == null ? t2._as(t3) : t3).accept$1(this);
  104585. }
  104586. },
  104587. visitCssSupportsRule$1(node) {
  104588. return this._evaluate0$_visitor._evaluate0$_addChild$2$through(node, new A._ImportedCssVisitor_visitCssSupportsRule_closure1());
  104589. }
  104590. };
  104591. A._ImportedCssVisitor_visitCssAtRule_closure1.prototype = {
  104592. call$1(node) {
  104593. return node instanceof A.ModifiableCssStyleRule0;
  104594. },
  104595. $signature: 8
  104596. };
  104597. A._ImportedCssVisitor_visitCssMediaRule_closure1.prototype = {
  104598. call$1(node) {
  104599. var t1;
  104600. if (!(node instanceof A.ModifiableCssStyleRule0))
  104601. t1 = this.hasBeenMerged && node instanceof A.ModifiableCssMediaRule0;
  104602. else
  104603. t1 = true;
  104604. return t1;
  104605. },
  104606. $signature: 8
  104607. };
  104608. A._ImportedCssVisitor_visitCssStyleRule_closure1.prototype = {
  104609. call$1(node) {
  104610. return node instanceof A.ModifiableCssStyleRule0;
  104611. },
  104612. $signature: 8
  104613. };
  104614. A._ImportedCssVisitor_visitCssSupportsRule_closure1.prototype = {
  104615. call$1(node) {
  104616. return node instanceof A.ModifiableCssStyleRule0;
  104617. },
  104618. $signature: 8
  104619. };
  104620. A._EvaluationContext1.prototype = {
  104621. get$currentCallableSpan() {
  104622. var _0_0 = this._evaluate0$_visitor._evaluate0$_callableNode;
  104623. if (_0_0 != null)
  104624. return _0_0.get$span(_0_0);
  104625. throw A.wrapException(A.StateError$(string$.No_Sasc));
  104626. },
  104627. warn$2(_, message, deprecation) {
  104628. var t1 = this._evaluate0$_visitor,
  104629. t2 = t1._evaluate0$_importSpan;
  104630. if (t2 == null) {
  104631. t2 = t1._evaluate0$_callableNode;
  104632. t2 = t2 == null ? null : t2.get$span(t2);
  104633. }
  104634. t1._evaluate0$_warn$3(message, t2 == null ? this._evaluate0$_defaultWarnNodeWithSpan.span : t2, deprecation);
  104635. },
  104636. $isEvaluationContext0: 1
  104637. };
  104638. A.EveryCssVisitor0.prototype = {
  104639. visitCssAtRule$1(node) {
  104640. var t1 = node.children;
  104641. return t1.every$1(t1, new A.EveryCssVisitor_visitCssAtRule_closure0(this));
  104642. },
  104643. visitCssComment$1(node) {
  104644. return false;
  104645. },
  104646. visitCssDeclaration$1(node) {
  104647. return false;
  104648. },
  104649. visitCssImport$1(node) {
  104650. return false;
  104651. },
  104652. visitCssKeyframeBlock$1(node) {
  104653. var t1 = node.children;
  104654. return t1.every$1(t1, new A.EveryCssVisitor_visitCssKeyframeBlock_closure0(this));
  104655. },
  104656. visitCssMediaRule$1(node) {
  104657. var t1 = node.children;
  104658. return t1.every$1(t1, new A.EveryCssVisitor_visitCssMediaRule_closure0(this));
  104659. },
  104660. visitCssStyleRule$1(node) {
  104661. var t1 = node.children;
  104662. return t1.every$1(t1, new A.EveryCssVisitor_visitCssStyleRule_closure0(this));
  104663. },
  104664. visitCssStylesheet$1(node) {
  104665. return J.every$1$ax(node.get$children(node), new A.EveryCssVisitor_visitCssStylesheet_closure0(this));
  104666. },
  104667. visitCssSupportsRule$1(node) {
  104668. var t1 = node.children;
  104669. return t1.every$1(t1, new A.EveryCssVisitor_visitCssSupportsRule_closure0(this));
  104670. }
  104671. };
  104672. A.EveryCssVisitor_visitCssAtRule_closure0.prototype = {
  104673. call$1(child) {
  104674. return child.accept$1(this.$this);
  104675. },
  104676. $signature: 8
  104677. };
  104678. A.EveryCssVisitor_visitCssKeyframeBlock_closure0.prototype = {
  104679. call$1(child) {
  104680. return child.accept$1(this.$this);
  104681. },
  104682. $signature: 8
  104683. };
  104684. A.EveryCssVisitor_visitCssMediaRule_closure0.prototype = {
  104685. call$1(child) {
  104686. return child.accept$1(this.$this);
  104687. },
  104688. $signature: 8
  104689. };
  104690. A.EveryCssVisitor_visitCssStyleRule_closure0.prototype = {
  104691. call$1(child) {
  104692. return child.accept$1(this.$this);
  104693. },
  104694. $signature: 8
  104695. };
  104696. A.EveryCssVisitor_visitCssStylesheet_closure0.prototype = {
  104697. call$1(child) {
  104698. return child.accept$1(this.$this);
  104699. },
  104700. $signature: 8
  104701. };
  104702. A.EveryCssVisitor_visitCssSupportsRule_closure0.prototype = {
  104703. call$1(child) {
  104704. return child.accept$1(this.$this);
  104705. },
  104706. $signature: 8
  104707. };
  104708. A._NodeException.prototype = {};
  104709. A.exceptionClass_closure.prototype = {
  104710. call$0() {
  104711. var jsClass = type$.JSClass._as(new self.Function("", " return class Exception extends Error {\n constructor(dartException, message) {\n super(message);\n\n // Define this as non-enumerable so that it doesn't show up when the\n // exception hits the top level.\n Object.defineProperty(this, '_dartException', {\n value: dartException,\n enumerable: false\n });\n }\n\n toString() {\n return this.message;\n }\n }\n ").call$0());
  104712. A.defineGetter(jsClass, "name", null, "sass.Exception");
  104713. A.LinkedHashMap_LinkedHashMap$_literal(["sassMessage", new A.exceptionClass__closure(), "sassStack", new A.exceptionClass__closure0(), "span", new A.exceptionClass__closure1()], type$.String, type$.Function).forEach$1(0, A.JSClassExtension_get_defineGetter(jsClass));
  104714. return jsClass;
  104715. },
  104716. $signature: 16
  104717. };
  104718. A.exceptionClass__closure.prototype = {
  104719. call$1(exception) {
  104720. return J.get$_dartException$x(exception)._span_exception$_message;
  104721. },
  104722. $signature: 231
  104723. };
  104724. A.exceptionClass__closure0.prototype = {
  104725. call$1(exception) {
  104726. return J.get$trace$z(J.get$_dartException$x(exception)).toString$0(0);
  104727. },
  104728. $signature: 231
  104729. };
  104730. A.exceptionClass__closure1.prototype = {
  104731. call$1(exception) {
  104732. var t1 = J.get$_dartException$x(exception),
  104733. t2 = J.getInterceptor$z(t1);
  104734. return A.SourceSpanException.prototype.get$span.call(t2, t1);
  104735. },
  104736. $signature: 467
  104737. };
  104738. A.SassException0.prototype = {
  104739. get$trace(_) {
  104740. return A.Trace$(A._setArrayType([A.frameForSpan0(A.SourceSpanException.prototype.get$span.call(this, 0), "root stylesheet", null)], type$.JSArray_Frame), null);
  104741. },
  104742. get$span(_) {
  104743. return A.SourceSpanException.prototype.get$span.call(this, 0);
  104744. },
  104745. withAdditionalSpan$2(span, label) {
  104746. return A.MultiSpanSassException$0(this._span_exception$_message, A.SourceSpanException.prototype.get$span.call(this, 0), "", A.LinkedHashMap_LinkedHashMap$_literal([span, label], type$.FileSpan, type$.String), this.loadedUrls);
  104747. },
  104748. withTrace$1(trace) {
  104749. var t1 = A.SourceSpanException.prototype.get$span.call(this, 0),
  104750. t2 = A.Set_Set$unmodifiable(this.loadedUrls, type$.Uri);
  104751. return new A.SassRuntimeException0(trace, t2, this._span_exception$_message, t1);
  104752. },
  104753. withLoadedUrls$1(loadedUrls) {
  104754. var t1 = A.SourceSpanException.prototype.get$span.call(this, 0),
  104755. t2 = A.Set_Set$unmodifiable(loadedUrls, type$.Uri);
  104756. return new A.SassException0(t2, this._span_exception$_message, t1);
  104757. },
  104758. toString$1$color(_, color) {
  104759. var t2, _i, frame, t3, _this = this,
  104760. buffer = new A.StringBuffer(""),
  104761. t1 = "" + ("Error: " + _this._span_exception$_message + "\n");
  104762. buffer._contents = t1;
  104763. buffer._contents = t1 + A.SourceSpanException.prototype.get$span.call(_this, 0).highlight$1$color(color);
  104764. for (t1 = _this.get$trace(_this).toString$0(0).split("\n"), t2 = t1.length, _i = 0; _i < t2; ++_i) {
  104765. frame = t1[_i];
  104766. if (J.get$length$asx(frame) === 0)
  104767. continue;
  104768. t3 = buffer._contents += "\n";
  104769. buffer._contents = t3 + (" " + A.S(frame));
  104770. }
  104771. t1 = buffer._contents;
  104772. return t1.charCodeAt(0) == 0 ? t1 : t1;
  104773. },
  104774. toString$0(_) {
  104775. return this.toString$1$color(0, null);
  104776. }
  104777. };
  104778. A.MultiSpanSassException0.prototype = {
  104779. withAdditionalSpan$2(span, label) {
  104780. var _this = this,
  104781. t1 = A.SourceSpanException.prototype.get$span.call(_this, 0),
  104782. t2 = A.LinkedHashMap_LinkedHashMap$of(_this.secondarySpans, type$.FileSpan, type$.String);
  104783. t2.$indexSet(0, span, label);
  104784. return A.MultiSpanSassException$0(_this._span_exception$_message, t1, _this.primaryLabel, t2, _this.loadedUrls);
  104785. },
  104786. withTrace$1(trace) {
  104787. var _this = this;
  104788. return A.MultiSpanSassRuntimeException$0(_this._span_exception$_message, A.SourceSpanException.prototype.get$span.call(_this, 0), _this.primaryLabel, _this.secondarySpans, trace, _this.loadedUrls);
  104789. },
  104790. withLoadedUrls$1(loadedUrls) {
  104791. var _this = this;
  104792. return A.MultiSpanSassException$0(_this._span_exception$_message, A.SourceSpanException.prototype.get$span.call(_this, 0), _this.primaryLabel, _this.secondarySpans, loadedUrls);
  104793. },
  104794. toString$1$color(_, color) {
  104795. var t1, t2, _i, frame, t3, _this = this,
  104796. useColor = color === true,
  104797. buffer = new A.StringBuffer("Error: " + _this._span_exception$_message + "\n");
  104798. A.NullableExtension_andThen0(A.Highlighter$multiple(A.SourceSpanException.prototype.get$span.call(_this, 0), _this.primaryLabel, _this.secondarySpans, useColor, null, null).highlight$0(), buffer.get$write(buffer));
  104799. for (t1 = _this.get$trace(_this).toString$0(0).split("\n"), t2 = t1.length, _i = 0; _i < t2; ++_i) {
  104800. frame = t1[_i];
  104801. if (J.get$length$asx(frame) === 0)
  104802. continue;
  104803. buffer._contents += "\n";
  104804. t3 = " " + A.S(frame);
  104805. buffer._contents += t3;
  104806. }
  104807. t1 = buffer._contents;
  104808. return t1.charCodeAt(0) == 0 ? t1 : t1;
  104809. },
  104810. toString$0(_) {
  104811. return this.toString$1$color(0, null);
  104812. },
  104813. get$primaryLabel() {
  104814. return this.primaryLabel;
  104815. },
  104816. get$secondarySpans() {
  104817. return this.secondarySpans;
  104818. }
  104819. };
  104820. A.SassRuntimeException0.prototype = {
  104821. withAdditionalSpan$2(span, label) {
  104822. var _this = this;
  104823. return A.MultiSpanSassRuntimeException$0(_this._span_exception$_message, A.SourceSpanException.prototype.get$span.call(_this, 0), "", A.LinkedHashMap_LinkedHashMap$_literal([span, label], type$.FileSpan, type$.String), _this.trace, _this.loadedUrls);
  104824. },
  104825. withLoadedUrls$1(loadedUrls) {
  104826. var t1 = A.SourceSpanException.prototype.get$span.call(this, 0),
  104827. t2 = A.Set_Set$unmodifiable(loadedUrls, type$.Uri);
  104828. return new A.SassRuntimeException0(this.trace, t2, this._span_exception$_message, t1);
  104829. },
  104830. get$trace(receiver) {
  104831. return this.trace;
  104832. }
  104833. };
  104834. A.MultiSpanSassRuntimeException0.prototype = {
  104835. withAdditionalSpan$2(span, label) {
  104836. var _this = this,
  104837. t1 = A.SourceSpanException.prototype.get$span.call(_this, 0),
  104838. t2 = A.LinkedHashMap_LinkedHashMap$of(_this.secondarySpans, type$.FileSpan, type$.String);
  104839. t2.$indexSet(0, span, label);
  104840. return A.MultiSpanSassRuntimeException$0(_this._span_exception$_message, t1, _this.primaryLabel, t2, _this.trace, _this.loadedUrls);
  104841. },
  104842. withLoadedUrls$1(loadedUrls) {
  104843. var _this = this;
  104844. return A.MultiSpanSassRuntimeException$0(_this._span_exception$_message, A.SourceSpanException.prototype.get$span.call(_this, 0), _this.primaryLabel, _this.secondarySpans, _this.trace, loadedUrls);
  104845. },
  104846. $isSassRuntimeException0: 1,
  104847. get$trace(receiver) {
  104848. return this.trace;
  104849. }
  104850. };
  104851. A.SassFormatException0.prototype = {
  104852. get$source() {
  104853. var t1 = A.SourceSpanException.prototype.get$span.call(this, 0);
  104854. return A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1.get$file(t1)._decodedChars, 0, null), 0, null);
  104855. },
  104856. withAdditionalSpan$2(span, label) {
  104857. return A.MultiSpanSassFormatException$0(this._span_exception$_message, A.SourceSpanException.prototype.get$span.call(this, 0), "", A.LinkedHashMap_LinkedHashMap$_literal([span, label], type$.FileSpan, type$.String), this.loadedUrls);
  104858. },
  104859. withLoadedUrls$1(loadedUrls) {
  104860. var t1 = A.SourceSpanException.prototype.get$span.call(this, 0),
  104861. t2 = A.Set_Set$unmodifiable(loadedUrls, type$.Uri);
  104862. return new A.SassFormatException0(t2, this._span_exception$_message, t1);
  104863. },
  104864. $isFormatException: 1,
  104865. $isSourceSpanFormatException: 1
  104866. };
  104867. A.MultiSpanSassFormatException0.prototype = {
  104868. get$source() {
  104869. var t1 = A.SourceSpanException.prototype.get$span.call(this, 0);
  104870. return A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1.get$file(t1)._decodedChars, 0, null), 0, null);
  104871. },
  104872. withAdditionalSpan$2(span, label) {
  104873. var _this = this,
  104874. t1 = A.SourceSpanException.prototype.get$span.call(_this, 0),
  104875. t2 = A.LinkedHashMap_LinkedHashMap$of(_this.secondarySpans, type$.FileSpan, type$.String);
  104876. t2.$indexSet(0, span, label);
  104877. return A.MultiSpanSassFormatException$0(_this._span_exception$_message, t1, _this.primaryLabel, t2, _this.loadedUrls);
  104878. },
  104879. withLoadedUrls$1(loadedUrls) {
  104880. var _this = this;
  104881. return A.MultiSpanSassFormatException$0(_this._span_exception$_message, A.SourceSpanException.prototype.get$span.call(_this, 0), _this.primaryLabel, _this.secondarySpans, loadedUrls);
  104882. },
  104883. $isFormatException: 1,
  104884. $isSourceSpanFormatException: 1,
  104885. $isMultiSourceSpanFormatException: 1,
  104886. $isSassFormatException0: 1
  104887. };
  104888. A.SassScriptException0.prototype = {
  104889. withSpan$1(span) {
  104890. return new A.SassException0(B.Set_empty, this.message, span);
  104891. },
  104892. toString$0(_) {
  104893. return this.message + string$.x0a_BUG_;
  104894. },
  104895. get$message(receiver) {
  104896. return this.message;
  104897. }
  104898. };
  104899. A.MultiSpanSassScriptException0.prototype = {
  104900. withSpan$1(span) {
  104901. return A.MultiSpanSassException$0(this.message, span, this.primaryLabel, this.secondarySpans, null);
  104902. }
  104903. };
  104904. A.Exports.prototype = {};
  104905. A.LoggerNamespace.prototype = {};
  104906. A.Expression0.prototype = {$isAstNode0: 1, $isSassNode: 1};
  104907. A.JSExpressionVisitor.prototype = {
  104908. visitBinaryOperationExpression$1(_, node) {
  104909. return J.visitBinaryOperationExpression$1$x(this._expression$_inner, node);
  104910. },
  104911. visitBooleanExpression$1(_, node) {
  104912. return J.visitBooleanExpression$1$x(this._expression$_inner, node);
  104913. },
  104914. visitColorExpression$1(_, node) {
  104915. return J.visitColorExpression$1$x(this._expression$_inner, node);
  104916. },
  104917. visitInterpolatedFunctionExpression$1(_, node) {
  104918. return J.visitInterpolatedFunctionExpression$1$x(this._expression$_inner, node);
  104919. },
  104920. visitFunctionExpression$1(_, node) {
  104921. return J.visitFunctionExpression$1$x(this._expression$_inner, node);
  104922. },
  104923. visitIfExpression$1(_, node) {
  104924. return J.visitIfExpression$1$x(this._expression$_inner, node);
  104925. },
  104926. visitListExpression$1(_, node) {
  104927. return J.visitListExpression$1$x(this._expression$_inner, node);
  104928. },
  104929. visitMapExpression$1(_, node) {
  104930. return J.visitMapExpression$1$x(this._expression$_inner, node);
  104931. },
  104932. visitNullExpression$1(_, node) {
  104933. return J.visitNullExpression$1$x(this._expression$_inner, node);
  104934. },
  104935. visitNumberExpression$1(_, node) {
  104936. return J.visitNumberExpression$1$x(this._expression$_inner, node);
  104937. },
  104938. visitParenthesizedExpression$1(_, node) {
  104939. return J.visitParenthesizedExpression$1$x(this._expression$_inner, node);
  104940. },
  104941. visitSelectorExpression$1(_, node) {
  104942. return J.visitSelectorExpression$1$x(this._expression$_inner, node);
  104943. },
  104944. visitStringExpression$1(_, node) {
  104945. return J.visitStringExpression$1$x(this._expression$_inner, node);
  104946. },
  104947. visitSupportsExpression$1(_, node) {
  104948. return J.visitSupportsExpression$1$x(this._expression$_inner, node);
  104949. },
  104950. visitUnaryOperationExpression$1(_, node) {
  104951. return J.visitUnaryOperationExpression$1$x(this._expression$_inner, node);
  104952. },
  104953. visitValueExpression$1(_, node) {
  104954. return J.visitValueExpression$1$x(this._expression$_inner, node);
  104955. },
  104956. visitVariableExpression$1(_, node) {
  104957. return J.visitVariableExpression$1$x(this._expression$_inner, node);
  104958. },
  104959. $isExpressionVisitor: 1
  104960. };
  104961. A.JSExpressionVisitorObject.prototype = {};
  104962. A._MakeExpressionCalculationSafe0.prototype = {
  104963. visitBinaryOperationExpression$1(_, node) {
  104964. var t1, t2, t3, t4;
  104965. if (node.operator === B.BinaryOperator_KNx0) {
  104966. t1 = A._setArrayType([node], type$.JSArray_Expression_2);
  104967. t2 = node.get$span(0);
  104968. t3 = type$.Expression_2;
  104969. t1 = A.List_List$unmodifiable(t1, t3);
  104970. t3 = A.ConstantMap_ConstantMap$from(B.Map_empty14, type$.String, t3);
  104971. t4 = node.get$span(0);
  104972. t1 = new A.FunctionExpression0("math", A.stringReplaceAllUnchecked("max", "_", "-"), "max", new A.ArgumentInvocation0(t1, t3, null, null, t2), t4);
  104973. } else
  104974. t1 = this.super$ReplaceExpressionVisitor$visitBinaryOperationExpression0(0, node);
  104975. return t1;
  104976. },
  104977. visitInterpolatedFunctionExpression$1(_, node) {
  104978. return node;
  104979. },
  104980. visitUnaryOperationExpression$1(_, node) {
  104981. var t1,
  104982. _0_0 = node.operator;
  104983. $label0$0: {
  104984. if (B.UnaryOperator_cLp0 === _0_0) {
  104985. t1 = node.operand;
  104986. break $label0$0;
  104987. }
  104988. if (B.UnaryOperator_AiQ0 === _0_0) {
  104989. t1 = new A.BinaryOperationExpression0(B.BinaryOperator_2No0, new A.NumberExpression0(-1, null, node.span), node.operand, false);
  104990. break $label0$0;
  104991. }
  104992. t1 = this.super$ReplaceExpressionVisitor$visitUnaryOperationExpression0(0, node);
  104993. break $label0$0;
  104994. }
  104995. return t1;
  104996. },
  104997. $isExpressionVisitor: 1
  104998. };
  104999. A.__MakeExpressionCalculationSafe_Object_ReplaceExpressionVisitor0.prototype = {};
  105000. A.ExtendRule0.prototype = {
  105001. accept$1$1(visitor) {
  105002. return visitor.visitExtendRule$1(0, this);
  105003. },
  105004. accept$1(visitor) {
  105005. return this.accept$1$1(visitor, type$.dynamic);
  105006. },
  105007. toString$0(_) {
  105008. var t1 = this.selector.toString$0(0),
  105009. t2 = this.isOptional ? " !optional" : "";
  105010. return "@extend " + t1 + t2 + ";";
  105011. },
  105012. get$span(receiver) {
  105013. return this.span;
  105014. }
  105015. };
  105016. A.Extension0.prototype = {
  105017. toString$0(_) {
  105018. var t1 = this.extender.toString$0(0),
  105019. t2 = this.target.toString$0(0),
  105020. t3 = this.isOptional ? " !optional" : "";
  105021. return t1 + " {@extend " + t2 + t3 + "}";
  105022. }
  105023. };
  105024. A.Extender0.prototype = {
  105025. assertCompatibleMediaContext$1(mediaContext) {
  105026. var expectedMediaContext,
  105027. extension = this._extension$_extension;
  105028. if (extension == null)
  105029. return;
  105030. expectedMediaContext = extension.mediaContext;
  105031. if (expectedMediaContext == null)
  105032. return;
  105033. if (mediaContext != null && B.C_ListEquality.equals$2(0, expectedMediaContext, mediaContext))
  105034. return;
  105035. throw A.wrapException(A.SassException$0(string$.You_ma, extension.span, null));
  105036. },
  105037. toString$0(_) {
  105038. return A.serializeSelector0(this.selector, true);
  105039. }
  105040. };
  105041. A.ExtensionStore0.prototype = {
  105042. get$isEmpty(_) {
  105043. return this._extension_store$_extensions.__js_helper$_length === 0;
  105044. },
  105045. get$simpleSelectors() {
  105046. return new A.MapKeySet(this._extension_store$_selectors, type$.MapKeySet_SimpleSelector_2);
  105047. },
  105048. extensionsWhereTarget$1(callback) {
  105049. return new A._SyncStarIterable(this.extensionsWhereTarget$body$ExtensionStore0(callback), type$._SyncStarIterable_Extension_2);
  105050. },
  105051. extensionsWhereTarget$body$ExtensionStore0($async$callback) {
  105052. var $async$self = this;
  105053. return function() {
  105054. var callback = $async$callback;
  105055. var $async$goto = 0, $async$handler = 1, $async$currentError, t1, t2, simple, sources, t3;
  105056. return function $async$extensionsWhereTarget$1($async$iterator, $async$errorCode, $async$result) {
  105057. if ($async$errorCode === 1) {
  105058. $async$currentError = $async$result;
  105059. $async$goto = $async$handler;
  105060. }
  105061. while (true)
  105062. switch ($async$goto) {
  105063. case 0:
  105064. // Function start
  105065. t1 = A.MapExtensions_get_pairs0($async$self._extension_store$_extensions, type$.SimpleSelector_2, type$.Map_ComplexSelector_Extension_2), t1 = t1.get$iterator(t1);
  105066. case 2:
  105067. // for condition
  105068. if (!t1.moveNext$0()) {
  105069. // goto after for
  105070. $async$goto = 3;
  105071. break;
  105072. }
  105073. t2 = t1.get$current(t1);
  105074. simple = t2._0;
  105075. sources = t2._1;
  105076. if (!callback.call$1(simple)) {
  105077. // goto for condition
  105078. $async$goto = 2;
  105079. break;
  105080. }
  105081. t2 = sources.get$values(sources), t2 = t2.get$iterator(t2);
  105082. case 4:
  105083. // for condition
  105084. if (!t2.moveNext$0()) {
  105085. // goto after for
  105086. $async$goto = 5;
  105087. break;
  105088. }
  105089. t3 = t2.get$current(t2);
  105090. $async$goto = t3 instanceof A.MergedExtension0 ? 6 : 8;
  105091. break;
  105092. case 6:
  105093. // then
  105094. t3 = t3.unmerge$0();
  105095. $async$goto = 9;
  105096. return $async$iterator._yieldStar$1(new A.WhereIterable(t3, new A.ExtensionStore_extensionsWhereTarget_closure0(), t3.$ti._eval$1("WhereIterable<Iterable.E>")));
  105097. case 9:
  105098. // after yield
  105099. // goto join
  105100. $async$goto = 7;
  105101. break;
  105102. case 8:
  105103. // else
  105104. $async$goto = !t3.isOptional ? 10 : 11;
  105105. break;
  105106. case 10:
  105107. // then
  105108. $async$goto = 12;
  105109. return $async$iterator._async$_current = t3, 1;
  105110. case 12:
  105111. // after yield
  105112. case 11:
  105113. // join
  105114. case 7:
  105115. // join
  105116. // goto for condition
  105117. $async$goto = 4;
  105118. break;
  105119. case 5:
  105120. // after for
  105121. // goto for condition
  105122. $async$goto = 2;
  105123. break;
  105124. case 3:
  105125. // after for
  105126. // implicit return
  105127. return 0;
  105128. case 1:
  105129. // rethrow
  105130. return $async$iterator._datum = $async$currentError, 3;
  105131. }
  105132. };
  105133. };
  105134. },
  105135. addSelector$2(selector, mediaContext) {
  105136. var originalSelector, error, stackTrace, t1, exception, t2, t3, t4, modifiableSelector, _this = this;
  105137. selector = selector;
  105138. originalSelector = selector;
  105139. if (!originalSelector.accept$1(B._IsInvisibleVisitor_true0))
  105140. _this._extension_store$_originals.addAll$1(0, originalSelector.components);
  105141. t1 = _this._extension_store$_extensions;
  105142. if (t1.__js_helper$_length !== 0)
  105143. try {
  105144. selector = _this._extension_store$_extendList$3(originalSelector, t1, mediaContext);
  105145. } catch (exception) {
  105146. t1 = A.unwrapException(exception);
  105147. if (t1 instanceof A.SassException0) {
  105148. error = t1;
  105149. stackTrace = A.getTraceFromException(exception);
  105150. t1 = error;
  105151. t2 = J.getInterceptor$z(t1);
  105152. t1 = A.SourceSpanException.prototype.get$span.call(t2, t1).message$1(0, "");
  105153. t2 = error._span_exception$_message;
  105154. t3 = error;
  105155. t4 = J.getInterceptor$z(t3);
  105156. t3 = A.SourceSpanException.prototype.get$span.call(t4, t3);
  105157. A.throwWithTrace0(new A.SassException0(B.Set_empty, "From " + t1 + "\n" + t2, t3), error, stackTrace);
  105158. } else
  105159. throw exception;
  105160. }
  105161. modifiableSelector = new A.ModifiableBox0(selector, type$.ModifiableBox_SelectorList_2);
  105162. if (mediaContext != null)
  105163. _this._extension_store$_mediaContexts.$indexSet(0, modifiableSelector, mediaContext);
  105164. _this._extension_store$_registerSelector$2(selector, modifiableSelector);
  105165. return new A.Box0(modifiableSelector, type$.Box_SelectorList_2);
  105166. },
  105167. _extension_store$_registerSelector$2(list, selector) {
  105168. var t1, t2, t3, t4, _i, t5, t6, _i0, t7, t8, _i1, simple, _0_2_isSet, _0_2, t9, selectorInPseudo;
  105169. for (t1 = list.components, t2 = t1.length, t3 = this._extension_store$_selectors, t4 = type$.SelectorList_2, _i = 0; _i < t2; ++_i)
  105170. for (t5 = t1[_i].components, t6 = t5.length, _i0 = 0; _i0 < t6; ++_i0)
  105171. for (t7 = t5[_i0].selector.components, t8 = t7.length, _i1 = 0; _i1 < t8; ++_i1) {
  105172. simple = t7[_i1];
  105173. J.add$1$ax(t3.putIfAbsent$2(simple, new A.ExtensionStore__registerSelector_closure0()), selector);
  105174. _0_2_isSet = simple instanceof A.PseudoSelector0;
  105175. if (_0_2_isSet) {
  105176. _0_2 = simple.selector;
  105177. t9 = _0_2 != null;
  105178. } else {
  105179. _0_2 = null;
  105180. t9 = false;
  105181. }
  105182. if (t9) {
  105183. selectorInPseudo = _0_2_isSet ? _0_2 : simple.selector;
  105184. this._extension_store$_registerSelector$2(selectorInPseudo == null ? t4._as(selectorInPseudo) : selectorInPseudo, selector);
  105185. }
  105186. }
  105187. },
  105188. addExtension$4(extender, target, extend, mediaContext) {
  105189. var t2, t3, t4, t5, t6, t7, t8, t9, t10, newExtensions, _i, complex, t11, extension, _0_0, t12, newExtensionsByTarget, additionalExtensions, _this = this,
  105190. selectors = _this._extension_store$_selectors.$index(0, target),
  105191. t1 = _this._extension_store$_extensionsByExtender,
  105192. existingExtensions = t1.$index(0, target),
  105193. sources = _this._extension_store$_extensions.putIfAbsent$2(target, new A.ExtensionStore_addExtension_closure2());
  105194. for (t2 = extender.components, t3 = t2.length, t4 = selectors == null, t5 = _this._extension_store$_sourceSpecificity, t6 = extend.span, t7 = extend.isOptional, t8 = existingExtensions != null, t9 = type$.ComplexSelector_2, t10 = type$.Extension_2, newExtensions = null, _i = 0; _i < t3; ++_i) {
  105195. complex = t2[_i];
  105196. if (complex.accept$1(B.C__IsUselessVisitor0))
  105197. continue;
  105198. complex.get$specificity();
  105199. t11 = new A.Extender0(complex, false);
  105200. extension = t11._extension$_extension = new A.Extension0(t11, target, mediaContext, t7, t6);
  105201. _0_0 = sources.$index(0, complex);
  105202. if (_0_0 != null) {
  105203. sources.$indexSet(0, complex, A.MergedExtension_merge0(_0_0, extension));
  105204. continue;
  105205. }
  105206. sources.$indexSet(0, complex, extension);
  105207. for (t11 = new A._SyncStarIterator(_this._extension_store$_simpleSelectors$1(complex)._outerHelper()); t11.moveNext$0();) {
  105208. t12 = t11._async$_current;
  105209. J.add$1$ax(t1.putIfAbsent$2(t12, new A.ExtensionStore_addExtension_closure3()), extension);
  105210. t5.putIfAbsent$2(t12, new A.ExtensionStore_addExtension_closure4(complex));
  105211. }
  105212. if (!t4 || t8) {
  105213. if (newExtensions == null)
  105214. newExtensions = A.LinkedHashMap_LinkedHashMap$_empty(t9, t10);
  105215. newExtensions.$indexSet(0, complex, extension);
  105216. }
  105217. }
  105218. if (newExtensions == null)
  105219. return;
  105220. t1 = type$.SimpleSelector_2;
  105221. newExtensionsByTarget = A.LinkedHashMap_LinkedHashMap$_literal([target, newExtensions], t1, type$.Map_ComplexSelector_Extension_2);
  105222. if (t8) {
  105223. additionalExtensions = _this._extension_store$_extendExistingExtensions$2(existingExtensions, newExtensionsByTarget);
  105224. if (additionalExtensions != null)
  105225. A.mapAddAll20(newExtensionsByTarget, additionalExtensions, t1, t9, t10);
  105226. }
  105227. if (!t4)
  105228. _this._extension_store$_extendExistingSelectors$2(selectors, newExtensionsByTarget);
  105229. },
  105230. _extension_store$_simpleSelectors$1(complex) {
  105231. return new A._SyncStarIterable(this._simpleSelectors$body$ExtensionStore0(complex), type$._SyncStarIterable_SimpleSelector_2);
  105232. },
  105233. _simpleSelectors$body$ExtensionStore0($async$complex) {
  105234. var $async$self = this;
  105235. return function() {
  105236. var complex = $async$complex;
  105237. var $async$goto = 0, $async$handler = 1, $async$currentError, t1, t2, t3, _i, t4, t5, _i0, simple, _0_2_isSet, _0_2, t6, selector, t7, _i1;
  105238. return function $async$_extension_store$_simpleSelectors$1($async$iterator, $async$errorCode, $async$result) {
  105239. if ($async$errorCode === 1) {
  105240. $async$currentError = $async$result;
  105241. $async$goto = $async$handler;
  105242. }
  105243. while (true)
  105244. switch ($async$goto) {
  105245. case 0:
  105246. // Function start
  105247. t1 = complex.components, t2 = t1.length, t3 = type$.SelectorList_2, _i = 0;
  105248. case 2:
  105249. // for condition
  105250. if (!(_i < t2)) {
  105251. // goto after for
  105252. $async$goto = 4;
  105253. break;
  105254. }
  105255. t4 = t1[_i].selector.components, t5 = t4.length, _i0 = 0;
  105256. case 5:
  105257. // for condition
  105258. if (!(_i0 < t5)) {
  105259. // goto after for
  105260. $async$goto = 7;
  105261. break;
  105262. }
  105263. simple = t4[_i0];
  105264. $async$goto = 8;
  105265. return $async$iterator._async$_current = simple, 1;
  105266. case 8:
  105267. // after yield
  105268. _0_2_isSet = simple instanceof A.PseudoSelector0;
  105269. if (_0_2_isSet) {
  105270. _0_2 = simple.selector;
  105271. t6 = _0_2 != null;
  105272. } else {
  105273. _0_2 = null;
  105274. t6 = false;
  105275. }
  105276. $async$goto = t6 ? 9 : 10;
  105277. break;
  105278. case 9:
  105279. // then
  105280. selector = _0_2_isSet ? _0_2 : simple.selector;
  105281. t6 = (selector == null ? t3._as(selector) : selector).components, t7 = t6.length, _i1 = 0;
  105282. case 11:
  105283. // for condition
  105284. if (!(_i1 < t7)) {
  105285. // goto after for
  105286. $async$goto = 13;
  105287. break;
  105288. }
  105289. $async$goto = 14;
  105290. return $async$iterator._yieldStar$1($async$self._extension_store$_simpleSelectors$1(t6[_i1]));
  105291. case 14:
  105292. // after yield
  105293. case 12:
  105294. // for update
  105295. ++_i1;
  105296. // goto for condition
  105297. $async$goto = 11;
  105298. break;
  105299. case 13:
  105300. // after for
  105301. case 10:
  105302. // join
  105303. case 6:
  105304. // for update
  105305. ++_i0;
  105306. // goto for condition
  105307. $async$goto = 5;
  105308. break;
  105309. case 7:
  105310. // after for
  105311. case 3:
  105312. // for update
  105313. ++_i;
  105314. // goto for condition
  105315. $async$goto = 2;
  105316. break;
  105317. case 4:
  105318. // after for
  105319. // implicit return
  105320. return 0;
  105321. case 1:
  105322. // rethrow
  105323. return $async$iterator._datum = $async$currentError, 3;
  105324. }
  105325. };
  105326. };
  105327. },
  105328. _extension_store$_extendExistingExtensions$2(extensions, newExtensions) {
  105329. var extension, selectors, error, stackTrace, t1, t2, t3, t4, t5, t6, additionalExtensions, _i, t7, exception, t8, t9, selectors0, t10, t11, t12, t13, t14, withExtender, _0_0, _i0, _i1;
  105330. for (t1 = J.toList$0$ax(extensions), t2 = t1.length, t3 = this._extension_store$_extensionsByExtender, t4 = type$.SimpleSelector_2, t5 = type$.Map_ComplexSelector_Extension_2, t6 = this._extension_store$_extensions, additionalExtensions = null, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
  105331. extension = t1[_i];
  105332. t7 = t6.$index(0, extension.target);
  105333. t7.toString;
  105334. selectors = null;
  105335. try {
  105336. selectors = this._extension_store$_extendComplex$3(extension.extender.selector, newExtensions, extension.mediaContext);
  105337. if (selectors == null)
  105338. continue;
  105339. } catch (exception) {
  105340. t8 = A.unwrapException(exception);
  105341. if (t8 instanceof A.SassException0) {
  105342. error = t8;
  105343. stackTrace = A.getTraceFromException(exception);
  105344. A.throwWithTrace0(error.withAdditionalSpan$2(extension.extender.selector.span, "target selector"), error, stackTrace);
  105345. } else
  105346. throw exception;
  105347. }
  105348. t8 = J.get$first$ax(selectors);
  105349. t9 = extension.extender.selector;
  105350. if (B.C_ListEquality.equals$2(0, t8.leadingCombinators, t9.leadingCombinators) && B.C_ListEquality.equals$2(0, t8.components, t9.components)) {
  105351. t8 = selectors;
  105352. t9 = A._arrayInstanceType(t8);
  105353. selectors0 = new A.SubListIterable(t8, 1, null, t9._eval$1("SubListIterable<1>"));
  105354. selectors0.SubListIterable$3(t8, 1, null, t9._precomputed1);
  105355. selectors = selectors0;
  105356. }
  105357. for (t8 = J.get$iterator$ax(selectors); t8.moveNext$0();) {
  105358. t9 = t8.get$current(t8);
  105359. t10 = extension;
  105360. t11 = t10.target;
  105361. t12 = t10.span;
  105362. t13 = t10.mediaContext;
  105363. t10 = t10.isOptional;
  105364. t9.get$specificity();
  105365. t14 = new A.Extender0(t9, false);
  105366. withExtender = t14._extension$_extension = new A.Extension0(t14, t11, t13, t10, t12);
  105367. _0_0 = t7.$index(0, t9);
  105368. if (_0_0 != null)
  105369. t7.$indexSet(0, t9, A.MergedExtension_merge0(_0_0, withExtender));
  105370. else {
  105371. t7.$indexSet(0, t9, withExtender);
  105372. for (t10 = t9.components, t11 = t10.length, _i0 = 0; _i0 < t11; ++_i0)
  105373. for (t12 = t10[_i0].selector.components, t13 = t12.length, _i1 = 0; _i1 < t13; ++_i1)
  105374. J.add$1$ax(t3.putIfAbsent$2(t12[_i1], new A.ExtensionStore__extendExistingExtensions_closure1()), withExtender);
  105375. if (newExtensions.containsKey$1(extension.target)) {
  105376. if (additionalExtensions == null)
  105377. additionalExtensions = A.LinkedHashMap_LinkedHashMap$_empty(t4, t5);
  105378. additionalExtensions.putIfAbsent$2(extension.target, new A.ExtensionStore__extendExistingExtensions_closure2()).$indexSet(0, t9, withExtender);
  105379. }
  105380. }
  105381. }
  105382. }
  105383. return additionalExtensions;
  105384. },
  105385. _extension_store$_extendExistingSelectors$2(selectors, newExtensions) {
  105386. var selector, error, stackTrace, t1, t2, oldValue, exception, t3, t4, t5, t6;
  105387. for (t1 = selectors.get$iterator(selectors), t2 = this._extension_store$_mediaContexts; t1.moveNext$0();) {
  105388. selector = t1.get$current(t1);
  105389. oldValue = selector.value;
  105390. try {
  105391. selector.value = this._extension_store$_extendList$3(selector.value, newExtensions, t2.$index(0, selector));
  105392. } catch (exception) {
  105393. t3 = A.unwrapException(exception);
  105394. if (t3 instanceof A.SassException0) {
  105395. error = t3;
  105396. stackTrace = A.getTraceFromException(exception);
  105397. t3 = selector.value.span.message$1(0, "");
  105398. t4 = error._span_exception$_message;
  105399. t5 = error;
  105400. t6 = J.getInterceptor$z(t5);
  105401. t5 = A.SourceSpanException.prototype.get$span.call(t6, t5);
  105402. A.throwWithTrace0(new A.SassException0(B.Set_empty, "From " + t3 + "\n" + t4, t5), error, stackTrace);
  105403. } else
  105404. throw exception;
  105405. }
  105406. if (oldValue === selector.value)
  105407. continue;
  105408. this._extension_store$_registerSelector$2(selector.value, selector);
  105409. }
  105410. },
  105411. addExtensions$1(extensionStores) {
  105412. var t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, newExtensions, selectorsToExtend, extensionsToExtend, t12, t13, target, newSources, first, extensionsForTarget, t14, selectorsForTarget, t15, _2_0, t16, extender, extension, _this = this, _null = null;
  105413. for (t1 = J.get$iterator$ax(extensionStores), t2 = type$.SimpleSelector_2, t3 = type$.Map_ComplexSelector_Extension_2, t4 = _this._extension_store$_extensions, t5 = type$.ComplexSelector_2, t6 = type$.Extension_2, t7 = _this._extension_store$_selectors, t8 = _this._extension_store$_extensionsByExtender, t9 = type$.JSArray_Extension_2, t10 = type$.ModifiableBox_SelectorList_2, t11 = _this._extension_store$_sourceSpecificity, newExtensions = _null, selectorsToExtend = newExtensions, extensionsToExtend = selectorsToExtend; t1.moveNext$0();) {
  105414. t12 = t1.get$current(t1);
  105415. if (t12.get$isEmpty(t12))
  105416. continue;
  105417. t11.addAll$1(0, t12.get$_extension_store$_sourceSpecificity());
  105418. for (t12 = A.MapExtensions_get_pairs0(t12.get$_extension_store$_extensions(), t2, t3), t12 = t12.get$iterator(t12); t12.moveNext$0();) {
  105419. t13 = t12.get$current(t12);
  105420. target = t13._0;
  105421. newSources = t13._1;
  105422. if (target instanceof A.PlaceholderSelector0) {
  105423. first = target.name.charCodeAt(0);
  105424. t13 = first === 45 || first === 95;
  105425. } else
  105426. t13 = false;
  105427. if (t13)
  105428. continue;
  105429. extensionsForTarget = t8.$index(0, target);
  105430. t13 = extensionsForTarget == null;
  105431. if (!t13) {
  105432. if (extensionsToExtend == null) {
  105433. extensionsToExtend = A._setArrayType([], t9);
  105434. t14 = extensionsToExtend;
  105435. } else
  105436. t14 = extensionsToExtend;
  105437. B.JSArray_methods.addAll$1(t14, extensionsForTarget);
  105438. }
  105439. selectorsForTarget = t7.$index(0, target);
  105440. t14 = selectorsForTarget != null;
  105441. if (t14) {
  105442. if (selectorsToExtend == null) {
  105443. selectorsToExtend = A.LinkedHashSet_LinkedHashSet$_empty(t10);
  105444. t15 = selectorsToExtend;
  105445. } else
  105446. t15 = selectorsToExtend;
  105447. t15.addAll$1(0, selectorsForTarget);
  105448. }
  105449. _2_0 = t4.$index(0, target);
  105450. if (_2_0 != null)
  105451. for (t15 = A.MapExtensions_get_pairs0(newSources, t5, t6), t15 = t15.get$iterator(t15); t15.moveNext$0();) {
  105452. t16 = t15.get$current(t15);
  105453. extender = t16._0;
  105454. extension = t16._1;
  105455. if (_2_0.containsKey$1(extender)) {
  105456. t16 = _2_0.$index(0, extender);
  105457. extension = A.MergedExtension_merge0(t16 == null ? t6._as(t16) : t16, extension);
  105458. _2_0.$indexSet(0, extender, extension);
  105459. } else
  105460. _2_0.$indexSet(0, extender, extension);
  105461. if (!t13 || t14) {
  105462. if (newExtensions == null) {
  105463. newExtensions = A.LinkedHashMap_LinkedHashMap$_empty(t2, t3);
  105464. t16 = newExtensions;
  105465. } else
  105466. t16 = newExtensions;
  105467. J.$indexSet$ax(t16.putIfAbsent$2(target, new A.ExtensionStore_addExtensions_closure0()), extender, extension);
  105468. }
  105469. }
  105470. else {
  105471. t15 = A.LinkedHashMap_LinkedHashMap(_null, _null, _null, t5, t6);
  105472. t15.addAll$1(0, newSources);
  105473. t4.$indexSet(0, target, t15);
  105474. if (!t13 || t14) {
  105475. if (newExtensions == null) {
  105476. newExtensions = A.LinkedHashMap_LinkedHashMap$_empty(t2, t3);
  105477. t13 = newExtensions;
  105478. } else
  105479. t13 = newExtensions;
  105480. t14 = A.LinkedHashMap_LinkedHashMap(_null, _null, _null, t5, t6);
  105481. t14.addAll$1(0, newSources);
  105482. t13.$indexSet(0, target, t14);
  105483. }
  105484. }
  105485. }
  105486. }
  105487. if (newExtensions != null) {
  105488. if (extensionsToExtend != null)
  105489. _this._extension_store$_extendExistingExtensions$2(extensionsToExtend, newExtensions);
  105490. if (selectorsToExtend != null)
  105491. _this._extension_store$_extendExistingSelectors$2(selectorsToExtend, newExtensions);
  105492. }
  105493. },
  105494. _extension_store$_extendList$3(list, extensions, mediaQueryContext) {
  105495. var t1, t2, t3, extended, i, complex, result, t4;
  105496. for (t1 = list.components, t2 = t1.length, t3 = type$.JSArray_ComplexSelector_2, extended = null, i = 0; i < t2; ++i) {
  105497. complex = t1[i];
  105498. result = this._extension_store$_extendComplex$3(complex, extensions, mediaQueryContext);
  105499. if (result == null) {
  105500. if (extended != null)
  105501. extended.push(complex);
  105502. } else {
  105503. if (extended == null)
  105504. if (i === 0)
  105505. extended = A._setArrayType([], t3);
  105506. else {
  105507. t4 = B.JSArray_methods.sublist$2(t1, 0, i);
  105508. extended = A._setArrayType(t4.slice(0), A._arrayInstanceType(t4));
  105509. }
  105510. B.JSArray_methods.addAll$1(extended, result);
  105511. }
  105512. }
  105513. if (extended == null)
  105514. return list;
  105515. t1 = this._extension_store$_originals;
  105516. return A.SelectorList$0(this._extension_store$_trim$2(extended, t1.get$contains(t1)), list.span);
  105517. },
  105518. _extension_store$_extendList$2(list, extensions) {
  105519. return this._extension_store$_extendList$3(list, extensions, null);
  105520. },
  105521. _extension_store$_extendComplex$3(complex, extensions, mediaQueryContext) {
  105522. var isOriginal, t3, t4, t5, t6, t7, t8, t9, t10, extendedNotExpanded, i, component, extended, t11, t12, t13, t14, _box_0 = {},
  105523. t1 = complex.leadingCombinators,
  105524. t2 = t1.length;
  105525. if (t2 > 1)
  105526. return null;
  105527. isOriginal = this._extension_store$_originals.contains$1(0, complex);
  105528. for (t3 = complex.components, t4 = t3.length, t5 = type$.JSArray_List_ComplexSelector_2, t6 = complex.lineBreak, t7 = !t6, t8 = complex.span, t9 = type$.JSArray_ComplexSelector_2, t2 = t2 === 0, t10 = type$.JSArray_ComplexSelectorComponent_2, extendedNotExpanded = null, i = 0; i < t4; ++i) {
  105529. component = t3[i];
  105530. extended = this._extension_store$_extendCompound$4$inOriginal(component, extensions, mediaQueryContext, isOriginal);
  105531. if (extended == null) {
  105532. if (extendedNotExpanded != null)
  105533. extendedNotExpanded.push(A._setArrayType([A.ComplexSelector$0(B.List_empty14, A._setArrayType([component], t10), t8, t6)], t9));
  105534. } else if (extendedNotExpanded != null)
  105535. extendedNotExpanded.push(extended);
  105536. else if (i !== 0) {
  105537. t11 = A._arrayInstanceType(t3);
  105538. t12 = new A.SubListIterable(t3, 0, i, t11._eval$1("SubListIterable<1>"));
  105539. t12.SubListIterable$3(t3, 0, i, t11._precomputed1);
  105540. extendedNotExpanded = A._setArrayType([A._setArrayType([A.ComplexSelector$0(t1, t12, t8, t6)], t9), extended], t5);
  105541. } else if (t2)
  105542. extendedNotExpanded = A._setArrayType([extended], t5);
  105543. else {
  105544. t11 = A._setArrayType([], t9);
  105545. for (t12 = J.get$iterator$ax(extended); t12.moveNext$0();) {
  105546. t13 = t12.get$current(t12);
  105547. t14 = t13.leadingCombinators;
  105548. if (t14.length === 0 || B.C_ListEquality.equals$2(0, t1, t14)) {
  105549. t14 = t13.components;
  105550. t11.push(A.ComplexSelector$0(t1, t14, t8, !t7 || t13.lineBreak));
  105551. }
  105552. }
  105553. extendedNotExpanded = A._setArrayType([t11], t5);
  105554. }
  105555. }
  105556. if (extendedNotExpanded == null)
  105557. return null;
  105558. _box_0.first = true;
  105559. t1 = type$.ComplexSelector_2;
  105560. t1 = J.expand$1$1$ax(A.paths0(extendedNotExpanded, t1), new A.ExtensionStore__extendComplex_closure0(_box_0, this, complex), t1);
  105561. return A.List_List$of(t1, true, t1.$ti._eval$1("Iterable.E"));
  105562. },
  105563. _extension_store$_extendCompound$4$inOriginal(component, extensions, mediaQueryContext, inOriginal) {
  105564. var t3, t4, t5, t6, t7, t8, t9, t10, t11, options, i, simple, extended, t12, result, compound, complex, extenderPaths, withCombinators, isOriginal, _this = this, _null = null,
  105565. t1 = _this._extension_store$_mode,
  105566. targetsUsed = t1 === B.ExtendMode_normal_normal0 || extensions.__js_helper$_length < 2 ? _null : A.LinkedHashSet_LinkedHashSet$_empty(type$.SimpleSelector_2),
  105567. t2 = component.selector,
  105568. simples = t2.components;
  105569. for (t3 = simples.length, t4 = type$.JSArray_List_Extender_2, t5 = type$.JSArray_Extender_2, t6 = type$.CssValue_Combinator_2, t7 = type$.JSArray_ComplexSelectorComponent_2, t8 = A._arrayInstanceType(simples), t9 = t8._precomputed1, t8 = t8._eval$1("SubListIterable<1>"), t10 = component.span, t11 = type$.SimpleSelector_2, options = _null, i = 0; i < t3; ++i) {
  105570. simple = simples[i];
  105571. extended = _this._extension_store$_extendSimple$4(simple, extensions, mediaQueryContext, targetsUsed);
  105572. if (extended == null) {
  105573. if (options != null)
  105574. options.push(A._setArrayType([_this._extension_store$_extenderForSimple$1(simple)], t5));
  105575. } else {
  105576. if (options == null) {
  105577. options = A._setArrayType([], t4);
  105578. if (i !== 0) {
  105579. t12 = new A.SubListIterable(simples, 0, i, t8);
  105580. t12.SubListIterable$3(simples, 0, i, t9);
  105581. result = A.List_List$from(t12, false, t11);
  105582. result.fixed$length = Array;
  105583. result.immutable$list = Array;
  105584. t12 = result;
  105585. compound = new A.CompoundSelector0(t12, t10);
  105586. if (t12.length === 0)
  105587. A.throwExpression(A.ArgumentError$("components may not be empty.", _null));
  105588. result = A.List_List$from(B.List_empty14, false, t6);
  105589. result.fixed$length = Array;
  105590. result.immutable$list = Array;
  105591. t12 = A.ComplexSelector$0(B.List_empty14, A._setArrayType([new A.ComplexSelectorComponent0(compound, result, t10)], t7), t10, false);
  105592. _this._extension_store$_sourceSpecificityFor$1(compound);
  105593. options.push(A._setArrayType([new A.Extender0(t12, true)], t5));
  105594. }
  105595. }
  105596. B.JSArray_methods.addAll$1(options, extended);
  105597. }
  105598. }
  105599. if (options == null)
  105600. return _null;
  105601. if (targetsUsed != null && targetsUsed._collection$_length !== extensions.__js_helper$_length)
  105602. return _null;
  105603. if (options.length === 1) {
  105604. for (t1 = J.get$iterator$ax(options[0]), t2 = component.combinators, t3 = type$.JSArray_ComplexSelector_2, result = _null; t1.moveNext$0();) {
  105605. t4 = t1.get$current(t1);
  105606. t4.assertCompatibleMediaContext$1(mediaQueryContext);
  105607. complex = t4.selector.withAdditionalCombinators$1(t2);
  105608. if (complex.accept$1(B.C__IsUselessVisitor0))
  105609. continue;
  105610. if (result == null)
  105611. result = A._setArrayType([], t3);
  105612. result.push(complex);
  105613. }
  105614. return result;
  105615. }
  105616. extenderPaths = A.paths0(options, type$.Extender_2);
  105617. t3 = A._setArrayType([], type$.JSArray_ComplexSelector_2);
  105618. t1 = t1 === B.ExtendMode_replace_replace0;
  105619. t4 = !t1;
  105620. if (t4)
  105621. t3.push(A.ComplexSelector$0(B.List_empty14, A._setArrayType([new A.ComplexSelectorComponent0(A.CompoundSelector$0(J.expand$1$1$ax(J.get$first$ax(extenderPaths), new A.ExtensionStore__extendCompound_closure2(), t11), t2.span), A.List_List$unmodifiable(component.combinators, t6), t10)], t7), t10, false));
  105622. t2 = J.skip$1$ax(extenderPaths, t1 ? 0 : 1);
  105623. t5 = t2.$ti;
  105624. t2 = new A.ListIterator(t2, t2.get$length(0), t5._eval$1("ListIterator<ListIterable.E>"));
  105625. t6 = component.combinators;
  105626. t5 = t5._eval$1("ListIterable.E");
  105627. for (; t2.moveNext$0();) {
  105628. t1 = t2.__internal$_current;
  105629. extended = _this._extension_store$_unifyExtenders$3(t1 == null ? t5._as(t1) : t1, mediaQueryContext, t10);
  105630. if (extended == null)
  105631. continue;
  105632. for (t1 = J.get$iterator$ax(extended); t1.moveNext$0();) {
  105633. withCombinators = t1.get$current(t1).withAdditionalCombinators$1(t6);
  105634. if (!withCombinators.accept$1(B.C__IsUselessVisitor0))
  105635. t3.push(withCombinators);
  105636. }
  105637. }
  105638. isOriginal = new A.ExtensionStore__extendCompound_closure3();
  105639. return _this._extension_store$_trim$2(t3, inOriginal && t4 ? new A.ExtensionStore__extendCompound_closure4(B.JSArray_methods.get$first(t3)) : isOriginal);
  105640. },
  105641. _extension_store$_unifyExtenders$3(extenders, mediaQueryContext, span) {
  105642. var t1, t2, t3, originals, originalsLineBreak, t4, complexes, _null = null,
  105643. toUnify = A.QueueList$(_null, type$.ComplexSelector_2);
  105644. for (t1 = J.getInterceptor$ax(extenders), t2 = t1.get$iterator(extenders), t3 = type$.JSArray_SimpleSelector_2, originals = _null, originalsLineBreak = false; t2.moveNext$0();) {
  105645. t4 = t2.get$current(t2);
  105646. if (t4.isOriginal) {
  105647. if (originals == null)
  105648. originals = A._setArrayType([], t3);
  105649. t4 = t4.selector;
  105650. B.JSArray_methods.addAll$1(originals, B.JSArray_methods.get$last(t4.components).selector.components);
  105651. originalsLineBreak = originalsLineBreak || t4.lineBreak;
  105652. } else {
  105653. t4 = t4.selector;
  105654. if (t4.accept$1(B.C__IsUselessVisitor0))
  105655. return _null;
  105656. else
  105657. toUnify._queue_list$_add$1(t4);
  105658. }
  105659. }
  105660. if (originals != null)
  105661. toUnify.addFirst$1(A.ComplexSelector$0(B.List_empty14, A._setArrayType([new A.ComplexSelectorComponent0(A.CompoundSelector$0(originals, span), A.List_List$unmodifiable(B.List_empty14, type$.CssValue_Combinator_2), span)], type$.JSArray_ComplexSelectorComponent_2), span, originalsLineBreak));
  105662. complexes = A.unifyComplex0(toUnify, span);
  105663. if (complexes == null)
  105664. return _null;
  105665. for (t1 = t1.get$iterator(extenders); t1.moveNext$0();)
  105666. t1.get$current(t1).assertCompatibleMediaContext$1(mediaQueryContext);
  105667. return complexes;
  105668. },
  105669. _extension_store$_extendSimple$4(simple, extensions, mediaQueryContext, targetsUsed) {
  105670. var t2, _1_0,
  105671. t1 = new A.ExtensionStore__extendSimple_withoutPseudo0(this, extensions, targetsUsed);
  105672. if (simple instanceof A.PseudoSelector0)
  105673. t2 = simple.selector != null;
  105674. else
  105675. t2 = false;
  105676. if (t2) {
  105677. _1_0 = this._extension_store$_extendPseudo$3(simple, extensions, mediaQueryContext);
  105678. if (_1_0 != null)
  105679. return new A.MappedListIterable(_1_0, new A.ExtensionStore__extendSimple_closure1(this, t1), A._arrayInstanceType(_1_0)._eval$1("MappedListIterable<1,List<Extender0>>"));
  105680. }
  105681. return A.NullableExtension_andThen0(t1.call$1(simple), new A.ExtensionStore__extendSimple_closure2());
  105682. },
  105683. _extension_store$_extenderForSimple$1(simple) {
  105684. var t1 = simple.span;
  105685. t1 = A.ComplexSelector$0(B.List_empty14, A._setArrayType([new A.ComplexSelectorComponent0(A.CompoundSelector$0(A._setArrayType([simple], type$.JSArray_SimpleSelector_2), t1), A.List_List$unmodifiable(B.List_empty14, type$.CssValue_Combinator_2), t1)], type$.JSArray_ComplexSelectorComponent_2), t1, false);
  105686. this._extension_store$_sourceSpecificity.$index(0, simple);
  105687. return new A.Extender0(t1, true);
  105688. },
  105689. _extension_store$_extendPseudo$3(pseudo, extensions, mediaQueryContext) {
  105690. var extended, complexes, t1, result,
  105691. selector = pseudo.selector;
  105692. if (selector == null)
  105693. throw A.wrapException(A.ArgumentError$("Selector " + pseudo.toString$0(0) + " must have a selector argument.", null));
  105694. extended = this._extension_store$_extendList$3(selector, extensions, mediaQueryContext);
  105695. if (extended === selector)
  105696. return null;
  105697. complexes = extended.components;
  105698. t1 = pseudo.normalizedName === "not";
  105699. if (t1 && !B.JSArray_methods.any$1(selector.components, new A.ExtensionStore__extendPseudo_closure4()) && B.JSArray_methods.any$1(complexes, new A.ExtensionStore__extendPseudo_closure5()))
  105700. complexes = new A.WhereIterable(complexes, new A.ExtensionStore__extendPseudo_closure6(), A._arrayInstanceType(complexes)._eval$1("WhereIterable<1>"));
  105701. complexes = J.expand$1$1$ax(complexes, new A.ExtensionStore__extendPseudo_closure7(pseudo), type$.ComplexSelector_2);
  105702. if (t1 && selector.components.length === 1) {
  105703. t1 = A.MappedIterable_MappedIterable(complexes, new A.ExtensionStore__extendPseudo_closure8(pseudo, selector), complexes.$ti._eval$1("Iterable.E"), type$.PseudoSelector_2);
  105704. result = A.List_List$of(t1, true, A._instanceType(t1)._eval$1("Iterable.E"));
  105705. return result.length === 0 ? null : result;
  105706. } else
  105707. return A._setArrayType([pseudo.withSelector$1(A.SelectorList$0(complexes, selector.span))], type$.JSArray_PseudoSelector_2);
  105708. },
  105709. _extension_store$_trim$2(selectors, isOriginal) {
  105710. var i, t1, t2, numOriginals, _box_0, complex1, j, t3, t4, _i, t5, maxSpecificity,
  105711. result = A.QueueList$(null, type$.ComplexSelector_2);
  105712. $label0$0:
  105713. for (i = selectors.length - 1, t1 = A._arrayInstanceType(selectors), t2 = t1._precomputed1, t1 = t1._eval$1("SubListIterable<1>"), numOriginals = 0; i >= 0; --i) {
  105714. _box_0 = {};
  105715. complex1 = selectors[i];
  105716. if (isOriginal.call$1(complex1)) {
  105717. for (j = 0; j < numOriginals; ++j)
  105718. if (J.$eq$(result.$index(0, j), complex1)) {
  105719. A.rotateSlice0(result, 0, j + 1);
  105720. continue $label0$0;
  105721. }
  105722. ++numOriginals;
  105723. result.addFirst$1(complex1);
  105724. continue $label0$0;
  105725. }
  105726. _box_0.maxSpecificity = 0;
  105727. for (t3 = complex1.components, t4 = t3.length, _i = 0, t5 = 0; _i < t4; ++_i, t5 = maxSpecificity) {
  105728. maxSpecificity = Math.max(t5, this._extension_store$_sourceSpecificityFor$1(t3[_i].selector));
  105729. _box_0.maxSpecificity = maxSpecificity;
  105730. }
  105731. if (result.any$1(result, new A.ExtensionStore__trim_closure1(_box_0, complex1)))
  105732. continue $label0$0;
  105733. t3 = new A.SubListIterable(selectors, 0, i, t1);
  105734. t3.SubListIterable$3(selectors, 0, i, t2);
  105735. if (t3.any$1(0, new A.ExtensionStore__trim_closure2(_box_0, complex1)))
  105736. continue $label0$0;
  105737. result.addFirst$1(complex1);
  105738. }
  105739. return result;
  105740. },
  105741. _extension_store$_sourceSpecificityFor$1(compound) {
  105742. var t1, t2, t3, specificity, _i, t4;
  105743. for (t1 = compound.components, t2 = t1.length, t3 = this._extension_store$_sourceSpecificity, specificity = 0, _i = 0; _i < t2; ++_i) {
  105744. t4 = t3.$index(0, t1[_i]);
  105745. specificity = Math.max(specificity, A.checkNum(t4 == null ? 0 : t4));
  105746. }
  105747. return specificity;
  105748. },
  105749. clone$0() {
  105750. var t2, t3, t4, _this = this,
  105751. t1 = type$.SimpleSelector_2,
  105752. newSelectors = A.LinkedHashMap_LinkedHashMap$_empty(t1, type$.Set_ModifiableBox_SelectorList_2),
  105753. newMediaContexts = A.LinkedHashMap_LinkedHashMap$_empty(type$.ModifiableBox_SelectorList_2, type$.List_CssMediaQuery_2),
  105754. oldToNewSelectors = new A.JsIdentityLinkedHashMap(type$.JsIdentityLinkedHashMap_of_SelectorList_and_Box_SelectorList_2);
  105755. _this._extension_store$_selectors.forEach$1(0, new A.ExtensionStore_clone_closure0(_this, newSelectors, oldToNewSelectors, newMediaContexts));
  105756. t2 = type$.Extension_2;
  105757. t3 = A.copyMapOfMap0(_this._extension_store$_extensions, t1, type$.ComplexSelector_2, t2);
  105758. t2 = A.copyMapOfList0(_this._extension_store$_extensionsByExtender, t1, t2);
  105759. t1 = new A.JsIdentityLinkedHashMap(type$.JsIdentityLinkedHashMap_SimpleSelector_int_2);
  105760. t1.addAll$1(0, _this._extension_store$_sourceSpecificity);
  105761. t4 = new A._LinkedIdentityHashSet(type$._LinkedIdentityHashSet_ComplexSelector_2);
  105762. t4.addAll$1(0, _this._extension_store$_originals);
  105763. return new A._Record_2(new A.ExtensionStore0(newSelectors, t3, t2, newMediaContexts, t1, t4, B.ExtendMode_normal_normal0), oldToNewSelectors);
  105764. },
  105765. get$_extension_store$_extensions() {
  105766. return this._extension_store$_extensions;
  105767. },
  105768. get$_extension_store$_sourceSpecificity() {
  105769. return this._extension_store$_sourceSpecificity;
  105770. }
  105771. };
  105772. A.ExtensionStore_extensionsWhereTarget_closure0.prototype = {
  105773. call$1(extension) {
  105774. return !extension.isOptional;
  105775. },
  105776. $signature: 468
  105777. };
  105778. A.ExtensionStore__registerSelector_closure0.prototype = {
  105779. call$0() {
  105780. return A.LinkedHashSet_LinkedHashSet$_empty(type$.ModifiableBox_SelectorList_2);
  105781. },
  105782. $signature: 469
  105783. };
  105784. A.ExtensionStore_addExtension_closure2.prototype = {
  105785. call$0() {
  105786. return A.LinkedHashMap_LinkedHashMap$_empty(type$.ComplexSelector_2, type$.Extension_2);
  105787. },
  105788. $signature: 131
  105789. };
  105790. A.ExtensionStore_addExtension_closure3.prototype = {
  105791. call$0() {
  105792. return A._setArrayType([], type$.JSArray_Extension_2);
  105793. },
  105794. $signature: 233
  105795. };
  105796. A.ExtensionStore_addExtension_closure4.prototype = {
  105797. call$0() {
  105798. return this.complex.get$specificity();
  105799. },
  105800. $signature: 10
  105801. };
  105802. A.ExtensionStore__extendExistingExtensions_closure1.prototype = {
  105803. call$0() {
  105804. return A._setArrayType([], type$.JSArray_Extension_2);
  105805. },
  105806. $signature: 233
  105807. };
  105808. A.ExtensionStore__extendExistingExtensions_closure2.prototype = {
  105809. call$0() {
  105810. return A.LinkedHashMap_LinkedHashMap$_empty(type$.ComplexSelector_2, type$.Extension_2);
  105811. },
  105812. $signature: 131
  105813. };
  105814. A.ExtensionStore_addExtensions_closure0.prototype = {
  105815. call$0() {
  105816. return A.LinkedHashMap_LinkedHashMap$_empty(type$.ComplexSelector_2, type$.Extension_2);
  105817. },
  105818. $signature: 131
  105819. };
  105820. A.ExtensionStore__extendComplex_closure0.prototype = {
  105821. call$1(path) {
  105822. var t1 = this.complex;
  105823. return J.map$1$1$ax(A.weave0(path, t1.span, t1.lineBreak), new A.ExtensionStore__extendComplex__closure0(this._box_0, this.$this, t1), type$.ComplexSelector_2);
  105824. },
  105825. $signature: 472
  105826. };
  105827. A.ExtensionStore__extendComplex__closure0.prototype = {
  105828. call$1(outputComplex) {
  105829. var _this = this,
  105830. t1 = _this._box_0;
  105831. if (t1.first && _this.$this._extension_store$_originals.contains$1(0, _this.complex))
  105832. _this.$this._extension_store$_originals.add$1(0, outputComplex);
  105833. t1.first = false;
  105834. return outputComplex;
  105835. },
  105836. $signature: 59
  105837. };
  105838. A.ExtensionStore__extendCompound_closure2.prototype = {
  105839. call$1(extender) {
  105840. return B.JSArray_methods.get$last(extender.selector.components).selector.components;
  105841. },
  105842. $signature: 474
  105843. };
  105844. A.ExtensionStore__extendCompound_closure3.prototype = {
  105845. call$1(_) {
  105846. return false;
  105847. },
  105848. $signature: 20
  105849. };
  105850. A.ExtensionStore__extendCompound_closure4.prototype = {
  105851. call$1(complex) {
  105852. return complex.$eq(0, this.original);
  105853. },
  105854. $signature: 20
  105855. };
  105856. A.ExtensionStore__extendSimple_withoutPseudo0.prototype = {
  105857. call$1(simple) {
  105858. var t1, t2,
  105859. extensionsForSimple = this.extensions.$index(0, simple);
  105860. if (extensionsForSimple == null)
  105861. return null;
  105862. t1 = this.targetsUsed;
  105863. if (t1 != null)
  105864. t1.add$1(0, simple);
  105865. t1 = A._setArrayType([], type$.JSArray_Extender_2);
  105866. t2 = this.$this;
  105867. if (t2._extension_store$_mode !== B.ExtendMode_replace_replace0)
  105868. t1.push(t2._extension_store$_extenderForSimple$1(simple));
  105869. for (t2 = extensionsForSimple.get$values(extensionsForSimple), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  105870. t1.push(t2.get$current(t2).extender);
  105871. return t1;
  105872. },
  105873. $signature: 475
  105874. };
  105875. A.ExtensionStore__extendSimple_closure1.prototype = {
  105876. call$1(pseudo) {
  105877. var t1 = this.withoutPseudo.call$1(pseudo);
  105878. return t1 == null ? A._setArrayType([this.$this._extension_store$_extenderForSimple$1(pseudo)], type$.JSArray_Extender_2) : t1;
  105879. },
  105880. $signature: 476
  105881. };
  105882. A.ExtensionStore__extendSimple_closure2.prototype = {
  105883. call$1(result) {
  105884. return A._setArrayType([result], type$.JSArray_List_Extender_2);
  105885. },
  105886. $signature: 477
  105887. };
  105888. A.ExtensionStore__extendPseudo_closure4.prototype = {
  105889. call$1(complex) {
  105890. return complex.components.length > 1;
  105891. },
  105892. $signature: 20
  105893. };
  105894. A.ExtensionStore__extendPseudo_closure5.prototype = {
  105895. call$1(complex) {
  105896. return complex.components.length === 1;
  105897. },
  105898. $signature: 20
  105899. };
  105900. A.ExtensionStore__extendPseudo_closure6.prototype = {
  105901. call$1(complex) {
  105902. return complex.components.length <= 1;
  105903. },
  105904. $signature: 20
  105905. };
  105906. A.ExtensionStore__extendPseudo_closure7.prototype = {
  105907. call$1(complex) {
  105908. var innerPseudo, innerSelector,
  105909. t1 = complex.get$singleCompound();
  105910. if (t1 == null)
  105911. innerPseudo = null;
  105912. else {
  105913. t1 = t1.components;
  105914. innerPseudo = t1.length === 1 ? B.JSArray_methods.get$first(t1) : null;
  105915. }
  105916. if (!(innerPseudo instanceof A.PseudoSelector0))
  105917. return A._setArrayType([complex], type$.JSArray_ComplexSelector_2);
  105918. innerSelector = innerPseudo.selector;
  105919. if (innerSelector == null)
  105920. return A._setArrayType([complex], type$.JSArray_ComplexSelector_2);
  105921. t1 = this.pseudo;
  105922. switch (t1.normalizedName) {
  105923. case "not":
  105924. if (!B.Set_mlzm2.contains$1(0, innerPseudo.normalizedName))
  105925. return A._setArrayType([], type$.JSArray_ComplexSelector_2);
  105926. return innerSelector.components;
  105927. case "is":
  105928. case "matches":
  105929. case "where":
  105930. case "any":
  105931. case "current":
  105932. case "nth-child":
  105933. case "nth-last-child":
  105934. if (innerPseudo.name !== t1.name)
  105935. return A._setArrayType([], type$.JSArray_ComplexSelector_2);
  105936. if (innerPseudo.argument != t1.argument)
  105937. return A._setArrayType([], type$.JSArray_ComplexSelector_2);
  105938. return innerSelector.components;
  105939. case "has":
  105940. case "host":
  105941. case "host-context":
  105942. case "slotted":
  105943. return A._setArrayType([complex], type$.JSArray_ComplexSelector_2);
  105944. default:
  105945. return A._setArrayType([], type$.JSArray_ComplexSelector_2);
  105946. }
  105947. },
  105948. $signature: 478
  105949. };
  105950. A.ExtensionStore__extendPseudo_closure8.prototype = {
  105951. call$1(complex) {
  105952. return this.pseudo.withSelector$1(A.SelectorList$0(A._setArrayType([complex], type$.JSArray_ComplexSelector_2), this.selector.span));
  105953. },
  105954. $signature: 479
  105955. };
  105956. A.ExtensionStore__trim_closure1.prototype = {
  105957. call$1(complex2) {
  105958. return complex2.get$specificity() >= this._box_0.maxSpecificity && complex2.isSuperselector$1(this.complex1);
  105959. },
  105960. $signature: 20
  105961. };
  105962. A.ExtensionStore__trim_closure2.prototype = {
  105963. call$1(complex2) {
  105964. return complex2.get$specificity() >= this._box_0.maxSpecificity && complex2.isSuperselector$1(this.complex1);
  105965. },
  105966. $signature: 20
  105967. };
  105968. A.ExtensionStore_clone_closure0.prototype = {
  105969. call$2(simple, selectors) {
  105970. var t2, t3, t4, t5, t6, t7, newSelector, _0_0, _this = this,
  105971. t1 = type$.ModifiableBox_SelectorList_2,
  105972. newSelectorSet = A.LinkedHashSet_LinkedHashSet$_empty(t1);
  105973. _this.newSelectors.$indexSet(0, simple, newSelectorSet);
  105974. for (t2 = selectors.get$iterator(selectors), t3 = _this.oldToNewSelectors, t4 = type$.Box_SelectorList_2, t5 = _this.$this._extension_store$_mediaContexts, t6 = _this.newMediaContexts; t2.moveNext$0();) {
  105975. t7 = t2.get$current(t2);
  105976. newSelector = new A.ModifiableBox0(t7.value, t1);
  105977. newSelectorSet.add$1(0, newSelector);
  105978. t3.$indexSet(0, t7.value, new A.Box0(newSelector, t4));
  105979. _0_0 = t5.$index(0, t7);
  105980. if (_0_0 != null)
  105981. t6.$indexSet(0, newSelector, _0_0);
  105982. }
  105983. },
  105984. $signature: 480
  105985. };
  105986. A.FiberClass.prototype = {};
  105987. A.Fiber.prototype = {};
  105988. A.JSToDartFileImporter.prototype = {
  105989. canonicalize$1(_, url) {
  105990. var result, t1, resultUrl;
  105991. if (url.get$scheme() === "file")
  105992. return $.$get$FilesystemImporter_cwd0().canonicalize$1(0, url);
  105993. result = A.wrapJSExceptions(new A.JSToDartFileImporter_canonicalize_closure(this, url));
  105994. if (result == null)
  105995. return null;
  105996. t1 = self.Promise;
  105997. if (result instanceof t1)
  105998. A.jsThrow(new self.Error("The findFileUrl() function can't return a Promise for synchron compile functions."));
  105999. else {
  106000. t1 = self.URL;
  106001. if (!(result instanceof t1))
  106002. A.jsThrow(new self.Error(string$.The_fie));
  106003. }
  106004. resultUrl = A.Uri_parse(J.toString$0$(type$.JSUrl._as(result)));
  106005. if (resultUrl.get$scheme() !== "file")
  106006. A.jsThrow(new self.Error(string$.The_fiu + url.toString$0(0) + '".'));
  106007. return $.$get$FilesystemImporter_cwd0().canonicalize$1(0, resultUrl);
  106008. },
  106009. load$1(_, url) {
  106010. return $.$get$FilesystemImporter_cwd0().load$1(0, url);
  106011. },
  106012. isNonCanonicalScheme$1(scheme) {
  106013. return scheme !== "file";
  106014. }
  106015. };
  106016. A.JSToDartFileImporter_canonicalize_closure.prototype = {
  106017. call$0() {
  106018. return this.$this._file0$_findFileUrl.call$2(this.url.toString$0(0), A.canonicalizeContext0());
  106019. },
  106020. $signature: 37
  106021. };
  106022. A.FilesystemImporter0.prototype = {
  106023. canonicalize$1(_, url) {
  106024. var resolved;
  106025. if (url.get$scheme() === "file")
  106026. resolved = A.resolveImportPath0($.$get$context().style.pathFromUri$1(A._parseUri(url)));
  106027. else if (url.get$scheme() !== "")
  106028. return null;
  106029. else {
  106030. resolved = A.resolveImportPath0(A.join(this._filesystem$_loadPath, $.$get$context().style.pathFromUri$1(A._parseUri(url)), null));
  106031. if (resolved != null && this._filesystem$_loadPathDeprecated)
  106032. A.warnForDeprecation0(string$.Using_t, B.Deprecation_cI8);
  106033. }
  106034. return A.NullableExtension_andThen0(resolved, new A.FilesystemImporter_canonicalize_closure0());
  106035. },
  106036. load$1(_, url) {
  106037. var path = $.$get$context().style.pathFromUri$1(A._parseUri(url));
  106038. return A.ImporterResult$(A.readFile0(path), url, A.Syntax_forPath0(path));
  106039. },
  106040. toString$0(_) {
  106041. return this._filesystem$_loadPath;
  106042. }
  106043. };
  106044. A.FilesystemImporter_canonicalize_closure0.prototype = {
  106045. call$1(resolved) {
  106046. var t2, t0, _null = null,
  106047. t1 = A.isNodeJs() ? self.process : _null;
  106048. if (!J.$eq$(t1 == null ? _null : J.get$platform$x(t1), "win32")) {
  106049. t1 = A.isNodeJs() ? self.process : _null;
  106050. t1 = J.$eq$(t1 == null ? _null : J.get$platform$x(t1), "darwin");
  106051. } else
  106052. t1 = true;
  106053. if (t1) {
  106054. t1 = $.$get$context();
  106055. t2 = A._realCasePath0(A.absolute(t1.normalize$1(resolved), _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null));
  106056. t0 = t2;
  106057. t2 = t1;
  106058. t1 = t0;
  106059. } else {
  106060. t1 = $.$get$context();
  106061. t2 = t1.canonicalize$1(0, resolved);
  106062. t0 = t2;
  106063. t2 = t1;
  106064. t1 = t0;
  106065. }
  106066. return t2.toUri$1(t1);
  106067. },
  106068. $signature: 128
  106069. };
  106070. A.ForRule0.prototype = {
  106071. accept$1$1(visitor) {
  106072. return visitor.visitForRule$1(0, this);
  106073. },
  106074. accept$1(visitor) {
  106075. return this.accept$1$1(visitor, type$.dynamic);
  106076. },
  106077. toString$0(_) {
  106078. var _this = this,
  106079. t1 = _this.from.toString$0(0),
  106080. t2 = _this.isExclusive ? "to" : "through",
  106081. t3 = _this.children;
  106082. return "@for $" + _this.variable + " from " + t1 + " " + t2 + " " + _this.to.toString$0(0) + " {" + (t3 && B.JSArray_methods).join$1(t3, " ") + "}";
  106083. },
  106084. get$span(receiver) {
  106085. return this.span;
  106086. }
  106087. };
  106088. A.ForwardRule0.prototype = {
  106089. accept$1$1(visitor) {
  106090. return visitor.visitForwardRule$1(0, this);
  106091. },
  106092. accept$1(visitor) {
  106093. return this.accept$1$1(visitor, type$.dynamic);
  106094. },
  106095. toString$0(_) {
  106096. var t2, prefix, _this = this,
  106097. t1 = "@forward " + A.StringExpression_quoteText0(_this.url.toString$0(0)),
  106098. shownMixinsAndFunctions = _this.shownMixinsAndFunctions,
  106099. hiddenMixinsAndFunctions = _this.hiddenMixinsAndFunctions;
  106100. if (shownMixinsAndFunctions != null) {
  106101. t2 = _this.shownVariables;
  106102. t2.toString;
  106103. t2 = t1 + " show " + _this._forward_rule0$_memberList$2(shownMixinsAndFunctions, t2);
  106104. t1 = t2;
  106105. } else if (hiddenMixinsAndFunctions != null && hiddenMixinsAndFunctions._base.get$isNotEmpty(0)) {
  106106. t2 = _this.hiddenVariables;
  106107. t2.toString;
  106108. t2 = t1 + " hide " + _this._forward_rule0$_memberList$2(hiddenMixinsAndFunctions, t2);
  106109. t1 = t2;
  106110. }
  106111. prefix = _this.prefix;
  106112. if (prefix != null)
  106113. t1 += " as " + prefix + "*";
  106114. t2 = _this.configuration;
  106115. t1 = (t2.length !== 0 ? t1 + (" with (" + B.JSArray_methods.join$1(t2, ", ") + ")") : t1) + ";";
  106116. return t1.charCodeAt(0) == 0 ? t1 : t1;
  106117. },
  106118. _forward_rule0$_memberList$2(mixinsAndFunctions, variables) {
  106119. var t2,
  106120. t1 = A.List_List$of(mixinsAndFunctions, true, type$.String);
  106121. for (t2 = variables._base.get$iterator(0); t2.moveNext$0();)
  106122. t1.push("$" + t2.get$current(0));
  106123. return B.JSArray_methods.join$1(t1, ", ");
  106124. },
  106125. get$span(receiver) {
  106126. return this.span;
  106127. }
  106128. };
  106129. A.ForwardedModuleView0.prototype = {
  106130. get$url(_) {
  106131. var t1 = this._forwarded_view0$_inner;
  106132. return t1.get$url(t1);
  106133. },
  106134. get$upstream() {
  106135. return this._forwarded_view0$_inner.get$upstream();
  106136. },
  106137. get$extensionStore() {
  106138. return this._forwarded_view0$_inner.get$extensionStore();
  106139. },
  106140. get$css(_) {
  106141. var t1 = this._forwarded_view0$_inner;
  106142. return t1.get$css(t1);
  106143. },
  106144. get$preModuleComments() {
  106145. return this._forwarded_view0$_inner.get$preModuleComments();
  106146. },
  106147. get$transitivelyContainsCss() {
  106148. return this._forwarded_view0$_inner.get$transitivelyContainsCss();
  106149. },
  106150. get$transitivelyContainsExtensions() {
  106151. return this._forwarded_view0$_inner.get$transitivelyContainsExtensions();
  106152. },
  106153. setVariable$3($name, value, nodeWithSpan) {
  106154. var t2, _1_0, _2_0,
  106155. _s19_ = "Undefined variable.",
  106156. t1 = this._forwarded_view0$_rule,
  106157. _0_0 = t1.shownVariables;
  106158. if (_0_0 != null)
  106159. t2 = !_0_0._base.contains$1(0, $name);
  106160. else
  106161. t2 = false;
  106162. if (t2)
  106163. throw A.wrapException(A.SassScriptException$0(_s19_, null));
  106164. else {
  106165. _1_0 = t1.hiddenVariables;
  106166. if (_1_0 != null)
  106167. t2 = _1_0._base.contains$1(0, $name);
  106168. else
  106169. t2 = false;
  106170. if (t2)
  106171. throw A.wrapException(A.SassScriptException$0(_s19_, null));
  106172. }
  106173. _2_0 = t1.prefix;
  106174. if (_2_0 != null) {
  106175. if (!B.JSString_methods.startsWith$1($name, _2_0))
  106176. throw A.wrapException(A.SassScriptException$0(_s19_, null));
  106177. $name = B.JSString_methods.substring$1($name, _2_0.length);
  106178. }
  106179. return this._forwarded_view0$_inner.setVariable$3($name, value, nodeWithSpan);
  106180. },
  106181. variableIdentity$1($name) {
  106182. var _0_0 = this._forwarded_view0$_rule.prefix;
  106183. if (_0_0 != null)
  106184. $name = B.JSString_methods.substring$1($name, _0_0.length);
  106185. return this._forwarded_view0$_inner.variableIdentity$1($name);
  106186. },
  106187. $eq(_, other) {
  106188. if (other == null)
  106189. return false;
  106190. return other instanceof A.ForwardedModuleView0 && this._forwarded_view0$_inner.$eq(0, other._forwarded_view0$_inner) && this._forwarded_view0$_rule === other._forwarded_view0$_rule;
  106191. },
  106192. get$hashCode(_) {
  106193. var t1 = this._forwarded_view0$_inner;
  106194. return (t1.get$hashCode(t1) ^ A.Primitives_objectHashCode(this._forwarded_view0$_rule)) >>> 0;
  106195. },
  106196. cloneCss$0() {
  106197. return A.ForwardedModuleView$0(this._forwarded_view0$_inner.cloneCss$0(), this._forwarded_view0$_rule, this.$ti._precomputed1);
  106198. },
  106199. toString$0(_) {
  106200. return "forwarded " + this._forwarded_view0$_inner.toString$0(0);
  106201. },
  106202. $isModule1: 1,
  106203. get$variables() {
  106204. return this.variables;
  106205. },
  106206. get$variableNodes() {
  106207. return this.variableNodes;
  106208. },
  106209. get$functions(receiver) {
  106210. return this.functions;
  106211. },
  106212. get$mixins() {
  106213. return this.mixins;
  106214. }
  106215. };
  106216. A.FunctionExpression0.prototype = {
  106217. get$nameSpan() {
  106218. if (this.namespace == null)
  106219. return A.SpanExtensions_initialIdentifier0(this.span);
  106220. return A.SpanExtensions_initialIdentifier0(A.FileSpanExtension_subspan(A.SpanExtensions_withoutInitialIdentifier0(this.span), 1, null));
  106221. },
  106222. accept$1$1(visitor) {
  106223. return visitor.visitFunctionExpression$1(0, this);
  106224. },
  106225. accept$1(visitor) {
  106226. return this.accept$1$1(visitor, type$.dynamic);
  106227. },
  106228. toString$0(_) {
  106229. var t1 = this.namespace;
  106230. t1 = t1 != null ? "" + (t1 + ".") : "";
  106231. t1 += this.originalName + this.$arguments.toString$0(0);
  106232. return t1.charCodeAt(0) == 0 ? t1 : t1;
  106233. },
  106234. get$span(receiver) {
  106235. return this.span;
  106236. }
  106237. };
  106238. A.JSFunction0.prototype = {};
  106239. A.SupportsFunction0.prototype = {
  106240. toInterpolation$0() {
  106241. var t4, t5,
  106242. t1 = new A.StringBuffer(""),
  106243. t2 = new A.InterpolationBuffer0(t1, A._setArrayType([], type$.JSArray_Object), A._setArrayType([], type$.JSArray_nullable_FileSpan)),
  106244. t3 = this.name;
  106245. t2.addInterpolation$1(t3);
  106246. t4 = this.$arguments;
  106247. t5 = t4.span;
  106248. t3 = A.SpanExtensions_between(t3.span, t5);
  106249. t3 = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t3.file._decodedChars, t3._file$_start, t3._end), 0, null);
  106250. t1._contents += t3;
  106251. t2.addInterpolation$1(t4);
  106252. t4 = this.span;
  106253. t5 = A.SpanExtensions_after(t4, t5);
  106254. t5 = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t5.file._decodedChars, t5._file$_start, t5._end), 0, null);
  106255. t1._contents += t5;
  106256. return t2.interpolation$1(t4);
  106257. },
  106258. withSpan$1(span) {
  106259. return new A.SupportsFunction0(this.name, this.$arguments, span);
  106260. },
  106261. toString$0(_) {
  106262. return this.name.toString$0(0) + "(" + this.$arguments.toString$0(0) + ")";
  106263. },
  106264. $isAstNode0: 1,
  106265. $isSassNode: 1,
  106266. $isSupportsCondition: 1,
  106267. get$span(receiver) {
  106268. return this.span;
  106269. }
  106270. };
  106271. A.functionClass_closure.prototype = {
  106272. call$0() {
  106273. var t1 = type$.JSClass,
  106274. jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.SassFunction", new A.functionClass__closure()));
  106275. A.JSClassExtension_injectSuperclass(t1._as(new A.SassFunction0(A.BuiltInCallable$function0("f", "", new A.functionClass__closure0(), null)).constructor), jsClass);
  106276. return jsClass;
  106277. },
  106278. $signature: 16
  106279. };
  106280. A.functionClass__closure.prototype = {
  106281. call$3($self, signature, callback) {
  106282. var paren = B.JSString_methods.indexOf$1(signature, "(");
  106283. if (paren === -1 || !B.JSString_methods.endsWith$1(signature, ")"))
  106284. A.jsThrow(new self.Error('Invalid signature for new sass.SassFunction(): "' + signature + '"'));
  106285. return new A.SassFunction0(A.BuiltInCallable$function0(B.JSString_methods.substring$2(signature, 0, paren), B.JSString_methods.substring$2(signature, paren + 1, signature.length - 1), callback, null));
  106286. },
  106287. "call*": "call$3",
  106288. $requiredArgCount: 3,
  106289. $signature: 481
  106290. };
  106291. A.functionClass__closure0.prototype = {
  106292. call$1(_) {
  106293. return B.C__SassNull0;
  106294. },
  106295. $signature: 3
  106296. };
  106297. A.SassFunction0.prototype = {
  106298. accept$1$1(visitor) {
  106299. var t1, t2;
  106300. if (!visitor._serialize0$_inspect)
  106301. A.throwExpression(A.SassScriptException$0(this.toString$0(0) + " isn't a valid CSS value.", null));
  106302. t1 = visitor._serialize0$_buffer;
  106303. t1.write$1(0, "get-function(");
  106304. t2 = this.callable;
  106305. visitor._serialize0$_visitQuotedString$1(t2.get$name(t2));
  106306. t1.writeCharCode$1(41);
  106307. return null;
  106308. },
  106309. accept$1(visitor) {
  106310. return this.accept$1$1(visitor, type$.dynamic);
  106311. },
  106312. assertFunction$1($name) {
  106313. return this;
  106314. },
  106315. $eq(_, other) {
  106316. if (other == null)
  106317. return false;
  106318. return other instanceof A.SassFunction0 && this.callable.$eq(0, other.callable);
  106319. },
  106320. get$hashCode(_) {
  106321. var t1 = this.callable;
  106322. return t1.get$hashCode(t1);
  106323. }
  106324. };
  106325. A.FunctionRule0.prototype = {
  106326. accept$1$1(visitor) {
  106327. return visitor.visitFunctionRule$1(0, this);
  106328. },
  106329. accept$1(visitor) {
  106330. return this.accept$1$1(visitor, type$.dynamic);
  106331. },
  106332. toString$0(_) {
  106333. var t1 = this.children;
  106334. return "@function " + this.name + "(" + this.$arguments.toString$0(0) + ") {" + (t1 && B.JSArray_methods).join$1(t1, " ") + "}";
  106335. }
  106336. };
  106337. A.unifyComplex_closure0.prototype = {
  106338. call$1(complex) {
  106339. return complex.lineBreak;
  106340. },
  106341. $signature: 20
  106342. };
  106343. A._weaveParents_closure3.prototype = {
  106344. call$2(group1, group2) {
  106345. var t1, unified;
  106346. if (B.C_ListEquality.equals$2(0, group1, group2))
  106347. return group1;
  106348. if (A._complexIsParentSuperselector0(group1, group2))
  106349. return group2;
  106350. if (A._complexIsParentSuperselector0(group2, group1))
  106351. return group1;
  106352. if (!A._mustUnify0(group1, group2))
  106353. return null;
  106354. t1 = this.span;
  106355. unified = A.unifyComplex0(A._setArrayType([A.ComplexSelector$0(B.List_empty14, group1, t1, false), A.ComplexSelector$0(B.List_empty14, group2, t1, false)], type$.JSArray_ComplexSelector_2), t1);
  106356. if (unified == null)
  106357. t1 = null;
  106358. else {
  106359. t1 = A.IterableExtension_get_singleOrNull(unified);
  106360. t1 = t1 == null ? null : t1.components;
  106361. }
  106362. return t1;
  106363. },
  106364. $signature: 482
  106365. };
  106366. A._weaveParents_closure4.prototype = {
  106367. call$1(sequence) {
  106368. return A._complexIsParentSuperselector0(sequence.get$first(sequence), this.group);
  106369. },
  106370. $signature: 235
  106371. };
  106372. A._weaveParents_closure5.prototype = {
  106373. call$1(sequence) {
  106374. return sequence.get$length(0) === 0;
  106375. },
  106376. $signature: 235
  106377. };
  106378. A._weaveParents_closure6.prototype = {
  106379. call$1(choice) {
  106380. return J.get$isNotEmpty$asx(choice);
  106381. },
  106382. $signature: 484
  106383. };
  106384. A._mustUnify_closure0.prototype = {
  106385. call$1(component) {
  106386. return B.JSArray_methods.any$1(component.selector.components, new A._mustUnify__closure0(this.uniqueSelectors));
  106387. },
  106388. $signature: 55
  106389. };
  106390. A._mustUnify__closure0.prototype = {
  106391. call$1(simple) {
  106392. var t1;
  106393. if (!(simple instanceof A.IDSelector0))
  106394. t1 = simple instanceof A.PseudoSelector0 && !simple.isClass;
  106395. else
  106396. t1 = true;
  106397. return t1 && this.uniqueSelectors.contains$1(0, simple);
  106398. },
  106399. $signature: 14
  106400. };
  106401. A.paths_closure0.prototype = {
  106402. call$2(paths, choice) {
  106403. var t1 = this.T;
  106404. t1 = J.expand$1$1$ax(choice, new A.paths__closure0(paths, t1), t1._eval$1("List<0>"));
  106405. return A.List_List$of(t1, true, t1.$ti._eval$1("Iterable.E"));
  106406. },
  106407. $signature() {
  106408. return this.T._eval$1("List<List<0>>(List<List<0>>,List<0>)");
  106409. }
  106410. };
  106411. A.paths__closure0.prototype = {
  106412. call$1(option) {
  106413. var t1 = this.T;
  106414. return J.map$1$1$ax(this.paths, new A.paths___closure0(option, t1), t1._eval$1("List<0>"));
  106415. },
  106416. $signature() {
  106417. return this.T._eval$1("Iterable<List<0>>(0)");
  106418. }
  106419. };
  106420. A.paths___closure0.prototype = {
  106421. call$1(path) {
  106422. var t1 = A.List_List$of(path, true, this.T);
  106423. t1.push(this.option);
  106424. return t1;
  106425. },
  106426. $signature() {
  106427. return this.T._eval$1("List<0>(List<0>)");
  106428. }
  106429. };
  106430. A.listIsSuperselector_closure0.prototype = {
  106431. call$1(complex1) {
  106432. return B.JSArray_methods.any$1(this.list1, new A.listIsSuperselector__closure0(complex1));
  106433. },
  106434. $signature: 20
  106435. };
  106436. A.listIsSuperselector__closure0.prototype = {
  106437. call$1(complex2) {
  106438. return complex2.isSuperselector$1(this.complex1);
  106439. },
  106440. $signature: 20
  106441. };
  106442. A.complexIsSuperselector_closure1.prototype = {
  106443. call$1($parent) {
  106444. return $parent.combinators.length > 1;
  106445. },
  106446. $signature: 55
  106447. };
  106448. A.complexIsSuperselector_closure2.prototype = {
  106449. call$1(component) {
  106450. return A._isSupercombinator0(this.combinator1, A.IterableExtension_get_firstOrNull(component.combinators));
  106451. },
  106452. $signature: 55
  106453. };
  106454. A._compatibleWithPreviousCombinator_closure0.prototype = {
  106455. call$1(component) {
  106456. var t1 = component.combinators,
  106457. t2 = A.IterableExtension_get_firstOrNull(t1);
  106458. if (!J.$eq$(t2 == null ? null : t2.value, B.Combinator_y180)) {
  106459. t1 = A.IterableExtension_get_firstOrNull(t1);
  106460. t1 = J.$eq$(t1 == null ? null : t1.value, B.Combinator_gRV0);
  106461. } else
  106462. t1 = true;
  106463. return t1;
  106464. },
  106465. $signature: 55
  106466. };
  106467. A.compoundIsSuperselector_closure0.prototype = {
  106468. call$1(simple1) {
  106469. return B.JSArray_methods.any$1(this.compound2.components, simple1.get$isSuperselector());
  106470. },
  106471. $signature: 14
  106472. };
  106473. A._selectorPseudoIsSuperselector_closure6.prototype = {
  106474. call$1(selector2) {
  106475. return A.listIsSuperselector0(this.selector1.components, selector2.components);
  106476. },
  106477. $signature: 73
  106478. };
  106479. A._selectorPseudoIsSuperselector_closure7.prototype = {
  106480. call$1(complex1) {
  106481. var t1, t2;
  106482. if (complex1.leadingCombinators.length === 0) {
  106483. t1 = A._setArrayType([], type$.JSArray_ComplexSelectorComponent_2);
  106484. t2 = this.parents;
  106485. if (t2 != null)
  106486. B.JSArray_methods.addAll$1(t1, t2);
  106487. t2 = this.compound2;
  106488. t1.push(new A.ComplexSelectorComponent0(t2, A.List_List$unmodifiable(B.List_empty14, type$.CssValue_Combinator_2), t2.span));
  106489. t1 = A.complexIsSuperselector0(complex1.components, t1);
  106490. } else
  106491. t1 = false;
  106492. return t1;
  106493. },
  106494. $signature: 20
  106495. };
  106496. A._selectorPseudoIsSuperselector_closure8.prototype = {
  106497. call$1(selector2) {
  106498. return A.listIsSuperselector0(this.selector1.components, selector2.components);
  106499. },
  106500. $signature: 73
  106501. };
  106502. A._selectorPseudoIsSuperselector_closure9.prototype = {
  106503. call$1(selector2) {
  106504. return A.listIsSuperselector0(this.selector1.components, selector2.components);
  106505. },
  106506. $signature: 73
  106507. };
  106508. A._selectorPseudoIsSuperselector_closure10.prototype = {
  106509. call$1(complex) {
  106510. if (complex.accept$1(B._IsBogusVisitor_true0))
  106511. return false;
  106512. return B.JSArray_methods.any$1(this.compound2.components, new A._selectorPseudoIsSuperselector__closure0(complex, this.pseudo1));
  106513. },
  106514. $signature: 20
  106515. };
  106516. A._selectorPseudoIsSuperselector__closure0.prototype = {
  106517. call$1(simple2) {
  106518. var t1, selector2, _0_4, _this = this;
  106519. $label0$1: {
  106520. if (simple2 instanceof A.TypeSelector0) {
  106521. t1 = B.JSArray_methods.any$1(B.JSArray_methods.get$last(_this.complex.components).selector.components, new A._selectorPseudoIsSuperselector___closure1(simple2));
  106522. break $label0$1;
  106523. }
  106524. if (simple2 instanceof A.IDSelector0) {
  106525. t1 = B.JSArray_methods.any$1(B.JSArray_methods.get$last(_this.complex.components).selector.components, new A._selectorPseudoIsSuperselector___closure2(simple2));
  106526. break $label0$1;
  106527. }
  106528. selector2 = null;
  106529. t1 = false;
  106530. if (simple2 instanceof A.PseudoSelector0) {
  106531. _0_4 = simple2.selector;
  106532. if (_0_4 != null) {
  106533. selector2 = _0_4 == null ? type$.SelectorList_2._as(_0_4) : _0_4;
  106534. t1 = simple2.name === _this.pseudo1.name;
  106535. }
  106536. }
  106537. if (t1) {
  106538. t1 = A.listIsSuperselector0(selector2.components, A._setArrayType([_this.complex], type$.JSArray_ComplexSelector_2));
  106539. break $label0$1;
  106540. }
  106541. t1 = false;
  106542. break $label0$1;
  106543. }
  106544. return t1;
  106545. },
  106546. $signature: 14
  106547. };
  106548. A._selectorPseudoIsSuperselector___closure1.prototype = {
  106549. call$1(simple1) {
  106550. var t1;
  106551. if (simple1 instanceof A.TypeSelector0) {
  106552. t1 = this.simple2;
  106553. t1 = !(t1 instanceof A.TypeSelector0 && t1.name.$eq(0, simple1.name));
  106554. } else
  106555. t1 = false;
  106556. return t1;
  106557. },
  106558. $signature: 14
  106559. };
  106560. A._selectorPseudoIsSuperselector___closure2.prototype = {
  106561. call$1(simple1) {
  106562. var t1;
  106563. if (simple1 instanceof A.IDSelector0) {
  106564. t1 = this.simple2;
  106565. t1 = !(t1 instanceof A.IDSelector0 && t1.name === simple1.name);
  106566. } else
  106567. t1 = false;
  106568. return t1;
  106569. },
  106570. $signature: 14
  106571. };
  106572. A._selectorPseudoIsSuperselector_closure11.prototype = {
  106573. call$1(selector2) {
  106574. var t1 = B.C_ListEquality.equals$2(0, this.selector1.components, selector2.components);
  106575. return t1;
  106576. },
  106577. $signature: 73
  106578. };
  106579. A._selectorPseudoIsSuperselector_closure12.prototype = {
  106580. call$1(pseudo2) {
  106581. var t1, selector2;
  106582. if (!(pseudo2 instanceof A.PseudoSelector0))
  106583. return false;
  106584. t1 = this.pseudo1;
  106585. if (pseudo2.name !== t1.name)
  106586. return false;
  106587. if (pseudo2.argument != t1.argument)
  106588. return false;
  106589. selector2 = pseudo2.selector;
  106590. if (selector2 == null)
  106591. return false;
  106592. return A.listIsSuperselector0(this.selector1.components, selector2.components);
  106593. },
  106594. $signature: 14
  106595. };
  106596. A._selectorPseudoArgs_closure1.prototype = {
  106597. call$1(pseudo) {
  106598. return pseudo.isClass === this.isClass && pseudo.name === this.name;
  106599. },
  106600. $signature: 486
  106601. };
  106602. A._selectorPseudoArgs_closure2.prototype = {
  106603. call$1(pseudo) {
  106604. return pseudo.selector;
  106605. },
  106606. $signature: 487
  106607. };
  106608. A.globalFunctions_closure0.prototype = {
  106609. call$1($arguments) {
  106610. var t1 = J.getInterceptor$asx($arguments);
  106611. return t1.$index($arguments, 0).get$isTruthy() ? t1.$index($arguments, 1) : t1.$index($arguments, 2);
  106612. },
  106613. $signature: 3
  106614. };
  106615. A.GamutMapMethod0.prototype = {
  106616. toString$0(_) {
  106617. return this.name;
  106618. }
  106619. };
  106620. A.HslColorSpace0.prototype = {
  106621. get$isBoundedInternal() {
  106622. return true;
  106623. },
  106624. get$isLegacyInternal() {
  106625. return true;
  106626. },
  106627. get$isPolarInternal() {
  106628. return true;
  106629. },
  106630. convert$5(dest, hue, saturation, lightness, alpha) {
  106631. var t1 = hue == null,
  106632. scaledHue = B.JSNumber_methods.$mod((t1 ? 0 : hue) / 360, 1),
  106633. t2 = saturation == null,
  106634. scaledSaturation = (t2 ? 0 : saturation) / 100,
  106635. t3 = lightness == null,
  106636. scaledLightness = (t3 ? 0 : lightness) / 100,
  106637. m2 = scaledLightness <= 0.5 ? scaledLightness * (scaledSaturation + 1) : scaledLightness + scaledSaturation - scaledLightness * scaledSaturation,
  106638. m1 = scaledLightness * 2 - m2;
  106639. return B.SrgbColorSpace_AD40.convert$8$missingChroma$missingHue$missingLightness(dest, A.hueToRgb0(m1, m2, scaledHue + 0.3333333333333333), A.hueToRgb0(m1, m2, scaledHue), A.hueToRgb0(m1, m2, scaledHue - 0.3333333333333333), alpha, t2, t1, t3);
  106640. }
  106641. };
  106642. A.HwbColorSpace0.prototype = {
  106643. get$isBoundedInternal() {
  106644. return true;
  106645. },
  106646. get$isLegacyInternal() {
  106647. return true;
  106648. },
  106649. get$isPolarInternal() {
  106650. return true;
  106651. },
  106652. convert$5(dest, hue, whiteness, blackness, alpha) {
  106653. var t3, t1 = {},
  106654. t2 = hue == null,
  106655. scaledHue = B.JSNumber_methods.$mod(t2 ? 0 : hue, 360) / 360,
  106656. scaledWhiteness = t1.scaledWhiteness = (whiteness == null ? 0 : whiteness) / 100,
  106657. scaledBlackness = (blackness == null ? 0 : blackness) / 100,
  106658. sum = scaledWhiteness + scaledBlackness;
  106659. if (sum > 1) {
  106660. t3 = t1.scaledWhiteness = scaledWhiteness / sum;
  106661. scaledBlackness /= sum;
  106662. } else
  106663. t3 = scaledWhiteness;
  106664. t3 = new A.HwbColorSpace_convert_toRgb0(t1, 1 - t3 - scaledBlackness);
  106665. return B.SrgbColorSpace_AD40.convert$6$missingHue(dest, t3.call$1(scaledHue + 0.3333333333333333), t3.call$1(scaledHue), t3.call$1(scaledHue - 0.3333333333333333), alpha, t2);
  106666. }
  106667. };
  106668. A.HwbColorSpace_convert_toRgb0.prototype = {
  106669. call$1(hue) {
  106670. return A.hueToRgb0(0, 1, hue) * this.factor + this._box_0.scaledWhiteness;
  106671. },
  106672. $signature: 15
  106673. };
  106674. A.IDSelector0.prototype = {
  106675. get$specificity() {
  106676. return A._asInt(Math.pow(A.SimpleSelector0.prototype.get$specificity.call(this), 2));
  106677. },
  106678. accept$1$1(visitor) {
  106679. return visitor.visitIDSelector$1(this);
  106680. },
  106681. accept$1(visitor) {
  106682. return this.accept$1$1(visitor, type$.dynamic);
  106683. },
  106684. addSuffix$1(suffix) {
  106685. return new A.IDSelector0(this.name + suffix, this.span);
  106686. },
  106687. unify$1(compound) {
  106688. if (B.JSArray_methods.any$1(compound, new A.IDSelector_unify_closure0(this)))
  106689. return null;
  106690. return this.super$SimpleSelector$unify0(compound);
  106691. },
  106692. $eq(_, other) {
  106693. if (other == null)
  106694. return false;
  106695. return other instanceof A.IDSelector0 && other.name === this.name;
  106696. },
  106697. get$hashCode(_) {
  106698. return B.JSString_methods.get$hashCode(this.name);
  106699. }
  106700. };
  106701. A.IDSelector_unify_closure0.prototype = {
  106702. call$1(simple) {
  106703. var t1;
  106704. if (simple instanceof A.IDSelector0)
  106705. t1 = this.$this.name !== simple.name;
  106706. else
  106707. t1 = false;
  106708. return t1;
  106709. },
  106710. $signature: 14
  106711. };
  106712. A.IfExpression0.prototype = {
  106713. accept$1$1(visitor) {
  106714. return visitor.visitIfExpression$1(0, this);
  106715. },
  106716. accept$1(visitor) {
  106717. return this.accept$1$1(visitor, type$.dynamic);
  106718. },
  106719. toString$0(_) {
  106720. return "if" + this.$arguments.toString$0(0);
  106721. },
  106722. get$span(receiver) {
  106723. return this.span;
  106724. }
  106725. };
  106726. A.IfRule0.prototype = {
  106727. accept$1$1(visitor) {
  106728. return visitor.visitIfRule$1(0, this);
  106729. },
  106730. accept$1(visitor) {
  106731. return this.accept$1$1(visitor, type$.dynamic);
  106732. },
  106733. toString$0(_) {
  106734. var result = A.ListExtensions_mapIndexed(this.clauses, new A.IfRule_toString_closure0(), type$.IfClause_2, type$.String).join$1(0, " "),
  106735. lastClause = this.lastClause;
  106736. return lastClause != null ? result + (" " + lastClause.toString$0(0)) : result;
  106737. },
  106738. get$span(receiver) {
  106739. return this.span;
  106740. }
  106741. };
  106742. A.IfRule_toString_closure0.prototype = {
  106743. call$2(index, clause) {
  106744. var t1 = index === 0 ? "if" : "else if";
  106745. return "@" + t1 + " " + clause.expression.toString$0(0) + " {" + B.JSArray_methods.join$1(clause.children, " ") + "}";
  106746. },
  106747. $signature: 488
  106748. };
  106749. A.IfRuleClause0.prototype = {};
  106750. A.IfRuleClause$__closure0.prototype = {
  106751. call$1(child) {
  106752. var t1;
  106753. $label0$0: {
  106754. if (child instanceof A.VariableDeclaration0 || child instanceof A.FunctionRule0 || child instanceof A.MixinRule0) {
  106755. t1 = true;
  106756. break $label0$0;
  106757. }
  106758. if (child instanceof A.ImportRule0) {
  106759. t1 = B.JSArray_methods.any$1(child.imports, new A.IfRuleClause$___closure0());
  106760. break $label0$0;
  106761. }
  106762. t1 = false;
  106763. break $label0$0;
  106764. }
  106765. return t1;
  106766. },
  106767. $signature: 237
  106768. };
  106769. A.IfRuleClause$___closure0.prototype = {
  106770. call$1($import) {
  106771. return $import instanceof A.DynamicImport0;
  106772. },
  106773. $signature: 238
  106774. };
  106775. A.IfClause0.prototype = {
  106776. toString$0(_) {
  106777. return "@if " + this.expression.toString$0(0) + " {" + B.JSArray_methods.join$1(this.children, " ") + "}";
  106778. }
  106779. };
  106780. A.ElseClause0.prototype = {
  106781. toString$0(_) {
  106782. return "@else {" + B.JSArray_methods.join$1(this.children, " ") + "}";
  106783. }
  106784. };
  106785. A.ImmutableList0.prototype = {};
  106786. A.ImmutableMap0.prototype = {};
  106787. A.immutableMapToDartMap_closure.prototype = {
  106788. call$3(value, key, _) {
  106789. this.dartMap.$indexSet(0, key, value);
  106790. },
  106791. "call*": "call$3",
  106792. $requiredArgCount: 3,
  106793. $signature: 491
  106794. };
  106795. A.NodeImporter.prototype = {
  106796. loadRelative$3(url, previous, forImport) {
  106797. var t1, t2, _null = null;
  106798. if ($.$get$url().style.rootLength$1(url) > 0) {
  106799. if (!B.JSString_methods.startsWith$1(url, "/") && !B.JSString_methods.startsWith$1(url, "file:"))
  106800. return _null;
  106801. return this._tryPath$2($.$get$context().style.pathFromUri$1(A._parseUri(url)), forImport);
  106802. }
  106803. if ((previous == null ? _null : previous.get$scheme()) !== "file")
  106804. return _null;
  106805. t1 = $.$get$context();
  106806. previous.toString;
  106807. t2 = t1.style;
  106808. return this._tryPath$2(A.join(t1.dirname$1(t2.pathFromUri$1(A._parseUri(previous))), t2.pathFromUri$1(A._parseUri(url)), _null), forImport);
  106809. },
  106810. load$3(_, url, previous, forImport) {
  106811. var t1, t2, _i, _0_0, _this = this,
  106812. previousString = _this._previousToString$1(previous);
  106813. for (t1 = _this._implementation$_importers, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  106814. _0_0 = A.wrapJSExceptions(new A.NodeImporter_load_closure(_this, t1[_i], forImport, url, previousString));
  106815. if (_0_0 != null)
  106816. return _this._handleImportResult$4(url, previous, _0_0, forImport);
  106817. }
  106818. return _this._resolveLoadPathFromUrl$2(A.Uri_parse(url), forImport);
  106819. },
  106820. loadAsync$3(url, previous, forImport) {
  106821. return this.loadAsync$body$NodeImporter(url, previous, forImport);
  106822. },
  106823. loadAsync$body$NodeImporter(url, previous, forImport) {
  106824. var $async$goto = 0,
  106825. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Record_2_String_and_String),
  106826. $async$returnValue, $async$self = this, t1, t2, _i, _0_0, previousString;
  106827. var $async$loadAsync$3 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  106828. if ($async$errorCode === 1)
  106829. return A._asyncRethrow($async$result, $async$completer);
  106830. while (true)
  106831. switch ($async$goto) {
  106832. case 0:
  106833. // Function start
  106834. previousString = $async$self._previousToString$1(previous);
  106835. t1 = $async$self._implementation$_importers, t2 = t1.length, _i = 0;
  106836. case 3:
  106837. // for condition
  106838. if (!(_i < t2)) {
  106839. // goto after for
  106840. $async$goto = 5;
  106841. break;
  106842. }
  106843. $async$goto = 6;
  106844. return A._asyncAwait($async$self._callImporterAsync$4(t1[_i], url, previousString, forImport), $async$loadAsync$3);
  106845. case 6:
  106846. // returning from await.
  106847. _0_0 = $async$result;
  106848. if (_0_0 != null) {
  106849. $async$returnValue = $async$self._handleImportResult$4(url, previous, _0_0, forImport);
  106850. // goto return
  106851. $async$goto = 1;
  106852. break;
  106853. }
  106854. case 4:
  106855. // for update
  106856. ++_i;
  106857. // goto for condition
  106858. $async$goto = 3;
  106859. break;
  106860. case 5:
  106861. // after for
  106862. $async$returnValue = $async$self._resolveLoadPathFromUrl$2(A.Uri_parse(url), forImport);
  106863. // goto return
  106864. $async$goto = 1;
  106865. break;
  106866. case 1:
  106867. // return
  106868. return A._asyncReturn($async$returnValue, $async$completer);
  106869. }
  106870. });
  106871. return A._asyncStartSync($async$loadAsync$3, $async$completer);
  106872. },
  106873. _previousToString$1(previous) {
  106874. var t1;
  106875. $label0$0: {
  106876. if (previous == null) {
  106877. t1 = "stdin";
  106878. break $label0$0;
  106879. }
  106880. if ("file" === previous.get$scheme()) {
  106881. t1 = $.$get$context().style.pathFromUri$1(A._parseUri(previous));
  106882. break $label0$0;
  106883. }
  106884. t1 = previous.toString$0(0);
  106885. break $label0$0;
  106886. }
  106887. return t1;
  106888. },
  106889. _resolveLoadPathFromUrl$2(url, forImport) {
  106890. return url.get$scheme() === "" || url.get$scheme() === "file" ? this._resolveLoadPath$2($.$get$context().style.pathFromUri$1(A._parseUri(url)), forImport) : null;
  106891. },
  106892. _resolveLoadPath$2(path, forImport) {
  106893. var t1, t2, _i, t3, _1_0, _null = null,
  106894. _0_0 = this._tryPath$2(A.absolute(path, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null), forImport);
  106895. if (_0_0 != null)
  106896. return _0_0;
  106897. for (t1 = this._includePaths, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  106898. t3 = A.join(t1[_i], path, _null);
  106899. _1_0 = this._tryPath$2($.$get$context().absolute$15(t3, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null), forImport);
  106900. if (_1_0 != null)
  106901. return _1_0;
  106902. }
  106903. return _null;
  106904. },
  106905. _tryPath$2(path, forImport) {
  106906. var t1 = forImport ? A.inImportRule(new A.NodeImporter__tryPath_closure(path), type$.nullable_String) : A.resolveImportPath0(path);
  106907. return A.NullableExtension_andThen0(t1, new A.NodeImporter__tryPath_closure0());
  106908. },
  106909. _handleImportResult$4(url, previous, value, forImport) {
  106910. var t1, file, contents, t2, resolved;
  106911. if (value instanceof self.Error)
  106912. throw A.wrapException(value);
  106913. if (!type$.NodeImporterResult._is(value))
  106914. return null;
  106915. t1 = J.getInterceptor$x(value);
  106916. file = t1.get$file(value);
  106917. contents = t1.get$contents(value);
  106918. t1 = contents == null;
  106919. t2 = !t1;
  106920. if (t2 && A._asString(new self.Function("value", "return typeof value").call$1(contents)) !== "string")
  106921. A.jsThrow(new A.ArgumentError(true, contents, "contents", "must be a string but was: " + A.jsType(contents)));
  106922. if (file == null)
  106923. return new A._Record_2(t1 ? "" : contents, url);
  106924. else if (t2)
  106925. return new A._Record_2(contents, $.$get$context().toUri$1(file).toString$0(0));
  106926. else {
  106927. resolved = this.loadRelative$3($.$get$context().toUri$1(file).toString$0(0), previous, forImport);
  106928. if (resolved == null)
  106929. resolved = this._resolveLoadPath$2(file, forImport);
  106930. if (resolved != null)
  106931. return resolved;
  106932. throw A.wrapException("Can't find stylesheet to import.");
  106933. }
  106934. },
  106935. _callImporterAsync$4(importer, url, previousString, forImport) {
  106936. return this._callImporterAsync$body$NodeImporter(importer, url, previousString, forImport);
  106937. },
  106938. _callImporterAsync$body$NodeImporter(importer, url, previousString, forImport) {
  106939. var $async$goto = 0,
  106940. $async$completer = A._makeAsyncAwaitCompleter(type$.nullable_Object),
  106941. $async$returnValue, $async$self = this, t1, result;
  106942. var $async$_callImporterAsync$4 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  106943. if ($async$errorCode === 1)
  106944. return A._asyncRethrow($async$result, $async$completer);
  106945. while (true)
  106946. switch ($async$goto) {
  106947. case 0:
  106948. // Function start
  106949. t1 = new A._Future($.Zone__current, type$._Future_Object);
  106950. result = A.wrapJSExceptions(new A.NodeImporter__callImporterAsync_closure($async$self, importer, forImport, url, previousString, new A._AsyncCompleter(t1, type$._AsyncCompleter_Object)));
  106951. $async$goto = A._asBool($.$get$_isUndefined().call$1(result)) ? 3 : 4;
  106952. break;
  106953. case 3:
  106954. // then
  106955. $async$goto = 5;
  106956. return A._asyncAwait(t1, $async$_callImporterAsync$4);
  106957. case 5:
  106958. // returning from await.
  106959. $async$returnValue = $async$result;
  106960. // goto return
  106961. $async$goto = 1;
  106962. break;
  106963. case 4:
  106964. // join
  106965. $async$returnValue = result;
  106966. // goto return
  106967. $async$goto = 1;
  106968. break;
  106969. case 1:
  106970. // return
  106971. return A._asyncReturn($async$returnValue, $async$completer);
  106972. }
  106973. });
  106974. return A._asyncStartSync($async$_callImporterAsync$4, $async$completer);
  106975. },
  106976. _renderContext$1(fromImport) {
  106977. var context = {options: type$.RenderContextOptions._as(this._implementation$_options), fromImport: fromImport};
  106978. J.set$context$x(J.get$options$x(context), context);
  106979. return context;
  106980. }
  106981. };
  106982. A.NodeImporter_load_closure.prototype = {
  106983. call$0() {
  106984. var _this = this;
  106985. return J.apply$2$x(_this.importer, _this.$this._renderContext$1(_this.forImport), A._setArrayType([_this.url, _this.previousString], type$.JSArray_Object));
  106986. },
  106987. $signature: 37
  106988. };
  106989. A.NodeImporter__tryPath_closure.prototype = {
  106990. call$0() {
  106991. return A.resolveImportPath0(this.path);
  106992. },
  106993. $signature: 46
  106994. };
  106995. A.NodeImporter__tryPath_closure0.prototype = {
  106996. call$1(resolved) {
  106997. return new A._Record_2(A.readFile0(resolved), $.$get$context().toUri$1(resolved).toString$0(0));
  106998. },
  106999. $signature: 492
  107000. };
  107001. A.NodeImporter__callImporterAsync_closure.prototype = {
  107002. call$0() {
  107003. var _this = this;
  107004. return J.apply$2$x(_this.importer, _this.$this._renderContext$1(_this.forImport), A._setArrayType([_this.url, _this.previousString, A.allowInterop(_this.completer.get$complete())], type$.JSArray_Object));
  107005. },
  107006. $signature: 37
  107007. };
  107008. A.ModifiableCssImport0.prototype = {
  107009. accept$1$1(visitor) {
  107010. return visitor.visitCssImport$1(this);
  107011. },
  107012. accept$1(visitor) {
  107013. return this.accept$1$1(visitor, type$.dynamic);
  107014. },
  107015. get$span(receiver) {
  107016. return this.span;
  107017. }
  107018. };
  107019. A.ImportCache0.prototype = {
  107020. canonicalize$4$baseImporter$baseUrl$forImport(_, url, baseImporter, baseUrl, forImport) {
  107021. var t1, resolvedUrl, key, relativeResult, t2, t3, t4, t5, t6, cacheable, i, importer, perImporterKey, t7, _1_0, _1_2_isSet, result, _1_2, _2_0, _2_1, _2_5_isSet, _2_5, _2_3, _2_3_isSet, j, _this = this, _null = null;
  107022. if (A.isBrowser())
  107023. t1 = (baseImporter == null || baseImporter instanceof A.NoOpImporter0) && _this._import_cache$_importers.length === 0;
  107024. else
  107025. t1 = false;
  107026. if (t1)
  107027. throw A.wrapException(string$.Custom);
  107028. if (baseImporter != null && url.get$scheme() === "") {
  107029. resolvedUrl = baseUrl == null ? _null : baseUrl.resolveUri$1(url);
  107030. if (resolvedUrl == null)
  107031. resolvedUrl = url;
  107032. key = new A._Record_3_forImport(baseImporter, resolvedUrl, forImport);
  107033. relativeResult = _this._import_cache$_perImporterCanonicalizeCache.putIfAbsent$2(key, new A.ImportCache_canonicalize_closure0(_this, baseImporter, resolvedUrl, baseUrl, forImport, key, url));
  107034. if (relativeResult != null)
  107035. return relativeResult;
  107036. }
  107037. key = new A._Record_2_forImport(url, forImport);
  107038. t1 = _this._import_cache$_canonicalizeCache;
  107039. if (t1.containsKey$1(key))
  107040. return t1.$index(0, key);
  107041. for (t2 = _this._import_cache$_importers, t3 = type$.Record_1_nullable_Object, t4 = _this._import_cache$_perImporterCanonicalizeCache, t5 = type$.nullable_Record_3_Importer_and_Uri_and_Uri_originalUrl_2, t6 = type$.Record_3_Importer_and_Uri_and_Uri_originalUrl_2, cacheable = true, i = 0; i < t2.length; ++i) {
  107042. importer = t2[i];
  107043. perImporterKey = new A._Record_3_forImport(importer, url, forImport);
  107044. if (t4.containsKey$1(perImporterKey)) {
  107045. t7 = t4.$index(0, perImporterKey);
  107046. _1_0 = new A._Record_1(t7 == null ? t5._as(t7) : t7);
  107047. } else
  107048. _1_0 = _null;
  107049. _1_2_isSet = t3._is(_1_0);
  107050. result = _null;
  107051. if (_1_2_isSet) {
  107052. _1_2 = _1_0._0;
  107053. t7 = _1_2 != null;
  107054. if (t7) {
  107055. t6._as(_1_2);
  107056. result = _1_2;
  107057. }
  107058. } else {
  107059. _1_2 = _null;
  107060. t7 = false;
  107061. }
  107062. if (t7)
  107063. return result;
  107064. if (_1_2_isSet)
  107065. t7 = _1_2 == null;
  107066. else
  107067. t7 = false;
  107068. if (t7)
  107069. continue;
  107070. $label0$1: {
  107071. _2_0 = _this._import_cache$_canonicalize$4(importer, url, baseUrl, forImport);
  107072. _2_1 = _2_0._0;
  107073. _2_5_isSet = _2_1 != null;
  107074. _2_5 = _null;
  107075. _2_3 = _null;
  107076. t7 = false;
  107077. if (_2_5_isSet) {
  107078. result = _2_1 == null ? t6._as(_2_1) : _2_1;
  107079. _2_3 = _2_0._1;
  107080. t7 = _2_3;
  107081. _2_5 = t7;
  107082. t7 = t7 && cacheable;
  107083. } else
  107084. result = _null;
  107085. if (t7) {
  107086. t1.$indexSet(0, key, result);
  107087. return result;
  107088. }
  107089. if (_2_5_isSet) {
  107090. t7 = _2_5;
  107091. _2_3_isSet = _2_5_isSet;
  107092. } else {
  107093. _2_3 = _2_0._1;
  107094. t7 = _2_3;
  107095. _2_3_isSet = true;
  107096. }
  107097. t7 = t7 && !cacheable;
  107098. if (t7) {
  107099. t4.$indexSet(0, perImporterKey, _2_1);
  107100. if (_2_1 != null)
  107101. return _2_1;
  107102. break $label0$1;
  107103. }
  107104. t7 = false === (_2_3_isSet ? _2_3 : _2_0._1);
  107105. if (t7) {
  107106. if (cacheable) {
  107107. for (j = 0; j < i; ++j)
  107108. t4.$indexSet(0, new A._Record_3_forImport(t2[j], url, forImport), _null);
  107109. cacheable = false;
  107110. }
  107111. if (_2_1 != null)
  107112. return _2_1;
  107113. }
  107114. }
  107115. }
  107116. if (cacheable)
  107117. t1.$indexSet(0, key, _null);
  107118. return _null;
  107119. },
  107120. _import_cache$_canonicalize$4(importer, url, baseUrl, forImport) {
  107121. var passContainingUrl, canonicalizeContext, t1, result, cacheable;
  107122. if (baseUrl != null)
  107123. passContainingUrl = url.get$scheme() === "" || importer.isNonCanonicalScheme$1(url.get$scheme());
  107124. else
  107125. passContainingUrl = false;
  107126. canonicalizeContext = new A.CanonicalizeContext0(forImport, passContainingUrl ? baseUrl : null);
  107127. t1 = type$.nullable_Object;
  107128. result = A.runZoned(new A.ImportCache__canonicalize_closure0(importer, url), A.LinkedHashMap_LinkedHashMap$_literal([B.Symbol__canonicalizeContext, canonicalizeContext], t1, t1), type$.nullable_Uri);
  107129. cacheable = !passContainingUrl || !canonicalizeContext._canonicalize_context$_wasContainingUrlAccessed;
  107130. if (result == null)
  107131. return new A._Record_2(null, cacheable);
  107132. if (result.get$scheme() !== "" && importer.isNonCanonicalScheme$1(result.get$scheme()))
  107133. throw A.wrapException("Importer " + importer.toString$0(0) + " canonicalized " + url.toString$0(0) + " to " + result.toString$0(0) + string$.x2c_whicu);
  107134. return new A._Record_2(new A._Record_3_originalUrl(importer, result, url), cacheable);
  107135. },
  107136. importCanonical$3$originalUrl(importer, canonicalUrl, originalUrl) {
  107137. return this._import_cache$_importCache.putIfAbsent$2(canonicalUrl, new A.ImportCache_importCanonical_closure0(this, importer, canonicalUrl, originalUrl));
  107138. },
  107139. humanize$1(canonicalUrl) {
  107140. var t1 = type$.NonNullsIterable_Record_3_Importer_and_Uri_and_Uri_originalUrl_2;
  107141. t1 = A.NullableExtension_andThen0(A.minBy(new A.MappedIterable(new A.WhereIterable(new A.NonNullsIterable(this._import_cache$_canonicalizeCache.get$values(0), t1), new A.ImportCache_humanize_closure3(canonicalUrl), t1._eval$1("WhereIterable<Iterable.E>")), new A.ImportCache_humanize_closure4(), t1._eval$1("MappedIterable<Iterable.E,Uri>")), new A.ImportCache_humanize_closure5()), new A.ImportCache_humanize_closure6(canonicalUrl));
  107142. return t1 == null ? canonicalUrl : t1;
  107143. },
  107144. sourceMapUrl$1(_, canonicalUrl) {
  107145. var t1 = this._import_cache$_resultsCache.$index(0, canonicalUrl);
  107146. t1 = t1 == null ? null : t1.get$sourceMapUrl(0);
  107147. return t1 == null ? canonicalUrl : t1;
  107148. }
  107149. };
  107150. A.ImportCache_canonicalize_closure0.prototype = {
  107151. call$0() {
  107152. var _this = this,
  107153. t1 = _this.$this,
  107154. t2 = _this.baseUrl,
  107155. _0_0 = t1._import_cache$_canonicalize$4(_this.baseImporter, _this.resolvedUrl, t2, _this.forImport);
  107156. if (t2 != null)
  107157. t1._import_cache$_nonCanonicalRelativeUrls.$indexSet(0, _this.key, _this.url);
  107158. return _0_0._0;
  107159. },
  107160. $signature: 493
  107161. };
  107162. A.ImportCache__canonicalize_closure0.prototype = {
  107163. call$0() {
  107164. return this.importer.canonicalize$1(0, this.url);
  107165. },
  107166. $signature: 239
  107167. };
  107168. A.ImportCache_importCanonical_closure0.prototype = {
  107169. call$0() {
  107170. var t2, t3, _this = this,
  107171. t1 = _this.canonicalUrl,
  107172. result = _this.importer.load$1(0, t1);
  107173. if (result == null)
  107174. return null;
  107175. _this.$this._import_cache$_resultsCache.$indexSet(0, t1, result);
  107176. t2 = result.contents;
  107177. t3 = result.syntax;
  107178. t1 = _this.originalUrl.resolveUri$1(t1);
  107179. return A.Stylesheet_Stylesheet$parse0(t2, t3, t1);
  107180. },
  107181. $signature: 494
  107182. };
  107183. A.ImportCache_humanize_closure3.prototype = {
  107184. call$1(result) {
  107185. return result._1.$eq(0, this.canonicalUrl);
  107186. },
  107187. $signature: 495
  107188. };
  107189. A.ImportCache_humanize_closure4.prototype = {
  107190. call$1(result) {
  107191. return result._2;
  107192. },
  107193. $signature: 496
  107194. };
  107195. A.ImportCache_humanize_closure5.prototype = {
  107196. call$1(url) {
  107197. return url.get$path(url).length;
  107198. },
  107199. $signature: 87
  107200. };
  107201. A.ImportCache_humanize_closure6.prototype = {
  107202. call$1(url) {
  107203. var t1 = $.$get$url(),
  107204. t2 = this.canonicalUrl;
  107205. return url.resolve$1(0, A.ParsedPath_ParsedPath$parse(t2.get$path(t2), t1.style).get$basename());
  107206. },
  107207. $signature: 50
  107208. };
  107209. A.ImportRule0.prototype = {
  107210. accept$1$1(visitor) {
  107211. return visitor.visitImportRule$1(0, this);
  107212. },
  107213. accept$1(visitor) {
  107214. return this.accept$1$1(visitor, type$.dynamic);
  107215. },
  107216. toString$0(_) {
  107217. return "@import " + B.JSArray_methods.join$1(this.imports, ", ") + ";";
  107218. },
  107219. get$span(receiver) {
  107220. return this.span;
  107221. }
  107222. };
  107223. A.JSImporter.prototype = {};
  107224. A.JSImporterResult.prototype = {};
  107225. A.Importer0.prototype = {
  107226. isNonCanonicalScheme$1(scheme) {
  107227. return false;
  107228. }
  107229. };
  107230. A.NodeImporterResult0.prototype = {};
  107231. A.IncludeRule0.prototype = {
  107232. get$spanWithoutContent() {
  107233. var t2, t3,
  107234. t1 = this.span;
  107235. if (!(this.content == null)) {
  107236. t2 = t1.file;
  107237. t3 = this.$arguments.span;
  107238. t3 = A.SpanExtensions_trimRight0(A.SpanExtensions_trimLeft0(t2.span$2(0, A.FileLocation$_(t2, t1._file$_start).offset, t3.get$end(t3).offset)));
  107239. t1 = t3;
  107240. }
  107241. return t1;
  107242. },
  107243. get$nameSpan() {
  107244. var startSpan, scanner, _null = null,
  107245. t1 = this.span,
  107246. t2 = t1._file$_start,
  107247. t3 = t1._end,
  107248. t4 = t1.file._decodedChars;
  107249. if (B.JSString_methods.startsWith$1(A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t4, t2, t3), 0, _null), "+"))
  107250. startSpan = A.SpanExtensions_trimLeft0(A.FileSpanExtension_subspan(t1, 1, _null));
  107251. else {
  107252. scanner = A.StringScanner$(A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t4, t2, t3), 0, _null), _null, _null);
  107253. scanner.expectChar$1(64);
  107254. A._scanIdentifier0(scanner);
  107255. startSpan = A.SpanExtensions_trimLeft0(A.FileSpanExtension_subspan(t1, scanner._string_scanner$_position, _null));
  107256. }
  107257. return A.SpanExtensions_initialIdentifier0(this.namespace != null ? A.FileSpanExtension_subspan(A.SpanExtensions_withoutInitialIdentifier0(startSpan), 1, _null) : startSpan);
  107258. },
  107259. accept$1$1(visitor) {
  107260. return visitor.visitIncludeRule$1(0, this);
  107261. },
  107262. accept$1(visitor) {
  107263. return this.accept$1$1(visitor, type$.dynamic);
  107264. },
  107265. toString$0(_) {
  107266. var t2, _this = this,
  107267. t1 = _this.namespace;
  107268. t1 = t1 != null ? "@include " + (t1 + ".") : "@include ";
  107269. t1 += _this.name;
  107270. t2 = _this.$arguments;
  107271. if (!t2.get$isEmpty(0))
  107272. t1 += "(" + t2.toString$0(0) + ")";
  107273. t2 = _this.content;
  107274. t1 += t2 == null ? ";" : " " + t2.toString$0(0);
  107275. return t1.charCodeAt(0) == 0 ? t1 : t1;
  107276. },
  107277. get$span(receiver) {
  107278. return this.span;
  107279. }
  107280. };
  107281. A.InterpolatedFunctionExpression0.prototype = {
  107282. accept$1$1(visitor) {
  107283. return visitor.visitInterpolatedFunctionExpression$1(0, this);
  107284. },
  107285. accept$1(visitor) {
  107286. return this.accept$1$1(visitor, type$.dynamic);
  107287. },
  107288. toString$0(_) {
  107289. return this.name.toString$0(0) + this.$arguments.toString$0(0);
  107290. },
  107291. get$span(receiver) {
  107292. return this.span;
  107293. }
  107294. };
  107295. A.Interpolation0.prototype = {
  107296. get$asPlain() {
  107297. var _0_1, t1, _0_6_isSet, _0_6, _0_60, first,
  107298. _0_0 = this.contents;
  107299. $label0$0: {
  107300. _0_1 = _0_0.length;
  107301. if (_0_1 <= 0) {
  107302. t1 = "";
  107303. break $label0$0;
  107304. }
  107305. _0_6_isSet = _0_1 === 1;
  107306. _0_6 = null;
  107307. if (_0_6_isSet) {
  107308. _0_60 = _0_0[0];
  107309. t1 = _0_60;
  107310. _0_6 = t1;
  107311. t1 = typeof t1 == "string";
  107312. } else
  107313. t1 = false;
  107314. if (t1) {
  107315. first = A._asString(_0_6_isSet ? _0_6 : _0_0[0]);
  107316. t1 = first;
  107317. break $label0$0;
  107318. }
  107319. t1 = null;
  107320. break $label0$0;
  107321. }
  107322. return t1;
  107323. },
  107324. get$initialPlain() {
  107325. var _0_4_isSet, _0_4, _0_40, t1, first,
  107326. _0_0 = this.contents;
  107327. $label0$0: {
  107328. _0_4_isSet = _0_0.length >= 1;
  107329. _0_4 = null;
  107330. if (_0_4_isSet) {
  107331. _0_40 = _0_0[0];
  107332. t1 = _0_40;
  107333. _0_4 = t1;
  107334. t1 = typeof t1 == "string";
  107335. } else
  107336. t1 = false;
  107337. if (t1) {
  107338. first = A._asString(_0_4_isSet ? _0_4 : _0_0[0]);
  107339. t1 = first;
  107340. break $label0$0;
  107341. }
  107342. t1 = "";
  107343. break $label0$0;
  107344. }
  107345. return t1;
  107346. },
  107347. spanForElement$1(index) {
  107348. var t1, t2, t3, t4, _this = this;
  107349. $label0$0: {
  107350. if (typeof _this.contents[index] == "string") {
  107351. t1 = _this.span;
  107352. t2 = t1.get$file(t1);
  107353. if (index === 0)
  107354. t3 = t1.get$start(t1);
  107355. else {
  107356. t3 = _this.spans[index - 1];
  107357. t3.toString;
  107358. t3 = J.get$end$z(t3);
  107359. }
  107360. t4 = _this.spans;
  107361. if (index === t4.length)
  107362. t1 = t1.get$end(t1);
  107363. else {
  107364. t1 = t4[index + 1];
  107365. t1.toString;
  107366. t1 = J.get$start$z(t1);
  107367. }
  107368. t1 = t2.span$2(0, t3.offset, t1.offset);
  107369. break $label0$0;
  107370. }
  107371. t1 = _this.spans[index];
  107372. t1.toString;
  107373. break $label0$0;
  107374. }
  107375. return t1;
  107376. },
  107377. Interpolation$30(contents, spans, span) {
  107378. var t1, t2, t3, t4, i, t5, isString, _s5_ = "spans",
  107379. _s8_ = "contents";
  107380. if (spans.length !== J.get$length$asx(contents))
  107381. throw A.wrapException(A.ArgumentError$value(this.spans, _s5_, "Must be the same length as contents."));
  107382. for (t1 = this.contents, t2 = t1.length, t3 = spans.length, t4 = this.spans, i = 0; i < t2; ++i) {
  107383. t5 = t1[i];
  107384. isString = typeof t5 == "string";
  107385. if (!isString && !(t5 instanceof A.Expression0))
  107386. throw A.wrapException(A.ArgumentError$value(t1, _s8_, "May only contain Strings or Expressions."));
  107387. else if (isString) {
  107388. if (i !== 0 && typeof t1[i - 1] == "string")
  107389. throw A.wrapException(A.ArgumentError$value(t1, _s8_, "May not contain adjacent Strings."));
  107390. else if (i < t3 && t4[i] != null)
  107391. throw A.wrapException(A.ArgumentError$value(t4, _s5_, string$.May_no + i + ")."));
  107392. } else if (i >= t3 || t4[i] == null)
  107393. throw A.wrapException(A.ArgumentError$value(t4, _s5_, string$.Must_n + i + ")."));
  107394. }
  107395. },
  107396. toString$0(_) {
  107397. var t1 = this.contents;
  107398. return new A.MappedListIterable(t1, new A.Interpolation_toString_closure0(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$0(0);
  107399. },
  107400. $isAstNode0: 1,
  107401. $isSassNode: 1,
  107402. get$span(receiver) {
  107403. return this.span;
  107404. }
  107405. };
  107406. A.Interpolation_toString_closure0.prototype = {
  107407. call$1(value) {
  107408. return typeof value == "string" ? value : "#{" + A.S(value) + "}";
  107409. },
  107410. $signature: 120
  107411. };
  107412. A.SupportsInterpolation0.prototype = {
  107413. toInterpolation$0() {
  107414. var t1 = this.span;
  107415. return A.Interpolation$0(A._setArrayType([this.expression], type$.JSArray_Object), A._setArrayType([t1], type$.JSArray_nullable_FileSpan), t1);
  107416. },
  107417. withSpan$1(span) {
  107418. return new A.SupportsInterpolation0(this.expression, span);
  107419. },
  107420. toString$0(_) {
  107421. return "#{" + this.expression.toString$0(0) + "}";
  107422. },
  107423. $isAstNode0: 1,
  107424. $isSassNode: 1,
  107425. $isSupportsCondition: 1,
  107426. get$span(receiver) {
  107427. return this.span;
  107428. }
  107429. };
  107430. A.InterpolationBuffer0.prototype = {
  107431. writeCharCode$1(character) {
  107432. var t1 = this._interpolation_buffer0$_text,
  107433. t2 = A.Primitives_stringFromCharCode(character);
  107434. t1._contents += t2;
  107435. return null;
  107436. },
  107437. add$2(_, expression, span) {
  107438. this._interpolation_buffer0$_flushText$0();
  107439. this._interpolation_buffer0$_contents.push(expression);
  107440. this._interpolation_buffer0$_spans.push(span);
  107441. },
  107442. addInterpolation$1(interpolation) {
  107443. var spansToAdd, _0_4_isSet, _0_4, _0_40, first, rest, t2, t3, _this = this,
  107444. toAdd = interpolation.contents,
  107445. t1 = toAdd.length;
  107446. if (t1 === 0)
  107447. return;
  107448. spansToAdd = interpolation.spans;
  107449. _0_4_isSet = t1 >= 1;
  107450. _0_4 = null;
  107451. if (_0_4_isSet) {
  107452. _0_40 = toAdd[0];
  107453. t1 = _0_40;
  107454. _0_4 = t1;
  107455. t1 = typeof t1 == "string";
  107456. } else
  107457. t1 = false;
  107458. if (t1) {
  107459. first = A._asString(_0_4_isSet ? _0_4 : toAdd[0]);
  107460. rest = B.JSArray_methods.sublist$1(toAdd, 1);
  107461. t1 = _this._interpolation_buffer0$_text;
  107462. t1._contents += first;
  107463. spansToAdd = A.SubListIterable$(spansToAdd, 1, null, A._arrayInstanceType(spansToAdd)._precomputed1);
  107464. toAdd = rest;
  107465. }
  107466. _this._interpolation_buffer0$_flushText$0();
  107467. t1 = _this._interpolation_buffer0$_contents;
  107468. B.JSArray_methods.addAll$1(t1, toAdd);
  107469. t2 = _this._interpolation_buffer0$_spans;
  107470. B.JSArray_methods.addAll$1(t2, spansToAdd);
  107471. if (typeof B.JSArray_methods.get$last(t1) == "string") {
  107472. t3 = _this._interpolation_buffer0$_text;
  107473. t1 = A.S(t1.pop());
  107474. t3._contents += t1;
  107475. t2.pop();
  107476. }
  107477. },
  107478. _interpolation_buffer0$_flushText$0() {
  107479. var t1 = this._interpolation_buffer0$_text,
  107480. t2 = t1._contents;
  107481. if (t2.length === 0)
  107482. return;
  107483. this._interpolation_buffer0$_contents.push(t2.charCodeAt(0) == 0 ? t2 : t2);
  107484. this._interpolation_buffer0$_spans.push(null);
  107485. t1._contents = "";
  107486. },
  107487. interpolation$1(span) {
  107488. var t1 = A.List_List$of(this._interpolation_buffer0$_contents, true, type$.Object),
  107489. t2 = this._interpolation_buffer0$_text,
  107490. t3 = t2._contents;
  107491. if (t3.length !== 0)
  107492. t1.push(t3.charCodeAt(0) == 0 ? t3 : t3);
  107493. t3 = A.List_List$of(this._interpolation_buffer0$_spans, true, type$.nullable_FileSpan);
  107494. if (t2._contents.length !== 0)
  107495. t3.push(null);
  107496. return A.Interpolation$0(t1, t3, span);
  107497. },
  107498. toString$0(_) {
  107499. var t1, t2, _i, t3, element;
  107500. for (t1 = this._interpolation_buffer0$_contents, t2 = t1.length, _i = 0, t3 = ""; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
  107501. element = t1[_i];
  107502. t3 = typeof element == "string" ? t3 + element : t3 + "#{" + A.S(element) + A.Primitives_stringFromCharCode(125);
  107503. }
  107504. t1 = t3 + this._interpolation_buffer0$_text.toString$0(0);
  107505. return t1.charCodeAt(0) == 0 ? t1 : t1;
  107506. }
  107507. };
  107508. A.InterpolationMap0.prototype = {
  107509. mapException$1(error) {
  107510. var t3, t4, _this = this,
  107511. target = error.get$span(error),
  107512. source = _this.mapSpan$1(target),
  107513. startIndex = _this._interpolation_map$_indexInContents$1(target.get$start(target)),
  107514. endIndex = _this._interpolation_map$_indexInContents$1(target.get$end(target)),
  107515. t1 = _this._interpolation_map$_interpolation.contents,
  107516. t2 = error._span_exception$_message;
  107517. if (!A.SubListIterable$(t1, startIndex, null, A._arrayInstanceType(t1)._precomputed1).take$1(0, endIndex - startIndex + 1).any$1(0, new A.InterpolationMap_mapException_closure0()))
  107518. return new A.SourceSpanFormatException(error.get$source(), t2, source);
  107519. else {
  107520. t1 = type$.SourceSpan;
  107521. t3 = type$.String;
  107522. t4 = A.LinkedHashMap_LinkedHashMap$_literal([target, "error in interpolated output"], t1, t3);
  107523. return new A.MultiSourceSpanFormatException(error.get$source(), "", A.ConstantMap_ConstantMap$from(t4, t1, t3), t2, source);
  107524. }
  107525. },
  107526. mapSpan$1(target) {
  107527. var _0_10, t1, _0_2_isSet, _0_20, t2, start, end, _this = this, _null = null,
  107528. _0_1 = _this._interpolation_map$_mapLocation$1(target.get$start(target)),
  107529. _0_2 = _this._interpolation_map$_mapLocation$1(target.get$end(target));
  107530. $label0$0: {
  107531. _0_10 = _0_1;
  107532. t1 = type$.FileSpan;
  107533. _0_2_isSet = t1._is(_0_1);
  107534. _0_20 = _null;
  107535. t2 = false;
  107536. if (_0_2_isSet) {
  107537. t1._as(_0_10);
  107538. _0_20 = _0_2;
  107539. t2 = t1._is(_0_2);
  107540. start = _0_10;
  107541. _0_1 = start;
  107542. } else {
  107543. start = _null;
  107544. _0_1 = _0_10;
  107545. }
  107546. if (t2) {
  107547. t1 = start.expand$1(0, t1._as(_0_2_isSet ? _0_20 : _0_2));
  107548. break $label0$0;
  107549. }
  107550. t2 = false;
  107551. if (t1._is(_0_1)) {
  107552. if (_0_2_isSet)
  107553. t2 = _0_20;
  107554. else {
  107555. t2 = _0_2;
  107556. _0_20 = t2;
  107557. _0_2_isSet = true;
  107558. }
  107559. t2 = t2 instanceof A.FileLocation;
  107560. start = _0_1;
  107561. } else
  107562. start = _null;
  107563. if (t2) {
  107564. t1 = _0_2_isSet ? _0_20 : _0_2;
  107565. type$.FileLocation._as(t1);
  107566. t2 = _this._interpolation_map$_interpolation.span;
  107567. t1 = t2.get$file(t2).span$2(0, _this._interpolation_map$_expandInterpolationSpanLeft$1(start.get$start(start)), t1.offset);
  107568. break $label0$0;
  107569. }
  107570. t2 = false;
  107571. if (_0_1 instanceof A.FileLocation) {
  107572. if (_0_2_isSet)
  107573. t2 = _0_20;
  107574. else {
  107575. t2 = _0_2;
  107576. _0_20 = t2;
  107577. _0_2_isSet = true;
  107578. }
  107579. t2 = t1._is(t2);
  107580. start = _0_1;
  107581. } else
  107582. start = _null;
  107583. if (t2) {
  107584. end = t1._as(_0_2_isSet ? _0_20 : _0_2);
  107585. t1 = _this._interpolation_map$_interpolation.span;
  107586. t1 = t1.get$file(t1).span$2(0, start.offset, _this._interpolation_map$_expandInterpolationSpanRight$1(end.get$end(end)));
  107587. break $label0$0;
  107588. }
  107589. t1 = false;
  107590. if (_0_1 instanceof A.FileLocation) {
  107591. if (_0_2_isSet)
  107592. t1 = _0_20;
  107593. else {
  107594. t1 = _0_2;
  107595. _0_20 = t1;
  107596. _0_2_isSet = true;
  107597. }
  107598. t1 = t1 instanceof A.FileLocation;
  107599. start = _0_1;
  107600. } else
  107601. start = _null;
  107602. if (t1) {
  107603. t1 = _0_2_isSet ? _0_20 : _0_2;
  107604. type$.FileLocation._as(t1);
  107605. t2 = _this._interpolation_map$_interpolation.span;
  107606. t1 = t2.get$file(t2).span$2(0, start.offset, t1.offset);
  107607. break $label0$0;
  107608. }
  107609. t1 = A.throwExpression("[BUG] Unreachable");
  107610. }
  107611. return t1;
  107612. },
  107613. _interpolation_map$_mapLocation$1(target) {
  107614. var t3, previousLocation, _this = this,
  107615. index = _this._interpolation_map$_indexInContents$1(target),
  107616. t1 = _this._interpolation_map$_interpolation,
  107617. t2 = t1.contents,
  107618. _0_0 = t2[index];
  107619. if (_0_0 instanceof A.Expression0)
  107620. return _0_0.get$span(_0_0);
  107621. t3 = index === 0;
  107622. t1 = t1.span;
  107623. if (t3)
  107624. previousLocation = t1.get$start(t1);
  107625. else {
  107626. t1 = t1.get$file(t1);
  107627. t2 = type$.Expression_2._as(t2[index - 1]);
  107628. t2 = t2.get$span(t2);
  107629. previousLocation = A.FileLocation$_(t1, _this._interpolation_map$_expandInterpolationSpanRight$1(t2.get$end(t2)));
  107630. }
  107631. t1 = t3 ? 0 : _this._interpolation_map$_targetLocations[index - 1].get$offset();
  107632. return A.FileLocation$_(previousLocation.file, previousLocation.offset + (target.offset - t1));
  107633. },
  107634. _interpolation_map$_indexInContents$1(target) {
  107635. var t1, t2, t3, i;
  107636. for (t1 = this._interpolation_map$_targetLocations, t2 = t1.length, t3 = target.offset, i = 0; i < t2; ++i)
  107637. if (t3 < t1[i].get$offset())
  107638. return i;
  107639. return this._interpolation_map$_interpolation.contents.length - 1;
  107640. },
  107641. _interpolation_map$_expandInterpolationSpanLeft$1(start) {
  107642. var i0, prev, char,
  107643. source = start.file._decodedChars,
  107644. i = start.offset - 1;
  107645. for (; i >= 0;) {
  107646. i0 = i - 1;
  107647. prev = source[i];
  107648. if (prev === 123) {
  107649. if (source[i0] === 35) {
  107650. i = i0;
  107651. break;
  107652. }
  107653. i = i0;
  107654. } else if (prev === 47) {
  107655. i = i0 - 1;
  107656. if (source[i0] === 42)
  107657. for (; true;) {
  107658. i0 = i - 1;
  107659. if (source[i] !== 42) {
  107660. i = i0;
  107661. continue;
  107662. }
  107663. i = i0;
  107664. do {
  107665. i0 = i - 1;
  107666. char = source[i];
  107667. if (char === 42) {
  107668. i = i0;
  107669. continue;
  107670. } else
  107671. break;
  107672. } while (true);
  107673. if (char === 47) {
  107674. i = i0;
  107675. break;
  107676. }
  107677. i = i0;
  107678. }
  107679. } else
  107680. i = i0;
  107681. }
  107682. return i;
  107683. },
  107684. _interpolation_map$_expandInterpolationSpanRight$1(end) {
  107685. var t1, i0, next, second, t2, char,
  107686. source = end.file._decodedChars,
  107687. i = end.offset;
  107688. for (t1 = source.length; i < t1;) {
  107689. i0 = i + 1;
  107690. next = source[i];
  107691. if (next === 125) {
  107692. i = i0;
  107693. break;
  107694. }
  107695. if (next === 47) {
  107696. i = i0 + 1;
  107697. second = source[i0];
  107698. if (second === 47) {
  107699. while (true) {
  107700. i0 = i + 1;
  107701. t2 = source[i];
  107702. if (!!(t2 === 10 || t2 === 13 || t2 === 12))
  107703. break;
  107704. i = i0;
  107705. }
  107706. i = i0;
  107707. } else if (second === 42)
  107708. for (; true;) {
  107709. i0 = i + 1;
  107710. if (source[i] !== 42) {
  107711. i = i0;
  107712. continue;
  107713. }
  107714. i = i0;
  107715. do {
  107716. i0 = i + 1;
  107717. char = source[i];
  107718. if (char === 42) {
  107719. i = i0;
  107720. continue;
  107721. } else
  107722. break;
  107723. } while (true);
  107724. if (char === 47) {
  107725. i = i0;
  107726. break;
  107727. }
  107728. i = i0;
  107729. }
  107730. } else
  107731. i = i0;
  107732. }
  107733. return i;
  107734. }
  107735. };
  107736. A.InterpolationMap_mapException_closure0.prototype = {
  107737. call$1($content) {
  107738. return $content instanceof A.Expression0;
  107739. },
  107740. $signature: 76
  107741. };
  107742. A.InterpolationMethod0.prototype = {
  107743. toString$0(_) {
  107744. var t1 = this.hue;
  107745. t1 = t1 == null ? "" : " " + t1.toString$0(0) + " hue";
  107746. return this.space.name + t1;
  107747. }
  107748. };
  107749. A.HueInterpolationMethod0.prototype = {
  107750. _enumToString$0() {
  107751. return "HueInterpolationMethod." + this._name;
  107752. }
  107753. };
  107754. A._realCasePath_helper0.prototype = {
  107755. call$1(path) {
  107756. var dirname = $.$get$context().dirname$1(path);
  107757. if (dirname === path)
  107758. return path;
  107759. return $._realCaseCache0.putIfAbsent$2(path, new A._realCasePath_helper_closure0(this, dirname, path));
  107760. },
  107761. $signature: 6
  107762. };
  107763. A._realCasePath_helper_closure0.prototype = {
  107764. call$0() {
  107765. var matches, t1, _0_0, match, exception,
  107766. realDirname = this.helper.call$1(this.dirname),
  107767. t2 = this.path,
  107768. basename = A.ParsedPath_ParsedPath$parse(t2, $.$get$context().style).get$basename();
  107769. try {
  107770. matches = J.where$1$ax(A.listDir0(realDirname), new A._realCasePath_helper__closure0(basename)).toList$0(0);
  107771. t1 = null;
  107772. _0_0 = matches;
  107773. $label0$0: {
  107774. match = null;
  107775. if (J.get$length$asx(_0_0) === 1) {
  107776. match = J.$index$asx(_0_0, 0);
  107777. t1 = match;
  107778. break $label0$0;
  107779. }
  107780. t1 = A.join(realDirname, basename, null);
  107781. break $label0$0;
  107782. }
  107783. t1 = t1;
  107784. return t1;
  107785. } catch (exception) {
  107786. if (A.unwrapException(exception) instanceof A.FileSystemException0)
  107787. return t2;
  107788. else
  107789. throw exception;
  107790. }
  107791. },
  107792. $signature: 31
  107793. };
  107794. A._realCasePath_helper__closure0.prototype = {
  107795. call$1(realPath) {
  107796. return A.equalsIgnoreCase0(A.ParsedPath_ParsedPath$parse(realPath, $.$get$context().style).get$basename(), this.basename);
  107797. },
  107798. $signature: 5
  107799. };
  107800. A.IsCalculationSafeVisitor0.prototype = {
  107801. visitBinaryOperationExpression$1(_, node) {
  107802. var t1;
  107803. if (B.Set_mqKz0.contains$1(0, node.operator))
  107804. t1 = node.left.accept$1(this) || node.right.accept$1(this);
  107805. else
  107806. t1 = false;
  107807. return t1;
  107808. },
  107809. visitBooleanExpression$1(_, node) {
  107810. return false;
  107811. },
  107812. visitColorExpression$1(_, node) {
  107813. return false;
  107814. },
  107815. visitFunctionExpression$1(_, node) {
  107816. return true;
  107817. },
  107818. visitInterpolatedFunctionExpression$1(_, node) {
  107819. return true;
  107820. },
  107821. visitIfExpression$1(_, node) {
  107822. return true;
  107823. },
  107824. visitListExpression$1(_, node) {
  107825. var t1 = false;
  107826. if (node.separator === B.ListSeparator_nbm0)
  107827. if (!node.hasBrackets) {
  107828. t1 = node.contents;
  107829. t1 = t1.length > 1 && B.JSArray_methods.every$1(t1, new A.IsCalculationSafeVisitor_visitListExpression_closure0(this));
  107830. }
  107831. return t1;
  107832. },
  107833. visitMapExpression$1(_, node) {
  107834. return false;
  107835. },
  107836. visitNullExpression$1(_, node) {
  107837. return false;
  107838. },
  107839. visitNumberExpression$1(_, node) {
  107840. return true;
  107841. },
  107842. visitParenthesizedExpression$1(_, node) {
  107843. return node.expression.accept$1(this);
  107844. },
  107845. visitSelectorExpression$1(_, node) {
  107846. return false;
  107847. },
  107848. visitStringExpression$1(_, node) {
  107849. var text, t1, t2;
  107850. if (node.hasQuotes)
  107851. return false;
  107852. text = node.text.get$initialPlain();
  107853. t1 = false;
  107854. if (!B.JSString_methods.startsWith$1(text, "!"))
  107855. if (!B.JSString_methods.startsWith$1(text, "#")) {
  107856. t2 = text.length;
  107857. if ((1 >= t2 ? null : text.charCodeAt(1)) !== 43)
  107858. t1 = (3 >= t2 ? null : text.charCodeAt(3)) !== 40;
  107859. }
  107860. return t1;
  107861. },
  107862. visitSupportsExpression$1(_, node) {
  107863. return false;
  107864. },
  107865. visitUnaryOperationExpression$1(_, node) {
  107866. return false;
  107867. },
  107868. visitValueExpression$1(_, node) {
  107869. return false;
  107870. },
  107871. visitVariableExpression$1(_, node) {
  107872. return true;
  107873. },
  107874. $isExpressionVisitor: 1
  107875. };
  107876. A.IsCalculationSafeVisitor_visitListExpression_closure0.prototype = {
  107877. call$1(expression) {
  107878. return expression.accept$1(this.$this);
  107879. },
  107880. $signature: 137
  107881. };
  107882. A.FileSystemException0.prototype = {
  107883. toString$0(_) {
  107884. var t1 = $.$get$context();
  107885. return t1.prettyUri$1(t1.toUri$1(this.path)) + ": " + this.message;
  107886. },
  107887. get$message(receiver) {
  107888. return this.message;
  107889. }
  107890. };
  107891. A._readFile_closure0.prototype = {
  107892. call$0() {
  107893. return J.readFileSync$2$x(A.fs(), this.path, this.encoding);
  107894. },
  107895. $signature: 65
  107896. };
  107897. A.fileExists_closure0.prototype = {
  107898. call$0() {
  107899. var error, systemError, exception,
  107900. t1 = this.path;
  107901. if (!J.existsSync$1$x(A.fs(), t1))
  107902. return false;
  107903. try {
  107904. t1 = J.isFile$0$x(J.statSync$1$x(A.fs(), t1));
  107905. return t1;
  107906. } catch (exception) {
  107907. error = A.unwrapException(exception);
  107908. systemError = type$.JsSystemError._as(error);
  107909. if (J.$eq$(J.get$code$x(systemError), "ENOENT"))
  107910. return false;
  107911. throw exception;
  107912. }
  107913. },
  107914. $signature: 24
  107915. };
  107916. A.dirExists_closure0.prototype = {
  107917. call$0() {
  107918. var error, systemError, exception,
  107919. t1 = this.path;
  107920. if (!J.existsSync$1$x(A.fs(), t1))
  107921. return false;
  107922. try {
  107923. t1 = J.isDirectory$0$x(J.statSync$1$x(A.fs(), t1));
  107924. return t1;
  107925. } catch (exception) {
  107926. error = A.unwrapException(exception);
  107927. systemError = type$.JsSystemError._as(error);
  107928. if (J.$eq$(J.get$code$x(systemError), "ENOENT"))
  107929. return false;
  107930. throw exception;
  107931. }
  107932. },
  107933. $signature: 24
  107934. };
  107935. A.listDir_closure0.prototype = {
  107936. call$0() {
  107937. var t1 = this.path;
  107938. if (!this.recursive)
  107939. return J.map$1$1$ax(J.readdirSync$1$x(A.fs(), t1), new A.listDir__closure1(t1), type$.String).super$Iterable$where(0, new A.listDir__closure2());
  107940. else
  107941. return new A.listDir_closure_list0().call$1(t1);
  107942. },
  107943. $signature: 157
  107944. };
  107945. A.listDir__closure1.prototype = {
  107946. call$1(child) {
  107947. return A.join(this.path, A._asString(child), null);
  107948. },
  107949. $signature: 130
  107950. };
  107951. A.listDir__closure2.prototype = {
  107952. call$1(child) {
  107953. return !A.dirExists0(child);
  107954. },
  107955. $signature: 5
  107956. };
  107957. A.listDir_closure_list0.prototype = {
  107958. call$1($parent) {
  107959. return J.expand$1$1$ax(J.readdirSync$1$x(A.fs(), $parent), new A.listDir__list_closure0($parent, this), type$.String);
  107960. },
  107961. $signature: 158
  107962. };
  107963. A.listDir__list_closure0.prototype = {
  107964. call$1(child) {
  107965. var path = A.join(this.parent, A._asString(child), null);
  107966. return A.dirExists0(path) ? this.list.call$1(path) : A._setArrayType([path], type$.JSArray_String);
  107967. },
  107968. $signature: 139
  107969. };
  107970. A.main_closure.prototype = {
  107971. call$2(_, __) {
  107972. },
  107973. $signature: 497
  107974. };
  107975. A.main_closure0.prototype = {
  107976. call$2(_, __) {
  107977. },
  107978. $signature: 498
  107979. };
  107980. A.JSToDartLogger.prototype = {
  107981. internalWarn$4$deprecation$span$trace(message, deprecation, span, trace) {
  107982. var t2, t3, t4,
  107983. t1 = this._node,
  107984. _0_0 = t1 == null ? null : J.get$warn$x(t1);
  107985. if (_0_0 != null) {
  107986. t1 = span == null ? type$.nullable_SourceSpan._as(self.undefined) : span;
  107987. t2 = J.toString$0$(trace);
  107988. t3 = deprecation == null;
  107989. t4 = $.$get$deprecations();
  107990. _0_0.call$2(message, {deprecation: !t3, deprecationType: t4.$index(0, t3 ? null : deprecation.id), span: t1, stack: t2});
  107991. } else
  107992. this._withAscii$1(new A.JSToDartLogger_internalWarn_closure(this, message, span, trace, deprecation));
  107993. },
  107994. debug$2(_, message, span) {
  107995. var t1 = this._node,
  107996. _0_0 = t1 == null ? null : J.get$debug$x(t1);
  107997. if (_0_0 != null)
  107998. _0_0.call$2(message, {span: span});
  107999. else
  108000. this._withAscii$1(new A.JSToDartLogger_debug_closure(this, message, span));
  108001. },
  108002. _withAscii$1$1(callback) {
  108003. var t1,
  108004. wasAscii = $._glyphs === B.C_AsciiGlyphSet;
  108005. $._glyphs = this._ascii ? B.C_AsciiGlyphSet : B.C_UnicodeGlyphSet;
  108006. try {
  108007. t1 = callback.call$0();
  108008. return t1;
  108009. } finally {
  108010. $._glyphs = wasAscii ? B.C_AsciiGlyphSet : B.C_UnicodeGlyphSet;
  108011. }
  108012. },
  108013. _withAscii$1(callback) {
  108014. return this._withAscii$1$1(callback, type$.dynamic);
  108015. }
  108016. };
  108017. A.JSToDartLogger_internalWarn_closure.prototype = {
  108018. call$0() {
  108019. var _this = this;
  108020. _this.$this._fallback.warn$4$deprecation$span$trace(0, _this.message, _this.deprecation != null, _this.span, _this.trace);
  108021. },
  108022. $signature: 1
  108023. };
  108024. A.JSToDartLogger_debug_closure.prototype = {
  108025. call$0() {
  108026. return this.$this._fallback.debug$2(0, this.message, this.span);
  108027. },
  108028. $signature: 0
  108029. };
  108030. A.ModifiableCssKeyframeBlock0.prototype = {
  108031. accept$1$1(visitor) {
  108032. return visitor.visitCssKeyframeBlock$1(this);
  108033. },
  108034. accept$1(visitor) {
  108035. return this.accept$1$1(visitor, type$.dynamic);
  108036. },
  108037. equalsIgnoringChildren$1(other) {
  108038. return other instanceof A.ModifiableCssKeyframeBlock0 && B.C_ListEquality.equals$2(0, this.selector.value, other.selector.value);
  108039. },
  108040. copyWithoutChildren$0() {
  108041. return A.ModifiableCssKeyframeBlock$0(this.selector, this.span);
  108042. },
  108043. get$span(receiver) {
  108044. return this.span;
  108045. }
  108046. };
  108047. A.KeyframeSelectorParser0.prototype = {
  108048. parse$0(_) {
  108049. return this.wrapSpanFormatException$1(new A.KeyframeSelectorParser_parse_closure0(this));
  108050. },
  108051. _keyframe_selector$_percentage$0() {
  108052. var $self, _0_0,
  108053. t1 = this.scanner,
  108054. t2 = t1.scanChar$1(43) ? "" + A.Primitives_stringFromCharCode(43) : "",
  108055. second = t1.peekChar$0();
  108056. if (!(second != null && second >= 48 && second <= 57) && second !== 46)
  108057. t1.error$1(0, "Expected number.");
  108058. while (true) {
  108059. $self = t1.peekChar$0();
  108060. if (!($self != null && $self >= 48 && $self <= 57))
  108061. break;
  108062. t2 += A.Primitives_stringFromCharCode(t1.readChar$0());
  108063. }
  108064. if (t1.peekChar$0() === 46) {
  108065. t2 += A.Primitives_stringFromCharCode(t1.readChar$0());
  108066. while (true) {
  108067. $self = t1.peekChar$0();
  108068. if (!($self != null && $self >= 48 && $self <= 57))
  108069. break;
  108070. t2 += A.Primitives_stringFromCharCode(t1.readChar$0());
  108071. }
  108072. }
  108073. if (this.scanIdentChar$1(101)) {
  108074. t2 += A.Primitives_stringFromCharCode(101);
  108075. _0_0 = t1.peekChar$0();
  108076. if (43 === _0_0 || 45 === _0_0)
  108077. t2 += A.Primitives_stringFromCharCode(t1.readChar$0());
  108078. $self = t1.peekChar$0();
  108079. if (!($self != null && $self >= 48 && $self <= 57))
  108080. t1.error$1(0, "Expected digit.");
  108081. do {
  108082. t2 += A.Primitives_stringFromCharCode(t1.readChar$0());
  108083. $self = t1.peekChar$0();
  108084. } while ($self != null && $self >= 48 && $self <= 57);
  108085. }
  108086. t1.expectChar$1(37);
  108087. t2 += A.Primitives_stringFromCharCode(37);
  108088. return t2.charCodeAt(0) == 0 ? t2 : t2;
  108089. }
  108090. };
  108091. A.KeyframeSelectorParser_parse_closure0.prototype = {
  108092. call$0() {
  108093. var selectors = A._setArrayType([], type$.JSArray_String),
  108094. t1 = this.$this,
  108095. t2 = t1.scanner;
  108096. do {
  108097. t1.whitespace$0();
  108098. if (t1.lookingAtIdentifier$0())
  108099. if (t1.scanIdentifier$1("from"))
  108100. selectors.push("from");
  108101. else {
  108102. t1.expectIdentifier$2$name("to", '"to" or "from"');
  108103. selectors.push("to");
  108104. }
  108105. else
  108106. selectors.push(t1._keyframe_selector$_percentage$0());
  108107. t1.whitespace$0();
  108108. } while (t2.scanChar$1(44));
  108109. t2.expectDone$0();
  108110. return selectors;
  108111. },
  108112. $signature: 132
  108113. };
  108114. A.LabColorSpace0.prototype = {
  108115. get$isBoundedInternal() {
  108116. return false;
  108117. },
  108118. convert$7$missingChroma$missingHue(dest, lightness, a, b, alpha, missingChroma, missingHue) {
  108119. var powerlessAB, t1, missingLightness, f1, t2, t3, t4;
  108120. switch (dest) {
  108121. case B.LabColorSpace_IF20:
  108122. powerlessAB = lightness == null || A.fuzzyEquals0(lightness, 0);
  108123. t1 = a == null || powerlessAB ? null : a;
  108124. return A.SassColor$_forSpace0(B.LabColorSpace_IF20, lightness, t1, b == null || powerlessAB ? null : b, alpha, null);
  108125. case B.LchColorSpace_wv80:
  108126. return A.labToLch0(dest, lightness, a, b, alpha, false, false);
  108127. default:
  108128. missingLightness = lightness == null;
  108129. if (missingLightness)
  108130. lightness = 0;
  108131. f1 = (lightness + 16) / 116;
  108132. t1 = a == null;
  108133. t2 = this._lab$_convertFToXorZ$1((t1 ? 0 : a) / 500 + f1);
  108134. t3 = lightness > 8 ? Math.pow(f1, 3) : lightness / 903.2962962962963;
  108135. t4 = b == null;
  108136. return B.XyzD50ColorSpace_2No0.convert$10$missingA$missingB$missingChroma$missingHue$missingLightness(dest, t2 * 0.9642956764295677, t3, this._lab$_convertFToXorZ$1(f1 - (t4 ? 0 : b) / 200) * 0.8251046025104602, alpha, t1, t4, missingChroma, missingHue, missingLightness);
  108137. }
  108138. },
  108139. convert$5(dest, lightness, a, b, alpha) {
  108140. return this.convert$7$missingChroma$missingHue(dest, lightness, a, b, alpha, false, false);
  108141. },
  108142. _lab$_convertFToXorZ$1(component) {
  108143. var cubed = Math.pow(component, 3) + 0;
  108144. return cubed > 0.008856451679035631 ? cubed : (116 * component - 16) / 903.2962962962963;
  108145. }
  108146. };
  108147. A.LazyFileSpan0.prototype = {
  108148. get$span(_) {
  108149. var t1 = this._lazy_file_span0$_span;
  108150. return t1 == null ? this._lazy_file_span0$_span = this._lazy_file_span0$_builder.call$0() : t1;
  108151. },
  108152. compareTo$1(_, other) {
  108153. return this.get$span(0).compareTo$1(0, other);
  108154. },
  108155. get$context(_) {
  108156. var t1 = this.get$span(0);
  108157. return t1.get$context(t1);
  108158. },
  108159. get$end(_) {
  108160. var t1 = this.get$span(0);
  108161. return t1.get$end(t1);
  108162. },
  108163. expand$1(_, other) {
  108164. return this.get$span(0).expand$1(0, other);
  108165. },
  108166. get$file(_) {
  108167. var t1 = this.get$span(0);
  108168. return t1.get$file(t1);
  108169. },
  108170. highlight$1$color(color) {
  108171. return this.get$span(0).highlight$1$color(color);
  108172. },
  108173. get$length(_) {
  108174. var t1 = this.get$span(0);
  108175. return t1.get$length(t1);
  108176. },
  108177. message$2$color(_, message, color) {
  108178. return this.get$span(0).message$2$color(0, message, color);
  108179. },
  108180. message$1(_, message) {
  108181. return this.message$2$color(0, message, null);
  108182. },
  108183. get$sourceUrl(_) {
  108184. var t1 = this.get$span(0);
  108185. return t1.get$sourceUrl(t1);
  108186. },
  108187. get$start(_) {
  108188. var t1 = this.get$span(0);
  108189. return t1.get$start(t1);
  108190. },
  108191. get$text() {
  108192. return this.get$span(0).get$text();
  108193. },
  108194. $isComparable: 1,
  108195. $isFileSpan: 1,
  108196. $isSourceSpan: 1,
  108197. $isSourceSpanWithContext: 1
  108198. };
  108199. A.LchColorSpace0.prototype = {
  108200. get$isBoundedInternal() {
  108201. return false;
  108202. },
  108203. get$isPolarInternal() {
  108204. return true;
  108205. },
  108206. convert$5(dest, lightness, chroma, hue, alpha) {
  108207. var t1 = hue == null,
  108208. hueRadians = (t1 ? 0 : hue) * 3.141592653589793 / 180,
  108209. t2 = chroma == null,
  108210. t3 = t2 ? 0 : chroma,
  108211. t4 = Math.cos(hueRadians),
  108212. t5 = t2 ? 0 : chroma;
  108213. return B.LabColorSpace_IF20.convert$7$missingChroma$missingHue(dest, lightness, t3 * t4, t5 * Math.sin(hueRadians), alpha, t2, t1);
  108214. }
  108215. };
  108216. A.render_closure.prototype = {
  108217. call$0() {
  108218. var error, exception;
  108219. try {
  108220. this.callback.call$2(null, A.renderSync(this.options));
  108221. } catch (exception) {
  108222. error = A.unwrapException(exception);
  108223. this.callback.call$2(error, null);
  108224. }
  108225. return null;
  108226. },
  108227. $signature: 1
  108228. };
  108229. A.render_closure0.prototype = {
  108230. call$1(result) {
  108231. this.callback.call$2(null, result);
  108232. },
  108233. $signature: 499
  108234. };
  108235. A.render_closure1.prototype = {
  108236. call$2(error, stackTrace) {
  108237. var t2, t3, _null = null,
  108238. t1 = this.callback;
  108239. if (error instanceof A.SassException0)
  108240. t1.call$2(A._wrapException(error, stackTrace), _null);
  108241. else {
  108242. t2 = J.toString$0$(error);
  108243. t3 = A.getTrace0(error);
  108244. t1.call$2(A._newRenderError(t2, t3 == null ? stackTrace : t3, _null, _null, _null, 3), _null);
  108245. }
  108246. },
  108247. $signature: 54
  108248. };
  108249. A._parseFunctions_closure.prototype = {
  108250. call$2(signature, callback) {
  108251. var _0_0, _this = this, t1 = {},
  108252. t2 = _this.options,
  108253. context = {options: A._contextOptions(t2, _this.start)};
  108254. J.set$context$x(J.get$options$x(context), context);
  108255. _0_0 = J.get$fiber$x(t2);
  108256. t1.fiber = null;
  108257. if (_0_0 != null) {
  108258. t1.fiber = _0_0;
  108259. _this.result.push(A.Callable_Callable$fromSignature(B.JSString_methods.trimLeft$0(signature), new A._parseFunctions__closure(t1, callback, context), false));
  108260. } else {
  108261. t1 = _this.result;
  108262. if (!_this.asynch)
  108263. t1.push(A.Callable_Callable$fromSignature(B.JSString_methods.trimLeft$0(signature), new A._parseFunctions__closure0(callback, context), false));
  108264. else
  108265. t1.push(A.AsyncCallable_AsyncCallable$fromSignature(B.JSString_methods.trimLeft$0(signature), new A._parseFunctions__closure1(callback, context), false));
  108266. }
  108267. },
  108268. $signature: 126
  108269. };
  108270. A._parseFunctions__closure.prototype = {
  108271. call$1($arguments) {
  108272. var result,
  108273. t1 = this._box_0,
  108274. currentFiber = J.get$current$x(t1.fiber),
  108275. t2 = type$.Object;
  108276. t2 = A.List_List$of(J.map$1$1$ax($arguments, A.value0__wrapValue$closure(), t2), true, t2);
  108277. t2.push(A.allowInterop(new A._parseFunctions___closure2(currentFiber)));
  108278. result = A.wrapJSExceptions(new A._parseFunctions___closure3(this.callback, this.context, t2));
  108279. return A.unwrapValue(A._asBool($.$get$_isUndefined().call$1(result)) ? A.runZoned(new A._parseFunctions___closure4(t1), null, type$.nullable_Object) : result);
  108280. },
  108281. $signature: 3
  108282. };
  108283. A._parseFunctions___closure2.prototype = {
  108284. call$1(result) {
  108285. A.scheduleMicrotask(new A._parseFunctions____closure(this.currentFiber, result));
  108286. },
  108287. call$0() {
  108288. return this.call$1(null);
  108289. },
  108290. "call*": "call$1",
  108291. $requiredArgCount: 0,
  108292. $defaultValues() {
  108293. return [null];
  108294. },
  108295. $signature: 86
  108296. };
  108297. A._parseFunctions____closure.prototype = {
  108298. call$0() {
  108299. return J.run$1$x(this.currentFiber, this.result);
  108300. },
  108301. $signature: 0
  108302. };
  108303. A._parseFunctions___closure3.prototype = {
  108304. call$0() {
  108305. return J.apply$2$x(type$.JSFunction._as(this.callback), this.context, this.jsArguments);
  108306. },
  108307. $signature: 37
  108308. };
  108309. A._parseFunctions___closure4.prototype = {
  108310. call$0() {
  108311. return J.yield$0$x(this._box_0.fiber);
  108312. },
  108313. $signature: 83
  108314. };
  108315. A._parseFunctions__closure0.prototype = {
  108316. call$1($arguments) {
  108317. return A.unwrapValue(A.wrapJSExceptions(new A._parseFunctions___closure1(this.callback, this.context, $arguments)));
  108318. },
  108319. $signature: 3
  108320. };
  108321. A._parseFunctions___closure1.prototype = {
  108322. call$0() {
  108323. var t1 = type$.JSFunction._as(this.callback),
  108324. t2 = J.map$1$1$ax(this.$arguments, A.value0__wrapValue$closure(), type$.Object);
  108325. return J.apply$2$x(t1, this.context, A.List_List$of(t2, true, t2.$ti._eval$1("ListIterable.E")));
  108326. },
  108327. $signature: 37
  108328. };
  108329. A._parseFunctions__closure1.prototype = {
  108330. call$1($arguments) {
  108331. return this.$call$body$_parseFunctions__closure($arguments);
  108332. },
  108333. $call$body$_parseFunctions__closure($arguments) {
  108334. var $async$goto = 0,
  108335. $async$completer = A._makeAsyncAwaitCompleter(type$.Value_2),
  108336. $async$returnValue, $async$self = this, result, t1, t2, $async$temp1;
  108337. var $async$call$1 = A._wrapJsFunctionForAsync(function($async$errorCode, $async$result) {
  108338. if ($async$errorCode === 1)
  108339. return A._asyncRethrow($async$result, $async$completer);
  108340. while (true)
  108341. switch ($async$goto) {
  108342. case 0:
  108343. // Function start
  108344. t1 = new A._Future($.Zone__current, type$._Future_nullable_Object);
  108345. t2 = type$.Object;
  108346. t2 = A.List_List$of(J.map$1$1$ax($arguments, A.value0__wrapValue$closure(), t2), true, t2);
  108347. t2.push(A.allowInterop(new A._parseFunctions___closure(new A._AsyncCompleter(t1, type$._AsyncCompleter_nullable_Object))));
  108348. result = A.wrapJSExceptions(new A._parseFunctions___closure0($async$self.callback, $async$self.context, t2));
  108349. $async$temp1 = A;
  108350. $async$goto = A._asBool($.$get$_isUndefined().call$1(result)) ? 3 : 5;
  108351. break;
  108352. case 3:
  108353. // then
  108354. $async$goto = 6;
  108355. return A._asyncAwait(t1, $async$call$1);
  108356. case 6:
  108357. // returning from await.
  108358. // goto join
  108359. $async$goto = 4;
  108360. break;
  108361. case 5:
  108362. // else
  108363. $async$result = result;
  108364. case 4:
  108365. // join
  108366. $async$returnValue = $async$temp1.unwrapValue($async$result);
  108367. // goto return
  108368. $async$goto = 1;
  108369. break;
  108370. case 1:
  108371. // return
  108372. return A._asyncReturn($async$returnValue, $async$completer);
  108373. }
  108374. });
  108375. return A._asyncStartSync($async$call$1, $async$completer);
  108376. },
  108377. $signature: 107
  108378. };
  108379. A._parseFunctions___closure.prototype = {
  108380. call$1(result) {
  108381. return this.completer.complete$1(result);
  108382. },
  108383. call$0() {
  108384. return this.call$1(null);
  108385. },
  108386. "call*": "call$1",
  108387. $requiredArgCount: 0,
  108388. $defaultValues() {
  108389. return [null];
  108390. },
  108391. $signature: 265
  108392. };
  108393. A._parseFunctions___closure0.prototype = {
  108394. call$0() {
  108395. return J.apply$2$x(type$.JSFunction._as(this.callback), this.context, this.jsArguments);
  108396. },
  108397. $signature: 37
  108398. };
  108399. A._parseImporter_closure.prototype = {
  108400. call$1(importer) {
  108401. return type$.JSFunction._as(A.allowInteropCaptureThis(new A._parseImporter__closure(this._box_0, importer)));
  108402. },
  108403. $signature: 500
  108404. };
  108405. A._parseImporter__closure.prototype = {
  108406. call$4(thisArg, url, previous, _) {
  108407. var t1 = this._box_0,
  108408. result = J.apply$2$x(this.importer, thisArg, A._setArrayType([url, previous, A.allowInterop(new A._parseImporter___closure(J.get$current$x(t1.fiber)))], type$.JSArray_Object));
  108409. if (A._asBool($.$get$_isUndefined().call$1(result)))
  108410. return A.runZoned(new A._parseImporter___closure0(t1), null, type$.Object);
  108411. return result;
  108412. },
  108413. call$3(thisArg, url, previous) {
  108414. return this.call$4(thisArg, url, previous, null);
  108415. },
  108416. "call*": "call$4",
  108417. $requiredArgCount: 3,
  108418. $defaultValues() {
  108419. return [null];
  108420. },
  108421. $signature: 501
  108422. };
  108423. A._parseImporter___closure.prototype = {
  108424. call$1(result) {
  108425. A.scheduleMicrotask(new A._parseImporter____closure(this.currentFiber, result));
  108426. },
  108427. $signature: 502
  108428. };
  108429. A._parseImporter____closure.prototype = {
  108430. call$0() {
  108431. return J.run$1$x(this.currentFiber, this.result);
  108432. },
  108433. $signature: 0
  108434. };
  108435. A._parseImporter___closure0.prototype = {
  108436. call$0() {
  108437. return J.yield$0$x(this._box_0.fiber);
  108438. },
  108439. $signature: 83
  108440. };
  108441. A.LimitedMapView0.prototype = {
  108442. get$keys(_) {
  108443. return this._limited_map_view0$_keys;
  108444. },
  108445. get$length(_) {
  108446. return this._limited_map_view0$_keys._collection$_length;
  108447. },
  108448. get$isEmpty(_) {
  108449. return this._limited_map_view0$_keys._collection$_length === 0;
  108450. },
  108451. get$isNotEmpty(_) {
  108452. return this._limited_map_view0$_keys._collection$_length !== 0;
  108453. },
  108454. $index(_, key) {
  108455. return this._limited_map_view0$_keys.contains$1(0, key) ? this._limited_map_view0$_map.$index(0, key) : null;
  108456. },
  108457. containsKey$1(key) {
  108458. return this._limited_map_view0$_keys.contains$1(0, key);
  108459. },
  108460. remove$1(_, key) {
  108461. return this._limited_map_view0$_keys.contains$1(0, key) ? this._limited_map_view0$_map.remove$1(0, key) : null;
  108462. }
  108463. };
  108464. A.ListExpression0.prototype = {
  108465. accept$1$1(visitor) {
  108466. return visitor.visitListExpression$1(0, this);
  108467. },
  108468. accept$1(visitor) {
  108469. return this.accept$1$1(visitor, type$.dynamic);
  108470. },
  108471. toString$0(_) {
  108472. var t2, t3, t4, t5, _this = this,
  108473. t1 = _this.hasBrackets;
  108474. if (t1)
  108475. t2 = "" + A.Primitives_stringFromCharCode(91);
  108476. else {
  108477. t2 = _this.contents.length;
  108478. if (t2 !== 0)
  108479. t2 = t2 === 1 && _this.separator === B.ListSeparator_ECn0;
  108480. else
  108481. t2 = true;
  108482. t2 = t2 ? "" + A.Primitives_stringFromCharCode(40) : "";
  108483. }
  108484. t3 = _this.contents;
  108485. t4 = _this.separator === B.ListSeparator_ECn0;
  108486. t5 = t4 ? ", " : " ";
  108487. t5 = t2 + new A.MappedListIterable(t3, new A.ListExpression_toString_closure0(_this), A._arrayInstanceType(t3)._eval$1("MappedListIterable<1,String>")).join$1(0, t5);
  108488. if (t1)
  108489. t1 = t5 + A.Primitives_stringFromCharCode(93);
  108490. else {
  108491. t1 = t3.length;
  108492. if (t1 === 0)
  108493. t1 = t5 + A.Primitives_stringFromCharCode(41);
  108494. else
  108495. t1 = t1 === 1 && t4 ? t5 + ",)" : t5;
  108496. }
  108497. return t1.charCodeAt(0) == 0 ? t1 : t1;
  108498. },
  108499. _list3$_elementNeedsParens$1(expression) {
  108500. var childSeparator, t1, _0_13;
  108501. $label0$0: {
  108502. if (expression instanceof A.ListExpression0 && expression.contents.length >= 2 && !expression.hasBrackets) {
  108503. childSeparator = expression.separator;
  108504. t1 = this.separator === B.ListSeparator_ECn0 ? childSeparator === B.ListSeparator_ECn0 : childSeparator !== B.ListSeparator_undecided_null_undecided0;
  108505. break $label0$0;
  108506. }
  108507. if (expression instanceof A.UnaryOperationExpression0) {
  108508. _0_13 = expression.operator;
  108509. if (B.UnaryOperator_cLp0 !== _0_13)
  108510. t1 = B.UnaryOperator_AiQ0 === _0_13;
  108511. else
  108512. t1 = true;
  108513. } else
  108514. t1 = false;
  108515. if (t1) {
  108516. t1 = this.separator === B.ListSeparator_nbm0;
  108517. break $label0$0;
  108518. }
  108519. t1 = false;
  108520. break $label0$0;
  108521. }
  108522. return t1;
  108523. },
  108524. get$span(receiver) {
  108525. return this.span;
  108526. }
  108527. };
  108528. A.ListExpression_toString_closure0.prototype = {
  108529. call$1(element) {
  108530. return this.$this._list3$_elementNeedsParens$1(element) ? "(" + element.toString$0(0) + ")" : element.toString$0(0);
  108531. },
  108532. $signature: 112
  108533. };
  108534. A._length_closure2.prototype = {
  108535. call$1($arguments) {
  108536. return A.SassNumber_SassNumber0(J.$index$asx($arguments, 0).get$asList().length, null);
  108537. },
  108538. $signature: 22
  108539. };
  108540. A._nth_closure0.prototype = {
  108541. call$1($arguments) {
  108542. var t1 = J.getInterceptor$asx($arguments),
  108543. list = t1.$index($arguments, 0),
  108544. index = t1.$index($arguments, 1);
  108545. return list.get$asList()[list.sassIndexToListIndex$2(index, "n")];
  108546. },
  108547. $signature: 3
  108548. };
  108549. A._setNth_closure0.prototype = {
  108550. call$1($arguments) {
  108551. var newList,
  108552. t1 = J.getInterceptor$asx($arguments),
  108553. list = t1.$index($arguments, 0),
  108554. index = t1.$index($arguments, 1),
  108555. value = t1.$index($arguments, 2);
  108556. t1 = list.get$asList();
  108557. newList = A._setArrayType(t1.slice(0), A._arrayInstanceType(t1));
  108558. newList[list.sassIndexToListIndex$2(index, "n")] = value;
  108559. return list.withListContents$1(newList);
  108560. },
  108561. $signature: 26
  108562. };
  108563. A._join_closure0.prototype = {
  108564. call$1($arguments) {
  108565. var _0_1, _0_4, _0_3, t2, t3, _0_40, separator, bracketed, _null = null,
  108566. t1 = J.getInterceptor$asx($arguments),
  108567. list1 = t1.$index($arguments, 0),
  108568. list2 = t1.$index($arguments, 1),
  108569. separatorParam = t1.$index($arguments, 2).assertString$1("separator"),
  108570. bracketedParam = t1.$index($arguments, 3),
  108571. _1_0 = separatorParam._string0$_text;
  108572. $label1$1: {
  108573. if ("auto" === _1_0) {
  108574. _0_1 = list1.get$separator(list1);
  108575. _0_4 = list2.get$separator(list2);
  108576. $label0$0: {
  108577. t1 = _null;
  108578. _0_3 = B.ListSeparator_undecided_null_undecided0 === _0_1;
  108579. t2 = _0_3;
  108580. if (t2) {
  108581. t3 = B.ListSeparator_undecided_null_undecided0 === _0_4;
  108582. _0_40 = _0_4;
  108583. } else {
  108584. _0_40 = _null;
  108585. t3 = false;
  108586. }
  108587. if (t3) {
  108588. t1 = B.ListSeparator_nbm0;
  108589. break $label0$0;
  108590. }
  108591. if (_0_3)
  108592. separator = t2 ? _0_40 : _0_4;
  108593. else
  108594. separator = t1;
  108595. if (!_0_3)
  108596. separator = _0_1;
  108597. t1 = separator;
  108598. break $label0$0;
  108599. }
  108600. break $label1$1;
  108601. }
  108602. if ("space" === _1_0) {
  108603. t1 = B.ListSeparator_nbm0;
  108604. break $label1$1;
  108605. }
  108606. if ("comma" === _1_0) {
  108607. t1 = B.ListSeparator_ECn0;
  108608. break $label1$1;
  108609. }
  108610. if ("slash" === _1_0) {
  108611. t1 = B.ListSeparator_cQA0;
  108612. break $label1$1;
  108613. }
  108614. t1 = A.throwExpression(A.SassScriptException$0(string$.x24separ, _null));
  108615. }
  108616. bracketed = bracketedParam instanceof A.SassString0 && bracketedParam._string0$_text === "auto" ? list1.get$hasBrackets() : bracketedParam.get$isTruthy();
  108617. t2 = A.List_List$of(list1.get$asList(), true, type$.Value_2);
  108618. B.JSArray_methods.addAll$1(t2, list2.get$asList());
  108619. return A.SassList$0(t2, t1, bracketed);
  108620. },
  108621. $signature: 26
  108622. };
  108623. A._append_closure2.prototype = {
  108624. call$1($arguments) {
  108625. var t2,
  108626. t1 = J.getInterceptor$asx($arguments),
  108627. list = t1.$index($arguments, 0),
  108628. value = t1.$index($arguments, 1),
  108629. _0_0 = t1.$index($arguments, 2).assertString$1("separator")._string0$_text;
  108630. $label0$0: {
  108631. if ("auto" === _0_0) {
  108632. t1 = list.get$separator(list) === B.ListSeparator_undecided_null_undecided0 ? B.ListSeparator_nbm0 : list.get$separator(list);
  108633. break $label0$0;
  108634. }
  108635. if ("space" === _0_0) {
  108636. t1 = B.ListSeparator_nbm0;
  108637. break $label0$0;
  108638. }
  108639. if ("comma" === _0_0) {
  108640. t1 = B.ListSeparator_ECn0;
  108641. break $label0$0;
  108642. }
  108643. if ("slash" === _0_0) {
  108644. t1 = B.ListSeparator_cQA0;
  108645. break $label0$0;
  108646. }
  108647. t1 = A.throwExpression(A.SassScriptException$0(string$.x24separ, null));
  108648. }
  108649. t2 = A.List_List$of(list.get$asList(), true, type$.Value_2);
  108650. t2.push(value);
  108651. return list.withListContents$2$separator(t2, t1);
  108652. },
  108653. $signature: 26
  108654. };
  108655. A._zip_closure0.prototype = {
  108656. call$1($arguments) {
  108657. var results, result, _box_0 = {},
  108658. t1 = J.$index$asx($arguments, 0).get$asList(),
  108659. t2 = A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,List<Value0>>"),
  108660. lists = A.List_List$of(new A.MappedListIterable(t1, new A._zip__closure2(), t2), true, t2._eval$1("ListIterable.E"));
  108661. if (lists.length === 0)
  108662. return B.SassList_bdS1;
  108663. _box_0.i = 0;
  108664. results = A._setArrayType([], type$.JSArray_SassList_2);
  108665. for (t1 = A._arrayInstanceType(lists)._eval$1("MappedListIterable<1,Value0>"), t2 = type$.Value_2; B.JSArray_methods.every$1(lists, new A._zip__closure3(_box_0));) {
  108666. result = A.List_List$from(new A.MappedListIterable(lists, new A._zip__closure4(_box_0), t1), false, t2);
  108667. result.fixed$length = Array;
  108668. result.immutable$list = Array;
  108669. results.push(new A.SassList0(result, B.ListSeparator_nbm0, false));
  108670. ++_box_0.i;
  108671. }
  108672. return A.SassList$0(results, B.ListSeparator_ECn0, false);
  108673. },
  108674. $signature: 26
  108675. };
  108676. A._zip__closure2.prototype = {
  108677. call$1(list) {
  108678. return list.get$asList();
  108679. },
  108680. $signature: 504
  108681. };
  108682. A._zip__closure3.prototype = {
  108683. call$1(list) {
  108684. return this._box_0.i !== J.get$length$asx(list);
  108685. },
  108686. $signature: 505
  108687. };
  108688. A._zip__closure4.prototype = {
  108689. call$1(list) {
  108690. return J.$index$asx(list, this._box_0.i);
  108691. },
  108692. $signature: 3
  108693. };
  108694. A._index_closure2.prototype = {
  108695. call$1($arguments) {
  108696. var t1 = J.getInterceptor$asx($arguments),
  108697. index = B.JSArray_methods.indexOf$1(t1.$index($arguments, 0).get$asList(), t1.$index($arguments, 1));
  108698. return index === -1 ? B.C__SassNull0 : A.SassNumber_SassNumber0(index + 1, null);
  108699. },
  108700. $signature: 3
  108701. };
  108702. A._separator_closure0.prototype = {
  108703. call$1($arguments) {
  108704. var t1,
  108705. _0_0 = J.get$separator$x(J.$index$asx($arguments, 0));
  108706. $label0$0: {
  108707. if (B.ListSeparator_ECn0 === _0_0) {
  108708. t1 = new A.SassString0("comma", false);
  108709. break $label0$0;
  108710. }
  108711. if (B.ListSeparator_cQA0 === _0_0) {
  108712. t1 = new A.SassString0("slash", false);
  108713. break $label0$0;
  108714. }
  108715. t1 = new A.SassString0("space", false);
  108716. break $label0$0;
  108717. }
  108718. return t1;
  108719. },
  108720. $signature: 17
  108721. };
  108722. A._isBracketed_closure0.prototype = {
  108723. call$1($arguments) {
  108724. return J.$index$asx($arguments, 0).get$hasBrackets() ? B.SassBoolean_true0 : B.SassBoolean_false0;
  108725. },
  108726. $signature: 12
  108727. };
  108728. A._slash_closure0.prototype = {
  108729. call$1($arguments) {
  108730. var list = J.$index$asx($arguments, 0).get$asList();
  108731. if (list.length < 2)
  108732. throw A.wrapException(A.SassScriptException$0("At least two elements are required.", null));
  108733. return A.SassList$0(list, B.ListSeparator_cQA0, false);
  108734. },
  108735. $signature: 26
  108736. };
  108737. A.SelectorList0.prototype = {
  108738. get$asSassList() {
  108739. var t1 = this.components;
  108740. return A.SassList$0(new A.MappedListIterable(t1, new A.SelectorList_asSassList_closure0(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value0>")), B.ListSeparator_ECn0, false);
  108741. },
  108742. accept$1$1(visitor) {
  108743. return visitor.visitSelectorList$1(this);
  108744. },
  108745. accept$1(visitor) {
  108746. return this.accept$1$1(visitor, type$.dynamic);
  108747. },
  108748. unify$1(other) {
  108749. var t3, t4, t5, t6, _i, complex1, _i0, t7,
  108750. t1 = type$.JSArray_ComplexSelector_2,
  108751. t2 = A._setArrayType([], t1);
  108752. for (t3 = this.components, t4 = t3.length, t5 = other.components, t6 = t5.length, _i = 0; _i < t4; ++_i) {
  108753. complex1 = t3[_i];
  108754. for (_i0 = 0; _i0 < t6; ++_i0) {
  108755. t7 = A.unifyComplex0(A._setArrayType([complex1, t5[_i0]], t1), complex1.span);
  108756. if (t7 != null)
  108757. B.JSArray_methods.addAll$1(t2, t7);
  108758. }
  108759. }
  108760. return t2.length === 0 ? null : A.SelectorList$0(t2, this.span);
  108761. },
  108762. nestWithin$3$implicitParent$preserveParentSelectors($parent, implicitParent, preserveParentSelectors) {
  108763. var parentSelector, t1, _this = this;
  108764. if ($parent == null) {
  108765. if (preserveParentSelectors)
  108766. return _this;
  108767. parentSelector = B.C__ParentSelectorVisitor0.visitSelectorList$1(_this);
  108768. if (parentSelector == null)
  108769. return _this;
  108770. throw A.wrapException(A.SassException$0(string$.Top_les, parentSelector.span, null));
  108771. }
  108772. t1 = _this.components;
  108773. return A.SelectorList$0(A.flattenVertically0(new A.MappedListIterable(t1, new A.SelectorList_nestWithin_closure0(_this, preserveParentSelectors, implicitParent, $parent), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Iterable<ComplexSelector0>>")), type$.ComplexSelector_2), _this.span);
  108774. },
  108775. nestWithin$1($parent) {
  108776. return this.nestWithin$3$implicitParent$preserveParentSelectors($parent, true, false);
  108777. },
  108778. nestWithin$2$implicitParent($parent, implicitParent) {
  108779. return this.nestWithin$3$implicitParent$preserveParentSelectors($parent, implicitParent, false);
  108780. },
  108781. _list2$_nestWithinCompound$2(component, $parent) {
  108782. var resolvedSimples, parentSelector, error, stackTrace, t2, resolvedSimples0, exception,
  108783. t1 = component.selector,
  108784. simples = t1.components,
  108785. containsSelectorPseudo = J.any$1$ax(simples, new A.SelectorList__nestWithinCompound_closure2());
  108786. if (!containsSelectorPseudo && !(J.get$first$ax(simples) instanceof A.ParentSelector0))
  108787. return null;
  108788. if (containsSelectorPseudo) {
  108789. t2 = simples;
  108790. resolvedSimples0 = new A.MappedListIterable(t2, new A.SelectorList__nestWithinCompound_closure3($parent), A._arrayInstanceType(t2)._eval$1("MappedListIterable<1,SimpleSelector0>"));
  108791. } else
  108792. resolvedSimples0 = simples;
  108793. resolvedSimples = resolvedSimples0;
  108794. parentSelector = J.get$first$ax(simples);
  108795. try {
  108796. if (!(parentSelector instanceof A.ParentSelector0)) {
  108797. t2 = component.span;
  108798. t2 = A._setArrayType([A.ComplexSelector$0(B.List_empty14, A._setArrayType([new A.ComplexSelectorComponent0(A.CompoundSelector$0(resolvedSimples, t1.span), A.List_List$unmodifiable(component.combinators, type$.CssValue_Combinator_2), t2)], type$.JSArray_ComplexSelectorComponent_2), t2, false)], type$.JSArray_ComplexSelector_2);
  108799. return t2;
  108800. } else if (J.get$length$asx(simples) === 1 && parentSelector.suffix == null) {
  108801. t1 = $parent.withAdditionalCombinators$1(component.combinators);
  108802. return t1.components;
  108803. }
  108804. } catch (exception) {
  108805. t1 = A.unwrapException(exception);
  108806. if (t1 instanceof A.SassException0) {
  108807. error = t1;
  108808. stackTrace = A.getTraceFromException(exception);
  108809. A.throwWithTrace0(error.withAdditionalSpan$2(parentSelector.span, "parent selector"), error, stackTrace);
  108810. } else
  108811. throw exception;
  108812. }
  108813. t1 = $parent.components;
  108814. return new A.MappedListIterable(t1, new A.SelectorList__nestWithinCompound_closure4(parentSelector, resolvedSimples, component), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector0>"));
  108815. },
  108816. isSuperselector$1(other) {
  108817. return A.listIsSuperselector0(this.components, other.components);
  108818. },
  108819. withAdditionalCombinators$1(combinators) {
  108820. var t1;
  108821. if (combinators.length === 0)
  108822. t1 = this;
  108823. else {
  108824. t1 = this.components;
  108825. t1 = A.SelectorList$0(new A.MappedListIterable(t1, new A.SelectorList_withAdditionalCombinators_closure0(combinators), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector0>")), this.span);
  108826. }
  108827. return t1;
  108828. },
  108829. get$hashCode(_) {
  108830. return B.C_ListEquality0.hash$1(this.components);
  108831. },
  108832. $eq(_, other) {
  108833. if (other == null)
  108834. return false;
  108835. return other instanceof A.SelectorList0 && B.C_ListEquality.equals$2(0, this.components, other.components);
  108836. }
  108837. };
  108838. A.SelectorList_asSassList_closure0.prototype = {
  108839. call$1(complex) {
  108840. var t3, t4, _i, component, t5, visitor, t6, t7, _i0, _null = null,
  108841. t1 = type$.JSArray_Value_2,
  108842. t2 = A._setArrayType([], t1);
  108843. for (t3 = complex.leadingCombinators, t4 = t3.length, _i = 0; _i < t4; ++_i)
  108844. t2.push(new A.SassString0(J.toString$0$(t3[_i].value), false));
  108845. for (t3 = complex.components, t4 = t3.length, _i = 0; _i < t4; ++_i) {
  108846. component = t3[_i];
  108847. t5 = component.selector;
  108848. visitor = A._SerializeVisitor$0(_null, true, _null, _null, true, false, _null, true);
  108849. t5.accept$1(visitor);
  108850. t5 = A._setArrayType([new A.SassString0(visitor._serialize0$_buffer.toString$0(0), false)], t1);
  108851. for (t6 = component.combinators, t7 = t6.length, _i0 = 0; _i0 < t7; ++_i0)
  108852. t5.push(new A.SassString0(J.toString$0$(t6[_i0].value), false));
  108853. B.JSArray_methods.addAll$1(t2, t5);
  108854. }
  108855. return A.SassList$0(t2, B.ListSeparator_nbm0, false);
  108856. },
  108857. $signature: 506
  108858. };
  108859. A.SelectorList_nestWithin_closure0.prototype = {
  108860. call$1(complex) {
  108861. var t1, newComplexes, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, _i, component, resolved, i, t12, t13, t14, _i0, newComplex, t15, _this = this;
  108862. if (_this.preserveParentSelectors || complex.accept$1(B.C__ParentSelectorVisitor0) == null) {
  108863. if (!_this.implicitParent)
  108864. return A._setArrayType([complex], type$.JSArray_ComplexSelector_2);
  108865. t1 = _this.parent.components;
  108866. return new A.MappedListIterable(t1, new A.SelectorList_nestWithin__closure1(complex), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector0>"));
  108867. }
  108868. t1 = type$.JSArray_ComplexSelector_2;
  108869. newComplexes = A._setArrayType([], t1);
  108870. for (t2 = complex.components, t3 = t2.length, t4 = _this.$this, t5 = _this.parent, t6 = type$.ComplexSelector_2, t7 = complex.leadingCombinators, t8 = t7.length === 0, t9 = complex.span, t10 = type$.ComplexSelectorComponent_2, t11 = type$.JSArray_ComplexSelectorComponent_2, _i = 0; _i < t3; ++_i) {
  108871. component = t2[_i];
  108872. resolved = t4._list2$_nestWithinCompound$2(component, t5);
  108873. if (resolved == null)
  108874. if (newComplexes.length === 0)
  108875. newComplexes.push(A.ComplexSelector$0(t7, A._setArrayType([component], t11), t9, false));
  108876. else
  108877. for (i = 0; i < newComplexes.length; ++i) {
  108878. t12 = newComplexes[i];
  108879. t13 = t12.leadingCombinators;
  108880. t14 = A.List_List$of(t12.components, true, t10);
  108881. t14.push(component);
  108882. t12 = t12.lineBreak;
  108883. newComplexes[i] = A.ComplexSelector$0(t13, t14, t9, t12);
  108884. }
  108885. else if (newComplexes.length === 0)
  108886. B.JSArray_methods.addAll$1(newComplexes, t8 ? resolved : J.map$1$1$ax(resolved, new A.SelectorList_nestWithin__closure2(complex), t6));
  108887. else {
  108888. t12 = A._setArrayType([], t1);
  108889. for (t13 = newComplexes.length, t14 = J.getInterceptor$ax(resolved), _i0 = 0; _i0 < newComplexes.length; newComplexes.length === t13 || (0, A.throwConcurrentModificationError)(newComplexes), ++_i0) {
  108890. newComplex = newComplexes[_i0];
  108891. for (t15 = t14.get$iterator(resolved); t15.moveNext$0();)
  108892. t12.push(newComplex.concatenate$2(t15.get$current(t15), newComplex.span));
  108893. }
  108894. newComplexes = t12;
  108895. }
  108896. }
  108897. return newComplexes;
  108898. },
  108899. $signature: 507
  108900. };
  108901. A.SelectorList_nestWithin__closure1.prototype = {
  108902. call$1(parentComplex) {
  108903. var t1 = this.complex;
  108904. return parentComplex.concatenate$2(t1, t1.span);
  108905. },
  108906. $signature: 59
  108907. };
  108908. A.SelectorList_nestWithin__closure2.prototype = {
  108909. call$1(resolvedComplex) {
  108910. var t1 = resolvedComplex.leadingCombinators,
  108911. t2 = this.complex,
  108912. t3 = t2.leadingCombinators;
  108913. if (t1.length === 0)
  108914. t1 = t3;
  108915. else {
  108916. t3 = A.List_List$of(t3, true, type$.CssValue_Combinator_2);
  108917. B.JSArray_methods.addAll$1(t3, t1);
  108918. t1 = t3;
  108919. }
  108920. return A.ComplexSelector$0(t1, resolvedComplex.components, t2.span, resolvedComplex.lineBreak);
  108921. },
  108922. $signature: 59
  108923. };
  108924. A.SelectorList__nestWithinCompound_closure2.prototype = {
  108925. call$1(simple) {
  108926. var selector;
  108927. if (!(simple instanceof A.PseudoSelector0))
  108928. return false;
  108929. selector = simple.selector;
  108930. return selector != null && selector.accept$1(B.C__ParentSelectorVisitor0) != null;
  108931. },
  108932. $signature: 14
  108933. };
  108934. A.SelectorList__nestWithinCompound_closure3.prototype = {
  108935. call$1(simple) {
  108936. var selector, t1, _0_2;
  108937. $label0$0: {
  108938. selector = null;
  108939. t1 = false;
  108940. if (simple instanceof A.PseudoSelector0) {
  108941. _0_2 = simple.selector;
  108942. if (_0_2 != null) {
  108943. selector = _0_2 == null ? type$.SelectorList_2._as(_0_2) : _0_2;
  108944. t1 = selector.accept$1(B.C__ParentSelectorVisitor0) != null;
  108945. }
  108946. }
  108947. if (t1) {
  108948. t1 = simple.withSelector$1(selector.nestWithin$2$implicitParent(this.parent, false));
  108949. break $label0$0;
  108950. }
  108951. t1 = simple;
  108952. break $label0$0;
  108953. }
  108954. return t1;
  108955. },
  108956. $signature: 508
  108957. };
  108958. A.SelectorList__nestWithinCompound_closure4.prototype = {
  108959. call$1(complex) {
  108960. var lastComponent, suffix, lastSimples, t1, t2, last, t3, error, stackTrace, t4, t5, t6, t7, exception, _this = this;
  108961. try {
  108962. t4 = complex.components;
  108963. lastComponent = B.JSArray_methods.get$last(t4);
  108964. if (lastComponent.combinators.length !== 0) {
  108965. t1 = A.MultiSpanSassException$0('Selector "' + complex.toString$0(0) + string$.x22x20can_, A.SpanExtensions_trimRight0(lastComponent.span), "outer selector", A.LinkedHashMap_LinkedHashMap$_literal([_this.parentSelector.span, "parent selector"], type$.FileSpan, type$.String), null);
  108966. throw A.wrapException(t1);
  108967. }
  108968. suffix = _this.parentSelector.suffix;
  108969. lastSimples = lastComponent.selector.components;
  108970. t5 = type$.SimpleSelector_2;
  108971. t6 = _this.resolvedSimples;
  108972. t7 = J.getInterceptor$ax(t6);
  108973. if (suffix == null) {
  108974. t1 = A.List_List$of(lastSimples, true, t5);
  108975. J.addAll$1$ax(t1, t7.skip$1(t6, 1));
  108976. t1 = t1;
  108977. } else {
  108978. t2 = A.List_List$of(A.IterableExtension_get_exceptLast0(lastSimples), true, t5);
  108979. J.add$1$ax(t2, J.get$last$ax(lastSimples).addSuffix$1(suffix));
  108980. J.addAll$1$ax(t2, t7.skip$1(t6, 1));
  108981. t1 = t2;
  108982. }
  108983. t2 = _this.component;
  108984. last = A.CompoundSelector$0(t1, t2.selector.span);
  108985. t3 = A.List_List$of(A.IterableExtension_get_exceptLast0(t4), true, type$.ComplexSelectorComponent_2);
  108986. t4 = t2.span;
  108987. J.add$1$ax(t3, new A.ComplexSelectorComponent0(last, A.List_List$unmodifiable(t2.combinators, type$.CssValue_Combinator_2), t4));
  108988. t4 = A.ComplexSelector$0(complex.leadingCombinators, t3, t4, complex.lineBreak);
  108989. return t4;
  108990. } catch (exception) {
  108991. t1 = A.unwrapException(exception);
  108992. if (t1 instanceof A.SassException0) {
  108993. error = t1;
  108994. stackTrace = A.getTraceFromException(exception);
  108995. A.throwWithTrace0(error.withAdditionalSpan$2(_this.parentSelector.span, "parent selector"), error, stackTrace);
  108996. } else
  108997. throw exception;
  108998. }
  108999. },
  109000. $signature: 59
  109001. };
  109002. A.SelectorList_withAdditionalCombinators_closure0.prototype = {
  109003. call$1(complex) {
  109004. return complex.withAdditionalCombinators$1(this.combinators);
  109005. },
  109006. $signature: 59
  109007. };
  109008. A._ParentSelectorVisitor0.prototype = {
  109009. visitParentSelector$1(selector) {
  109010. return selector;
  109011. }
  109012. };
  109013. A.__ParentSelectorVisitor_Object_SelectorSearchVisitor0.prototype = {};
  109014. A.listClass_closure.prototype = {
  109015. call$0() {
  109016. var t1 = type$.JSClass,
  109017. jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.SassList", new A.listClass__closure()));
  109018. J.get$$prototype$x(jsClass).get = A.allowInteropCaptureThisNamed("get", new A.listClass__closure0());
  109019. A.JSClassExtension_injectSuperclass(t1._as(B.SassList_k8F.constructor), jsClass);
  109020. return jsClass;
  109021. },
  109022. $signature: 16
  109023. };
  109024. A.listClass__closure.prototype = {
  109025. call$3($self, contentsOrOptions, options) {
  109026. var contents, t1, t2;
  109027. if (self.immutable.isList(contentsOrOptions))
  109028. contents = J.cast$1$0$ax(J.toArray$0$x(type$.ImmutableList._as(contentsOrOptions)), type$.Value_2);
  109029. else if (type$.List_dynamic._is(contentsOrOptions))
  109030. contents = J.cast$1$0$ax(contentsOrOptions, type$.Value_2);
  109031. else {
  109032. contents = A._setArrayType([], type$.JSArray_Value_2);
  109033. type$.nullable__ConstructorOptions._as(contentsOrOptions);
  109034. options = contentsOrOptions;
  109035. }
  109036. t1 = options == null;
  109037. if (!t1) {
  109038. t2 = J.get$separator$x(options);
  109039. t2 = A._asBool($.$get$_isUndefined().call$1(t2));
  109040. } else
  109041. t2 = true;
  109042. t2 = t2 ? B.ListSeparator_ECn0 : A.jsToDartSeparator(J.get$separator$x(options));
  109043. t1 = t1 ? null : J.get$brackets$x(options);
  109044. return A.SassList$0(contents, t2, t1 == null ? false : t1);
  109045. },
  109046. call$1($self) {
  109047. return this.call$3($self, null, null);
  109048. },
  109049. call$2($self, contentsOrOptions) {
  109050. return this.call$3($self, contentsOrOptions, null);
  109051. },
  109052. "call*": "call$3",
  109053. $requiredArgCount: 1,
  109054. $defaultValues() {
  109055. return [null, null];
  109056. },
  109057. $signature: 509
  109058. };
  109059. A.listClass__closure0.prototype = {
  109060. call$2($self, indexFloat) {
  109061. var index = B.JSNumber_methods.floor$0(indexFloat);
  109062. if (index < 0)
  109063. index = $self.get$asList().length + index;
  109064. if (index < 0 || index >= $self.get$asList().length)
  109065. return self.undefined;
  109066. return $self.get$asList()[index];
  109067. },
  109068. $signature: 240
  109069. };
  109070. A._ConstructorOptions.prototype = {};
  109071. A._NodeSassList.prototype = {};
  109072. A.legacyListClass_closure.prototype = {
  109073. call$4(thisArg, $length, commaSeparator, dartValue) {
  109074. var t1;
  109075. if (dartValue == null) {
  109076. $length.toString;
  109077. t1 = A.Iterable_Iterable$generate($length, new A.legacyListClass__closure(), type$.Value_2);
  109078. t1 = A.SassList$0(t1, commaSeparator !== false ? B.ListSeparator_ECn0 : B.ListSeparator_nbm0, false);
  109079. } else
  109080. t1 = dartValue;
  109081. J.set$dartValue$x(thisArg, t1);
  109082. },
  109083. call$2(thisArg, $length) {
  109084. return this.call$4(thisArg, $length, null, null);
  109085. },
  109086. call$3(thisArg, $length, commaSeparator) {
  109087. return this.call$4(thisArg, $length, commaSeparator, null);
  109088. },
  109089. "call*": "call$4",
  109090. $requiredArgCount: 2,
  109091. $defaultValues() {
  109092. return [null, null];
  109093. },
  109094. $signature: 511
  109095. };
  109096. A.legacyListClass__closure.prototype = {
  109097. call$1(_) {
  109098. return B.C__SassNull0;
  109099. },
  109100. $signature: 241
  109101. };
  109102. A.legacyListClass_closure0.prototype = {
  109103. call$2(thisArg, index) {
  109104. return A.wrapValue(J.get$dartValue$x(thisArg)._list1$_contents[index]);
  109105. },
  109106. $signature: 513
  109107. };
  109108. A.legacyListClass_closure1.prototype = {
  109109. call$3(thisArg, index, value) {
  109110. var t1 = J.getInterceptor$x(thisArg),
  109111. t2 = t1.get$dartValue(thisArg)._list1$_contents,
  109112. mutable = A._setArrayType(t2.slice(0), A._arrayInstanceType(t2));
  109113. mutable[index] = A.unwrapValue(value);
  109114. t1.set$dartValue(thisArg, t1.get$dartValue(thisArg).withListContents$1(mutable));
  109115. },
  109116. "call*": "call$3",
  109117. $requiredArgCount: 3,
  109118. $signature: 514
  109119. };
  109120. A.legacyListClass_closure2.prototype = {
  109121. call$1(thisArg) {
  109122. return J.get$dartValue$x(thisArg)._list1$_separator === B.ListSeparator_ECn0;
  109123. },
  109124. $signature: 515
  109125. };
  109126. A.legacyListClass_closure3.prototype = {
  109127. call$2(thisArg, isComma) {
  109128. var t1 = J.getInterceptor$x(thisArg),
  109129. t2 = t1.get$dartValue(thisArg)._list1$_contents,
  109130. t3 = isComma ? B.ListSeparator_ECn0 : B.ListSeparator_nbm0;
  109131. t1.set$dartValue(thisArg, A.SassList$0(t2, t3, t1.get$dartValue(thisArg)._list1$_hasBrackets));
  109132. },
  109133. $signature: 516
  109134. };
  109135. A.legacyListClass_closure4.prototype = {
  109136. call$1(thisArg) {
  109137. return J.get$dartValue$x(thisArg)._list1$_contents.length;
  109138. },
  109139. $signature: 517
  109140. };
  109141. A.SassList0.prototype = {
  109142. get$separator(_) {
  109143. return this._list1$_separator;
  109144. },
  109145. get$hasBrackets() {
  109146. return this._list1$_hasBrackets;
  109147. },
  109148. get$isBlank() {
  109149. return !this._list1$_hasBrackets && B.JSArray_methods.every$1(this._list1$_contents, new A.SassList_isBlank_closure0());
  109150. },
  109151. get$asList() {
  109152. return this._list1$_contents;
  109153. },
  109154. get$lengthAsList() {
  109155. return this._list1$_contents.length;
  109156. },
  109157. SassList$3$brackets0(contents, _separator, brackets) {
  109158. if (this._list1$_separator === B.ListSeparator_undecided_null_undecided0 && this._list1$_contents.length > 1)
  109159. throw A.wrapException(A.ArgumentError$(string$.A_list, null));
  109160. },
  109161. toString$0(_) {
  109162. var t2, _this = this,
  109163. t1 = true;
  109164. if (!_this._list1$_hasBrackets) {
  109165. t2 = _this._list1$_contents.length;
  109166. if (t2 !== 0)
  109167. t1 = t2 === 1 && _this._list1$_separator === B.ListSeparator_ECn0;
  109168. }
  109169. if (t1)
  109170. return _this.super$Value$toString0(0);
  109171. return "(" + _this.super$Value$toString0(0) + ")";
  109172. },
  109173. accept$1$1(visitor) {
  109174. return visitor.visitList$1(this);
  109175. },
  109176. accept$1(visitor) {
  109177. return this.accept$1$1(visitor, type$.dynamic);
  109178. },
  109179. assertMap$1($name) {
  109180. return this._list1$_contents.length === 0 ? B.SassMap_Map_empty0 : this.super$Value$assertMap0($name);
  109181. },
  109182. tryMap$0() {
  109183. return this._list1$_contents.length === 0 ? B.SassMap_Map_empty0 : null;
  109184. },
  109185. $eq(_, other) {
  109186. var t1, _this = this;
  109187. if (other == null)
  109188. return false;
  109189. if (!(other instanceof A.SassList0 && other._list1$_separator === _this._list1$_separator && other._list1$_hasBrackets === _this._list1$_hasBrackets && B.C_ListEquality.equals$2(0, other._list1$_contents, _this._list1$_contents)))
  109190. t1 = _this._list1$_contents.length === 0 && other instanceof A.SassMap0 && other.get$asList().length === 0;
  109191. else
  109192. t1 = true;
  109193. return t1;
  109194. },
  109195. get$hashCode(_) {
  109196. return B.C_ListEquality0.hash$1(this._list1$_contents);
  109197. }
  109198. };
  109199. A.SassList_isBlank_closure0.prototype = {
  109200. call$1(element) {
  109201. return element.get$isBlank();
  109202. },
  109203. $signature: 56
  109204. };
  109205. A.ListSeparator0.prototype = {
  109206. _enumToString$0() {
  109207. return "ListSeparator." + this._name;
  109208. },
  109209. toString$0(_) {
  109210. return this._list1$_name;
  109211. }
  109212. };
  109213. A.LmsColorSpace0.prototype = {
  109214. get$isBoundedInternal() {
  109215. return false;
  109216. },
  109217. convert$10$missingA$missingB$missingChroma$missingHue$missingLightness(dest, long, medium, short, alpha, missingA, missingB, missingChroma, missingHue, missingLightness) {
  109218. var t1, longScaled, mediumScaled, shortScaled, lightness, t2, t3, _null = null;
  109219. switch (dest) {
  109220. case B.OklabColorSpace_yrt0:
  109221. t1 = long == null ? 0 : long;
  109222. longScaled = Math.pow(Math.abs(t1), 0.3333333333333333) * J.get$sign$in(t1);
  109223. t1 = medium == null ? 0 : medium;
  109224. mediumScaled = Math.pow(Math.abs(t1), 0.3333333333333333) * J.get$sign$in(t1);
  109225. t1 = short == null ? 0 : short;
  109226. shortScaled = Math.pow(Math.abs(t1), 0.3333333333333333) * J.get$sign$in(t1);
  109227. t1 = $.$get$lmsToOklab0();
  109228. lightness = t1[0] * longScaled + t1[1] * mediumScaled + t1[2] * shortScaled;
  109229. t2 = missingLightness ? _null : lightness;
  109230. t3 = missingA ? _null : t1[3] * longScaled + t1[4] * mediumScaled + t1[5] * shortScaled;
  109231. return A.SassColor$_forSpace0(B.OklabColorSpace_yrt0, t2, t3, missingB ? _null : t1[6] * longScaled + t1[7] * mediumScaled + t1[8] * shortScaled, alpha, _null);
  109232. case B.OklchColorSpace_li80:
  109233. t1 = long == null ? 0 : long;
  109234. longScaled = Math.pow(Math.abs(t1), 0.3333333333333333) * J.get$sign$in(t1);
  109235. t1 = medium == null ? 0 : medium;
  109236. mediumScaled = Math.pow(Math.abs(t1), 0.3333333333333333) * J.get$sign$in(t1);
  109237. t1 = short == null ? 0 : short;
  109238. shortScaled = Math.pow(Math.abs(t1), 0.3333333333333333) * J.get$sign$in(t1);
  109239. if (missingLightness)
  109240. t1 = _null;
  109241. else {
  109242. t1 = $.$get$lmsToOklab0();
  109243. t1 = t1[0] * longScaled + t1[1] * mediumScaled + t1[2] * shortScaled;
  109244. }
  109245. t2 = $.$get$lmsToOklab0();
  109246. return A.labToLch0(dest, t1, t2[3] * longScaled + t2[4] * mediumScaled + t2[5] * shortScaled, t2[6] * longScaled + t2[7] * mediumScaled + t2[8] * shortScaled, alpha, missingChroma, missingHue);
  109247. default:
  109248. return this.super$ColorSpace$convertLinear0(dest, long, medium, short, alpha, missingA, missingB, missingChroma, missingHue, missingLightness);
  109249. }
  109250. },
  109251. convert$5(dest, long, medium, short, alpha) {
  109252. return this.convert$10$missingA$missingB$missingChroma$missingHue$missingLightness(dest, long, medium, short, alpha, false, false, false, false, false);
  109253. },
  109254. toLinear$1(channel) {
  109255. return channel;
  109256. },
  109257. fromLinear$1(channel) {
  109258. return channel;
  109259. },
  109260. transformationMatrix$1(dest) {
  109261. var t1;
  109262. $label0$0: {
  109263. if (B.SrgbLinearColorSpace_sEs0 === dest || B.SrgbColorSpace_AD40 === dest || B.RgbColorSpace_mlz0 === dest) {
  109264. t1 = $.$get$lmsToLinearSrgb0();
  109265. break $label0$0;
  109266. }
  109267. if (B.A98RgbColorSpace_bdu0 === dest) {
  109268. t1 = $.$get$lmsToLinearA98Rgb0();
  109269. break $label0$0;
  109270. }
  109271. if (B.ProphotoRgbColorSpace_KiG0 === dest) {
  109272. t1 = $.$get$lmsToLinearProphotoRgb0();
  109273. break $label0$0;
  109274. }
  109275. if (B.DisplayP3ColorSpace_NQk0 === dest) {
  109276. t1 = $.$get$lmsToLinearDisplayP30();
  109277. break $label0$0;
  109278. }
  109279. if (B.Rec2020ColorSpace_2jN0 === dest) {
  109280. t1 = $.$get$lmsToLinearRec20200();
  109281. break $label0$0;
  109282. }
  109283. if (B.XyzD65ColorSpace_4CA0 === dest) {
  109284. t1 = $.$get$lmsToXyzD650();
  109285. break $label0$0;
  109286. }
  109287. if (B.XyzD50ColorSpace_2No0 === dest) {
  109288. t1 = $.$get$lmsToXyzD500();
  109289. break $label0$0;
  109290. }
  109291. t1 = this.super$ColorSpace$transformationMatrix0(dest);
  109292. break $label0$0;
  109293. }
  109294. return t1;
  109295. }
  109296. };
  109297. A.LocalMindeGamutMap0.prototype = {
  109298. map$1(_, color) {
  109299. var clipped, max, min, minInGamut, chroma, current, e,
  109300. originOklch = color.toSpace$1(B.OklchColorSpace_li80),
  109301. lightness = originOklch.channel0OrNull,
  109302. hue = originOklch.channel2OrNull,
  109303. alpha = originOklch.alphaOrNull,
  109304. t1 = lightness == null,
  109305. t2 = t1 ? 0 : lightness;
  109306. if (t2 > 1 || A.fuzzyEquals0(t2, 1)) {
  109307. t1 = color._color0$_space;
  109308. t2 = color.alphaOrNull;
  109309. return t1.get$isLegacyInternal() ? A.SassColor_SassColor$rgbInternal0(255, 255, 255, t2, null).toSpace$1(t1) : A.SassColor_SassColor$forSpaceInternal0(t1, 1, 1, 1, t2);
  109310. } else {
  109311. t1 = t1 ? 0 : lightness;
  109312. if (t1 < 0 || A.fuzzyEquals0(t1, 0))
  109313. return A.SassColor_SassColor$rgbInternal0(0, 0, 0, color.alphaOrNull, null).toSpace$1(color._color0$_space);
  109314. }
  109315. clipped = color.get$isInGamut() ? color : B.ClipGamutMap_clip0.map$1(0, color);
  109316. if (this._local_minde$_deltaEOK$2(clipped, color) < 0.02)
  109317. return clipped;
  109318. max = originOklch.channel1OrNull;
  109319. if (max == null)
  109320. max = 0;
  109321. for (t1 = color._color0$_space, min = 0, minInGamut = true; max - min > 0.0001;) {
  109322. chroma = (min + max) / 2;
  109323. current = B.OklchColorSpace_li80.convert$5(t1, lightness, chroma, hue, alpha);
  109324. if (minInGamut && current.get$isInGamut()) {
  109325. min = chroma;
  109326. continue;
  109327. }
  109328. clipped = current.get$isInGamut() ? current : B.ClipGamutMap_clip0.map$1(0, current);
  109329. e = this._local_minde$_deltaEOK$2(clipped, current);
  109330. if (e < 0.02) {
  109331. if (0.02 - e < 0.0001)
  109332. return clipped;
  109333. min = chroma;
  109334. minInGamut = false;
  109335. } else
  109336. max = chroma;
  109337. }
  109338. return clipped;
  109339. },
  109340. _local_minde$_deltaEOK$2(color1, color2) {
  109341. var t2, t3, t4,
  109342. lab1 = color1.toSpace$1(B.OklabColorSpace_yrt0),
  109343. lab2 = color2.toSpace$1(B.OklabColorSpace_yrt0),
  109344. t1 = lab1.channel0OrNull;
  109345. if (t1 == null)
  109346. t1 = 0;
  109347. t2 = lab2.channel0OrNull;
  109348. t1 = Math.pow(t1 - (t2 == null ? 0 : t2), 2);
  109349. t2 = lab1.channel1OrNull;
  109350. if (t2 == null)
  109351. t2 = 0;
  109352. t3 = lab2.channel1OrNull;
  109353. t2 = Math.pow(t2 - (t3 == null ? 0 : t3), 2);
  109354. t3 = lab1.channel2OrNull;
  109355. if (t3 == null)
  109356. t3 = 0;
  109357. t4 = lab2.channel2OrNull;
  109358. return Math.sqrt(t1 + t2 + Math.pow(t3 - (t4 == null ? 0 : t4), 2));
  109359. }
  109360. };
  109361. A.JSLogger.prototype = {};
  109362. A.WarnOptions.prototype = {};
  109363. A.DebugOptions.prototype = {};
  109364. A.LoggerWithDeprecationType.prototype = {
  109365. warn$4$deprecation$span$trace(_, message, deprecation, span, trace) {
  109366. this.internalWarn$4$deprecation$span$trace(message, deprecation ? B.Deprecation_JeE : null, span, trace);
  109367. },
  109368. warn$1(_, message) {
  109369. return this.warn$4$deprecation$span$trace(0, message, false, null, null);
  109370. },
  109371. warn$3$span$trace(_, message, span, trace) {
  109372. return this.warn$4$deprecation$span$trace(0, message, false, span, trace);
  109373. },
  109374. warn$2$trace(_, message, trace) {
  109375. return this.warn$4$deprecation$span$trace(0, message, false, null, trace);
  109376. }
  109377. };
  109378. A.LoudComment0.prototype = {
  109379. get$span(_) {
  109380. return this.text.span;
  109381. },
  109382. accept$1$1(visitor) {
  109383. return visitor.visitLoudComment$1(0, this);
  109384. },
  109385. accept$1(visitor) {
  109386. return this.accept$1$1(visitor, type$.dynamic);
  109387. },
  109388. toString$0(_) {
  109389. return this.text.toString$0(0);
  109390. }
  109391. };
  109392. A.MapExpression0.prototype = {
  109393. accept$1$1(visitor) {
  109394. return visitor.visitMapExpression$1(0, this);
  109395. },
  109396. accept$1(visitor) {
  109397. return this.accept$1$1(visitor, type$.dynamic);
  109398. },
  109399. toString$0(_) {
  109400. var t2, t3, _i, t4, key, value,
  109401. t1 = A._setArrayType([], type$.JSArray_String);
  109402. for (t2 = this.pairs, t3 = t2.length, _i = 0; _i < t3; ++_i) {
  109403. t4 = t2[_i];
  109404. key = t4._0;
  109405. value = t4._1;
  109406. t1.push(key.toString$0(0) + ": " + value.toString$0(0));
  109407. }
  109408. return "(" + B.JSArray_methods.join$1(t1, ", ") + ")";
  109409. },
  109410. get$span(receiver) {
  109411. return this.span;
  109412. }
  109413. };
  109414. A._get_closure0.prototype = {
  109415. call$1($arguments) {
  109416. var value,
  109417. t1 = J.getInterceptor$asx($arguments),
  109418. map = t1.$index($arguments, 0).assertMap$1("map"),
  109419. t2 = A._setArrayType([t1.$index($arguments, 1)], type$.JSArray_Value_2);
  109420. B.JSArray_methods.addAll$1(t2, t1.$index($arguments, 2).get$asList());
  109421. for (t1 = A.IterableExtension_get_exceptLast0(t2), t1 = t1.get$iterator(t1); t1.moveNext$0(); map = value) {
  109422. value = map._map0$_contents.$index(0, t1.get$current(t1));
  109423. if (!(value instanceof A.SassMap0))
  109424. return B.C__SassNull0;
  109425. }
  109426. t1 = map._map0$_contents.$index(0, B.JSArray_methods.get$last(t2));
  109427. return t1 == null ? B.C__SassNull0 : t1;
  109428. },
  109429. $signature: 3
  109430. };
  109431. A._set_closure1.prototype = {
  109432. call$1($arguments) {
  109433. var t1 = J.getInterceptor$asx($arguments);
  109434. return A._modify0(t1.$index($arguments, 0).assertMap$1("map"), A._setArrayType([t1.$index($arguments, 1)], type$.JSArray_Value_2), new A._set__closure2($arguments), true);
  109435. },
  109436. $signature: 3
  109437. };
  109438. A._set__closure2.prototype = {
  109439. call$1(_) {
  109440. return J.$index$asx(this.$arguments, 2);
  109441. },
  109442. $signature: 43
  109443. };
  109444. A._set_closure2.prototype = {
  109445. call$1($arguments) {
  109446. var keys, t3, t1 = {},
  109447. t2 = J.getInterceptor$asx($arguments),
  109448. map = t2.$index($arguments, 0).assertMap$1("map"),
  109449. _0_0 = t2.$index($arguments, 1).get$asList(),
  109450. _0_1 = _0_0.length;
  109451. if (_0_1 <= 0)
  109452. throw A.wrapException(A.SassScriptException$0("Expected $args to contain a key.", null));
  109453. if (_0_1 === 1)
  109454. throw A.wrapException(A.SassScriptException$0("Expected $args to contain a value.", null));
  109455. keys = t1.value = null;
  109456. t2 = _0_1 >= 1;
  109457. if (t2) {
  109458. t3 = _0_1 - 1;
  109459. keys = B.JSArray_methods.sublist$2(_0_0, 0, t3);
  109460. t1.value = _0_0[t3];
  109461. }
  109462. if (t2)
  109463. return A._modify0(map, keys, new A._set__closure1(t1), true);
  109464. throw A.wrapException("[BUG] Unreachable code");
  109465. },
  109466. $signature: 3
  109467. };
  109468. A._set__closure1.prototype = {
  109469. call$1(_) {
  109470. return this._box_0.value;
  109471. },
  109472. $signature: 43
  109473. };
  109474. A._merge_closure1.prototype = {
  109475. call$1($arguments) {
  109476. var t2,
  109477. t1 = J.getInterceptor$asx($arguments),
  109478. map1 = t1.$index($arguments, 0).assertMap$1("map1"),
  109479. map2 = t1.$index($arguments, 1).assertMap$1("map2");
  109480. t1 = type$.Value_2;
  109481. t2 = A.LinkedHashMap_LinkedHashMap$of(map1._map0$_contents, t1, t1);
  109482. t2.addAll$1(0, map2._map0$_contents);
  109483. return new A.SassMap0(A.ConstantMap_ConstantMap$from(t2, t1, t1));
  109484. },
  109485. $signature: 36
  109486. };
  109487. A._merge_closure2.prototype = {
  109488. call$1($arguments) {
  109489. var last, t2, keys, _null = null,
  109490. t1 = J.getInterceptor$asx($arguments),
  109491. map1 = t1.$index($arguments, 0).assertMap$1("map1"),
  109492. _0_0 = t1.$index($arguments, 1).get$asList(),
  109493. _0_1 = _0_0.length;
  109494. if (_0_1 <= 0)
  109495. throw A.wrapException(A.SassScriptException$0("Expected $args to contain a key.", _null));
  109496. if (_0_1 === 1)
  109497. throw A.wrapException(A.SassScriptException$0("Expected $args to contain a map.", _null));
  109498. t1 = _0_1 >= 1;
  109499. last = _null;
  109500. if (t1) {
  109501. t2 = _0_1 - 1;
  109502. keys = B.JSArray_methods.sublist$2(_0_0, 0, t2);
  109503. last = _0_0[t2];
  109504. } else
  109505. keys = _null;
  109506. if (t1)
  109507. return A._modify0(map1, keys, new A._merge__closure0(last.assertMap$1("map2")), true);
  109508. throw A.wrapException("[BUG] Unreachable code");
  109509. },
  109510. $signature: 3
  109511. };
  109512. A._merge__closure0.prototype = {
  109513. call$1(oldValue) {
  109514. var t1, t2,
  109515. nestedMap = oldValue.tryMap$0();
  109516. if (nestedMap == null)
  109517. return this.map2;
  109518. t1 = type$.Value_2;
  109519. t2 = A.LinkedHashMap_LinkedHashMap$of(nestedMap._map0$_contents, t1, t1);
  109520. t2.addAll$1(0, this.map2._map0$_contents);
  109521. return new A.SassMap0(A.ConstantMap_ConstantMap$from(t2, t1, t1));
  109522. },
  109523. $signature: 518
  109524. };
  109525. A._deepMerge_closure0.prototype = {
  109526. call$1($arguments) {
  109527. var t1 = J.getInterceptor$asx($arguments);
  109528. return A._deepMergeImpl0(t1.$index($arguments, 0).assertMap$1("map1"), t1.$index($arguments, 1).assertMap$1("map2"));
  109529. },
  109530. $signature: 36
  109531. };
  109532. A._deepRemove_closure0.prototype = {
  109533. call$1($arguments) {
  109534. var t1 = J.getInterceptor$asx($arguments),
  109535. map = t1.$index($arguments, 0).assertMap$1("map"),
  109536. t2 = A._setArrayType([t1.$index($arguments, 1)], type$.JSArray_Value_2);
  109537. B.JSArray_methods.addAll$1(t2, t1.$index($arguments, 2).get$asList());
  109538. return A._modify0(map, A.IterableExtension_get_exceptLast0(t2), new A._deepRemove__closure0(t2), false);
  109539. },
  109540. $signature: 3
  109541. };
  109542. A._deepRemove__closure0.prototype = {
  109543. call$1(value) {
  109544. var t1, nestedMap, t2,
  109545. _0_0 = value.tryMap$0();
  109546. if (_0_0 != null) {
  109547. t1 = _0_0._map0$_contents.containsKey$1(B.JSArray_methods.get$last(this.keys));
  109548. nestedMap = _0_0;
  109549. } else {
  109550. nestedMap = null;
  109551. t1 = false;
  109552. }
  109553. if (t1) {
  109554. t1 = type$.Value_2;
  109555. t2 = A.LinkedHashMap_LinkedHashMap$of(nestedMap._map0$_contents, t1, t1);
  109556. t2.remove$1(0, B.JSArray_methods.get$last(this.keys));
  109557. return new A.SassMap0(A.ConstantMap_ConstantMap$from(t2, t1, t1));
  109558. }
  109559. return value;
  109560. },
  109561. $signature: 43
  109562. };
  109563. A._remove_closure1.prototype = {
  109564. call$1($arguments) {
  109565. return J.$index$asx($arguments, 0).assertMap$1("map");
  109566. },
  109567. $signature: 36
  109568. };
  109569. A._remove_closure2.prototype = {
  109570. call$1($arguments) {
  109571. var mutableMap, t3, _i,
  109572. t1 = J.getInterceptor$asx($arguments),
  109573. map = t1.$index($arguments, 0).assertMap$1("map"),
  109574. t2 = A._setArrayType([t1.$index($arguments, 1)], type$.JSArray_Value_2);
  109575. B.JSArray_methods.addAll$1(t2, t1.$index($arguments, 2).get$asList());
  109576. t1 = type$.Value_2;
  109577. mutableMap = A.LinkedHashMap_LinkedHashMap$of(map._map0$_contents, t1, t1);
  109578. for (t3 = t2.length, _i = 0; _i < t2.length; t2.length === t3 || (0, A.throwConcurrentModificationError)(t2), ++_i)
  109579. mutableMap.remove$1(0, t2[_i]);
  109580. return new A.SassMap0(A.ConstantMap_ConstantMap$from(mutableMap, t1, t1));
  109581. },
  109582. $signature: 36
  109583. };
  109584. A._keys_closure0.prototype = {
  109585. call$1($arguments) {
  109586. var t1 = J.$index$asx($arguments, 0).assertMap$1("map")._map0$_contents;
  109587. return A.SassList$0(t1.get$keys(t1), B.ListSeparator_ECn0, false);
  109588. },
  109589. $signature: 26
  109590. };
  109591. A._values_closure0.prototype = {
  109592. call$1($arguments) {
  109593. var t1 = J.$index$asx($arguments, 0).assertMap$1("map")._map0$_contents;
  109594. return A.SassList$0(t1.get$values(t1), B.ListSeparator_ECn0, false);
  109595. },
  109596. $signature: 26
  109597. };
  109598. A._hasKey_closure0.prototype = {
  109599. call$1($arguments) {
  109600. var value,
  109601. t1 = J.getInterceptor$asx($arguments),
  109602. map = t1.$index($arguments, 0).assertMap$1("map"),
  109603. t2 = A._setArrayType([t1.$index($arguments, 1)], type$.JSArray_Value_2);
  109604. B.JSArray_methods.addAll$1(t2, t1.$index($arguments, 2).get$asList());
  109605. for (t1 = A.IterableExtension_get_exceptLast0(t2), t1 = t1.get$iterator(t1); t1.moveNext$0(); map = value) {
  109606. value = map._map0$_contents.$index(0, t1.get$current(t1));
  109607. if (!(value instanceof A.SassMap0))
  109608. return B.SassBoolean_false0;
  109609. }
  109610. return map._map0$_contents.containsKey$1(B.JSArray_methods.get$last(t2)) ? B.SassBoolean_true0 : B.SassBoolean_false0;
  109611. },
  109612. $signature: 12
  109613. };
  109614. A._modify_modifyNestedMap0.prototype = {
  109615. call$1(map) {
  109616. var nestedMap, _this = this,
  109617. t1 = type$.Value_2,
  109618. mutableMap = A.LinkedHashMap_LinkedHashMap$of(map._map0$_contents, t1, t1),
  109619. t2 = _this.keyIterator,
  109620. key = t2.get$current(t2);
  109621. if (!t2.moveNext$0()) {
  109622. t2 = mutableMap.$index(0, key);
  109623. if (t2 == null)
  109624. t2 = B.C__SassNull0;
  109625. mutableMap.$indexSet(0, key, _this.modify.call$1(t2));
  109626. return new A.SassMap0(A.ConstantMap_ConstantMap$from(mutableMap, t1, t1));
  109627. }
  109628. t2 = mutableMap.$index(0, key);
  109629. nestedMap = t2 == null ? null : t2.tryMap$0();
  109630. t2 = nestedMap == null;
  109631. if (t2 && !_this.addNesting)
  109632. return new A.SassMap0(A.ConstantMap_ConstantMap$from(mutableMap, t1, t1));
  109633. mutableMap.$indexSet(0, key, _this.call$1(t2 ? B.SassMap_Map_empty0 : nestedMap));
  109634. return new A.SassMap0(A.ConstantMap_ConstantMap$from(mutableMap, t1, t1));
  109635. },
  109636. $signature: 519
  109637. };
  109638. A.MapExtensions_get_pairs_closure0.prototype = {
  109639. call$1(e) {
  109640. return new A._Record_2(e.key, e.value);
  109641. },
  109642. $signature() {
  109643. return this.K._eval$1("@<0>")._bind$1(this.V)._eval$1("+(1,2)(MapEntry<1,2>)");
  109644. }
  109645. };
  109646. A.mapClass_closure.prototype = {
  109647. call$0() {
  109648. var t1 = type$.JSClass,
  109649. jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.SassMap", new A.mapClass__closure())),
  109650. t2 = J.getInterceptor$x(jsClass);
  109651. A.defineGetter(t2.get$$prototype(jsClass), "contents", new A.mapClass__closure0(), null);
  109652. t2.get$$prototype(jsClass).get = A.allowInteropCaptureThisNamed("get", new A.mapClass__closure1());
  109653. A.JSClassExtension_injectSuperclass(t1._as(B.SassMap_Map_empty0.constructor), jsClass);
  109654. return jsClass;
  109655. },
  109656. $signature: 16
  109657. };
  109658. A.mapClass__closure.prototype = {
  109659. call$2($self, contents) {
  109660. var t1;
  109661. if (contents == null)
  109662. t1 = B.SassMap_Map_empty0;
  109663. else {
  109664. t1 = type$.Value_2;
  109665. t1 = new A.SassMap0(A.ConstantMap_ConstantMap$from(A.immutableMapToDartMap(contents).cast$2$0(0, t1, t1), t1, t1));
  109666. }
  109667. return t1;
  109668. },
  109669. call$1($self) {
  109670. return this.call$2($self, null);
  109671. },
  109672. "call*": "call$2",
  109673. $requiredArgCount: 1,
  109674. $defaultValues() {
  109675. return [null];
  109676. },
  109677. $signature: 520
  109678. };
  109679. A.mapClass__closure0.prototype = {
  109680. call$1($self) {
  109681. return A.dartMapToImmutableMap($self._map0$_contents);
  109682. },
  109683. $signature: 521
  109684. };
  109685. A.mapClass__closure1.prototype = {
  109686. call$2($self, indexOrKey) {
  109687. var index, t1, _0_0;
  109688. if (typeof indexOrKey == "number") {
  109689. index = B.JSNumber_methods.floor$0(indexOrKey);
  109690. if (index < 0) {
  109691. t1 = $self._map0$_contents;
  109692. index = t1.get$length(t1) + index;
  109693. }
  109694. if (index >= 0) {
  109695. t1 = $self._map0$_contents;
  109696. t1 = index >= t1.get$length(t1);
  109697. } else
  109698. t1 = true;
  109699. if (t1)
  109700. return self.undefined;
  109701. t1 = type$.Value_2;
  109702. _0_0 = A.MapExtensions_get_pairs0($self._map0$_contents, t1, t1).elementAt$1(0, index);
  109703. return A.SassList$0(A._setArrayType([_0_0._0, _0_0._1], type$.JSArray_Value_2), B.ListSeparator_nbm0, false);
  109704. } else {
  109705. t1 = $self._map0$_contents.$index(0, indexOrKey);
  109706. return t1 == null ? self.undefined : t1;
  109707. }
  109708. },
  109709. $signature: 522
  109710. };
  109711. A._NodeSassMap.prototype = {};
  109712. A.legacyMapClass_closure.prototype = {
  109713. call$3(thisArg, $length, dartValue) {
  109714. var t1, t2, t3, map;
  109715. if (dartValue == null) {
  109716. $length.toString;
  109717. t1 = type$.Value_2;
  109718. t2 = A.Iterable_Iterable$generate($length, new A.legacyMapClass__closure(), t1);
  109719. t3 = A.Iterable_Iterable$generate($length, new A.legacyMapClass__closure0(), t1);
  109720. map = A.LinkedHashMap_LinkedHashMap(null, null, null, t1, t1);
  109721. A.MapBase__fillMapWithIterables(map, t2, t3);
  109722. t1 = new A.SassMap0(A.ConstantMap_ConstantMap$from(map, t1, t1));
  109723. } else
  109724. t1 = dartValue;
  109725. J.set$dartValue$x(thisArg, t1);
  109726. },
  109727. call$2(thisArg, $length) {
  109728. return this.call$3(thisArg, $length, null);
  109729. },
  109730. "call*": "call$3",
  109731. $requiredArgCount: 2,
  109732. $defaultValues() {
  109733. return [null];
  109734. },
  109735. $signature: 523
  109736. };
  109737. A.legacyMapClass__closure.prototype = {
  109738. call$1(i) {
  109739. return A.SassNumber_SassNumber0(i, null);
  109740. },
  109741. $signature: 524
  109742. };
  109743. A.legacyMapClass__closure0.prototype = {
  109744. call$1(_) {
  109745. return B.C__SassNull0;
  109746. },
  109747. $signature: 241
  109748. };
  109749. A.legacyMapClass_closure0.prototype = {
  109750. call$2(thisArg, index) {
  109751. var t1 = J.get$dartValue$x(thisArg)._map0$_contents;
  109752. return A.wrapValue(J.elementAt$1$ax(t1.get$keys(t1), index));
  109753. },
  109754. $signature: 242
  109755. };
  109756. A.legacyMapClass_closure1.prototype = {
  109757. call$2(thisArg, index) {
  109758. var t1 = J.get$dartValue$x(thisArg)._map0$_contents;
  109759. return A.wrapValue(t1.get$values(t1).elementAt$1(0, index));
  109760. },
  109761. $signature: 242
  109762. };
  109763. A.legacyMapClass_closure2.prototype = {
  109764. call$1(thisArg) {
  109765. var t1 = J.get$dartValue$x(thisArg)._map0$_contents;
  109766. return t1.get$length(t1);
  109767. },
  109768. $signature: 526
  109769. };
  109770. A.legacyMapClass_closure3.prototype = {
  109771. call$3(thisArg, index, key) {
  109772. var newKey, t2, newMap, t3, i, t4, oldKey, oldValue,
  109773. t1 = J.getInterceptor$x(thisArg),
  109774. oldMap = t1.get$dartValue(thisArg)._map0$_contents,
  109775. $length = oldMap.get$length(oldMap);
  109776. A.IndexError_check(index, $length, oldMap, null, "index");
  109777. newKey = A.unwrapValue(key);
  109778. t2 = type$.Value_2;
  109779. newMap = A.LinkedHashMap_LinkedHashMap$_empty(t2, t2);
  109780. for (t3 = A.MapExtensions_get_pairs0(t1.get$dartValue(thisArg)._map0$_contents, t2, t2), t3 = t3.get$iterator(t3), i = 0; t3.moveNext$0();) {
  109781. t4 = t3.get$current(t3);
  109782. oldKey = t4._0;
  109783. oldValue = t4._1;
  109784. if (i === index)
  109785. newMap.$indexSet(0, newKey, oldValue);
  109786. else {
  109787. if (newKey.$eq(0, oldKey))
  109788. throw A.wrapException(A.ArgumentError$value(key, "key", "is already in the map"));
  109789. newMap.$indexSet(0, oldKey, oldValue);
  109790. }
  109791. ++i;
  109792. }
  109793. t1.set$dartValue(thisArg, new A.SassMap0(A.ConstantMap_ConstantMap$from(newMap, t2, t2)));
  109794. },
  109795. "call*": "call$3",
  109796. $requiredArgCount: 3,
  109797. $signature: 243
  109798. };
  109799. A.legacyMapClass_closure4.prototype = {
  109800. call$3(thisArg, index, value) {
  109801. var t3,
  109802. t1 = J.getInterceptor$x(thisArg),
  109803. t2 = t1.get$dartValue(thisArg)._map0$_contents,
  109804. key = J.elementAt$1$ax(t2.get$keys(t2), index);
  109805. t2 = type$.Value_2;
  109806. t3 = A.LinkedHashMap_LinkedHashMap$of(t1.get$dartValue(thisArg)._map0$_contents, t2, t2);
  109807. t3.$indexSet(0, key, A.unwrapValue(value));
  109808. t1.set$dartValue(thisArg, new A.SassMap0(A.ConstantMap_ConstantMap$from(t3, t2, t2)));
  109809. },
  109810. "call*": "call$3",
  109811. $requiredArgCount: 3,
  109812. $signature: 243
  109813. };
  109814. A.SassMap0.prototype = {
  109815. get$separator(_) {
  109816. var t1 = this._map0$_contents;
  109817. return t1.get$isEmpty(t1) ? B.ListSeparator_undecided_null_undecided0 : B.ListSeparator_ECn0;
  109818. },
  109819. get$asList() {
  109820. var t3, t4, t5, result,
  109821. t1 = type$.JSArray_Value_2,
  109822. t2 = A._setArrayType([], t1);
  109823. for (t3 = type$.Value_2, t4 = A.MapExtensions_get_pairs0(this._map0$_contents, t3, t3), t4 = t4.get$iterator(t4); t4.moveNext$0();) {
  109824. t5 = t4.get$current(t4);
  109825. result = A.List_List$from(A._setArrayType([t5._0, t5._1], t1), false, t3);
  109826. result.fixed$length = Array;
  109827. result.immutable$list = Array;
  109828. t2.push(new A.SassList0(result, B.ListSeparator_nbm0, false));
  109829. }
  109830. return t2;
  109831. },
  109832. get$lengthAsList() {
  109833. var t1 = this._map0$_contents;
  109834. return t1.get$length(t1);
  109835. },
  109836. accept$1$1(visitor) {
  109837. return visitor.visitMap$1(this);
  109838. },
  109839. accept$1(visitor) {
  109840. return this.accept$1$1(visitor, type$.dynamic);
  109841. },
  109842. assertMap$1($name) {
  109843. return this;
  109844. },
  109845. tryMap$0() {
  109846. return this;
  109847. },
  109848. $eq(_, other) {
  109849. var t1;
  109850. if (other == null)
  109851. return false;
  109852. if (!(other instanceof A.SassMap0 && B.C_MapEquality.equals$2(0, other._map0$_contents, this._map0$_contents))) {
  109853. t1 = this._map0$_contents;
  109854. t1 = t1.get$isEmpty(t1) && other instanceof A.SassList0 && other._list1$_contents.length === 0;
  109855. } else
  109856. t1 = true;
  109857. return t1;
  109858. },
  109859. get$hashCode(_) {
  109860. var t1 = this._map0$_contents;
  109861. return t1.get$isEmpty(t1) ? B.C_ListEquality0.hash$1(B.List_empty20) : B.C_MapEquality.hash$1(t1);
  109862. }
  109863. };
  109864. A.global_closure43.prototype = {
  109865. call$1($arguments) {
  109866. var t1,
  109867. number = J.$index$asx($arguments, 0).assertNumber$1("number");
  109868. if (number.hasUnit$1("%"))
  109869. A.warnForDeprecation0(string$.Passinp + number.toString$0(0) + ")\nTo emit a CSS abs() now: abs(#{" + number.toString$0(0) + string$.x7d__Mor, B.Deprecation_qgq);
  109870. else
  109871. A.warnForDeprecation0(string$.Globalm, B.Deprecation_Q5r);
  109872. t1 = number.get$numeratorUnits(number);
  109873. return A.SassNumber_SassNumber$withUnits0(Math.abs(number._number1$_value), number.get$denominatorUnits(number), t1);
  109874. },
  109875. $signature: 22
  109876. };
  109877. A.module_closure26.prototype = {
  109878. call$1(value) {
  109879. return Math.abs(value);
  109880. },
  109881. $signature: 15
  109882. };
  109883. A._ceil_closure0.prototype = {
  109884. call$1(value) {
  109885. return B.JSNumber_methods.ceil$0(value);
  109886. },
  109887. $signature: 15
  109888. };
  109889. A._clamp_closure0.prototype = {
  109890. call$1($arguments) {
  109891. var t1 = J.getInterceptor$asx($arguments),
  109892. min = t1.$index($arguments, 0).assertNumber$1("min"),
  109893. number = t1.$index($arguments, 1).assertNumber$1("number"),
  109894. max = t1.$index($arguments, 2).assertNumber$1("max");
  109895. number.convertValueToMatch$3(min, "number", "min");
  109896. max.convertValueToMatch$3(min, "max", "min");
  109897. if (min.greaterThanOrEquals$1(max).value)
  109898. return min;
  109899. if (min.greaterThanOrEquals$1(number).value)
  109900. return min;
  109901. if (number.greaterThanOrEquals$1(max).value)
  109902. return max;
  109903. return number;
  109904. },
  109905. $signature: 22
  109906. };
  109907. A._floor_closure0.prototype = {
  109908. call$1(value) {
  109909. return B.JSNumber_methods.floor$0(value);
  109910. },
  109911. $signature: 15
  109912. };
  109913. A._max_closure0.prototype = {
  109914. call$1($arguments) {
  109915. var t1, t2, max, _i, number;
  109916. for (t1 = J.$index$asx($arguments, 0).get$asList(), t2 = t1.length, max = null, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
  109917. number = t1[_i].assertNumber$0();
  109918. if (max == null || max.lessThan$1(number).value)
  109919. max = number;
  109920. }
  109921. if (max != null)
  109922. return max;
  109923. throw A.wrapException(A.SassScriptException$0("At least one argument must be passed.", null));
  109924. },
  109925. $signature: 22
  109926. };
  109927. A._min_closure0.prototype = {
  109928. call$1($arguments) {
  109929. var t1, t2, min, _i, number;
  109930. for (t1 = J.$index$asx($arguments, 0).get$asList(), t2 = t1.length, min = null, _i = 0; _i < t1.length; t1.length === t2 || (0, A.throwConcurrentModificationError)(t1), ++_i) {
  109931. number = t1[_i].assertNumber$0();
  109932. if (min == null || min.greaterThan$1(number).value)
  109933. min = number;
  109934. }
  109935. if (min != null)
  109936. return min;
  109937. throw A.wrapException(A.SassScriptException$0("At least one argument must be passed.", null));
  109938. },
  109939. $signature: 22
  109940. };
  109941. A._round_closure0.prototype = {
  109942. call$1(number) {
  109943. return B.JSNumber_methods.round$0(number);
  109944. },
  109945. $signature: 15
  109946. };
  109947. A._hypot_closure0.prototype = {
  109948. call$1($arguments) {
  109949. var subtotal, i, i0, t3, t4,
  109950. t1 = J.$index$asx($arguments, 0).get$asList(),
  109951. t2 = A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,SassNumber0>"),
  109952. numbers = A.List_List$of(new A.MappedListIterable(t1, new A._hypot__closure0(), t2), true, t2._eval$1("ListIterable.E"));
  109953. t1 = numbers.length;
  109954. if (t1 === 0)
  109955. throw A.wrapException(A.SassScriptException$0("At least one argument must be passed.", null));
  109956. for (subtotal = 0, i = 0; i < t1; i = i0) {
  109957. i0 = i + 1;
  109958. subtotal += Math.pow(numbers[i].convertValueToMatch$3(numbers[0], "numbers[" + i0 + "]", "numbers[1]"), 2);
  109959. }
  109960. t1 = Math.sqrt(subtotal);
  109961. t2 = numbers[0];
  109962. t3 = J.getInterceptor$x(t2);
  109963. t4 = t3.get$numeratorUnits(t2);
  109964. return A.SassNumber_SassNumber$withUnits0(t1, t3.get$denominatorUnits(t2), t4);
  109965. },
  109966. $signature: 22
  109967. };
  109968. A._hypot__closure0.prototype = {
  109969. call$1(argument) {
  109970. return argument.assertNumber$0();
  109971. },
  109972. $signature: 528
  109973. };
  109974. A._log_closure0.prototype = {
  109975. call$1($arguments) {
  109976. var base,
  109977. _s18_ = " to have no units.",
  109978. _null = null,
  109979. t1 = J.getInterceptor$asx($arguments),
  109980. number = t1.$index($arguments, 0).assertNumber$1("number");
  109981. if (number.get$hasUnits())
  109982. throw A.wrapException(A.SassScriptException$0("$number: Expected " + number.toString$0(0) + _s18_, _null));
  109983. else if (J.$eq$(t1.$index($arguments, 1), B.C__SassNull0))
  109984. return A.SassNumber_SassNumber0(Math.log(number._number1$_value), _null);
  109985. base = t1.$index($arguments, 1).assertNumber$1("base");
  109986. if (base.get$hasUnits())
  109987. throw A.wrapException(A.SassScriptException$0("$base: Expected " + base.toString$0(0) + _s18_, _null));
  109988. else
  109989. return A.SassNumber_SassNumber0(Math.log(number._number1$_value) / Math.log(base._number1$_value), _null);
  109990. },
  109991. $signature: 22
  109992. };
  109993. A._pow_closure0.prototype = {
  109994. call$1($arguments) {
  109995. var t1 = J.getInterceptor$asx($arguments);
  109996. return A.pow1(t1.$index($arguments, 0).assertNumber$1("base"), t1.$index($arguments, 1).assertNumber$1("exponent"));
  109997. },
  109998. $signature: 22
  109999. };
  110000. A._atan2_closure0.prototype = {
  110001. call$1($arguments) {
  110002. var t1 = J.getInterceptor$asx($arguments),
  110003. y = t1.$index($arguments, 0).assertNumber$1("y");
  110004. return A.SassNumber_SassNumber$withUnits0(Math.atan2(y._number1$_value, t1.$index($arguments, 1).assertNumber$1("x").convertValueToMatch$3(y, "x", "y")) * 57.29577951308232, null, A._setArrayType(["deg"], type$.JSArray_String));
  110005. },
  110006. $signature: 22
  110007. };
  110008. A._compatible_closure0.prototype = {
  110009. call$1($arguments) {
  110010. var t1 = J.getInterceptor$asx($arguments);
  110011. return t1.$index($arguments, 0).assertNumber$1("number1").isComparableTo$1(t1.$index($arguments, 1).assertNumber$1("number2")) ? B.SassBoolean_true0 : B.SassBoolean_false0;
  110012. },
  110013. $signature: 12
  110014. };
  110015. A._isUnitless_closure0.prototype = {
  110016. call$1($arguments) {
  110017. return !J.$index$asx($arguments, 0).assertNumber$1("number").get$hasUnits() ? B.SassBoolean_true0 : B.SassBoolean_false0;
  110018. },
  110019. $signature: 12
  110020. };
  110021. A._unit_closure0.prototype = {
  110022. call$1($arguments) {
  110023. return new A.SassString0(J.$index$asx($arguments, 0).assertNumber$1("number").get$unitString(), true);
  110024. },
  110025. $signature: 17
  110026. };
  110027. A._percentage_closure0.prototype = {
  110028. call$1($arguments) {
  110029. var number = J.$index$asx($arguments, 0).assertNumber$1("number");
  110030. number.assertNoUnits$1("number");
  110031. return A.SassNumber_SassNumber0(number._number1$_value * 100, "%");
  110032. },
  110033. $signature: 22
  110034. };
  110035. A._randomFunction_closure0.prototype = {
  110036. call$1($arguments) {
  110037. var limit, limitScalar,
  110038. t1 = J.getInterceptor$asx($arguments);
  110039. if (J.$eq$(t1.$index($arguments, 0), B.C__SassNull0))
  110040. return A.SassNumber_SassNumber0($.$get$_random2().nextDouble$0(), null);
  110041. limit = t1.$index($arguments, 0).assertNumber$1("limit");
  110042. if (limit.get$hasUnits())
  110043. A.warnForDeprecation0(string$.math_r + limit.toString$0(0) + string$.x29x20in_a + limit.get$unitString() + ")) * 1" + limit.get$unitString() + string$.x0a_To_p + limit.get$unitString() + string$.x29x29__Mo, B.Deprecation_jV0);
  110044. limitScalar = limit.assertInt$1("limit");
  110045. if (limitScalar < 1)
  110046. throw A.wrapException(A.SassScriptException$0("$limit: Must be greater than 0, was " + limit.toString$0(0) + ".", null));
  110047. return A.SassNumber_SassNumber0($.$get$_random2().nextInt$1(limitScalar) + 1, null);
  110048. },
  110049. $signature: 22
  110050. };
  110051. A._div_closure0.prototype = {
  110052. call$1($arguments) {
  110053. var t1 = J.getInterceptor$asx($arguments),
  110054. number1 = t1.$index($arguments, 0),
  110055. number2 = t1.$index($arguments, 1);
  110056. if (!(number1 instanceof A.SassNumber0) || !(number2 instanceof A.SassNumber0))
  110057. A.warn0(string$.math_d);
  110058. return number1.dividedBy$1(number2);
  110059. },
  110060. $signature: 3
  110061. };
  110062. A._singleArgumentMathFunc_closure0.prototype = {
  110063. call$1($arguments) {
  110064. return this.mathFunc.call$1(J.$index$asx($arguments, 0).assertNumber$1("number"));
  110065. },
  110066. $signature: 22
  110067. };
  110068. A._numberFunction_closure0.prototype = {
  110069. call$1($arguments) {
  110070. var number = J.$index$asx($arguments, 0).assertNumber$1("number"),
  110071. t1 = this.transform.call$1(number._number1$_value),
  110072. t2 = number.get$numeratorUnits(number);
  110073. return A.SassNumber_SassNumber$withUnits0(t1, number.get$denominatorUnits(number), t2);
  110074. },
  110075. $signature: 22
  110076. };
  110077. A.CssMediaQuery0.prototype = {
  110078. merge$1(other) {
  110079. var t1, ourModifier, t2, t3, ourType, t4, theirModifier, t5, t6, theirType, t7, t8, negativeConditions, conditions, type, modifier, fewerConditions, fewerConditions0, moreConditions, _this = this, _null = null, _s3_ = "all";
  110080. if (!_this.conjunction || !other.conjunction)
  110081. return B._SingletonCssMediaQueryMergeResult_10;
  110082. t1 = _this.modifier;
  110083. ourModifier = t1 == null ? _null : t1.toLowerCase();
  110084. t2 = _this.type;
  110085. t3 = t2 == null;
  110086. ourType = t3 ? _null : t2.toLowerCase();
  110087. t4 = other.modifier;
  110088. theirModifier = t4 == null ? _null : t4.toLowerCase();
  110089. t5 = other.type;
  110090. t6 = t5 == null;
  110091. theirType = t6 ? _null : t5.toLowerCase();
  110092. t7 = ourType == null;
  110093. if (t7 && theirType == null) {
  110094. t1 = A.List_List$of(_this.conditions, true, type$.String);
  110095. B.JSArray_methods.addAll$1(t1, other.conditions);
  110096. return new A.MediaQuerySuccessfulMergeResult0(A.CssMediaQuery$condition0(t1, true));
  110097. }
  110098. t8 = ourModifier === "not";
  110099. if (t8 !== (theirModifier === "not")) {
  110100. if (ourType == theirType) {
  110101. negativeConditions = t8 ? _this.conditions : other.conditions;
  110102. if (B.JSArray_methods.every$1(negativeConditions, B.JSArray_methods.get$contains(t8 ? other.conditions : _this.conditions)))
  110103. return B._SingletonCssMediaQueryMergeResult_00;
  110104. else
  110105. return B._SingletonCssMediaQueryMergeResult_10;
  110106. } else if (t3 || A.equalsIgnoreCase0(t2, _s3_) || t6 || A.equalsIgnoreCase0(t5, _s3_))
  110107. return B._SingletonCssMediaQueryMergeResult_10;
  110108. if (t8) {
  110109. conditions = other.conditions;
  110110. type = theirType;
  110111. modifier = theirModifier;
  110112. } else {
  110113. conditions = _this.conditions;
  110114. type = ourType;
  110115. modifier = ourModifier;
  110116. }
  110117. } else if (t8) {
  110118. if (ourType != theirType)
  110119. return B._SingletonCssMediaQueryMergeResult_10;
  110120. fewerConditions = _this.conditions;
  110121. fewerConditions0 = other.conditions;
  110122. t3 = fewerConditions.length > fewerConditions0.length;
  110123. moreConditions = t3 ? fewerConditions : fewerConditions0;
  110124. if (t3)
  110125. fewerConditions = fewerConditions0;
  110126. if (!B.JSArray_methods.every$1(fewerConditions, B.JSArray_methods.get$contains(moreConditions)))
  110127. return B._SingletonCssMediaQueryMergeResult_10;
  110128. conditions = moreConditions;
  110129. type = ourType;
  110130. modifier = ourModifier;
  110131. } else if (t3 || A.equalsIgnoreCase0(t2, _s3_)) {
  110132. type = (t6 || A.equalsIgnoreCase0(t5, _s3_)) && t7 ? _null : theirType;
  110133. t3 = A.List_List$of(_this.conditions, true, type$.String);
  110134. B.JSArray_methods.addAll$1(t3, other.conditions);
  110135. conditions = t3;
  110136. modifier = theirModifier;
  110137. } else {
  110138. if (t6 || A.equalsIgnoreCase0(t5, _s3_)) {
  110139. t3 = A.List_List$of(_this.conditions, true, type$.String);
  110140. B.JSArray_methods.addAll$1(t3, other.conditions);
  110141. conditions = t3;
  110142. modifier = ourModifier;
  110143. } else {
  110144. if (ourType != theirType)
  110145. return B._SingletonCssMediaQueryMergeResult_00;
  110146. else {
  110147. modifier = ourModifier == null ? theirModifier : ourModifier;
  110148. t3 = A.List_List$of(_this.conditions, true, type$.String);
  110149. B.JSArray_methods.addAll$1(t3, other.conditions);
  110150. }
  110151. conditions = t3;
  110152. }
  110153. type = ourType;
  110154. }
  110155. t2 = type == ourType ? t2 : t5;
  110156. return new A.MediaQuerySuccessfulMergeResult0(A.CssMediaQuery$type0(t2, conditions, modifier == ourModifier ? t1 : t4));
  110157. },
  110158. $eq(_, other) {
  110159. if (other == null)
  110160. return false;
  110161. return other instanceof A.CssMediaQuery0 && other.modifier == this.modifier && other.type == this.type && B.C_ListEquality.equals$2(0, other.conditions, this.conditions);
  110162. },
  110163. get$hashCode(_) {
  110164. return J.get$hashCode$(this.modifier) ^ J.get$hashCode$(this.type) ^ B.C_ListEquality0.hash$1(this.conditions);
  110165. },
  110166. toString$0(_) {
  110167. var t2, _this = this,
  110168. t1 = _this.modifier;
  110169. t1 = t1 != null ? "" + (t1 + " ") : "";
  110170. t2 = _this.type;
  110171. if (t2 != null) {
  110172. t1 += t2;
  110173. if (_this.conditions.length !== 0)
  110174. t1 += " and ";
  110175. }
  110176. t2 = _this.conjunction ? " and " : " or ";
  110177. t2 = t1 + B.JSArray_methods.join$1(_this.conditions, t2);
  110178. return t2.charCodeAt(0) == 0 ? t2 : t2;
  110179. }
  110180. };
  110181. A._SingletonCssMediaQueryMergeResult0.prototype = {
  110182. _enumToString$0() {
  110183. return "_SingletonCssMediaQueryMergeResult." + this._name;
  110184. }
  110185. };
  110186. A.MediaQuerySuccessfulMergeResult0.prototype = {
  110187. toString$0(_) {
  110188. return this.query.toString$0(0);
  110189. }
  110190. };
  110191. A.MediaQueryParser0.prototype = {
  110192. parse$0(_) {
  110193. return this.wrapSpanFormatException$1(new A.MediaQueryParser_parse_closure0(this));
  110194. },
  110195. _media_query$_mediaQuery$0() {
  110196. var conditions, conjunction, t1, identifier1, identifier2, type, modifier, _this = this, _s3_ = "and", _null = null;
  110197. if (_this.scanner.peekChar$0() === 40) {
  110198. conditions = A._setArrayType([_this._media_query$_mediaInParens$0()], type$.JSArray_String);
  110199. _this.whitespace$0();
  110200. if (_this.scanIdentifier$1(_s3_)) {
  110201. _this.expectWhitespace$0();
  110202. B.JSArray_methods.addAll$1(conditions, _this._media_query$_mediaLogicSequence$1(_s3_));
  110203. conjunction = true;
  110204. } else {
  110205. t1 = _this.scanIdentifier$1("or");
  110206. if (t1) {
  110207. _this.expectWhitespace$0();
  110208. B.JSArray_methods.addAll$1(conditions, _this._media_query$_mediaLogicSequence$1("or"));
  110209. }
  110210. conjunction = !t1;
  110211. }
  110212. return A.CssMediaQuery$condition0(conditions, conjunction);
  110213. }
  110214. identifier1 = _this.identifier$0();
  110215. if (A.equalsIgnoreCase0(identifier1, "not")) {
  110216. _this.expectWhitespace$0();
  110217. if (!_this.lookingAtIdentifier$0())
  110218. return A.CssMediaQuery$condition0(A._setArrayType(["(not " + _this._media_query$_mediaInParens$0() + ")"], type$.JSArray_String), _null);
  110219. }
  110220. _this.whitespace$0();
  110221. if (!_this.lookingAtIdentifier$0())
  110222. return A.CssMediaQuery$type0(identifier1, _null, _null);
  110223. identifier2 = _this.identifier$0();
  110224. if (A.equalsIgnoreCase0(identifier2, _s3_)) {
  110225. _this.expectWhitespace$0();
  110226. type = identifier1;
  110227. modifier = _null;
  110228. } else {
  110229. _this.whitespace$0();
  110230. if (_this.scanIdentifier$1(_s3_))
  110231. _this.expectWhitespace$0();
  110232. else
  110233. return A.CssMediaQuery$type0(identifier2, _null, identifier1);
  110234. type = identifier2;
  110235. modifier = identifier1;
  110236. }
  110237. if (_this.scanIdentifier$1("not")) {
  110238. _this.expectWhitespace$0();
  110239. return A.CssMediaQuery$type0(type, A._setArrayType(["(not " + _this._media_query$_mediaInParens$0() + ")"], type$.JSArray_String), modifier);
  110240. }
  110241. return A.CssMediaQuery$type0(type, _this._media_query$_mediaLogicSequence$1(_s3_), modifier);
  110242. },
  110243. _media_query$_mediaLogicSequence$1(operator) {
  110244. var t1, t2, _this = this,
  110245. result = A._setArrayType([], type$.JSArray_String);
  110246. for (t1 = _this.scanner; true;) {
  110247. t1.expectChar$2$name(40, "media condition in parentheses");
  110248. t2 = _this.declarationValue$0();
  110249. t1.expectChar$1(41);
  110250. result.push("(" + t2 + ")");
  110251. _this.whitespace$0();
  110252. if (!_this.scanIdentifier$1(operator))
  110253. return result;
  110254. _this.expectWhitespace$0();
  110255. }
  110256. },
  110257. _media_query$_mediaInParens$0() {
  110258. var t2,
  110259. t1 = this.scanner;
  110260. t1.expectChar$2$name(40, "media condition in parentheses");
  110261. t2 = this.declarationValue$0();
  110262. t1.expectChar$1(41);
  110263. return "(" + t2 + ")";
  110264. }
  110265. };
  110266. A.MediaQueryParser_parse_closure0.prototype = {
  110267. call$0() {
  110268. var queries = A._setArrayType([], type$.JSArray_CssMediaQuery_2),
  110269. t1 = this.$this,
  110270. t2 = t1.scanner;
  110271. do {
  110272. t1.whitespace$0();
  110273. queries.push(t1._media_query$_mediaQuery$0());
  110274. t1.whitespace$0();
  110275. } while (t2.scanChar$1(44));
  110276. t2.expectDone$0();
  110277. return queries;
  110278. },
  110279. $signature: 529
  110280. };
  110281. A.ModifiableCssMediaRule0.prototype = {
  110282. accept$1$1(visitor) {
  110283. return visitor.visitCssMediaRule$1(this);
  110284. },
  110285. accept$1(visitor) {
  110286. return this.accept$1$1(visitor, type$.dynamic);
  110287. },
  110288. equalsIgnoringChildren$1(other) {
  110289. return other instanceof A.ModifiableCssMediaRule0 && B.C_ListEquality.equals$2(0, this.queries, other.queries);
  110290. },
  110291. copyWithoutChildren$0() {
  110292. return A.ModifiableCssMediaRule$0(this.queries, this.span);
  110293. },
  110294. get$span(receiver) {
  110295. return this.span;
  110296. }
  110297. };
  110298. A.MediaRule0.prototype = {
  110299. accept$1$1(visitor) {
  110300. return visitor.visitMediaRule$1(0, this);
  110301. },
  110302. accept$1(visitor) {
  110303. return this.accept$1$1(visitor, type$.dynamic);
  110304. },
  110305. toString$0(_) {
  110306. var t1 = this.children;
  110307. return "@media " + this.query.toString$0(0) + " {" + (t1 && B.JSArray_methods).join$1(t1, " ") + "}";
  110308. },
  110309. get$span(receiver) {
  110310. return this.span;
  110311. }
  110312. };
  110313. A.MergedExtension0.prototype = {
  110314. unmerge$0() {
  110315. return new A._SyncStarIterable(this.unmerge$body$MergedExtension0(), type$._SyncStarIterable_Extension_2);
  110316. },
  110317. unmerge$body$MergedExtension0() {
  110318. var $async$self = this;
  110319. return function() {
  110320. var $async$goto = 0, $async$handler = 1, $async$currentError, right, left;
  110321. return function $async$unmerge$0($async$iterator, $async$errorCode, $async$result) {
  110322. if ($async$errorCode === 1) {
  110323. $async$currentError = $async$result;
  110324. $async$goto = $async$handler;
  110325. }
  110326. while (true)
  110327. switch ($async$goto) {
  110328. case 0:
  110329. // Function start
  110330. left = $async$self.left;
  110331. $async$goto = left instanceof A.MergedExtension0 ? 2 : 4;
  110332. break;
  110333. case 2:
  110334. // then
  110335. $async$goto = 5;
  110336. return $async$iterator._yieldStar$1(left.unmerge$0());
  110337. case 5:
  110338. // after yield
  110339. // goto join
  110340. $async$goto = 3;
  110341. break;
  110342. case 4:
  110343. // else
  110344. $async$goto = 6;
  110345. return $async$iterator._async$_current = left, 1;
  110346. case 6:
  110347. // after yield
  110348. case 3:
  110349. // join
  110350. right = $async$self.right;
  110351. $async$goto = right instanceof A.MergedExtension0 ? 7 : 9;
  110352. break;
  110353. case 7:
  110354. // then
  110355. $async$goto = 10;
  110356. return $async$iterator._yieldStar$1(right.unmerge$0());
  110357. case 10:
  110358. // after yield
  110359. // goto join
  110360. $async$goto = 8;
  110361. break;
  110362. case 9:
  110363. // else
  110364. $async$goto = 11;
  110365. return $async$iterator._async$_current = right, 1;
  110366. case 11:
  110367. // after yield
  110368. case 8:
  110369. // join
  110370. // implicit return
  110371. return 0;
  110372. case 1:
  110373. // rethrow
  110374. return $async$iterator._datum = $async$currentError, 3;
  110375. }
  110376. };
  110377. };
  110378. }
  110379. };
  110380. A.MergedMapView0.prototype = {
  110381. get$keys(_) {
  110382. var t1 = this._merged_map_view$_mapsByKey;
  110383. return new A.LinkedHashMapKeyIterable(t1, A._instanceType(t1)._eval$1("LinkedHashMapKeyIterable<1>"));
  110384. },
  110385. get$length(_) {
  110386. return this._merged_map_view$_mapsByKey.__js_helper$_length;
  110387. },
  110388. get$isEmpty(_) {
  110389. return this._merged_map_view$_mapsByKey.__js_helper$_length === 0;
  110390. },
  110391. get$isNotEmpty(_) {
  110392. return this._merged_map_view$_mapsByKey.__js_helper$_length !== 0;
  110393. },
  110394. MergedMapView$10(maps, $K, $V) {
  110395. var t1, t2, t3, _i, map, t4, t5, t6;
  110396. for (t1 = maps.length, t2 = this._merged_map_view$_mapsByKey, t3 = $K._eval$1("@<0>")._bind$1($V)._eval$1("MergedMapView0<1,2>"), _i = 0; _i < maps.length; maps.length === t1 || (0, A.throwConcurrentModificationError)(maps), ++_i) {
  110397. map = maps[_i];
  110398. if (t3._is(map))
  110399. for (t4 = map._merged_map_view$_mapsByKey.get$values(0), t5 = A._instanceType(t4), t4 = new A.MappedIterator(J.get$iterator$ax(t4.__internal$_iterable), t4._f, t5._eval$1("MappedIterator<1,2>")), t5 = t5._rest[1]; t4.moveNext$0();) {
  110400. t6 = t4.__internal$_current;
  110401. if (t6 == null)
  110402. t6 = t5._as(t6);
  110403. A.setAll0(t2, t6.get$keys(t6), t6);
  110404. }
  110405. else
  110406. A.setAll0(t2, map.get$keys(map), map);
  110407. }
  110408. },
  110409. $index(_, key) {
  110410. var t1 = this._merged_map_view$_mapsByKey.$index(0, this.$ti._precomputed1._as(key));
  110411. return t1 == null ? null : t1.$index(0, key);
  110412. },
  110413. $indexSet(_, key, value) {
  110414. var _0_0 = this._merged_map_view$_mapsByKey.$index(0, key);
  110415. if (_0_0 != null)
  110416. _0_0.$indexSet(0, key, value);
  110417. else
  110418. throw A.wrapException(A.UnsupportedError$(string$.New_en));
  110419. },
  110420. remove$1(_, key) {
  110421. throw A.wrapException(A.UnsupportedError$(string$.Entrie));
  110422. },
  110423. containsKey$1(key) {
  110424. return this._merged_map_view$_mapsByKey.containsKey$1(key);
  110425. }
  110426. };
  110427. A._shared_closure3.prototype = {
  110428. call$1($arguments) {
  110429. A.warnForDeprecation0(string$.The_fe, B.Deprecation_QAx);
  110430. return $._features0.contains$1(0, J.$index$asx($arguments, 0).assertString$1("feature")._string0$_text) ? B.SassBoolean_true0 : B.SassBoolean_false0;
  110431. },
  110432. $signature: 12
  110433. };
  110434. A._shared_closure4.prototype = {
  110435. call$1($arguments) {
  110436. return new A.SassString0(A.serializeValue0(J.get$first$ax($arguments), true, true), false);
  110437. },
  110438. $signature: 17
  110439. };
  110440. A._shared_closure5.prototype = {
  110441. call$1($arguments) {
  110442. var t1 = J.getInterceptor$asx($arguments),
  110443. _0_0 = t1.$index($arguments, 0);
  110444. $label0$0: {
  110445. if (_0_0 instanceof A.SassArgumentList0) {
  110446. t1 = "arglist";
  110447. break $label0$0;
  110448. }
  110449. if (_0_0 instanceof A.SassBoolean0) {
  110450. t1 = "bool";
  110451. break $label0$0;
  110452. }
  110453. if (_0_0 instanceof A.SassColor0) {
  110454. t1 = "color";
  110455. break $label0$0;
  110456. }
  110457. if (_0_0 instanceof A.SassList0) {
  110458. t1 = "list";
  110459. break $label0$0;
  110460. }
  110461. if (_0_0 instanceof A.SassMap0) {
  110462. t1 = "map";
  110463. break $label0$0;
  110464. }
  110465. if (B.C__SassNull0 === _0_0) {
  110466. t1 = "null";
  110467. break $label0$0;
  110468. }
  110469. if (_0_0 instanceof A.SassNumber0) {
  110470. t1 = "number";
  110471. break $label0$0;
  110472. }
  110473. if (_0_0 instanceof A.SassFunction0) {
  110474. t1 = "function";
  110475. break $label0$0;
  110476. }
  110477. if (_0_0 instanceof A.SassMixin0) {
  110478. t1 = "mixin";
  110479. break $label0$0;
  110480. }
  110481. if (_0_0 instanceof A.SassCalculation0) {
  110482. t1 = "calculation";
  110483. break $label0$0;
  110484. }
  110485. if (_0_0 instanceof A.SassString0) {
  110486. t1 = "string";
  110487. break $label0$0;
  110488. }
  110489. t1 = A.throwExpression("[BUG] Unknown value type " + A.S(t1.$index($arguments, 0)));
  110490. }
  110491. return new A.SassString0(t1, false);
  110492. },
  110493. $signature: 17
  110494. };
  110495. A._shared_closure6.prototype = {
  110496. call$1($arguments) {
  110497. var t2, t3, t4,
  110498. t1 = J.getInterceptor$asx($arguments),
  110499. _1_0 = t1.$index($arguments, 0);
  110500. if (_1_0 instanceof A.SassArgumentList0) {
  110501. _1_0._argument_list$_wereKeywordsAccessed = true;
  110502. t1 = type$.Value_2;
  110503. t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  110504. for (t3 = A.MapExtensions_get_pairs0(_1_0._argument_list$_keywords, type$.String, t1), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  110505. t4 = t3.get$current(t3);
  110506. t2.$indexSet(0, new A.SassString0(t4._0, false), t4._1);
  110507. }
  110508. return new A.SassMap0(A.ConstantMap_ConstantMap$from(t2, t1, t1));
  110509. } else
  110510. throw A.wrapException("$args: " + A.S(t1.$index($arguments, 0)) + " is not an argument list.");
  110511. },
  110512. $signature: 36
  110513. };
  110514. A.moduleFunctions_closure2.prototype = {
  110515. call$1($arguments) {
  110516. return new A.SassString0(J.$index$asx($arguments, 0).assertCalculation$1("calc").name, true);
  110517. },
  110518. $signature: 17
  110519. };
  110520. A.moduleFunctions_closure3.prototype = {
  110521. call$1($arguments) {
  110522. var t1 = J.$index$asx($arguments, 0).assertCalculation$1("calc").$arguments;
  110523. return A.SassList$0(new A.MappedListIterable(t1, new A.moduleFunctions__closure0(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value0>")), B.ListSeparator_ECn0, false);
  110524. },
  110525. $signature: 26
  110526. };
  110527. A.moduleFunctions__closure0.prototype = {
  110528. call$1(argument) {
  110529. return argument instanceof A.Value0 ? argument : new A.SassString0(J.toString$0$(argument), false);
  110530. },
  110531. $signature: 530
  110532. };
  110533. A.moduleFunctions_closure4.prototype = {
  110534. call$1($arguments) {
  110535. var _0_2_isSet, _0_2, acceptsContent, t1, _0_5_isSet, _0_5, hasContent,
  110536. mixin = J.$index$asx($arguments, 0).assertMixin$1("mixin"),
  110537. _0_0 = mixin.callable;
  110538. $label0$0: {
  110539. _0_2_isSet = type$.AsyncBuiltInCallable_2._is(_0_0);
  110540. if (_0_2_isSet) {
  110541. _0_2 = _0_0.get$acceptsContent();
  110542. acceptsContent = _0_2;
  110543. } else
  110544. acceptsContent = null;
  110545. if (!_0_2_isSet) {
  110546. _0_2_isSet = _0_0 instanceof A.BuiltInCallable0;
  110547. if (_0_2_isSet) {
  110548. _0_2 = _0_0.acceptsContent;
  110549. acceptsContent = _0_2;
  110550. }
  110551. t1 = _0_2_isSet;
  110552. } else
  110553. t1 = true;
  110554. if (t1) {
  110555. t1 = acceptsContent;
  110556. break $label0$0;
  110557. }
  110558. _0_5_isSet = _0_0 instanceof A.UserDefinedCallable0;
  110559. if (_0_5_isSet) {
  110560. _0_5 = _0_0.declaration;
  110561. t1 = _0_5 instanceof A.MixinRule0;
  110562. } else {
  110563. _0_5 = null;
  110564. t1 = false;
  110565. }
  110566. if (t1) {
  110567. t1 = _0_5_isSet ? _0_5 : _0_0.declaration;
  110568. hasContent = type$.MixinRule_2._as(t1).get$hasContent();
  110569. t1 = hasContent;
  110570. break $label0$0;
  110571. }
  110572. t1 = A.throwExpression(A.UnsupportedError$("Unknown callable type " + mixin.toString$0(0) + "."));
  110573. }
  110574. return t1 ? B.SassBoolean_true0 : B.SassBoolean_false0;
  110575. },
  110576. $signature: 12
  110577. };
  110578. A.mixinClass_closure.prototype = {
  110579. call$0() {
  110580. var t1 = type$.JSClass,
  110581. jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.SassMixin", new A.mixinClass__closure()));
  110582. A.JSClassExtension_injectSuperclass(t1._as(new A.SassMixin0(A.BuiltInCallable$function0("f", "", new A.mixinClass__closure0(), null)).constructor), jsClass);
  110583. return jsClass;
  110584. },
  110585. $signature: 16
  110586. };
  110587. A.mixinClass__closure.prototype = {
  110588. call$1($self) {
  110589. A.jsThrow(new self.Error("It is not possible to construct a SassMixin through the JavaScript API"));
  110590. },
  110591. $signature: 531
  110592. };
  110593. A.mixinClass__closure0.prototype = {
  110594. call$1(_) {
  110595. return B.C__SassNull0;
  110596. },
  110597. $signature: 3
  110598. };
  110599. A.SassMixin0.prototype = {
  110600. accept$1$1(visitor) {
  110601. var t1, t2;
  110602. if (!visitor._serialize0$_inspect)
  110603. A.throwExpression(A.SassScriptException$0(this.toString$0(0) + " isn't a valid CSS value.", null));
  110604. t1 = visitor._serialize0$_buffer;
  110605. t1.write$1(0, "get-mixin(");
  110606. t2 = this.callable;
  110607. visitor._serialize0$_visitQuotedString$1(t2.get$name(t2));
  110608. t1.writeCharCode$1(41);
  110609. return null;
  110610. },
  110611. accept$1(visitor) {
  110612. return this.accept$1$1(visitor, type$.dynamic);
  110613. },
  110614. assertMixin$1($name) {
  110615. return this;
  110616. },
  110617. $eq(_, other) {
  110618. if (other == null)
  110619. return false;
  110620. return other instanceof A.SassMixin0 && this.callable.$eq(0, other.callable);
  110621. },
  110622. get$hashCode(_) {
  110623. var t1 = this.callable;
  110624. return t1.get$hashCode(t1);
  110625. }
  110626. };
  110627. A.MixinRule0.prototype = {
  110628. get$hasContent() {
  110629. var result, _this = this,
  110630. value = _this._mixin_rule$__MixinRule_hasContent_FI;
  110631. if (value === $) {
  110632. result = J.$eq$(B.C__HasContentVisitor0.visitChildren$1(_this.children), true);
  110633. _this._mixin_rule$__MixinRule_hasContent_FI !== $ && A.throwUnnamedLateFieldADI();
  110634. _this._mixin_rule$__MixinRule_hasContent_FI = result;
  110635. value = result;
  110636. }
  110637. return value;
  110638. },
  110639. accept$1$1(visitor) {
  110640. return visitor.visitMixinRule$1(0, this);
  110641. },
  110642. accept$1(visitor) {
  110643. return this.accept$1$1(visitor, type$.dynamic);
  110644. },
  110645. toString$0(_) {
  110646. var t1 = "@mixin " + this.name,
  110647. t2 = this.$arguments;
  110648. if (!(t2.$arguments.length === 0 && t2.restArgument == null))
  110649. t1 += "(" + t2.toString$0(0) + ")";
  110650. t2 = this.children;
  110651. t2 = t1 + (" {" + (t2 && B.JSArray_methods).join$1(t2, " ") + "}");
  110652. return t2.charCodeAt(0) == 0 ? t2 : t2;
  110653. }
  110654. };
  110655. A._HasContentVisitor0.prototype = {
  110656. visitContentRule$1(_, _0) {
  110657. return true;
  110658. },
  110659. $isStatementVisitor: 1
  110660. };
  110661. A.__HasContentVisitor_Object_StatementSearchVisitor0.prototype = {};
  110662. A.ExtendMode0.prototype = {
  110663. _enumToString$0() {
  110664. return "ExtendMode." + this._name;
  110665. },
  110666. toString$0(_) {
  110667. return this.name;
  110668. }
  110669. };
  110670. A.JSModule0.prototype = {};
  110671. A.JSModuleRequire0.prototype = {};
  110672. A.MultiSpan0.prototype = {
  110673. get$start(_) {
  110674. var t1 = this._multi_span0$_primary;
  110675. return t1.get$start(t1);
  110676. },
  110677. get$end(_) {
  110678. var t1 = this._multi_span0$_primary;
  110679. return t1.get$end(t1);
  110680. },
  110681. get$text() {
  110682. return this._multi_span0$_primary.get$text();
  110683. },
  110684. get$context(_) {
  110685. var t1 = this._multi_span0$_primary;
  110686. return t1.get$context(t1);
  110687. },
  110688. get$file(_) {
  110689. var t1 = this._multi_span0$_primary;
  110690. return t1.get$file(t1);
  110691. },
  110692. get$length(_) {
  110693. var t1 = this._multi_span0$_primary;
  110694. return t1.get$length(t1);
  110695. },
  110696. get$sourceUrl(_) {
  110697. var t1 = this._multi_span0$_primary;
  110698. return t1.get$sourceUrl(t1);
  110699. },
  110700. compareTo$1(_, other) {
  110701. return this._multi_span0$_primary.compareTo$1(0, other);
  110702. },
  110703. toString$0(_) {
  110704. return this._multi_span0$_primary.toString$0(0);
  110705. },
  110706. expand$1(_, other) {
  110707. return new A.MultiSpan0(this._multi_span0$_primary.expand$1(0, other), this.primaryLabel, this.secondarySpans);
  110708. },
  110709. highlight$1$color(color) {
  110710. return A.Highlighter$multiple(this._multi_span0$_primary, this.primaryLabel, this.secondarySpans, color === true, null, null).highlight$0();
  110711. },
  110712. message$2$color(_, message, color) {
  110713. var t1 = J.$eq$(color, true) || typeof color == "string",
  110714. t2 = typeof color == "string" ? color : null;
  110715. return A.SourceSpanExtension_messageMultiple(this._multi_span0$_primary, message, this.primaryLabel, this.secondarySpans, t1, t2, null);
  110716. },
  110717. message$1(_, message) {
  110718. return this.message$2$color(0, message, null);
  110719. },
  110720. $isComparable: 1,
  110721. $isFileSpan: 1,
  110722. $isSourceSpan: 1,
  110723. $isSourceSpanWithContext: 1
  110724. };
  110725. A.SupportsNegation0.prototype = {
  110726. toInterpolation$0() {
  110727. var t1 = new A.StringBuffer(""),
  110728. t2 = new A.InterpolationBuffer0(t1, A._setArrayType([], type$.JSArray_Object), A._setArrayType([], type$.JSArray_nullable_FileSpan)),
  110729. t3 = this.span,
  110730. t4 = this.condition,
  110731. t5 = A.SpanExtensions_before(t3, t4.get$span(t4));
  110732. t5 = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t5.file._decodedChars, t5._file$_start, t5._end), 0, null);
  110733. t1._contents += t5;
  110734. t2.addInterpolation$1(t4.toInterpolation$0());
  110735. t4 = A.SpanExtensions_after(t3, t4.get$span(t4));
  110736. t4 = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t4.file._decodedChars, t4._file$_start, t4._end), 0, null);
  110737. t1._contents += t4;
  110738. return t2.interpolation$1(t3);
  110739. },
  110740. withSpan$1(span) {
  110741. return new A.SupportsNegation0(this.condition, span);
  110742. },
  110743. toString$0(_) {
  110744. var t1 = this.condition;
  110745. if (t1 instanceof A.SupportsNegation0 || t1 instanceof A.SupportsOperation0)
  110746. return "not (" + t1.toString$0(0) + ")";
  110747. else
  110748. return "not " + t1.toString$0(0);
  110749. },
  110750. $isAstNode0: 1,
  110751. $isSassNode: 1,
  110752. $isSupportsCondition: 1,
  110753. get$span(receiver) {
  110754. return this.span;
  110755. }
  110756. };
  110757. A.NoOpImporter0.prototype = {
  110758. canonicalize$1(_, url) {
  110759. return null;
  110760. },
  110761. load$1(_, url) {
  110762. return null;
  110763. },
  110764. toString$0(_) {
  110765. return "(unknown)";
  110766. }
  110767. };
  110768. A.NoSourceMapBuffer0.prototype = {
  110769. get$length(_) {
  110770. return this._no_source_map_buffer0$_buffer._contents.length;
  110771. },
  110772. forSpan$1$2(span, callback) {
  110773. return callback.call$0();
  110774. },
  110775. forSpan$2(span, callback) {
  110776. return this.forSpan$1$2(span, callback, type$.dynamic);
  110777. },
  110778. write$1(_, object) {
  110779. var t1 = this._no_source_map_buffer0$_buffer,
  110780. t2 = A.S(object);
  110781. t1._contents += t2;
  110782. return null;
  110783. },
  110784. writeCharCode$1(charCode) {
  110785. var t1 = this._no_source_map_buffer0$_buffer,
  110786. t2 = A.Primitives_stringFromCharCode(charCode);
  110787. t1._contents += t2;
  110788. return null;
  110789. },
  110790. toString$0(_) {
  110791. var t1 = this._no_source_map_buffer0$_buffer._contents;
  110792. return t1.charCodeAt(0) == 0 ? t1 : t1;
  110793. },
  110794. buildSourceMap$1$prefix(prefix) {
  110795. return A.throwExpression(A.UnsupportedError$(string$.NoSour));
  110796. }
  110797. };
  110798. A._FakeAstNode0.prototype = {
  110799. get$span(_) {
  110800. return this._node0$_callback.call$0();
  110801. },
  110802. $isAstNode0: 1
  110803. };
  110804. A.CssNode0.prototype = {
  110805. toString$0(_) {
  110806. var _null = null;
  110807. return A.serialize0(this, true, _null, true, _null, _null, false, _null, true)._0;
  110808. },
  110809. $isAstNode0: 1
  110810. };
  110811. A.CssParentNode0.prototype = {};
  110812. A._IsInvisibleVisitor1.prototype = {
  110813. visitCssAtRule$1(rule) {
  110814. return false;
  110815. },
  110816. visitCssComment$1(comment) {
  110817. return this.includeComments && comment.text.charCodeAt(2) !== 33;
  110818. },
  110819. visitCssStyleRule$1(rule) {
  110820. var t1 = rule._style_rule0$_selector._box0$_inner;
  110821. return (this.includeBogus ? t1.value.accept$1(B._IsInvisibleVisitor_true0) : t1.value.accept$1(B._IsInvisibleVisitor_false0)) || this.super$EveryCssVisitor$visitCssStyleRule0(rule);
  110822. }
  110823. };
  110824. A.__IsInvisibleVisitor_Object_EveryCssVisitor0.prototype = {};
  110825. A.ModifiableCssNode0.prototype = {
  110826. get$parent(_) {
  110827. return this._node$_parent;
  110828. },
  110829. get$hasFollowingSibling() {
  110830. var t2,
  110831. t1 = this._node$_parent;
  110832. if (t1 == null)
  110833. t1 = null;
  110834. else {
  110835. t1 = t1.children;
  110836. t2 = this._node$_indexInParent;
  110837. t2.toString;
  110838. t1 = A.SubListIterable$(t1, t2 + 1, null, t1.$ti._eval$1("ListBase.E")).any$1(0, new A.ModifiableCssNode_hasFollowingSibling_closure0());
  110839. }
  110840. return t1 === true;
  110841. },
  110842. get$isGroupEnd() {
  110843. return this.isGroupEnd;
  110844. }
  110845. };
  110846. A.ModifiableCssNode_hasFollowingSibling_closure0.prototype = {
  110847. call$1(sibling) {
  110848. return !sibling.accept$1(B._IsInvisibleVisitor_true_false0);
  110849. },
  110850. $signature: 532
  110851. };
  110852. A.ModifiableCssParentNode0.prototype = {
  110853. get$isChildless() {
  110854. return false;
  110855. },
  110856. addChild$1(child) {
  110857. var t1;
  110858. child._node$_parent = this;
  110859. t1 = this._node$_children;
  110860. child._node$_indexInParent = t1.length;
  110861. t1.push(child);
  110862. },
  110863. clearChildren$0() {
  110864. var t1, t2, _i, child;
  110865. for (t1 = this._node$_children, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  110866. child = t1[_i];
  110867. child._node$_indexInParent = child._node$_parent = null;
  110868. }
  110869. B.JSArray_methods.clear$0(t1);
  110870. },
  110871. $isCssParentNode0: 1,
  110872. get$children(receiver) {
  110873. return this.children;
  110874. }
  110875. };
  110876. A.NodePackageImporter0.prototype = {
  110877. isNonCanonicalScheme$1(scheme) {
  110878. return scheme === "pkg";
  110879. },
  110880. canonicalize$1(_, url) {
  110881. var packageName, jsonPath, jsonString, packageManifest, e, t1, t2, t3, t4, baseDirectory, parts, t5, $name, subpath, packageRoot, exception, _1_0, rootPath, subpathInRoot, _this = this, _null = null;
  110882. if (url.get$scheme() === "file")
  110883. return $.$get$FilesystemImporter_cwd0().canonicalize$1(0, url);
  110884. if (url.get$scheme() !== "pkg")
  110885. return _null;
  110886. if (url.get$hasAuthority())
  110887. throw A.wrapException(string$.A_pkg_h);
  110888. else {
  110889. t1 = $.$get$url();
  110890. t2 = t1.style;
  110891. if (t2.rootLength$1(url.get$path(url)) > 0)
  110892. throw A.wrapException("A pkg: URL's path must not begin with /.");
  110893. else if (url.get$path(url).length === 0)
  110894. throw A.wrapException("A pkg: URL must not have an empty path.");
  110895. else if (url.get$hasQuery() || url.get$hasFragment())
  110896. throw A.wrapException(string$.A_pkg_q);
  110897. }
  110898. t3 = A.canonicalizeContext0();
  110899. t3._canonicalize_context$_wasContainingUrlAccessed = true;
  110900. t3 = t3._canonicalize_context$_containingUrl;
  110901. if ((t3 == null ? _null : t3.get$scheme()) === "file") {
  110902. t3 = A.canonicalizeContext0();
  110903. t3._canonicalize_context$_wasContainingUrlAccessed = true;
  110904. t3 = t3._canonicalize_context$_containingUrl;
  110905. t3.toString;
  110906. t4 = $.$get$context();
  110907. baseDirectory = t4.dirname$1(t4.style.pathFromUri$1(A._parseUri(t3)));
  110908. } else {
  110909. t3 = _this._node_package$__NodePackageImporter__entryPointDirectory_F;
  110910. t3 === $ && A.throwUnnamedLateFieldNI();
  110911. baseDirectory = t3;
  110912. }
  110913. packageName = null;
  110914. parts = t1.split$1(0, url.get$path(url));
  110915. t3 = B.JSArray_methods.removeAt$1(parts, 0);
  110916. t4 = $.$get$context();
  110917. t3.toString;
  110918. t5 = t4.style;
  110919. $name = t5.pathFromUri$1(A._parseUri(t3));
  110920. if (B.JSString_methods.startsWith$1($name, "@"))
  110921. $name = parts.length !== 0 ? t1.join$2(0, $name, B.JSArray_methods.removeAt$1(parts, 0)) : $name;
  110922. subpath = parts.length !== 0 ? t5.pathFromUri$1(A._parseUri(t1.joinAll$1(parts))) : _null;
  110923. packageName = $name;
  110924. t1 = true;
  110925. if (!J.startsWith$1$s(packageName, "."))
  110926. if (!J.contains$1$asx(packageName, "\\"))
  110927. if (!J.contains$1$asx(packageName, "%"))
  110928. t1 = J.startsWith$1$s(packageName, "@") && !J.contains$1$asx(packageName, t2.get$separator(t2));
  110929. if (t1)
  110930. return _null;
  110931. packageRoot = _this._node_package$_resolvePackageRoot$2(packageName, baseDirectory);
  110932. if (packageRoot == null)
  110933. return _null;
  110934. jsonPath = A.join(packageRoot, "package.json", _null);
  110935. jsonString = A.readFile0(jsonPath);
  110936. packageManifest = null;
  110937. try {
  110938. packageManifest = type$.Map_String_dynamic._as(B.C_JsonCodec.decode$1(jsonString));
  110939. } catch (exception) {
  110940. e = A.unwrapException(exception);
  110941. t1 = A.S(jsonPath);
  110942. t2 = A.S(packageName);
  110943. t3 = A.S(e);
  110944. throw A.wrapException("Failed to parse " + t1 + ' for "pkg:' + t2 + '": ' + t3);
  110945. }
  110946. _1_0 = _this._node_package$_resolvePackageExports$4(packageRoot, subpath, packageManifest, packageName);
  110947. if (_1_0 != null)
  110948. if (B.Set_00.contains$1(0, A.ParsedPath_ParsedPath$parse(_1_0, t5)._splitExtension$1(1)[1]))
  110949. return t4.toUri$1(t4.canonicalize$1(0, _1_0));
  110950. else {
  110951. t1 = subpath == null ? "root" : subpath;
  110952. throw A.wrapException("The export for '" + t1 + "' in '" + A.S(packageName) + "' resolved to '" + _1_0 + string$.x27x2c_whi);
  110953. }
  110954. if (subpath == null) {
  110955. rootPath = _this._node_package$_resolvePackageRootValues$2(packageRoot, packageManifest);
  110956. return rootPath != null ? t4.toUri$1(t4.canonicalize$1(0, rootPath)) : _null;
  110957. }
  110958. subpathInRoot = A.join(packageRoot, subpath, _null);
  110959. return $.$get$FilesystemImporter_cwd0().canonicalize$1(0, t4.toUri$1(subpathInRoot));
  110960. },
  110961. load$1(_, url) {
  110962. return $.$get$FilesystemImporter_cwd0().load$1(0, url);
  110963. },
  110964. _node_package$_resolvePackageRoot$2(packageName, baseDirectory) {
  110965. var potentialPackage, t1;
  110966. for (; true;) {
  110967. potentialPackage = A.join(baseDirectory, "node_modules", packageName);
  110968. if (A.dirExists0(potentialPackage))
  110969. return potentialPackage;
  110970. t1 = $.$get$context();
  110971. if (t1.split$1(0, baseDirectory).length === 1)
  110972. return null;
  110973. baseDirectory = t1.dirname$1(baseDirectory);
  110974. }
  110975. },
  110976. _node_package$_resolvePackageRootValues$2(packageRoot, packageManifest) {
  110977. var t1, sassValue, _1_0, styleValue, _null = null,
  110978. _0_0 = packageManifest.$index(0, "sass");
  110979. if (typeof _0_0 == "string") {
  110980. t1 = B.Set_00.contains$1(0, A.ParsedPath_ParsedPath$parse(_0_0, $.$get$url().style)._splitExtension$1(1)[1]);
  110981. sassValue = _0_0;
  110982. } else {
  110983. sassValue = _null;
  110984. t1 = false;
  110985. }
  110986. if (t1)
  110987. return A.join(packageRoot, sassValue, _null);
  110988. else {
  110989. _1_0 = packageManifest.$index(0, "style");
  110990. if (typeof _1_0 == "string") {
  110991. t1 = B.Set_00.contains$1(0, A.ParsedPath_ParsedPath$parse(_1_0, $.$get$url().style)._splitExtension$1(1)[1]);
  110992. styleValue = _1_0;
  110993. } else {
  110994. styleValue = _null;
  110995. t1 = false;
  110996. }
  110997. if (t1)
  110998. return A.join(packageRoot, styleValue, _null);
  110999. }
  111000. return A.resolveImportPath0(A.join(packageRoot, "index", _null));
  111001. },
  111002. _node_package$_resolvePackageExports$4(packageRoot, subpath, packageManifest, packageName) {
  111003. var _0_0, _1_0, _this = this,
  111004. exports = packageManifest.$index(0, "exports");
  111005. if (exports == null)
  111006. return null;
  111007. _0_0 = _this._node_package$_nodePackageExportsResolve$5(packageRoot, _this._node_package$_exportsToCheck$1(subpath), exports, subpath, packageName);
  111008. if (_0_0 != null)
  111009. return _0_0;
  111010. if (subpath != null && A.ParsedPath_ParsedPath$parse(subpath, $.$get$url().style)._splitExtension$1(1)[1].length !== 0)
  111011. return null;
  111012. _1_0 = _this._node_package$_nodePackageExportsResolve$5(packageRoot, _this._node_package$_exportsToCheck$2$addIndex(subpath, true), exports, subpath, packageName);
  111013. if (_1_0 != null)
  111014. return _1_0;
  111015. return null;
  111016. },
  111017. _node_package$_nodePackageExportsResolve$5(packageRoot, subpathVariants, exports, subpath, packageName) {
  111018. var t1, matches, _1_1, path;
  111019. if (type$.Map_String_dynamic._is(exports) && J.any$1$ax(exports.get$keys(exports), new A.NodePackageImporter__nodePackageExportsResolve_closure3()) && J.any$1$ax(exports.get$keys(exports), new A.NodePackageImporter__nodePackageExportsResolve_closure4()))
  111020. throw A.wrapException("`exports` in " + packageName + string$.x20can_n + J.map$1$1$ax(J.get$keys$z(exports), new A.NodePackageImporter__nodePackageExportsResolve_closure5(), type$.String).join$1(0, ",") + " in " + A.join(packageRoot, "package.json", null) + ".");
  111021. t1 = type$.NonNullsIterable_String;
  111022. matches = A.List_List$of(new A.NonNullsIterable(new A.MappedListIterable(subpathVariants, new A.NodePackageImporter__nodePackageExportsResolve_closure6(this, exports, packageRoot), A._arrayInstanceType(subpathVariants)._eval$1("MappedListIterable<1,String?>")), t1), true, t1._eval$1("Iterable.E"));
  111023. $label0$1: {
  111024. _1_1 = matches.length;
  111025. if (_1_1 === 1) {
  111026. path = matches[0];
  111027. t1 = path;
  111028. break $label0$1;
  111029. }
  111030. if (_1_1 <= 0) {
  111031. t1 = null;
  111032. break $label0$1;
  111033. }
  111034. t1 = subpath == null ? "root" : subpath;
  111035. t1 = A.throwExpression(string$.Unable + t1 + " in " + packageName + " should be used. \n\nFound:\n" + B.JSArray_methods.join$1(matches, "\n"));
  111036. }
  111037. return t1;
  111038. },
  111039. _node_package$_compareExpansionKeys$2(keyA, keyB) {
  111040. var t1 = B.JSString_methods.contains$1(keyA, "*"),
  111041. baseLengthA = t1 ? B.JSString_methods.indexOf$1(keyA, "*") + 1 : keyA.length,
  111042. t2 = B.JSString_methods.contains$1(keyB, "*"),
  111043. baseLengthB = t2 ? B.JSString_methods.indexOf$1(keyB, "*") + 1 : keyB.length;
  111044. if (baseLengthA > baseLengthB)
  111045. return -1;
  111046. if (baseLengthB > baseLengthA)
  111047. return 1;
  111048. if (!t1)
  111049. return 1;
  111050. if (!t2)
  111051. return -1;
  111052. t1 = keyA.length;
  111053. t2 = keyB.length;
  111054. if (t1 > t2)
  111055. return -1;
  111056. if (t2 > t1)
  111057. return 1;
  111058. return 0;
  111059. },
  111060. _node_package$_packageTargetResolve$4(subpath, exports, packageRoot, patternMatch) {
  111061. var t2, string, path, map, key, value, _1_0, array, _2_0, _null = null,
  111062. t1 = typeof exports == "string";
  111063. if (t1) {
  111064. t2 = !B.JSString_methods.startsWith$1(exports, "./");
  111065. string = exports;
  111066. } else {
  111067. string = _null;
  111068. t2 = false;
  111069. }
  111070. if (t2)
  111071. throw A.wrapException("Export '" + A.S(string) + string$.x27x20must + packageRoot + "'.");
  111072. if (t1) {
  111073. t2 = patternMatch != null;
  111074. string = exports;
  111075. } else {
  111076. string = _null;
  111077. t2 = false;
  111078. }
  111079. if (t2) {
  111080. t1 = J.replaceFirst$2$s(string, "*", patternMatch);
  111081. t2 = $.$get$context();
  111082. path = t2.normalize$1(A.join(packageRoot, t2.style.pathFromUri$1(A._parseUri(t1)), _null));
  111083. return A.fileExists0(path) ? path : _null;
  111084. }
  111085. string = t1 ? exports : _null;
  111086. if (t1) {
  111087. t1 = $.$get$context();
  111088. string.toString;
  111089. return A.join(packageRoot, t1.style.pathFromUri$1(A._parseUri(string)), _null);
  111090. }
  111091. t1 = type$.Map_String_dynamic._is(exports);
  111092. map = t1 ? exports : _null;
  111093. if (t1) {
  111094. for (t1 = A.MapExtensions_get_pairs(map, type$.String, type$.dynamic), t1 = t1.get$iterator(t1); t1.moveNext$0();) {
  111095. t2 = t1.get$current(t1);
  111096. key = t2._0;
  111097. value = t2._1;
  111098. if (!B.Set_TnQrk.contains$1(0, key))
  111099. continue;
  111100. if (value == null)
  111101. continue;
  111102. _1_0 = this._node_package$_packageTargetResolve$4(subpath, value, packageRoot, patternMatch);
  111103. if (_1_0 != null)
  111104. return _1_0;
  111105. }
  111106. return _null;
  111107. }
  111108. if (type$.List_nullable_Object._is(exports) && J.get$length$asx(exports) <= 0)
  111109. return _null;
  111110. t1 = type$.List_dynamic._is(exports);
  111111. array = t1 ? exports : _null;
  111112. if (t1) {
  111113. for (t1 = J.get$iterator$ax(array); t1.moveNext$0();) {
  111114. value = t1.get$current(t1);
  111115. if (value == null)
  111116. continue;
  111117. _2_0 = this._node_package$_packageTargetResolve$4(subpath, value, packageRoot, patternMatch);
  111118. if (_2_0 != null)
  111119. return _2_0;
  111120. }
  111121. return _null;
  111122. }
  111123. throw A.wrapException("Invalid 'exports' value " + A.S(exports) + " in " + A.join(packageRoot, "package.json", _null) + ".");
  111124. },
  111125. _node_package$_packageTargetResolve$3(subpath, exports, packageRoot) {
  111126. return this._node_package$_packageTargetResolve$4(subpath, exports, packageRoot, null);
  111127. },
  111128. _node_package$_getMainExport$1(exports) {
  111129. var t1, t2, t3, map, _0_4, t4, $export;
  111130. $label0$0: {
  111131. t1 = null;
  111132. if (typeof exports == "string") {
  111133. t1 = exports;
  111134. break $label0$0;
  111135. }
  111136. if (type$.List_String._is(exports)) {
  111137. t1 = exports;
  111138. break $label0$0;
  111139. }
  111140. t2 = type$.Map_String_dynamic._is(exports);
  111141. if (t2) {
  111142. t3 = !J.any$1$ax(exports.get$keys(exports), new A.NodePackageImporter__getMainExport_closure0());
  111143. map = exports;
  111144. } else {
  111145. map = t1;
  111146. t3 = false;
  111147. }
  111148. if (t3) {
  111149. t1 = map;
  111150. break $label0$0;
  111151. }
  111152. t3 = false;
  111153. if (t2) {
  111154. _0_4 = exports.$index(0, ".");
  111155. if (_0_4 == null)
  111156. t4 = exports.containsKey$1(".");
  111157. else
  111158. t4 = true;
  111159. if (t4)
  111160. t3 = _0_4 != null;
  111161. } else
  111162. _0_4 = null;
  111163. if (t3) {
  111164. $export = t2 ? _0_4 : J.$index$asx(exports, ".");
  111165. t1 = $export;
  111166. break $label0$0;
  111167. }
  111168. break $label0$0;
  111169. }
  111170. return t1;
  111171. },
  111172. _node_package$_exportsToCheck$2$addIndex(subpath, addIndex) {
  111173. var basename, dirname, t3, t4, _i, path,
  111174. t1 = type$.JSArray_String,
  111175. paths = A._setArrayType([], t1),
  111176. t2 = subpath == null;
  111177. if (t2 && addIndex)
  111178. subpath = "index";
  111179. else if (!t2 && addIndex)
  111180. subpath = A.join(subpath, "index", null);
  111181. if (subpath == null)
  111182. return A._setArrayType([null], type$.JSArray_nullable_String);
  111183. if (B.Set_00.contains$1(0, A.ParsedPath_ParsedPath$parse(subpath, $.$get$url().style)._splitExtension$1(1)[1]))
  111184. paths.push(subpath);
  111185. else
  111186. B.JSArray_methods.addAll$1(paths, A._setArrayType([subpath, subpath + ".scss", subpath + ".sass", subpath + ".css"], t1));
  111187. t1 = $.$get$context();
  111188. t2 = t1.style;
  111189. basename = A.ParsedPath_ParsedPath$parse(subpath, t2).get$basename();
  111190. dirname = t1.dirname$1(subpath);
  111191. if (B.JSString_methods.startsWith$1(basename, "_"))
  111192. return paths;
  111193. t1 = A.List_List$of(paths, true, type$.nullable_String);
  111194. for (t3 = paths.length, t4 = dirname === ".", _i = 0; _i < paths.length; paths.length === t3 || (0, A.throwConcurrentModificationError)(paths), ++_i) {
  111195. path = paths[_i];
  111196. if (t4)
  111197. t1.push("_" + A.ParsedPath_ParsedPath$parse(path, t2).get$basename());
  111198. else
  111199. t1.push(A.join(dirname, "_" + A.ParsedPath_ParsedPath$parse(path, t2).get$basename(), null));
  111200. }
  111201. return t1;
  111202. },
  111203. _node_package$_exportsToCheck$1(subpath) {
  111204. return this._node_package$_exportsToCheck$2$addIndex(subpath, false);
  111205. }
  111206. };
  111207. A.NodePackageImporter__nodePackageExportsResolve_closure3.prototype = {
  111208. call$1(key) {
  111209. return B.JSString_methods.startsWith$1(key, ".");
  111210. },
  111211. $signature: 5
  111212. };
  111213. A.NodePackageImporter__nodePackageExportsResolve_closure4.prototype = {
  111214. call$1(key) {
  111215. return !B.JSString_methods.startsWith$1(key, ".");
  111216. },
  111217. $signature: 5
  111218. };
  111219. A.NodePackageImporter__nodePackageExportsResolve_closure5.prototype = {
  111220. call$1(key) {
  111221. return '"' + key + '"';
  111222. },
  111223. $signature: 6
  111224. };
  111225. A.NodePackageImporter__nodePackageExportsResolve_closure6.prototype = {
  111226. call$1(variant) {
  111227. var t1, matchKey, t2, t3, t4, t5, t6, _i, expansionKey, _0_0, t7, patternBase, patternTrailer, t8, target, _this = this, _null = null;
  111228. if (variant == null) {
  111229. t1 = _this.$this;
  111230. return A.NullableExtension_andThen(t1._node_package$_getMainExport$1(_this.exports), new A.NodePackageImporter__nodePackageExportsResolve__closure1(t1, variant, _this.packageRoot));
  111231. } else {
  111232. t1 = _this.exports;
  111233. if (!type$.Map_String_dynamic._is(t1) || J.every$1$ax(t1.get$keys(t1), new A.NodePackageImporter__nodePackageExportsResolve__closure2()))
  111234. return _null;
  111235. }
  111236. matchKey = "./" + $.$get$context().toUri$1(variant).toString$0(0);
  111237. if (t1.containsKey$1(matchKey) && J.$index$asx(t1, matchKey) != null && !B.JSString_methods.contains$1(matchKey, "*")) {
  111238. t1 = J.$index$asx(t1, matchKey);
  111239. if (t1 == null)
  111240. t1 = type$.Object._as(t1);
  111241. return _this.$this._node_package$_packageTargetResolve$3(matchKey, t1, _this.packageRoot);
  111242. }
  111243. t2 = A._setArrayType([], type$.JSArray_String);
  111244. for (t3 = J.getInterceptor$z(t1), t4 = J.get$iterator$ax(t3.get$keys(t1)); t4.moveNext$0();) {
  111245. t5 = t4.get$current(t4);
  111246. if (B.JSString_methods.allMatches$1("*", t5).get$length(0) === 1)
  111247. t2.push(t5);
  111248. }
  111249. t4 = _this.$this;
  111250. B.JSArray_methods.sort$1(t2, t4.get$_node_package$_compareExpansionKeys());
  111251. for (t5 = t2.length, t6 = matchKey.length, _i = 0; _i < t2.length; t2.length === t5 || (0, A.throwConcurrentModificationError)(t2), ++_i) {
  111252. expansionKey = t2[_i];
  111253. _0_0 = expansionKey.split("*");
  111254. t7 = _0_0.length === 2;
  111255. if (t7) {
  111256. patternBase = _0_0[0];
  111257. patternTrailer = _0_0[1];
  111258. patternTrailer = patternTrailer;
  111259. } else {
  111260. patternTrailer = _null;
  111261. patternBase = patternTrailer;
  111262. }
  111263. if (!t7)
  111264. throw A.wrapException(A.StateError$("Pattern matching error"));
  111265. if (!B.JSString_methods.startsWith$1(matchKey, patternBase))
  111266. continue;
  111267. if (matchKey === patternBase)
  111268. continue;
  111269. t7 = patternTrailer.length;
  111270. if (t7 !== 0)
  111271. t8 = B.JSString_methods.endsWith$1(matchKey, patternTrailer) && t6 >= expansionKey.length;
  111272. else
  111273. t8 = true;
  111274. if (t8) {
  111275. target = t3.$index(t1, expansionKey);
  111276. if (target == null)
  111277. continue;
  111278. return t4._node_package$_packageTargetResolve$4(variant, target, _this.packageRoot, B.JSString_methods.substring$2(matchKey, patternBase.length, t6 - t7));
  111279. }
  111280. }
  111281. return _null;
  111282. },
  111283. $signature: 143
  111284. };
  111285. A.NodePackageImporter__nodePackageExportsResolve__closure1.prototype = {
  111286. call$1(mainExport) {
  111287. return this.$this._node_package$_packageTargetResolve$3(this.variant, mainExport, this.packageRoot);
  111288. },
  111289. $signature: 144
  111290. };
  111291. A.NodePackageImporter__nodePackageExportsResolve__closure2.prototype = {
  111292. call$1(key) {
  111293. return !B.JSString_methods.startsWith$1(key, ".");
  111294. },
  111295. $signature: 5
  111296. };
  111297. A.NodePackageImporter__getMainExport_closure0.prototype = {
  111298. call$1(key) {
  111299. return B.JSString_methods.startsWith$1(key, ".");
  111300. },
  111301. $signature: 5
  111302. };
  111303. A.NullExpression0.prototype = {
  111304. accept$1$1(visitor) {
  111305. return visitor.visitNullExpression$1(0, this);
  111306. },
  111307. accept$1(visitor) {
  111308. return this.accept$1$1(visitor, type$.dynamic);
  111309. },
  111310. toString$0(_) {
  111311. return "null";
  111312. },
  111313. get$span(receiver) {
  111314. return this.span;
  111315. }
  111316. };
  111317. A.legacyNullClass_closure.prototype = {
  111318. call$0() {
  111319. var t1 = type$.JSClass,
  111320. jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.types.Null", new A.legacyNullClass__closure()));
  111321. jsClass.NULL = B.C__SassNull0;
  111322. A.JSClassExtension_injectSuperclass(t1._as(B.C__SassNull0.constructor), jsClass);
  111323. return jsClass;
  111324. },
  111325. $signature: 16
  111326. };
  111327. A.legacyNullClass__closure.prototype = {
  111328. call$2(_, __) {
  111329. throw A.wrapException("new sass.types.Null() isn't allowed. Use sass.types.Null.NULL instead.");
  111330. },
  111331. call$1(_) {
  111332. return this.call$2(_, null);
  111333. },
  111334. "call*": "call$2",
  111335. $requiredArgCount: 1,
  111336. $defaultValues() {
  111337. return [null];
  111338. },
  111339. $signature: 198
  111340. };
  111341. A._SassNull0.prototype = {
  111342. get$isTruthy() {
  111343. return false;
  111344. },
  111345. get$isBlank() {
  111346. return true;
  111347. },
  111348. get$realNull() {
  111349. return null;
  111350. },
  111351. accept$1$1(visitor) {
  111352. if (visitor._serialize0$_inspect)
  111353. visitor._serialize0$_buffer.write$1(0, "null");
  111354. return null;
  111355. },
  111356. accept$1(visitor) {
  111357. return this.accept$1$1(visitor, type$.dynamic);
  111358. },
  111359. unaryNot$0() {
  111360. return B.SassBoolean_true0;
  111361. }
  111362. };
  111363. A.NumberExpression0.prototype = {
  111364. accept$1$1(visitor) {
  111365. return visitor.visitNumberExpression$1(0, this);
  111366. },
  111367. accept$1(visitor) {
  111368. return this.accept$1$1(visitor, type$.dynamic);
  111369. },
  111370. toString$0(_) {
  111371. return A.serializeValue0(A.SassNumber_SassNumber0(this.value, this.unit), true, true);
  111372. },
  111373. get$span(receiver) {
  111374. return this.span;
  111375. }
  111376. };
  111377. A.numberClass_closure.prototype = {
  111378. call$0() {
  111379. var t1 = type$.JSClass,
  111380. jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.SassNumber", new A.numberClass__closure())),
  111381. t2 = type$.String,
  111382. t3 = type$.Function;
  111383. A.LinkedHashMap_LinkedHashMap$_literal(["value", new A.numberClass__closure0(), "isInt", new A.numberClass__closure1(), "asInt", new A.numberClass__closure2(), "numeratorUnits", new A.numberClass__closure3(), "denominatorUnits", new A.numberClass__closure4(), "hasUnits", new A.numberClass__closure5()], t2, t3).forEach$1(0, A.JSClassExtension_get_defineGetter(jsClass));
  111384. A.LinkedHashMap_LinkedHashMap$_literal(["assertInt", new A.numberClass__closure6(), "assertInRange", new A.numberClass__closure7(), "assertNoUnits", new A.numberClass__closure8(), "assertUnit", new A.numberClass__closure9(), "hasUnit", new A.numberClass__closure10(), "compatibleWithUnit", new A.numberClass__closure11(), "convert", new A.numberClass__closure12(), "convertToMatch", new A.numberClass__closure13(), "convertValue", new A.numberClass__closure14(), "convertValueToMatch", new A.numberClass__closure15(), "coerce", new A.numberClass__closure16(), "coerceToMatch", new A.numberClass__closure17(), "coerceValue", new A.numberClass__closure18(), "coerceValueToMatch", new A.numberClass__closure19()], t2, t3).forEach$1(0, A.JSClassExtension_get_defineMethod(jsClass));
  111385. A.JSClassExtension_injectSuperclass(t1._as(self.Object.getPrototypeOf(J.get$$prototype$x(t1._as(A.SassNumber_SassNumber0(0, null).constructor))).constructor), jsClass);
  111386. return jsClass;
  111387. },
  111388. $signature: 16
  111389. };
  111390. A.numberClass__closure.prototype = {
  111391. call$3($self, value, unitOrOptions) {
  111392. var t1, t2, _null = null;
  111393. if (typeof unitOrOptions == "string")
  111394. return A.SassNumber_SassNumber0(value, unitOrOptions);
  111395. type$.nullable__ConstructorOptions_2._as(unitOrOptions);
  111396. t1 = unitOrOptions == null;
  111397. if (t1)
  111398. t2 = _null;
  111399. else {
  111400. t2 = A.NullableExtension_andThen0(J.get$numeratorUnits$x(unitOrOptions), A.immutable__jsToDartList$closure());
  111401. t2 = t2 == null ? _null : J.cast$1$0$ax(t2, type$.String);
  111402. }
  111403. if (t1)
  111404. t1 = _null;
  111405. else {
  111406. t1 = A.NullableExtension_andThen0(J.get$denominatorUnits$x(unitOrOptions), A.immutable__jsToDartList$closure());
  111407. t1 = t1 == null ? _null : J.cast$1$0$ax(t1, type$.String);
  111408. }
  111409. return A.SassNumber_SassNumber$withUnits0(value, t1, t2);
  111410. },
  111411. call$2($self, value) {
  111412. return this.call$3($self, value, null);
  111413. },
  111414. "call*": "call$3",
  111415. $requiredArgCount: 2,
  111416. $defaultValues() {
  111417. return [null];
  111418. },
  111419. $signature: 533
  111420. };
  111421. A.numberClass__closure0.prototype = {
  111422. call$1($self) {
  111423. return $self._number1$_value;
  111424. },
  111425. $signature: 95
  111426. };
  111427. A.numberClass__closure1.prototype = {
  111428. call$1($self) {
  111429. return A.fuzzyIsInt0($self._number1$_value);
  111430. },
  111431. $signature: 244
  111432. };
  111433. A.numberClass__closure2.prototype = {
  111434. call$1($self) {
  111435. return A.fuzzyAsInt0($self._number1$_value);
  111436. },
  111437. $signature: 535
  111438. };
  111439. A.numberClass__closure3.prototype = {
  111440. call$1($self) {
  111441. return new self.immutable.List($self.get$numeratorUnits($self));
  111442. },
  111443. $signature: 245
  111444. };
  111445. A.numberClass__closure4.prototype = {
  111446. call$1($self) {
  111447. return new self.immutable.List($self.get$denominatorUnits($self));
  111448. },
  111449. $signature: 245
  111450. };
  111451. A.numberClass__closure5.prototype = {
  111452. call$1($self) {
  111453. return $self.get$hasUnits();
  111454. },
  111455. $signature: 244
  111456. };
  111457. A.numberClass__closure6.prototype = {
  111458. call$2($self, $name) {
  111459. return $self.assertInt$1($name);
  111460. },
  111461. call$1($self) {
  111462. return this.call$2($self, null);
  111463. },
  111464. "call*": "call$2",
  111465. $requiredArgCount: 1,
  111466. $defaultValues() {
  111467. return [null];
  111468. },
  111469. $signature: 537
  111470. };
  111471. A.numberClass__closure7.prototype = {
  111472. call$4($self, min, max, $name) {
  111473. return $self.valueInRange$3(min, max, $name);
  111474. },
  111475. call$3($self, min, max) {
  111476. return this.call$4($self, min, max, null);
  111477. },
  111478. "call*": "call$4",
  111479. $requiredArgCount: 3,
  111480. $defaultValues() {
  111481. return [null];
  111482. },
  111483. $signature: 538
  111484. };
  111485. A.numberClass__closure8.prototype = {
  111486. call$2($self, $name) {
  111487. $self.assertNoUnits$1($name);
  111488. return $self;
  111489. },
  111490. call$1($self) {
  111491. return this.call$2($self, null);
  111492. },
  111493. "call*": "call$2",
  111494. $requiredArgCount: 1,
  111495. $defaultValues() {
  111496. return [null];
  111497. },
  111498. $signature: 539
  111499. };
  111500. A.numberClass__closure9.prototype = {
  111501. call$3($self, unit, $name) {
  111502. $self.assertUnit$2(unit, $name);
  111503. return $self;
  111504. },
  111505. call$2($self, unit) {
  111506. return this.call$3($self, unit, null);
  111507. },
  111508. "call*": "call$3",
  111509. $requiredArgCount: 2,
  111510. $defaultValues() {
  111511. return [null];
  111512. },
  111513. $signature: 540
  111514. };
  111515. A.numberClass__closure10.prototype = {
  111516. call$2($self, unit) {
  111517. return $self.hasUnit$1(unit);
  111518. },
  111519. $signature: 246
  111520. };
  111521. A.numberClass__closure11.prototype = {
  111522. call$2($self, unit) {
  111523. return $self.get$hasUnits() && $self.compatibleWithUnit$1(unit);
  111524. },
  111525. $signature: 246
  111526. };
  111527. A.numberClass__closure12.prototype = {
  111528. call$4($self, numeratorUnits, denominatorUnits, $name) {
  111529. var t1 = self.immutable.isOrderedMap(numeratorUnits) ? J.toArray$0$x(type$.ImmutableList._as(numeratorUnits)) : type$.List_dynamic._as(numeratorUnits),
  111530. t2 = type$.String;
  111531. t1 = J.cast$1$0$ax(t1, t2);
  111532. t2 = J.cast$1$0$ax(self.immutable.isOrderedMap(denominatorUnits) ? J.toArray$0$x(type$.ImmutableList._as(denominatorUnits)) : type$.List_dynamic._as(denominatorUnits), t2);
  111533. return A.SassNumber_SassNumber$withUnits0($self._number1$_coerceOrConvertValue$4$coerceUnitless$name(t1, t2, false, $name), t2, t1);
  111534. },
  111535. call$3($self, numeratorUnits, denominatorUnits) {
  111536. return this.call$4($self, numeratorUnits, denominatorUnits, null);
  111537. },
  111538. "call*": "call$4",
  111539. $requiredArgCount: 3,
  111540. $defaultValues() {
  111541. return [null];
  111542. },
  111543. $signature: 247
  111544. };
  111545. A.numberClass__closure13.prototype = {
  111546. call$4($self, other, $name, otherName) {
  111547. return $self.convertToMatch$3(other, $name, otherName);
  111548. },
  111549. call$2($self, other) {
  111550. return this.call$4($self, other, null, null);
  111551. },
  111552. call$3($self, other, $name) {
  111553. return this.call$4($self, other, $name, null);
  111554. },
  111555. "call*": "call$4",
  111556. $requiredArgCount: 2,
  111557. $defaultValues() {
  111558. return [null, null];
  111559. },
  111560. $signature: 248
  111561. };
  111562. A.numberClass__closure14.prototype = {
  111563. call$4($self, numeratorUnits, denominatorUnits, $name) {
  111564. var t1 = self.immutable.isOrderedMap(numeratorUnits) ? J.toArray$0$x(type$.ImmutableList._as(numeratorUnits)) : type$.List_dynamic._as(numeratorUnits),
  111565. t2 = type$.String;
  111566. t1 = J.cast$1$0$ax(t1, t2);
  111567. return $self._number1$_coerceOrConvertValue$4$coerceUnitless$name(t1, J.cast$1$0$ax(self.immutable.isOrderedMap(denominatorUnits) ? J.toArray$0$x(type$.ImmutableList._as(denominatorUnits)) : type$.List_dynamic._as(denominatorUnits), t2), false, $name);
  111568. },
  111569. call$3($self, numeratorUnits, denominatorUnits) {
  111570. return this.call$4($self, numeratorUnits, denominatorUnits, null);
  111571. },
  111572. "call*": "call$4",
  111573. $requiredArgCount: 3,
  111574. $defaultValues() {
  111575. return [null];
  111576. },
  111577. $signature: 249
  111578. };
  111579. A.numberClass__closure15.prototype = {
  111580. call$4($self, other, $name, otherName) {
  111581. return $self.convertValueToMatch$3(other, $name, otherName);
  111582. },
  111583. call$2($self, other) {
  111584. return this.call$4($self, other, null, null);
  111585. },
  111586. call$3($self, other, $name) {
  111587. return this.call$4($self, other, $name, null);
  111588. },
  111589. "call*": "call$4",
  111590. $requiredArgCount: 2,
  111591. $defaultValues() {
  111592. return [null, null];
  111593. },
  111594. $signature: 250
  111595. };
  111596. A.numberClass__closure16.prototype = {
  111597. call$4($self, numeratorUnits, denominatorUnits, $name) {
  111598. var t1 = self.immutable.isOrderedMap(numeratorUnits) ? J.toArray$0$x(type$.ImmutableList._as(numeratorUnits)) : type$.List_dynamic._as(numeratorUnits),
  111599. t2 = type$.String;
  111600. t1 = J.cast$1$0$ax(t1, t2);
  111601. return $self.coerce$3(t1, J.cast$1$0$ax(self.immutable.isOrderedMap(denominatorUnits) ? J.toArray$0$x(type$.ImmutableList._as(denominatorUnits)) : type$.List_dynamic._as(denominatorUnits), t2), $name);
  111602. },
  111603. call$3($self, numeratorUnits, denominatorUnits) {
  111604. return this.call$4($self, numeratorUnits, denominatorUnits, null);
  111605. },
  111606. "call*": "call$4",
  111607. $requiredArgCount: 3,
  111608. $defaultValues() {
  111609. return [null];
  111610. },
  111611. $signature: 247
  111612. };
  111613. A.numberClass__closure17.prototype = {
  111614. call$4($self, other, $name, otherName) {
  111615. return $self.coerceToMatch$3(other, $name, otherName);
  111616. },
  111617. call$2($self, other) {
  111618. return this.call$4($self, other, null, null);
  111619. },
  111620. call$3($self, other, $name) {
  111621. return this.call$4($self, other, $name, null);
  111622. },
  111623. "call*": "call$4",
  111624. $requiredArgCount: 2,
  111625. $defaultValues() {
  111626. return [null, null];
  111627. },
  111628. $signature: 248
  111629. };
  111630. A.numberClass__closure18.prototype = {
  111631. call$4($self, numeratorUnits, denominatorUnits, $name) {
  111632. var t1 = self.immutable.isOrderedMap(numeratorUnits) ? J.toArray$0$x(type$.ImmutableList._as(numeratorUnits)) : type$.List_dynamic._as(numeratorUnits),
  111633. t2 = type$.String;
  111634. t1 = J.cast$1$0$ax(t1, t2);
  111635. return $self.coerceValue$3(t1, J.cast$1$0$ax(self.immutable.isOrderedMap(denominatorUnits) ? J.toArray$0$x(type$.ImmutableList._as(denominatorUnits)) : type$.List_dynamic._as(denominatorUnits), t2), $name);
  111636. },
  111637. call$3($self, numeratorUnits, denominatorUnits) {
  111638. return this.call$4($self, numeratorUnits, denominatorUnits, null);
  111639. },
  111640. "call*": "call$4",
  111641. $requiredArgCount: 3,
  111642. $defaultValues() {
  111643. return [null];
  111644. },
  111645. $signature: 249
  111646. };
  111647. A.numberClass__closure19.prototype = {
  111648. call$4($self, other, $name, otherName) {
  111649. return $self.coerceValueToMatch$3(other, $name, otherName);
  111650. },
  111651. call$2($self, other) {
  111652. return this.call$4($self, other, null, null);
  111653. },
  111654. call$3($self, other, $name) {
  111655. return this.call$4($self, other, $name, null);
  111656. },
  111657. "call*": "call$4",
  111658. $requiredArgCount: 2,
  111659. $defaultValues() {
  111660. return [null, null];
  111661. },
  111662. $signature: 250
  111663. };
  111664. A._ConstructorOptions0.prototype = {};
  111665. A._NodeSassNumber.prototype = {};
  111666. A.legacyNumberClass_closure.prototype = {
  111667. call$4(thisArg, value, unit, dartValue) {
  111668. var t1;
  111669. if (dartValue == null) {
  111670. value.toString;
  111671. t1 = A._parseNumber(value, unit);
  111672. } else
  111673. t1 = dartValue;
  111674. J.set$dartValue$x(thisArg, t1);
  111675. },
  111676. call$2(thisArg, value) {
  111677. return this.call$4(thisArg, value, null, null);
  111678. },
  111679. call$3(thisArg, value, unit) {
  111680. return this.call$4(thisArg, value, unit, null);
  111681. },
  111682. "call*": "call$4",
  111683. $requiredArgCount: 2,
  111684. $defaultValues() {
  111685. return [null, null];
  111686. },
  111687. $signature: 546
  111688. };
  111689. A.legacyNumberClass_closure0.prototype = {
  111690. call$1(thisArg) {
  111691. return J.get$dartValue$x(thisArg)._number1$_value;
  111692. },
  111693. $signature: 547
  111694. };
  111695. A.legacyNumberClass_closure1.prototype = {
  111696. call$2(thisArg, value) {
  111697. var t1 = J.getInterceptor$x(thisArg),
  111698. t2 = J.get$numeratorUnits$x(t1.get$dartValue(thisArg));
  111699. t1.set$dartValue(thisArg, A.SassNumber_SassNumber$withUnits0(value, J.get$denominatorUnits$x(t1.get$dartValue(thisArg)), t2));
  111700. },
  111701. $signature: 548
  111702. };
  111703. A.legacyNumberClass_closure2.prototype = {
  111704. call$1(thisArg) {
  111705. var t1 = J.getInterceptor$x(thisArg),
  111706. t2 = B.JSArray_methods.join$1(J.get$numeratorUnits$x(t1.get$dartValue(thisArg)), "*"),
  111707. t3 = J.get$denominatorUnits$x(t1.get$dartValue(thisArg)).length === 0 ? "" : "/";
  111708. return t2 + t3 + B.JSArray_methods.join$1(J.get$denominatorUnits$x(t1.get$dartValue(thisArg)), "*");
  111709. },
  111710. $signature: 549
  111711. };
  111712. A.legacyNumberClass_closure3.prototype = {
  111713. call$2(thisArg, unit) {
  111714. var t1 = J.getInterceptor$x(thisArg);
  111715. t1.set$dartValue(thisArg, A._parseNumber(t1.get$dartValue(thisArg)._number1$_value, unit));
  111716. },
  111717. $signature: 550
  111718. };
  111719. A._parseNumber_closure.prototype = {
  111720. call$1(unit) {
  111721. return unit.length === 0;
  111722. },
  111723. $signature: 5
  111724. };
  111725. A._parseNumber_closure0.prototype = {
  111726. call$1(unit) {
  111727. return unit.length === 0;
  111728. },
  111729. $signature: 5
  111730. };
  111731. A.SassNumber0.prototype = {
  111732. get$unitString() {
  111733. var _this = this;
  111734. return _this.get$hasUnits() ? _this._number1$_unitString$2(_this.get$numeratorUnits(_this), _this.get$denominatorUnits(_this)) : "";
  111735. },
  111736. accept$1$1(visitor) {
  111737. return visitor.visitNumber$1(this);
  111738. },
  111739. accept$1(visitor) {
  111740. return this.accept$1$1(visitor, type$.dynamic);
  111741. },
  111742. withoutSlash$0() {
  111743. var _this = this;
  111744. return _this.asSlash == null ? _this : _this.withValue$1(_this._number1$_value);
  111745. },
  111746. assertNumber$1($name) {
  111747. return this;
  111748. },
  111749. assertNumber$0() {
  111750. return this.assertNumber$1(null);
  111751. },
  111752. assertInt$1($name) {
  111753. var _0_0 = A.fuzzyAsInt0(this._number1$_value);
  111754. if (_0_0 != null)
  111755. return _0_0;
  111756. throw A.wrapException(A.SassScriptException$0(this.toString$0(0) + " is not an int.", $name));
  111757. },
  111758. assertInt$0() {
  111759. return this.assertInt$1(null);
  111760. },
  111761. valueInRange$3(min, max, $name) {
  111762. var _this = this,
  111763. _0_0 = A.fuzzyCheckRange0(_this._number1$_value, min, max);
  111764. if (_0_0 != null)
  111765. return _0_0;
  111766. throw A.wrapException(A.SassScriptException$0("Expected " + _this.toString$0(0) + " to be within " + A.S(min) + _this.get$unitString() + " and " + A.S(max) + _this.get$unitString() + ".", $name));
  111767. },
  111768. valueInRangeWithUnit$4(min, max, $name, unit) {
  111769. var _0_0 = A.fuzzyCheckRange0(this._number1$_value, min, max);
  111770. if (_0_0 != null)
  111771. return _0_0;
  111772. throw A.wrapException(A.SassScriptException$0("Expected " + this.toString$0(0) + " to be within " + min + unit + " and " + max + unit + ".", $name));
  111773. },
  111774. hasCompatibleUnits$1(other) {
  111775. var _this = this;
  111776. if (_this.get$numeratorUnits(_this).length !== other.get$numeratorUnits(other).length)
  111777. return false;
  111778. if (_this.get$denominatorUnits(_this).length !== other.get$denominatorUnits(other).length)
  111779. return false;
  111780. return _this.isComparableTo$1(other);
  111781. },
  111782. assertUnit$2(unit, $name) {
  111783. if (this.hasUnit$1(unit))
  111784. return;
  111785. throw A.wrapException(A.SassScriptException$0("Expected " + this.toString$0(0) + ' to have unit "' + unit + '".', $name));
  111786. },
  111787. assertNoUnits$1($name) {
  111788. if (!this.get$hasUnits())
  111789. return;
  111790. throw A.wrapException(A.SassScriptException$0("Expected " + this.toString$0(0) + " to have no units.", $name));
  111791. },
  111792. assertNoUnits$0() {
  111793. return this.assertNoUnits$1(null);
  111794. },
  111795. convertToMatch$3(other, $name, otherName) {
  111796. var t1 = this.convertValueToMatch$3(other, $name, otherName),
  111797. t2 = other.get$numeratorUnits(other);
  111798. return A.SassNumber_SassNumber$withUnits0(t1, other.get$denominatorUnits(other), t2);
  111799. },
  111800. convertValueToMatch$3(other, $name, otherName) {
  111801. return this._number1$_coerceOrConvertValue$6$coerceUnitless$name$other$otherName(other.get$numeratorUnits(other), other.get$denominatorUnits(other), false, $name, other, otherName);
  111802. },
  111803. convertValueToMatch$1(other) {
  111804. return this.convertValueToMatch$3(other, null, null);
  111805. },
  111806. coerce$3(newNumerators, newDenominators, $name) {
  111807. return A.SassNumber_SassNumber$withUnits0(this.coerceValue$3(newNumerators, newDenominators, $name), newDenominators, newNumerators);
  111808. },
  111809. coerce$2(newNumerators, newDenominators) {
  111810. return this.coerce$3(newNumerators, newDenominators, null);
  111811. },
  111812. coerceValue$3(newNumerators, newDenominators, $name) {
  111813. return this._number1$_coerceOrConvertValue$4$coerceUnitless$name(newNumerators, newDenominators, true, $name);
  111814. },
  111815. coerceValueToUnit$2(unit, $name) {
  111816. var t1 = type$.JSArray_String;
  111817. return this.coerceValue$3(A._setArrayType([unit], t1), A._setArrayType([], t1), $name);
  111818. },
  111819. coerceValueToUnit$1(unit) {
  111820. return this.coerceValueToUnit$2(unit, null);
  111821. },
  111822. coerceToMatch$3(other, $name, otherName) {
  111823. var t1 = this.coerceValueToMatch$3(other, $name, otherName),
  111824. t2 = other.get$numeratorUnits(other);
  111825. return A.SassNumber_SassNumber$withUnits0(t1, other.get$denominatorUnits(other), t2);
  111826. },
  111827. coerceValueToMatch$3(other, $name, otherName) {
  111828. return this._number1$_coerceOrConvertValue$6$coerceUnitless$name$other$otherName(other.get$numeratorUnits(other), other.get$denominatorUnits(other), true, $name, other, otherName);
  111829. },
  111830. coerceValueToMatch$1(other) {
  111831. return this.coerceValueToMatch$3(other, null, null);
  111832. },
  111833. _number1$_coerceOrConvertValue$6$coerceUnitless$name$other$otherName(newNumerators, newDenominators, coerceUnitless, $name, other, otherName) {
  111834. var t1, otherHasUnits, t2, compatibilityException, oldNumerators, oldDenominators, _this = this, _box_0 = {};
  111835. if (B.C_ListEquality.equals$2(0, _this.get$numeratorUnits(_this), newNumerators) && B.C_ListEquality.equals$2(0, _this.get$denominatorUnits(_this), newDenominators))
  111836. return _this._number1$_value;
  111837. t1 = J.getInterceptor$asx(newNumerators);
  111838. otherHasUnits = t1.get$isNotEmpty(newNumerators) || J.get$isNotEmpty$asx(newDenominators);
  111839. if (coerceUnitless)
  111840. t2 = !_this.get$hasUnits() || !otherHasUnits;
  111841. else
  111842. t2 = false;
  111843. if (t2)
  111844. return _this._number1$_value;
  111845. compatibilityException = new A.SassNumber__coerceOrConvertValue_compatibilityException0(_this, other, otherName, otherHasUnits, $name, newNumerators, newDenominators);
  111846. _box_0.value = _this._number1$_value;
  111847. t2 = _this.get$numeratorUnits(_this);
  111848. oldNumerators = A._setArrayType(t2.slice(0), A._arrayInstanceType(t2));
  111849. for (t1 = t1.get$iterator(newNumerators); t1.moveNext$0();)
  111850. A.removeFirstWhere0(oldNumerators, new A.SassNumber__coerceOrConvertValue_closure3(_box_0, t1.get$current(t1)), new A.SassNumber__coerceOrConvertValue_closure4(compatibilityException));
  111851. t1 = _this.get$denominatorUnits(_this);
  111852. oldDenominators = A._setArrayType(t1.slice(0), A._arrayInstanceType(t1));
  111853. for (t1 = J.get$iterator$ax(newDenominators); t1.moveNext$0();)
  111854. A.removeFirstWhere0(oldDenominators, new A.SassNumber__coerceOrConvertValue_closure5(_box_0, t1.get$current(t1)), new A.SassNumber__coerceOrConvertValue_closure6(compatibilityException));
  111855. if (oldNumerators.length !== 0 || oldDenominators.length !== 0)
  111856. throw A.wrapException(compatibilityException.call$0());
  111857. return _box_0.value;
  111858. },
  111859. _number1$_coerceOrConvertValue$4$coerceUnitless$name(newNumerators, newDenominators, coerceUnitless, $name) {
  111860. return this._number1$_coerceOrConvertValue$6$coerceUnitless$name$other$otherName(newNumerators, newDenominators, coerceUnitless, $name, null, null);
  111861. },
  111862. isComparableTo$1(other) {
  111863. var exception;
  111864. if (!this.get$hasUnits() || !other.get$hasUnits())
  111865. return true;
  111866. try {
  111867. this.greaterThan$1(other);
  111868. return true;
  111869. } catch (exception) {
  111870. if (A.unwrapException(exception) instanceof A.SassScriptException0)
  111871. return false;
  111872. else
  111873. throw exception;
  111874. }
  111875. },
  111876. greaterThan$1(other) {
  111877. if (other instanceof A.SassNumber0)
  111878. return this._number1$_coerceUnits$2(other, A.number2__fuzzyGreaterThan$closure()) ? B.SassBoolean_true0 : B.SassBoolean_false0;
  111879. throw A.wrapException(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " > " + other.toString$0(0) + '".', null));
  111880. },
  111881. greaterThanOrEquals$1(other) {
  111882. if (other instanceof A.SassNumber0)
  111883. return this._number1$_coerceUnits$2(other, A.number2__fuzzyGreaterThanOrEquals$closure()) ? B.SassBoolean_true0 : B.SassBoolean_false0;
  111884. throw A.wrapException(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " >= " + other.toString$0(0) + '".', null));
  111885. },
  111886. lessThan$1(other) {
  111887. if (other instanceof A.SassNumber0)
  111888. return this._number1$_coerceUnits$2(other, A.number2__fuzzyLessThan$closure()) ? B.SassBoolean_true0 : B.SassBoolean_false0;
  111889. throw A.wrapException(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " < " + other.toString$0(0) + '".', null));
  111890. },
  111891. lessThanOrEquals$1(other) {
  111892. if (other instanceof A.SassNumber0)
  111893. return this._number1$_coerceUnits$2(other, A.number2__fuzzyLessThanOrEquals$closure()) ? B.SassBoolean_true0 : B.SassBoolean_false0;
  111894. throw A.wrapException(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " <= " + other.toString$0(0) + '".', null));
  111895. },
  111896. modulo$1(other) {
  111897. if (other instanceof A.SassNumber0)
  111898. return this.withValue$1(this._number1$_coerceUnits$2(other, A.number2__moduloLikeSass$closure()));
  111899. throw A.wrapException(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " % " + other.toString$0(0) + '".', null));
  111900. },
  111901. plus$1(other) {
  111902. var _this = this;
  111903. if (other instanceof A.SassNumber0)
  111904. return _this.withValue$1(_this._number1$_coerceUnits$2(other, new A.SassNumber_plus_closure0()));
  111905. if (!(other instanceof A.SassColor0))
  111906. return _this.super$Value$plus0(other);
  111907. throw A.wrapException(A.SassScriptException$0('Undefined operation "' + _this.toString$0(0) + " + " + other.toString$0(0) + '".', null));
  111908. },
  111909. minus$1(other) {
  111910. var _this = this;
  111911. if (other instanceof A.SassNumber0)
  111912. return _this.withValue$1(_this._number1$_coerceUnits$2(other, new A.SassNumber_minus_closure0()));
  111913. if (!(other instanceof A.SassColor0))
  111914. return _this.super$Value$minus0(other);
  111915. throw A.wrapException(A.SassScriptException$0('Undefined operation "' + _this.toString$0(0) + " - " + other.toString$0(0) + '".', null));
  111916. },
  111917. times$1(other) {
  111918. var _this = this;
  111919. if (other instanceof A.SassNumber0) {
  111920. if (!other.get$hasUnits())
  111921. return _this.withValue$1(_this._number1$_value * other._number1$_value);
  111922. return _this.multiplyUnits$3(_this._number1$_value * other._number1$_value, other.get$numeratorUnits(other), other.get$denominatorUnits(other));
  111923. }
  111924. throw A.wrapException(A.SassScriptException$0('Undefined operation "' + _this.toString$0(0) + " * " + other.toString$0(0) + '".', null));
  111925. },
  111926. dividedBy$1(other) {
  111927. var _this = this;
  111928. if (other instanceof A.SassNumber0) {
  111929. if (!other.get$hasUnits())
  111930. return _this.withValue$1(_this._number1$_value / other._number1$_value);
  111931. return _this.multiplyUnits$3(_this._number1$_value / other._number1$_value, other.get$denominatorUnits(other), other.get$numeratorUnits(other));
  111932. }
  111933. return _this.super$Value$dividedBy0(other);
  111934. },
  111935. unaryPlus$0() {
  111936. return this;
  111937. },
  111938. _number1$_coerceUnits$1$2(other, operation) {
  111939. var t1, exception;
  111940. try {
  111941. t1 = operation.call$2(this._number1$_value, other.coerceValueToMatch$1(this));
  111942. return t1;
  111943. } catch (exception) {
  111944. if (A.unwrapException(exception) instanceof A.SassScriptException0) {
  111945. this.coerceValueToMatch$1(other);
  111946. throw exception;
  111947. } else
  111948. throw exception;
  111949. }
  111950. },
  111951. _number1$_coerceUnits$2(other, operation) {
  111952. return this._number1$_coerceUnits$1$2(other, operation, type$.dynamic);
  111953. },
  111954. multiplyUnits$3(value, otherNumerators, otherDenominators) {
  111955. var t1, _0_1, _0_6, _0_3, _0_9, _0_9_isSet, _0_7, _0_7_isSet, t2, _0_2, denominators_case_0, _0_11_isSet, _0_11, _0_13, _0_13_isSet, _0_10, numerators_case_0, t4, t3, t5, t6, t7, numerators_case_1, denominators_case_1, t0, newNumerators, mutableOtherDenominators, _i, numerator, mutableDenominatorUnits, _this = this, _null = null, _box_0 = {};
  111956. _box_0.value = value;
  111957. t1 = [_this.get$numeratorUnits(_this), _this.get$denominatorUnits(_this), otherNumerators, otherDenominators];
  111958. _0_1 = t1[0];
  111959. _0_6 = _null;
  111960. _0_3 = _null;
  111961. _0_9 = _null;
  111962. _0_9_isSet = false;
  111963. _0_7 = _null;
  111964. _0_7_isSet = false;
  111965. t2 = false;
  111966. _0_2 = t1[1];
  111967. _0_3 = t1[2];
  111968. _0_6 = _0_3.length <= 0;
  111969. _0_7_isSet = _0_6;
  111970. if (_0_7_isSet) {
  111971. _0_7 = t1[3];
  111972. _0_9 = _0_7.length <= 0;
  111973. t2 = _0_9;
  111974. }
  111975. _0_9_isSet = _0_7_isSet;
  111976. denominators_case_0 = _0_2;
  111977. _0_11_isSet = !t2;
  111978. _0_11 = _null;
  111979. _0_13 = _null;
  111980. if (_0_11_isSet) {
  111981. _0_11 = _0_1.length <= 0;
  111982. _0_13_isSet = _0_11;
  111983. _0_10 = _0_1;
  111984. if (_0_13_isSet) {
  111985. _0_13 = _0_2.length <= 0;
  111986. t2 = _0_13;
  111987. if (t2) {
  111988. if (_0_7_isSet)
  111989. denominators_case_0 = _0_7;
  111990. else {
  111991. _0_7 = t1[3];
  111992. denominators_case_0 = _0_7;
  111993. _0_7_isSet = true;
  111994. }
  111995. numerators_case_0 = _0_3;
  111996. } else
  111997. numerators_case_0 = _0_1;
  111998. } else {
  111999. numerators_case_0 = _0_1;
  112000. t2 = false;
  112001. }
  112002. _0_1 = _0_10;
  112003. } else {
  112004. numerators_case_0 = _0_1;
  112005. _0_13_isSet = false;
  112006. t2 = true;
  112007. }
  112008. if (t2) {
  112009. t4 = denominators_case_0;
  112010. t3 = numerators_case_0;
  112011. } else {
  112012. t4 = _null;
  112013. t3 = t4;
  112014. }
  112015. if (!t2) {
  112016. t2 = _null;
  112017. t5 = _null;
  112018. if (_0_11_isSet)
  112019. t6 = _0_11;
  112020. else {
  112021. _0_11 = _0_1.length <= 0;
  112022. t6 = _0_11;
  112023. }
  112024. t7 = false;
  112025. if (t6) {
  112026. if (_0_9_isSet)
  112027. t2 = _0_9;
  112028. else {
  112029. if (_0_7_isSet)
  112030. t2 = _0_7;
  112031. else {
  112032. _0_7 = t1[3];
  112033. t2 = _0_7;
  112034. _0_7_isSet = true;
  112035. }
  112036. _0_9 = t2.length <= 0;
  112037. t2 = _0_9;
  112038. }
  112039. numerators_case_1 = _0_3;
  112040. denominators_case_1 = _0_2;
  112041. } else {
  112042. numerators_case_1 = t2;
  112043. t2 = t7;
  112044. denominators_case_1 = t5;
  112045. }
  112046. if (!t2) {
  112047. t2 = false;
  112048. if (_0_13_isSet)
  112049. t5 = _0_13;
  112050. else {
  112051. _0_13 = _0_2.length <= 0;
  112052. t5 = _0_13;
  112053. }
  112054. if (t5) {
  112055. if (_0_6)
  112056. denominators_case_1 = _0_7_isSet ? _0_7 : t1[3];
  112057. t1 = _0_6;
  112058. } else
  112059. t1 = t2;
  112060. numerators_case_1 = _0_1;
  112061. } else
  112062. t1 = true;
  112063. if (t1) {
  112064. t1 = !_this._number1$_areAnyConvertible$2(numerators_case_1, denominators_case_1);
  112065. if (t1) {
  112066. t3 = denominators_case_1;
  112067. t2 = numerators_case_1;
  112068. } else {
  112069. t2 = t3;
  112070. t3 = t4;
  112071. }
  112072. t0 = t3;
  112073. t3 = t1;
  112074. t1 = t2;
  112075. t2 = t0;
  112076. } else {
  112077. t2 = t4;
  112078. t1 = t3;
  112079. t3 = false;
  112080. }
  112081. } else {
  112082. t2 = t4;
  112083. t1 = t3;
  112084. t3 = true;
  112085. }
  112086. if (t3)
  112087. return A.SassNumber_SassNumber$withUnits0(value, t2, t1);
  112088. newNumerators = A._setArrayType([], type$.JSArray_String);
  112089. mutableOtherDenominators = A._setArrayType(otherDenominators.slice(0), A._arrayInstanceType(otherDenominators));
  112090. for (t1 = _this.get$numeratorUnits(_this), t2 = t1.length, _i = 0; _i < t2; ++_i) {
  112091. numerator = t1[_i];
  112092. A.removeFirstWhere0(mutableOtherDenominators, new A.SassNumber_multiplyUnits_closure3(_box_0, numerator), new A.SassNumber_multiplyUnits_closure4(newNumerators, numerator));
  112093. }
  112094. t1 = _this.get$denominatorUnits(_this);
  112095. mutableDenominatorUnits = A._setArrayType(t1.slice(0), A._arrayInstanceType(t1));
  112096. for (t1 = otherNumerators.length, _i = 0; _i < t1; ++_i) {
  112097. numerator = otherNumerators[_i];
  112098. A.removeFirstWhere0(mutableDenominatorUnits, new A.SassNumber_multiplyUnits_closure5(_box_0, numerator), new A.SassNumber_multiplyUnits_closure6(newNumerators, numerator));
  112099. }
  112100. t1 = _box_0.value;
  112101. B.JSArray_methods.addAll$1(mutableDenominatorUnits, mutableOtherDenominators);
  112102. return A.SassNumber_SassNumber$withUnits0(t1, mutableDenominatorUnits, newNumerators);
  112103. },
  112104. _number1$_areAnyConvertible$2(units1, units2) {
  112105. return B.JSArray_methods.any$1(units1, new A.SassNumber__areAnyConvertible_closure0(units2));
  112106. },
  112107. _number1$_unitString$2(numerators, denominators) {
  112108. var _0_4, _0_7, _0_6, _0_5, t1, _0_9, _0_6_isSet, _0_5_isSet, _0_10, denominator, _null = null;
  112109. $label0$0: {
  112110. _0_4 = J.get$length$asx(numerators) <= 0;
  112111. _0_7 = _null;
  112112. _0_6 = _null;
  112113. _0_5 = _null;
  112114. if (_0_4) {
  112115. _0_6 = J.get$length$asx(denominators);
  112116. t1 = _0_6;
  112117. _0_7 = t1 <= 0;
  112118. t1 = _0_7;
  112119. _0_5 = denominators;
  112120. } else
  112121. t1 = false;
  112122. if (t1) {
  112123. t1 = "no units";
  112124. break $label0$0;
  112125. }
  112126. _0_9 = _null;
  112127. if (_0_4) {
  112128. _0_9 = _0_6 === 1;
  112129. t1 = _0_9;
  112130. _0_6_isSet = true;
  112131. _0_5_isSet = true;
  112132. } else {
  112133. _0_5_isSet = _0_4;
  112134. _0_6_isSet = _0_5_isSet;
  112135. t1 = false;
  112136. }
  112137. if (t1) {
  112138. _0_10 = J.$index$asx(_0_5_isSet ? _0_5 : denominators, 0);
  112139. denominator = _0_10;
  112140. t1 = denominator + "^-1";
  112141. break $label0$0;
  112142. }
  112143. if (_0_4) {
  112144. t1 = "(" + J.join$1$ax(denominators, "*") + ")^-1";
  112145. break $label0$0;
  112146. }
  112147. if (_0_6_isSet)
  112148. t1 = _0_6;
  112149. else {
  112150. if (_0_5_isSet)
  112151. t1 = _0_5;
  112152. else {
  112153. t1 = denominators;
  112154. _0_5 = t1;
  112155. _0_5_isSet = true;
  112156. }
  112157. _0_6 = J.get$length$asx(t1);
  112158. t1 = _0_6;
  112159. _0_6_isSet = true;
  112160. }
  112161. _0_7 = t1 <= 0;
  112162. t1 = _0_7;
  112163. if (t1) {
  112164. t1 = J.join$1$ax(numerators, "*");
  112165. break $label0$0;
  112166. }
  112167. if (_0_6_isSet)
  112168. t1 = _0_6;
  112169. else {
  112170. if (_0_5_isSet)
  112171. t1 = _0_5;
  112172. else {
  112173. t1 = denominators;
  112174. _0_5 = t1;
  112175. _0_5_isSet = true;
  112176. }
  112177. _0_6 = J.get$length$asx(t1);
  112178. t1 = _0_6;
  112179. }
  112180. _0_9 = t1 === 1;
  112181. t1 = _0_9;
  112182. if (t1) {
  112183. _0_10 = J.$index$asx(_0_5_isSet ? _0_5 : denominators, 0);
  112184. denominator = _0_10;
  112185. t1 = J.join$1$ax(numerators, "*") + "/" + denominator;
  112186. break $label0$0;
  112187. }
  112188. t1 = J.join$1$ax(numerators, "*") + "/(" + J.join$1$ax(denominators, "*") + ")";
  112189. break $label0$0;
  112190. }
  112191. return t1;
  112192. },
  112193. $eq(_, other) {
  112194. var _this = this;
  112195. if (other == null)
  112196. return false;
  112197. if (!(other instanceof A.SassNumber0))
  112198. return false;
  112199. if (_this.get$numeratorUnits(_this).length !== other.get$numeratorUnits(other).length || _this.get$denominatorUnits(_this).length !== other.get$denominatorUnits(other).length)
  112200. return false;
  112201. if (!_this.get$hasUnits())
  112202. return A.fuzzyEquals0(_this._number1$_value, other._number1$_value);
  112203. if (!B.C_ListEquality.equals$2(0, _this._number1$_canonicalizeUnitList$1(_this.get$numeratorUnits(_this)), _this._number1$_canonicalizeUnitList$1(other.get$numeratorUnits(other))) || !B.C_ListEquality.equals$2(0, _this._number1$_canonicalizeUnitList$1(_this.get$denominatorUnits(_this)), _this._number1$_canonicalizeUnitList$1(other.get$denominatorUnits(other))))
  112204. return false;
  112205. return A.fuzzyEquals0(_this._number1$_value * _this._number1$_canonicalMultiplier$1(_this.get$numeratorUnits(_this)) / _this._number1$_canonicalMultiplier$1(_this.get$denominatorUnits(_this)), other._number1$_value * _this._number1$_canonicalMultiplier$1(other.get$numeratorUnits(other)) / _this._number1$_canonicalMultiplier$1(other.get$denominatorUnits(other)));
  112206. },
  112207. get$hashCode(_) {
  112208. var _this = this,
  112209. t1 = _this.hashCache;
  112210. return t1 == null ? _this.hashCache = A.fuzzyHashCode0(_this._number1$_value * _this._number1$_canonicalMultiplier$1(_this.get$numeratorUnits(_this)) / _this._number1$_canonicalMultiplier$1(_this.get$denominatorUnits(_this))) : t1;
  112211. },
  112212. _number1$_canonicalizeUnitList$1(units) {
  112213. var type,
  112214. t1 = units.length;
  112215. if (t1 === 0)
  112216. return units;
  112217. if (t1 === 1) {
  112218. type = $.$get$_typesByUnit0().$index(0, B.JSArray_methods.get$first(units));
  112219. if (type == null)
  112220. t1 = units;
  112221. else {
  112222. t1 = B.Map_397RH.$index(0, type);
  112223. t1.toString;
  112224. t1 = A._setArrayType([B.JSArray_methods.get$first(t1)], type$.JSArray_String);
  112225. }
  112226. return t1;
  112227. }
  112228. t1 = A._arrayInstanceType(units)._eval$1("MappedListIterable<1,String>");
  112229. t1 = A.List_List$of(new A.MappedListIterable(units, new A.SassNumber__canonicalizeUnitList_closure0(), t1), true, t1._eval$1("ListIterable.E"));
  112230. B.JSArray_methods.sort$0(t1);
  112231. return t1;
  112232. },
  112233. _number1$_canonicalMultiplier$1(units) {
  112234. return B.JSArray_methods.fold$2(units, 1, new A.SassNumber__canonicalMultiplier_closure0(this));
  112235. },
  112236. canonicalMultiplierForUnit$1(unit) {
  112237. var t1,
  112238. innerMap = B.Map_gQqJO.$index(0, unit);
  112239. if (innerMap == null)
  112240. t1 = 1;
  112241. else {
  112242. t1 = innerMap.get$values(innerMap);
  112243. t1 = 1 / t1.get$first(t1);
  112244. }
  112245. return t1;
  112246. },
  112247. unitSuggestion$2($name, unit) {
  112248. var t2, t3, result, _this = this,
  112249. t1 = _this.get$denominatorUnits(_this);
  112250. t1 = new A.MappedListIterable(t1, new A.SassNumber_unitSuggestion_closure1(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,String>")).join$0(0);
  112251. t2 = _this.get$numeratorUnits(_this);
  112252. t2 = new A.MappedListIterable(t2, new A.SassNumber_unitSuggestion_closure2(), A._arrayInstanceType(t2)._eval$1("MappedListIterable<1,String>")).join$0(0);
  112253. t3 = unit == null ? "" : " * 1" + unit;
  112254. result = "$" + $name + t1 + t2 + t3;
  112255. return _this.get$numeratorUnits(_this).length === 0 ? result : "calc(" + result + ")";
  112256. },
  112257. unitSuggestion$1($name) {
  112258. return this.unitSuggestion$2($name, null);
  112259. }
  112260. };
  112261. A.SassNumber__coerceOrConvertValue_compatibilityException0.prototype = {
  112262. call$0() {
  112263. var t2, t3, message, t4, type, unit, _this = this,
  112264. t1 = _this.other;
  112265. if (t1 != null) {
  112266. t2 = _this.$this;
  112267. t3 = t2.toString$0(0) + " and";
  112268. message = new A.StringBuffer(t3);
  112269. t4 = _this.otherName;
  112270. if (t4 != null)
  112271. t3 = message._contents = t3 + (" $" + t4 + ":");
  112272. t1 = t3 + (" " + t1.toString$0(0) + " have incompatible units");
  112273. message._contents = t1;
  112274. if (!t2.get$hasUnits() || !_this.otherHasUnits)
  112275. message._contents = t1 + " (one has units and the other doesn't)";
  112276. t1 = message.toString$0(0) + ".";
  112277. t2 = _this.name;
  112278. return new A.SassScriptException0(t2 == null ? t1 : "$" + t2 + ": " + t1);
  112279. } else if (!_this.otherHasUnits) {
  112280. t1 = "Expected " + _this.$this.toString$0(0) + " to have no units.";
  112281. t2 = _this.name;
  112282. return new A.SassScriptException0(t2 == null ? t1 : "$" + t2 + ": " + t1);
  112283. } else {
  112284. t1 = _this.newNumerators;
  112285. t2 = J.getInterceptor$asx(t1);
  112286. if (t2.get$length(t1) === 1 && J.get$isEmpty$asx(_this.newDenominators)) {
  112287. type = $.$get$_typesByUnit0().$index(0, t2.get$first(t1));
  112288. if (type != null) {
  112289. t1 = _this.$this.toString$0(0);
  112290. t2 = B.JSArray_methods.contains$1(A._setArrayType([97, 101, 105, 111, 117], type$.JSArray_int), type.charCodeAt(0)) ? "an " + type : "a " + type;
  112291. t3 = B.Map_397RH.$index(0, type);
  112292. t3.toString;
  112293. t3 = "Expected " + t1 + " to have " + t2 + " unit (" + B.JSArray_methods.join$1(t3, ", ") + ").";
  112294. t2 = _this.name;
  112295. return new A.SassScriptException0(t2 == null ? t3 : "$" + t2 + ": " + t3);
  112296. }
  112297. }
  112298. t3 = _this.newDenominators;
  112299. unit = A.pluralize0("unit", t2.get$length(t1) + J.get$length$asx(t3), null);
  112300. t2 = _this.$this;
  112301. t3 = "Expected " + t2.toString$0(0) + " to have " + unit + " " + t2._number1$_unitString$2(t1, t3) + ".";
  112302. t1 = _this.name;
  112303. return new A.SassScriptException0(t1 == null ? t3 : "$" + t1 + ": " + t3);
  112304. }
  112305. },
  112306. $signature: 551
  112307. };
  112308. A.SassNumber__coerceOrConvertValue_closure3.prototype = {
  112309. call$1(oldNumerator) {
  112310. var factor = A.conversionFactor0(this.newNumerator, oldNumerator);
  112311. if (factor == null)
  112312. return false;
  112313. this._box_0.value *= factor;
  112314. return true;
  112315. },
  112316. $signature: 5
  112317. };
  112318. A.SassNumber__coerceOrConvertValue_closure4.prototype = {
  112319. call$0() {
  112320. return A.throwExpression(this.compatibilityException.call$0());
  112321. },
  112322. $signature: 0
  112323. };
  112324. A.SassNumber__coerceOrConvertValue_closure5.prototype = {
  112325. call$1(oldDenominator) {
  112326. var factor = A.conversionFactor0(this.newDenominator, oldDenominator);
  112327. if (factor == null)
  112328. return false;
  112329. this._box_0.value /= factor;
  112330. return true;
  112331. },
  112332. $signature: 5
  112333. };
  112334. A.SassNumber__coerceOrConvertValue_closure6.prototype = {
  112335. call$0() {
  112336. return A.throwExpression(this.compatibilityException.call$0());
  112337. },
  112338. $signature: 0
  112339. };
  112340. A.SassNumber_plus_closure0.prototype = {
  112341. call$2(num1, num2) {
  112342. return num1 + num2;
  112343. },
  112344. $signature: 62
  112345. };
  112346. A.SassNumber_minus_closure0.prototype = {
  112347. call$2(num1, num2) {
  112348. return num1 - num2;
  112349. },
  112350. $signature: 62
  112351. };
  112352. A.SassNumber_multiplyUnits_closure3.prototype = {
  112353. call$1(denominator) {
  112354. var factor = A.conversionFactor0(this.numerator, denominator);
  112355. if (factor == null)
  112356. return false;
  112357. this._box_0.value /= factor;
  112358. return true;
  112359. },
  112360. $signature: 5
  112361. };
  112362. A.SassNumber_multiplyUnits_closure4.prototype = {
  112363. call$0() {
  112364. return this.newNumerators.push(this.numerator);
  112365. },
  112366. $signature: 0
  112367. };
  112368. A.SassNumber_multiplyUnits_closure5.prototype = {
  112369. call$1(denominator) {
  112370. var factor = A.conversionFactor0(this.numerator, denominator);
  112371. if (factor == null)
  112372. return false;
  112373. this._box_0.value /= factor;
  112374. return true;
  112375. },
  112376. $signature: 5
  112377. };
  112378. A.SassNumber_multiplyUnits_closure6.prototype = {
  112379. call$0() {
  112380. return this.newNumerators.push(this.numerator);
  112381. },
  112382. $signature: 0
  112383. };
  112384. A.SassNumber__areAnyConvertible_closure0.prototype = {
  112385. call$1(unit1) {
  112386. var t1,
  112387. _0_0 = B.Map_gQqJO.$index(0, unit1);
  112388. $label0$0: {
  112389. if (_0_0 != null) {
  112390. t1 = B.JSArray_methods.any$1(this.units2, _0_0.get$containsKey());
  112391. break $label0$0;
  112392. }
  112393. t1 = B.JSArray_methods.contains$1(this.units2, unit1);
  112394. break $label0$0;
  112395. }
  112396. return t1;
  112397. },
  112398. $signature: 5
  112399. };
  112400. A.SassNumber__canonicalizeUnitList_closure0.prototype = {
  112401. call$1(unit) {
  112402. var t1,
  112403. type = $.$get$_typesByUnit0().$index(0, unit);
  112404. if (type == null)
  112405. t1 = unit;
  112406. else {
  112407. t1 = B.Map_397RH.$index(0, type);
  112408. t1.toString;
  112409. t1 = B.JSArray_methods.get$first(t1);
  112410. }
  112411. return t1;
  112412. },
  112413. $signature: 6
  112414. };
  112415. A.SassNumber__canonicalMultiplier_closure0.prototype = {
  112416. call$2(multiplier, unit) {
  112417. return multiplier * this.$this.canonicalMultiplierForUnit$1(unit);
  112418. },
  112419. $signature: 187
  112420. };
  112421. A.SassNumber_unitSuggestion_closure1.prototype = {
  112422. call$1(unit) {
  112423. return " * 1" + unit;
  112424. },
  112425. $signature: 6
  112426. };
  112427. A.SassNumber_unitSuggestion_closure2.prototype = {
  112428. call$1(unit) {
  112429. return " / 1" + unit;
  112430. },
  112431. $signature: 6
  112432. };
  112433. A.OklabColorSpace0.prototype = {
  112434. get$isBoundedInternal() {
  112435. return false;
  112436. },
  112437. convert$7$missingChroma$missingHue(dest, lightness, a, b, alpha, missingChroma, missingHue) {
  112438. var missingLightness, missingA, missingB, t1;
  112439. if (dest === B.OklchColorSpace_li80)
  112440. return A.labToLch0(dest, lightness, a, b, alpha, missingChroma, missingHue);
  112441. missingLightness = lightness == null;
  112442. missingA = a == null;
  112443. missingB = b == null;
  112444. if (missingLightness)
  112445. lightness = 0;
  112446. if (missingA)
  112447. a = 0;
  112448. if (missingB)
  112449. b = 0;
  112450. t1 = $.$get$oklabToLms0();
  112451. return B.LmsColorSpace_8I80.convert$10$missingA$missingB$missingChroma$missingHue$missingLightness(dest, Math.pow(t1[0] * lightness + t1[1] * a + t1[2] * b, 3) + 0, Math.pow(t1[3] * lightness + t1[4] * a + t1[5] * b, 3) + 0, Math.pow(t1[6] * lightness + t1[7] * a + t1[8] * b, 3) + 0, alpha, missingA, missingB, missingChroma, missingHue, missingLightness);
  112452. },
  112453. convert$5(dest, lightness, a, b, alpha) {
  112454. return this.convert$7$missingChroma$missingHue(dest, lightness, a, b, alpha, false, false);
  112455. }
  112456. };
  112457. A.OklchColorSpace0.prototype = {
  112458. get$isBoundedInternal() {
  112459. return false;
  112460. },
  112461. get$isPolarInternal() {
  112462. return true;
  112463. },
  112464. convert$5(dest, lightness, chroma, hue, alpha) {
  112465. var t1 = hue == null,
  112466. hueRadians = (t1 ? 0 : hue) * 3.141592653589793 / 180,
  112467. t2 = chroma == null,
  112468. t3 = t2 ? 0 : chroma,
  112469. t4 = Math.cos(hueRadians),
  112470. t5 = t2 ? 0 : chroma;
  112471. return B.OklabColorSpace_yrt0.convert$7$missingChroma$missingHue(dest, lightness, t3 * t4, t5 * Math.sin(hueRadians), alpha, t2, t1);
  112472. }
  112473. };
  112474. A.SupportsOperation0.prototype = {
  112475. toInterpolation$0() {
  112476. var t1 = new A.StringBuffer(""),
  112477. t2 = new A.InterpolationBuffer0(t1, A._setArrayType([], type$.JSArray_Object), A._setArrayType([], type$.JSArray_nullable_FileSpan)),
  112478. t3 = this.span,
  112479. t4 = this.left,
  112480. t5 = A.SpanExtensions_before(t3, t4.get$span(t4));
  112481. t5 = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t5.file._decodedChars, t5._file$_start, t5._end), 0, null);
  112482. t1._contents += t5;
  112483. t2.addInterpolation$1(t4.toInterpolation$0());
  112484. t5 = this.right;
  112485. t4 = A.SpanExtensions_between(t4.get$span(t4), t5.get$span(t5));
  112486. t4 = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t4.file._decodedChars, t4._file$_start, t4._end), 0, null);
  112487. t1._contents += t4;
  112488. t2.addInterpolation$1(t5.toInterpolation$0());
  112489. t5 = A.SpanExtensions_after(t3, t5.get$span(t5));
  112490. t5 = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t5.file._decodedChars, t5._file$_start, t5._end), 0, null);
  112491. t1._contents += t5;
  112492. return t2.interpolation$1(t3);
  112493. },
  112494. withSpan$1(span) {
  112495. return A.SupportsOperation$0(this.left, this.right, this.operator, span);
  112496. },
  112497. toString$0(_) {
  112498. var _this = this;
  112499. return _this._operation0$_parenthesize$1(_this.left) + " " + _this.operator + " " + _this._operation0$_parenthesize$1(_this.right);
  112500. },
  112501. _operation0$_parenthesize$1(condition) {
  112502. var t1;
  112503. if (!(condition instanceof A.SupportsNegation0))
  112504. t1 = condition instanceof A.SupportsOperation0 && condition.operator === this.operator;
  112505. else
  112506. t1 = true;
  112507. return t1 ? "(" + condition.toString$0(0) + ")" : condition.toString$0(0);
  112508. },
  112509. $isAstNode0: 1,
  112510. $isSassNode: 1,
  112511. $isSupportsCondition: 1,
  112512. get$span(receiver) {
  112513. return this.span;
  112514. }
  112515. };
  112516. A.ParcelWatcherSubscription0.prototype = {};
  112517. A.ParcelWatcherEvent0.prototype = {};
  112518. A.ParcelWatcher0.prototype = {};
  112519. A.ParentSelector0.prototype = {
  112520. accept$1$1(visitor) {
  112521. return visitor.visitParentSelector$1(this);
  112522. },
  112523. accept$1(visitor) {
  112524. return this.accept$1$1(visitor, type$.dynamic);
  112525. },
  112526. unify$1(compound) {
  112527. return A.throwExpression(A.UnsupportedError$("& doesn't support unification."));
  112528. }
  112529. };
  112530. A.ParentStatement0.prototype = {};
  112531. A.ParentStatement_closure0.prototype = {
  112532. call$1(child) {
  112533. var t1;
  112534. $label0$0: {
  112535. if (child instanceof A.VariableDeclaration0 || child instanceof A.FunctionRule0 || child instanceof A.MixinRule0) {
  112536. t1 = true;
  112537. break $label0$0;
  112538. }
  112539. if (child instanceof A.ImportRule0) {
  112540. t1 = B.JSArray_methods.any$1(child.imports, new A.ParentStatement__closure0());
  112541. break $label0$0;
  112542. }
  112543. t1 = false;
  112544. break $label0$0;
  112545. }
  112546. return t1;
  112547. },
  112548. $signature: 237
  112549. };
  112550. A.ParentStatement__closure0.prototype = {
  112551. call$1($import) {
  112552. return $import instanceof A.DynamicImport0;
  112553. },
  112554. $signature: 238
  112555. };
  112556. A.ParenthesizedExpression0.prototype = {
  112557. accept$1$1(visitor) {
  112558. return visitor.visitParenthesizedExpression$1(0, this);
  112559. },
  112560. accept$1(visitor) {
  112561. return this.accept$1$1(visitor, type$.dynamic);
  112562. },
  112563. toString$0(_) {
  112564. return "(" + this.expression.toString$0(0) + ")";
  112565. },
  112566. get$span(receiver) {
  112567. return this.span;
  112568. }
  112569. };
  112570. A.ParserExports.prototype = {};
  112571. A.loadParserExports_closure.prototype = {
  112572. call$1(inner) {
  112573. return new A.JSExpressionVisitor(inner);
  112574. },
  112575. $signature: 552
  112576. };
  112577. A.loadParserExports_closure0.prototype = {
  112578. call$1(inner) {
  112579. return new A.JSStatementVisitor(inner);
  112580. },
  112581. $signature: 553
  112582. };
  112583. A._updateAstPrototypes_closure.prototype = {
  112584. call$3($self, start, end) {
  112585. return A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2($self._decodedChars, start, end), 0, null);
  112586. },
  112587. call$2($self, start) {
  112588. return this.call$3($self, start, null);
  112589. },
  112590. "call*": "call$3",
  112591. $requiredArgCount: 2,
  112592. $defaultValues() {
  112593. return [null];
  112594. },
  112595. $signature: 554
  112596. };
  112597. A._updateAstPrototypes_closure0.prototype = {
  112598. call$1($self) {
  112599. return $self._decodedChars;
  112600. },
  112601. $signature: 555
  112602. };
  112603. A._updateAstPrototypes_closure1.prototype = {
  112604. call$1($self) {
  112605. return $self.get$asPlain();
  112606. },
  112607. $signature: 556
  112608. };
  112609. A._updateAstPrototypes_closure2.prototype = {
  112610. call$2($self, visitor) {
  112611. return $self.accept$1(visitor);
  112612. },
  112613. $signature: 557
  112614. };
  112615. A._updateAstPrototypes_closure3.prototype = {
  112616. call$2($self, visitor) {
  112617. return $self.accept$1(visitor);
  112618. },
  112619. $signature: 558
  112620. };
  112621. A._updateAstPrototypes_closure4.prototype = {
  112622. call$1($self) {
  112623. return $self.get$span($self);
  112624. },
  112625. $signature: 559
  112626. };
  112627. A._addSupportsConditionToInterpolation_closure.prototype = {
  112628. call$1($self) {
  112629. return $self.toInterpolation$0();
  112630. },
  112631. $signature: 560
  112632. };
  112633. A.Parser1.prototype = {
  112634. _parser1$_parseIdentifier$0() {
  112635. return this.wrapSpanFormatException$1(new A.Parser__parseIdentifier_closure0(this));
  112636. },
  112637. whitespace$0() {
  112638. do
  112639. this.whitespaceWithoutComments$0();
  112640. while (this.scanComment$0());
  112641. },
  112642. whitespaceWithoutComments$0() {
  112643. var t3,
  112644. t1 = this.scanner,
  112645. t2 = t1.string.length;
  112646. while (true) {
  112647. if (t1._string_scanner$_position !== t2) {
  112648. t3 = t1.peekChar$0();
  112649. t3 = t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12;
  112650. } else
  112651. t3 = false;
  112652. if (!t3)
  112653. break;
  112654. t1.readChar$0();
  112655. }
  112656. },
  112657. spaces$0() {
  112658. var t3,
  112659. t1 = this.scanner,
  112660. t2 = t1.string.length;
  112661. while (true) {
  112662. if (t1._string_scanner$_position !== t2) {
  112663. t3 = t1.peekChar$0();
  112664. t3 = t3 === 32 || t3 === 9;
  112665. } else
  112666. t3 = false;
  112667. if (!t3)
  112668. break;
  112669. t1.readChar$0();
  112670. }
  112671. },
  112672. scanComment$0() {
  112673. var _0_0,
  112674. t1 = this.scanner;
  112675. if (t1.peekChar$0() !== 47)
  112676. return false;
  112677. _0_0 = t1.peekChar$1(1);
  112678. if (47 === _0_0)
  112679. return this.silentComment$0();
  112680. if (42 === _0_0) {
  112681. this.loudComment$0();
  112682. return true;
  112683. }
  112684. return false;
  112685. },
  112686. expectWhitespace$0() {
  112687. var t2, t3,
  112688. t1 = this.scanner;
  112689. if (t1._string_scanner$_position !== t1.string.length) {
  112690. t2 = t1.peekChar$0();
  112691. t3 = !(t2 === 32 || t2 === 9 || t2 === 10 || t2 === 13 || t2 === 12 || this.scanComment$0());
  112692. t2 = t3;
  112693. } else
  112694. t2 = true;
  112695. if (t2)
  112696. t1.error$1(0, "Expected whitespace.");
  112697. this.whitespace$0();
  112698. },
  112699. silentComment$0() {
  112700. var t2, t3,
  112701. t1 = this.scanner;
  112702. t1.expect$1("//");
  112703. t2 = t1.string.length;
  112704. while (true) {
  112705. if (t1._string_scanner$_position !== t2) {
  112706. t3 = t1.peekChar$0();
  112707. t3 = !(t3 === 10 || t3 === 13 || t3 === 12);
  112708. } else
  112709. t3 = false;
  112710. if (!t3)
  112711. break;
  112712. t1.readChar$0();
  112713. }
  112714. return true;
  112715. },
  112716. loudComment$0() {
  112717. var next,
  112718. t1 = this.scanner;
  112719. t1.expect$1("/*");
  112720. for (; true;) {
  112721. if (t1.readChar$0() !== 42)
  112722. continue;
  112723. do
  112724. next = t1.readChar$0();
  112725. while (next === 42);
  112726. if (next === 47)
  112727. break;
  112728. }
  112729. },
  112730. identifier$2$normalize$unit(normalize, unit) {
  112731. var t2, _0_0, _this = this,
  112732. _s20_ = "Expected identifier.",
  112733. text = new A.StringBuffer(""),
  112734. t1 = _this.scanner;
  112735. if (t1.scanChar$1(45)) {
  112736. t2 = text._contents = "" + A.Primitives_stringFromCharCode(45);
  112737. if (t1.scanChar$1(45)) {
  112738. text._contents = t2 + A.Primitives_stringFromCharCode(45);
  112739. _this._parser1$_identifierBody$3$normalize$unit(text, normalize, unit);
  112740. t1 = text._contents;
  112741. return t1.charCodeAt(0) == 0 ? t1 : t1;
  112742. }
  112743. } else
  112744. t2 = "";
  112745. $label0$0: {
  112746. _0_0 = t1.peekChar$0();
  112747. if (_0_0 == null)
  112748. t1.error$1(0, _s20_);
  112749. if (95 === _0_0 && normalize) {
  112750. t1.readChar$0();
  112751. text._contents = t2 + A.Primitives_stringFromCharCode(45);
  112752. break $label0$0;
  112753. }
  112754. if (_0_0 === 95 || A.CharacterExtension_get_isAlphabetic0(_0_0) || _0_0 >= 128) {
  112755. text._contents = t2 + A.Primitives_stringFromCharCode(t1.readChar$0());
  112756. break $label0$0;
  112757. }
  112758. if (92 === _0_0) {
  112759. text._contents = t2 + _this.escape$1$identifierStart(true);
  112760. break $label0$0;
  112761. }
  112762. t1.error$1(0, _s20_);
  112763. }
  112764. _this._parser1$_identifierBody$3$normalize$unit(text, normalize, unit);
  112765. t1 = text._contents;
  112766. return t1.charCodeAt(0) == 0 ? t1 : t1;
  112767. },
  112768. identifier$0() {
  112769. return this.identifier$2$normalize$unit(false, false);
  112770. },
  112771. identifier$1$normalize(normalize) {
  112772. return this.identifier$2$normalize$unit(normalize, false);
  112773. },
  112774. identifier$1$unit(unit) {
  112775. return this.identifier$2$normalize$unit(false, unit);
  112776. },
  112777. _parser1$_identifierBody$3$normalize$unit(text, normalize, unit) {
  112778. var t1, _1_0, _0_0, t2;
  112779. for (t1 = this.scanner; true;) {
  112780. _1_0 = t1.peekChar$0();
  112781. if (_1_0 == null)
  112782. break;
  112783. if (45 === _1_0 && unit) {
  112784. _0_0 = t1.peekChar$1(1);
  112785. if (46 !== _0_0)
  112786. t2 = A._isInt(_0_0) && _0_0 >= 48 && _0_0 <= 57;
  112787. else
  112788. t2 = true;
  112789. if (t2)
  112790. break;
  112791. t2 = A.Primitives_stringFromCharCode(t1.readChar$0());
  112792. text._contents += t2;
  112793. continue;
  112794. }
  112795. if (95 === _1_0 && normalize) {
  112796. t1.readChar$0();
  112797. t2 = A.Primitives_stringFromCharCode(45);
  112798. text._contents += t2;
  112799. continue;
  112800. }
  112801. if (_1_0 !== 95) {
  112802. if (!(_1_0 >= 97 && _1_0 <= 122))
  112803. t2 = _1_0 >= 65 && _1_0 <= 90;
  112804. else
  112805. t2 = true;
  112806. t2 = t2 || _1_0 >= 128;
  112807. } else
  112808. t2 = true;
  112809. if (!t2)
  112810. t2 = _1_0 >= 48 && _1_0 <= 57 || _1_0 === 45;
  112811. else
  112812. t2 = true;
  112813. if (t2) {
  112814. t2 = A.Primitives_stringFromCharCode(t1.readChar$0());
  112815. text._contents += t2;
  112816. continue;
  112817. }
  112818. if (92 === _1_0) {
  112819. t2 = this.escape$0();
  112820. text._contents += t2;
  112821. continue;
  112822. }
  112823. break;
  112824. }
  112825. },
  112826. _parser1$_identifierBody$1(text) {
  112827. return this._parser1$_identifierBody$3$normalize$unit(text, false, false);
  112828. },
  112829. string$0() {
  112830. var buffer, _0_0, t2,
  112831. t1 = this.scanner,
  112832. quote = t1.readChar$0();
  112833. if (quote !== 39 && quote !== 34)
  112834. t1.error$2$position(0, "Expected string.", t1._string_scanner$_position - 1);
  112835. buffer = new A.StringBuffer("");
  112836. for (; true;) {
  112837. _0_0 = t1.peekChar$0();
  112838. if (_0_0 === quote) {
  112839. t1.readChar$0();
  112840. break;
  112841. }
  112842. if (_0_0 == null || _0_0 === 10 || _0_0 === 13 || _0_0 === 12)
  112843. t1.error$1(0, "Expected " + A.Primitives_stringFromCharCode(quote) + ".");
  112844. if (92 === _0_0) {
  112845. t2 = t1.peekChar$1(1);
  112846. if (t2 === 10 || t2 === 13 || t2 === 12) {
  112847. t1.readChar$0();
  112848. t1.readChar$0();
  112849. } else {
  112850. t2 = A.Primitives_stringFromCharCode(A.consumeEscapedCharacter0(t1));
  112851. buffer._contents += t2;
  112852. }
  112853. continue;
  112854. }
  112855. t2 = A.Primitives_stringFromCharCode(t1.readChar$0());
  112856. buffer._contents += t2;
  112857. }
  112858. t1 = buffer._contents;
  112859. return t1.charCodeAt(0) == 0 ? t1 : t1;
  112860. },
  112861. declarationValue$1$allowEmpty(allowEmpty) {
  112862. var t1, t2, wroteNewline, next, wroteNewline0, t3, start, end, _0_0, _this = this,
  112863. buffer = new A.StringBuffer(""),
  112864. brackets = A._setArrayType([], type$.JSArray_int);
  112865. for (t1 = _this.scanner, t2 = _this.get$string(), wroteNewline = false; true;) {
  112866. next = t1.peekChar$0();
  112867. if (next == null)
  112868. break;
  112869. wroteNewline0 = false;
  112870. if (92 === next) {
  112871. t3 = _this.escape$1$identifierStart(true);
  112872. buffer._contents += t3;
  112873. wroteNewline = wroteNewline0;
  112874. continue;
  112875. }
  112876. if (34 === next || 39 === next) {
  112877. start = t1._string_scanner$_position;
  112878. t2.call$0();
  112879. end = t1._string_scanner$_position;
  112880. buffer._contents += B.JSString_methods.substring$2(t1.string, start, end);
  112881. wroteNewline = wroteNewline0;
  112882. continue;
  112883. }
  112884. if (47 === next) {
  112885. if (t1.peekChar$1(1) === 42) {
  112886. t3 = _this.get$loudComment();
  112887. start = t1._string_scanner$_position;
  112888. t3.call$0();
  112889. end = t1._string_scanner$_position;
  112890. buffer._contents += B.JSString_methods.substring$2(t1.string, start, end);
  112891. } else {
  112892. t3 = A.Primitives_stringFromCharCode(t1.readChar$0());
  112893. buffer._contents += t3;
  112894. }
  112895. wroteNewline = wroteNewline0;
  112896. continue;
  112897. }
  112898. if (32 === next || 9 === next) {
  112899. if (!wroteNewline) {
  112900. t3 = t1.peekChar$1(1);
  112901. t3 = !(t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12);
  112902. } else
  112903. t3 = true;
  112904. if (t3) {
  112905. t3 = A.Primitives_stringFromCharCode(32);
  112906. buffer._contents += t3;
  112907. }
  112908. t1.readChar$0();
  112909. continue;
  112910. }
  112911. if (10 === next || 13 === next || 12 === next) {
  112912. t3 = t1.peekChar$1(-1);
  112913. if (!(t3 === 10 || t3 === 13 || t3 === 12))
  112914. buffer._contents += "\n";
  112915. t1.readChar$0();
  112916. wroteNewline = true;
  112917. continue;
  112918. }
  112919. if (40 === next || 123 === next || 91 === next) {
  112920. t3 = A.Primitives_stringFromCharCode(next);
  112921. buffer._contents += t3;
  112922. brackets.push(A.opposite0(t1.readChar$0()));
  112923. wroteNewline = wroteNewline0;
  112924. continue;
  112925. }
  112926. if (41 === next || 125 === next || 93 === next) {
  112927. if (brackets.length === 0)
  112928. break;
  112929. t3 = A.Primitives_stringFromCharCode(next);
  112930. buffer._contents += t3;
  112931. t1.expectChar$1(brackets.pop());
  112932. wroteNewline = wroteNewline0;
  112933. continue;
  112934. }
  112935. if (59 === next) {
  112936. if (brackets.length === 0)
  112937. break;
  112938. t3 = A.Primitives_stringFromCharCode(t1.readChar$0());
  112939. buffer._contents += t3;
  112940. continue;
  112941. }
  112942. if (117 === next || 85 === next) {
  112943. _0_0 = _this.tryUrl$0();
  112944. if (_0_0 != null)
  112945. buffer._contents += _0_0;
  112946. else {
  112947. t3 = A.Primitives_stringFromCharCode(t1.readChar$0());
  112948. buffer._contents += t3;
  112949. }
  112950. wroteNewline = wroteNewline0;
  112951. continue;
  112952. }
  112953. if (_this.lookingAtIdentifier$0()) {
  112954. t3 = _this.identifier$0();
  112955. buffer._contents += t3;
  112956. } else {
  112957. t3 = A.Primitives_stringFromCharCode(t1.readChar$0());
  112958. buffer._contents += t3;
  112959. }
  112960. wroteNewline = wroteNewline0;
  112961. }
  112962. if (brackets.length !== 0)
  112963. t1.expectChar$1(B.JSArray_methods.get$last(brackets));
  112964. if (!allowEmpty && buffer._contents.length === 0)
  112965. t1.error$1(0, "Expected token.");
  112966. t1 = buffer._contents;
  112967. return t1.charCodeAt(0) == 0 ? t1 : t1;
  112968. },
  112969. declarationValue$0() {
  112970. return this.declarationValue$1$allowEmpty(false);
  112971. },
  112972. tryUrl$0() {
  112973. var buffer, _0_0, t2, _this = this,
  112974. t1 = _this.scanner,
  112975. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  112976. if (!_this.scanIdentifier$1("url"))
  112977. return null;
  112978. if (!t1.scanChar$1(40)) {
  112979. t1.set$state(start);
  112980. return null;
  112981. }
  112982. _this.whitespace$0();
  112983. buffer = new A.StringBuffer("");
  112984. buffer._contents = "" + "url(";
  112985. for (; true;) {
  112986. _0_0 = t1.peekChar$0();
  112987. if (_0_0 == null)
  112988. break;
  112989. if (92 === _0_0) {
  112990. t2 = _this.escape$0();
  112991. buffer._contents += t2;
  112992. continue;
  112993. }
  112994. t2 = true;
  112995. if (37 !== _0_0)
  112996. if (38 !== _0_0)
  112997. if (35 !== _0_0)
  112998. t2 = _0_0 >= 42 && _0_0 <= 126 || _0_0 >= 128;
  112999. if (t2) {
  113000. t2 = A.Primitives_stringFromCharCode(t1.readChar$0());
  113001. buffer._contents += t2;
  113002. continue;
  113003. }
  113004. if (_0_0 === 32 || _0_0 === 9 || _0_0 === 10 || _0_0 === 13 || _0_0 === 12) {
  113005. _this.whitespace$0();
  113006. if (t1.peekChar$0() !== 41)
  113007. break;
  113008. continue;
  113009. }
  113010. if (41 === _0_0) {
  113011. t2 = A.Primitives_stringFromCharCode(t1.readChar$0());
  113012. t2 = buffer._contents += t2;
  113013. return t2.charCodeAt(0) == 0 ? t2 : t2;
  113014. }
  113015. break;
  113016. }
  113017. t1.set$state(start);
  113018. return null;
  113019. },
  113020. variableName$0() {
  113021. this.scanner.expectChar$1(36);
  113022. return this.identifier$1$normalize(true);
  113023. },
  113024. escape$1$identifierStart(identifierStart) {
  113025. var value, _0_0, i, next, t2, exception,
  113026. _s25_ = "Expected escape sequence.",
  113027. t1 = this.scanner,
  113028. start = t1._string_scanner$_position;
  113029. t1.expectChar$1(92);
  113030. value = 0;
  113031. $label0$1: {
  113032. _0_0 = t1.peekChar$0();
  113033. if (_0_0 == null)
  113034. t1.error$1(0, _s25_);
  113035. if (_0_0 === 10 || _0_0 === 13 || _0_0 === 12)
  113036. t1.error$1(0, _s25_);
  113037. if (A.CharacterExtension_get_isHex0(_0_0)) {
  113038. for (i = 0; i < 6; ++i) {
  113039. next = t1.peekChar$0();
  113040. if (next != null) {
  113041. t2 = true;
  113042. if (!(next >= 48 && next <= 57))
  113043. if (!(next >= 97 && next <= 102))
  113044. t2 = next >= 65 && next <= 70;
  113045. t2 = !t2;
  113046. } else
  113047. t2 = true;
  113048. if (t2)
  113049. break;
  113050. value *= 16;
  113051. value += A.asHex0(t1.readChar$0());
  113052. }
  113053. this.scanCharIf$1(new A.Parser_escape_closure0());
  113054. break $label0$1;
  113055. }
  113056. value = t1.readChar$0();
  113057. }
  113058. if (identifierStart) {
  113059. t2 = value;
  113060. t2 = t2 === 95 || A.CharacterExtension_get_isAlphabetic0(t2) || t2 >= 128;
  113061. } else {
  113062. t2 = value;
  113063. if (!(t2 === 95 || A.CharacterExtension_get_isAlphabetic0(t2) || t2 >= 128))
  113064. t2 = t2 >= 48 && t2 <= 57 || t2 === 45;
  113065. else
  113066. t2 = true;
  113067. }
  113068. if (t2)
  113069. try {
  113070. t2 = A.Primitives_stringFromCharCode(value);
  113071. return t2;
  113072. } catch (exception) {
  113073. if (type$.RangeError._is(A.unwrapException(exception)))
  113074. t1.error$3$length$position(0, "Invalid Unicode code point.", t1._string_scanner$_position - start, start);
  113075. else
  113076. throw exception;
  113077. }
  113078. else {
  113079. t1 = true;
  113080. if (!(value <= 31))
  113081. if (!J.$eq$(value, 127))
  113082. if (identifierStart) {
  113083. t1 = value;
  113084. t1 = t1 >= 48 && t1 <= 57;
  113085. } else
  113086. t1 = false;
  113087. if (t1) {
  113088. t1 = "" + A.Primitives_stringFromCharCode(92);
  113089. if (value > 15)
  113090. t1 += A.Primitives_stringFromCharCode(A.hexCharFor0(B.JSNumber_methods._shrOtherPositive$1(value, 4)));
  113091. t1 = t1 + A.Primitives_stringFromCharCode(A.hexCharFor0(value & 15)) + A.Primitives_stringFromCharCode(32);
  113092. return t1.charCodeAt(0) == 0 ? t1 : t1;
  113093. } else
  113094. return A.String_String$fromCharCodes(A._setArrayType([92, value], type$.JSArray_int), 0, null);
  113095. }
  113096. },
  113097. escape$0() {
  113098. return this.escape$1$identifierStart(false);
  113099. },
  113100. scanCharIf$1(condition) {
  113101. var t1 = this.scanner;
  113102. if (!condition.call$1(t1.peekChar$0()))
  113103. return false;
  113104. t1.readChar$0();
  113105. return true;
  113106. },
  113107. scanIdentChar$2$caseSensitive(char, caseSensitive) {
  113108. var t3,
  113109. t1 = new A.Parser_scanIdentChar_matches0(caseSensitive, char),
  113110. t2 = this.scanner,
  113111. _0_0 = t2.peekChar$0();
  113112. if (_0_0 != null) {
  113113. t3 = t1.call$1(_0_0);
  113114. t3 = t3;
  113115. } else
  113116. t3 = false;
  113117. if (t3) {
  113118. t2.readChar$0();
  113119. return true;
  113120. }
  113121. if (92 === _0_0) {
  113122. t3 = t2._string_scanner$_position;
  113123. if (t1.call$1(A.consumeEscapedCharacter0(t2)))
  113124. return true;
  113125. t2.set$state(new A._SpanScannerState(t2, t3));
  113126. }
  113127. return false;
  113128. },
  113129. scanIdentChar$1(char) {
  113130. return this.scanIdentChar$2$caseSensitive(char, false);
  113131. },
  113132. expectIdentChar$1(letter) {
  113133. var t1;
  113134. if (this.scanIdentChar$2$caseSensitive(letter, false))
  113135. return;
  113136. t1 = this.scanner;
  113137. t1.error$2$position(0, 'Expected "' + A.Primitives_stringFromCharCode(letter) + '".', t1._string_scanner$_position);
  113138. },
  113139. lookingAtIdentifier$1($forward) {
  113140. var t1, _1_0, t2, _0_0;
  113141. if ($forward == null)
  113142. $forward = 0;
  113143. t1 = this.scanner;
  113144. _1_0 = t1.peekChar$1($forward);
  113145. $label0$0: {
  113146. if (A._isInt(_1_0))
  113147. t2 = _1_0 === 95 || A.CharacterExtension_get_isAlphabetic0(_1_0) || _1_0 >= 128;
  113148. else
  113149. t2 = false;
  113150. if (t2 || 92 === _1_0) {
  113151. t1 = true;
  113152. break $label0$0;
  113153. }
  113154. if (45 === _1_0) {
  113155. _0_0 = t1.peekChar$1($forward + 1);
  113156. $label1$1: {
  113157. if (A._isInt(_0_0))
  113158. t1 = _0_0 === 95 || A.CharacterExtension_get_isAlphabetic0(_0_0) || _0_0 >= 128;
  113159. else
  113160. t1 = false;
  113161. t1 = t1 || 92 === _0_0 || 45 === _0_0;
  113162. if (t1)
  113163. break $label1$1;
  113164. break $label1$1;
  113165. }
  113166. break $label0$0;
  113167. }
  113168. t1 = false;
  113169. break $label0$0;
  113170. }
  113171. return t1;
  113172. },
  113173. lookingAtIdentifier$0() {
  113174. return this.lookingAtIdentifier$1(null);
  113175. },
  113176. lookingAtIdentifierBody$0() {
  113177. var t1,
  113178. next = this.scanner.peekChar$0();
  113179. if (next != null) {
  113180. if (!(next === 95 || A.CharacterExtension_get_isAlphabetic0(next) || next >= 128))
  113181. t1 = next >= 48 && next <= 57 || next === 45;
  113182. else
  113183. t1 = true;
  113184. t1 = t1 || next === 92;
  113185. } else
  113186. t1 = false;
  113187. return t1;
  113188. },
  113189. scanIdentifier$2$caseSensitive(text, caseSensitive) {
  113190. var t1, t2, _this = this;
  113191. if (!_this.lookingAtIdentifier$0())
  113192. return false;
  113193. t1 = _this.scanner;
  113194. t2 = t1._string_scanner$_position;
  113195. if (_this._parser1$_consumeIdentifier$2(text, caseSensitive) && !_this.lookingAtIdentifierBody$0())
  113196. return true;
  113197. else {
  113198. t1.set$state(new A._SpanScannerState(t1, t2));
  113199. return false;
  113200. }
  113201. },
  113202. scanIdentifier$1(text) {
  113203. return this.scanIdentifier$2$caseSensitive(text, false);
  113204. },
  113205. _parser1$_consumeIdentifier$2(text, caseSensitive) {
  113206. var t1, t2, t3;
  113207. for (t1 = new A.CodeUnits(text), t2 = type$.CodeUnits, t1 = new A.ListIterator(t1, t1.get$length(0), t2._eval$1("ListIterator<ListBase.E>")), t2 = t2._eval$1("ListBase.E"); t1.moveNext$0();) {
  113208. t3 = t1.__internal$_current;
  113209. if (!this.scanIdentChar$2$caseSensitive(t3 == null ? t2._as(t3) : t3, caseSensitive))
  113210. return false;
  113211. }
  113212. return true;
  113213. },
  113214. expectIdentifier$2$name(text, $name) {
  113215. var t1, start, t2, t3, t4, t5, t6;
  113216. if ($name == null)
  113217. $name = '"' + text + '"';
  113218. t1 = this.scanner;
  113219. start = t1._string_scanner$_position;
  113220. for (t2 = new A.CodeUnits(text), t3 = type$.CodeUnits, t2 = new A.ListIterator(t2, t2.get$length(0), t3._eval$1("ListIterator<ListBase.E>")), t4 = "Expected " + $name, t5 = t4 + ".", t3 = t3._eval$1("ListBase.E"); t2.moveNext$0();) {
  113221. t6 = t2.__internal$_current;
  113222. if (this.scanIdentChar$2$caseSensitive(t6 == null ? t3._as(t6) : t6, false))
  113223. continue;
  113224. t1.error$2$position(0, t5, start);
  113225. }
  113226. if (!this.lookingAtIdentifierBody$0())
  113227. return;
  113228. t1.error$2$position(0, t4, start);
  113229. },
  113230. expectIdentifier$1(text) {
  113231. return this.expectIdentifier$2$name(text, null);
  113232. },
  113233. rawText$1(consumer) {
  113234. var t1 = this.scanner,
  113235. start = t1._string_scanner$_position;
  113236. consumer.call$0();
  113237. return t1.substring$1(0, start);
  113238. },
  113239. spanFrom$1(state) {
  113240. var span = this.scanner.spanFrom$1(state);
  113241. return this._parser1$_interpolationMap == null ? span : new A.LazyFileSpan0(new A.Parser_spanFrom_closure0(this, span));
  113242. },
  113243. error$3(_, message, span, trace) {
  113244. var exception = new A.StringScannerException(this.scanner.string, message, span);
  113245. if (trace == null)
  113246. throw A.wrapException(exception);
  113247. else
  113248. A.throwWithTrace0(exception, this.get$error(this), trace);
  113249. },
  113250. error$2(_, message, span) {
  113251. return this.error$3(0, message, span, null);
  113252. },
  113253. withErrorMessage$1$2(message, callback) {
  113254. var error, stackTrace, t1, exception;
  113255. try {
  113256. t1 = callback.call$0();
  113257. return t1;
  113258. } catch (exception) {
  113259. t1 = A.unwrapException(exception);
  113260. if (type$.SourceSpanFormatException._is(t1)) {
  113261. error = t1;
  113262. stackTrace = A.getTraceFromException(exception);
  113263. t1 = J.get$span$z(error);
  113264. A.throwWithTrace0(new A.SourceSpanFormatException(error.get$source(), message, t1), error, stackTrace);
  113265. } else
  113266. throw exception;
  113267. }
  113268. },
  113269. withErrorMessage$2(message, callback) {
  113270. return this.withErrorMessage$1$2(message, callback, type$.dynamic);
  113271. },
  113272. wrapSpanFormatException$1$1(callback) {
  113273. var error, stackTrace, map, error0, stackTrace0, span, secondarySpans, t1, t2, span0, description, _0_0, error1, stackTrace1, span1, t3, exception, t4, _this = this,
  113274. _s8_ = "expected";
  113275. try {
  113276. try {
  113277. t3 = callback.call$0();
  113278. return t3;
  113279. } catch (exception) {
  113280. t3 = A.unwrapException(exception);
  113281. if (type$.SourceSpanFormatException._is(t3)) {
  113282. error = t3;
  113283. stackTrace = A.getTraceFromException(exception);
  113284. map = _this._parser1$_interpolationMap;
  113285. if (map == null)
  113286. throw exception;
  113287. A.throwWithTrace0(map.mapException$1(error), error, stackTrace);
  113288. } else
  113289. throw exception;
  113290. }
  113291. } catch (exception) {
  113292. t3 = A.unwrapException(exception);
  113293. if (type$.MultiSourceSpanFormatException._is(t3)) {
  113294. error0 = t3;
  113295. stackTrace0 = A.getTraceFromException(exception);
  113296. span = J.get$span$z(error0);
  113297. t3 = type$.FileSpan;
  113298. t4 = type$.String;
  113299. secondarySpans = error0.get$secondarySpans().cast$2$0(0, t3, t4);
  113300. if (A.startsWithIgnoreCase0(error0._span_exception$_message, _s8_)) {
  113301. span = _this._parser1$_adjustExceptionSpan$1(span);
  113302. t1 = A.LinkedHashMap_LinkedHashMap$_empty(t3, t4);
  113303. for (t3 = A.MapExtensions_get_pairs0(secondarySpans, t3, t4), t3 = t3.get$iterator(t3); t3.moveNext$0();) {
  113304. t2 = t3.get$current(t3);
  113305. span0 = null;
  113306. description = null;
  113307. _0_0 = t2;
  113308. span0 = _0_0._0;
  113309. description = _0_0._1;
  113310. J.$indexSet$ax(t1, _this._parser1$_adjustExceptionSpan$1(span0), description);
  113311. }
  113312. secondarySpans = t1;
  113313. }
  113314. A.throwWithTrace0(A.MultiSpanSassFormatException$0(error0._span_exception$_message, span, error0.get$primaryLabel(), secondarySpans, null), error0, stackTrace0);
  113315. } else if (type$.SourceSpanFormatException._is(t3)) {
  113316. error1 = t3;
  113317. stackTrace1 = A.getTraceFromException(exception);
  113318. span1 = J.get$span$z(error1);
  113319. if (A.startsWithIgnoreCase0(error1._span_exception$_message, _s8_))
  113320. span1 = _this._parser1$_adjustExceptionSpan$1(span1);
  113321. t1 = error1._span_exception$_message;
  113322. t2 = span1;
  113323. A.throwWithTrace0(new A.SassFormatException0(B.Set_empty, t1, t2), error1, stackTrace1);
  113324. } else
  113325. throw exception;
  113326. }
  113327. },
  113328. wrapSpanFormatException$1(callback) {
  113329. return this.wrapSpanFormatException$1$1(callback, type$.dynamic);
  113330. },
  113331. _parser1$_adjustExceptionSpan$1(span) {
  113332. var start, t1;
  113333. if (span.get$length(span) > 0)
  113334. return span;
  113335. start = this._parser1$_firstNewlineBefore$1(span.get$start(span));
  113336. if (start.$eq(0, span.get$start(span)))
  113337. t1 = span;
  113338. else {
  113339. t1 = start.offset;
  113340. t1 = A._FileSpan$(start.file, t1, t1);
  113341. }
  113342. return t1;
  113343. },
  113344. _parser1$_firstNewlineBefore$1($location) {
  113345. var lastNewline, codeUnit,
  113346. t1 = $location.file,
  113347. t2 = $location.offset,
  113348. text = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1._decodedChars, 0, t2), 0, null),
  113349. index = t2 - 1;
  113350. for (lastNewline = null; index >= 0;) {
  113351. codeUnit = text.charCodeAt(index);
  113352. if (!(codeUnit === 32 || codeUnit === 9 || codeUnit === 10 || codeUnit === 13 || codeUnit === 12)) {
  113353. if (lastNewline == null)
  113354. t1 = $location;
  113355. else {
  113356. t2 = new A.FileLocation(t1, lastNewline);
  113357. t2.FileLocation$_$2(t1, lastNewline);
  113358. t1 = t2;
  113359. }
  113360. return t1;
  113361. }
  113362. if (codeUnit === 10 || codeUnit === 13 || codeUnit === 12)
  113363. lastNewline = index;
  113364. --index;
  113365. }
  113366. return $location;
  113367. }
  113368. };
  113369. A.Parser__parseIdentifier_closure0.prototype = {
  113370. call$0() {
  113371. var t1 = this.$this,
  113372. result = t1.identifier$0();
  113373. t1.scanner.expectDone$0();
  113374. return result;
  113375. },
  113376. $signature: 31
  113377. };
  113378. A.Parser_escape_closure0.prototype = {
  113379. call$1(char) {
  113380. return char === 32 || char === 9 || char === 10 || char === 13 || char === 12;
  113381. },
  113382. $signature: 32
  113383. };
  113384. A.Parser_scanIdentChar_matches0.prototype = {
  113385. call$1(actual) {
  113386. var t1 = this.char;
  113387. return this.caseSensitive ? actual === t1 : A.characterEqualsIgnoreCase0(t1, actual);
  113388. },
  113389. $signature: 47
  113390. };
  113391. A.Parser_spanFrom_closure0.prototype = {
  113392. call$0() {
  113393. return this.$this._parser1$_interpolationMap.mapSpan$1(this.span);
  113394. },
  113395. $signature: 29
  113396. };
  113397. A.PlaceholderSelector0.prototype = {
  113398. accept$1$1(visitor) {
  113399. return visitor.visitPlaceholderSelector$1(this);
  113400. },
  113401. accept$1(visitor) {
  113402. return this.accept$1$1(visitor, type$.dynamic);
  113403. },
  113404. addSuffix$1(suffix) {
  113405. return new A.PlaceholderSelector0(this.name + suffix, this.span);
  113406. },
  113407. $eq(_, other) {
  113408. if (other == null)
  113409. return false;
  113410. return other instanceof A.PlaceholderSelector0 && other.name === this.name;
  113411. },
  113412. get$hashCode(_) {
  113413. return B.JSString_methods.get$hashCode(this.name);
  113414. }
  113415. };
  113416. A.PlainCssCallable0.prototype = {
  113417. $eq(_, other) {
  113418. if (other == null)
  113419. return false;
  113420. return other instanceof A.PlainCssCallable0 && this.name === other.name;
  113421. },
  113422. get$hashCode(_) {
  113423. return B.JSString_methods.get$hashCode(this.name);
  113424. },
  113425. $isAsyncCallable0: 1,
  113426. $isCallable: 1,
  113427. get$name(receiver) {
  113428. return this.name;
  113429. }
  113430. };
  113431. A.PrefixedMapView0.prototype = {
  113432. get$keys(_) {
  113433. return new A._PrefixedKeys0(this);
  113434. },
  113435. get$length(_) {
  113436. var t1 = this._prefixed_map_view0$_map;
  113437. return t1.get$length(t1);
  113438. },
  113439. get$isEmpty(_) {
  113440. var t1 = this._prefixed_map_view0$_map;
  113441. return t1.get$isEmpty(t1);
  113442. },
  113443. get$isNotEmpty(_) {
  113444. var t1 = this._prefixed_map_view0$_map;
  113445. return t1.get$isNotEmpty(t1);
  113446. },
  113447. $index(_, key) {
  113448. return typeof key == "string" && B.JSString_methods.startsWith$1(key, this._prefixed_map_view0$_prefix) ? this._prefixed_map_view0$_map.$index(0, J.substring$1$s(key, this._prefixed_map_view0$_prefix.length)) : null;
  113449. },
  113450. containsKey$1(key) {
  113451. return typeof key == "string" && B.JSString_methods.startsWith$1(key, this._prefixed_map_view0$_prefix) && this._prefixed_map_view0$_map.containsKey$1(J.substring$1$s(key, this._prefixed_map_view0$_prefix.length));
  113452. }
  113453. };
  113454. A._PrefixedKeys0.prototype = {
  113455. get$length(_) {
  113456. var t1 = this._prefixed_map_view0$_view._prefixed_map_view0$_map;
  113457. return t1.get$length(t1);
  113458. },
  113459. get$iterator(_) {
  113460. var t1 = this._prefixed_map_view0$_view._prefixed_map_view0$_map;
  113461. t1 = J.map$1$1$ax(t1.get$keys(t1), new A._PrefixedKeys_iterator_closure0(this), type$.String);
  113462. return t1.get$iterator(t1);
  113463. },
  113464. contains$1(_, key) {
  113465. return this._prefixed_map_view0$_view.containsKey$1(key);
  113466. }
  113467. };
  113468. A._PrefixedKeys_iterator_closure0.prototype = {
  113469. call$1(key) {
  113470. return this.$this._prefixed_map_view0$_view._prefixed_map_view0$_prefix + key;
  113471. },
  113472. $signature: 6
  113473. };
  113474. A.ProphotoRgbColorSpace0.prototype = {
  113475. get$isBoundedInternal() {
  113476. return true;
  113477. },
  113478. toLinear$1(channel) {
  113479. var abs = Math.abs(channel);
  113480. return abs <= 0.03125 ? channel / 16 : J.get$sign$in(channel) * Math.pow(abs, 1.8);
  113481. },
  113482. fromLinear$1(channel) {
  113483. var abs = Math.abs(channel);
  113484. return abs >= 0.001953125 ? J.get$sign$in(channel) * Math.pow(abs, 0.5555555555555556) : 16 * channel;
  113485. },
  113486. transformationMatrix$1(dest) {
  113487. var t1;
  113488. $label0$0: {
  113489. if (B.SrgbLinearColorSpace_sEs0 === dest || B.SrgbColorSpace_AD40 === dest || B.RgbColorSpace_mlz0 === dest) {
  113490. t1 = $.$get$linearProphotoRgbToLinearSrgb0();
  113491. break $label0$0;
  113492. }
  113493. if (B.A98RgbColorSpace_bdu0 === dest) {
  113494. t1 = $.$get$linearProphotoRgbToLinearA98Rgb0();
  113495. break $label0$0;
  113496. }
  113497. if (B.DisplayP3ColorSpace_NQk0 === dest) {
  113498. t1 = $.$get$linearProphotoRgbToLinearDisplayP30();
  113499. break $label0$0;
  113500. }
  113501. if (B.Rec2020ColorSpace_2jN0 === dest) {
  113502. t1 = $.$get$linearProphotoRgbToLinearRec20200();
  113503. break $label0$0;
  113504. }
  113505. if (B.XyzD65ColorSpace_4CA0 === dest) {
  113506. t1 = $.$get$linearProphotoRgbToXyzD650();
  113507. break $label0$0;
  113508. }
  113509. if (B.XyzD50ColorSpace_2No0 === dest) {
  113510. t1 = $.$get$linearProphotoRgbToXyzD500();
  113511. break $label0$0;
  113512. }
  113513. if (B.LmsColorSpace_8I80 === dest) {
  113514. t1 = $.$get$linearProphotoRgbToLms0();
  113515. break $label0$0;
  113516. }
  113517. t1 = this.super$ColorSpace$transformationMatrix0(dest);
  113518. break $label0$0;
  113519. }
  113520. return t1;
  113521. }
  113522. };
  113523. A.PseudoSelector0.prototype = {
  113524. get$isHostContext() {
  113525. return this.isClass && this.name === "host-context" && this.selector != null;
  113526. },
  113527. get$hasComplicatedSuperselectorSemantics() {
  113528. return !this.isClass || this.selector != null;
  113529. },
  113530. get$specificity() {
  113531. var result, _this = this,
  113532. value = _this._pseudo$__PseudoSelector_specificity_FI;
  113533. if (value === $) {
  113534. result = new A.PseudoSelector_specificity_closure0(_this).call$0();
  113535. _this._pseudo$__PseudoSelector_specificity_FI !== $ && A.throwUnnamedLateFieldADI();
  113536. _this._pseudo$__PseudoSelector_specificity_FI = result;
  113537. value = result;
  113538. }
  113539. return value;
  113540. },
  113541. withSelector$1(selector) {
  113542. var _this = this;
  113543. return A.PseudoSelector$0(_this.name, _this.span, _this.argument, !_this.isClass, selector);
  113544. },
  113545. addSuffix$1(suffix) {
  113546. var _this = this;
  113547. if (_this.argument != null || _this.selector != null)
  113548. _this.super$SimpleSelector$addSuffix0(suffix);
  113549. return A.PseudoSelector$0(_this.name + suffix, _this.span, null, !_this.isClass, null);
  113550. },
  113551. unify$1(compound) {
  113552. var other, result, t2, addedThis, _i, simple, _this = this,
  113553. t1 = _this.name;
  113554. if (t1 === "host" || t1 === "host-context") {
  113555. if (!B.JSArray_methods.every$1(compound, new A.PseudoSelector_unify_closure0()))
  113556. return null;
  113557. } else {
  113558. t1 = false;
  113559. if (compound.length === 1) {
  113560. other = compound[0];
  113561. if (!(other instanceof A.UniversalSelector0)) {
  113562. if (other instanceof A.PseudoSelector0)
  113563. t1 = other.isClass && other.name === "host" || other.get$isHostContext();
  113564. } else
  113565. t1 = true;
  113566. } else
  113567. other = null;
  113568. if (t1)
  113569. return other.unify$1(A._setArrayType([_this], type$.JSArray_SimpleSelector_2));
  113570. }
  113571. if (B.JSArray_methods.contains$1(compound, _this))
  113572. return compound;
  113573. result = A._setArrayType([], type$.JSArray_SimpleSelector_2);
  113574. for (t1 = compound.length, t2 = !_this.isClass, addedThis = false, _i = 0; _i < compound.length; compound.length === t1 || (0, A.throwConcurrentModificationError)(compound), ++_i) {
  113575. simple = compound[_i];
  113576. if (simple instanceof A.PseudoSelector0 && !simple.isClass) {
  113577. if (t2)
  113578. return null;
  113579. result.push(_this);
  113580. addedThis = true;
  113581. }
  113582. result.push(simple);
  113583. }
  113584. if (!addedThis)
  113585. result.push(_this);
  113586. return result;
  113587. },
  113588. isSuperselector$1(other) {
  113589. var selector, t1, t2, _this = this;
  113590. if (_this.super$SimpleSelector$isSuperselector0(other))
  113591. return true;
  113592. selector = _this.selector;
  113593. if (selector == null)
  113594. return _this.$eq(0, other);
  113595. if (other instanceof A.PseudoSelector0 && !_this.isClass && !other.isClass && _this.normalizedName === "slotted" && other.name === _this.name) {
  113596. t1 = A.NullableExtension_andThen0(other.selector, selector.get$isSuperselector());
  113597. return t1 == null ? false : t1;
  113598. }
  113599. t1 = type$.JSArray_SimpleSelector_2;
  113600. t2 = _this.span;
  113601. return A.compoundIsSuperselector0(A.CompoundSelector$0(A._setArrayType([_this], t1), t2), A.CompoundSelector$0(A._setArrayType([other], t1), t2), null);
  113602. },
  113603. accept$1$1(visitor) {
  113604. return visitor.visitPseudoSelector$1(this);
  113605. },
  113606. accept$1(visitor) {
  113607. return this.accept$1$1(visitor, type$.dynamic);
  113608. },
  113609. $eq(_, other) {
  113610. var _this = this;
  113611. if (other == null)
  113612. return false;
  113613. return other instanceof A.PseudoSelector0 && other.name === _this.name && other.isClass === _this.isClass && other.argument == _this.argument && J.$eq$(other.selector, _this.selector);
  113614. },
  113615. get$hashCode(_) {
  113616. var _this = this,
  113617. t1 = B.JSString_methods.get$hashCode(_this.name),
  113618. t2 = !_this.isClass ? 519018 : 218159;
  113619. return t1 ^ t2 ^ J.get$hashCode$(_this.argument) ^ J.get$hashCode$(_this.selector);
  113620. }
  113621. };
  113622. A.PseudoSelector_specificity_closure0.prototype = {
  113623. call$0() {
  113624. var selector, t2,
  113625. t1 = this.$this;
  113626. if (!t1.isClass)
  113627. return 1;
  113628. selector = t1.selector;
  113629. if (selector == null)
  113630. return A.SimpleSelector0.prototype.get$specificity.call(t1);
  113631. switch (t1.normalizedName) {
  113632. case "where":
  113633. return 0;
  113634. case "is":
  113635. case "not":
  113636. case "has":
  113637. case "matches":
  113638. t1 = selector.components;
  113639. return A.IterableIntegerExtension_get_max(new A.MappedListIterable(t1, new A.PseudoSelector_specificity__closure1(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,int>")));
  113640. case "nth-child":
  113641. case "nth-last-child":
  113642. t1 = A.SimpleSelector0.prototype.get$specificity.call(t1);
  113643. t2 = selector.components;
  113644. return t1 + A.IterableIntegerExtension_get_max(new A.MappedListIterable(t2, new A.PseudoSelector_specificity__closure2(), A._arrayInstanceType(t2)._eval$1("MappedListIterable<1,int>")));
  113645. default:
  113646. return A.SimpleSelector0.prototype.get$specificity.call(t1);
  113647. }
  113648. },
  113649. $signature: 10
  113650. };
  113651. A.PseudoSelector_specificity__closure1.prototype = {
  113652. call$1(component) {
  113653. return component.get$specificity();
  113654. },
  113655. $signature: 251
  113656. };
  113657. A.PseudoSelector_specificity__closure2.prototype = {
  113658. call$1(component) {
  113659. return component.get$specificity();
  113660. },
  113661. $signature: 251
  113662. };
  113663. A.PseudoSelector_unify_closure0.prototype = {
  113664. call$1(simple) {
  113665. var t1;
  113666. if (simple instanceof A.PseudoSelector0)
  113667. t1 = simple.isClass && simple.name === "host" || simple.selector != null;
  113668. else
  113669. t1 = false;
  113670. return t1;
  113671. },
  113672. $signature: 14
  113673. };
  113674. A.PublicMemberMapView0.prototype = {
  113675. get$keys(_) {
  113676. var t1 = this._public_member_map_view0$_inner;
  113677. return J.where$1$ax(t1.get$keys(t1), A.utils1__isPublic$closure());
  113678. },
  113679. containsKey$1(key) {
  113680. return typeof key == "string" && A.isPublic0(key) && this._public_member_map_view0$_inner.containsKey$1(key);
  113681. },
  113682. $index(_, key) {
  113683. if (typeof key == "string" && A.isPublic0(key))
  113684. return this._public_member_map_view0$_inner.$index(0, key);
  113685. return null;
  113686. }
  113687. };
  113688. A.QualifiedName0.prototype = {
  113689. $eq(_, other) {
  113690. if (other == null)
  113691. return false;
  113692. return other instanceof A.QualifiedName0 && other.name === this.name && other.namespace == this.namespace;
  113693. },
  113694. get$hashCode(_) {
  113695. return B.JSString_methods.get$hashCode(this.name) ^ J.get$hashCode$(this.namespace);
  113696. },
  113697. toString$0(_) {
  113698. var t1 = this.namespace,
  113699. t2 = this.name;
  113700. return t1 == null ? t2 : t1 + "|" + t2;
  113701. }
  113702. };
  113703. A.Rec2020ColorSpace0.prototype = {
  113704. get$isBoundedInternal() {
  113705. return true;
  113706. },
  113707. toLinear$1(channel) {
  113708. var abs = Math.abs(channel);
  113709. return abs < 0.08124285829863151 ? channel / 4.5 : J.get$sign$in(channel) * Math.pow((abs + 1.09929682680944 - 1) / 1.09929682680944, 2.2222222222222223);
  113710. },
  113711. fromLinear$1(channel) {
  113712. var abs = Math.abs(channel);
  113713. return abs > 0.018053968510807 ? J.get$sign$in(channel) * (1.09929682680944 * Math.pow(abs, 0.45) - 0.09929682680944008) : 4.5 * channel;
  113714. },
  113715. transformationMatrix$1(dest) {
  113716. var t1;
  113717. $label0$0: {
  113718. if (B.SrgbLinearColorSpace_sEs0 === dest || B.SrgbColorSpace_AD40 === dest || B.RgbColorSpace_mlz0 === dest) {
  113719. t1 = $.$get$linearRec2020ToLinearSrgb0();
  113720. break $label0$0;
  113721. }
  113722. if (B.A98RgbColorSpace_bdu0 === dest) {
  113723. t1 = $.$get$linearRec2020ToLinearA98Rgb0();
  113724. break $label0$0;
  113725. }
  113726. if (B.DisplayP3ColorSpace_NQk0 === dest) {
  113727. t1 = $.$get$linearRec2020ToLinearDisplayP30();
  113728. break $label0$0;
  113729. }
  113730. if (B.ProphotoRgbColorSpace_KiG0 === dest) {
  113731. t1 = $.$get$linearRec2020ToLinearProphotoRgb0();
  113732. break $label0$0;
  113733. }
  113734. if (B.XyzD65ColorSpace_4CA0 === dest) {
  113735. t1 = $.$get$linearRec2020ToXyzD650();
  113736. break $label0$0;
  113737. }
  113738. if (B.XyzD50ColorSpace_2No0 === dest) {
  113739. t1 = $.$get$linearRec2020ToXyzD500();
  113740. break $label0$0;
  113741. }
  113742. if (B.LmsColorSpace_8I80 === dest) {
  113743. t1 = $.$get$linearRec2020ToLms0();
  113744. break $label0$0;
  113745. }
  113746. t1 = this.super$ColorSpace$transformationMatrix0(dest);
  113747. break $label0$0;
  113748. }
  113749. return t1;
  113750. }
  113751. };
  113752. A.JSClass0.prototype = {};
  113753. A.JSClassExtension_setCustomInspect_closure.prototype = {
  113754. call$4($self, _, __, ___) {
  113755. return this.inspect.call$1($self);
  113756. },
  113757. call$3($self, _, __) {
  113758. return this.call$4($self, _, __, null);
  113759. },
  113760. "call*": "call$4",
  113761. $requiredArgCount: 3,
  113762. $defaultValues() {
  113763. return [null];
  113764. },
  113765. $signature: 562
  113766. };
  113767. A.JSClassExtension_get_defineStaticMethod_closure.prototype = {
  113768. call$2($name, body) {
  113769. this._this[$name] = A.allowInteropNamed($name, body);
  113770. return null;
  113771. },
  113772. $signature: 135
  113773. };
  113774. A.JSClassExtension_get_defineMethod_closure.prototype = {
  113775. call$2($name, body) {
  113776. J.get$$prototype$x(this._this)[$name] = A.allowInteropCaptureThisNamed($name, body);
  113777. return null;
  113778. },
  113779. $signature: 135
  113780. };
  113781. A.JSClassExtension_get_defineGetter_closure.prototype = {
  113782. call$2($name, body) {
  113783. A.defineGetter(J.get$$prototype$x(this._this), $name, body, null);
  113784. return null;
  113785. },
  113786. $signature: 135
  113787. };
  113788. A.RenderContext0.prototype = {};
  113789. A.RenderContextOptions0.prototype = {};
  113790. A.RenderContextResult0.prototype = {};
  113791. A.RenderContextResultStats0.prototype = {};
  113792. A.RenderOptions.prototype = {};
  113793. A.RenderResult.prototype = {};
  113794. A.RenderResultStats.prototype = {};
  113795. A.ReplaceExpressionVisitor0.prototype = {
  113796. visitBinaryOperationExpression$1(_, node) {
  113797. return new A.BinaryOperationExpression0(node.operator, node.left.accept$1(this), node.right.accept$1(this), false);
  113798. },
  113799. visitBooleanExpression$1(_, node) {
  113800. return node;
  113801. },
  113802. visitColorExpression$1(_, node) {
  113803. return node;
  113804. },
  113805. visitFunctionExpression$1(_, node) {
  113806. var t1 = node.originalName,
  113807. t2 = this.visitArgumentInvocation$1(node.$arguments);
  113808. return new A.FunctionExpression0(node.namespace, A.stringReplaceAllUnchecked(t1, "_", "-"), t1, t2, node.span);
  113809. },
  113810. visitInterpolatedFunctionExpression$1(_, node) {
  113811. return new A.InterpolatedFunctionExpression0(this.visitInterpolation$1(node.name), this.visitArgumentInvocation$1(node.$arguments), node.span);
  113812. },
  113813. visitIfExpression$1(_, node) {
  113814. return new A.IfExpression0(this.visitArgumentInvocation$1(node.$arguments), node.span);
  113815. },
  113816. visitListExpression$1(_, node) {
  113817. var t1 = node.contents;
  113818. return new A.ListExpression0(A.List_List$unmodifiable(new A.MappedListIterable(t1, new A.ReplaceExpressionVisitor_visitListExpression_closure0(this), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Expression0>")), type$.Expression_2), node.separator, node.hasBrackets, node.span);
  113819. },
  113820. visitMapExpression$1(_, node) {
  113821. var t2, t3, _i, t4, key, value,
  113822. t1 = A._setArrayType([], type$.JSArray_Record_2_Expression_and_Expression_2);
  113823. for (t2 = node.pairs, t3 = t2.length, _i = 0; _i < t3; ++_i) {
  113824. t4 = t2[_i];
  113825. key = t4._0;
  113826. value = t4._1;
  113827. t1.push(new A._Record_2(key.accept$1(this), value.accept$1(this)));
  113828. }
  113829. return new A.MapExpression0(A.List_List$unmodifiable(t1, type$.Record_2_Expression_and_Expression_2), node.span);
  113830. },
  113831. visitNullExpression$1(_, node) {
  113832. return node;
  113833. },
  113834. visitNumberExpression$1(_, node) {
  113835. return node;
  113836. },
  113837. visitParenthesizedExpression$1(_, node) {
  113838. return new A.ParenthesizedExpression0(node.expression.accept$1(this), node.span);
  113839. },
  113840. visitSelectorExpression$1(_, node) {
  113841. return node;
  113842. },
  113843. visitStringExpression$1(_, node) {
  113844. return new A.StringExpression0(this.visitInterpolation$1(node.text), node.hasQuotes);
  113845. },
  113846. visitSupportsExpression$1(_, node) {
  113847. return new A.SupportsExpression0(this.visitSupportsCondition$1(node.condition));
  113848. },
  113849. visitUnaryOperationExpression$1(_, node) {
  113850. return new A.UnaryOperationExpression0(node.operator, node.operand.accept$1(this), node.span);
  113851. },
  113852. visitValueExpression$1(_, node) {
  113853. return node;
  113854. },
  113855. visitVariableExpression$1(_, node) {
  113856. return node;
  113857. },
  113858. visitArgumentInvocation$1(invocation) {
  113859. var t5, t6, _this = this,
  113860. t1 = invocation.positional,
  113861. t2 = type$.String,
  113862. t3 = type$.Expression_2,
  113863. t4 = A.LinkedHashMap_LinkedHashMap$_empty(t2, t3);
  113864. for (t5 = A.MapExtensions_get_pairs0(invocation.named, t2, t3), t5 = t5.get$iterator(t5); t5.moveNext$0();) {
  113865. t6 = t5.get$current(t5);
  113866. t4.$indexSet(0, t6._0, t6._1.accept$1(_this));
  113867. }
  113868. t5 = invocation.rest;
  113869. t5 = t5 == null ? null : t5.accept$1(_this);
  113870. t6 = invocation.keywordRest;
  113871. t6 = t6 == null ? null : t6.accept$1(_this);
  113872. return new A.ArgumentInvocation0(A.List_List$unmodifiable(new A.MappedListIterable(t1, new A.ReplaceExpressionVisitor_visitArgumentInvocation_closure0(_this), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Expression0>")), t3), A.ConstantMap_ConstantMap$from(t4, t2, t3), t5, t6, invocation.span);
  113873. },
  113874. visitSupportsCondition$1(condition) {
  113875. var _this = this;
  113876. if (condition instanceof A.SupportsOperation0)
  113877. return A.SupportsOperation$0(_this.visitSupportsCondition$1(condition.left), _this.visitSupportsCondition$1(condition.right), condition.operator, condition.span);
  113878. else if (condition instanceof A.SupportsNegation0)
  113879. return new A.SupportsNegation0(_this.visitSupportsCondition$1(condition.condition), condition.span);
  113880. else if (condition instanceof A.SupportsInterpolation0)
  113881. return new A.SupportsInterpolation0(condition.expression.accept$1(_this), condition.span);
  113882. else if (condition instanceof A.SupportsDeclaration0)
  113883. return new A.SupportsDeclaration0(condition.name.accept$1(_this), condition.value.accept$1(_this), condition.span);
  113884. else
  113885. throw A.wrapException(A.SassException$0("BUG: Unknown SupportsCondition " + condition.toString$0(0) + ".", condition.get$span(condition), null));
  113886. },
  113887. visitInterpolation$1(interpolation) {
  113888. var t1 = interpolation.contents;
  113889. return A.Interpolation$0(new A.MappedListIterable(t1, new A.ReplaceExpressionVisitor_visitInterpolation_closure0(this), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Object>")), interpolation.spans, interpolation.span);
  113890. }
  113891. };
  113892. A.ReplaceExpressionVisitor_visitListExpression_closure0.prototype = {
  113893. call$1(item) {
  113894. return item.accept$1(this.$this);
  113895. },
  113896. $signature: 253
  113897. };
  113898. A.ReplaceExpressionVisitor_visitArgumentInvocation_closure0.prototype = {
  113899. call$1(expression) {
  113900. return expression.accept$1(this.$this);
  113901. },
  113902. $signature: 253
  113903. };
  113904. A.ReplaceExpressionVisitor_visitInterpolation_closure0.prototype = {
  113905. call$1(node) {
  113906. return node instanceof A.Expression0 ? node.accept$1(this.$this) : node;
  113907. },
  113908. $signature: 79
  113909. };
  113910. A.ImporterResult0.prototype = {
  113911. get$sourceMapUrl(_) {
  113912. var t1 = this._result$_sourceMapUrl;
  113913. return t1 == null ? A.Uri_Uri$dataFromString(this.contents, B.C_Utf8Codec, null) : t1;
  113914. }
  113915. };
  113916. A.ReturnRule0.prototype = {
  113917. accept$1$1(visitor) {
  113918. return visitor.visitReturnRule$1(0, this);
  113919. },
  113920. accept$1(visitor) {
  113921. return this.accept$1$1(visitor, type$.dynamic);
  113922. },
  113923. toString$0(_) {
  113924. return "@return " + this.expression.toString$0(0) + ";";
  113925. },
  113926. get$span(receiver) {
  113927. return this.span;
  113928. }
  113929. };
  113930. A.RgbColorSpace0.prototype = {
  113931. get$isBoundedInternal() {
  113932. return true;
  113933. },
  113934. get$isLegacyInternal() {
  113935. return true;
  113936. },
  113937. convert$5(dest, red, green, blue, alpha) {
  113938. var t1 = red == null ? null : red / 255,
  113939. t2 = green == null ? null : green / 255;
  113940. return B.SrgbColorSpace_AD40.convert$5(dest, t1, t2, blue == null ? null : blue / 255, alpha);
  113941. },
  113942. toLinear$1(channel) {
  113943. return A.srgbAndDisplayP3ToLinear0(channel / 255);
  113944. },
  113945. fromLinear$1(channel) {
  113946. return A.srgbAndDisplayP3FromLinear0(channel) * 255;
  113947. }
  113948. };
  113949. A.SassParser0.prototype = {
  113950. get$currentIndentation() {
  113951. return this._sass0$_currentIndentation;
  113952. },
  113953. get$indented() {
  113954. return true;
  113955. },
  113956. styleRuleSelector$0() {
  113957. var t4,
  113958. t1 = this.scanner,
  113959. t2 = t1._string_scanner$_position,
  113960. t3 = new A.StringBuffer(""),
  113961. buffer = new A.InterpolationBuffer0(t3, A._setArrayType([], type$.JSArray_Object), A._setArrayType([], type$.JSArray_nullable_FileSpan));
  113962. do {
  113963. buffer.addInterpolation$1(this.almostAnyValue$1$omitComments(true));
  113964. t4 = A.Primitives_stringFromCharCode(10);
  113965. t4 = t3._contents += t4;
  113966. } while (B.JSString_methods.endsWith$1(B.JSString_methods.trimRight$0(t4.charCodeAt(0) == 0 ? t4 : t4), ",") && this.scanCharIf$1(new A.SassParser_styleRuleSelector_closure0()));
  113967. return buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  113968. },
  113969. expectStatementSeparator$1($name) {
  113970. var t1, _this = this;
  113971. if (!_this.atEndOfStatement$0())
  113972. _this._sass0$_expectNewline$0();
  113973. if (_this._sass0$_peekIndentation$0() <= _this._sass0$_currentIndentation)
  113974. return;
  113975. t1 = $name == null ? "here" : "beneath a " + $name;
  113976. _this.scanner.error$2$position(0, "Nothing may be indented " + t1 + ".", _this._sass0$_nextIndentationEnd.position);
  113977. },
  113978. expectStatementSeparator$0() {
  113979. return this.expectStatementSeparator$1(null);
  113980. },
  113981. atEndOfStatement$0() {
  113982. var t1 = this.scanner.peekChar$0();
  113983. if (t1 == null)
  113984. t1 = null;
  113985. else
  113986. t1 = t1 === 10 || t1 === 13 || t1 === 12;
  113987. return t1 !== false;
  113988. },
  113989. lookingAtChildren$0() {
  113990. return this.atEndOfStatement$0() && this._sass0$_peekIndentation$0() > this._sass0$_currentIndentation;
  113991. },
  113992. importArgument$0() {
  113993. var url, span, innerError, stackTrace, t1, _0_0, start, next, t2, exception, _this = this;
  113994. $label0$0: {
  113995. t1 = _this.scanner;
  113996. _0_0 = t1.peekChar$0();
  113997. if (117 === _0_0 || 85 === _0_0) {
  113998. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  113999. if (_this.scanIdentifier$1("url"))
  114000. if (t1.scanChar$1(40)) {
  114001. t1.set$state(start);
  114002. return _this.super$StylesheetParser$importArgument0();
  114003. } else
  114004. t1.set$state(start);
  114005. break $label0$0;
  114006. }
  114007. if (39 === _0_0 || 34 === _0_0)
  114008. return _this.super$StylesheetParser$importArgument0();
  114009. }
  114010. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  114011. next = t1.peekChar$0();
  114012. while (true) {
  114013. t2 = false;
  114014. if (next != null)
  114015. if (next !== 44)
  114016. if (next !== 59)
  114017. t2 = !(next === 10 || next === 13 || next === 12);
  114018. if (!t2)
  114019. break;
  114020. t1.readChar$0();
  114021. next = t1.peekChar$0();
  114022. }
  114023. url = t1.substring$1(0, start.position);
  114024. span = t1.spanFrom$1(start);
  114025. if (_this.isPlainImportUrl$1(url))
  114026. return new A.StaticImport0(new A.Interpolation0(A.List_List$unmodifiable([A.serializeValue0(new A.SassString0(url, true), true, true)], type$.Object), B.List_null, span), null, span);
  114027. else
  114028. try {
  114029. t1 = _this.parseImportUrl$1(url);
  114030. return new A.DynamicImport0(t1, span);
  114031. } catch (exception) {
  114032. t1 = A.unwrapException(exception);
  114033. if (type$.FormatException._is(t1)) {
  114034. innerError = t1;
  114035. stackTrace = A.getTraceFromException(exception);
  114036. _this.error$3(0, "Invalid URL: " + J.get$message$x(innerError), span, stackTrace);
  114037. } else
  114038. throw exception;
  114039. }
  114040. },
  114041. scanElse$1(ifIndentation) {
  114042. var t1, t2, startIndentation, startNextIndentation, startNextIndentationEnd, _this = this;
  114043. if (_this._sass0$_peekIndentation$0() !== ifIndentation)
  114044. return false;
  114045. t1 = _this.scanner;
  114046. t2 = t1._string_scanner$_position;
  114047. startIndentation = _this._sass0$_currentIndentation;
  114048. startNextIndentation = _this._sass0$_nextIndentation;
  114049. startNextIndentationEnd = _this._sass0$_nextIndentationEnd;
  114050. _this._sass0$_readIndentation$0();
  114051. if (t1.scanChar$1(64) && _this.scanIdentifier$1("else"))
  114052. return true;
  114053. t1.set$state(new A._SpanScannerState(t1, t2));
  114054. _this._sass0$_currentIndentation = startIndentation;
  114055. _this._sass0$_nextIndentation = startNextIndentation;
  114056. _this._sass0$_nextIndentationEnd = startNextIndentationEnd;
  114057. return false;
  114058. },
  114059. children$1(_, child) {
  114060. var children = A._setArrayType([], type$.JSArray_Statement_2);
  114061. this._sass0$_whileIndentedLower$1(new A.SassParser_children_closure0(this, child, children));
  114062. return children;
  114063. },
  114064. statements$1(statement) {
  114065. var statements, t2, _1_0,
  114066. t1 = this.scanner,
  114067. _0_0 = t1.peekChar$0();
  114068. if (9 === _0_0 || 32 === _0_0)
  114069. t1.error$3$length$position(0, string$.Indent, t1._string_scanner$_position, 0);
  114070. statements = A._setArrayType([], type$.JSArray_Statement_2);
  114071. for (t2 = t1.string.length; t1._string_scanner$_position !== t2;) {
  114072. _1_0 = this._sass0$_child$1(statement);
  114073. if (_1_0 != null)
  114074. statements.push(_1_0);
  114075. this._sass0$_readIndentation$0();
  114076. }
  114077. return statements;
  114078. },
  114079. _sass0$_child$1(child) {
  114080. var _0_0, _this = this,
  114081. t1 = _this.scanner,
  114082. _1_0 = t1.peekChar$0();
  114083. $label0$0: {
  114084. if (13 === _1_0 || 10 === _1_0 || 12 === _1_0) {
  114085. t1 = null;
  114086. break $label0$0;
  114087. }
  114088. if (36 === _1_0) {
  114089. t1 = _this.variableDeclarationWithoutNamespace$0();
  114090. break $label0$0;
  114091. }
  114092. if (47 === _1_0) {
  114093. _0_0 = t1.peekChar$1(1);
  114094. $label1$1: {
  114095. if (47 === _0_0) {
  114096. t1 = _this._sass0$_silentComment$0();
  114097. break $label1$1;
  114098. }
  114099. if (42 === _0_0) {
  114100. t1 = _this._sass0$_loudComment$0();
  114101. break $label1$1;
  114102. }
  114103. t1 = child.call$0();
  114104. break $label1$1;
  114105. }
  114106. break $label0$0;
  114107. }
  114108. t1 = child.call$0();
  114109. break $label0$0;
  114110. }
  114111. return t1;
  114112. },
  114113. _sass0$_silentComment$0() {
  114114. var buffer, parentIndentation, t3, t4, t5, commentPrefix, i, t6, i0, t7, _this = this,
  114115. t1 = _this.scanner,
  114116. t2 = t1._string_scanner$_position;
  114117. t1.expect$1("//");
  114118. buffer = new A.StringBuffer("");
  114119. parentIndentation = _this._sass0$_currentIndentation;
  114120. t3 = t1.string.length;
  114121. t4 = 1 + parentIndentation;
  114122. t5 = 2 + parentIndentation;
  114123. $label0$0:
  114124. do {
  114125. commentPrefix = t1.scanChar$1(47) ? "///" : "//";
  114126. for (i = commentPrefix.length; true;) {
  114127. t6 = buffer._contents += commentPrefix;
  114128. for (i0 = i; i0 < _this._sass0$_currentIndentation - parentIndentation; ++i0) {
  114129. t6 += A.Primitives_stringFromCharCode(32);
  114130. buffer._contents = t6;
  114131. }
  114132. while (true) {
  114133. if (t1._string_scanner$_position !== t3) {
  114134. t7 = t1.peekChar$0();
  114135. t7 = !(t7 === 10 || t7 === 13 || t7 === 12);
  114136. } else
  114137. t7 = false;
  114138. if (!t7)
  114139. break;
  114140. t6 += A.Primitives_stringFromCharCode(t1.readChar$0());
  114141. buffer._contents = t6;
  114142. }
  114143. buffer._contents = t6 + "\n";
  114144. if (_this._sass0$_peekIndentation$0() < parentIndentation)
  114145. break $label0$0;
  114146. if (_this._sass0$_peekIndentation$0() === parentIndentation) {
  114147. if (t1.peekChar$1(t4) === 47 && t1.peekChar$1(t5) === 47)
  114148. _this._sass0$_readIndentation$0();
  114149. break;
  114150. }
  114151. _this._sass0$_readIndentation$0();
  114152. }
  114153. } while (t1.scan$1("//"));
  114154. t3 = buffer._contents;
  114155. return _this.lastSilentComment = new A.SilentComment0(t3.charCodeAt(0) == 0 ? t3 : t3, t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  114156. },
  114157. _sass0$_loudComment$0() {
  114158. var t2, t3, t4, buffer, parentIndentation, t5, t6, first, beginningOfComment, t7, end, i, _1_0, _0_0, endPosition, span, _this = this,
  114159. t1 = _this.scanner,
  114160. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  114161. t1.expect$1("/*");
  114162. t2 = new A.StringBuffer("");
  114163. t3 = A._setArrayType([], type$.JSArray_Object);
  114164. t4 = A._setArrayType([], type$.JSArray_nullable_FileSpan);
  114165. buffer = new A.InterpolationBuffer0(t2, t3, t4);
  114166. t2._contents = "" + "/*";
  114167. parentIndentation = _this._sass0$_currentIndentation;
  114168. for (t5 = t1.string, t6 = t5.length, first = true; true; first = false) {
  114169. if (first) {
  114170. beginningOfComment = t1._string_scanner$_position;
  114171. _this.spaces$0();
  114172. t7 = t1.peekChar$0();
  114173. if (t7 === 10 || t7 === 13 || t7 === 12) {
  114174. _this._sass0$_readIndentation$0();
  114175. t7 = A.Primitives_stringFromCharCode(32);
  114176. t2._contents += t7;
  114177. } else {
  114178. end = t1._string_scanner$_position;
  114179. t2._contents += B.JSString_methods.substring$2(t5, beginningOfComment, end);
  114180. }
  114181. } else {
  114182. t7 = t2._contents += "\n";
  114183. t2._contents = t7 + " * ";
  114184. }
  114185. for (i = 3; i < _this._sass0$_currentIndentation - parentIndentation; ++i) {
  114186. t7 = A.Primitives_stringFromCharCode(32);
  114187. t2._contents += t7;
  114188. }
  114189. for (; t1._string_scanner$_position !== t6;) {
  114190. _1_0 = t1.peekChar$0();
  114191. if (10 === _1_0 || 13 === _1_0 || 12 === _1_0)
  114192. break;
  114193. if (35 === _1_0) {
  114194. if (t1.peekChar$1(1) === 123) {
  114195. _0_0 = _this.singleInterpolation$0();
  114196. buffer._interpolation_buffer0$_flushText$0();
  114197. t3.push(_0_0._0);
  114198. t4.push(_0_0._1);
  114199. } else {
  114200. t7 = A.Primitives_stringFromCharCode(t1.readChar$0());
  114201. t2._contents += t7;
  114202. }
  114203. continue;
  114204. }
  114205. if (42 === _1_0) {
  114206. if (t1.peekChar$1(1) === 47) {
  114207. t3 = A.Primitives_stringFromCharCode(t1.readChar$0());
  114208. t2._contents += t3;
  114209. t3 = A.Primitives_stringFromCharCode(t1.readChar$0());
  114210. t2._contents += t3;
  114211. endPosition = t1._string_scanner$_position;
  114212. t2 = t1._sourceFile;
  114213. t3 = start.position;
  114214. span = new A._FileSpan(t2, t3, endPosition);
  114215. span._FileSpan$3(t2, t3, endPosition);
  114216. _this.whitespace$0();
  114217. while (true) {
  114218. t2 = t1.peekChar$0();
  114219. if (!((t2 === 10 || t2 === 13 || t2 === 12) && _this._sass0$_peekIndentation$0() > parentIndentation))
  114220. break;
  114221. for (; _this._sass0$_lookingAtDoubleNewline$0();)
  114222. _this._sass0$_expectNewline$0();
  114223. _this._sass0$_readIndentation$0();
  114224. _this.whitespace$0();
  114225. }
  114226. if (t1._string_scanner$_position !== t6) {
  114227. t2 = t1.peekChar$0();
  114228. t2 = !(t2 === 10 || t2 === 13 || t2 === 12);
  114229. } else
  114230. t2 = false;
  114231. if (t2) {
  114232. t2 = t1._string_scanner$_position;
  114233. while (true) {
  114234. if (t1._string_scanner$_position !== t6) {
  114235. t3 = t1.peekChar$0();
  114236. t3 = !(t3 === 10 || t3 === 13 || t3 === 12);
  114237. } else
  114238. t3 = false;
  114239. if (!t3)
  114240. break;
  114241. t1.readChar$0();
  114242. }
  114243. throw A.wrapException(A.MultiSpanSassFormatException$0("Unexpected text after end of comment", t1.spanFrom$1(new A._SpanScannerState(t1, t2)), "extra text", A.LinkedHashMap_LinkedHashMap$_literal([span, "comment"], type$.FileSpan, type$.String), null));
  114244. } else
  114245. return new A.LoudComment0(buffer.interpolation$1(span));
  114246. } else {
  114247. t7 = A.Primitives_stringFromCharCode(t1.readChar$0());
  114248. t2._contents += t7;
  114249. }
  114250. continue;
  114251. }
  114252. t7 = A.Primitives_stringFromCharCode(t1.readChar$0());
  114253. t2._contents += t7;
  114254. }
  114255. if (_this._sass0$_peekIndentation$0() <= parentIndentation)
  114256. break;
  114257. for (; _this._sass0$_lookingAtDoubleNewline$0();) {
  114258. _this._sass0$_expectNewline$0();
  114259. t7 = t2._contents += "\n";
  114260. t2._contents = t7 + " *";
  114261. }
  114262. _this._sass0$_readIndentation$0();
  114263. }
  114264. return new A.LoudComment0(buffer.interpolation$1(t1.spanFrom$1(start)));
  114265. },
  114266. whitespaceWithoutComments$0() {
  114267. var t1, t2, next;
  114268. for (t1 = this.scanner, t2 = t1.string.length; t1._string_scanner$_position !== t2;) {
  114269. next = t1.peekChar$0();
  114270. if (next !== 9 && next !== 32)
  114271. break;
  114272. t1.readChar$0();
  114273. }
  114274. },
  114275. loudComment$0() {
  114276. var next,
  114277. t1 = this.scanner;
  114278. t1.expect$1("/*");
  114279. for (; true;) {
  114280. next = t1.readChar$0();
  114281. if (next === 10 || next === 13 || next === 12)
  114282. t1.error$1(0, "expected */.");
  114283. if (next !== 42)
  114284. continue;
  114285. do
  114286. next = t1.readChar$0();
  114287. while (next === 42);
  114288. if (next === 47)
  114289. break;
  114290. }
  114291. },
  114292. _sass0$_expectNewline$0() {
  114293. var t1 = this.scanner,
  114294. _0_0 = t1.peekChar$0();
  114295. if (59 === _0_0)
  114296. t1.error$1(0, string$.semico);
  114297. if (13 === _0_0) {
  114298. t1.readChar$0();
  114299. if (t1.peekChar$0() === 10)
  114300. t1.readChar$0();
  114301. return;
  114302. }
  114303. if (10 === _0_0 || 12 === _0_0) {
  114304. t1.readChar$0();
  114305. return;
  114306. }
  114307. t1.error$1(0, "expected newline.");
  114308. },
  114309. _sass0$_lookingAtDoubleNewline$0() {
  114310. var t2, _0_0,
  114311. t1 = this.scanner,
  114312. _1_0 = t1.peekChar$0();
  114313. $label1$1: {
  114314. t2 = false;
  114315. if (13 === _1_0) {
  114316. _0_0 = t1.peekChar$1(1);
  114317. $label0$0: {
  114318. if (10 === _0_0) {
  114319. t1 = t1.peekChar$1(2);
  114320. t1 = t1 === 10 || t1 === 13 || t1 === 12;
  114321. break $label0$0;
  114322. }
  114323. if (13 === _0_0 || 12 === _0_0) {
  114324. t1 = true;
  114325. break $label0$0;
  114326. }
  114327. t1 = t2;
  114328. break $label0$0;
  114329. }
  114330. break $label1$1;
  114331. }
  114332. if (10 === _1_0 || 12 === _1_0) {
  114333. t1 = t1.peekChar$1(1);
  114334. t1 = t1 === 10 || t1 === 13 || t1 === 12;
  114335. break $label1$1;
  114336. }
  114337. t1 = t2;
  114338. break $label1$1;
  114339. }
  114340. return t1;
  114341. },
  114342. _sass0$_whileIndentedLower$1(body) {
  114343. var t1, t2, childIndentation, indentation, t3, t4, _this = this,
  114344. parentIndentation = _this._sass0$_currentIndentation;
  114345. for (t1 = _this.scanner, t2 = t1._sourceFile, childIndentation = null; _this._sass0$_peekIndentation$0() > parentIndentation;) {
  114346. indentation = _this._sass0$_readIndentation$0();
  114347. if (childIndentation == null)
  114348. childIndentation = indentation;
  114349. if (childIndentation !== indentation) {
  114350. t3 = t1._string_scanner$_position;
  114351. t4 = t2.getColumn$1(t3);
  114352. t1.error$3$length$position(0, "Inconsistent indentation, expected " + childIndentation + " spaces.", t2.getColumn$1(t1._string_scanner$_position), t3 - t4);
  114353. }
  114354. body.call$0();
  114355. }
  114356. },
  114357. _sass0$_readIndentation$0() {
  114358. var t1, _this = this,
  114359. currentIndentation = _this._sass0$_nextIndentation;
  114360. if (currentIndentation == null)
  114361. currentIndentation = _this._sass0$_nextIndentation = _this._sass0$_peekIndentation$0();
  114362. _this._sass0$_currentIndentation = currentIndentation;
  114363. t1 = _this._sass0$_nextIndentationEnd;
  114364. t1.toString;
  114365. _this.scanner.set$state(t1);
  114366. _this._sass0$_nextIndentationEnd = _this._sass0$_nextIndentation = null;
  114367. return currentIndentation;
  114368. },
  114369. _sass0$_peekIndentation$0() {
  114370. var t1, t2, t3, start, containsTab, containsSpace, nextIndentation, _1_0, t4, _this = this,
  114371. _0_0 = _this._sass0$_nextIndentation;
  114372. if (_0_0 != null)
  114373. return _0_0;
  114374. t1 = _this.scanner;
  114375. t2 = t1._string_scanner$_position;
  114376. t3 = t1.string.length;
  114377. if (t2 === t3) {
  114378. _this._sass0$_nextIndentation = 0;
  114379. _this._sass0$_nextIndentationEnd = new A._SpanScannerState(t1, t2);
  114380. return 0;
  114381. }
  114382. start = new A._SpanScannerState(t1, t2);
  114383. if (!_this.scanCharIf$1(new A.SassParser__peekIndentation_closure1()))
  114384. t1.error$2$position(0, "Expected newline.", t1._string_scanner$_position);
  114385. containsTab = A._Cell$();
  114386. containsSpace = A._Cell$();
  114387. nextIndentation = A._Cell$();
  114388. do {
  114389. containsSpace.__late_helper$_value = containsTab.__late_helper$_value = false;
  114390. nextIndentation.__late_helper$_value = 0;
  114391. for (; true;) {
  114392. $label0$0: {
  114393. _1_0 = t1.peekChar$0();
  114394. if (32 === _1_0) {
  114395. containsSpace.__late_helper$_value = true;
  114396. break $label0$0;
  114397. }
  114398. if (9 === _1_0) {
  114399. containsTab.__late_helper$_value = true;
  114400. break $label0$0;
  114401. }
  114402. break;
  114403. }
  114404. t2 = nextIndentation.__late_helper$_value;
  114405. if (t2 === nextIndentation)
  114406. A.throwExpression(A.LateError$localNI(""));
  114407. nextIndentation.__late_helper$_value = t2 + 1;
  114408. t1.readChar$0();
  114409. }
  114410. t2 = t1._string_scanner$_position;
  114411. if (t2 === t3) {
  114412. _this._sass0$_nextIndentation = 0;
  114413. _this._sass0$_nextIndentationEnd = new A._SpanScannerState(t1, t2);
  114414. t1.set$state(start);
  114415. return 0;
  114416. }
  114417. } while (_this.scanCharIf$1(new A.SassParser__peekIndentation_closure2()));
  114418. t2 = containsTab._readLocal$0();
  114419. t3 = containsSpace._readLocal$0();
  114420. if (t2) {
  114421. if (t3) {
  114422. t2 = t1._string_scanner$_position;
  114423. t3 = t1._sourceFile;
  114424. t4 = t3.getColumn$1(t2);
  114425. t1.error$3$length$position(0, "Tabs and spaces may not be mixed.", t3.getColumn$1(t1._string_scanner$_position), t2 - t4);
  114426. } else if (_this._sass0$_spaces === true) {
  114427. t2 = t1._string_scanner$_position;
  114428. t3 = t1._sourceFile;
  114429. t4 = t3.getColumn$1(t2);
  114430. t1.error$3$length$position(0, "Expected spaces, was tabs.", t3.getColumn$1(t1._string_scanner$_position), t2 - t4);
  114431. }
  114432. } else if (t3 && _this._sass0$_spaces === false) {
  114433. t2 = t1._string_scanner$_position;
  114434. t3 = t1._sourceFile;
  114435. t4 = t3.getColumn$1(t2);
  114436. t1.error$3$length$position(0, "Expected tabs, was spaces.", t3.getColumn$1(t1._string_scanner$_position), t2 - t4);
  114437. }
  114438. _this._sass0$_nextIndentation = nextIndentation._readLocal$0();
  114439. if (nextIndentation._readLocal$0() > 0)
  114440. if (_this._sass0$_spaces == null)
  114441. _this._sass0$_spaces = containsSpace._readLocal$0();
  114442. _this._sass0$_nextIndentationEnd = new A._SpanScannerState(t1, t1._string_scanner$_position);
  114443. t1.set$state(start);
  114444. return nextIndentation._readLocal$0();
  114445. }
  114446. };
  114447. A.SassParser_styleRuleSelector_closure0.prototype = {
  114448. call$1(char) {
  114449. return char === 10 || char === 13 || char === 12;
  114450. },
  114451. $signature: 32
  114452. };
  114453. A.SassParser_children_closure0.prototype = {
  114454. call$0() {
  114455. var _0_0 = this.$this._sass0$_child$1(this.child);
  114456. if (_0_0 != null)
  114457. this.children.push(_0_0);
  114458. },
  114459. $signature: 0
  114460. };
  114461. A.SassParser__peekIndentation_closure1.prototype = {
  114462. call$1(char) {
  114463. return char === 10 || char === 13 || char === 12;
  114464. },
  114465. $signature: 32
  114466. };
  114467. A.SassParser__peekIndentation_closure2.prototype = {
  114468. call$1(char) {
  114469. return char === 10 || char === 13 || char === 12;
  114470. },
  114471. $signature: 32
  114472. };
  114473. A._Exports.prototype = {};
  114474. A._wrapMain_closure.prototype = {
  114475. call$1(_) {
  114476. return A._translateReturnValue(this.main.call$0());
  114477. },
  114478. $signature: 110
  114479. };
  114480. A._wrapMain_closure0.prototype = {
  114481. call$1(args) {
  114482. return A._translateReturnValue(this.main.call$1(A.List_List$from(type$.List_dynamic._as(args), true, type$.String)));
  114483. },
  114484. $signature: 110
  114485. };
  114486. A.ScssParser0.prototype = {
  114487. get$indented() {
  114488. return false;
  114489. },
  114490. get$currentIndentation() {
  114491. return 0;
  114492. },
  114493. styleRuleSelector$0() {
  114494. return this.almostAnyValue$0();
  114495. },
  114496. expectStatementSeparator$1($name) {
  114497. var t1, _0_0;
  114498. this.whitespaceWithoutComments$0();
  114499. t1 = this.scanner;
  114500. if (t1._string_scanner$_position === t1.string.length)
  114501. return;
  114502. _0_0 = t1.peekChar$0();
  114503. if (59 === _0_0 || 125 === _0_0)
  114504. return;
  114505. t1.expectChar$1(59);
  114506. },
  114507. expectStatementSeparator$0() {
  114508. return this.expectStatementSeparator$1(null);
  114509. },
  114510. atEndOfStatement$0() {
  114511. var next = this.scanner.peekChar$0();
  114512. return next == null || next === 59 || next === 125 || next === 123;
  114513. },
  114514. lookingAtChildren$0() {
  114515. return this.scanner.peekChar$0() === 123;
  114516. },
  114517. scanElse$1(ifIndentation) {
  114518. var t3, _this = this,
  114519. t1 = _this.scanner,
  114520. t2 = t1._string_scanner$_position;
  114521. _this.whitespace$0();
  114522. t3 = t1._string_scanner$_position;
  114523. if (t1.scanChar$1(64)) {
  114524. if (_this.scanIdentifier$2$caseSensitive("else", true))
  114525. return true;
  114526. if (_this.scanIdentifier$2$caseSensitive("elseif", true)) {
  114527. _this.warnings.push(new A._Record_3_deprecation_message_span(B.Deprecation_YKG, string$.x40elsei, t1.spanFrom$1(new A._SpanScannerState(t1, t3))));
  114528. t1.set$position(t1._string_scanner$_position - 2);
  114529. return true;
  114530. }
  114531. }
  114532. t1.set$state(new A._SpanScannerState(t1, t2));
  114533. return false;
  114534. },
  114535. children$1(_, child) {
  114536. var children, _this = this,
  114537. t1 = _this.scanner;
  114538. t1.expectChar$1(123);
  114539. _this.whitespaceWithoutComments$0();
  114540. children = A._setArrayType([], type$.JSArray_Statement_2);
  114541. for (; true;)
  114542. switch (t1.peekChar$0()) {
  114543. case 36:
  114544. children.push(_this.variableDeclarationWithoutNamespace$0());
  114545. break;
  114546. case 47:
  114547. switch (t1.peekChar$1(1)) {
  114548. case 47:
  114549. children.push(_this._scss0$_silentComment$0());
  114550. _this.whitespaceWithoutComments$0();
  114551. break;
  114552. case 42:
  114553. children.push(_this._scss0$_loudComment$0());
  114554. _this.whitespaceWithoutComments$0();
  114555. break;
  114556. default:
  114557. children.push(child.call$0());
  114558. }
  114559. break;
  114560. case 59:
  114561. t1.readChar$0();
  114562. _this.whitespaceWithoutComments$0();
  114563. break;
  114564. case 125:
  114565. t1.expectChar$1(125);
  114566. return children;
  114567. default:
  114568. children.push(child.call$0());
  114569. }
  114570. },
  114571. statements$1(statement) {
  114572. var t1, t2, _0_0, _1_0, _this = this,
  114573. statements = A._setArrayType([], type$.JSArray_Statement_2);
  114574. _this.whitespaceWithoutComments$0();
  114575. for (t1 = _this.scanner, t2 = t1.string.length; t1._string_scanner$_position !== t2;)
  114576. switch (t1.peekChar$0()) {
  114577. case 36:
  114578. statements.push(_this.variableDeclarationWithoutNamespace$0());
  114579. break;
  114580. case 47:
  114581. switch (t1.peekChar$1(1)) {
  114582. case 47:
  114583. statements.push(_this._scss0$_silentComment$0());
  114584. _this.whitespaceWithoutComments$0();
  114585. break;
  114586. case 42:
  114587. statements.push(_this._scss0$_loudComment$0());
  114588. _this.whitespaceWithoutComments$0();
  114589. break;
  114590. default:
  114591. _0_0 = statement.call$0();
  114592. if (_0_0 != null)
  114593. statements.push(_0_0);
  114594. }
  114595. break;
  114596. case 59:
  114597. t1.readChar$0();
  114598. _this.whitespaceWithoutComments$0();
  114599. break;
  114600. default:
  114601. _1_0 = statement.call$0();
  114602. if (_1_0 != null)
  114603. statements.push(_1_0);
  114604. }
  114605. return statements;
  114606. },
  114607. _scss0$_silentComment$0() {
  114608. var t2, t3, _this = this,
  114609. t1 = _this.scanner,
  114610. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  114611. t1.expect$1("//");
  114612. t2 = t1.string.length;
  114613. do {
  114614. while (true) {
  114615. if (t1._string_scanner$_position !== t2) {
  114616. t3 = t1.readChar$0();
  114617. t3 = !(t3 === 10 || t3 === 13 || t3 === 12);
  114618. } else
  114619. t3 = false;
  114620. if (!t3)
  114621. break;
  114622. }
  114623. if (t1._string_scanner$_position === t2)
  114624. break;
  114625. _this.spaces$0();
  114626. } while (t1.scan$1("//"));
  114627. if (_this.get$plainCss())
  114628. _this.error$2(0, string$.Silent, t1.spanFrom$1(start));
  114629. return _this.lastSilentComment = new A.SilentComment0(t1.substring$1(0, start.position), t1.spanFrom$1(start));
  114630. },
  114631. _scss0$_loudComment$0() {
  114632. var t3, t4, t5, buffer, _0_0, t6, endPosition,
  114633. t1 = this.scanner,
  114634. t2 = t1._string_scanner$_position;
  114635. t1.expect$1("/*");
  114636. t3 = new A.StringBuffer("");
  114637. t4 = A._setArrayType([], type$.JSArray_Object);
  114638. t5 = A._setArrayType([], type$.JSArray_nullable_FileSpan);
  114639. buffer = new A.InterpolationBuffer0(t3, t4, t5);
  114640. t3._contents = "" + "/*";
  114641. $label0$1:
  114642. for (; true;)
  114643. switch (t1.peekChar$0()) {
  114644. case 35:
  114645. if (t1.peekChar$1(1) === 123) {
  114646. _0_0 = this.singleInterpolation$0();
  114647. buffer._interpolation_buffer0$_flushText$0();
  114648. t4.push(_0_0._0);
  114649. t5.push(_0_0._1);
  114650. } else {
  114651. t6 = A.Primitives_stringFromCharCode(t1.readChar$0());
  114652. t3._contents += t6;
  114653. }
  114654. break;
  114655. case 42:
  114656. t6 = A.Primitives_stringFromCharCode(t1.readChar$0());
  114657. t3._contents += t6;
  114658. if (t1.peekChar$0() !== 47)
  114659. continue $label0$1;
  114660. t4 = A.Primitives_stringFromCharCode(t1.readChar$0());
  114661. t3._contents += t4;
  114662. endPosition = t1._string_scanner$_position;
  114663. t3 = t1._sourceFile;
  114664. t4 = new A._SpanScannerState(t1, t2).position;
  114665. t1 = new A._FileSpan(t3, t4, endPosition);
  114666. t1._FileSpan$3(t3, t4, endPosition);
  114667. return new A.LoudComment0(buffer.interpolation$1(t1));
  114668. case 13:
  114669. t1.readChar$0();
  114670. if (t1.peekChar$0() !== 10) {
  114671. t6 = A.Primitives_stringFromCharCode(10);
  114672. t3._contents += t6;
  114673. }
  114674. break;
  114675. case 12:
  114676. t1.readChar$0();
  114677. t6 = A.Primitives_stringFromCharCode(10);
  114678. t3._contents += t6;
  114679. break;
  114680. default:
  114681. t6 = A.Primitives_stringFromCharCode(t1.readChar$0());
  114682. t3._contents += t6;
  114683. }
  114684. }
  114685. };
  114686. A.Selector0.prototype = {
  114687. assertNotBogus$1$name($name) {
  114688. if (!this.accept$1(B._IsBogusVisitor_true0))
  114689. return;
  114690. A.warnForDeprecation0("$" + $name + ": " + (this.toString$0(0) + string$.x20is_nov), B.Deprecation_bh9);
  114691. },
  114692. toString$0(_) {
  114693. var _null = null,
  114694. visitor = A._SerializeVisitor$0(_null, true, _null, _null, true, false, _null, true);
  114695. this.accept$1(visitor);
  114696. return visitor._serialize0$_buffer.toString$0(0);
  114697. },
  114698. $isAstNode0: 1,
  114699. get$span(receiver) {
  114700. return this.span;
  114701. }
  114702. };
  114703. A._IsInvisibleVisitor2.prototype = {
  114704. visitSelectorList$1(list) {
  114705. return B.JSArray_methods.every$1(list.components, this.get$visitComplexSelector());
  114706. },
  114707. visitComplexSelector$1(complex) {
  114708. var t1;
  114709. if (!this.super$AnySelectorVisitor$visitComplexSelector0(complex))
  114710. t1 = this.includeBogus && complex.accept$1(B._IsBogusVisitor_false0);
  114711. else
  114712. t1 = true;
  114713. return t1;
  114714. },
  114715. visitPlaceholderSelector$1(placeholder) {
  114716. return true;
  114717. },
  114718. visitPseudoSelector$1(pseudo) {
  114719. var t1,
  114720. _0_0 = pseudo.selector;
  114721. if (_0_0 != null) {
  114722. if (pseudo.name === "not")
  114723. t1 = this.includeBogus && _0_0.accept$1(B._IsBogusVisitor_true0);
  114724. else
  114725. t1 = this.visitSelectorList$1(_0_0);
  114726. return t1;
  114727. } else
  114728. return false;
  114729. }
  114730. };
  114731. A._IsBogusVisitor0.prototype = {
  114732. visitComplexSelector$1(complex) {
  114733. var t2,
  114734. t1 = complex.components;
  114735. if (t1.length === 0)
  114736. return complex.leadingCombinators.length !== 0;
  114737. else {
  114738. t2 = this.includeLeadingCombinator ? 0 : 1;
  114739. return complex.leadingCombinators.length > t2 || B.JSArray_methods.get$last(t1).combinators.length !== 0 || B.JSArray_methods.any$1(t1, new A._IsBogusVisitor_visitComplexSelector_closure0(this));
  114740. }
  114741. },
  114742. visitPseudoSelector$1(pseudo) {
  114743. var selector = pseudo.selector;
  114744. if (selector == null)
  114745. return false;
  114746. return pseudo.name === "has" ? selector.accept$1(B._IsBogusVisitor_false0) : selector.accept$1(B._IsBogusVisitor_true0);
  114747. }
  114748. };
  114749. A._IsBogusVisitor_visitComplexSelector_closure0.prototype = {
  114750. call$1(component) {
  114751. return component.combinators.length > 1 || this.$this.visitCompoundSelector$1(component.selector);
  114752. },
  114753. $signature: 55
  114754. };
  114755. A._IsUselessVisitor0.prototype = {
  114756. visitComplexSelector$1(complex) {
  114757. return complex.leadingCombinators.length > 1 || B.JSArray_methods.any$1(complex.components, new A._IsUselessVisitor_visitComplexSelector_closure0(this));
  114758. },
  114759. visitPseudoSelector$1(pseudo) {
  114760. return pseudo.accept$1(B._IsBogusVisitor_true0);
  114761. }
  114762. };
  114763. A._IsUselessVisitor_visitComplexSelector_closure0.prototype = {
  114764. call$1(component) {
  114765. return component.combinators.length > 1 || this.$this.visitCompoundSelector$1(component.selector);
  114766. },
  114767. $signature: 55
  114768. };
  114769. A.__IsBogusVisitor_Object_AnySelectorVisitor0.prototype = {};
  114770. A.__IsInvisibleVisitor_Object_AnySelectorVisitor0.prototype = {};
  114771. A.__IsUselessVisitor_Object_AnySelectorVisitor0.prototype = {};
  114772. A.SelectorExpression0.prototype = {
  114773. accept$1$1(visitor) {
  114774. return visitor.visitSelectorExpression$1(0, this);
  114775. },
  114776. accept$1(visitor) {
  114777. return this.accept$1$1(visitor, type$.dynamic);
  114778. },
  114779. toString$0(_) {
  114780. return "&";
  114781. },
  114782. get$span(receiver) {
  114783. return this.span;
  114784. }
  114785. };
  114786. A._nest_closure0.prototype = {
  114787. call$1($arguments) {
  114788. var t1 = {},
  114789. selectors = J.$index$asx($arguments, 0).get$asList();
  114790. if (selectors.length === 0)
  114791. throw A.wrapException(A.SassScriptException$0(string$.x24selec, null));
  114792. t1.first = true;
  114793. return new A.MappedListIterable(selectors, new A._nest__closure1(t1), A._arrayInstanceType(selectors)._eval$1("MappedListIterable<1,SelectorList0>")).reduce$1(0, new A._nest__closure2()).get$asSassList();
  114794. },
  114795. $signature: 26
  114796. };
  114797. A._nest__closure1.prototype = {
  114798. call$1(selector) {
  114799. var t1 = this._box_0,
  114800. result = A.SassApiValue_assertSelector0(selector, !t1.first, null);
  114801. t1.first = false;
  114802. return result;
  114803. },
  114804. $signature: 254
  114805. };
  114806. A._nest__closure2.prototype = {
  114807. call$2($parent, child) {
  114808. return child.nestWithin$1($parent);
  114809. },
  114810. $signature: 255
  114811. };
  114812. A._append_closure1.prototype = {
  114813. call$1($arguments) {
  114814. var t1,
  114815. selectors = J.$index$asx($arguments, 0).get$asList();
  114816. if (selectors.length === 0)
  114817. throw A.wrapException(A.SassScriptException$0(string$.x24selec, null));
  114818. t1 = A.EvaluationContext_currentOrNull0();
  114819. return new A.MappedListIterable(selectors, new A._append__closure1(), A._arrayInstanceType(selectors)._eval$1("MappedListIterable<1,SelectorList0>")).reduce$1(0, new A._append__closure2((t1 == null ? A.throwExpression(A.StateError$(string$.No_Sass)) : t1).get$currentCallableSpan())).get$asSassList();
  114820. },
  114821. $signature: 26
  114822. };
  114823. A._append__closure1.prototype = {
  114824. call$1(selector) {
  114825. return A.SassApiValue_assertSelector0(selector, false, null);
  114826. },
  114827. $signature: 254
  114828. };
  114829. A._append__closure2.prototype = {
  114830. call$2($parent, child) {
  114831. var t1 = child.components,
  114832. t2 = this.span;
  114833. return A.SelectorList$0(new A.MappedListIterable(t1, new A._append___closure0($parent, t2), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,ComplexSelector0>")), t2).nestWithin$1($parent);
  114834. },
  114835. $signature: 255
  114836. };
  114837. A._append___closure0.prototype = {
  114838. call$1(complex) {
  114839. var _0_0, t1, component, rest, newCompound, t2, _null = null;
  114840. if (complex.leadingCombinators.length !== 0)
  114841. throw A.wrapException(A.SassScriptException$0("Can't append " + complex.toString$0(0) + " to " + this.parent.toString$0(0) + ".", _null));
  114842. _0_0 = complex.components;
  114843. t1 = _0_0.length >= 1;
  114844. if (t1) {
  114845. component = _0_0[0];
  114846. rest = B.JSArray_methods.sublist$1(_0_0, 1);
  114847. } else {
  114848. rest = _null;
  114849. component = rest;
  114850. }
  114851. if (!t1)
  114852. throw A.wrapException(A.StateError$("Pattern matching error"));
  114853. newCompound = A._prependParent0(component.selector);
  114854. if (newCompound == null)
  114855. throw A.wrapException(A.SassScriptException$0("Can't append " + complex.toString$0(0) + " to " + this.parent.toString$0(0) + ".", _null));
  114856. t1 = this.span;
  114857. t2 = A._setArrayType([new A.ComplexSelectorComponent0(newCompound, A.List_List$unmodifiable(component.combinators, type$.CssValue_Combinator_2), t1)], type$.JSArray_ComplexSelectorComponent_2);
  114858. B.JSArray_methods.addAll$1(t2, rest);
  114859. return A.ComplexSelector$0(B.List_empty14, t2, t1, false);
  114860. },
  114861. $signature: 59
  114862. };
  114863. A._extend_closure0.prototype = {
  114864. call$1($arguments) {
  114865. var target, source,
  114866. _s8_ = "selector",
  114867. _s8_0 = "extendee",
  114868. _s8_1 = "extender",
  114869. t1 = J.getInterceptor$asx($arguments),
  114870. selector = A.SassApiValue_assertSelector0(t1.$index($arguments, 0), false, _s8_);
  114871. selector.assertNotBogus$1$name(_s8_);
  114872. target = A.SassApiValue_assertSelector0(t1.$index($arguments, 1), false, _s8_0);
  114873. target.assertNotBogus$1$name(_s8_0);
  114874. source = A.SassApiValue_assertSelector0(t1.$index($arguments, 2), false, _s8_1);
  114875. source.assertNotBogus$1$name(_s8_1);
  114876. t1 = A.EvaluationContext_currentOrNull0();
  114877. return A.ExtensionStore__extendOrReplace0(selector, source, target, B.ExtendMode_allTargets_allTargets0, (t1 == null ? A.throwExpression(A.StateError$(string$.No_Sass)) : t1).get$currentCallableSpan()).get$asSassList();
  114878. },
  114879. $signature: 26
  114880. };
  114881. A._replace_closure0.prototype = {
  114882. call$1($arguments) {
  114883. var target, source,
  114884. _s8_ = "selector",
  114885. _s8_0 = "original",
  114886. _s11_ = "replacement",
  114887. t1 = J.getInterceptor$asx($arguments),
  114888. selector = A.SassApiValue_assertSelector0(t1.$index($arguments, 0), false, _s8_);
  114889. selector.assertNotBogus$1$name(_s8_);
  114890. target = A.SassApiValue_assertSelector0(t1.$index($arguments, 1), false, _s8_0);
  114891. target.assertNotBogus$1$name(_s8_0);
  114892. source = A.SassApiValue_assertSelector0(t1.$index($arguments, 2), false, _s11_);
  114893. source.assertNotBogus$1$name(_s11_);
  114894. t1 = A.EvaluationContext_currentOrNull0();
  114895. return A.ExtensionStore__extendOrReplace0(selector, source, target, B.ExtendMode_replace_replace0, (t1 == null ? A.throwExpression(A.StateError$(string$.No_Sass)) : t1).get$currentCallableSpan()).get$asSassList();
  114896. },
  114897. $signature: 26
  114898. };
  114899. A._unify_closure0.prototype = {
  114900. call$1($arguments) {
  114901. var selector2,
  114902. _s9_ = "selector1",
  114903. _s9_0 = "selector2",
  114904. t1 = J.getInterceptor$asx($arguments),
  114905. selector1 = A.SassApiValue_assertSelector0(t1.$index($arguments, 0), false, _s9_);
  114906. selector1.assertNotBogus$1$name(_s9_);
  114907. selector2 = A.SassApiValue_assertSelector0(t1.$index($arguments, 1), false, _s9_0);
  114908. selector2.assertNotBogus$1$name(_s9_0);
  114909. t1 = selector1.unify$1(selector2);
  114910. t1 = t1 == null ? null : t1.get$asSassList();
  114911. return t1 == null ? B.C__SassNull0 : t1;
  114912. },
  114913. $signature: 3
  114914. };
  114915. A._isSuperselector_closure0.prototype = {
  114916. call$1($arguments) {
  114917. var selector2,
  114918. t1 = J.getInterceptor$asx($arguments),
  114919. selector1 = A.SassApiValue_assertSelector0(t1.$index($arguments, 0), false, "super");
  114920. selector1.assertNotBogus$1$name("super");
  114921. selector2 = A.SassApiValue_assertSelector0(t1.$index($arguments, 1), false, "sub");
  114922. selector2.assertNotBogus$1$name("sub");
  114923. return A.listIsSuperselector0(selector1.components, selector2.components) ? B.SassBoolean_true0 : B.SassBoolean_false0;
  114924. },
  114925. $signature: 12
  114926. };
  114927. A._simpleSelectors_closure0.prototype = {
  114928. call$1($arguments) {
  114929. var t1 = A.SassApiValue_assertCompoundSelector0(J.$index$asx($arguments, 0), "selector").components;
  114930. return A.SassList$0(new A.MappedListIterable(t1, new A._simpleSelectors__closure0(), A._arrayInstanceType(t1)._eval$1("MappedListIterable<1,Value0>")), B.ListSeparator_ECn0, false);
  114931. },
  114932. $signature: 26
  114933. };
  114934. A._simpleSelectors__closure0.prototype = {
  114935. call$1(simple) {
  114936. return new A.SassString0(A.serializeSelector0(simple, true), false);
  114937. },
  114938. $signature: 567
  114939. };
  114940. A._parse_closure0.prototype = {
  114941. call$1($arguments) {
  114942. return A.SassApiValue_assertSelector0(J.$index$asx($arguments, 0), false, "selector").get$asSassList();
  114943. },
  114944. $signature: 26
  114945. };
  114946. A.SelectorParser0.prototype = {
  114947. parse$0(_) {
  114948. return this.wrapSpanFormatException$1(new A.SelectorParser_parse_closure0(this));
  114949. },
  114950. parseCompoundSelector$0() {
  114951. return this.wrapSpanFormatException$1(new A.SelectorParser_parseCompoundSelector_closure0(this));
  114952. },
  114953. _selector$_selectorList$0() {
  114954. var t4, t5, lineBreak, _this = this,
  114955. t1 = _this.scanner,
  114956. t2 = t1._string_scanner$_position,
  114957. t3 = t1._sourceFile,
  114958. previousLine = t3.getLine$1(t2),
  114959. components = A._setArrayType([_this._selector$_complexSelector$0()], type$.JSArray_ComplexSelector_2);
  114960. _this.whitespace$0();
  114961. for (t4 = t1.string.length; t1.scanChar$1(44);) {
  114962. _this.whitespace$0();
  114963. if (t1.peekChar$0() === 44)
  114964. continue;
  114965. t5 = t1._string_scanner$_position;
  114966. if (t5 === t4)
  114967. break;
  114968. lineBreak = t3.getLine$1(t5) !== previousLine;
  114969. if (lineBreak)
  114970. previousLine = t3.getLine$1(t1._string_scanner$_position);
  114971. components.push(_this._selector$_complexSelector$1$lineBreak(lineBreak));
  114972. }
  114973. return A.SelectorList$0(components, _this.spanFrom$1(new A._SpanScannerState(t1, t2)));
  114974. },
  114975. _selector$_complexSelector$1$lineBreak(lineBreak) {
  114976. var t4, lastCompound, initialCombinators, _0_0, t5, result, _this = this,
  114977. _s18_ = "expected selector.",
  114978. t1 = _this.scanner,
  114979. t2 = t1._string_scanner$_position,
  114980. componentStart = new A._SpanScannerState(t1, t2),
  114981. t3 = type$.JSArray_CssValue_Combinator_2,
  114982. combinators = A._setArrayType([], t3),
  114983. components = A._setArrayType([], type$.JSArray_ComplexSelectorComponent_2);
  114984. for (t4 = type$.CssValue_Combinator_2, lastCompound = null, initialCombinators = null; true;) {
  114985. _this.whitespace$0();
  114986. _0_0 = t1.peekChar$0();
  114987. if (43 === _0_0) {
  114988. t5 = t1._string_scanner$_position;
  114989. t1.readChar$0();
  114990. combinators.push(new A.CssValue0(B.Combinator_gRV0, _this.spanFrom$1(new A._SpanScannerState(t1, t5)), t4));
  114991. continue;
  114992. }
  114993. if (62 === _0_0) {
  114994. t5 = t1._string_scanner$_position;
  114995. t1.readChar$0();
  114996. combinators.push(new A.CssValue0(B.Combinator_8I80, _this.spanFrom$1(new A._SpanScannerState(t1, t5)), t4));
  114997. continue;
  114998. }
  114999. if (126 === _0_0) {
  115000. t5 = t1._string_scanner$_position;
  115001. t1.readChar$0();
  115002. combinators.push(new A.CssValue0(B.Combinator_y180, _this.spanFrom$1(new A._SpanScannerState(t1, t5)), t4));
  115003. continue;
  115004. }
  115005. if (_0_0 == null)
  115006. break;
  115007. t5 = true;
  115008. if (91 !== _0_0)
  115009. if (46 !== _0_0)
  115010. if (35 !== _0_0)
  115011. if (37 !== _0_0)
  115012. if (58 !== _0_0)
  115013. if (38 !== _0_0)
  115014. if (42 !== _0_0)
  115015. if (124 !== _0_0)
  115016. t5 = _this.lookingAtIdentifier$0();
  115017. if (t5) {
  115018. if (lastCompound != null) {
  115019. t5 = _this.spanFrom$1(componentStart);
  115020. result = A.List_List$from(combinators, false, t4);
  115021. result.fixed$length = Array;
  115022. result.immutable$list = Array;
  115023. components.push(new A.ComplexSelectorComponent0(lastCompound, result, t5));
  115024. } else if (combinators.length !== 0) {
  115025. componentStart = new A._SpanScannerState(t1, t1._string_scanner$_position);
  115026. initialCombinators = combinators;
  115027. }
  115028. lastCompound = _this._selector$_compoundSelector$0();
  115029. combinators = A._setArrayType([], t3);
  115030. if (t1.peekChar$0() === 38)
  115031. t1.error$1(0, string$.x22x26__ma);
  115032. continue;
  115033. }
  115034. break;
  115035. }
  115036. t3 = combinators.length !== 0;
  115037. if (t3 && _this._selector$_plainCss)
  115038. t1.error$1(0, _s18_);
  115039. else if (lastCompound != null) {
  115040. t3 = _this.spanFrom$1(componentStart);
  115041. components.push(new A.ComplexSelectorComponent0(lastCompound, A.List_List$unmodifiable(combinators, t4), t3));
  115042. } else if (t3)
  115043. initialCombinators = combinators;
  115044. else
  115045. t1.error$1(0, _s18_);
  115046. t3 = initialCombinators == null ? B.List_empty14 : initialCombinators;
  115047. return A.ComplexSelector$0(t3, components, _this.spanFrom$1(new A._SpanScannerState(t1, t2)), lineBreak);
  115048. },
  115049. _selector$_complexSelector$0() {
  115050. return this._selector$_complexSelector$1$lineBreak(false);
  115051. },
  115052. _selector$_compoundSelector$0() {
  115053. var t3, _this = this,
  115054. t1 = _this.scanner,
  115055. t2 = t1._string_scanner$_position,
  115056. components = A._setArrayType([_this._selector$_simpleSelector$0()], type$.JSArray_SimpleSelector_2);
  115057. for (t3 = _this._selector$_plainCss; _this._selector$_isSimpleSelectorStart$1(t1.peekChar$0());)
  115058. components.push(_this._selector$_simpleSelector$1$allowParent(t3));
  115059. return A.CompoundSelector$0(components, _this.spanFrom$1(new A._SpanScannerState(t1, t2)));
  115060. },
  115061. _selector$_simpleSelector$1$allowParent(allowParent) {
  115062. var t2, $name, text, t3, suffix, _this = this,
  115063. t1 = _this.scanner,
  115064. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  115065. if (allowParent == null)
  115066. allowParent = _this._selector$_allowParent;
  115067. switch (t1.peekChar$0()) {
  115068. case 91:
  115069. return _this._selector$_attributeSelector$0();
  115070. case 46:
  115071. t2 = t1._string_scanner$_position;
  115072. t1.expectChar$1(46);
  115073. return new A.ClassSelector0(_this.identifier$0(), _this.spanFrom$1(new A._SpanScannerState(t1, t2)));
  115074. case 35:
  115075. t2 = t1._string_scanner$_position;
  115076. t1.expectChar$1(35);
  115077. return new A.IDSelector0(_this.identifier$0(), _this.spanFrom$1(new A._SpanScannerState(t1, t2)));
  115078. case 37:
  115079. t2 = t1._string_scanner$_position;
  115080. t1.expectChar$1(37);
  115081. $name = _this.identifier$0();
  115082. t2 = _this.spanFrom$1(new A._SpanScannerState(t1, t2));
  115083. if (_this._selector$_plainCss)
  115084. _this.error$2(0, string$.Placeh, t1.spanFrom$1(start));
  115085. return new A.PlaceholderSelector0($name, t2);
  115086. case 58:
  115087. return _this._selector$_pseudoSelector$0();
  115088. case 38:
  115089. t2 = t1._string_scanner$_position;
  115090. t1.expectChar$1(38);
  115091. if (_this.lookingAtIdentifierBody$0()) {
  115092. text = new A.StringBuffer("");
  115093. _this._parser1$_identifierBody$1(text);
  115094. if (text._contents.length === 0)
  115095. t1.error$1(0, "Expected identifier body.");
  115096. t3 = text._contents;
  115097. suffix = t3.charCodeAt(0) == 0 ? t3 : t3;
  115098. } else
  115099. suffix = null;
  115100. if (_this._selector$_plainCss && suffix != null)
  115101. t1.error$3$length$position(0, string$.Parent, t1._string_scanner$_position - t2, t2);
  115102. t2 = _this.spanFrom$1(new A._SpanScannerState(t1, t2));
  115103. if (!allowParent)
  115104. _this.error$2(0, "Parent selectors aren't allowed here.", t1.spanFrom$1(start));
  115105. return new A.ParentSelector0(suffix, t2);
  115106. default:
  115107. return _this._selector$_typeOrUniversalSelector$0();
  115108. }
  115109. },
  115110. _selector$_simpleSelector$0() {
  115111. return this._selector$_simpleSelector$1$allowParent(null);
  115112. },
  115113. _selector$_attributeSelector$0() {
  115114. var $name, operator, next, value, modifier, _this = this, _null = null,
  115115. t1 = _this.scanner,
  115116. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  115117. t1.expectChar$1(91);
  115118. _this.whitespace$0();
  115119. $name = _this._selector$_attributeName$0();
  115120. _this.whitespace$0();
  115121. if (t1.scanChar$1(93))
  115122. return new A.AttributeSelector0($name, _null, _null, _null, _this.spanFrom$1(start));
  115123. operator = _this._selector$_attributeOperator$0();
  115124. _this.whitespace$0();
  115125. next = t1.peekChar$0();
  115126. value = next === 39 || next === 34 ? _this.string$0() : _this.identifier$0();
  115127. _this.whitespace$0();
  115128. next = t1.peekChar$0();
  115129. modifier = next != null && A.CharacterExtension_get_isAlphabetic0(next) ? A.Primitives_stringFromCharCode(t1.readChar$0()) : _null;
  115130. t1.expectChar$1(93);
  115131. return new A.AttributeSelector0($name, operator, value, modifier, _this.spanFrom$1(start));
  115132. },
  115133. _selector$_attributeName$0() {
  115134. var nameOrNamespace, _this = this,
  115135. t1 = _this.scanner;
  115136. if (t1.scanChar$1(42)) {
  115137. t1.expectChar$1(124);
  115138. return new A.QualifiedName0(_this.identifier$0(), "*");
  115139. }
  115140. if (t1.scanChar$1(124))
  115141. return new A.QualifiedName0(_this.identifier$0(), "");
  115142. nameOrNamespace = _this.identifier$0();
  115143. if (t1.peekChar$0() !== 124 || t1.peekChar$1(1) === 61)
  115144. return new A.QualifiedName0(nameOrNamespace, null);
  115145. t1.readChar$0();
  115146. return new A.QualifiedName0(_this.identifier$0(), nameOrNamespace);
  115147. },
  115148. _selector$_attributeOperator$0() {
  115149. var t1 = this.scanner,
  115150. t2 = t1._string_scanner$_position;
  115151. switch (t1.readChar$0()) {
  115152. case 61:
  115153. return B.AttributeOperator_4QF0;
  115154. case 126:
  115155. t1.expectChar$1(61);
  115156. return B.AttributeOperator_yT80;
  115157. case 124:
  115158. t1.expectChar$1(61);
  115159. return B.AttributeOperator_jqB0;
  115160. case 94:
  115161. t1.expectChar$1(61);
  115162. return B.AttributeOperator_cMb0;
  115163. case 36:
  115164. t1.expectChar$1(61);
  115165. return B.AttributeOperator_qhE0;
  115166. case 42:
  115167. t1.expectChar$1(61);
  115168. return B.AttributeOperator_61T0;
  115169. default:
  115170. t1.error$2$position(0, 'Expected "]".', t2);
  115171. }
  115172. },
  115173. _selector$_pseudoSelector$0() {
  115174. var element, $name, unvendored, argument, selector, t2, _this = this, _null = null,
  115175. t1 = _this.scanner,
  115176. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  115177. t1.expectChar$1(58);
  115178. element = t1.scanChar$1(58);
  115179. $name = _this.identifier$0();
  115180. if (!t1.scanChar$1(40))
  115181. return A.PseudoSelector$0($name, _this.spanFrom$1(start), _null, element, _null);
  115182. _this.whitespace$0();
  115183. unvendored = A.unvendor0($name);
  115184. argument = _null;
  115185. selector = _null;
  115186. if (element)
  115187. if ($._selectorPseudoElements0.contains$1(0, unvendored))
  115188. selector = _this._selector$_selectorList$0();
  115189. else
  115190. argument = _this.declarationValue$1$allowEmpty(true);
  115191. else if ($._selectorPseudoClasses0.contains$1(0, unvendored))
  115192. selector = _this._selector$_selectorList$0();
  115193. else if (unvendored === "nth-child" || unvendored === "nth-last-child") {
  115194. argument = _this._selector$_aNPlusB$0();
  115195. _this.whitespace$0();
  115196. t2 = t1.peekChar$1(-1);
  115197. if ((t2 === 32 || t2 === 9 || t2 === 10 || t2 === 13 || t2 === 12) && t1.peekChar$0() !== 41) {
  115198. _this.expectIdentifier$1("of");
  115199. argument += " of";
  115200. _this.whitespace$0();
  115201. selector = _this._selector$_selectorList$0();
  115202. }
  115203. } else
  115204. argument = B.JSString_methods.trimRight$0(_this.declarationValue$1$allowEmpty(true));
  115205. t1.expectChar$1(41);
  115206. return A.PseudoSelector$0($name, _this.spanFrom$1(start), argument, element, selector);
  115207. },
  115208. _selector$_aNPlusB$0() {
  115209. var t1, _0_0, t2, $self, next, _this = this;
  115210. $label0$0: {
  115211. t1 = _this.scanner;
  115212. _0_0 = t1.peekChar$0();
  115213. if (101 === _0_0 || 69 === _0_0) {
  115214. _this.expectIdentifier$1("even");
  115215. return "even";
  115216. }
  115217. if (111 === _0_0 || 79 === _0_0) {
  115218. _this.expectIdentifier$1("odd");
  115219. return "odd";
  115220. }
  115221. if (43 === _0_0 || 45 === _0_0) {
  115222. t2 = "" + A.Primitives_stringFromCharCode(t1.readChar$0());
  115223. break $label0$0;
  115224. }
  115225. t2 = "";
  115226. }
  115227. $self = t1.peekChar$0();
  115228. if ($self != null && $self >= 48 && $self <= 57) {
  115229. do {
  115230. t2 += A.Primitives_stringFromCharCode(t1.readChar$0());
  115231. $self = t1.peekChar$0();
  115232. } while ($self != null && $self >= 48 && $self <= 57);
  115233. _this.whitespace$0();
  115234. if (!_this.scanIdentChar$1(110))
  115235. return t2.charCodeAt(0) == 0 ? t2 : t2;
  115236. } else
  115237. _this.expectIdentChar$1(110);
  115238. t2 += A.Primitives_stringFromCharCode(110);
  115239. _this.whitespace$0();
  115240. next = t1.peekChar$0();
  115241. if (next !== 43 && next !== 45)
  115242. return t2.charCodeAt(0) == 0 ? t2 : t2;
  115243. t2 += A.Primitives_stringFromCharCode(t1.readChar$0());
  115244. _this.whitespace$0();
  115245. $self = t1.peekChar$0();
  115246. if (!($self != null && $self >= 48 && $self <= 57))
  115247. t1.error$1(0, "Expected a number.");
  115248. do {
  115249. t2 += A.Primitives_stringFromCharCode(t1.readChar$0());
  115250. $self = t1.peekChar$0();
  115251. } while ($self != null && $self >= 48 && $self <= 57);
  115252. return t2.charCodeAt(0) == 0 ? t2 : t2;
  115253. },
  115254. _selector$_typeOrUniversalSelector$0() {
  115255. var nameOrNamespace, _this = this,
  115256. t1 = _this.scanner,
  115257. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  115258. if (t1.scanChar$1(42)) {
  115259. if (!t1.scanChar$1(124))
  115260. return new A.UniversalSelector0(null, _this.spanFrom$1(start));
  115261. return t1.scanChar$1(42) ? new A.UniversalSelector0("*", _this.spanFrom$1(start)) : new A.TypeSelector0(new A.QualifiedName0(_this.identifier$0(), "*"), _this.spanFrom$1(start));
  115262. } else if (t1.scanChar$1(124))
  115263. return t1.scanChar$1(42) ? new A.UniversalSelector0("", _this.spanFrom$1(start)) : new A.TypeSelector0(new A.QualifiedName0(_this.identifier$0(), ""), _this.spanFrom$1(start));
  115264. nameOrNamespace = _this.identifier$0();
  115265. if (!t1.scanChar$1(124))
  115266. return new A.TypeSelector0(new A.QualifiedName0(nameOrNamespace, null), _this.spanFrom$1(start));
  115267. else if (t1.scanChar$1(42))
  115268. return new A.UniversalSelector0(nameOrNamespace, _this.spanFrom$1(start));
  115269. else
  115270. return new A.TypeSelector0(new A.QualifiedName0(_this.identifier$0(), nameOrNamespace), _this.spanFrom$1(start));
  115271. },
  115272. _selector$_isSimpleSelectorStart$1(character) {
  115273. var t1;
  115274. $label0$0: {
  115275. if (42 === character || 91 === character || 46 === character || 35 === character || 37 === character || 58 === character) {
  115276. t1 = true;
  115277. break $label0$0;
  115278. }
  115279. if (38 === character) {
  115280. t1 = this._selector$_plainCss;
  115281. break $label0$0;
  115282. }
  115283. t1 = false;
  115284. break $label0$0;
  115285. }
  115286. return t1;
  115287. }
  115288. };
  115289. A.SelectorParser_parse_closure0.prototype = {
  115290. call$0() {
  115291. var t1 = this.$this,
  115292. selector = t1._selector$_selectorList$0();
  115293. t1 = t1.scanner;
  115294. if (t1._string_scanner$_position !== t1.string.length)
  115295. t1.error$1(0, "expected selector.");
  115296. return selector;
  115297. },
  115298. $signature: 568
  115299. };
  115300. A.SelectorParser_parseCompoundSelector_closure0.prototype = {
  115301. call$0() {
  115302. var t1 = this.$this,
  115303. compound = t1._selector$_compoundSelector$0();
  115304. t1 = t1.scanner;
  115305. if (t1._string_scanner$_position !== t1.string.length)
  115306. t1.error$1(0, "expected selector.");
  115307. return compound;
  115308. },
  115309. $signature: 569
  115310. };
  115311. A.SelectorSearchVisitor0.prototype = {
  115312. visitAttributeSelector$1(attribute) {
  115313. return null;
  115314. },
  115315. visitClassSelector$1(klass) {
  115316. return null;
  115317. },
  115318. visitIDSelector$1(id) {
  115319. return null;
  115320. },
  115321. visitParentSelector$1(placeholder) {
  115322. return null;
  115323. },
  115324. visitPlaceholderSelector$1(placeholder) {
  115325. return null;
  115326. },
  115327. visitTypeSelector$1(type) {
  115328. return null;
  115329. },
  115330. visitUniversalSelector$1(universal) {
  115331. return null;
  115332. },
  115333. visitComplexSelector$1(complex) {
  115334. return A.IterableExtension_search0(complex.components, new A.SelectorSearchVisitor_visitComplexSelector_closure0(this));
  115335. },
  115336. visitCompoundSelector$1(compound) {
  115337. return A.IterableExtension_search0(compound.components, new A.SelectorSearchVisitor_visitCompoundSelector_closure0(this));
  115338. },
  115339. visitPseudoSelector$1(pseudo) {
  115340. return A.NullableExtension_andThen0(pseudo.selector, this.get$visitSelectorList());
  115341. },
  115342. visitSelectorList$1(list) {
  115343. return A.IterableExtension_search0(list.components, this.get$visitComplexSelector());
  115344. }
  115345. };
  115346. A.SelectorSearchVisitor_visitComplexSelector_closure0.prototype = {
  115347. call$1(component) {
  115348. return this.$this.visitCompoundSelector$1(component.selector);
  115349. },
  115350. $signature() {
  115351. return A._instanceType(this.$this)._eval$1("SelectorSearchVisitor0.T?(ComplexSelectorComponent0)");
  115352. }
  115353. };
  115354. A.SelectorSearchVisitor_visitCompoundSelector_closure0.prototype = {
  115355. call$1(simple) {
  115356. return simple.accept$1(this.$this);
  115357. },
  115358. $signature() {
  115359. return A._instanceType(this.$this)._eval$1("SelectorSearchVisitor0.T?(SimpleSelector0)");
  115360. }
  115361. };
  115362. A.serialize_closure0.prototype = {
  115363. call$1(codeUnit) {
  115364. return codeUnit > 127;
  115365. },
  115366. $signature: 47
  115367. };
  115368. A._SerializeVisitor0.prototype = {
  115369. visitCssStylesheet$1(node) {
  115370. var t1, t2, t3, t4, t5, t6, t7, previous, previous0, t8, _this = this;
  115371. for (t1 = J.get$iterator$ax(node.get$children(node)), t2 = !_this._serialize0$_inspect, t3 = _this._serialize0$_style === B.OutputStyle_10, t4 = !t3, t5 = type$.CssParentNode_2, t6 = _this._serialize0$_buffer, t7 = _this._lineFeed.text, previous = null; t1.moveNext$0();) {
  115372. previous0 = t1.get$current(t1);
  115373. if (t2)
  115374. t8 = t3 ? previous0.accept$1(B._IsInvisibleVisitor_true_true0) : previous0.accept$1(B._IsInvisibleVisitor_true_false0);
  115375. else
  115376. t8 = false;
  115377. if (t8)
  115378. continue;
  115379. if (previous != null) {
  115380. if (t5._is(previous) ? previous.get$isChildless() : !(previous instanceof A.ModifiableCssComment0))
  115381. t6.writeCharCode$1(59);
  115382. if (_this._serialize0$_isTrailingComment$2(previous0, previous)) {
  115383. if (t4)
  115384. t6.writeCharCode$1(32);
  115385. } else {
  115386. if (t4)
  115387. t6.write$1(0, t7);
  115388. if (previous.get$isGroupEnd())
  115389. if (t4)
  115390. t6.write$1(0, t7);
  115391. }
  115392. }
  115393. previous0.accept$1(_this);
  115394. previous = previous0;
  115395. }
  115396. if (previous != null)
  115397. t1 = (t5._is(previous) ? previous.get$isChildless() : !(previous instanceof A.ModifiableCssComment0)) && t4;
  115398. else
  115399. t1 = false;
  115400. if (t1)
  115401. t6.writeCharCode$1(59);
  115402. },
  115403. visitCssComment$1(node) {
  115404. this._serialize0$_buffer.forSpan$2(node.span, new A._SerializeVisitor_visitCssComment_closure0(this, node));
  115405. },
  115406. visitCssAtRule$1(node) {
  115407. var t1, _this = this;
  115408. _this._serialize0$_writeIndentation$0();
  115409. t1 = _this._serialize0$_buffer;
  115410. t1.forSpan$2(node.span, new A._SerializeVisitor_visitCssAtRule_closure0(_this, node));
  115411. if (!node.isChildless) {
  115412. if (_this._serialize0$_style !== B.OutputStyle_10)
  115413. t1.writeCharCode$1(32);
  115414. _this._serialize0$_visitChildren$1(node);
  115415. }
  115416. },
  115417. visitCssMediaRule$1(node) {
  115418. var t1, _this = this;
  115419. _this._serialize0$_writeIndentation$0();
  115420. t1 = _this._serialize0$_buffer;
  115421. t1.forSpan$2(node.span, new A._SerializeVisitor_visitCssMediaRule_closure0(_this, node));
  115422. if (_this._serialize0$_style !== B.OutputStyle_10)
  115423. t1.writeCharCode$1(32);
  115424. _this._serialize0$_visitChildren$1(node);
  115425. },
  115426. visitCssImport$1(node) {
  115427. this._serialize0$_writeIndentation$0();
  115428. this._serialize0$_buffer.forSpan$2(node.span, new A._SerializeVisitor_visitCssImport_closure0(this, node));
  115429. },
  115430. _serialize0$_writeImportUrl$1(url) {
  115431. var urlContents, maybeQuote, _this = this;
  115432. if (_this._serialize0$_style !== B.OutputStyle_10 || url.charCodeAt(0) !== 117) {
  115433. _this._serialize0$_buffer.write$1(0, url);
  115434. return;
  115435. }
  115436. urlContents = B.JSString_methods.substring$2(url, 4, url.length - 1);
  115437. maybeQuote = urlContents.charCodeAt(0);
  115438. if (maybeQuote === 39 || maybeQuote === 34)
  115439. _this._serialize0$_buffer.write$1(0, urlContents);
  115440. else
  115441. _this._serialize0$_visitQuotedString$1(urlContents);
  115442. },
  115443. visitCssKeyframeBlock$1(node) {
  115444. var t1, _this = this;
  115445. _this._serialize0$_writeIndentation$0();
  115446. t1 = _this._serialize0$_buffer;
  115447. t1.forSpan$2(node.selector.span, new A._SerializeVisitor_visitCssKeyframeBlock_closure0(_this, node));
  115448. if (_this._serialize0$_style !== B.OutputStyle_10)
  115449. t1.writeCharCode$1(32);
  115450. _this._serialize0$_visitChildren$1(node);
  115451. },
  115452. _serialize0$_visitMediaQuery$1(query) {
  115453. var t1, _1_0, _2_0, condition, operator, t2, _this = this,
  115454. _0_0 = query.modifier;
  115455. if (_0_0 != null) {
  115456. t1 = _this._serialize0$_buffer;
  115457. t1.write$1(0, _0_0);
  115458. t1.writeCharCode$1(32);
  115459. }
  115460. _1_0 = query.type;
  115461. if (_1_0 != null) {
  115462. t1 = _this._serialize0$_buffer;
  115463. t1.write$1(0, _1_0);
  115464. if (query.conditions.length !== 0)
  115465. t1.write$1(0, " and ");
  115466. }
  115467. _2_0 = query.conditions;
  115468. if (_2_0.length === 1)
  115469. t1 = B.JSString_methods.startsWith$1(_2_0[0], "(not ");
  115470. else
  115471. t1 = false;
  115472. if (t1) {
  115473. t1 = _this._serialize0$_buffer;
  115474. t1.write$1(0, "not ");
  115475. condition = B.JSArray_methods.get$first(_2_0);
  115476. t1.write$1(0, B.JSString_methods.substring$2(condition, 5, condition.length - 1));
  115477. } else {
  115478. operator = query.conjunction ? "and" : "or";
  115479. t1 = _this._serialize0$_style === B.OutputStyle_10 ? operator + " " : " " + operator + " ";
  115480. t2 = _this._serialize0$_buffer;
  115481. _this._serialize0$_writeBetween$3(_2_0, t1, t2.get$write(t2));
  115482. }
  115483. },
  115484. visitCssStyleRule$1(node) {
  115485. var t1, _this = this;
  115486. _this._serialize0$_writeIndentation$0();
  115487. t1 = _this._serialize0$_buffer;
  115488. t1.forSpan$2(node._style_rule0$_selector._box0$_inner.value.span, new A._SerializeVisitor_visitCssStyleRule_closure0(_this, node));
  115489. if (_this._serialize0$_style !== B.OutputStyle_10)
  115490. t1.writeCharCode$1(32);
  115491. _this._serialize0$_visitChildren$1(node);
  115492. },
  115493. visitCssSupportsRule$1(node) {
  115494. var t1, _this = this;
  115495. _this._serialize0$_writeIndentation$0();
  115496. t1 = _this._serialize0$_buffer;
  115497. t1.forSpan$2(node.span, new A._SerializeVisitor_visitCssSupportsRule_closure0(_this, node));
  115498. if (_this._serialize0$_style !== B.OutputStyle_10)
  115499. t1.writeCharCode$1(32);
  115500. _this._serialize0$_visitChildren$1(node);
  115501. },
  115502. visitCssDeclaration$1(node) {
  115503. var error, stackTrace, error0, stackTrace0, t3, declSpecificities, t4, t5, t6, t7, _i, rule, ruleSpecificities, exception, _this = this,
  115504. t1 = node.interleavedRules,
  115505. t2 = t1.length;
  115506. if (t2 !== 0) {
  115507. t3 = node._node$_parent;
  115508. t3.toString;
  115509. declSpecificities = _this._serialize0$_specificities$1(t3);
  115510. for (t3 = _this._serialize0$_logger, t4 = node.span, t5 = type$.SourceSpan, t6 = type$.String, t7 = node.trace, _i = 0; _i < t2; ++_i) {
  115511. rule = t1[_i];
  115512. ruleSpecificities = _this._serialize0$_specificities$1(rule);
  115513. if (!declSpecificities.any$1(0, ruleSpecificities.get$contains(ruleSpecificities)))
  115514. continue;
  115515. A.WarnForDeprecation_warnForDeprecation0(t3, B.Deprecation_VIq, string$.Sassx27s, new A.MultiSpan0(t4, "declaration", A.ConstantMap_ConstantMap$from(A.LinkedHashMap_LinkedHashMap$_literal([rule.span, "nested rule"], t5, t6), t5, t6)), t7);
  115516. }
  115517. }
  115518. _this._serialize0$_writeIndentation$0();
  115519. t1 = node.name;
  115520. _this._serialize0$_write$1(t1);
  115521. t2 = _this._serialize0$_buffer;
  115522. t2.writeCharCode$1(58);
  115523. if (J.startsWith$1$s(t1.value, "--") && node.parsedAsCustomProperty)
  115524. t2.forSpan$2(node.value.span, new A._SerializeVisitor_visitCssDeclaration_closure1(_this, node));
  115525. else {
  115526. if (_this._serialize0$_style !== B.OutputStyle_10)
  115527. t2.writeCharCode$1(32);
  115528. try {
  115529. t2.forSpan$2(node.valueSpanForMap, new A._SerializeVisitor_visitCssDeclaration_closure2(_this, node));
  115530. } catch (exception) {
  115531. t1 = A.unwrapException(exception);
  115532. if (t1 instanceof A.MultiSpanSassScriptException0) {
  115533. error = t1;
  115534. stackTrace = A.getTraceFromException(exception);
  115535. A.throwWithTrace0(A.MultiSpanSassException$0(error.message, node.value.span, error.primaryLabel, error.secondarySpans, null), error, stackTrace);
  115536. } else if (t1 instanceof A.SassScriptException0) {
  115537. error0 = t1;
  115538. stackTrace0 = A.getTraceFromException(exception);
  115539. t1 = error0.message;
  115540. A.throwWithTrace0(new A.SassException0(B.Set_empty, t1, node.value.span), error0, stackTrace0);
  115541. } else
  115542. throw exception;
  115543. }
  115544. }
  115545. },
  115546. _serialize0$_specificities$1(node) {
  115547. var $parent, t2, t3, _i,
  115548. t1 = this.get$_serialize0$_specificities();
  115549. if (node instanceof A.ModifiableCssStyleRule0) {
  115550. t1 = A.NullableExtension_andThen0(node._node$_parent, t1);
  115551. $parent = t1 == null ? null : A.IterableIntegerExtension_get_max(t1);
  115552. if ($parent == null)
  115553. $parent = 0;
  115554. t1 = A.LinkedHashSet_LinkedHashSet$_empty(type$.int);
  115555. for (t2 = node._style_rule0$_selector._box0$_inner.value.components, t3 = t2.length, _i = 0; _i < t3; ++_i)
  115556. t1.add$1(0, $parent + t2[_i].get$specificity());
  115557. return t1;
  115558. } else {
  115559. t1 = A.NullableExtension_andThen0(node.get$parent(node), t1);
  115560. return t1 == null ? B.Set_0 : t1;
  115561. }
  115562. },
  115563. _serialize0$_writeFoldedValue$1(node) {
  115564. var t1, t2, next, t3,
  115565. scanner = A.StringScanner$(type$.SassString_2._as(node.value.value)._string0$_text, null, null);
  115566. for (t1 = scanner.string.length, t2 = this._serialize0$_buffer; scanner._string_scanner$_position !== t1;) {
  115567. next = scanner.readChar$0();
  115568. if (next !== 10) {
  115569. t2.writeCharCode$1(next);
  115570. continue;
  115571. }
  115572. t2.writeCharCode$1(32);
  115573. while (true) {
  115574. t3 = scanner.peekChar$0();
  115575. if (!(t3 === 32 || t3 === 9 || t3 === 10 || t3 === 13 || t3 === 12))
  115576. break;
  115577. scanner.readChar$0();
  115578. }
  115579. }
  115580. },
  115581. _serialize0$_writeReindentedValue$1(node) {
  115582. var _0_0, t1, _this = this,
  115583. value = type$.SassString_2._as(node.value.value)._string0$_text;
  115584. $label0$0: {
  115585. _0_0 = _this._serialize0$_minimumIndentation$1(value);
  115586. if (_0_0 == null) {
  115587. _this._serialize0$_buffer.write$1(0, value);
  115588. break $label0$0;
  115589. }
  115590. if (-1 === _0_0) {
  115591. t1 = _this._serialize0$_buffer;
  115592. t1.write$1(0, A.trimAsciiRight0(value, true));
  115593. t1.writeCharCode$1(32);
  115594. break $label0$0;
  115595. }
  115596. t1 = node.name.span;
  115597. t1 = t1.get$start(t1);
  115598. _this._serialize0$_writeWithIndent$2(value, Math.min(_0_0, t1.file.getColumn$1(t1.offset)));
  115599. }
  115600. },
  115601. _serialize0$_minimumIndentation$1(text) {
  115602. var character, t2, min, next, min0,
  115603. scanner = A.LineScanner$(text),
  115604. t1 = scanner.string.length;
  115605. while (true) {
  115606. if (scanner._string_scanner$_position !== t1) {
  115607. character = scanner.super$StringScanner$readChar();
  115608. scanner._adjustLineAndColumn$1(character);
  115609. t2 = character !== 10;
  115610. } else
  115611. t2 = false;
  115612. if (!t2)
  115613. break;
  115614. }
  115615. if (scanner._string_scanner$_position === t1)
  115616. return scanner.peekChar$1(-1) === 10 ? -1 : null;
  115617. for (min = null; scanner._string_scanner$_position !== t1;) {
  115618. for (; scanner._string_scanner$_position !== t1;) {
  115619. next = scanner.peekChar$0();
  115620. if (next !== 32 && next !== 9)
  115621. break;
  115622. scanner._adjustLineAndColumn$1(scanner.super$StringScanner$readChar());
  115623. }
  115624. if (scanner._string_scanner$_position === t1 || scanner.scanChar$1(10))
  115625. continue;
  115626. min0 = scanner._line_scanner$_column;
  115627. min = min == null ? min0 : Math.min(min, min0);
  115628. while (true) {
  115629. if (scanner._string_scanner$_position !== t1) {
  115630. character = scanner.super$StringScanner$readChar();
  115631. scanner._adjustLineAndColumn$1(character);
  115632. t2 = character !== 10;
  115633. } else
  115634. t2 = false;
  115635. if (!t2)
  115636. break;
  115637. }
  115638. }
  115639. return min == null ? -1 : min;
  115640. },
  115641. _serialize0$_writeWithIndent$2(text, minimumIndentation) {
  115642. var t1, t2, t3, character, lineStart, newlines, end,
  115643. scanner = A.LineScanner$(text);
  115644. for (t1 = scanner.string, t2 = t1.length, t3 = this._serialize0$_buffer; scanner._string_scanner$_position !== t2;) {
  115645. character = scanner.super$StringScanner$readChar();
  115646. scanner._adjustLineAndColumn$1(character);
  115647. if (character === 10)
  115648. break;
  115649. t3.writeCharCode$1(character);
  115650. }
  115651. for (; true;) {
  115652. lineStart = scanner._string_scanner$_position;
  115653. for (newlines = 1; true;) {
  115654. if (scanner._string_scanner$_position === t2) {
  115655. t3.writeCharCode$1(32);
  115656. return;
  115657. }
  115658. $label0$2: {
  115659. character = scanner.super$StringScanner$readChar();
  115660. scanner._adjustLineAndColumn$1(character);
  115661. if (32 === character || 9 === character)
  115662. continue;
  115663. if (10 === character) {
  115664. lineStart = scanner._string_scanner$_position;
  115665. ++newlines;
  115666. break $label0$2;
  115667. }
  115668. break;
  115669. }
  115670. }
  115671. this._serialize0$_writeTimes$2(10, newlines);
  115672. this._serialize0$_writeIndentation$0();
  115673. end = scanner._string_scanner$_position;
  115674. t3.write$1(0, B.JSString_methods.substring$2(t1, lineStart + minimumIndentation, end));
  115675. for (; true;) {
  115676. if (scanner._string_scanner$_position === t2)
  115677. return;
  115678. character = scanner.super$StringScanner$readChar();
  115679. scanner._adjustLineAndColumn$1(character);
  115680. if (character === 10)
  115681. break;
  115682. t3.writeCharCode$1(character);
  115683. }
  115684. }
  115685. },
  115686. visitCalculation$1(value) {
  115687. var t2, _this = this,
  115688. t1 = _this._serialize0$_buffer;
  115689. t1.write$1(0, value.name);
  115690. t1.writeCharCode$1(40);
  115691. t2 = _this._serialize0$_style === B.OutputStyle_10 ? "," : ", ";
  115692. _this._serialize0$_writeBetween$3(value.$arguments, t2, _this.get$_serialize0$_writeCalculationValue());
  115693. t1.writeCharCode$1(41);
  115694. },
  115695. _serialize0$_writeCalculationValue$1(value) {
  115696. var _2_4_isSet, _2_4, t1, _0_0, _1_0, first, rest, left, right, operator, parenthesizeLeft, operatorWhitespace, parenthesizeRight, t2, _this = this, _null = null;
  115697. $label1$1: {
  115698. _2_4_isSet = value instanceof A.SassNumber0;
  115699. if (_2_4_isSet) {
  115700. _2_4 = value.get$hasComplexUnits();
  115701. t1 = _2_4 && !_this._serialize0$_inspect;
  115702. } else {
  115703. _2_4 = _null;
  115704. t1 = false;
  115705. }
  115706. if (t1)
  115707. throw A.wrapException(A.SassScriptException$0(A.S(value) + " isn't a valid CSS value.", _null));
  115708. if (_2_4_isSet && !isFinite(value._number1$_value)) {
  115709. $label0$0: {
  115710. _0_0 = value._number1$_value;
  115711. if (1 / 0 === _0_0) {
  115712. _this._serialize0$_buffer.write$1(0, "infinity");
  115713. break $label0$0;
  115714. }
  115715. if (-1 / 0 === _0_0) {
  115716. _this._serialize0$_buffer.write$1(0, "-infinity");
  115717. break $label0$0;
  115718. }
  115719. if (isNaN(_0_0))
  115720. _this._serialize0$_buffer.write$1(0, "NaN");
  115721. }
  115722. t1 = J.getInterceptor$x(value);
  115723. _this._serialize0$_writeCalculationUnits$2(t1.get$numeratorUnits(value), t1.get$denominatorUnits(value));
  115724. break $label1$1;
  115725. }
  115726. if (_2_4_isSet)
  115727. t1 = _2_4;
  115728. else
  115729. t1 = false;
  115730. if (t1) {
  115731. _this._serialize0$_writeNumber$1(value._number1$_value);
  115732. t1 = J.getInterceptor$x(value);
  115733. _1_0 = t1.get$numeratorUnits(value);
  115734. if (_1_0.length >= 1) {
  115735. first = _1_0[0];
  115736. rest = B.JSArray_methods.sublist$1(_1_0, 1);
  115737. _this._serialize0$_buffer.write$1(0, first);
  115738. _this._serialize0$_writeCalculationUnits$2(rest, t1.get$denominatorUnits(value));
  115739. } else
  115740. _this._serialize0$_writeCalculationUnits$2(A._setArrayType([], type$.JSArray_String), t1.get$denominatorUnits(value));
  115741. break $label1$1;
  115742. }
  115743. if (value instanceof A.Value0) {
  115744. value.accept$1(_this);
  115745. break $label1$1;
  115746. }
  115747. t1 = value instanceof A.CalculationOperation0;
  115748. left = _null;
  115749. right = _null;
  115750. if (t1) {
  115751. operator = value._calculation0$_operator;
  115752. left = value._calculation0$_left;
  115753. right = value._calculation0$_right;
  115754. right = right;
  115755. } else
  115756. operator = _null;
  115757. if (t1) {
  115758. parenthesizeLeft = left instanceof A.CalculationOperation0 && left._calculation0$_operator.precedence < operator.precedence;
  115759. if (parenthesizeLeft)
  115760. _this._serialize0$_buffer.writeCharCode$1(40);
  115761. _this._serialize0$_writeCalculationValue$1(left);
  115762. if (parenthesizeLeft)
  115763. _this._serialize0$_buffer.writeCharCode$1(41);
  115764. operatorWhitespace = _this._serialize0$_style !== B.OutputStyle_10 || operator.precedence === 1;
  115765. if (operatorWhitespace)
  115766. _this._serialize0$_buffer.writeCharCode$1(32);
  115767. t1 = _this._serialize0$_buffer;
  115768. t1.write$1(0, operator.operator);
  115769. if (operatorWhitespace)
  115770. t1.writeCharCode$1(32);
  115771. if (!(right instanceof A.CalculationOperation0 && _this._serialize0$_parenthesizeCalculationRhs$2(operator, right._calculation0$_operator))) {
  115772. parenthesizeRight = false;
  115773. if (operator === B.CalculationOperator_Qf10) {
  115774. if (right instanceof A.SassNumber0)
  115775. t2 = isFinite(right._number1$_value) ? right.get$hasComplexUnits() : right.get$hasUnits();
  115776. else
  115777. t2 = parenthesizeRight;
  115778. parenthesizeRight = t2;
  115779. }
  115780. } else
  115781. parenthesizeRight = true;
  115782. if (parenthesizeRight)
  115783. t1.writeCharCode$1(40);
  115784. _this._serialize0$_writeCalculationValue$1(right);
  115785. if (parenthesizeRight)
  115786. t1.writeCharCode$1(41);
  115787. }
  115788. }
  115789. },
  115790. _serialize0$_writeCalculationUnits$2(numeratorUnits, denominatorUnits) {
  115791. var t1, t2, t3, t4;
  115792. for (t1 = J.get$iterator$ax(numeratorUnits), t2 = this._serialize0$_buffer, t3 = this._serialize0$_style !== B.OutputStyle_10; t1.moveNext$0();) {
  115793. t4 = t1.get$current(t1);
  115794. if (t3)
  115795. t2.writeCharCode$1(32);
  115796. t2.writeCharCode$1(42);
  115797. if (t3)
  115798. t2.writeCharCode$1(32);
  115799. t2.writeCharCode$1(49);
  115800. t2.write$1(0, t4);
  115801. }
  115802. for (t1 = J.get$iterator$ax(denominatorUnits); t1.moveNext$0();) {
  115803. t4 = t1.get$current(t1);
  115804. if (t3)
  115805. t2.writeCharCode$1(32);
  115806. t2.writeCharCode$1(47);
  115807. if (t3)
  115808. t2.writeCharCode$1(32);
  115809. t2.writeCharCode$1(49);
  115810. t2.write$1(0, t4);
  115811. }
  115812. },
  115813. _serialize0$_parenthesizeCalculationRhs$2(outer, right) {
  115814. var t1;
  115815. $label0$0: {
  115816. if (B.CalculationOperator_Qf10 === outer) {
  115817. t1 = true;
  115818. break $label0$0;
  115819. }
  115820. if (B.CalculationOperator_g2q0 === outer) {
  115821. t1 = false;
  115822. break $label0$0;
  115823. }
  115824. t1 = right === B.CalculationOperator_g2q0 || right === B.CalculationOperator_CxF0;
  115825. break $label0$0;
  115826. }
  115827. return t1;
  115828. },
  115829. visitColor$1(value) {
  115830. var _0_0, _0_2, _0_6, t1, _0_4, _0_6_isSet, t2, _0_10_isSet, _0_10, _0_12_isSet, _0_14, _0_12, _0_14_isSet, t3, _0_10_isSet0, polar, t4, t5, _this = this, _null = null;
  115831. $label0$0: {
  115832. _0_0 = value._color0$_space;
  115833. _0_2 = B.RgbColorSpace_mlz0 === _0_0;
  115834. _0_6 = _null;
  115835. t1 = true;
  115836. if (!_0_2) {
  115837. _0_4 = B.HslColorSpace_gsm0 === _0_0;
  115838. _0_6_isSet = !_0_4;
  115839. if (_0_6_isSet) {
  115840. _0_6 = B.HwbColorSpace_06z0 === _0_0;
  115841. t1 = _0_6;
  115842. }
  115843. } else {
  115844. _0_4 = _null;
  115845. _0_6_isSet = false;
  115846. }
  115847. if (t1 && value.channel0OrNull != null && value.channel1OrNull != null && value.channel2OrNull != null && value.alphaOrNull != null) {
  115848. _this._serialize0$_writeLegacyColor$1(value);
  115849. break $label0$0;
  115850. }
  115851. if (_0_2) {
  115852. t1 = _this._serialize0$_buffer;
  115853. t1.write$1(0, "rgb(");
  115854. _this._serialize0$_writeChannel$1(value.channel0OrNull);
  115855. t1.writeCharCode$1(32);
  115856. _this._serialize0$_writeChannel$1(value.channel1OrNull);
  115857. t1.writeCharCode$1(32);
  115858. _this._serialize0$_writeChannel$1(value.channel2OrNull);
  115859. _this._serialize0$_maybeWriteSlashAlpha$1(value);
  115860. t1.writeCharCode$1(41);
  115861. break $label0$0;
  115862. }
  115863. if (!_0_4)
  115864. t1 = _0_6_isSet ? _0_6 : B.HwbColorSpace_06z0 === _0_0;
  115865. else
  115866. t1 = true;
  115867. if (t1) {
  115868. t1 = _this._serialize0$_buffer;
  115869. t1.write$1(0, _0_0);
  115870. t1.writeCharCode$1(40);
  115871. t2 = _this._serialize0$_style === B.OutputStyle_10 ? _null : "deg";
  115872. _this._serialize0$_writeChannel$2(value.channel0OrNull, t2);
  115873. t1.writeCharCode$1(32);
  115874. _this._serialize0$_writeChannel$2(value.channel1OrNull, "%");
  115875. t1.writeCharCode$1(32);
  115876. _this._serialize0$_writeChannel$2(value.channel2OrNull, "%");
  115877. _this._serialize0$_maybeWriteSlashAlpha$1(value);
  115878. t1.writeCharCode$1(41);
  115879. break $label0$0;
  115880. }
  115881. _0_10_isSet = B.LabColorSpace_IF20 !== _0_0;
  115882. if (_0_10_isSet) {
  115883. _0_10 = B.LchColorSpace_wv80 === _0_0;
  115884. t1 = _0_10;
  115885. } else {
  115886. _0_10 = _null;
  115887. t1 = true;
  115888. }
  115889. t2 = false;
  115890. if (t1)
  115891. if (!_this._serialize0$_inspect) {
  115892. t1 = value.channel0OrNull;
  115893. if (t1 == null)
  115894. t1 = 0;
  115895. if (t1 > 0 || A.fuzzyEquals0(t1, 0))
  115896. t1 = t1 < 100 || A.fuzzyEquals0(t1, 100);
  115897. else
  115898. t1 = false;
  115899. t1 = !t1 && value.channel1OrNull != null && value.channel2OrNull != null;
  115900. } else
  115901. t1 = t2;
  115902. else
  115903. t1 = t2;
  115904. _0_12_isSet = !t1;
  115905. _0_14 = _null;
  115906. if (_0_12_isSet) {
  115907. _0_12 = B.OklabColorSpace_yrt0 === _0_0;
  115908. t1 = false;
  115909. _0_14_isSet = !_0_12;
  115910. if (_0_14_isSet) {
  115911. _0_14 = B.OklchColorSpace_li80 === _0_0;
  115912. t2 = _0_14;
  115913. } else
  115914. t2 = true;
  115915. t3 = false;
  115916. if (t2)
  115917. if (!_this._serialize0$_inspect) {
  115918. t2 = value.channel0OrNull;
  115919. if (t2 == null)
  115920. t2 = 0;
  115921. if (t2 > 0 || A.fuzzyEquals0(t2, 0))
  115922. t2 = t2 < 1 || A.fuzzyEquals0(t2, 1);
  115923. else
  115924. t2 = false;
  115925. t2 = !t2 && value.channel1OrNull != null && value.channel2OrNull != null;
  115926. } else
  115927. t2 = t3;
  115928. else
  115929. t2 = t3;
  115930. if (!t2) {
  115931. if (_0_10_isSet) {
  115932. t2 = _0_10;
  115933. _0_10_isSet0 = _0_10_isSet;
  115934. } else {
  115935. _0_10 = B.LchColorSpace_wv80 === _0_0;
  115936. t2 = _0_10;
  115937. _0_10_isSet0 = true;
  115938. }
  115939. if (!t2)
  115940. if (_0_14_isSet)
  115941. t2 = _0_14;
  115942. else {
  115943. _0_14 = B.OklchColorSpace_li80 === _0_0;
  115944. t2 = _0_14;
  115945. _0_14_isSet = true;
  115946. }
  115947. else
  115948. t2 = true;
  115949. if (t2)
  115950. if (!_this._serialize0$_inspect) {
  115951. t1 = value.channel1OrNull;
  115952. t2 = t1 == null;
  115953. if (t2)
  115954. t1 = 0;
  115955. t1 = t1 < 0 && !A.fuzzyEquals0(t1, 0) && value.channel0OrNull != null && !t2;
  115956. }
  115957. } else {
  115958. _0_10_isSet0 = _0_10_isSet;
  115959. t1 = true;
  115960. }
  115961. } else {
  115962. _0_12 = _null;
  115963. _0_10_isSet0 = _0_10_isSet;
  115964. _0_14_isSet = false;
  115965. t1 = true;
  115966. }
  115967. if (t1) {
  115968. t1 = _this._serialize0$_buffer;
  115969. t1.write$1(0, "color-mix(in ");
  115970. t1.write$1(0, _0_0);
  115971. t2 = _this._serialize0$_style === B.OutputStyle_10;
  115972. t1.write$1(0, t2 ? "," : ", ");
  115973. _this._serialize0$_writeColorFunction$1(value.toSpace$1(B.XyzD65ColorSpace_4CA0));
  115974. if (!t2)
  115975. t1.writeCharCode$1(32);
  115976. t1.write$1(0, "100%");
  115977. t1.write$1(0, t2 ? "," : ", ");
  115978. t1.write$1(0, t2 ? "red" : "black");
  115979. t1.writeCharCode$1(41);
  115980. break $label0$0;
  115981. }
  115982. t1 = true;
  115983. if (_0_10_isSet)
  115984. if (!(_0_12_isSet ? _0_12 : B.OklabColorSpace_yrt0 === _0_0))
  115985. if (!(_0_10_isSet0 ? _0_10 : B.LchColorSpace_wv80 === _0_0))
  115986. t1 = _0_14_isSet ? _0_14 : B.OklchColorSpace_li80 === _0_0;
  115987. if (t1) {
  115988. t1 = _this._serialize0$_buffer;
  115989. t1.write$1(0, _0_0);
  115990. t1.writeCharCode$1(40);
  115991. t2 = _0_0._space$_channels;
  115992. polar = t2[2].isPolarAngle;
  115993. t3 = false;
  115994. if (!_this._serialize0$_inspect) {
  115995. t4 = value.channel0OrNull;
  115996. if (t4 == null)
  115997. t4 = 0;
  115998. if (t4 > 0 || A.fuzzyEquals0(t4, 0))
  115999. t4 = t4 < 100 || A.fuzzyEquals0(t4, 100);
  116000. else
  116001. t4 = false;
  116002. if (t4) {
  116003. if (polar) {
  116004. t3 = value.channel1OrNull;
  116005. if (t3 == null)
  116006. t3 = 0;
  116007. t3 = t3 < 0 && !A.fuzzyEquals0(t3, 0);
  116008. }
  116009. } else
  116010. t3 = true;
  116011. }
  116012. if (t3) {
  116013. t1.write$1(0, "from ");
  116014. t1.write$1(0, _this._serialize0$_style === B.OutputStyle_10 ? "red" : "black");
  116015. t1.writeCharCode$1(32);
  116016. }
  116017. t3 = _this._serialize0$_style !== B.OutputStyle_10;
  116018. t4 = t3 && value.channel0OrNull != null;
  116019. t5 = value.channel0OrNull;
  116020. if (t4) {
  116021. t2 = type$.LinearChannel_2._as(t2[0]);
  116022. _this._serialize0$_writeNumber$1((t5 == null ? 0 : t5) * 100 / t2.max);
  116023. t1.writeCharCode$1(37);
  116024. } else
  116025. _this._serialize0$_writeChannel$1(t5);
  116026. t1.writeCharCode$1(32);
  116027. _this._serialize0$_writeChannel$1(value.channel1OrNull);
  116028. t1.writeCharCode$1(32);
  116029. t2 = polar && t3 ? "deg" : _null;
  116030. _this._serialize0$_writeChannel$2(value.channel2OrNull, t2);
  116031. _this._serialize0$_maybeWriteSlashAlpha$1(value);
  116032. t1.writeCharCode$1(41);
  116033. break $label0$0;
  116034. }
  116035. _this._serialize0$_writeColorFunction$1(value);
  116036. }
  116037. },
  116038. _serialize0$_writeChannel$2(channel, unit) {
  116039. var _this = this;
  116040. if (channel == null)
  116041. _this._serialize0$_buffer.write$1(0, "none");
  116042. else if (isFinite(channel)) {
  116043. _this._serialize0$_writeNumber$1(channel);
  116044. if (unit != null)
  116045. _this._serialize0$_buffer.write$1(0, unit);
  116046. } else
  116047. _this.visitNumber$1(A.SassNumber_SassNumber0(channel, unit));
  116048. },
  116049. _serialize0$_writeChannel$1(channel) {
  116050. return this._serialize0$_writeChannel$2(channel, null);
  116051. },
  116052. _serialize0$_writeLegacyColor$1(color) {
  116053. var rgb, t3, red, green, blue, hsl, hue, saturation, lightness, hwb, _0_0, format, _1_0, _this = this,
  116054. t1 = color.alphaOrNull,
  116055. t2 = t1 == null,
  116056. opaque = A.fuzzyEquals0(t2 ? 0 : t1, 1);
  116057. if (!color.get$isInGamut() && !_this._serialize0$_inspect) {
  116058. _this._serialize0$_writeHsl$1(color);
  116059. return;
  116060. }
  116061. if (_this._serialize0$_style === B.OutputStyle_10) {
  116062. rgb = color.toSpace$1(B.RgbColorSpace_mlz0);
  116063. if (opaque && _this._serialize0$_tryIntegerRgb$1(rgb))
  116064. return;
  116065. t3 = rgb.channel0OrNull;
  116066. red = _this._serialize0$_writeNumberToString$1(t3 == null ? 0 : t3);
  116067. t3 = rgb.channel1OrNull;
  116068. green = _this._serialize0$_writeNumberToString$1(t3 == null ? 0 : t3);
  116069. t3 = rgb.channel2OrNull;
  116070. blue = _this._serialize0$_writeNumberToString$1(t3 == null ? 0 : t3);
  116071. hsl = color.toSpace$1(B.HslColorSpace_gsm0);
  116072. t3 = hsl.channel0OrNull;
  116073. hue = _this._serialize0$_writeNumberToString$1(t3 == null ? 0 : t3);
  116074. t3 = hsl.channel1OrNull;
  116075. saturation = _this._serialize0$_writeNumberToString$1(t3 == null ? 0 : t3);
  116076. t3 = hsl.channel2OrNull;
  116077. lightness = _this._serialize0$_writeNumberToString$1(t3 == null ? 0 : t3);
  116078. t3 = _this._serialize0$_buffer;
  116079. if (red.length + green.length + blue.length <= hue.length + saturation.length + lightness.length + 2) {
  116080. t3.write$1(0, opaque ? "rgb(" : "rgba(");
  116081. t3.write$1(0, red);
  116082. t3.writeCharCode$1(44);
  116083. t3.write$1(0, green);
  116084. t3.writeCharCode$1(44);
  116085. t3.write$1(0, blue);
  116086. } else {
  116087. t3.write$1(0, opaque ? "hsl(" : "hsla(");
  116088. t3.write$1(0, hue);
  116089. t3.writeCharCode$1(44);
  116090. t3.write$1(0, saturation);
  116091. t3.write$1(0, "%,");
  116092. t3.write$1(0, lightness);
  116093. t3.writeCharCode$1(37);
  116094. }
  116095. if (!opaque) {
  116096. t3.writeCharCode$1(44);
  116097. _this._serialize0$_writeNumber$1(t2 ? 0 : t1);
  116098. }
  116099. t3.writeCharCode$1(41);
  116100. return;
  116101. }
  116102. t3 = color._color0$_space;
  116103. if (t3 === B.HslColorSpace_gsm0) {
  116104. _this._serialize0$_writeHsl$1(color);
  116105. return;
  116106. } else if (_this._serialize0$_inspect && t3 === B.HwbColorSpace_06z0) {
  116107. t3 = _this._serialize0$_buffer;
  116108. t3.write$1(0, "hwb(");
  116109. hwb = color.toSpace$1(B.HwbColorSpace_06z0);
  116110. _this._serialize0$_writeNumber$1(hwb.channel$1(0, "hue"));
  116111. t3.writeCharCode$1(32);
  116112. _this._serialize0$_writeNumber$1(hwb.channel$1(0, "whiteness"));
  116113. t3.writeCharCode$1(37);
  116114. t3.writeCharCode$1(32);
  116115. _this._serialize0$_writeNumber$1(hwb.channel$1(0, "blackness"));
  116116. t3.writeCharCode$1(37);
  116117. if (!A.fuzzyEquals0(t2 ? 0 : t1, 1)) {
  116118. t3.write$1(0, " / ");
  116119. _this._serialize0$_writeNumber$1(t2 ? 0 : t1);
  116120. }
  116121. t3.writeCharCode$1(41);
  116122. return;
  116123. }
  116124. _0_0 = color.format;
  116125. if (B.C__ColorFormatEnum0 === _0_0) {
  116126. _this._serialize0$_writeRgb$1(color);
  116127. return;
  116128. }
  116129. t1 = _0_0 instanceof A.SpanColorFormat0;
  116130. format = t1 ? _0_0 : null;
  116131. if (t1) {
  116132. _this._serialize0$_buffer.write$1(0, format._color0$_span.get$text());
  116133. return;
  116134. }
  116135. if (opaque) {
  116136. rgb = color.toSpace$1(B.RgbColorSpace_mlz0);
  116137. _1_0 = $.$get$namesByColor0().$index(0, rgb);
  116138. if (_1_0 != null) {
  116139. _this._serialize0$_buffer.write$1(0, _1_0);
  116140. return;
  116141. }
  116142. if (_this._serialize0$_canUseHex$1(rgb)) {
  116143. _this._serialize0$_buffer.writeCharCode$1(35);
  116144. t1 = rgb.channel0OrNull;
  116145. _this._serialize0$_writeHexComponent$1(B.JSNumber_methods.round$0(t1 == null ? 0 : t1));
  116146. t1 = rgb.channel1OrNull;
  116147. _this._serialize0$_writeHexComponent$1(B.JSNumber_methods.round$0(t1 == null ? 0 : t1));
  116148. t1 = rgb.channel2OrNull;
  116149. _this._serialize0$_writeHexComponent$1(B.JSNumber_methods.round$0(t1 == null ? 0 : t1));
  116150. return;
  116151. }
  116152. }
  116153. if (t3 === B.HwbColorSpace_06z0)
  116154. _this._serialize0$_writeHsl$1(color);
  116155. else
  116156. _this._serialize0$_writeRgb$1(color);
  116157. },
  116158. _serialize0$_tryIntegerRgb$1(rgb) {
  116159. var t1, redInt, greenInt, blueInt, shortHex, _0_0, t2, t3, $name, _this = this;
  116160. if (!_this._serialize0$_canUseHex$1(rgb))
  116161. return false;
  116162. t1 = rgb.channel0OrNull;
  116163. redInt = B.JSNumber_methods.round$0(t1 == null ? 0 : t1);
  116164. t1 = rgb.channel1OrNull;
  116165. greenInt = B.JSNumber_methods.round$0(t1 == null ? 0 : t1);
  116166. t1 = rgb.channel2OrNull;
  116167. blueInt = B.JSNumber_methods.round$0(t1 == null ? 0 : t1);
  116168. t1 = redInt & 15;
  116169. shortHex = t1 === B.JSInt_methods._shrOtherPositive$1(redInt, 4) && (greenInt & 15) === B.JSInt_methods._shrOtherPositive$1(greenInt, 4) && (blueInt & 15) === B.JSInt_methods._shrOtherPositive$1(blueInt, 4);
  116170. _0_0 = $.$get$namesByColor0().$index(0, rgb);
  116171. t2 = false;
  116172. if (_0_0 != null) {
  116173. t3 = _0_0.length;
  116174. t2 = t3 <= (shortHex ? 4 : 7);
  116175. $name = _0_0;
  116176. } else
  116177. $name = null;
  116178. if (t2)
  116179. _this._serialize0$_buffer.write$1(0, $name);
  116180. else {
  116181. t2 = _this._serialize0$_buffer;
  116182. if (shortHex) {
  116183. t2.writeCharCode$1(35);
  116184. t2.writeCharCode$1(A.hexCharFor0(t1));
  116185. t2.writeCharCode$1(A.hexCharFor0(greenInt & 15));
  116186. t2.writeCharCode$1(A.hexCharFor0(blueInt & 15));
  116187. } else {
  116188. t2.writeCharCode$1(35);
  116189. _this._serialize0$_writeHexComponent$1(redInt);
  116190. _this._serialize0$_writeHexComponent$1(greenInt);
  116191. _this._serialize0$_writeHexComponent$1(blueInt);
  116192. }
  116193. }
  116194. return true;
  116195. },
  116196. _serialize0$_canUseHex$1(rgb) {
  116197. var t2,
  116198. t1 = rgb.channel0OrNull;
  116199. if (t1 == null)
  116200. t1 = 0;
  116201. if (A.fuzzyIsInt0(t1))
  116202. t1 = (t1 > 0 || A.fuzzyEquals0(t1, 0)) && t1 < 256 && !A.fuzzyEquals0(t1, 256);
  116203. else
  116204. t1 = false;
  116205. t2 = false;
  116206. if (t1) {
  116207. t1 = rgb.channel1OrNull;
  116208. if (t1 == null)
  116209. t1 = 0;
  116210. if (A.fuzzyIsInt0(t1))
  116211. t1 = (t1 > 0 || A.fuzzyEquals0(t1, 0)) && t1 < 256 && !A.fuzzyEquals0(t1, 256);
  116212. else
  116213. t1 = false;
  116214. if (t1) {
  116215. t1 = rgb.channel2OrNull;
  116216. if (t1 == null)
  116217. t1 = 0;
  116218. if (A.fuzzyIsInt0(t1))
  116219. t1 = (t1 > 0 || A.fuzzyEquals0(t1, 0)) && t1 < 256 && !A.fuzzyEquals0(t1, 256);
  116220. else
  116221. t1 = t2;
  116222. } else
  116223. t1 = t2;
  116224. } else
  116225. t1 = t2;
  116226. return t1;
  116227. },
  116228. _serialize0$_writeRgb$1(color) {
  116229. var t4, _this = this,
  116230. t1 = color.alphaOrNull,
  116231. t2 = t1 == null,
  116232. opaque = A.fuzzyEquals0(t2 ? 0 : t1, 1),
  116233. rgb = color.toSpace$1(B.RgbColorSpace_mlz0),
  116234. t3 = _this._serialize0$_buffer;
  116235. t3.write$1(0, opaque ? "rgb(" : "rgba(");
  116236. _this._serialize0$_writeNumber$1(rgb.channel$1(0, "red"));
  116237. t4 = _this._serialize0$_style === B.OutputStyle_10;
  116238. t3.write$1(0, t4 ? "," : ", ");
  116239. _this._serialize0$_writeNumber$1(rgb.channel$1(0, "green"));
  116240. t3.write$1(0, t4 ? "," : ", ");
  116241. _this._serialize0$_writeNumber$1(rgb.channel$1(0, "blue"));
  116242. if (!opaque) {
  116243. t3.write$1(0, t4 ? "," : ", ");
  116244. _this._serialize0$_writeNumber$1(t2 ? 0 : t1);
  116245. }
  116246. t3.writeCharCode$1(41);
  116247. },
  116248. _serialize0$_writeHsl$1(color) {
  116249. var t4, _this = this,
  116250. t1 = color.alphaOrNull,
  116251. t2 = t1 == null,
  116252. opaque = A.fuzzyEquals0(t2 ? 0 : t1, 1),
  116253. hsl = color.toSpace$1(B.HslColorSpace_gsm0),
  116254. t3 = _this._serialize0$_buffer;
  116255. t3.write$1(0, opaque ? "hsl(" : "hsla(");
  116256. _this._serialize0$_writeChannel$1(hsl.channel$1(0, "hue"));
  116257. t4 = _this._serialize0$_style === B.OutputStyle_10;
  116258. t3.write$1(0, t4 ? "," : ", ");
  116259. _this._serialize0$_writeChannel$2(hsl.channel$1(0, "saturation"), "%");
  116260. t3.write$1(0, t4 ? "," : ", ");
  116261. _this._serialize0$_writeChannel$2(hsl.channel$1(0, "lightness"), "%");
  116262. if (!opaque) {
  116263. t3.write$1(0, t4 ? "," : ", ");
  116264. _this._serialize0$_writeNumber$1(t2 ? 0 : t1);
  116265. }
  116266. t3.writeCharCode$1(41);
  116267. },
  116268. _serialize0$_writeColorFunction$1(color) {
  116269. var _this = this,
  116270. t1 = _this._serialize0$_buffer;
  116271. t1.write$1(0, "color(");
  116272. t1.write$1(0, color._color0$_space);
  116273. t1.writeCharCode$1(32);
  116274. _this._serialize0$_writeBetween$3(color.get$channelsOrNull(), " ", _this.get$_serialize0$_writeChannel());
  116275. _this._serialize0$_maybeWriteSlashAlpha$1(color);
  116276. t1.writeCharCode$1(41);
  116277. },
  116278. _serialize0$_writeHexComponent$1(color) {
  116279. var t1 = this._serialize0$_buffer;
  116280. t1.writeCharCode$1(A.hexCharFor0(B.JSInt_methods._shrOtherPositive$1(color, 4)));
  116281. t1.writeCharCode$1(A.hexCharFor0(color & 15));
  116282. },
  116283. _serialize0$_maybeWriteSlashAlpha$1(color) {
  116284. var t2, t3, _this = this,
  116285. t1 = color.alphaOrNull;
  116286. if (A.fuzzyEquals0(t1 == null ? 0 : t1, 1))
  116287. return;
  116288. t2 = _this._serialize0$_style !== B.OutputStyle_10;
  116289. if (t2)
  116290. _this._serialize0$_buffer.writeCharCode$1(32);
  116291. t3 = _this._serialize0$_buffer;
  116292. t3.writeCharCode$1(47);
  116293. if (t2)
  116294. t3.writeCharCode$1(32);
  116295. _this._serialize0$_writeChannel$1(t1);
  116296. },
  116297. visitList$1(value) {
  116298. var t2, singleton, t3, t4, t5, _this = this,
  116299. t1 = value._list1$_hasBrackets;
  116300. if (t1)
  116301. _this._serialize0$_buffer.writeCharCode$1(91);
  116302. else if (value._list1$_contents.length === 0) {
  116303. if (!_this._serialize0$_inspect)
  116304. throw A.wrapException(A.SassScriptException$0("() isn't a valid CSS value.", null));
  116305. _this._serialize0$_buffer.write$1(0, "()");
  116306. return;
  116307. }
  116308. t2 = _this._serialize0$_inspect;
  116309. singleton = false;
  116310. if (t2)
  116311. if (value._list1$_contents.length === 1) {
  116312. t3 = value._list1$_separator;
  116313. t3 = t3 === B.ListSeparator_ECn0 || t3 === B.ListSeparator_cQA0;
  116314. singleton = t3;
  116315. }
  116316. if (singleton && !t1)
  116317. _this._serialize0$_buffer.writeCharCode$1(40);
  116318. t3 = value._list1$_contents;
  116319. t3 = t2 ? t3 : new A.WhereIterable(t3, new A._SerializeVisitor_visitList_closure2(), A._arrayInstanceType(t3)._eval$1("WhereIterable<1>"));
  116320. t4 = value._list1$_separator;
  116321. t5 = _this._serialize0$_separatorString$1(t4);
  116322. _this._serialize0$_writeBetween$3(t3, t5, t2 ? new A._SerializeVisitor_visitList_closure3(_this, value) : new A._SerializeVisitor_visitList_closure4(_this));
  116323. if (singleton) {
  116324. t2 = _this._serialize0$_buffer;
  116325. t2.write$1(0, t4.separator);
  116326. if (!t1)
  116327. t2.writeCharCode$1(41);
  116328. }
  116329. if (t1)
  116330. _this._serialize0$_buffer.writeCharCode$1(93);
  116331. },
  116332. _serialize0$_separatorString$1(separator) {
  116333. var t1;
  116334. $label0$0: {
  116335. if (B.ListSeparator_ECn0 === separator) {
  116336. t1 = this._serialize0$_style === B.OutputStyle_10 ? "," : ", ";
  116337. break $label0$0;
  116338. }
  116339. if (B.ListSeparator_cQA0 === separator) {
  116340. t1 = this._serialize0$_style === B.OutputStyle_10 ? "/" : " / ";
  116341. break $label0$0;
  116342. }
  116343. if (B.ListSeparator_nbm0 === separator) {
  116344. t1 = " ";
  116345. break $label0$0;
  116346. }
  116347. t1 = "";
  116348. break $label0$0;
  116349. }
  116350. return t1;
  116351. },
  116352. _serialize0$_elementNeedsParens$2(separator, value) {
  116353. var t1;
  116354. $label1$1: {
  116355. if (value instanceof A.SassList0 && value._list1$_contents.length > 1 && !value._list1$_hasBrackets) {
  116356. $label0$0: {
  116357. if (B.ListSeparator_ECn0 === separator) {
  116358. t1 = value._list1$_separator === B.ListSeparator_ECn0;
  116359. break $label0$0;
  116360. }
  116361. if (B.ListSeparator_cQA0 === separator) {
  116362. t1 = value._list1$_separator;
  116363. t1 = t1 === B.ListSeparator_ECn0 || t1 === B.ListSeparator_cQA0;
  116364. break $label0$0;
  116365. }
  116366. t1 = value._list1$_separator !== B.ListSeparator_undecided_null_undecided0;
  116367. break $label0$0;
  116368. }
  116369. break $label1$1;
  116370. }
  116371. t1 = false;
  116372. break $label1$1;
  116373. }
  116374. return t1;
  116375. },
  116376. visitMap$1(map) {
  116377. var t1, t2, _this = this;
  116378. if (!_this._serialize0$_inspect)
  116379. throw A.wrapException(A.SassScriptException$0(map.toString$0(0) + " isn't a valid CSS value.", null));
  116380. t1 = _this._serialize0$_buffer;
  116381. t1.writeCharCode$1(40);
  116382. t2 = map._map0$_contents;
  116383. _this._serialize0$_writeBetween$3(t2.get$entries(t2), ", ", new A._SerializeVisitor_visitMap_closure0(_this));
  116384. t1.writeCharCode$1(41);
  116385. },
  116386. _serialize0$_writeMapElement$1(value) {
  116387. var needsParens = value instanceof A.SassList0 && value._list1$_separator === B.ListSeparator_ECn0 && !value._list1$_hasBrackets;
  116388. if (needsParens)
  116389. this._serialize0$_buffer.writeCharCode$1(40);
  116390. value.accept$1(this);
  116391. if (needsParens)
  116392. this._serialize0$_buffer.writeCharCode$1(41);
  116393. },
  116394. visitNumber$1(value) {
  116395. var before, after, t1, _1_0, _this = this,
  116396. _0_0 = value.asSlash;
  116397. if (type$.Record_2_nullable_Object_and_nullable_Object._is(_0_0)) {
  116398. before = _0_0._0;
  116399. after = _0_0._1;
  116400. _this.visitNumber$1(before);
  116401. _this._serialize0$_buffer.writeCharCode$1(47);
  116402. _this.visitNumber$1(after);
  116403. return;
  116404. }
  116405. t1 = value._number1$_value;
  116406. if (!isFinite(t1)) {
  116407. _this.visitCalculation$1(new A.SassCalculation0("calc", A.List_List$unmodifiable(A._setArrayType([value], type$.JSArray_Object), type$.Object)));
  116408. return;
  116409. }
  116410. if (value.get$hasComplexUnits()) {
  116411. if (!_this._serialize0$_inspect)
  116412. throw A.wrapException(A.SassScriptException$0(value.toString$0(0) + " isn't a valid CSS value.", null));
  116413. _this.visitCalculation$1(new A.SassCalculation0("calc", A.List_List$unmodifiable(A._setArrayType([value], type$.JSArray_Object), type$.Object)));
  116414. } else {
  116415. _this._serialize0$_writeNumber$1(t1);
  116416. _1_0 = value.get$numeratorUnits(value);
  116417. if (_1_0.length === 1)
  116418. _this._serialize0$_buffer.write$1(0, _1_0[0]);
  116419. }
  116420. },
  116421. _serialize0$_writeNumberToString$1(number) {
  116422. var t1 = new A.StringBuffer("");
  116423. this._serialize0$_writeNumber$2(number, new A.NoSourceMapBuffer0(t1));
  116424. t1 = t1._contents;
  116425. return t1.charCodeAt(0) == 0 ? t1 : t1;
  116426. },
  116427. _serialize0$_writeNumber$2(number, buffer) {
  116428. var _0_0, text, _this = this;
  116429. if (buffer == null)
  116430. buffer = _this._serialize0$_buffer;
  116431. _0_0 = A.fuzzyAsInt0(number);
  116432. if (_0_0 != null) {
  116433. buffer.write$1(0, _this._serialize0$_removeExponent$1(B.JSInt_methods.toString$0(_0_0)));
  116434. return;
  116435. }
  116436. text = _this._serialize0$_removeExponent$1(B.JSNumber_methods.toString$0(number));
  116437. if (text.length < 12) {
  116438. buffer.write$1(0, _this._serialize0$_style === B.OutputStyle_10 && text.charCodeAt(0) === 48 ? B.JSString_methods.substring$1(text, 1) : text);
  116439. return;
  116440. }
  116441. _this._serialize0$_writeRounded$2(text, buffer);
  116442. },
  116443. _serialize0$_writeNumber$1(number) {
  116444. return this._serialize0$_writeNumber$2(number, null);
  116445. },
  116446. _serialize0$_removeExponent$1(text) {
  116447. var buffer, t2, t3, additionalZeroes,
  116448. negative = text.charCodeAt(0) === 45,
  116449. exponent = A._Cell$(),
  116450. t1 = text.length,
  116451. i = 0;
  116452. while (true) {
  116453. if (!(i < t1)) {
  116454. buffer = null;
  116455. break;
  116456. }
  116457. c$0: {
  116458. if (text.charCodeAt(i) !== 101)
  116459. break c$0;
  116460. buffer = new A.StringBuffer("");
  116461. t2 = buffer._contents = "" + A.Primitives_stringFromCharCode(text.charCodeAt(0));
  116462. if (negative) {
  116463. t2 += A.Primitives_stringFromCharCode(text.charCodeAt(1));
  116464. buffer._contents = t2;
  116465. if (i > 3)
  116466. buffer._contents = t2 + B.JSString_methods.substring$2(text, 3, i);
  116467. } else if (i > 2)
  116468. buffer._contents = t2 + B.JSString_methods.substring$2(text, 2, i);
  116469. exponent.__late_helper$_value = A.int_parse(B.JSString_methods.substring$2(text, i + 1, t1), null);
  116470. break;
  116471. }
  116472. ++i;
  116473. }
  116474. if (buffer == null)
  116475. return text;
  116476. if (exponent._readLocal$0() > 0) {
  116477. t1 = exponent._readLocal$0();
  116478. t2 = buffer._contents;
  116479. t3 = negative ? 1 : 0;
  116480. additionalZeroes = t1 - (t2.length - 1 - t3);
  116481. for (t1 = t2, i = 0; i < additionalZeroes; ++i) {
  116482. t1 = A.Primitives_stringFromCharCode(48);
  116483. t1 = buffer._contents += t1;
  116484. }
  116485. return t1.charCodeAt(0) == 0 ? t1 : t1;
  116486. } else {
  116487. negative = text.charCodeAt(0) === 45;
  116488. t1 = (negative ? "" + A.Primitives_stringFromCharCode(45) : "") + "0.";
  116489. i = -1;
  116490. while (true) {
  116491. t2 = exponent.__late_helper$_value;
  116492. if (t2 === exponent)
  116493. A.throwExpression(A.LateError$localNI(""));
  116494. if (!(i > t2))
  116495. break;
  116496. t1 += A.Primitives_stringFromCharCode(48);
  116497. --i;
  116498. }
  116499. if (negative) {
  116500. t2 = buffer._contents;
  116501. t2 = B.JSString_methods.substring$1(t2.charCodeAt(0) == 0 ? t2 : t2, 1);
  116502. } else
  116503. t2 = buffer;
  116504. t2 = t1 + A.S(t2);
  116505. return t2.charCodeAt(0) == 0 ? t2 : t2;
  116506. }
  116507. },
  116508. _serialize0$_writeRounded$2(text, buffer) {
  116509. var t1, digits, negative, textIndex, digitsIndex, textIndex0, codeUnit, digitsIndex0, indexAfterPrecision, digitsIndex1, newDigit, writtenIndex;
  116510. if (B.JSString_methods.endsWith$1(text, ".0")) {
  116511. buffer.write$1(0, B.JSString_methods.substring$2(text, 0, text.length - 2));
  116512. return;
  116513. }
  116514. t1 = text.length;
  116515. digits = new Uint8Array(t1 + 1);
  116516. negative = text.charCodeAt(0) === 45;
  116517. textIndex = negative ? 1 : 0;
  116518. for (digitsIndex = 1; true; textIndex = textIndex0, digitsIndex = digitsIndex0) {
  116519. if (textIndex === t1) {
  116520. buffer.write$1(0, text);
  116521. return;
  116522. }
  116523. textIndex0 = textIndex + 1;
  116524. codeUnit = text.charCodeAt(textIndex);
  116525. if (codeUnit === 46) {
  116526. textIndex = textIndex0;
  116527. break;
  116528. }
  116529. digitsIndex0 = digitsIndex + 1;
  116530. digits[digitsIndex] = codeUnit - 48;
  116531. }
  116532. indexAfterPrecision = textIndex + 10;
  116533. if (indexAfterPrecision >= t1) {
  116534. buffer.write$1(0, text);
  116535. return;
  116536. }
  116537. for (digitsIndex0 = digitsIndex; textIndex < indexAfterPrecision; textIndex = textIndex0, digitsIndex0 = digitsIndex1) {
  116538. digitsIndex1 = digitsIndex0 + 1;
  116539. textIndex0 = textIndex + 1;
  116540. digits[digitsIndex0] = text.charCodeAt(textIndex) - 48;
  116541. }
  116542. if (text.charCodeAt(textIndex) - 48 >= 5)
  116543. for (; true; digitsIndex0 = digitsIndex1) {
  116544. digitsIndex1 = digitsIndex0 - 1;
  116545. newDigit = digits[digitsIndex1] + 1;
  116546. digits[digitsIndex1] = newDigit;
  116547. if (newDigit !== 10)
  116548. break;
  116549. }
  116550. for (; digitsIndex0 < digitsIndex; ++digitsIndex0)
  116551. digits[digitsIndex0] = 0;
  116552. while (true) {
  116553. t1 = digitsIndex0 > digitsIndex;
  116554. if (!(t1 && digits[digitsIndex0 - 1] === 0))
  116555. break;
  116556. --digitsIndex0;
  116557. }
  116558. if (digitsIndex0 === 2 && digits[0] === 0 && digits[1] === 0) {
  116559. buffer.writeCharCode$1(48);
  116560. return;
  116561. }
  116562. if (negative)
  116563. buffer.writeCharCode$1(45);
  116564. if (digits[0] === 0)
  116565. writtenIndex = this._serialize0$_style === B.OutputStyle_10 && digits[1] === 0 ? 2 : 1;
  116566. else
  116567. writtenIndex = 0;
  116568. for (; writtenIndex < digitsIndex; ++writtenIndex)
  116569. buffer.writeCharCode$1(48 + digits[writtenIndex]);
  116570. if (t1) {
  116571. buffer.writeCharCode$1(46);
  116572. for (; writtenIndex < digitsIndex0; ++writtenIndex)
  116573. buffer.writeCharCode$1(48 + digits[writtenIndex]);
  116574. }
  116575. },
  116576. _serialize0$_visitQuotedString$2$forceDoubleQuote(string, forceDoubleQuote) {
  116577. var t1, includesSingleQuote, includesDoubleQuote, i, char, _1_2, _1_4, _0_0, quote, _this = this,
  116578. buffer = forceDoubleQuote ? _this._serialize0$_buffer : new A.StringBuffer("");
  116579. if (forceDoubleQuote)
  116580. buffer.writeCharCode$1(34);
  116581. for (t1 = string.length, includesSingleQuote = false, includesDoubleQuote = false, i = 0; i < t1; ++i) {
  116582. char = string.charCodeAt(i);
  116583. _1_2 = 39 === char;
  116584. if (_1_2 && forceDoubleQuote) {
  116585. buffer.writeCharCode$1(39);
  116586. continue;
  116587. }
  116588. if (_1_2 && includesDoubleQuote) {
  116589. _this._serialize0$_visitQuotedString$2$forceDoubleQuote(string, true);
  116590. return;
  116591. }
  116592. if (_1_2) {
  116593. buffer.writeCharCode$1(39);
  116594. includesSingleQuote = true;
  116595. continue;
  116596. }
  116597. _1_4 = 34 === char;
  116598. if (_1_4 && forceDoubleQuote) {
  116599. buffer.writeCharCode$1(92);
  116600. buffer.writeCharCode$1(34);
  116601. continue;
  116602. }
  116603. if (_1_4 && includesSingleQuote) {
  116604. _this._serialize0$_visitQuotedString$2$forceDoubleQuote(string, true);
  116605. return;
  116606. }
  116607. if (_1_4) {
  116608. buffer.writeCharCode$1(34);
  116609. includesDoubleQuote = true;
  116610. continue;
  116611. }
  116612. if (0 === char || 1 === char || 2 === char || 3 === char || 4 === char || 5 === char || 6 === char || 7 === char || 8 === char || 10 === char || 11 === char || 12 === char || 13 === char || 14 === char || 15 === char || 16 === char || 17 === char || 18 === char || 19 === char || 20 === char || 21 === char || 22 === char || 23 === char || 24 === char || 25 === char || 26 === char || 27 === char || 28 === char || 29 === char || 30 === char || 31 === char || 127 === char) {
  116613. _this._serialize0$_writeEscape$4(buffer, char, string, i);
  116614. continue;
  116615. }
  116616. if (92 === char) {
  116617. buffer.writeCharCode$1(92);
  116618. buffer.writeCharCode$1(92);
  116619. continue;
  116620. }
  116621. _0_0 = _this._serialize0$_tryPrivateUseCharacter$4(buffer, char, string, i);
  116622. if (_0_0 != null)
  116623. i = _0_0;
  116624. else
  116625. buffer.writeCharCode$1(char);
  116626. }
  116627. if (forceDoubleQuote)
  116628. buffer.writeCharCode$1(34);
  116629. else {
  116630. quote = includesDoubleQuote ? 39 : 34;
  116631. t1 = _this._serialize0$_buffer;
  116632. t1.writeCharCode$1(quote);
  116633. t1.write$1(0, buffer);
  116634. t1.writeCharCode$1(quote);
  116635. }
  116636. },
  116637. _serialize0$_visitQuotedString$1(string) {
  116638. return this._serialize0$_visitQuotedString$2$forceDoubleQuote(string, false);
  116639. },
  116640. _serialize0$_visitUnquotedString$1(string) {
  116641. var t1, t2, afterNewline, i, _1_0, _0_0;
  116642. for (t1 = string.length, t2 = this._serialize0$_buffer, afterNewline = false, i = 0; i < t1; ++i) {
  116643. _1_0 = string.charCodeAt(i);
  116644. if (10 === _1_0) {
  116645. t2.writeCharCode$1(32);
  116646. afterNewline = true;
  116647. continue;
  116648. }
  116649. if (32 === _1_0) {
  116650. if (!afterNewline)
  116651. t2.writeCharCode$1(32);
  116652. continue;
  116653. }
  116654. _0_0 = this._serialize0$_tryPrivateUseCharacter$4(t2, _1_0, string, i);
  116655. if (_0_0 != null)
  116656. i = _0_0;
  116657. else
  116658. t2.writeCharCode$1(_1_0);
  116659. afterNewline = false;
  116660. }
  116661. },
  116662. _serialize0$_tryPrivateUseCharacter$4(buffer, codeUnit, string, i) {
  116663. var t1;
  116664. if (this._serialize0$_style === B.OutputStyle_10)
  116665. return null;
  116666. if (codeUnit >= 57344 && codeUnit <= 63743) {
  116667. this._serialize0$_writeEscape$4(buffer, codeUnit, string, i);
  116668. return i;
  116669. }
  116670. if (codeUnit >>> 7 === 439 && string.length > i + 1) {
  116671. t1 = i + 1;
  116672. this._serialize0$_writeEscape$4(buffer, A.combineSurrogates(codeUnit, string.charCodeAt(t1)), string, t1);
  116673. return t1;
  116674. }
  116675. return null;
  116676. },
  116677. _serialize0$_writeEscape$4(buffer, character, string, i) {
  116678. var t1, next;
  116679. buffer.writeCharCode$1(92);
  116680. buffer.write$1(0, B.JSInt_methods.toRadixString$1(character, 16));
  116681. t1 = i + 1;
  116682. if (string.length === t1)
  116683. return;
  116684. next = string.charCodeAt(t1);
  116685. if (A.CharacterExtension_get_isHex0(next) || 32 === next || 9 === next)
  116686. buffer.writeCharCode$1(32);
  116687. },
  116688. visitAttributeSelector$1(attribute) {
  116689. var _0_0, t2,
  116690. t1 = this._serialize0$_buffer;
  116691. t1.writeCharCode$1(91);
  116692. t1.write$1(0, attribute.name);
  116693. _0_0 = attribute.value;
  116694. if (_0_0 != null) {
  116695. t1.write$1(0, attribute.op);
  116696. if (A.Parser_isIdentifier0(_0_0) && !B.JSString_methods.startsWith$1(_0_0, "--")) {
  116697. t1.write$1(0, _0_0);
  116698. t2 = attribute.modifier;
  116699. if (t2 != null)
  116700. t1.writeCharCode$1(32);
  116701. } else {
  116702. this._serialize0$_visitQuotedString$1(_0_0);
  116703. t2 = attribute.modifier;
  116704. if (t2 != null)
  116705. if (this._serialize0$_style !== B.OutputStyle_10)
  116706. t1.writeCharCode$1(32);
  116707. }
  116708. A.NullableExtension_andThen0(t2, t1.get$write(t1));
  116709. }
  116710. t1.writeCharCode$1(93);
  116711. },
  116712. visitClassSelector$1(klass) {
  116713. var t1 = this._serialize0$_buffer;
  116714. t1.writeCharCode$1(46);
  116715. t1.write$1(0, klass.name);
  116716. },
  116717. visitComplexSelector$1(complex) {
  116718. var t2, t3, t4, t5, t6, i, component, t7, t8, t9, _this = this,
  116719. t1 = complex.leadingCombinators;
  116720. _this._serialize0$_writeCombinators$1(t1);
  116721. if (t1.length >= 1 && complex.components.length >= 1)
  116722. if (_this._serialize0$_style !== B.OutputStyle_10)
  116723. _this._serialize0$_buffer.writeCharCode$1(32);
  116724. for (t1 = complex.components, t2 = t1.length, t3 = t2 - 1, t4 = _this._serialize0$_buffer, t5 = _this._serialize0$_style === B.OutputStyle_10, t6 = !t5, i = 0; i < t2; ++i) {
  116725. component = t1[i];
  116726. _this.visitCompoundSelector$1(component.selector);
  116727. t7 = component.combinators;
  116728. t8 = t7.length === 0;
  116729. if (!t8)
  116730. if (t6)
  116731. t4.writeCharCode$1(32);
  116732. t9 = t5 ? "" : " ";
  116733. _this._serialize0$_writeBetween$3(t7, t9, t4.get$write(t4));
  116734. if (i !== t3)
  116735. t7 = !t5 || t8;
  116736. else
  116737. t7 = false;
  116738. if (t7)
  116739. t4.writeCharCode$1(32);
  116740. }
  116741. },
  116742. _serialize0$_writeCombinators$1(combinators) {
  116743. var t1 = this._serialize0$_style === B.OutputStyle_10 ? "" : " ",
  116744. t2 = this._serialize0$_buffer;
  116745. return this._serialize0$_writeBetween$3(combinators, t1, t2.get$write(t2));
  116746. },
  116747. visitCompoundSelector$1(compound) {
  116748. var t2, t3, _i,
  116749. t1 = this._serialize0$_buffer,
  116750. start = t1.get$length(t1);
  116751. for (t2 = compound.components, t3 = t2.length, _i = 0; _i < t3; ++_i)
  116752. t2[_i].accept$1(this);
  116753. if (t1.get$length(t1) === start)
  116754. t1.writeCharCode$1(42);
  116755. },
  116756. visitIDSelector$1(id) {
  116757. var t1 = this._serialize0$_buffer;
  116758. t1.writeCharCode$1(35);
  116759. t1.write$1(0, id.name);
  116760. },
  116761. visitSelectorList$1(list) {
  116762. var t1, t2, t3, t4, first, t5, _this = this,
  116763. complexes = list.components;
  116764. for (t1 = J.get$iterator$ax(_this._serialize0$_inspect ? complexes : new A.WhereIterable(complexes, new A._SerializeVisitor_visitSelectorList_closure0(), A._arrayInstanceType(complexes)._eval$1("WhereIterable<1>"))), t2 = _this._serialize0$_style !== B.OutputStyle_10, t3 = _this._serialize0$_buffer, t4 = _this._lineFeed.text, first = true; t1.moveNext$0();) {
  116765. t5 = t1.get$current(t1);
  116766. if (first)
  116767. first = false;
  116768. else {
  116769. t3.writeCharCode$1(44);
  116770. if (t5.lineBreak) {
  116771. if (t2)
  116772. t3.write$1(0, t4);
  116773. _this._serialize0$_writeIndentation$0();
  116774. } else if (t2)
  116775. t3.writeCharCode$1(32);
  116776. }
  116777. _this.visitComplexSelector$1(t5);
  116778. }
  116779. },
  116780. visitParentSelector$1($parent) {
  116781. var t1 = this._serialize0$_buffer;
  116782. t1.writeCharCode$1(38);
  116783. A.NullableExtension_andThen0($parent.suffix, t1.get$write(t1));
  116784. },
  116785. visitPlaceholderSelector$1(placeholder) {
  116786. var t1 = this._serialize0$_buffer;
  116787. t1.writeCharCode$1(37);
  116788. t1.write$1(0, placeholder.name);
  116789. },
  116790. visitPseudoSelector$1(pseudo) {
  116791. var _0_4, t3,
  116792. t1 = pseudo.name,
  116793. t2 = false;
  116794. if ("not" === t1) {
  116795. _0_4 = pseudo.selector;
  116796. if (_0_4 instanceof A.SelectorList0)
  116797. t2 = (_0_4 == null ? type$.SelectorList_2._as(_0_4) : _0_4).accept$1(B._IsInvisibleVisitor_true0);
  116798. }
  116799. if (t2)
  116800. return;
  116801. t2 = this._serialize0$_buffer;
  116802. t2.writeCharCode$1(58);
  116803. if (!pseudo.isSyntacticClass)
  116804. t2.writeCharCode$1(58);
  116805. t2.write$1(0, t1);
  116806. t1 = pseudo.argument;
  116807. t3 = t1 == null;
  116808. if (t3 && pseudo.selector == null)
  116809. return;
  116810. t2.writeCharCode$1(40);
  116811. if (!t3) {
  116812. t2.write$1(0, t1);
  116813. if (pseudo.selector != null)
  116814. t2.writeCharCode$1(32);
  116815. }
  116816. A.NullableExtension_andThen0(pseudo.selector, this.get$visitSelectorList());
  116817. t2.writeCharCode$1(41);
  116818. },
  116819. visitTypeSelector$1(type) {
  116820. this._serialize0$_buffer.write$1(0, type.name);
  116821. },
  116822. visitUniversalSelector$1(universal) {
  116823. var t2,
  116824. t1 = universal.namespace;
  116825. if (t1 != null) {
  116826. t2 = this._serialize0$_buffer;
  116827. t2.write$1(0, t1);
  116828. t2.writeCharCode$1(124);
  116829. }
  116830. this._serialize0$_buffer.writeCharCode$1(42);
  116831. },
  116832. _serialize0$_write$1(value) {
  116833. return this._serialize0$_buffer.forSpan$2(value.span, new A._SerializeVisitor__write_closure0(this, value));
  116834. },
  116835. _serialize0$_visitChildren$1($parent) {
  116836. var t2, t3, t4, t5, t6, t7, t8, prePrevious, previous, t9, previous0, t10, savedIndentation, _this = this,
  116837. t1 = _this._serialize0$_buffer;
  116838. t1.writeCharCode$1(123);
  116839. for (t2 = $parent.children, t3 = t2.$ti, t2 = new A.ListIterator(t2, t2.get$length(0), t3._eval$1("ListIterator<ListBase.E>")), t4 = _this._serialize0$_style === B.OutputStyle_10, t5 = !t4, t6 = _this.get$_serialize0$_requiresSemicolon(), t7 = !_this._serialize0$_inspect, t3 = t3._eval$1("ListBase.E"), t8 = _this._lineFeed.text, prePrevious = null, previous = null; t2.moveNext$0();) {
  116840. t9 = t2.__internal$_current;
  116841. previous0 = t9 == null ? t3._as(t9) : t9;
  116842. if (t7)
  116843. t9 = t4 ? previous0.accept$1(B._IsInvisibleVisitor_true_true0) : previous0.accept$1(B._IsInvisibleVisitor_true_false0);
  116844. else
  116845. t9 = false;
  116846. if (t9)
  116847. continue;
  116848. t9 = previous == null;
  116849. t10 = t9 ? null : t6.call$1(previous);
  116850. if (t10 == null ? false : t10)
  116851. t1.writeCharCode$1(59);
  116852. if (_this._serialize0$_isTrailingComment$2(previous0, t9 ? $parent : previous)) {
  116853. if (t5)
  116854. t1.writeCharCode$1(32);
  116855. savedIndentation = _this._serialize0$_indentation;
  116856. _this._serialize0$_indentation = 0;
  116857. new A._SerializeVisitor__visitChildren_closure1(_this, previous0).call$0();
  116858. _this._serialize0$_indentation = savedIndentation;
  116859. } else {
  116860. if (t5)
  116861. t1.write$1(0, t8);
  116862. ++_this._serialize0$_indentation;
  116863. new A._SerializeVisitor__visitChildren_closure2(_this, previous0).call$0();
  116864. --_this._serialize0$_indentation;
  116865. }
  116866. prePrevious = previous;
  116867. previous = previous0;
  116868. }
  116869. if (previous != null) {
  116870. if ((type$.CssParentNode_2._is(previous) ? previous.get$isChildless() : !(previous instanceof A.ModifiableCssComment0)) && t5)
  116871. t1.writeCharCode$1(59);
  116872. if (prePrevious == null && _this._serialize0$_isTrailingComment$2(previous, $parent)) {
  116873. if (t5)
  116874. t1.writeCharCode$1(32);
  116875. } else {
  116876. _this._serialize0$_writeLineFeed$0();
  116877. _this._serialize0$_writeIndentation$0();
  116878. }
  116879. }
  116880. t1.writeCharCode$1(125);
  116881. },
  116882. _serialize0$_requiresSemicolon$1(node) {
  116883. return type$.CssParentNode_2._is(node) ? node.get$isChildless() : !(node instanceof A.ModifiableCssComment0);
  116884. },
  116885. _serialize0$_isTrailingComment$2(node, previous) {
  116886. var t1, t2, t3, searchFrom, endOffset, t4, span;
  116887. if (this._serialize0$_style === B.OutputStyle_10)
  116888. return false;
  116889. if (!(node instanceof A.ModifiableCssComment0))
  116890. return false;
  116891. t1 = node.span;
  116892. t2 = t1.get$sourceUrl(t1);
  116893. t3 = previous.get$span(previous);
  116894. if (!J.$eq$(t2, t3.get$sourceUrl(t3)))
  116895. return false;
  116896. t2 = previous.get$span(previous);
  116897. if (!(J.$eq$(t2.get$file(t2).url, t1.get$file(t1).url) && t2.get$start(t2).offset <= t1.get$start(t1).offset && t2.get$end(t2).offset >= t1.get$end(t1).offset)) {
  116898. t1 = t1.get$start(t1);
  116899. t1 = t1.file.getLine$1(t1.offset);
  116900. t2 = previous.get$span(previous);
  116901. t2 = t2.get$end(t2);
  116902. return t1 === t2.file.getLine$1(t2.offset);
  116903. }
  116904. t2 = t1.get$start(t1);
  116905. t3 = previous.get$span(previous);
  116906. searchFrom = t2.offset - t3.get$start(t3).offset - 1;
  116907. if (searchFrom < 0)
  116908. return false;
  116909. endOffset = Math.max(0, B.JSString_methods.lastIndexOf$2(previous.get$span(previous).get$text(), "{", searchFrom));
  116910. t2 = previous.get$span(previous);
  116911. t2 = t2.get$file(t2);
  116912. t3 = previous.get$span(previous);
  116913. t3 = t3.get$start(t3);
  116914. t4 = previous.get$span(previous);
  116915. span = t2.span$2(0, t3.offset, t4.get$start(t4).offset + endOffset);
  116916. t1 = t1.get$start(t1);
  116917. t1 = t1.file.getLine$1(t1.offset);
  116918. t4 = A.FileLocation$_(span.file, span._end);
  116919. return t1 === t4.file.getLine$1(t4.offset);
  116920. },
  116921. _serialize0$_writeLineFeed$0() {
  116922. if (this._serialize0$_style !== B.OutputStyle_10)
  116923. this._serialize0$_buffer.write$1(0, this._lineFeed.text);
  116924. },
  116925. _serialize0$_writeIndentation$0() {
  116926. var _this = this;
  116927. if (_this._serialize0$_style === B.OutputStyle_10)
  116928. return;
  116929. _this._serialize0$_writeTimes$2(_this._serialize0$_indentCharacter, _this._serialize0$_indentation * _this._serialize0$_indentWidth);
  116930. },
  116931. _serialize0$_writeTimes$2(char, times) {
  116932. var t1, i;
  116933. for (t1 = this._serialize0$_buffer, i = 0; i < times; ++i)
  116934. t1.writeCharCode$1(char);
  116935. },
  116936. _serialize0$_writeBetween$1$3(iterable, text, callback) {
  116937. var t1, t2, first, value;
  116938. for (t1 = J.get$iterator$ax(iterable), t2 = this._serialize0$_buffer, first = true; t1.moveNext$0();) {
  116939. value = t1.get$current(t1);
  116940. if (first)
  116941. first = false;
  116942. else
  116943. t2.write$1(0, text);
  116944. callback.call$1(value);
  116945. }
  116946. },
  116947. _serialize0$_writeBetween$3(iterable, text, callback) {
  116948. return this._serialize0$_writeBetween$1$3(iterable, text, callback, type$.dynamic);
  116949. }
  116950. };
  116951. A._SerializeVisitor_visitCssComment_closure0.prototype = {
  116952. call$0() {
  116953. var t2, t3, _0_0, minimumIndentation,
  116954. t1 = this.$this;
  116955. if (t1._serialize0$_style === B.OutputStyle_10 && this.node.text.charCodeAt(2) !== 33)
  116956. return;
  116957. t2 = this.node;
  116958. t3 = t2.text;
  116959. if (B.JSString_methods.startsWith$1(t3, A.RegExp_RegExp("/\\*# source(Mapping)?URL=", false)))
  116960. return;
  116961. _0_0 = t1._serialize0$_minimumIndentation$1(t3);
  116962. if (_0_0 != null) {
  116963. t2 = t2.span;
  116964. t2 = t2.get$start(t2);
  116965. minimumIndentation = Math.min(_0_0, t2.file.getColumn$1(t2.offset));
  116966. t1._serialize0$_writeIndentation$0();
  116967. t1._serialize0$_writeWithIndent$2(t3, minimumIndentation);
  116968. } else {
  116969. t1._serialize0$_writeIndentation$0();
  116970. t1._serialize0$_buffer.write$1(0, t3);
  116971. }
  116972. },
  116973. $signature: 1
  116974. };
  116975. A._SerializeVisitor_visitCssAtRule_closure0.prototype = {
  116976. call$0() {
  116977. var t3, _0_0,
  116978. t1 = this.$this,
  116979. t2 = t1._serialize0$_buffer;
  116980. t2.writeCharCode$1(64);
  116981. t3 = this.node;
  116982. t1._serialize0$_write$1(t3.name);
  116983. _0_0 = t3.value;
  116984. if (_0_0 != null) {
  116985. t2.writeCharCode$1(32);
  116986. t1._serialize0$_write$1(_0_0);
  116987. }
  116988. },
  116989. $signature: 1
  116990. };
  116991. A._SerializeVisitor_visitCssMediaRule_closure0.prototype = {
  116992. call$0() {
  116993. var t3, firstQuery, t4, t5,
  116994. t1 = this.$this,
  116995. t2 = t1._serialize0$_buffer;
  116996. t2.write$1(0, "@media");
  116997. t3 = this.node.queries;
  116998. firstQuery = B.JSArray_methods.get$first(t3);
  116999. t4 = t1._serialize0$_style === B.OutputStyle_10;
  117000. t5 = true;
  117001. if (t4)
  117002. if (firstQuery.modifier == null)
  117003. if (firstQuery.type == null) {
  117004. t5 = firstQuery.conditions;
  117005. t5 = t5.length === 1 && J.startsWith$1$s(B.JSArray_methods.get$first(t5), "(not ");
  117006. }
  117007. if (t5)
  117008. t2.writeCharCode$1(32);
  117009. t2 = t4 ? "," : ", ";
  117010. t1._serialize0$_writeBetween$3(t3, t2, t1.get$_serialize0$_visitMediaQuery());
  117011. },
  117012. $signature: 1
  117013. };
  117014. A._SerializeVisitor_visitCssImport_closure0.prototype = {
  117015. call$0() {
  117016. var t3, t4, _0_0,
  117017. t1 = this.$this,
  117018. t2 = t1._serialize0$_buffer;
  117019. t2.write$1(0, "@import");
  117020. t3 = t1._serialize0$_style !== B.OutputStyle_10;
  117021. if (t3)
  117022. t2.writeCharCode$1(32);
  117023. t4 = this.node;
  117024. t2.forSpan$2(t4.url.span, new A._SerializeVisitor_visitCssImport__closure0(t1, t4));
  117025. _0_0 = t4.modifiers;
  117026. if (_0_0 != null) {
  117027. if (t3)
  117028. t2.writeCharCode$1(32);
  117029. t2.write$1(0, _0_0);
  117030. }
  117031. },
  117032. $signature: 1
  117033. };
  117034. A._SerializeVisitor_visitCssImport__closure0.prototype = {
  117035. call$0() {
  117036. return this.$this._serialize0$_writeImportUrl$1(this.node.url.value);
  117037. },
  117038. $signature: 0
  117039. };
  117040. A._SerializeVisitor_visitCssKeyframeBlock_closure0.prototype = {
  117041. call$0() {
  117042. var t1 = this.$this,
  117043. t2 = t1._serialize0$_style === B.OutputStyle_10 ? "," : ", ",
  117044. t3 = t1._serialize0$_buffer;
  117045. return t1._serialize0$_writeBetween$3(this.node.selector.value, t2, t3.get$write(t3));
  117046. },
  117047. $signature: 0
  117048. };
  117049. A._SerializeVisitor_visitCssStyleRule_closure0.prototype = {
  117050. call$0() {
  117051. return this.$this.visitSelectorList$1(this.node._style_rule0$_selector._box0$_inner.value);
  117052. },
  117053. $signature: 0
  117054. };
  117055. A._SerializeVisitor_visitCssSupportsRule_closure0.prototype = {
  117056. call$0() {
  117057. var t1 = this.$this,
  117058. t2 = t1._serialize0$_buffer;
  117059. t2.write$1(0, "@supports");
  117060. if (!(t1._serialize0$_style === B.OutputStyle_10 && J.codeUnitAt$1$s(this.node.condition.value, 0) === 40))
  117061. t2.writeCharCode$1(32);
  117062. t1._serialize0$_write$1(this.node.condition);
  117063. },
  117064. $signature: 1
  117065. };
  117066. A._SerializeVisitor_visitCssDeclaration_closure1.prototype = {
  117067. call$0() {
  117068. var t1 = this.$this,
  117069. t2 = this.node;
  117070. if (t1._serialize0$_style === B.OutputStyle_10)
  117071. t1._serialize0$_writeFoldedValue$1(t2);
  117072. else
  117073. t1._serialize0$_writeReindentedValue$1(t2);
  117074. },
  117075. $signature: 1
  117076. };
  117077. A._SerializeVisitor_visitCssDeclaration_closure2.prototype = {
  117078. call$0() {
  117079. return this.node.value.value.accept$1(this.$this);
  117080. },
  117081. $signature: 0
  117082. };
  117083. A._SerializeVisitor_visitList_closure2.prototype = {
  117084. call$1(element) {
  117085. return !element.get$isBlank();
  117086. },
  117087. $signature: 56
  117088. };
  117089. A._SerializeVisitor_visitList_closure3.prototype = {
  117090. call$1(element) {
  117091. var t1 = this.$this,
  117092. needsParens = t1._serialize0$_elementNeedsParens$2(this.value._list1$_separator, element);
  117093. if (needsParens)
  117094. t1._serialize0$_buffer.writeCharCode$1(40);
  117095. element.accept$1(t1);
  117096. if (needsParens)
  117097. t1._serialize0$_buffer.writeCharCode$1(41);
  117098. },
  117099. $signature: 61
  117100. };
  117101. A._SerializeVisitor_visitList_closure4.prototype = {
  117102. call$1(element) {
  117103. element.accept$1(this.$this);
  117104. },
  117105. $signature: 61
  117106. };
  117107. A._SerializeVisitor_visitMap_closure0.prototype = {
  117108. call$1(entry) {
  117109. var t1 = this.$this;
  117110. t1._serialize0$_writeMapElement$1(entry.key);
  117111. t1._serialize0$_buffer.write$1(0, ": ");
  117112. t1._serialize0$_writeMapElement$1(entry.value);
  117113. },
  117114. $signature: 573
  117115. };
  117116. A._SerializeVisitor_visitSelectorList_closure0.prototype = {
  117117. call$1(complex) {
  117118. return !complex.accept$1(B._IsInvisibleVisitor_true0);
  117119. },
  117120. $signature: 20
  117121. };
  117122. A._SerializeVisitor__write_closure0.prototype = {
  117123. call$0() {
  117124. return this.$this._serialize0$_buffer.write$1(0, this.value.value);
  117125. },
  117126. $signature: 0
  117127. };
  117128. A._SerializeVisitor__visitChildren_closure1.prototype = {
  117129. call$0() {
  117130. return this.child.accept$1(this.$this);
  117131. },
  117132. $signature: 0
  117133. };
  117134. A._SerializeVisitor__visitChildren_closure2.prototype = {
  117135. call$0() {
  117136. this.child.accept$1(this.$this);
  117137. },
  117138. $signature: 0
  117139. };
  117140. A.OutputStyle0.prototype = {
  117141. _enumToString$0() {
  117142. return "OutputStyle." + this._name;
  117143. }
  117144. };
  117145. A.LineFeed0.prototype = {
  117146. _enumToString$0() {
  117147. return "LineFeed." + this._name;
  117148. },
  117149. toString$0(_) {
  117150. return this.name;
  117151. }
  117152. };
  117153. A.ShadowedModuleView0.prototype = {
  117154. get$url(_) {
  117155. var t1 = this._shadowed_view0$_inner;
  117156. return t1.get$url(t1);
  117157. },
  117158. get$upstream() {
  117159. return this._shadowed_view0$_inner.get$upstream();
  117160. },
  117161. get$extensionStore() {
  117162. return this._shadowed_view0$_inner.get$extensionStore();
  117163. },
  117164. get$css(_) {
  117165. var t1 = this._shadowed_view0$_inner;
  117166. return t1.get$css(t1);
  117167. },
  117168. get$preModuleComments() {
  117169. return this._shadowed_view0$_inner.get$preModuleComments();
  117170. },
  117171. get$transitivelyContainsCss() {
  117172. return this._shadowed_view0$_inner.get$transitivelyContainsCss();
  117173. },
  117174. get$transitivelyContainsExtensions() {
  117175. return this._shadowed_view0$_inner.get$transitivelyContainsExtensions();
  117176. },
  117177. setVariable$3($name, value, nodeWithSpan) {
  117178. if (!this.variables.containsKey$1($name))
  117179. throw A.wrapException(A.SassScriptException$0("Undefined variable.", null));
  117180. else
  117181. this._shadowed_view0$_inner.setVariable$3($name, value, nodeWithSpan);
  117182. },
  117183. variableIdentity$1($name) {
  117184. return this._shadowed_view0$_inner.variableIdentity$1($name);
  117185. },
  117186. $eq(_, other) {
  117187. var t1, t2, t3, _this = this;
  117188. if (other == null)
  117189. return false;
  117190. t1 = false;
  117191. if (other instanceof A.ShadowedModuleView0)
  117192. if (_this._shadowed_view0$_inner.$eq(0, other._shadowed_view0$_inner)) {
  117193. t2 = _this.variables;
  117194. t2 = t2.get$keys(t2);
  117195. t3 = other.variables;
  117196. if (B.C_IterableEquality.equals$2(0, t2, t3.get$keys(t3))) {
  117197. t2 = _this.functions;
  117198. t2 = t2.get$keys(t2);
  117199. t3 = other.functions;
  117200. if (B.C_IterableEquality.equals$2(0, t2, t3.get$keys(t3))) {
  117201. t1 = _this.mixins;
  117202. t1 = t1.get$keys(t1);
  117203. t2 = other.mixins;
  117204. t2 = B.C_IterableEquality.equals$2(0, t1, t2.get$keys(t2));
  117205. t1 = t2;
  117206. }
  117207. }
  117208. }
  117209. return t1;
  117210. },
  117211. get$hashCode(_) {
  117212. var t1 = this._shadowed_view0$_inner;
  117213. return t1.get$hashCode(t1);
  117214. },
  117215. cloneCss$0() {
  117216. var _this = this;
  117217. return new A.ShadowedModuleView0(_this._shadowed_view0$_inner.cloneCss$0(), _this.variables, _this.variableNodes, _this.functions, _this.mixins, _this.$ti);
  117218. },
  117219. toString$0(_) {
  117220. return "shadowed " + this._shadowed_view0$_inner.toString$0(0);
  117221. },
  117222. $isModule1: 1,
  117223. get$variables() {
  117224. return this.variables;
  117225. },
  117226. get$variableNodes() {
  117227. return this.variableNodes;
  117228. },
  117229. get$functions(receiver) {
  117230. return this.functions;
  117231. },
  117232. get$mixins() {
  117233. return this.mixins;
  117234. }
  117235. };
  117236. A.SilentComment0.prototype = {
  117237. accept$1$1(visitor) {
  117238. return visitor.visitSilentComment$1(0, this);
  117239. },
  117240. accept$1(visitor) {
  117241. return this.accept$1$1(visitor, type$.dynamic);
  117242. },
  117243. toString$0(_) {
  117244. return this.text;
  117245. },
  117246. get$span(receiver) {
  117247. return this.span;
  117248. }
  117249. };
  117250. A.SimpleSelector0.prototype = {
  117251. get$specificity() {
  117252. return 1000;
  117253. },
  117254. get$hasComplicatedSuperselectorSemantics() {
  117255. return false;
  117256. },
  117257. addSuffix$1(suffix) {
  117258. return A.throwExpression(A.MultiSpanSassException$0('Selector "' + this.toString$0(0) + "\" can't have a suffix", this.span, "outer selector", A.LinkedHashMap_LinkedHashMap$_empty(type$.FileSpan, type$.String), null));
  117259. },
  117260. unify$1(compound) {
  117261. var other, result, addedThis, _i, simple, _this = this,
  117262. t1 = false;
  117263. if (compound.length === 1) {
  117264. other = compound[0];
  117265. if (!(other instanceof A.UniversalSelector0)) {
  117266. if (other instanceof A.PseudoSelector0)
  117267. t1 = other.isClass && other.name === "host" || other.get$isHostContext();
  117268. } else
  117269. t1 = true;
  117270. } else
  117271. other = null;
  117272. if (t1)
  117273. return other.unify$1(A._setArrayType([_this], type$.JSArray_SimpleSelector_2));
  117274. if (B.JSArray_methods.contains$1(compound, _this))
  117275. return compound;
  117276. result = A._setArrayType([], type$.JSArray_SimpleSelector_2);
  117277. for (t1 = compound.length, addedThis = false, _i = 0; _i < compound.length; compound.length === t1 || (0, A.throwConcurrentModificationError)(compound), ++_i) {
  117278. simple = compound[_i];
  117279. if (!addedThis && simple instanceof A.PseudoSelector0) {
  117280. result.push(_this);
  117281. addedThis = true;
  117282. }
  117283. result.push(simple);
  117284. }
  117285. if (!addedThis)
  117286. result.push(_this);
  117287. return result;
  117288. },
  117289. isSuperselector$1(other) {
  117290. var list;
  117291. if (this.$eq(0, other))
  117292. return true;
  117293. if (other instanceof A.PseudoSelector0 && other.isClass) {
  117294. list = other.selector;
  117295. if (list != null && $._subselectorPseudos0.contains$1(0, other.normalizedName))
  117296. return B.JSArray_methods.every$1(list.components, new A.SimpleSelector_isSuperselector_closure0(this));
  117297. }
  117298. return false;
  117299. }
  117300. };
  117301. A.SimpleSelector_isSuperselector_closure0.prototype = {
  117302. call$1(complex) {
  117303. var t1 = complex.components;
  117304. return t1.length !== 0 && B.JSArray_methods.any$1(B.JSArray_methods.get$last(t1).selector.components, new A.SimpleSelector_isSuperselector__closure0(this.$this));
  117305. },
  117306. $signature: 20
  117307. };
  117308. A.SimpleSelector_isSuperselector__closure0.prototype = {
  117309. call$1(simple) {
  117310. return this.$this.isSuperselector$1(simple);
  117311. },
  117312. $signature: 14
  117313. };
  117314. A.SingleUnitSassNumber0.prototype = {
  117315. get$numeratorUnits(_) {
  117316. return A.List_List$unmodifiable([this._single_unit$_unit], type$.String);
  117317. },
  117318. get$denominatorUnits(_) {
  117319. return B.List_empty;
  117320. },
  117321. get$hasUnits() {
  117322. return true;
  117323. },
  117324. get$hasComplexUnits() {
  117325. return false;
  117326. },
  117327. withValue$1(value) {
  117328. return new A.SingleUnitSassNumber0(this._single_unit$_unit, value, null);
  117329. },
  117330. withSlash$2(numerator, denominator) {
  117331. return new A.SingleUnitSassNumber0(this._single_unit$_unit, this._number1$_value, new A._Record_2(numerator, denominator));
  117332. },
  117333. hasUnit$1(unit) {
  117334. return unit === this._single_unit$_unit;
  117335. },
  117336. hasCompatibleUnits$1(other) {
  117337. return other instanceof A.SingleUnitSassNumber0 && A.conversionFactor0(this._single_unit$_unit, other._single_unit$_unit) != null;
  117338. },
  117339. hasPossiblyCompatibleUnits$1(other) {
  117340. var t1, knownCompatibilities, otherUnit;
  117341. if (!(other instanceof A.SingleUnitSassNumber0))
  117342. return false;
  117343. t1 = $.$get$_knownCompatibilitiesByUnit0();
  117344. knownCompatibilities = t1.$index(0, this._single_unit$_unit.toLowerCase());
  117345. if (knownCompatibilities == null)
  117346. return true;
  117347. otherUnit = other._single_unit$_unit.toLowerCase();
  117348. return knownCompatibilities.contains$1(0, otherUnit) || !t1.containsKey$1(otherUnit);
  117349. },
  117350. compatibleWithUnit$1(unit) {
  117351. return A.conversionFactor0(this._single_unit$_unit, unit) != null;
  117352. },
  117353. coerceToMatch$3(other, $name, otherName) {
  117354. var t1 = other instanceof A.SingleUnitSassNumber0 ? this._single_unit$_coerceToUnit$1(other._single_unit$_unit) : null;
  117355. return t1 == null ? this.super$SassNumber$coerceToMatch0(other, $name, otherName) : t1;
  117356. },
  117357. coerceToMatch$1(other) {
  117358. return this.coerceToMatch$3(other, null, null);
  117359. },
  117360. coerceValueToMatch$3(other, $name, otherName) {
  117361. var t1 = other instanceof A.SingleUnitSassNumber0 ? this._single_unit$_coerceValueToUnit$1(other._single_unit$_unit) : null;
  117362. return t1 == null ? this.super$SassNumber$coerceValueToMatch0(other, $name, otherName) : t1;
  117363. },
  117364. coerceValueToMatch$1(other) {
  117365. return this.coerceValueToMatch$3(other, null, null);
  117366. },
  117367. convertToMatch$3(other, $name, otherName) {
  117368. var t1 = other instanceof A.SingleUnitSassNumber0 ? this._single_unit$_coerceToUnit$1(other._single_unit$_unit) : null;
  117369. return t1 == null ? this.super$SassNumber$convertToMatch(other, $name, otherName) : t1;
  117370. },
  117371. convertValueToMatch$3(other, $name, otherName) {
  117372. var t1 = other instanceof A.SingleUnitSassNumber0 ? this._single_unit$_coerceValueToUnit$1(other._single_unit$_unit) : null;
  117373. return t1 == null ? this.super$SassNumber$convertValueToMatch0(other, $name, otherName) : t1;
  117374. },
  117375. convertValueToMatch$1(other) {
  117376. return this.convertValueToMatch$3(other, null, null);
  117377. },
  117378. coerce$3(newNumerators, newDenominators, $name) {
  117379. var t1 = J.getInterceptor$asx(newNumerators);
  117380. t1 = t1.get$length(newNumerators) === 1 && J.get$isEmpty$asx(newDenominators) ? this._single_unit$_coerceToUnit$1(t1.$index(newNumerators, 0)) : null;
  117381. return t1 == null ? this.super$SassNumber$coerce0(newNumerators, newDenominators, $name) : t1;
  117382. },
  117383. coerce$2(newNumerators, newDenominators) {
  117384. return this.coerce$3(newNumerators, newDenominators, null);
  117385. },
  117386. coerceValue$3(newNumerators, newDenominators, $name) {
  117387. var t1 = J.getInterceptor$asx(newNumerators);
  117388. t1 = t1.get$length(newNumerators) === 1 && J.get$isEmpty$asx(newDenominators) ? this._single_unit$_coerceValueToUnit$1(t1.$index(newNumerators, 0)) : null;
  117389. return t1 == null ? this.super$SassNumber$coerceValue0(newNumerators, newDenominators, $name) : t1;
  117390. },
  117391. coerceValueToUnit$2(unit, $name) {
  117392. var t1 = this._single_unit$_coerceValueToUnit$1(unit);
  117393. return t1 == null ? this.super$SassNumber$coerceValueToUnit0(unit, $name) : t1;
  117394. },
  117395. coerceValueToUnit$1(unit) {
  117396. return this.coerceValueToUnit$2(unit, null);
  117397. },
  117398. _single_unit$_coerceToUnit$1(unit) {
  117399. var t1 = this._single_unit$_unit;
  117400. if (t1 === unit)
  117401. return this;
  117402. return A.NullableExtension_andThen0(A.conversionFactor0(unit, t1), new A.SingleUnitSassNumber__coerceToUnit_closure0(this, unit));
  117403. },
  117404. _single_unit$_coerceValueToUnit$1(unit) {
  117405. return A.NullableExtension_andThen0(A.conversionFactor0(unit, this._single_unit$_unit), new A.SingleUnitSassNumber__coerceValueToUnit_closure0(this));
  117406. },
  117407. multiplyUnits$3(value, otherNumerators, otherDenominators) {
  117408. var mutableOtherDenominators, t1 = {};
  117409. t1.value = value;
  117410. t1.newNumerators = otherNumerators;
  117411. mutableOtherDenominators = A._setArrayType(otherDenominators.slice(0), A._arrayInstanceType(otherDenominators));
  117412. A.removeFirstWhere0(mutableOtherDenominators, new A.SingleUnitSassNumber_multiplyUnits_closure1(t1, this), new A.SingleUnitSassNumber_multiplyUnits_closure2(t1, this));
  117413. return A.SassNumber_SassNumber$withUnits0(t1.value, mutableOtherDenominators, t1.newNumerators);
  117414. },
  117415. unaryMinus$0() {
  117416. return new A.SingleUnitSassNumber0(this._single_unit$_unit, -this._number1$_value, null);
  117417. },
  117418. $eq(_, other) {
  117419. var factor;
  117420. if (other == null)
  117421. return false;
  117422. if (other instanceof A.SingleUnitSassNumber0) {
  117423. factor = A.conversionFactor0(other._single_unit$_unit, this._single_unit$_unit);
  117424. return factor != null && A.fuzzyEquals0(this._number1$_value * factor, other._number1$_value);
  117425. } else
  117426. return false;
  117427. },
  117428. get$hashCode(_) {
  117429. var _this = this,
  117430. t1 = _this.hashCache;
  117431. return t1 == null ? _this.hashCache = A.fuzzyHashCode0(_this._number1$_value * _this.canonicalMultiplierForUnit$1(_this._single_unit$_unit)) : t1;
  117432. }
  117433. };
  117434. A.SingleUnitSassNumber__coerceToUnit_closure0.prototype = {
  117435. call$1(factor) {
  117436. return new A.SingleUnitSassNumber0(this.unit, this.$this._number1$_value * factor, null);
  117437. },
  117438. $signature: 574
  117439. };
  117440. A.SingleUnitSassNumber__coerceValueToUnit_closure0.prototype = {
  117441. call$1(factor) {
  117442. return this.$this._number1$_value * factor;
  117443. },
  117444. $signature: 15
  117445. };
  117446. A.SingleUnitSassNumber_multiplyUnits_closure1.prototype = {
  117447. call$1(denominator) {
  117448. var factor = A.conversionFactor0(denominator, this.$this._single_unit$_unit);
  117449. if (factor == null)
  117450. return false;
  117451. this._box_0.value *= factor;
  117452. return true;
  117453. },
  117454. $signature: 5
  117455. };
  117456. A.SingleUnitSassNumber_multiplyUnits_closure2.prototype = {
  117457. call$0() {
  117458. var t1 = A._setArrayType([this.$this._single_unit$_unit], type$.JSArray_String),
  117459. t2 = this._box_0;
  117460. B.JSArray_methods.addAll$1(t1, t2.newNumerators);
  117461. t2.newNumerators = t1;
  117462. },
  117463. $signature: 0
  117464. };
  117465. A.SourceInterpolationVisitor.prototype = {
  117466. visitBinaryOperationExpression$1(_, node) {
  117467. return this.buffer = null;
  117468. },
  117469. visitBooleanExpression$1(_, node) {
  117470. return this.buffer = null;
  117471. },
  117472. visitColorExpression$1(_, node) {
  117473. var t2,
  117474. t1 = this.buffer;
  117475. if (t1 != null) {
  117476. t2 = node.span.get$text();
  117477. t1 = t1._interpolation_buffer0$_text;
  117478. t1._contents += t2;
  117479. }
  117480. return null;
  117481. },
  117482. visitFunctionExpression$1(_, node) {
  117483. return this.buffer = null;
  117484. },
  117485. visitInterpolatedFunctionExpression$1(_, node) {
  117486. var t1 = this.buffer;
  117487. if (t1 != null)
  117488. t1.addInterpolation$1(node.name);
  117489. this._visitArguments$1(node.$arguments);
  117490. },
  117491. _visitArguments$1($arguments) {
  117492. var t2, t3, _this = this,
  117493. t1 = $arguments.named;
  117494. if (t1.get$isNotEmpty(t1) || $arguments.rest != null)
  117495. return;
  117496. t1 = $arguments.positional;
  117497. if (t1.length === 0) {
  117498. t1 = _this.buffer;
  117499. if (t1 != null) {
  117500. t2 = $arguments.span.get$text();
  117501. t1 = t1._interpolation_buffer0$_text;
  117502. t1._contents += t2;
  117503. }
  117504. return;
  117505. }
  117506. t2 = _this.buffer;
  117507. if (t2 != null) {
  117508. t3 = A.SpanExtensions_before($arguments.span, J.get$span$z(B.JSArray_methods.get$first(t1)));
  117509. t3 = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t3.file._decodedChars, t3._file$_start, t3._end), 0, null);
  117510. t2 = t2._interpolation_buffer0$_text;
  117511. t2._contents += t3;
  117512. }
  117513. _this._writeListAndBetween$2(t1, null);
  117514. t2 = _this.buffer;
  117515. if (t2 != null) {
  117516. t1 = A.SpanExtensions_after($arguments.span, J.get$span$z(B.JSArray_methods.get$last(t1)));
  117517. t1 = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1.file._decodedChars, t1._file$_start, t1._end), 0, null);
  117518. t2 = t2._interpolation_buffer0$_text;
  117519. t2._contents += t1;
  117520. }
  117521. },
  117522. visitIfExpression$1(_, node) {
  117523. return this.buffer = null;
  117524. },
  117525. visitListExpression$1(_, node) {
  117526. var t3, t4, _this = this,
  117527. t1 = node.contents,
  117528. t2 = t1.length;
  117529. if (t2 <= 1 && !node.hasBrackets) {
  117530. _this.buffer = null;
  117531. return;
  117532. }
  117533. t3 = node.hasBrackets;
  117534. if (t3 && t2 === 0) {
  117535. t1 = _this.buffer;
  117536. if (t1 != null) {
  117537. t2 = node.span.get$text();
  117538. t1 = t1._interpolation_buffer0$_text;
  117539. t1._contents += t2;
  117540. }
  117541. return;
  117542. }
  117543. if (t3) {
  117544. t2 = _this.buffer;
  117545. if (t2 != null) {
  117546. t4 = A.SpanExtensions_before(node.span, J.get$span$z(B.JSArray_methods.get$first(t1)));
  117547. t4 = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t4.file._decodedChars, t4._file$_start, t4._end), 0, null);
  117548. t2 = t2._interpolation_buffer0$_text;
  117549. t2._contents += t4;
  117550. }
  117551. }
  117552. _this._writeListAndBetween$1(t1);
  117553. if (t3) {
  117554. t2 = _this.buffer;
  117555. if (t2 != null) {
  117556. t1 = A.SpanExtensions_after(node.span, J.get$span$z(B.JSArray_methods.get$last(t1)));
  117557. t1 = A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1.file._decodedChars, t1._file$_start, t1._end), 0, null);
  117558. t2 = t2._interpolation_buffer0$_text;
  117559. t2._contents += t1;
  117560. }
  117561. }
  117562. },
  117563. visitMapExpression$1(_, node) {
  117564. return this.buffer = null;
  117565. },
  117566. visitNullExpression$1(_, node) {
  117567. return this.buffer = null;
  117568. },
  117569. visitNumberExpression$1(_, node) {
  117570. var t2,
  117571. t1 = this.buffer;
  117572. if (t1 != null) {
  117573. t2 = node.span.get$text();
  117574. t1 = t1._interpolation_buffer0$_text;
  117575. t1._contents += t2;
  117576. }
  117577. return null;
  117578. },
  117579. visitParenthesizedExpression$1(_, node) {
  117580. return this.buffer = null;
  117581. },
  117582. visitSelectorExpression$1(_, node) {
  117583. return this.buffer = null;
  117584. },
  117585. visitStringExpression$1(_, node) {
  117586. var t2, t3, t4, t5, i, span, _0_0, t6, expression, t7, t8, t9, _this = this,
  117587. t1 = node.text;
  117588. if (t1.get$asPlain() != null) {
  117589. t2 = _this.buffer;
  117590. if (t2 != null) {
  117591. t1 = t1.span.get$text();
  117592. t2 = t2._interpolation_buffer0$_text;
  117593. t2._contents += t1;
  117594. }
  117595. return;
  117596. }
  117597. for (t2 = t1.contents, t3 = t2.length, t4 = t3 - 1, t5 = t1.span, i = 0; i < t3; ++i) {
  117598. span = t1.spanForElement$1(i);
  117599. _0_0 = t2[i];
  117600. t6 = _0_0 instanceof A.Expression0;
  117601. expression = t6 ? _0_0 : null;
  117602. if (t6) {
  117603. if (i === 0) {
  117604. t6 = _this.buffer;
  117605. if (t6 != null) {
  117606. t7 = A.SpanExtensions_before(t5, span);
  117607. t8 = t7._file$_start;
  117608. t9 = t7.file._decodedChars;
  117609. t9 = A.String_String$fromCharCodes(new Uint32Array(t9.subarray(t8, A._checkValidRange(t8, t7._end, t9.length))), 0, null);
  117610. t6 = t6._interpolation_buffer0$_text;
  117611. t6._contents += t9;
  117612. }
  117613. }
  117614. t6 = _this.buffer;
  117615. if (t6 != null) {
  117616. t6._interpolation_buffer0$_flushText$0();
  117617. t6._interpolation_buffer0$_contents.push(expression);
  117618. t6._interpolation_buffer0$_spans.push(span);
  117619. }
  117620. if (i === t4) {
  117621. t6 = _this.buffer;
  117622. if (t6 != null) {
  117623. t7 = A.SpanExtensions_after(t5, span);
  117624. t8 = t7._file$_start;
  117625. t9 = t7.file._decodedChars;
  117626. t9 = A.String_String$fromCharCodes(new Uint32Array(t9.subarray(t8, A._checkValidRange(t8, t7._end, t9.length))), 0, null);
  117627. t6 = t6._interpolation_buffer0$_text;
  117628. t6._contents += t9;
  117629. }
  117630. }
  117631. continue;
  117632. }
  117633. t6 = _this.buffer;
  117634. if (t6 != null) {
  117635. t6 = t6._interpolation_buffer0$_text;
  117636. t7 = span.toString$0(0);
  117637. t6._contents += t7;
  117638. }
  117639. }
  117640. },
  117641. visitSupportsExpression$1(_, node) {
  117642. return this.buffer = null;
  117643. },
  117644. visitUnaryOperationExpression$1(_, node) {
  117645. return this.buffer = null;
  117646. },
  117647. visitValueExpression$1(_, node) {
  117648. return this.buffer = null;
  117649. },
  117650. visitVariableExpression$1(_, node) {
  117651. return this.buffer = null;
  117652. },
  117653. _writeListAndBetween$2(expressions, visitor) {
  117654. var t1, lastExpression, _i, expression, t2, t3, t4, t5;
  117655. for (t1 = expressions.length, lastExpression = null, _i = 0; _i < t1; ++_i, lastExpression = expression) {
  117656. expression = expressions[_i];
  117657. if (lastExpression != null) {
  117658. t2 = this.buffer;
  117659. if (t2 != null) {
  117660. t3 = A.SpanExtensions_between(lastExpression.get$span(lastExpression), J.get$span$z(expression));
  117661. t4 = t3._file$_start;
  117662. t5 = t3.file._decodedChars;
  117663. t5 = A.String_String$fromCharCodes(new Uint32Array(t5.subarray(t4, A._checkValidRange(t4, t3._end, t5.length))), 0, null);
  117664. t2 = t2._interpolation_buffer0$_text;
  117665. t2._contents += t5;
  117666. }
  117667. }
  117668. expression.accept$1(this);
  117669. if (this.buffer == null)
  117670. return;
  117671. }
  117672. },
  117673. _writeListAndBetween$1(expressions) {
  117674. return this._writeListAndBetween$2(expressions, null);
  117675. },
  117676. $isExpressionVisitor: 1
  117677. };
  117678. A.SourceMapBuffer0.prototype = {
  117679. get$_source_map_buffer0$_targetLocation() {
  117680. var t1 = this._source_map_buffer0$_buffer._contents,
  117681. t2 = this._source_map_buffer0$_line;
  117682. return A.SourceLocation$(t1.length, this._source_map_buffer0$_column, t2, null);
  117683. },
  117684. get$length(_) {
  117685. return this._source_map_buffer0$_buffer._contents.length;
  117686. },
  117687. forSpan$1$2(span, callback) {
  117688. var t1, _this = this,
  117689. wasInSpan = _this._source_map_buffer0$_inSpan;
  117690. _this._source_map_buffer0$_inSpan = true;
  117691. _this._source_map_buffer0$_addEntry$2(span.get$start(span), _this.get$_source_map_buffer0$_targetLocation());
  117692. try {
  117693. t1 = callback.call$0();
  117694. return t1;
  117695. } finally {
  117696. _this._source_map_buffer0$_inSpan = wasInSpan;
  117697. }
  117698. },
  117699. forSpan$2(span, callback) {
  117700. return this.forSpan$1$2(span, callback, type$.dynamic);
  117701. },
  117702. _source_map_buffer0$_addEntry$2(source, target) {
  117703. var entry, t2,
  117704. t1 = this._source_map_buffer0$_entries;
  117705. if (t1.length !== 0) {
  117706. entry = B.JSArray_methods.get$last(t1);
  117707. t2 = entry.source;
  117708. if (t2.file.getLine$1(t2.offset) === source.file.getLine$1(source.offset) && entry.target.line === target.line)
  117709. return;
  117710. if (entry.target.offset === target.offset)
  117711. return;
  117712. }
  117713. t1.push(new A.Entry(source, target, null));
  117714. },
  117715. write$1(_, object) {
  117716. var t1, i,
  117717. string = J.toString$0$(object);
  117718. this._source_map_buffer0$_buffer._contents += string;
  117719. for (t1 = string.length, i = 0; i < t1; ++i)
  117720. if (string.charCodeAt(i) === 10)
  117721. this._source_map_buffer0$_writeLine$0();
  117722. else
  117723. ++this._source_map_buffer0$_column;
  117724. },
  117725. writeCharCode$1(charCode) {
  117726. var t1 = this._source_map_buffer0$_buffer,
  117727. t2 = A.Primitives_stringFromCharCode(charCode);
  117728. t1._contents += t2;
  117729. if (charCode === 10)
  117730. this._source_map_buffer0$_writeLine$0();
  117731. else
  117732. ++this._source_map_buffer0$_column;
  117733. },
  117734. _source_map_buffer0$_writeLine$0() {
  117735. var _this = this,
  117736. t1 = _this._source_map_buffer0$_entries;
  117737. if (B.JSArray_methods.get$last(t1).target.line === _this._source_map_buffer0$_line && B.JSArray_methods.get$last(t1).target.column === _this._source_map_buffer0$_column)
  117738. t1.pop();
  117739. ++_this._source_map_buffer0$_line;
  117740. _this._source_map_buffer0$_column = 0;
  117741. if (_this._source_map_buffer0$_inSpan)
  117742. t1.push(new A.Entry(B.JSArray_methods.get$last(t1).source, _this.get$_source_map_buffer0$_targetLocation(), null));
  117743. },
  117744. toString$0(_) {
  117745. var t1 = this._source_map_buffer0$_buffer._contents;
  117746. return t1.charCodeAt(0) == 0 ? t1 : t1;
  117747. },
  117748. buildSourceMap$1$prefix(prefix) {
  117749. var i, t2, prefixColumn, _box_0 = {},
  117750. t1 = prefix.length;
  117751. if (t1 === 0)
  117752. return A.SingleMapping_SingleMapping$fromEntries(this._source_map_buffer0$_entries);
  117753. _box_0.prefixColumn = _box_0.prefixLines = 0;
  117754. for (i = 0, t2 = 0; i < t1; ++i)
  117755. if (prefix.charCodeAt(i) === 10) {
  117756. ++_box_0.prefixLines;
  117757. _box_0.prefixColumn = 0;
  117758. t2 = 0;
  117759. } else {
  117760. prefixColumn = t2 + 1;
  117761. _box_0.prefixColumn = prefixColumn;
  117762. t2 = prefixColumn;
  117763. }
  117764. t2 = this._source_map_buffer0$_entries;
  117765. return A.SingleMapping_SingleMapping$fromEntries(new A.MappedListIterable(t2, new A.SourceMapBuffer_buildSourceMap_closure0(_box_0, t1), A._arrayInstanceType(t2)._eval$1("MappedListIterable<1,Entry>")));
  117766. }
  117767. };
  117768. A.SourceMapBuffer_buildSourceMap_closure0.prototype = {
  117769. call$1(entry) {
  117770. var t1 = entry.target,
  117771. t2 = t1.line,
  117772. t3 = this._box_0,
  117773. t4 = t3.prefixLines;
  117774. t3 = t2 === 0 ? t3.prefixColumn : 0;
  117775. return new A.Entry(entry.source, A.SourceLocation$(t1.offset + this.prefixLength, t1.column + t3, t2 + t4, null), entry.identifierName);
  117776. },
  117777. $signature: 185
  117778. };
  117779. A.updateSourceSpanPrototype_closure.prototype = {
  117780. call$0() {
  117781. return this.span;
  117782. },
  117783. $signature: 29
  117784. };
  117785. A.updateSourceSpanPrototype_closure0.prototype = {
  117786. call$1(span) {
  117787. return span.get$start(span);
  117788. },
  117789. $signature: 256
  117790. };
  117791. A.updateSourceSpanPrototype_closure1.prototype = {
  117792. call$1(span) {
  117793. return span.get$end(span);
  117794. },
  117795. $signature: 256
  117796. };
  117797. A.updateSourceSpanPrototype_closure2.prototype = {
  117798. call$1(span) {
  117799. return A.NullableExtension_andThen0(span.get$sourceUrl(span), new A.updateSourceSpanPrototype__closure());
  117800. },
  117801. $signature: 576
  117802. };
  117803. A.updateSourceSpanPrototype__closure.prototype = {
  117804. call$1(url) {
  117805. var t1, _null = null;
  117806. if (url.get$scheme() === "") {
  117807. t1 = $.$get$context();
  117808. t1 = t1.toUri$1(A.absolute(t1.style.pathFromUri$1(A._parseUri(url)), _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null));
  117809. } else
  117810. t1 = url;
  117811. return new self.URL(t1.toString$0(0));
  117812. },
  117813. $signature: 257
  117814. };
  117815. A.updateSourceSpanPrototype_closure3.prototype = {
  117816. call$1(span) {
  117817. return span.get$text();
  117818. },
  117819. $signature: 258
  117820. };
  117821. A.updateSourceSpanPrototype_closure4.prototype = {
  117822. call$1(span) {
  117823. return span.get$context(span);
  117824. },
  117825. $signature: 258
  117826. };
  117827. A.updateSourceSpanPrototype_closure5.prototype = {
  117828. call$1($location) {
  117829. return $location.get$line();
  117830. },
  117831. $signature: 259
  117832. };
  117833. A.updateSourceSpanPrototype_closure6.prototype = {
  117834. call$1($location) {
  117835. return $location.get$column();
  117836. },
  117837. $signature: 259
  117838. };
  117839. A.ColorSpace0.prototype = {
  117840. get$isLegacyInternal() {
  117841. return false;
  117842. },
  117843. get$isPolarInternal() {
  117844. return false;
  117845. },
  117846. convert$5(dest, channel0, channel1, channel2, alpha) {
  117847. return this.convertLinear$5(dest, channel0, channel1, channel2, alpha);
  117848. },
  117849. convertLinear$10$missingA$missingB$missingChroma$missingHue$missingLightness(dest, red, green, blue, alpha, missingA, missingB, missingChroma, missingHue, missingLightness) {
  117850. var t1, t2, transformedBlue, transformedGreen, transformedRed, linearRed, linearGreen, linearBlue, matrix, _this = this;
  117851. $label0$0: {
  117852. t1 = B.HslColorSpace_gsm0 !== dest;
  117853. if (!t1 || B.HwbColorSpace_06z0 === dest) {
  117854. t2 = B.SrgbColorSpace_AD40;
  117855. break $label0$0;
  117856. }
  117857. if (B.LabColorSpace_IF20 === dest || B.LchColorSpace_wv80 === dest) {
  117858. t2 = B.XyzD50ColorSpace_2No0;
  117859. break $label0$0;
  117860. }
  117861. if (B.OklabColorSpace_yrt0 === dest || B.OklchColorSpace_li80 === dest) {
  117862. t2 = B.LmsColorSpace_8I80;
  117863. break $label0$0;
  117864. }
  117865. t2 = dest;
  117866. break $label0$0;
  117867. }
  117868. if (t2 === _this) {
  117869. transformedBlue = blue;
  117870. transformedGreen = green;
  117871. transformedRed = red;
  117872. } else {
  117873. linearRed = _this.toLinear$1(red == null ? 0 : red);
  117874. linearGreen = _this.toLinear$1(green == null ? 0 : green);
  117875. linearBlue = _this.toLinear$1(blue == null ? 0 : blue);
  117876. matrix = _this.transformationMatrix$1(t2);
  117877. transformedRed = t2.fromLinear$1(matrix[0] * linearRed + matrix[1] * linearGreen + matrix[2] * linearBlue);
  117878. transformedGreen = t2.fromLinear$1(matrix[3] * linearRed + matrix[4] * linearGreen + matrix[5] * linearBlue);
  117879. transformedBlue = t2.fromLinear$1(matrix[6] * linearRed + matrix[7] * linearGreen + matrix[8] * linearBlue);
  117880. }
  117881. $label1$1: {
  117882. if (!t1 || B.HwbColorSpace_06z0 === dest) {
  117883. t1 = B.SrgbColorSpace_AD40.convert$8$missingChroma$missingHue$missingLightness(dest, transformedRed, transformedGreen, transformedBlue, alpha, missingChroma, missingHue, missingLightness);
  117884. break $label1$1;
  117885. }
  117886. if (B.LabColorSpace_IF20 === dest || B.LchColorSpace_wv80 === dest) {
  117887. t1 = B.XyzD50ColorSpace_2No0.convert$10$missingA$missingB$missingChroma$missingHue$missingLightness(dest, transformedRed, transformedGreen, transformedBlue, alpha, missingA, missingB, missingChroma, missingHue, missingLightness);
  117888. break $label1$1;
  117889. }
  117890. if (B.OklabColorSpace_yrt0 === dest || B.OklchColorSpace_li80 === dest) {
  117891. t1 = B.LmsColorSpace_8I80.convert$10$missingA$missingB$missingChroma$missingHue$missingLightness(dest, transformedRed, transformedGreen, transformedBlue, alpha, missingA, missingB, missingChroma, missingHue, missingLightness);
  117892. break $label1$1;
  117893. }
  117894. t1 = red == null ? null : transformedRed;
  117895. t2 = green == null ? null : transformedGreen;
  117896. t1 = A.SassColor_SassColor$forSpaceInternal0(dest, t1, t2, blue == null ? null : transformedBlue, alpha);
  117897. break $label1$1;
  117898. }
  117899. return t1;
  117900. },
  117901. convertLinear$5(dest, red, green, blue, alpha) {
  117902. return this.convertLinear$10$missingA$missingB$missingChroma$missingHue$missingLightness(dest, red, green, blue, alpha, false, false, false, false, false);
  117903. },
  117904. toLinear$1(channel) {
  117905. return A.throwExpression(A.UnimplementedError$("[BUG] Color space " + this.toString$0(0) + " doesn't support linear conversions."));
  117906. },
  117907. fromLinear$1(channel) {
  117908. return A.throwExpression(A.UnimplementedError$("[BUG] Color space " + this.toString$0(0) + " doesn't support linear conversions."));
  117909. },
  117910. transformationMatrix$1(dest) {
  117911. return A.throwExpression(A.UnimplementedError$("[BUG] Color space conversion from " + this.toString$0(0) + " to " + dest.toString$0(0) + " not implemented."));
  117912. },
  117913. toString$0(_) {
  117914. return this.name;
  117915. }
  117916. };
  117917. A.SrgbColorSpace0.prototype = {
  117918. get$isBoundedInternal() {
  117919. return true;
  117920. },
  117921. convert$8$missingChroma$missingHue$missingLightness(dest, red, green, blue, alpha, missingChroma, missingHue, missingLightness) {
  117922. var max, min, delta, hue, lightness, saturation, t1, t2, whiteness, blackness, _null = null;
  117923. if (B.HslColorSpace_gsm0 === dest || B.HwbColorSpace_06z0 === dest) {
  117924. if (red == null)
  117925. red = 0;
  117926. if (green == null)
  117927. green = 0;
  117928. if (blue == null)
  117929. blue = 0;
  117930. max = Math.max(Math.max(red, green), blue);
  117931. min = Math.min(Math.min(red, green), blue);
  117932. delta = max - min;
  117933. if (max === min)
  117934. hue = 0;
  117935. else if (max === red)
  117936. hue = 60 * (green - blue) / delta + 360;
  117937. else
  117938. hue = max === green ? 60 * (blue - red) / delta + 120 : 60 * (red - green) / delta + 240;
  117939. if (dest === B.HslColorSpace_gsm0) {
  117940. lightness = (min + max) / 2;
  117941. saturation = lightness === 0 || lightness === 1 ? 0 : 100 * (max - lightness) / Math.min(lightness, 1 - lightness);
  117942. if (saturation < 0) {
  117943. hue += 180;
  117944. saturation = Math.abs(saturation);
  117945. }
  117946. t1 = missingHue || A.fuzzyEquals0(saturation, 0) ? _null : B.JSNumber_methods.$mod(hue, 360);
  117947. t2 = missingChroma ? _null : saturation;
  117948. return A.SassColor_SassColor$forSpaceInternal0(dest, t1, t2, missingLightness ? _null : lightness * 100, alpha);
  117949. } else {
  117950. whiteness = min * 100;
  117951. blackness = 100 - max * 100;
  117952. if (!missingHue) {
  117953. t1 = whiteness + blackness;
  117954. t1 = t1 > 100 || A.fuzzyEquals0(t1, 100);
  117955. } else
  117956. t1 = true;
  117957. return A.SassColor_SassColor$forSpaceInternal0(dest, t1 ? _null : B.JSNumber_methods.$mod(hue, 360), whiteness, blackness, alpha);
  117958. }
  117959. }
  117960. if (B.RgbColorSpace_mlz0 === dest) {
  117961. t1 = red == null ? _null : red * 255;
  117962. t2 = green == null ? _null : green * 255;
  117963. return A.SassColor_SassColor$rgbInternal0(t1, t2, blue == null ? _null : blue * 255, alpha, _null);
  117964. }
  117965. if (B.SrgbLinearColorSpace_sEs0 === dest) {
  117966. t1 = this.get$toLinear();
  117967. return A.SassColor_SassColor$forSpaceInternal0(dest, A.NullableExtension_andThen0(red, t1), A.NullableExtension_andThen0(green, t1), A.NullableExtension_andThen0(blue, t1), alpha);
  117968. }
  117969. return this.super$ColorSpace$convertLinear0(dest, red, green, blue, alpha, false, false, missingChroma, missingHue, missingLightness);
  117970. },
  117971. convert$5(dest, red, green, blue, alpha) {
  117972. return this.convert$8$missingChroma$missingHue$missingLightness(dest, red, green, blue, alpha, false, false, false);
  117973. },
  117974. convert$6$missingHue(dest, red, green, blue, alpha, missingHue) {
  117975. return this.convert$8$missingChroma$missingHue$missingLightness(dest, red, green, blue, alpha, false, missingHue, false);
  117976. },
  117977. toLinear$1(channel) {
  117978. return A.srgbAndDisplayP3ToLinear0(channel);
  117979. },
  117980. fromLinear$1(channel) {
  117981. return A.srgbAndDisplayP3FromLinear0(channel);
  117982. },
  117983. transformationMatrix$1(dest) {
  117984. var t1;
  117985. $label0$0: {
  117986. if (B.DisplayP3ColorSpace_NQk0 === dest) {
  117987. t1 = $.$get$linearSrgbToLinearDisplayP30();
  117988. break $label0$0;
  117989. }
  117990. if (B.A98RgbColorSpace_bdu0 === dest) {
  117991. t1 = $.$get$linearSrgbToLinearA98Rgb0();
  117992. break $label0$0;
  117993. }
  117994. if (B.ProphotoRgbColorSpace_KiG0 === dest) {
  117995. t1 = $.$get$linearSrgbToLinearProphotoRgb0();
  117996. break $label0$0;
  117997. }
  117998. if (B.Rec2020ColorSpace_2jN0 === dest) {
  117999. t1 = $.$get$linearSrgbToLinearRec20200();
  118000. break $label0$0;
  118001. }
  118002. if (B.XyzD65ColorSpace_4CA0 === dest) {
  118003. t1 = $.$get$linearSrgbToXyzD650();
  118004. break $label0$0;
  118005. }
  118006. if (B.XyzD50ColorSpace_2No0 === dest) {
  118007. t1 = $.$get$linearSrgbToXyzD500();
  118008. break $label0$0;
  118009. }
  118010. if (B.LmsColorSpace_8I80 === dest) {
  118011. t1 = $.$get$linearSrgbToLms0();
  118012. break $label0$0;
  118013. }
  118014. t1 = this.super$ColorSpace$transformationMatrix0(dest);
  118015. break $label0$0;
  118016. }
  118017. return t1;
  118018. }
  118019. };
  118020. A.SrgbLinearColorSpace0.prototype = {
  118021. get$isBoundedInternal() {
  118022. return true;
  118023. },
  118024. convert$5(dest, red, green, blue, alpha) {
  118025. var t1;
  118026. $label0$0: {
  118027. if (B.RgbColorSpace_mlz0 === dest || B.HslColorSpace_gsm0 === dest || B.HwbColorSpace_06z0 === dest || B.SrgbColorSpace_AD40 === dest) {
  118028. t1 = B.SrgbColorSpace_AD40.convert$5(dest, A.NullableExtension_andThen0(red, A.utils2__srgbAndDisplayP3FromLinear$closure()), A.NullableExtension_andThen0(green, A.utils2__srgbAndDisplayP3FromLinear$closure()), A.NullableExtension_andThen0(blue, A.utils2__srgbAndDisplayP3FromLinear$closure()), alpha);
  118029. break $label0$0;
  118030. }
  118031. t1 = this.super$ColorSpace$convert0(dest, red, green, blue, alpha);
  118032. break $label0$0;
  118033. }
  118034. return t1;
  118035. },
  118036. toLinear$1(channel) {
  118037. return channel;
  118038. },
  118039. fromLinear$1(channel) {
  118040. return channel;
  118041. },
  118042. transformationMatrix$1(dest) {
  118043. var t1;
  118044. $label0$0: {
  118045. if (B.DisplayP3ColorSpace_NQk0 === dest) {
  118046. t1 = $.$get$linearSrgbToLinearDisplayP30();
  118047. break $label0$0;
  118048. }
  118049. if (B.A98RgbColorSpace_bdu0 === dest) {
  118050. t1 = $.$get$linearSrgbToLinearA98Rgb0();
  118051. break $label0$0;
  118052. }
  118053. if (B.ProphotoRgbColorSpace_KiG0 === dest) {
  118054. t1 = $.$get$linearSrgbToLinearProphotoRgb0();
  118055. break $label0$0;
  118056. }
  118057. if (B.Rec2020ColorSpace_2jN0 === dest) {
  118058. t1 = $.$get$linearSrgbToLinearRec20200();
  118059. break $label0$0;
  118060. }
  118061. if (B.XyzD65ColorSpace_4CA0 === dest) {
  118062. t1 = $.$get$linearSrgbToXyzD650();
  118063. break $label0$0;
  118064. }
  118065. if (B.XyzD50ColorSpace_2No0 === dest) {
  118066. t1 = $.$get$linearSrgbToXyzD500();
  118067. break $label0$0;
  118068. }
  118069. if (B.LmsColorSpace_8I80 === dest) {
  118070. t1 = $.$get$linearSrgbToLms0();
  118071. break $label0$0;
  118072. }
  118073. t1 = this.super$ColorSpace$transformationMatrix0(dest);
  118074. break $label0$0;
  118075. }
  118076. return t1;
  118077. }
  118078. };
  118079. A.Statement0.prototype = {$isAstNode0: 1, $isSassNode: 1};
  118080. A.JSStatementVisitor.prototype = {
  118081. visitAtRootRule$1(_, node) {
  118082. return J.visitAtRootRule$1$x(this._statement$_inner, node);
  118083. },
  118084. visitAtRule$1(_, node) {
  118085. return J.visitAtRule$1$x(this._statement$_inner, node);
  118086. },
  118087. visitContentBlock$1(_, node) {
  118088. return J.visitContentBlock$1$x(this._statement$_inner, node);
  118089. },
  118090. visitContentRule$1(_, node) {
  118091. return J.visitContentRule$1$x(this._statement$_inner, node);
  118092. },
  118093. visitDebugRule$1(_, node) {
  118094. return J.visitDebugRule$1$x(this._statement$_inner, node);
  118095. },
  118096. visitDeclaration$1(_, node) {
  118097. return J.visitDeclaration$1$x(this._statement$_inner, node);
  118098. },
  118099. visitEachRule$1(_, node) {
  118100. return J.visitEachRule$1$x(this._statement$_inner, node);
  118101. },
  118102. visitErrorRule$1(_, node) {
  118103. return J.visitErrorRule$1$x(this._statement$_inner, node);
  118104. },
  118105. visitExtendRule$1(_, node) {
  118106. return J.visitExtendRule$1$x(this._statement$_inner, node);
  118107. },
  118108. visitForRule$1(_, node) {
  118109. return J.visitForRule$1$x(this._statement$_inner, node);
  118110. },
  118111. visitForwardRule$1(_, node) {
  118112. return J.visitForwardRule$1$x(this._statement$_inner, node);
  118113. },
  118114. visitFunctionRule$1(_, node) {
  118115. return J.visitFunctionRule$1$x(this._statement$_inner, node);
  118116. },
  118117. visitIfRule$1(_, node) {
  118118. return J.visitIfRule$1$x(this._statement$_inner, node);
  118119. },
  118120. visitImportRule$1(_, node) {
  118121. return J.visitImportRule$1$x(this._statement$_inner, node);
  118122. },
  118123. visitIncludeRule$1(_, node) {
  118124. return J.visitIncludeRule$1$x(this._statement$_inner, node);
  118125. },
  118126. visitLoudComment$1(_, node) {
  118127. return J.visitLoudComment$1$x(this._statement$_inner, node);
  118128. },
  118129. visitMediaRule$1(_, node) {
  118130. return J.visitMediaRule$1$x(this._statement$_inner, node);
  118131. },
  118132. visitMixinRule$1(_, node) {
  118133. return J.visitMixinRule$1$x(this._statement$_inner, node);
  118134. },
  118135. visitReturnRule$1(_, node) {
  118136. return J.visitReturnRule$1$x(this._statement$_inner, node);
  118137. },
  118138. visitSilentComment$1(_, node) {
  118139. return J.visitSilentComment$1$x(this._statement$_inner, node);
  118140. },
  118141. visitStyleRule$1(_, node) {
  118142. return J.visitStyleRule$1$x(this._statement$_inner, node);
  118143. },
  118144. visitStylesheet$1(_, node) {
  118145. return J.visitStylesheet$1$x(this._statement$_inner, node);
  118146. },
  118147. visitSupportsRule$1(_, node) {
  118148. return J.visitSupportsRule$1$x(this._statement$_inner, node);
  118149. },
  118150. visitUseRule$1(_, node) {
  118151. return J.visitUseRule$1$x(this._statement$_inner, node);
  118152. },
  118153. visitVariableDeclaration$1(_, node) {
  118154. return J.visitVariableDeclaration$1$x(this._statement$_inner, node);
  118155. },
  118156. visitWarnRule$1(_, node) {
  118157. return J.visitWarnRule$1$x(this._statement$_inner, node);
  118158. },
  118159. visitWhileRule$1(_, node) {
  118160. return J.visitWhileRule$1$x(this._statement$_inner, node);
  118161. },
  118162. $isStatementVisitor: 1
  118163. };
  118164. A.JSStatementVisitorObject.prototype = {};
  118165. A.StatementSearchVisitor0.prototype = {
  118166. visitAtRootRule$1(_, node) {
  118167. return this.visitChildren$1(node.children);
  118168. },
  118169. visitAtRule$1(_, node) {
  118170. return A.NullableExtension_andThen0(node.children, this.get$visitChildren());
  118171. },
  118172. visitContentBlock$1(_, node) {
  118173. return this.visitChildren$1(node.children);
  118174. },
  118175. visitContentRule$1(_, node) {
  118176. return null;
  118177. },
  118178. visitDebugRule$1(_, node) {
  118179. return null;
  118180. },
  118181. visitDeclaration$1(_, node) {
  118182. return A.NullableExtension_andThen0(node.children, this.get$visitChildren());
  118183. },
  118184. visitEachRule$1(_, node) {
  118185. return this.visitChildren$1(node.children);
  118186. },
  118187. visitErrorRule$1(_, node) {
  118188. return null;
  118189. },
  118190. visitExtendRule$1(_, node) {
  118191. return null;
  118192. },
  118193. visitForRule$1(_, node) {
  118194. return this.visitChildren$1(node.children);
  118195. },
  118196. visitForwardRule$1(_, node) {
  118197. return null;
  118198. },
  118199. visitFunctionRule$1(_, node) {
  118200. return this.visitChildren$1(node.children);
  118201. },
  118202. visitIfRule$1(_, node) {
  118203. var t1 = A.IterableExtension_search0(node.clauses, new A.StatementSearchVisitor_visitIfRule_closure1(this));
  118204. return t1 == null ? A.NullableExtension_andThen0(node.lastClause, new A.StatementSearchVisitor_visitIfRule_closure2(this)) : t1;
  118205. },
  118206. visitImportRule$1(_, node) {
  118207. return null;
  118208. },
  118209. visitIncludeRule$1(_, node) {
  118210. return A.NullableExtension_andThen0(node.content, this.get$visitContentBlock(this));
  118211. },
  118212. visitLoudComment$1(_, node) {
  118213. return null;
  118214. },
  118215. visitMediaRule$1(_, node) {
  118216. return this.visitChildren$1(node.children);
  118217. },
  118218. visitMixinRule$1(_, node) {
  118219. return this.visitChildren$1(node.children);
  118220. },
  118221. visitReturnRule$1(_, node) {
  118222. return null;
  118223. },
  118224. visitSilentComment$1(_, node) {
  118225. return null;
  118226. },
  118227. visitStyleRule$1(_, node) {
  118228. return this.visitChildren$1(node.children);
  118229. },
  118230. visitStylesheet$1(_, node) {
  118231. return this.visitChildren$1(node.children);
  118232. },
  118233. visitSupportsRule$1(_, node) {
  118234. return this.visitChildren$1(node.children);
  118235. },
  118236. visitUseRule$1(_, node) {
  118237. return null;
  118238. },
  118239. visitVariableDeclaration$1(_, node) {
  118240. return null;
  118241. },
  118242. visitWarnRule$1(_, node) {
  118243. return null;
  118244. },
  118245. visitWhileRule$1(_, node) {
  118246. return this.visitChildren$1(node.children);
  118247. },
  118248. visitChildren$1(children) {
  118249. return A.IterableExtension_search0(children, new A.StatementSearchVisitor_visitChildren_closure0(this));
  118250. }
  118251. };
  118252. A.StatementSearchVisitor_visitIfRule_closure1.prototype = {
  118253. call$1(clause) {
  118254. return A.IterableExtension_search0(clause.children, new A.StatementSearchVisitor_visitIfRule__closure2(this.$this));
  118255. },
  118256. $signature() {
  118257. return A._instanceType(this.$this)._eval$1("StatementSearchVisitor0.T?(IfClause0)");
  118258. }
  118259. };
  118260. A.StatementSearchVisitor_visitIfRule__closure2.prototype = {
  118261. call$1(child) {
  118262. return child.accept$1(this.$this);
  118263. },
  118264. $signature() {
  118265. return A._instanceType(this.$this)._eval$1("StatementSearchVisitor0.T?(Statement0)");
  118266. }
  118267. };
  118268. A.StatementSearchVisitor_visitIfRule_closure2.prototype = {
  118269. call$1(lastClause) {
  118270. return A.IterableExtension_search0(lastClause.children, new A.StatementSearchVisitor_visitIfRule__closure1(this.$this));
  118271. },
  118272. $signature() {
  118273. return A._instanceType(this.$this)._eval$1("StatementSearchVisitor0.T?(ElseClause0)");
  118274. }
  118275. };
  118276. A.StatementSearchVisitor_visitIfRule__closure1.prototype = {
  118277. call$1(child) {
  118278. return child.accept$1(this.$this);
  118279. },
  118280. $signature() {
  118281. return A._instanceType(this.$this)._eval$1("StatementSearchVisitor0.T?(Statement0)");
  118282. }
  118283. };
  118284. A.StatementSearchVisitor_visitChildren_closure0.prototype = {
  118285. call$1(child) {
  118286. return child.accept$1(this.$this);
  118287. },
  118288. $signature() {
  118289. return A._instanceType(this.$this)._eval$1("StatementSearchVisitor0.T?(Statement0)");
  118290. }
  118291. };
  118292. A.StaticImport0.prototype = {
  118293. toString$0(_) {
  118294. var t1 = this.url.toString$0(0),
  118295. t2 = this.modifiers;
  118296. return t1 + (t2 == null ? "" : " " + t2.toString$0(0));
  118297. },
  118298. $isImport0: 1,
  118299. $isAstNode0: 1,
  118300. $isSassNode: 1,
  118301. get$span(receiver) {
  118302. return this.span;
  118303. }
  118304. };
  118305. A.StderrLogger0.prototype = {
  118306. warn$4$deprecation$span$trace(_, message, deprecation, span, trace) {
  118307. var t2,
  118308. result = new A.StringBuffer(""),
  118309. t1 = this.color;
  118310. if (t1) {
  118311. t2 = result._contents = "" + "\x1b[33m\x1b[1m";
  118312. t2 = result._contents = (deprecation ? result._contents = t2 + "Deprecation " : t2) + "Warning\x1b[0m";
  118313. } else
  118314. t2 = result._contents = (deprecation ? result._contents = "" + "DEPRECATION " : "") + "WARNING";
  118315. if (span == null)
  118316. t1 = result._contents = t2 + (": " + message + "\n");
  118317. else if (trace != null) {
  118318. t1 = t2 + (": " + message + "\n\n" + span.highlight$1$color(t1) + "\n");
  118319. result._contents = t1;
  118320. } else {
  118321. t1 = t2 + (" on " + span.message$2$color(0, "\n" + message, t1) + "\n");
  118322. result._contents = t1;
  118323. }
  118324. if (trace != null)
  118325. result._contents = t1 + (A.indent0(B.JSString_methods.trimRight$0(trace.toString$0(0)), 4) + "\n");
  118326. A.printError0(result);
  118327. },
  118328. warn$1(_, message) {
  118329. return this.warn$4$deprecation$span$trace(0, message, false, null, null);
  118330. },
  118331. warn$3$span$trace(_, message, span, trace) {
  118332. return this.warn$4$deprecation$span$trace(0, message, false, span, trace);
  118333. },
  118334. warn$2$trace(_, message, trace) {
  118335. return this.warn$4$deprecation$span$trace(0, message, false, null, trace);
  118336. },
  118337. debug$2(_, message, span) {
  118338. var url, t3, t4,
  118339. t1 = span.file,
  118340. t2 = span._file$_start;
  118341. if (A.FileLocation$_(t1, t2).file.url == null)
  118342. url = "-";
  118343. else {
  118344. t3 = A.FileLocation$_(t1, t2).file.url;
  118345. t4 = $.$get$context();
  118346. t3.toString;
  118347. url = t4.prettyUri$1(t3);
  118348. }
  118349. t1 = A.FileLocation$_(t1, t2);
  118350. t1 = t1.file.getLine$1(t1.offset);
  118351. t2 = this.color ? "\x1b[1mDebug\x1b[0m" : "DEBUG";
  118352. t2 = "" + (url + ":" + (t1 + 1) + " ") + t2 + (": " + message);
  118353. A.printError0(t2.charCodeAt(0) == 0 ? t2 : t2);
  118354. }
  118355. };
  118356. A.StringExpression0.prototype = {
  118357. get$span(_) {
  118358. return this.text.span;
  118359. },
  118360. accept$1$1(visitor) {
  118361. return visitor.visitStringExpression$1(0, this);
  118362. },
  118363. accept$1(visitor) {
  118364. return this.accept$1$1(visitor, type$.dynamic);
  118365. },
  118366. asInterpolation$1$static($static) {
  118367. var t1, t2, quote, t3, t4, t5, buffer, t6, i, value, t7;
  118368. if (!this.hasQuotes)
  118369. return this.text;
  118370. t1 = this.text;
  118371. t2 = t1.contents;
  118372. quote = A.StringExpression__bestQuote0(new A.WhereTypeIterable(t2, type$.WhereTypeIterable_String));
  118373. t3 = new A.StringBuffer("");
  118374. t4 = A._setArrayType([], type$.JSArray_Object);
  118375. t5 = A._setArrayType([], type$.JSArray_nullable_FileSpan);
  118376. buffer = new A.InterpolationBuffer0(t3, t4, t5);
  118377. t6 = A.Primitives_stringFromCharCode(quote);
  118378. t3._contents += t6;
  118379. for (t6 = t2.length, i = 0; i < t6; ++i) {
  118380. value = t2[i];
  118381. if (value instanceof A.Expression0) {
  118382. t7 = t1.spanForElement$1(i);
  118383. buffer._interpolation_buffer0$_flushText$0();
  118384. t4.push(value);
  118385. t5.push(t7);
  118386. continue;
  118387. }
  118388. if (typeof value == "string")
  118389. A.StringExpression__quoteInnerText0(value, quote, buffer, $static);
  118390. }
  118391. t2 = A.Primitives_stringFromCharCode(quote);
  118392. t3._contents += t2;
  118393. return buffer.interpolation$1(t1.span);
  118394. },
  118395. asInterpolation$0() {
  118396. return this.asInterpolation$1$static(false);
  118397. },
  118398. toString$0(_) {
  118399. return this.asInterpolation$0().toString$0(0);
  118400. }
  118401. };
  118402. A.module_closure25.prototype = {
  118403. call$1($arguments) {
  118404. var limit, t2, chunks, i, lastEnd, match, t3,
  118405. t1 = J.getInterceptor$asx($arguments),
  118406. string = t1.$index($arguments, 0).assertString$1("string"),
  118407. separator = t1.$index($arguments, 1).assertString$1("separator");
  118408. t1 = t1.$index($arguments, 2).get$realNull();
  118409. limit = t1 == null ? null : t1.assertNumber$1("limit").assertInt$1("limit");
  118410. if (limit != null && limit < 1)
  118411. throw A.wrapException(A.SassScriptException$0("$limit: Must be 1 or greater, was " + A.S(limit) + ".", null));
  118412. t1 = string._string0$_text;
  118413. if (t1.length === 0)
  118414. return B.SassList_bdS2;
  118415. else {
  118416. t2 = separator._string0$_text;
  118417. if (t2.length === 0)
  118418. return A.SassList$0(A.MappedIterable_MappedIterable(new A.Runes(t1), new A.module__closure3(string), type$.Runes._eval$1("Iterable.E"), type$.Value_2), B.ListSeparator_ECn0, true);
  118419. }
  118420. chunks = A._setArrayType([], type$.JSArray_String);
  118421. for (t2 = B.JSString_methods.allMatches$1(t2, t1), t2 = new A._StringAllMatchesIterator(t2._input, t2._pattern, t2.__js_helper$_index), i = 0, lastEnd = 0; t2.moveNext$0();) {
  118422. match = t2.__js_helper$_current;
  118423. t3 = match.start;
  118424. chunks.push(B.JSString_methods.substring$2(t1, lastEnd, t3));
  118425. lastEnd = t3 + match.pattern.length;
  118426. ++i;
  118427. if (i === limit)
  118428. break;
  118429. }
  118430. chunks.push(B.JSString_methods.substring$1(t1, lastEnd));
  118431. return A.SassList$0(new A.MappedListIterable(chunks, new A.module__closure4(string), type$.MappedListIterable_String_Value_2), B.ListSeparator_ECn0, true);
  118432. },
  118433. $signature: 26
  118434. };
  118435. A.module__closure3.prototype = {
  118436. call$1(rune) {
  118437. return new A.SassString0(A.Primitives_stringFromCharCode(rune), this.string._string0$_hasQuotes);
  118438. },
  118439. $signature: 580
  118440. };
  118441. A.module__closure4.prototype = {
  118442. call$1(chunk) {
  118443. return new A.SassString0(chunk, this.string._string0$_hasQuotes);
  118444. },
  118445. $signature: 581
  118446. };
  118447. A._unquote_closure0.prototype = {
  118448. call$1($arguments) {
  118449. var string = J.$index$asx($arguments, 0).assertString$1("string");
  118450. if (!string._string0$_hasQuotes)
  118451. return string;
  118452. return new A.SassString0(string._string0$_text, false);
  118453. },
  118454. $signature: 17
  118455. };
  118456. A._quote_closure0.prototype = {
  118457. call$1($arguments) {
  118458. var string = J.$index$asx($arguments, 0).assertString$1("string");
  118459. if (string._string0$_hasQuotes)
  118460. return string;
  118461. return new A.SassString0(string._string0$_text, true);
  118462. },
  118463. $signature: 17
  118464. };
  118465. A._length_closure1.prototype = {
  118466. call$1($arguments) {
  118467. return A.SassNumber_SassNumber0(J.$index$asx($arguments, 0).assertString$1("string").get$_string0$_sassLength(), null);
  118468. },
  118469. $signature: 22
  118470. };
  118471. A._insert_closure0.prototype = {
  118472. call$1($arguments) {
  118473. var indexInt, codeUnitIndex, _s5_ = "index",
  118474. t1 = J.getInterceptor$asx($arguments),
  118475. string = t1.$index($arguments, 0).assertString$1("string"),
  118476. insert = t1.$index($arguments, 1).assertString$1("insert"),
  118477. index = t1.$index($arguments, 2).assertNumber$1(_s5_);
  118478. index.assertNoUnits$1(_s5_);
  118479. indexInt = index.assertInt$1(_s5_);
  118480. if (indexInt < 0)
  118481. indexInt = Math.max(string.get$_string0$_sassLength() + indexInt + 2, 0);
  118482. t1 = string._string0$_text;
  118483. codeUnitIndex = A.codepointIndexToCodeUnitIndex0(t1, A._codepointForIndex0(indexInt, string.get$_string0$_sassLength(), false));
  118484. return new A.SassString0(B.JSString_methods.replaceRange$3(t1, codeUnitIndex, codeUnitIndex, insert._string0$_text), string._string0$_hasQuotes);
  118485. },
  118486. $signature: 17
  118487. };
  118488. A._index_closure1.prototype = {
  118489. call$1($arguments) {
  118490. var t1 = J.getInterceptor$asx($arguments),
  118491. t2 = t1.$index($arguments, 0).assertString$1("string")._string0$_text,
  118492. codeUnitIndex = B.JSString_methods.indexOf$1(t2, t1.$index($arguments, 1).assertString$1("substring")._string0$_text);
  118493. if (codeUnitIndex === -1)
  118494. return B.C__SassNull0;
  118495. return A.SassNumber_SassNumber0(A.codeUnitIndexToCodepointIndex0(t2, codeUnitIndex) + 1, null);
  118496. },
  118497. $signature: 3
  118498. };
  118499. A._slice_closure0.prototype = {
  118500. call$1($arguments) {
  118501. var lengthInCodepoints, endInt, startCodepoint, endCodepoint,
  118502. _s8_ = "start-at",
  118503. t1 = J.getInterceptor$asx($arguments),
  118504. string = t1.$index($arguments, 0).assertString$1("string"),
  118505. start = t1.$index($arguments, 1).assertNumber$1(_s8_),
  118506. end = t1.$index($arguments, 2).assertNumber$1("end-at");
  118507. start.assertNoUnits$1(_s8_);
  118508. end.assertNoUnits$1("end-at");
  118509. lengthInCodepoints = string.get$_string0$_sassLength();
  118510. endInt = end.assertInt$0();
  118511. if (endInt === 0)
  118512. return string._string0$_hasQuotes ? $.$get$_emptyQuoted0() : $.$get$_emptyUnquoted0();
  118513. startCodepoint = A._codepointForIndex0(start.assertInt$0(), lengthInCodepoints, false);
  118514. endCodepoint = A._codepointForIndex0(endInt, lengthInCodepoints, true);
  118515. if (endCodepoint === lengthInCodepoints)
  118516. --endCodepoint;
  118517. if (endCodepoint < startCodepoint)
  118518. return string._string0$_hasQuotes ? $.$get$_emptyQuoted0() : $.$get$_emptyUnquoted0();
  118519. t1 = string._string0$_text;
  118520. return new A.SassString0(B.JSString_methods.substring$2(t1, A.codepointIndexToCodeUnitIndex0(t1, startCodepoint), A.codepointIndexToCodeUnitIndex0(t1, endCodepoint + 1)), string._string0$_hasQuotes);
  118521. },
  118522. $signature: 17
  118523. };
  118524. A._toUpperCase_closure0.prototype = {
  118525. call$1($arguments) {
  118526. var t1, t2, i, t3, t4,
  118527. string = J.$index$asx($arguments, 0).assertString$1("string");
  118528. for (t1 = string._string0$_text, t2 = t1.length, i = 0, t3 = ""; i < t2; ++i) {
  118529. t4 = t1.charCodeAt(i);
  118530. t3 += A.Primitives_stringFromCharCode(t4 >= 97 && t4 <= 122 ? t4 & 4294967263 : t4);
  118531. }
  118532. return new A.SassString0(t3.charCodeAt(0) == 0 ? t3 : t3, string._string0$_hasQuotes);
  118533. },
  118534. $signature: 17
  118535. };
  118536. A._toLowerCase_closure0.prototype = {
  118537. call$1($arguments) {
  118538. var t1, t2, i, t3, t4,
  118539. string = J.$index$asx($arguments, 0).assertString$1("string");
  118540. for (t1 = string._string0$_text, t2 = t1.length, i = 0, t3 = ""; i < t2; ++i) {
  118541. t4 = t1.charCodeAt(i);
  118542. t3 += A.Primitives_stringFromCharCode(t4 >= 65 && t4 <= 90 ? t4 | 32 : t4);
  118543. }
  118544. return new A.SassString0(t3.charCodeAt(0) == 0 ? t3 : t3, string._string0$_hasQuotes);
  118545. },
  118546. $signature: 17
  118547. };
  118548. A._uniqueId_closure0.prototype = {
  118549. call$1($arguments) {
  118550. var t1 = $.$get$_previousUniqueId0() + ($.$get$_random1().nextInt$1(36) + 1);
  118551. $._previousUniqueId0 = t1;
  118552. if (t1 > Math.pow(36, 6))
  118553. $._previousUniqueId0 = B.JSInt_methods.$mod($.$get$_previousUniqueId0(), A._asInt(Math.pow(36, 6)));
  118554. return new A.SassString0("u" + B.JSString_methods.padLeft$2(B.JSInt_methods.toRadixString$1($.$get$_previousUniqueId0(), 36), 6, "0"), false);
  118555. },
  118556. $signature: 17
  118557. };
  118558. A.StringExtension_toCssIdentifier_writeEscape.prototype = {
  118559. call$1(character) {
  118560. var _0_0,
  118561. t1 = this.buffer,
  118562. t2 = A.Primitives_stringFromCharCode(92);
  118563. t1._contents += t2;
  118564. t2 = B.JSInt_methods.toRadixString$1(character, 16);
  118565. t1._contents += t2;
  118566. _0_0 = this.scanner.peekChar$0();
  118567. if (A._isInt(_0_0) && A.CharacterExtension_get_isHex0(_0_0)) {
  118568. t2 = A.Primitives_stringFromCharCode(32);
  118569. t1._contents += t2;
  118570. }
  118571. },
  118572. $signature: 260
  118573. };
  118574. A.StringExtension_toCssIdentifier_consumeSurrogatePair.prototype = {
  118575. call$1(character) {
  118576. var t2, t3,
  118577. t1 = this.scanner,
  118578. _1_0 = t1.peekChar$1(1);
  118579. if (_1_0 == null || _1_0 >>> 10 !== 55)
  118580. t1.error$2$length(0, "An individual surrogates can't be represented as a CSS identifier.", 1);
  118581. else if (character >>> 7 === 439)
  118582. this.writeEscape.call$1(A.combineSurrogates(t1.readChar$0(), t1.readChar$0()));
  118583. else {
  118584. t2 = this.buffer;
  118585. t3 = A.Primitives_stringFromCharCode(t1.readChar$0());
  118586. t2._contents += t3;
  118587. t1 = A.Primitives_stringFromCharCode(t1.readChar$0());
  118588. t2._contents += t1;
  118589. }
  118590. },
  118591. $signature: 260
  118592. };
  118593. A.stringClass_closure.prototype = {
  118594. call$0() {
  118595. var t2,
  118596. t1 = type$.JSClass,
  118597. jsClass = t1._as(A.allowInteropCaptureThisNamed("sass.SassString", new A.stringClass__closure()));
  118598. A.LinkedHashMap_LinkedHashMap$_literal(["text", new A.stringClass__closure0(), "hasQuotes", new A.stringClass__closure1(), "sassLength", new A.stringClass__closure2()], type$.String, type$.Function).forEach$1(0, A.JSClassExtension_get_defineGetter(jsClass));
  118599. J.get$$prototype$x(jsClass).sassIndexToStringIndex = A.allowInteropCaptureThisNamed("sassIndexToStringIndex", new A.stringClass__closure3());
  118600. t2 = $.$get$_emptyQuoted0();
  118601. A.JSClassExtension_injectSuperclass(t1._as(t2.constructor), jsClass);
  118602. return jsClass;
  118603. },
  118604. $signature: 16
  118605. };
  118606. A.stringClass__closure.prototype = {
  118607. call$3($self, textOrOptions, options) {
  118608. var t1;
  118609. if (typeof textOrOptions == "string") {
  118610. t1 = options == null ? null : J.get$quotes$x(options);
  118611. t1 = new A.SassString0(textOrOptions, t1 == null ? true : t1);
  118612. } else {
  118613. type$.nullable__ConstructorOptions_3._as(textOrOptions);
  118614. t1 = textOrOptions == null ? null : J.get$quotes$x(textOrOptions);
  118615. t1 = (t1 == null ? true : t1) ? $.$get$_emptyQuoted0() : $.$get$_emptyUnquoted0();
  118616. }
  118617. return t1;
  118618. },
  118619. call$1($self) {
  118620. return this.call$3($self, null, null);
  118621. },
  118622. call$2($self, textOrOptions) {
  118623. return this.call$3($self, textOrOptions, null);
  118624. },
  118625. "call*": "call$3",
  118626. $requiredArgCount: 1,
  118627. $defaultValues() {
  118628. return [null, null];
  118629. },
  118630. $signature: 583
  118631. };
  118632. A.stringClass__closure0.prototype = {
  118633. call$1($self) {
  118634. return $self._string0$_text;
  118635. },
  118636. $signature: 584
  118637. };
  118638. A.stringClass__closure1.prototype = {
  118639. call$1($self) {
  118640. return $self._string0$_hasQuotes;
  118641. },
  118642. $signature: 585
  118643. };
  118644. A.stringClass__closure2.prototype = {
  118645. call$1($self) {
  118646. return $self.get$_string0$_sassLength();
  118647. },
  118648. $signature: 586
  118649. };
  118650. A.stringClass__closure3.prototype = {
  118651. call$3($self, sassIndex, $name) {
  118652. var t1,
  118653. index = sassIndex.assertNumber$1($name).assertInt$1($name);
  118654. if (index === 0)
  118655. A.throwExpression(A.SassScriptException$0("String index may not be 0.", $name));
  118656. else if (Math.abs(index) > $self.get$_string0$_sassLength())
  118657. A.throwExpression(A.SassScriptException$0("Invalid index " + sassIndex.toString$0(0) + " for a string with " + $self.get$_string0$_sassLength() + " characters.", $name));
  118658. t1 = index < 0 ? $self.get$_string0$_sassLength() + index : index - 1;
  118659. return A.codepointIndexToCodeUnitIndex0($self._string0$_text, t1);
  118660. },
  118661. call$2($self, sassIndex) {
  118662. return this.call$3($self, sassIndex, null);
  118663. },
  118664. "call*": "call$3",
  118665. $requiredArgCount: 2,
  118666. $defaultValues() {
  118667. return [null];
  118668. },
  118669. $signature: 587
  118670. };
  118671. A._ConstructorOptions1.prototype = {};
  118672. A._NodeSassString.prototype = {};
  118673. A.legacyStringClass_closure.prototype = {
  118674. call$3(thisArg, value, dartValue) {
  118675. var t1;
  118676. if (dartValue == null) {
  118677. value.toString;
  118678. t1 = new A.SassString0(value, false);
  118679. } else
  118680. t1 = dartValue;
  118681. J.set$dartValue$x(thisArg, t1);
  118682. },
  118683. call$2(thisArg, value) {
  118684. return this.call$3(thisArg, value, null);
  118685. },
  118686. "call*": "call$3",
  118687. $requiredArgCount: 2,
  118688. $defaultValues() {
  118689. return [null];
  118690. },
  118691. $signature: 588
  118692. };
  118693. A.legacyStringClass_closure0.prototype = {
  118694. call$1(thisArg) {
  118695. return J.get$dartValue$x(thisArg)._string0$_text;
  118696. },
  118697. $signature: 589
  118698. };
  118699. A.legacyStringClass_closure1.prototype = {
  118700. call$2(thisArg, value) {
  118701. J.set$dartValue$x(thisArg, new A.SassString0(value, false));
  118702. },
  118703. $signature: 590
  118704. };
  118705. A.SassString0.prototype = {
  118706. get$_string0$_sassLength() {
  118707. var result, _this = this,
  118708. value = _this._string0$__SassString__sassLength_FI;
  118709. if (value === $) {
  118710. result = new A.Runes(_this._string0$_text).get$length(0);
  118711. _this._string0$__SassString__sassLength_FI !== $ && A.throwUnnamedLateFieldADI();
  118712. _this._string0$__SassString__sassLength_FI = result;
  118713. value = result;
  118714. }
  118715. return value;
  118716. },
  118717. get$isSpecialNumber() {
  118718. var t1, _2_0, t2, _0_0, _1_0;
  118719. if (this._string0$_hasQuotes)
  118720. return false;
  118721. t1 = this._string0$_text;
  118722. if (t1.length < 6)
  118723. return false;
  118724. _2_0 = t1.charCodeAt(0);
  118725. $label1$1: {
  118726. t2 = false;
  118727. if (99 === _2_0 || 67 === _2_0) {
  118728. _0_0 = t1.charCodeAt(1);
  118729. $label0$0: {
  118730. if (108 === _0_0 || 76 === _0_0) {
  118731. t1 = (t1.charCodeAt(2) | 32) === 97 && (t1.charCodeAt(3) | 32) === 109 && (t1.charCodeAt(4) | 32) === 112 && t1.charCodeAt(5) === 40;
  118732. break $label0$0;
  118733. }
  118734. if (97 === _0_0 || 65 === _0_0) {
  118735. t1 = (t1.charCodeAt(2) | 32) === 108 && (t1.charCodeAt(3) | 32) === 99 && t1.charCodeAt(4) === 40;
  118736. break $label0$0;
  118737. }
  118738. t1 = t2;
  118739. break $label0$0;
  118740. }
  118741. break $label1$1;
  118742. }
  118743. if (118 === _2_0 || 86 === _2_0) {
  118744. t1 = (t1.charCodeAt(1) | 32) === 97 && (t1.charCodeAt(2) | 32) === 114 && t1.charCodeAt(3) === 40;
  118745. break $label1$1;
  118746. }
  118747. if (101 === _2_0 || 69 === _2_0) {
  118748. t1 = (t1.charCodeAt(1) | 32) === 110 && (t1.charCodeAt(2) | 32) === 118 && t1.charCodeAt(3) === 40;
  118749. break $label1$1;
  118750. }
  118751. if (109 === _2_0 || 77 === _2_0) {
  118752. _1_0 = t1.charCodeAt(1);
  118753. $label2$2: {
  118754. if (97 === _1_0 || 65 === _1_0) {
  118755. t1 = (t1.charCodeAt(2) | 32) === 120 && t1.charCodeAt(3) === 40;
  118756. break $label2$2;
  118757. }
  118758. if (105 === _1_0 || 73 === _1_0) {
  118759. t1 = (t1.charCodeAt(2) | 32) === 110 && t1.charCodeAt(3) === 40;
  118760. break $label2$2;
  118761. }
  118762. t1 = t2;
  118763. break $label2$2;
  118764. }
  118765. break $label1$1;
  118766. }
  118767. t1 = t2;
  118768. break $label1$1;
  118769. }
  118770. return t1;
  118771. },
  118772. get$isVar() {
  118773. if (this._string0$_hasQuotes)
  118774. return false;
  118775. var t1 = this._string0$_text;
  118776. if (t1.length < 8)
  118777. return false;
  118778. return (t1.charCodeAt(0) | 32) === 118 && (t1.charCodeAt(1) | 32) === 97 && (t1.charCodeAt(2) | 32) === 114 && t1.charCodeAt(3) === 40;
  118779. },
  118780. get$isBlank() {
  118781. return !this._string0$_hasQuotes && this._string0$_text.length === 0;
  118782. },
  118783. assertQuoted$1($name) {
  118784. if (this._string0$_hasQuotes)
  118785. return;
  118786. throw A.wrapException(A.SassScriptException$0("Expected " + this.toString$0(0) + " to be a quoted string.", $name));
  118787. },
  118788. assertUnquoted$1($name) {
  118789. if (!this._string0$_hasQuotes)
  118790. return;
  118791. throw A.wrapException(A.SassScriptException$0("Expected " + this.toString$0(0) + " to be an unquoted string.", $name));
  118792. },
  118793. assertUnquoted$0() {
  118794. return this.assertUnquoted$1(null);
  118795. },
  118796. accept$1$1(visitor) {
  118797. var t1 = visitor._serialize0$_quote && this._string0$_hasQuotes,
  118798. t2 = this._string0$_text;
  118799. if (t1)
  118800. visitor._serialize0$_visitQuotedString$1(t2);
  118801. else
  118802. visitor._serialize0$_visitUnquotedString$1(t2);
  118803. return null;
  118804. },
  118805. accept$1(visitor) {
  118806. return this.accept$1$1(visitor, type$.dynamic);
  118807. },
  118808. assertString$1($name) {
  118809. return this;
  118810. },
  118811. plus$1(other) {
  118812. var t1 = this._string0$_text,
  118813. t2 = this._string0$_hasQuotes;
  118814. return other instanceof A.SassString0 ? new A.SassString0(t1 + other._string0$_text, t2) : new A.SassString0(t1 + A.serializeValue0(other, false, true), t2);
  118815. },
  118816. $eq(_, other) {
  118817. if (other == null)
  118818. return false;
  118819. return other instanceof A.SassString0 && this._string0$_text === other._string0$_text;
  118820. },
  118821. get$hashCode(_) {
  118822. var t1 = this._string0$_hashCache;
  118823. return t1 == null ? this._string0$_hashCache = B.JSString_methods.get$hashCode(this._string0$_text) : t1;
  118824. }
  118825. };
  118826. A.ModifiableCssStyleRule0.prototype = {
  118827. accept$1$1(visitor) {
  118828. return visitor.visitCssStyleRule$1(this);
  118829. },
  118830. accept$1(visitor) {
  118831. return this.accept$1$1(visitor, type$.dynamic);
  118832. },
  118833. equalsIgnoringChildren$1(other) {
  118834. var t1;
  118835. if (other instanceof A.ModifiableCssStyleRule0)
  118836. t1 = B.C_ListEquality.equals$2(0, other._style_rule0$_selector._box0$_inner.value.components, this._style_rule0$_selector._box0$_inner.value.components);
  118837. else
  118838. t1 = false;
  118839. return t1;
  118840. },
  118841. copyWithoutChildren$0() {
  118842. return A.ModifiableCssStyleRule$0(this._style_rule0$_selector, this.span, false, this.originalSelector);
  118843. },
  118844. $isCssStyleRule0: 1,
  118845. get$span(receiver) {
  118846. return this.span;
  118847. }
  118848. };
  118849. A.StyleRule0.prototype = {
  118850. accept$1$1(visitor) {
  118851. return visitor.visitStyleRule$1(0, this);
  118852. },
  118853. accept$1(visitor) {
  118854. return this.accept$1$1(visitor, type$.dynamic);
  118855. },
  118856. toString$0(_) {
  118857. var t1 = this.children;
  118858. return this.selector.toString$0(0) + " {" + (t1 && B.JSArray_methods).join$1(t1, " ") + "}";
  118859. },
  118860. get$span(receiver) {
  118861. return this.span;
  118862. }
  118863. };
  118864. A.CssStylesheet0.prototype = {
  118865. get$parent(_) {
  118866. return null;
  118867. },
  118868. get$isGroupEnd() {
  118869. return false;
  118870. },
  118871. get$isChildless() {
  118872. return false;
  118873. },
  118874. accept$1$1(visitor) {
  118875. return visitor.visitCssStylesheet$1(this);
  118876. },
  118877. accept$1(visitor) {
  118878. return this.accept$1$1(visitor, type$.dynamic);
  118879. },
  118880. get$children(receiver) {
  118881. return this.children;
  118882. },
  118883. get$span(receiver) {
  118884. return this.span;
  118885. }
  118886. };
  118887. A.ModifiableCssStylesheet0.prototype = {
  118888. accept$1$1(visitor) {
  118889. return visitor.visitCssStylesheet$1(this);
  118890. },
  118891. accept$1(visitor) {
  118892. return this.accept$1$1(visitor, type$.dynamic);
  118893. },
  118894. equalsIgnoringChildren$1(other) {
  118895. return other instanceof A.ModifiableCssStylesheet0;
  118896. },
  118897. copyWithoutChildren$0() {
  118898. return A.ModifiableCssStylesheet$0(this.span);
  118899. },
  118900. $isCssStylesheet0: 1,
  118901. get$span(receiver) {
  118902. return this.span;
  118903. }
  118904. };
  118905. A.StylesheetParser0.prototype = {
  118906. parse$0(_) {
  118907. return this.wrapSpanFormatException$1(new A.StylesheetParser_parse_closure0(this));
  118908. },
  118909. parseArgumentDeclaration$0() {
  118910. return this._stylesheet0$_parseSingleProduction$1$1(new A.StylesheetParser_parseArgumentDeclaration_closure0(this), type$.ArgumentDeclaration_2);
  118911. },
  118912. _stylesheet0$_parseSingleProduction$1$1(production, $T) {
  118913. return this.wrapSpanFormatException$1(new A.StylesheetParser__parseSingleProduction_closure0(this, production, $T));
  118914. },
  118915. parseSignature$1$requireParens(requireParens) {
  118916. return this.wrapSpanFormatException$1(new A.StylesheetParser_parseSignature_closure(this, requireParens));
  118917. },
  118918. _stylesheet0$_statement$1$root(root) {
  118919. var t2, _this = this,
  118920. t1 = _this.scanner,
  118921. _0_0 = t1.peekChar$0();
  118922. if (64 === _0_0)
  118923. return _this.atRule$2$root(new A.StylesheetParser__statement_closure0(_this), root);
  118924. if (43 === _0_0) {
  118925. if (!_this.get$indented() || !_this.lookingAtIdentifier$1(1))
  118926. return _this._stylesheet0$_styleRule$0();
  118927. _this._stylesheet0$_isUseAllowed = false;
  118928. t2 = t1._string_scanner$_position;
  118929. t1.readChar$0();
  118930. return _this._stylesheet0$_includeRule$1(new A._SpanScannerState(t1, t2));
  118931. }
  118932. if (61 === _0_0) {
  118933. if (!_this.get$indented())
  118934. return _this._stylesheet0$_styleRule$0();
  118935. _this._stylesheet0$_isUseAllowed = false;
  118936. t2 = t1._string_scanner$_position;
  118937. t1.readChar$0();
  118938. _this.whitespace$0();
  118939. return _this._stylesheet0$_mixinRule$1(new A._SpanScannerState(t1, t2));
  118940. }
  118941. if (125 === _0_0)
  118942. t1.error$2$length(0, 'unmatched "}".', 1);
  118943. return _this._stylesheet0$_inStyleRule || _this._stylesheet0$_inUnknownAtRule || _this._stylesheet0$_inMixin || _this._stylesheet0$_inContentBlock ? _this._stylesheet0$_declarationOrStyleRule$0() : _this._stylesheet0$_variableDeclarationOrStyleRule$0();
  118944. },
  118945. _stylesheet0$_statement$0() {
  118946. return this._stylesheet0$_statement$1$root(false);
  118947. },
  118948. variableDeclarationWithoutNamespace$2(namespace, start_) {
  118949. var t1, start, $name, t2, value, flagStart, t3, guarded, global, _0_0, endPosition, t4, t5, t6, declaration, _this = this,
  118950. precedingComment = _this.lastSilentComment;
  118951. _this.lastSilentComment = null;
  118952. if (start_ == null) {
  118953. t1 = _this.scanner;
  118954. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  118955. } else
  118956. start = start_;
  118957. $name = _this.variableName$0();
  118958. t1 = namespace != null;
  118959. if (t1)
  118960. _this._stylesheet0$_assertPublic$2($name, new A.StylesheetParser_variableDeclarationWithoutNamespace_closure1(_this, start));
  118961. if (_this.get$plainCss())
  118962. _this.error$2(0, string$.Sassx20v, _this.scanner.spanFrom$1(start));
  118963. _this.whitespace$0();
  118964. t2 = _this.scanner;
  118965. t2.expectChar$1(58);
  118966. _this.whitespace$0();
  118967. value = _this._stylesheet0$_expression$0();
  118968. flagStart = new A._SpanScannerState(t2, t2._string_scanner$_position);
  118969. for (t3 = _this.warnings, guarded = false, global = false; t2.scanChar$1(33);) {
  118970. $label0$0: {
  118971. _0_0 = _this.identifier$0();
  118972. if ("default" === _0_0) {
  118973. if (guarded) {
  118974. endPosition = t2._string_scanner$_position;
  118975. t4 = t2._sourceFile;
  118976. t5 = flagStart.position;
  118977. t6 = new A._FileSpan(t4, t5, endPosition);
  118978. t6._FileSpan$3(t4, t5, endPosition);
  118979. t3.push(new A._Record_3_deprecation_message_span(B.Deprecation_VqL, string$.x21defau, t6));
  118980. }
  118981. guarded = true;
  118982. break $label0$0;
  118983. }
  118984. if ("global" === _0_0) {
  118985. if (t1) {
  118986. endPosition = t2._string_scanner$_position;
  118987. t4 = t2._sourceFile;
  118988. t5 = flagStart.position;
  118989. t6 = new A._FileSpan(t4, t5, endPosition);
  118990. t6._FileSpan$3(t4, t5, endPosition);
  118991. _this.error$2(0, string$.x21globai, t6);
  118992. } else if (global) {
  118993. endPosition = t2._string_scanner$_position;
  118994. t4 = t2._sourceFile;
  118995. t5 = flagStart.position;
  118996. t6 = new A._FileSpan(t4, t5, endPosition);
  118997. t6._FileSpan$3(t4, t5, endPosition);
  118998. t3.push(new A._Record_3_deprecation_message_span(B.Deprecation_VqL, string$.x21globas, t6));
  118999. }
  119000. global = true;
  119001. break $label0$0;
  119002. }
  119003. endPosition = t2._string_scanner$_position;
  119004. t4 = t2._sourceFile;
  119005. t5 = flagStart.position;
  119006. t6 = new A._FileSpan(t4, t5, endPosition);
  119007. t6._FileSpan$3(t4, t5, endPosition);
  119008. _this.error$2(0, "Invalid flag name.", t6);
  119009. }
  119010. _this.whitespace$0();
  119011. flagStart = new A._SpanScannerState(t2, t2._string_scanner$_position);
  119012. }
  119013. _this.expectStatementSeparator$1("variable declaration");
  119014. declaration = A.VariableDeclaration$0($name, value, t2.spanFrom$1(start), precedingComment, global, guarded, namespace);
  119015. if (global)
  119016. _this._stylesheet0$_globalVariables.putIfAbsent$2($name, new A.StylesheetParser_variableDeclarationWithoutNamespace_closure2(declaration));
  119017. return declaration;
  119018. },
  119019. variableDeclarationWithoutNamespace$0() {
  119020. return this.variableDeclarationWithoutNamespace$2(null, null);
  119021. },
  119022. _stylesheet0$_variableDeclarationOrStyleRule$0() {
  119023. var t1, t2, variableOrInterpolation, t3, _this = this;
  119024. if (_this.get$plainCss())
  119025. return _this._stylesheet0$_styleRule$0();
  119026. if (_this.get$indented() && _this.scanner.scanChar$1(92))
  119027. return _this._stylesheet0$_styleRule$0();
  119028. if (!_this.lookingAtIdentifier$0())
  119029. return _this._stylesheet0$_styleRule$0();
  119030. t1 = _this.scanner;
  119031. t2 = t1._string_scanner$_position;
  119032. variableOrInterpolation = _this._stylesheet0$_variableDeclarationOrInterpolation$0();
  119033. if (variableOrInterpolation instanceof A.VariableDeclaration0)
  119034. t1 = variableOrInterpolation;
  119035. else {
  119036. t3 = new A.InterpolationBuffer0(new A.StringBuffer(""), A._setArrayType([], type$.JSArray_Object), A._setArrayType([], type$.JSArray_nullable_FileSpan));
  119037. t3.addInterpolation$1(type$.Interpolation_2._as(variableOrInterpolation));
  119038. t2 = _this._stylesheet0$_styleRule$2(t3, new A._SpanScannerState(t1, t2));
  119039. t1 = t2;
  119040. }
  119041. return t1;
  119042. },
  119043. _stylesheet0$_declarationOrStyleRule$0() {
  119044. var t1, t2, declarationOrBuffer, _this = this;
  119045. if (_this.get$indented() && _this.scanner.scanChar$1(92))
  119046. return _this._stylesheet0$_styleRule$0();
  119047. t1 = _this.scanner;
  119048. t2 = t1._string_scanner$_position;
  119049. declarationOrBuffer = _this._stylesheet0$_declarationOrBuffer$0();
  119050. return declarationOrBuffer instanceof A.Statement0 ? declarationOrBuffer : _this._stylesheet0$_styleRule$2(type$.InterpolationBuffer_2._as(declarationOrBuffer), new A._SpanScannerState(t1, t2));
  119051. },
  119052. _stylesheet0$_declarationOrBuffer$0() {
  119053. var midBuffer, couldBeSelector, beforeDeclaration, value, additional, t2, t3, variableOrInterpolation, t4, t5, $name, postColonWhitespace, _0_0, exception, _1_0, _this = this,
  119054. t1 = _this.scanner,
  119055. start = new A._SpanScannerState(t1, t1._string_scanner$_position),
  119056. nameBuffer = new A.InterpolationBuffer0(new A.StringBuffer(""), A._setArrayType([], type$.JSArray_Object), A._setArrayType([], type$.JSArray_nullable_FileSpan)),
  119057. startsWithPunctuation = _this._stylesheet0$_lookingAtPotentialPropertyHack$0();
  119058. if (startsWithPunctuation) {
  119059. t2 = t1.readChar$0();
  119060. t3 = nameBuffer._interpolation_buffer0$_text;
  119061. t2 = A.Primitives_stringFromCharCode(t2);
  119062. t3._contents += t2;
  119063. t2 = _this.rawText$1(_this.get$whitespace());
  119064. t3 = nameBuffer._interpolation_buffer0$_text;
  119065. t3._contents += t2;
  119066. }
  119067. if (!_this._stylesheet0$_lookingAtInterpolatedIdentifier$0())
  119068. return nameBuffer;
  119069. variableOrInterpolation = startsWithPunctuation ? _this.interpolatedIdentifier$0() : _this._stylesheet0$_variableDeclarationOrInterpolation$0();
  119070. if (variableOrInterpolation instanceof A.VariableDeclaration0)
  119071. return variableOrInterpolation;
  119072. else
  119073. nameBuffer.addInterpolation$1(type$.Interpolation_2._as(variableOrInterpolation));
  119074. _this._stylesheet0$_isUseAllowed = false;
  119075. if (t1.matches$1("/*")) {
  119076. t2 = _this.rawText$1(_this.get$loudComment());
  119077. t3 = nameBuffer._interpolation_buffer0$_text;
  119078. t3._contents += t2;
  119079. }
  119080. midBuffer = new A.StringBuffer("");
  119081. t2 = midBuffer;
  119082. t3 = _this.get$whitespace();
  119083. t4 = _this.rawText$1(t3);
  119084. t2._contents += t4;
  119085. t4 = t1._string_scanner$_position;
  119086. if (!t1.scanChar$1(58)) {
  119087. if (midBuffer._contents.length !== 0) {
  119088. t1 = nameBuffer._interpolation_buffer0$_text;
  119089. t2 = A.Primitives_stringFromCharCode(32);
  119090. t1._contents += t2;
  119091. }
  119092. return nameBuffer;
  119093. }
  119094. t2 = midBuffer;
  119095. t5 = A.Primitives_stringFromCharCode(58);
  119096. t2._contents += t5;
  119097. $name = nameBuffer.interpolation$1(t1.spanFrom$2(start, new A._SpanScannerState(t1, t4)));
  119098. if (B.JSString_methods.startsWith$1($name.get$initialPlain(), "--")) {
  119099. t2 = _this._stylesheet0$_interpolatedDeclarationValue$1$silentComments(false);
  119100. _this.expectStatementSeparator$1("custom property");
  119101. return A.Declaration$0($name, new A.StringExpression0(t2, false), t1.spanFrom$1(start));
  119102. }
  119103. if (t1.scanChar$1(58)) {
  119104. t1 = nameBuffer;
  119105. t2 = t1._interpolation_buffer0$_text;
  119106. t3 = A.S(midBuffer);
  119107. t2._contents += t3;
  119108. t3 = A.Primitives_stringFromCharCode(58);
  119109. t2._contents += t3;
  119110. return t1;
  119111. } else if (_this.get$indented() && _this._stylesheet0$_lookingAtInterpolatedIdentifier$0()) {
  119112. t1 = nameBuffer;
  119113. t2 = t1._interpolation_buffer0$_text;
  119114. t3 = A.S(midBuffer);
  119115. t2._contents += t3;
  119116. return t1;
  119117. }
  119118. postColonWhitespace = _this.rawText$1(t3);
  119119. _0_0 = _this._stylesheet0$_tryDeclarationChildren$2($name, start);
  119120. if (_0_0 != null)
  119121. return _0_0;
  119122. midBuffer._contents += postColonWhitespace;
  119123. couldBeSelector = postColonWhitespace.length === 0 && _this._stylesheet0$_lookingAtInterpolatedIdentifier$0();
  119124. beforeDeclaration = new A._SpanScannerState(t1, t1._string_scanner$_position);
  119125. value = null;
  119126. try {
  119127. value = _this._stylesheet0$_expression$0();
  119128. if (_this.lookingAtChildren$0()) {
  119129. if (couldBeSelector)
  119130. _this.expectStatementSeparator$0();
  119131. } else if (!_this.atEndOfStatement$0())
  119132. _this.expectStatementSeparator$0();
  119133. } catch (exception) {
  119134. if (type$.FormatException._is(A.unwrapException(exception))) {
  119135. if (!couldBeSelector)
  119136. throw exception;
  119137. t1.set$state(beforeDeclaration);
  119138. additional = _this.almostAnyValue$0();
  119139. if (!_this.get$indented() && t1.peekChar$0() === 59)
  119140. throw exception;
  119141. t1 = nameBuffer._interpolation_buffer0$_text;
  119142. t2 = A.S(midBuffer);
  119143. t1._contents += t2;
  119144. nameBuffer.addInterpolation$1(additional);
  119145. return nameBuffer;
  119146. } else
  119147. throw exception;
  119148. }
  119149. _1_0 = _this._stylesheet0$_tryDeclarationChildren$3$value($name, start, value);
  119150. if (_1_0 != null)
  119151. return _1_0;
  119152. else {
  119153. _this.expectStatementSeparator$0();
  119154. return A.Declaration$0($name, value, t1.spanFrom$1(start));
  119155. }
  119156. },
  119157. _stylesheet0$_variableDeclarationOrInterpolation$0() {
  119158. var t1, start, identifier, t2, buffer, _this = this;
  119159. if (!_this.lookingAtIdentifier$0())
  119160. return _this.interpolatedIdentifier$0();
  119161. t1 = _this.scanner;
  119162. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  119163. identifier = _this.identifier$0();
  119164. if (t1.matches$1(".$")) {
  119165. t1.readChar$0();
  119166. return _this.variableDeclarationWithoutNamespace$2(identifier, start);
  119167. } else {
  119168. t2 = new A.StringBuffer("");
  119169. buffer = new A.InterpolationBuffer0(t2, A._setArrayType([], type$.JSArray_Object), A._setArrayType([], type$.JSArray_nullable_FileSpan));
  119170. t2._contents = "" + identifier;
  119171. if (_this._stylesheet0$_lookingAtInterpolatedIdentifierBody$0())
  119172. buffer.addInterpolation$1(_this.interpolatedIdentifier$0());
  119173. return buffer.interpolation$1(t1.spanFrom$1(start));
  119174. }
  119175. },
  119176. _stylesheet0$_styleRule$2(buffer, start_) {
  119177. var t2, start, interpolation, wasInStyleRule, _this = this, t1 = {};
  119178. _this._stylesheet0$_isUseAllowed = false;
  119179. if (start_ == null) {
  119180. t2 = _this.scanner;
  119181. start = new A._SpanScannerState(t2, t2._string_scanner$_position);
  119182. } else
  119183. start = start_;
  119184. interpolation = t1.interpolation = _this.styleRuleSelector$0();
  119185. if (buffer != null) {
  119186. buffer.addInterpolation$1(interpolation);
  119187. t2 = t1.interpolation = buffer.interpolation$1(_this.scanner.spanFrom$1(start));
  119188. } else
  119189. t2 = interpolation;
  119190. if (t2.contents.length === 0)
  119191. _this.scanner.error$1(0, 'expected "}".');
  119192. wasInStyleRule = _this._stylesheet0$_inStyleRule;
  119193. _this._stylesheet0$_inStyleRule = true;
  119194. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new A.StylesheetParser__styleRule_closure0(t1, _this, wasInStyleRule, start));
  119195. },
  119196. _stylesheet0$_styleRule$0() {
  119197. return this._stylesheet0$_styleRule$2(null, null);
  119198. },
  119199. _stylesheet0$_propertyOrVariableDeclaration$1$parseCustomProperties(parseCustomProperties) {
  119200. var t2, nameBuffer, t3, $name, variableOrInterpolation, _0_0, value, _1_0, _this = this,
  119201. t1 = _this.scanner,
  119202. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  119203. if (_this._stylesheet0$_lookingAtPotentialPropertyHack$0()) {
  119204. t2 = new A.StringBuffer("");
  119205. nameBuffer = new A.InterpolationBuffer0(t2, A._setArrayType([], type$.JSArray_Object), A._setArrayType([], type$.JSArray_nullable_FileSpan));
  119206. t3 = A.Primitives_stringFromCharCode(t1.readChar$0());
  119207. t2._contents += t3;
  119208. t3 = _this.rawText$1(_this.get$whitespace());
  119209. t2._contents += t3;
  119210. nameBuffer.addInterpolation$1(_this.interpolatedIdentifier$0());
  119211. $name = nameBuffer.interpolation$1(t1.spanFrom$1(start));
  119212. } else if (!_this.get$plainCss()) {
  119213. variableOrInterpolation = _this._stylesheet0$_variableDeclarationOrInterpolation$0();
  119214. if (variableOrInterpolation instanceof A.VariableDeclaration0)
  119215. return variableOrInterpolation;
  119216. else
  119217. type$.Interpolation_2._as(variableOrInterpolation);
  119218. $name = variableOrInterpolation;
  119219. } else
  119220. $name = _this.interpolatedIdentifier$0();
  119221. _this.whitespace$0();
  119222. t1.expectChar$1(58);
  119223. _this.whitespace$0();
  119224. _0_0 = _this._stylesheet0$_tryDeclarationChildren$2($name, start);
  119225. if (_0_0 != null)
  119226. return _0_0;
  119227. value = _this._stylesheet0$_expression$0();
  119228. _1_0 = _this._stylesheet0$_tryDeclarationChildren$3$value($name, start, value);
  119229. if (_1_0 != null)
  119230. return _1_0;
  119231. else {
  119232. _this.expectStatementSeparator$0();
  119233. return A.Declaration$0($name, value, t1.spanFrom$1(start));
  119234. }
  119235. },
  119236. _stylesheet0$_tryDeclarationChildren$3$value($name, start, value) {
  119237. var _this = this;
  119238. if (!_this.lookingAtChildren$0())
  119239. return null;
  119240. if (_this.get$plainCss())
  119241. _this.scanner.error$1(0, string$.Nested);
  119242. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_declarationChild(), start, new A.StylesheetParser__tryDeclarationChildren_closure0($name, value));
  119243. },
  119244. _stylesheet0$_tryDeclarationChildren$2($name, start) {
  119245. return this._stylesheet0$_tryDeclarationChildren$3$value($name, start, null);
  119246. },
  119247. _stylesheet0$_declarationChild$0() {
  119248. return this.scanner.peekChar$0() === 64 ? this._stylesheet0$_declarationAtRule$0() : this._stylesheet0$_propertyOrVariableDeclaration$1$parseCustomProperties(false);
  119249. },
  119250. atRule$2$root(child, root) {
  119251. var $name, wasUseAllowed, value, optional, url, namespace, configuration, span, _this = this,
  119252. t1 = _this.scanner,
  119253. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  119254. t1.expectChar$2$name(64, "@-rule");
  119255. $name = _this.interpolatedIdentifier$0();
  119256. _this.whitespace$0();
  119257. wasUseAllowed = _this._stylesheet0$_isUseAllowed;
  119258. _this._stylesheet0$_isUseAllowed = false;
  119259. switch ($name.get$asPlain()) {
  119260. case "at-root":
  119261. return _this._stylesheet0$_atRootRule$1(start);
  119262. case "content":
  119263. return _this._stylesheet0$_contentRule$1(start);
  119264. case "debug":
  119265. return _this._stylesheet0$_debugRule$1(start);
  119266. case "each":
  119267. return _this._stylesheet0$_eachRule$2(start, child);
  119268. case "else":
  119269. return _this._stylesheet0$_disallowedAtRule$1(start);
  119270. case "error":
  119271. return _this._stylesheet0$_errorRule$1(start);
  119272. case "extend":
  119273. if (!_this._stylesheet0$_inStyleRule && !_this._stylesheet0$_inMixin && !_this._stylesheet0$_inContentBlock)
  119274. _this.error$2(0, string$.x40exten, t1.spanFrom$1(start));
  119275. value = _this.almostAnyValue$0();
  119276. optional = t1.scanChar$1(33);
  119277. if (optional) {
  119278. _this.expectIdentifier$1("optional");
  119279. _this.whitespace$0();
  119280. }
  119281. _this.expectStatementSeparator$1("@extend rule");
  119282. return new A.ExtendRule0(value, optional, t1.spanFrom$1(start));
  119283. case "for":
  119284. return _this._stylesheet0$_forRule$2(start, child);
  119285. case "forward":
  119286. _this._stylesheet0$_isUseAllowed = wasUseAllowed;
  119287. if (!root)
  119288. _this._stylesheet0$_disallowedAtRule$1(start);
  119289. return _this._stylesheet0$_forwardRule$1(start);
  119290. case "function":
  119291. return _this._stylesheet0$_functionRule$1(start);
  119292. case "if":
  119293. return _this._stylesheet0$_ifRule$2(start, child);
  119294. case "import":
  119295. return _this._stylesheet0$_importRule$1(start);
  119296. case "include":
  119297. return _this._stylesheet0$_includeRule$1(start);
  119298. case "media":
  119299. return _this.mediaRule$1(start);
  119300. case "mixin":
  119301. return _this._stylesheet0$_mixinRule$1(start);
  119302. case "-moz-document":
  119303. return _this.mozDocumentRule$2(start, $name);
  119304. case "return":
  119305. return _this._stylesheet0$_disallowedAtRule$1(start);
  119306. case "supports":
  119307. return _this.supportsRule$1(start);
  119308. case "use":
  119309. _this._stylesheet0$_isUseAllowed = wasUseAllowed;
  119310. if (!root)
  119311. _this._stylesheet0$_disallowedAtRule$1(start);
  119312. url = _this._stylesheet0$_urlString$0();
  119313. _this.whitespace$0();
  119314. namespace = _this._stylesheet0$_useNamespace$2(url, start);
  119315. _this.whitespace$0();
  119316. configuration = _this._stylesheet0$_configuration$0();
  119317. _this.whitespace$0();
  119318. span = t1.spanFrom$1(start);
  119319. if (!_this._stylesheet0$_isUseAllowed)
  119320. _this.error$2(0, string$.x40use_r, span);
  119321. _this.expectStatementSeparator$1("@use rule");
  119322. t1 = new A.UseRule0(url, namespace, configuration == null ? B.List_empty22 : A.List_List$unmodifiable(configuration, type$.ConfiguredVariable_2), span);
  119323. t1.UseRule$4$configuration0(url, namespace, span, configuration);
  119324. return t1;
  119325. case "warn":
  119326. return _this._stylesheet0$_warnRule$1(start);
  119327. case "while":
  119328. return _this._stylesheet0$_whileRule$2(start, child);
  119329. default:
  119330. return _this.unknownAtRule$2(start, $name);
  119331. }
  119332. },
  119333. _stylesheet0$_declarationAtRule$0() {
  119334. var _this = this,
  119335. t1 = _this.scanner,
  119336. start = new A._SpanScannerState(t1, t1._string_scanner$_position),
  119337. _0_0 = _this._stylesheet0$_plainAtRuleName$0();
  119338. $label0$0: {
  119339. if ("content" === _0_0) {
  119340. t1 = _this._stylesheet0$_contentRule$1(start);
  119341. break $label0$0;
  119342. }
  119343. if ("debug" === _0_0) {
  119344. t1 = _this._stylesheet0$_debugRule$1(start);
  119345. break $label0$0;
  119346. }
  119347. if ("each" === _0_0) {
  119348. t1 = _this._stylesheet0$_eachRule$2(start, _this.get$_stylesheet0$_declarationChild());
  119349. break $label0$0;
  119350. }
  119351. if ("else" === _0_0)
  119352. _this._stylesheet0$_disallowedAtRule$1(start);
  119353. if ("error" === _0_0) {
  119354. t1 = _this._stylesheet0$_errorRule$1(start);
  119355. break $label0$0;
  119356. }
  119357. if ("for" === _0_0) {
  119358. t1 = _this._stylesheet0$_forRule$2(start, _this.get$_stylesheet0$_declarationChild());
  119359. break $label0$0;
  119360. }
  119361. if ("if" === _0_0) {
  119362. t1 = _this._stylesheet0$_ifRule$2(start, _this.get$_stylesheet0$_declarationChild());
  119363. break $label0$0;
  119364. }
  119365. if ("include" === _0_0) {
  119366. t1 = _this._stylesheet0$_includeRule$1(start);
  119367. break $label0$0;
  119368. }
  119369. if ("warn" === _0_0) {
  119370. t1 = _this._stylesheet0$_warnRule$1(start);
  119371. break $label0$0;
  119372. }
  119373. if ("while" === _0_0) {
  119374. t1 = _this._stylesheet0$_whileRule$2(start, _this.get$_stylesheet0$_declarationChild());
  119375. break $label0$0;
  119376. }
  119377. t1 = _this._stylesheet0$_disallowedAtRule$1(start);
  119378. }
  119379. return t1;
  119380. },
  119381. _stylesheet0$_functionChild$0() {
  119382. var state, variableDeclarationError, stackTrace, statement, t2, namespace, exception, t3, start, _0_0, value, _this = this,
  119383. t1 = _this.scanner;
  119384. if (t1.peekChar$0() !== 64) {
  119385. t2 = t1._string_scanner$_position;
  119386. state = new A._SpanScannerState(t1, t2);
  119387. try {
  119388. namespace = _this.identifier$0();
  119389. t1.expectChar$1(46);
  119390. t2 = _this.variableDeclarationWithoutNamespace$2(namespace, new A._SpanScannerState(t1, t2));
  119391. return t2;
  119392. } catch (exception) {
  119393. t2 = A.unwrapException(exception);
  119394. t3 = type$.SourceSpanFormatException;
  119395. if (t3._is(t2)) {
  119396. variableDeclarationError = t2;
  119397. stackTrace = A.getTraceFromException(exception);
  119398. t1.set$state(state);
  119399. statement = null;
  119400. try {
  119401. statement = _this._stylesheet0$_declarationOrStyleRule$0();
  119402. } catch (exception) {
  119403. if (t3._is(A.unwrapException(exception)))
  119404. throw A.wrapException(variableDeclarationError);
  119405. else
  119406. throw exception;
  119407. }
  119408. t2 = statement instanceof A.StyleRule0 ? "style rules" : "declarations";
  119409. _this.error$3(0, "@function rules may not contain " + t2 + ".", J.get$span$z(statement), stackTrace);
  119410. } else
  119411. throw exception;
  119412. }
  119413. }
  119414. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  119415. _0_0 = _this._stylesheet0$_plainAtRuleName$0();
  119416. $label0$0: {
  119417. if ("debug" === _0_0) {
  119418. t1 = _this._stylesheet0$_debugRule$1(start);
  119419. break $label0$0;
  119420. }
  119421. if ("each" === _0_0) {
  119422. t1 = _this._stylesheet0$_eachRule$2(start, _this.get$_stylesheet0$_functionChild());
  119423. break $label0$0;
  119424. }
  119425. if ("else" === _0_0)
  119426. _this._stylesheet0$_disallowedAtRule$1(start);
  119427. if ("error" === _0_0) {
  119428. t1 = _this._stylesheet0$_errorRule$1(start);
  119429. break $label0$0;
  119430. }
  119431. if ("for" === _0_0) {
  119432. t1 = _this._stylesheet0$_forRule$2(start, _this.get$_stylesheet0$_functionChild());
  119433. break $label0$0;
  119434. }
  119435. if ("if" === _0_0) {
  119436. t1 = _this._stylesheet0$_ifRule$2(start, _this.get$_stylesheet0$_functionChild());
  119437. break $label0$0;
  119438. }
  119439. if ("return" === _0_0) {
  119440. value = _this._stylesheet0$_expression$0();
  119441. _this.expectStatementSeparator$1("@return rule");
  119442. t1 = new A.ReturnRule0(value, t1.spanFrom$1(start));
  119443. break $label0$0;
  119444. }
  119445. if ("warn" === _0_0) {
  119446. t1 = _this._stylesheet0$_warnRule$1(start);
  119447. break $label0$0;
  119448. }
  119449. if ("while" === _0_0) {
  119450. t1 = _this._stylesheet0$_whileRule$2(start, _this.get$_stylesheet0$_functionChild());
  119451. break $label0$0;
  119452. }
  119453. t1 = _this._stylesheet0$_disallowedAtRule$1(start);
  119454. }
  119455. return t1;
  119456. },
  119457. _stylesheet0$_plainAtRuleName$0() {
  119458. this.scanner.expectChar$2$name(64, "@-rule");
  119459. var $name = this.identifier$0();
  119460. this.whitespace$0();
  119461. return $name;
  119462. },
  119463. _stylesheet0$_atRootRule$1(start) {
  119464. var t2, t3, buffer, t4, query, _this = this,
  119465. t1 = _this.scanner;
  119466. if (t1.peekChar$0() === 40) {
  119467. t2 = t1._string_scanner$_position;
  119468. t3 = new A.StringBuffer("");
  119469. buffer = new A.InterpolationBuffer0(t3, A._setArrayType([], type$.JSArray_Object), A._setArrayType([], type$.JSArray_nullable_FileSpan));
  119470. t1.expectChar$1(40);
  119471. t4 = A.Primitives_stringFromCharCode(40);
  119472. t3._contents += t4;
  119473. _this.whitespace$0();
  119474. _this._stylesheet0$_addOrInject$2(buffer, _this._stylesheet0$_expression$0());
  119475. if (t1.scanChar$1(58)) {
  119476. _this.whitespace$0();
  119477. t4 = A.Primitives_stringFromCharCode(58);
  119478. t3._contents += t4;
  119479. t4 = A.Primitives_stringFromCharCode(32);
  119480. t3._contents += t4;
  119481. _this._stylesheet0$_addOrInject$2(buffer, _this._stylesheet0$_expression$0());
  119482. }
  119483. t1.expectChar$1(41);
  119484. _this.whitespace$0();
  119485. t4 = A.Primitives_stringFromCharCode(41);
  119486. t3._contents += t4;
  119487. query = buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  119488. _this.whitespace$0();
  119489. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new A.StylesheetParser__atRootRule_closure1(query));
  119490. } else {
  119491. if (!_this.lookingAtChildren$0())
  119492. t2 = _this.get$indented() && _this.atEndOfStatement$0();
  119493. else
  119494. t2 = true;
  119495. if (t2)
  119496. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new A.StylesheetParser__atRootRule_closure2());
  119497. else
  119498. return A.AtRootRule$0(A._setArrayType([_this._stylesheet0$_styleRule$0()], type$.JSArray_Statement_2), t1.spanFrom$1(start), null);
  119499. }
  119500. },
  119501. _stylesheet0$_contentRule$1(start) {
  119502. var t1, beforeWhitespace, $arguments, t2, _this = this;
  119503. if (!_this._stylesheet0$_inMixin)
  119504. _this.error$2(0, string$.x40conte, _this.scanner.spanFrom$1(start));
  119505. t1 = _this.scanner;
  119506. beforeWhitespace = A.FileLocation$_(t1._sourceFile, t1._string_scanner$_position);
  119507. _this.whitespace$0();
  119508. if (t1.peekChar$0() === 40) {
  119509. $arguments = _this._stylesheet0$_argumentInvocation$1$mixin(true);
  119510. _this.whitespace$0();
  119511. } else {
  119512. t2 = beforeWhitespace.offset;
  119513. $arguments = A.ArgumentInvocation$empty0(A._FileSpan$(beforeWhitespace.file, t2, t2));
  119514. }
  119515. _this.expectStatementSeparator$1("@content rule");
  119516. return new A.ContentRule0($arguments, t1.spanFrom$1(start));
  119517. },
  119518. _stylesheet0$_debugRule$1(start) {
  119519. var value = this._stylesheet0$_expression$0();
  119520. this.expectStatementSeparator$1("@debug rule");
  119521. return new A.DebugRule0(value, this.scanner.spanFrom$1(start));
  119522. },
  119523. _stylesheet0$_eachRule$2(start, child) {
  119524. var variables, t1, _this = this,
  119525. wasInControlDirective = _this._stylesheet0$_inControlDirective;
  119526. _this._stylesheet0$_inControlDirective = true;
  119527. variables = A._setArrayType([_this.variableName$0()], type$.JSArray_String);
  119528. _this.whitespace$0();
  119529. for (t1 = _this.scanner; t1.scanChar$1(44);) {
  119530. _this.whitespace$0();
  119531. t1.expectChar$1(36);
  119532. variables.push(_this.identifier$1$normalize(true));
  119533. _this.whitespace$0();
  119534. }
  119535. _this.expectIdentifier$1("in");
  119536. _this.whitespace$0();
  119537. return _this._stylesheet0$_withChildren$3(child, start, new A.StylesheetParser__eachRule_closure0(_this, wasInControlDirective, variables, _this._stylesheet0$_expression$0()));
  119538. },
  119539. _stylesheet0$_errorRule$1(start) {
  119540. var value = this._stylesheet0$_expression$0();
  119541. this.expectStatementSeparator$1("@error rule");
  119542. return new A.ErrorRule0(value, this.scanner.spanFrom$1(start));
  119543. },
  119544. _stylesheet0$_functionRule$1(start) {
  119545. var t1, t2, $name, $arguments, _0_0, _this = this,
  119546. precedingComment = _this.lastSilentComment;
  119547. _this.lastSilentComment = null;
  119548. t1 = _this.scanner;
  119549. t2 = t1._string_scanner$_position;
  119550. $name = _this.identifier$0();
  119551. if (B.JSString_methods.startsWith$1($name, "--"))
  119552. _this.warnings.push(new A._Record_3_deprecation_message_span(B.Deprecation_omC, string$.Sassx20_fm, t1.spanFrom$1(new A._SpanScannerState(t1, t2))));
  119553. _this.whitespace$0();
  119554. $arguments = _this._stylesheet0$_argumentDeclaration$0();
  119555. if (_this._stylesheet0$_inMixin || _this._stylesheet0$_inContentBlock)
  119556. _this.error$2(0, string$.Mixinscf, t1.spanFrom$1(start));
  119557. else if (_this._stylesheet0$_inControlDirective)
  119558. _this.error$2(0, string$.Functi, t1.spanFrom$1(start));
  119559. _0_0 = A.unvendor0($name);
  119560. if ("calc" === _0_0 || "element" === _0_0 || "expression" === _0_0 || "url" === _0_0 || "and" === _0_0 || "or" === _0_0 || "not" === _0_0 || "clamp" === _0_0)
  119561. _this.error$2(0, "Invalid function name.", t1.spanFrom$1(start));
  119562. _this.whitespace$0();
  119563. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_functionChild(), start, new A.StylesheetParser__functionRule_closure0($name, $arguments, precedingComment));
  119564. },
  119565. _stylesheet0$_forRule$2(start, child) {
  119566. var variable, from, _this = this, t1 = {},
  119567. wasInControlDirective = _this._stylesheet0$_inControlDirective;
  119568. _this._stylesheet0$_inControlDirective = true;
  119569. variable = _this.variableName$0();
  119570. _this.whitespace$0();
  119571. _this.expectIdentifier$1("from");
  119572. _this.whitespace$0();
  119573. t1.exclusive = null;
  119574. from = _this._stylesheet0$_expression$1$until(new A.StylesheetParser__forRule_closure1(t1, _this));
  119575. if (t1.exclusive == null)
  119576. _this.scanner.error$1(0, 'Expected "to" or "through".');
  119577. _this.whitespace$0();
  119578. return _this._stylesheet0$_withChildren$3(child, start, new A.StylesheetParser__forRule_closure2(t1, _this, wasInControlDirective, variable, from, _this._stylesheet0$_expression$0()));
  119579. },
  119580. _stylesheet0$_forwardRule$1(start) {
  119581. var prefix, hiddenMixinsAndFunctions, hiddenVariables, _0_0, shownMixinsAndFunctions, shownVariables, _1_0, configuration, span, t1, t2, t3, t4, _this = this, _null = null,
  119582. url = _this._stylesheet0$_urlString$0();
  119583. _this.whitespace$0();
  119584. if (_this.scanIdentifier$1("as")) {
  119585. _this.whitespace$0();
  119586. prefix = _this.identifier$1$normalize(true);
  119587. _this.scanner.expectChar$1(42);
  119588. _this.whitespace$0();
  119589. } else
  119590. prefix = _null;
  119591. hiddenMixinsAndFunctions = _null;
  119592. hiddenVariables = _null;
  119593. if (_this.scanIdentifier$1("show")) {
  119594. _0_0 = _this._stylesheet0$_memberList$0();
  119595. shownMixinsAndFunctions = _0_0._0;
  119596. shownVariables = _0_0._1;
  119597. } else {
  119598. if (_this.scanIdentifier$1("hide")) {
  119599. _1_0 = _this._stylesheet0$_memberList$0();
  119600. hiddenMixinsAndFunctions = _1_0._0;
  119601. hiddenVariables = _1_0._1;
  119602. }
  119603. shownVariables = _null;
  119604. shownMixinsAndFunctions = shownVariables;
  119605. }
  119606. configuration = _this._stylesheet0$_configuration$1$allowGuarded(true);
  119607. _this.whitespace$0();
  119608. _this.expectStatementSeparator$1("@forward rule");
  119609. span = _this.scanner.spanFrom$1(start);
  119610. if (!_this._stylesheet0$_isUseAllowed)
  119611. _this.error$2(0, string$.x40forwa, span);
  119612. if (shownMixinsAndFunctions != null) {
  119613. shownVariables.toString;
  119614. t1 = type$.String;
  119615. t2 = A.LinkedHashSet_LinkedHashSet$of(shownMixinsAndFunctions, t1);
  119616. t3 = type$.UnmodifiableSetView_String;
  119617. t1 = A.LinkedHashSet_LinkedHashSet$of(shownVariables, t1);
  119618. t4 = configuration == null ? B.List_empty22 : A.List_List$unmodifiable(configuration, type$.ConfiguredVariable_2);
  119619. return new A.ForwardRule0(url, new A.UnmodifiableSetView0(t2, t3), new A.UnmodifiableSetView0(t1, t3), _null, _null, prefix, t4, span);
  119620. } else if (hiddenMixinsAndFunctions != null) {
  119621. hiddenVariables.toString;
  119622. t1 = type$.String;
  119623. t2 = A.LinkedHashSet_LinkedHashSet$of(hiddenMixinsAndFunctions, t1);
  119624. t3 = type$.UnmodifiableSetView_String;
  119625. t1 = A.LinkedHashSet_LinkedHashSet$of(hiddenVariables, t1);
  119626. t4 = configuration == null ? B.List_empty22 : A.List_List$unmodifiable(configuration, type$.ConfiguredVariable_2);
  119627. return new A.ForwardRule0(url, _null, _null, new A.UnmodifiableSetView0(t2, t3), new A.UnmodifiableSetView0(t1, t3), prefix, t4, span);
  119628. } else
  119629. return new A.ForwardRule0(url, _null, _null, _null, _null, prefix, configuration == null ? B.List_empty22 : A.List_List$unmodifiable(configuration, type$.ConfiguredVariable_2), span);
  119630. },
  119631. _stylesheet0$_memberList$0() {
  119632. var _this = this,
  119633. t1 = type$.String,
  119634. identifiers = A.LinkedHashSet_LinkedHashSet$_empty(t1),
  119635. variables = A.LinkedHashSet_LinkedHashSet$_empty(t1);
  119636. t1 = _this.scanner;
  119637. do {
  119638. _this.whitespace$0();
  119639. _this.withErrorMessage$2(string$.Expectv, new A.StylesheetParser__memberList_closure0(_this, variables, identifiers));
  119640. _this.whitespace$0();
  119641. } while (t1.scanChar$1(44));
  119642. return new A._Record_2(identifiers, variables);
  119643. },
  119644. _stylesheet0$_ifRule$2(start, child) {
  119645. var condition, children, clauses, lastClause, span, _this = this,
  119646. ifIndentation = _this.get$currentIndentation(),
  119647. wasInControlDirective = _this._stylesheet0$_inControlDirective;
  119648. _this._stylesheet0$_inControlDirective = true;
  119649. condition = _this._stylesheet0$_expression$0();
  119650. children = _this.children$1(0, child);
  119651. _this.whitespaceWithoutComments$0();
  119652. clauses = A._setArrayType([A.IfClause$0(condition, children)], type$.JSArray_IfClause_2);
  119653. while (true) {
  119654. if (!_this.scanElse$1(ifIndentation)) {
  119655. lastClause = null;
  119656. break;
  119657. }
  119658. _this.whitespace$0();
  119659. if (_this.scanIdentifier$1("if")) {
  119660. _this.whitespace$0();
  119661. clauses.push(A.IfClause$0(_this._stylesheet0$_expression$0(), _this.children$1(0, child)));
  119662. } else {
  119663. lastClause = A.ElseClause$0(_this.children$1(0, child));
  119664. break;
  119665. }
  119666. }
  119667. _this._stylesheet0$_inControlDirective = wasInControlDirective;
  119668. span = _this.scanner.spanFrom$1(start);
  119669. _this.whitespaceWithoutComments$0();
  119670. return new A.IfRule0(A.List_List$unmodifiable(clauses, type$.IfClause_2), lastClause, span);
  119671. },
  119672. _stylesheet0$_importRule$1(start) {
  119673. var argument, t3, _this = this,
  119674. imports = A._setArrayType([], type$.JSArray_Import_2),
  119675. t1 = _this.scanner,
  119676. t2 = _this.warnings;
  119677. do {
  119678. _this.whitespace$0();
  119679. argument = _this.importArgument$0();
  119680. t3 = argument instanceof A.DynamicImport0;
  119681. if (t3)
  119682. t2.push(new A._Record_3_deprecation_message_span(B.Deprecation_A0i, string$.Sassx20_i, argument.span));
  119683. if ((_this._stylesheet0$_inControlDirective || _this._stylesheet0$_inMixin) && t3)
  119684. _this._stylesheet0$_disallowedAtRule$1(start);
  119685. imports.push(argument);
  119686. _this.whitespace$0();
  119687. } while (t1.scanChar$1(44));
  119688. _this.expectStatementSeparator$1("@import rule");
  119689. t1 = t1.spanFrom$1(start);
  119690. return new A.ImportRule0(A.List_List$unmodifiable(imports, type$.Import_2), t1);
  119691. },
  119692. importArgument$0() {
  119693. var url, urlSpan, innerError, stackTrace, modifiers, t2, exception, _this = this,
  119694. t1 = _this.scanner,
  119695. start = new A._SpanScannerState(t1, t1._string_scanner$_position),
  119696. _0_0 = t1.peekChar$0();
  119697. if (117 === _0_0 || 85 === _0_0) {
  119698. url = _this.dynamicUrl$0();
  119699. _this.whitespace$0();
  119700. modifiers = _this.tryImportModifiers$0();
  119701. t2 = url instanceof A.StringExpression0 ? url.text : A.Interpolation$0(A._setArrayType([url], type$.JSArray_Object), A._setArrayType([url.get$span(url)], type$.JSArray_nullable_FileSpan), url.get$span(url));
  119702. return new A.StaticImport0(t2, modifiers, t1.spanFrom$1(start));
  119703. }
  119704. url = _this.string$0();
  119705. urlSpan = t1.spanFrom$1(start);
  119706. _this.whitespace$0();
  119707. modifiers = _this.tryImportModifiers$0();
  119708. if (_this.isPlainImportUrl$1(url) || modifiers != null) {
  119709. t2 = urlSpan;
  119710. return new A.StaticImport0(new A.Interpolation0(A.List_List$unmodifiable([A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t2.file._decodedChars, t2._file$_start, t2._end), 0, null)], type$.Object), B.List_null, urlSpan), modifiers, t1.spanFrom$1(start));
  119711. } else
  119712. try {
  119713. t1 = _this.parseImportUrl$1(url);
  119714. return new A.DynamicImport0(t1, urlSpan);
  119715. } catch (exception) {
  119716. t1 = A.unwrapException(exception);
  119717. if (type$.FormatException._is(t1)) {
  119718. innerError = t1;
  119719. stackTrace = A.getTraceFromException(exception);
  119720. _this.error$3(0, "Invalid URL: " + J.get$message$x(innerError), urlSpan, stackTrace);
  119721. } else
  119722. throw exception;
  119723. }
  119724. },
  119725. parseImportUrl$1(url) {
  119726. var t1 = $.$get$windows();
  119727. if (t1.style.rootLength$1(url) > 0 && !$.$get$url().style.isRootRelative$1(url))
  119728. return t1.toUri$1(url).toString$0(0);
  119729. A.Uri_parse(url);
  119730. return url;
  119731. },
  119732. isPlainImportUrl$1(url) {
  119733. var _0_0, t1;
  119734. if (url.length < 5)
  119735. return false;
  119736. if (B.JSString_methods.endsWith$1(url, ".css"))
  119737. return true;
  119738. _0_0 = url.charCodeAt(0);
  119739. $label0$0: {
  119740. if (47 === _0_0) {
  119741. t1 = url.charCodeAt(1) === 47;
  119742. break $label0$0;
  119743. }
  119744. if (104 === _0_0) {
  119745. t1 = B.JSString_methods.startsWith$1(url, "http://") || B.JSString_methods.startsWith$1(url, "https://");
  119746. break $label0$0;
  119747. }
  119748. t1 = false;
  119749. break $label0$0;
  119750. }
  119751. return t1;
  119752. },
  119753. tryImportModifiers$0() {
  119754. var t1, start, t2, t3, t4, buffer, t5, identifier, $name, query, t6, endPosition, _this = this;
  119755. if (!_this._stylesheet0$_lookingAtInterpolatedIdentifier$0() && _this.scanner.peekChar$0() !== 40)
  119756. return null;
  119757. t1 = _this.scanner;
  119758. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  119759. t2 = new A.StringBuffer("");
  119760. t3 = A._setArrayType([], type$.JSArray_Object);
  119761. t4 = A._setArrayType([], type$.JSArray_nullable_FileSpan);
  119762. buffer = new A.InterpolationBuffer0(t2, t3, t4);
  119763. for (; true;)
  119764. if (_this._stylesheet0$_lookingAtInterpolatedIdentifier$0()) {
  119765. if (!(t3.length === 0 && t2._contents.length === 0)) {
  119766. t5 = A.Primitives_stringFromCharCode(32);
  119767. t2._contents += t5;
  119768. }
  119769. identifier = _this.interpolatedIdentifier$0();
  119770. buffer.addInterpolation$1(identifier);
  119771. t5 = identifier.get$asPlain();
  119772. $name = t5 == null ? null : t5.toLowerCase();
  119773. if ($name !== "and" && t1.scanChar$1(40)) {
  119774. if ($name === "supports") {
  119775. query = _this._stylesheet0$_importSupportsQuery$0();
  119776. t5 = !(query instanceof A.SupportsDeclaration0);
  119777. if (t5) {
  119778. t6 = A.Primitives_stringFromCharCode(40);
  119779. t2._contents += t6;
  119780. }
  119781. t6 = query.get$span(query);
  119782. buffer._interpolation_buffer0$_flushText$0();
  119783. t3.push(new A.SupportsExpression0(query));
  119784. t4.push(t6);
  119785. if (t5) {
  119786. t5 = A.Primitives_stringFromCharCode(41);
  119787. t2._contents += t5;
  119788. }
  119789. } else {
  119790. t5 = A.Primitives_stringFromCharCode(40);
  119791. t2._contents += t5;
  119792. buffer.addInterpolation$1(_this._stylesheet0$_interpolatedDeclarationValue$2$allowEmpty$allowSemicolon(true, true));
  119793. t5 = A.Primitives_stringFromCharCode(41);
  119794. t2._contents += t5;
  119795. }
  119796. t1.expectChar$1(41);
  119797. _this.whitespace$0();
  119798. } else {
  119799. _this.whitespace$0();
  119800. if (t1.scanChar$1(44)) {
  119801. t2._contents += ", ";
  119802. buffer.addInterpolation$1(_this._stylesheet0$_mediaQueryList$0());
  119803. endPosition = t1._string_scanner$_position;
  119804. t2 = t1._sourceFile;
  119805. t3 = start.position;
  119806. t1 = new A._FileSpan(t2, t3, endPosition);
  119807. t1._FileSpan$3(t2, t3, endPosition);
  119808. return buffer.interpolation$1(t1);
  119809. }
  119810. }
  119811. } else if (t1.peekChar$0() === 40) {
  119812. if (!(t3.length === 0 && t2._contents.length === 0)) {
  119813. t3 = A.Primitives_stringFromCharCode(32);
  119814. t2._contents += t3;
  119815. }
  119816. buffer.addInterpolation$1(_this._stylesheet0$_mediaQueryList$0());
  119817. endPosition = t1._string_scanner$_position;
  119818. t1 = t1._sourceFile;
  119819. t2 = start.position;
  119820. t3 = new A._FileSpan(t1, t2, endPosition);
  119821. t3._FileSpan$3(t1, t2, endPosition);
  119822. return buffer.interpolation$1(t3);
  119823. } else {
  119824. endPosition = t1._string_scanner$_position;
  119825. t1 = t1._sourceFile;
  119826. t2 = start.position;
  119827. t3 = new A._FileSpan(t1, t2, endPosition);
  119828. t3._FileSpan$3(t1, t2, endPosition);
  119829. return buffer.interpolation$1(t3);
  119830. }
  119831. },
  119832. _stylesheet0$_importSupportsQuery$0() {
  119833. var t1, t2, _0_0, $name, _this = this;
  119834. if (_this.scanIdentifier$1("not")) {
  119835. _this.whitespace$0();
  119836. t1 = _this.scanner;
  119837. t2 = t1._string_scanner$_position;
  119838. return new A.SupportsNegation0(_this._stylesheet0$_supportsConditionInParens$0(), t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  119839. } else {
  119840. t1 = _this.scanner;
  119841. if (t1.peekChar$0() === 40)
  119842. return _this._stylesheet0$_supportsCondition$0();
  119843. else {
  119844. _0_0 = _this._stylesheet0$_tryImportSupportsFunction$0();
  119845. if (_0_0 != null)
  119846. return _0_0;
  119847. t2 = t1._string_scanner$_position;
  119848. $name = _this._stylesheet0$_expression$0();
  119849. t1.expectChar$1(58);
  119850. return new A.SupportsDeclaration0($name, _this._stylesheet0$_supportsDeclarationValue$1($name), t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  119851. }
  119852. }
  119853. },
  119854. _stylesheet0$_tryImportSupportsFunction$0() {
  119855. var t1, start, $name, value, _this = this;
  119856. if (!_this._stylesheet0$_lookingAtInterpolatedIdentifier$0())
  119857. return null;
  119858. t1 = _this.scanner;
  119859. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  119860. $name = _this.interpolatedIdentifier$0();
  119861. if (!t1.scanChar$1(40)) {
  119862. t1.set$state(start);
  119863. return null;
  119864. }
  119865. value = _this._stylesheet0$_interpolatedDeclarationValue$2$allowEmpty$allowSemicolon(true, true);
  119866. t1.expectChar$1(41);
  119867. return new A.SupportsFunction0($name, value, t1.spanFrom$1(start));
  119868. },
  119869. _stylesheet0$_includeRule$1(start) {
  119870. var name0, namespace, $arguments, t2, t3, contentArguments, contentArguments_, wasInContentBlock, $content, span, _this = this, _null = null,
  119871. $name = _this.identifier$0(),
  119872. t1 = _this.scanner;
  119873. if (t1.scanChar$1(46)) {
  119874. name0 = _this._stylesheet0$_publicIdentifier$0();
  119875. namespace = $name;
  119876. $name = name0;
  119877. } else
  119878. namespace = _null;
  119879. _this.whitespace$0();
  119880. if (t1.peekChar$0() === 40)
  119881. $arguments = _this._stylesheet0$_argumentInvocation$1$mixin(true);
  119882. else {
  119883. t2 = A.FileLocation$_(t1._sourceFile, t1._string_scanner$_position);
  119884. t3 = t2.offset;
  119885. $arguments = A.ArgumentInvocation$empty0(A._FileSpan$(t2.file, t3, t3));
  119886. }
  119887. _this.whitespace$0();
  119888. if (_this.scanIdentifier$1("using")) {
  119889. _this.whitespace$0();
  119890. contentArguments = _this._stylesheet0$_argumentDeclaration$0();
  119891. _this.whitespace$0();
  119892. } else
  119893. contentArguments = _null;
  119894. t2 = contentArguments == null;
  119895. if (!t2 || _this.lookingAtChildren$0()) {
  119896. if (t2) {
  119897. t2 = A.FileLocation$_(t1._sourceFile, t1._string_scanner$_position);
  119898. t3 = t2.offset;
  119899. contentArguments_ = new A.ArgumentDeclaration0(B.List_empty24, _null, A._FileSpan$(t2.file, t3, t3));
  119900. } else
  119901. contentArguments_ = contentArguments;
  119902. wasInContentBlock = _this._stylesheet0$_inContentBlock;
  119903. _this._stylesheet0$_inContentBlock = true;
  119904. $content = _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new A.StylesheetParser__includeRule_closure0(contentArguments_));
  119905. _this._stylesheet0$_inContentBlock = wasInContentBlock;
  119906. } else {
  119907. _this.expectStatementSeparator$0();
  119908. $content = _null;
  119909. }
  119910. t1 = t1.spanFrom$2(start, start);
  119911. t2 = $content == null ? $arguments : $content;
  119912. span = t1.expand$1(0, t2.get$span(t2));
  119913. return new A.IncludeRule0(namespace, A.stringReplaceAllUnchecked($name, "_", "-"), $name, $arguments, $content, span);
  119914. },
  119915. mediaRule$1(start) {
  119916. return this._stylesheet0$_withChildren$3(this.get$_stylesheet0$_statement(), start, new A.StylesheetParser_mediaRule_closure0(this._stylesheet0$_mediaQueryList$0()));
  119917. },
  119918. _stylesheet0$_mixinRule$1(start) {
  119919. var t1, t2, $name, $arguments, t3, _this = this,
  119920. precedingComment = _this.lastSilentComment;
  119921. _this.lastSilentComment = null;
  119922. t1 = _this.scanner;
  119923. t2 = t1._string_scanner$_position;
  119924. $name = _this.identifier$0();
  119925. if (B.JSString_methods.startsWith$1($name, "--"))
  119926. _this.warnings.push(new A._Record_3_deprecation_message_span(B.Deprecation_omC, string$.Sassx20_m, t1.spanFrom$1(new A._SpanScannerState(t1, t2))));
  119927. _this.whitespace$0();
  119928. if (t1.peekChar$0() === 40)
  119929. $arguments = _this._stylesheet0$_argumentDeclaration$0();
  119930. else {
  119931. t2 = A.FileLocation$_(t1._sourceFile, t1._string_scanner$_position);
  119932. t3 = t2.offset;
  119933. $arguments = new A.ArgumentDeclaration0(B.List_empty24, null, A._FileSpan$(t2.file, t3, t3));
  119934. }
  119935. if (_this._stylesheet0$_inMixin || _this._stylesheet0$_inContentBlock)
  119936. _this.error$2(0, string$.Mixinscm, t1.spanFrom$1(start));
  119937. else if (_this._stylesheet0$_inControlDirective)
  119938. _this.error$2(0, string$.Mixinsb, t1.spanFrom$1(start));
  119939. _this.whitespace$0();
  119940. _this._stylesheet0$_inMixin = true;
  119941. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new A.StylesheetParser__mixinRule_closure0(_this, $name, $arguments, precedingComment));
  119942. },
  119943. mozDocumentRule$2(start, $name) {
  119944. var t6, _0_0, t7, identifier, _1_0, argument, trailing, endPosition, t8, t9, start0, end, _this = this, _box_0 = {},
  119945. t1 = _this.scanner,
  119946. t2 = t1._string_scanner$_position,
  119947. t3 = new A.StringBuffer(""),
  119948. t4 = A._setArrayType([], type$.JSArray_Object),
  119949. t5 = A._setArrayType([], type$.JSArray_nullable_FileSpan),
  119950. buffer = new A.InterpolationBuffer0(t3, t4, t5);
  119951. _box_0.needsDeprecationWarning = false;
  119952. for (t6 = _this.get$whitespace(); true;) {
  119953. if (t1.peekChar$0() === 35) {
  119954. _0_0 = _this.singleInterpolation$0();
  119955. buffer._interpolation_buffer0$_flushText$0();
  119956. t4.push(_0_0._0);
  119957. t5.push(_0_0._1);
  119958. _box_0.needsDeprecationWarning = true;
  119959. } else {
  119960. t7 = t1._string_scanner$_position;
  119961. identifier = _this.identifier$0();
  119962. $label0$0: {
  119963. if ("url" === identifier || "url-prefix" === identifier || "domain" === identifier) {
  119964. _1_0 = _this._stylesheet0$_tryUrlContents$2$name(new A._SpanScannerState(t1, t7), identifier);
  119965. if (_1_0 != null)
  119966. buffer.addInterpolation$1(_1_0);
  119967. else {
  119968. t1.expectChar$1(40);
  119969. _this.whitespace$0();
  119970. argument = _this.interpolatedString$0();
  119971. t1.expectChar$1(41);
  119972. t3._contents += identifier;
  119973. t7 = A.Primitives_stringFromCharCode(40);
  119974. t3._contents += t7;
  119975. buffer.addInterpolation$1(argument.asInterpolation$0());
  119976. t7 = A.Primitives_stringFromCharCode(41);
  119977. t3._contents += t7;
  119978. }
  119979. t7 = t3._contents;
  119980. trailing = t7.charCodeAt(0) == 0 ? t7 : t7;
  119981. if (!B.JSString_methods.endsWith$1(trailing, "url-prefix()") && !B.JSString_methods.endsWith$1(trailing, "url-prefix('')") && !B.JSString_methods.endsWith$1(trailing, 'url-prefix("")'))
  119982. _box_0.needsDeprecationWarning = true;
  119983. break $label0$0;
  119984. }
  119985. if ("regexp" === identifier) {
  119986. t3._contents += "regexp(";
  119987. t1.expectChar$1(40);
  119988. buffer.addInterpolation$1(_this.interpolatedString$0().asInterpolation$0());
  119989. t1.expectChar$1(41);
  119990. t7 = A.Primitives_stringFromCharCode(41);
  119991. t3._contents += t7;
  119992. _box_0.needsDeprecationWarning = true;
  119993. break $label0$0;
  119994. }
  119995. endPosition = t1._string_scanner$_position;
  119996. t8 = t1._sourceFile;
  119997. t9 = new A._FileSpan(t8, t7, endPosition);
  119998. t9._FileSpan$3(t8, t7, endPosition);
  119999. _this.error$2(0, "Invalid function name.", t9);
  120000. }
  120001. }
  120002. _this.whitespace$0();
  120003. if (!t1.scanChar$1(44))
  120004. break;
  120005. t7 = A.Primitives_stringFromCharCode(44);
  120006. t3._contents += t7;
  120007. start0 = t1._string_scanner$_position;
  120008. t6.call$0();
  120009. end = t1._string_scanner$_position;
  120010. t3._contents += B.JSString_methods.substring$2(t1.string, start0, end);
  120011. }
  120012. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new A.StylesheetParser_mozDocumentRule_closure0(_box_0, _this, $name, buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2)))));
  120013. },
  120014. supportsRule$1(start) {
  120015. var _this = this,
  120016. condition = _this._stylesheet0$_supportsCondition$0();
  120017. _this.whitespace$0();
  120018. return _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new A.StylesheetParser_supportsRule_closure0(condition));
  120019. },
  120020. _stylesheet0$_useNamespace$2(url, start) {
  120021. var namespace, basename, dot, t1, exception, _this = this;
  120022. if (_this.scanIdentifier$1("as")) {
  120023. _this.whitespace$0();
  120024. return _this.scanner.scanChar$1(42) ? null : _this.identifier$0();
  120025. }
  120026. basename = url.get$pathSegments().length === 0 ? "" : B.JSArray_methods.get$last(url.get$pathSegments());
  120027. dot = B.JSString_methods.indexOf$1(basename, ".");
  120028. t1 = B.JSString_methods.startsWith$1(basename, "_") ? 1 : 0;
  120029. namespace = B.JSString_methods.substring$2(basename, t1, dot === -1 ? basename.length : dot);
  120030. try {
  120031. t1 = new A.Parser1(A.SpanScanner$(namespace, null), null)._parser1$_parseIdentifier$0();
  120032. return t1;
  120033. } catch (exception) {
  120034. if (type$.SassFormatException_2._is(A.unwrapException(exception)))
  120035. _this.error$2(0, 'The default namespace "' + A.S(namespace) + string$.x22x20is_n, _this.scanner.spanFrom$1(start));
  120036. else
  120037. throw exception;
  120038. }
  120039. },
  120040. _stylesheet0$_configuration$1$allowGuarded(allowGuarded) {
  120041. var variableNames, configuration, t1, t2, $name, expression, t3, guarded, endPosition, t4, t5, span, _this = this;
  120042. if (!_this.scanIdentifier$1("with"))
  120043. return null;
  120044. variableNames = A.LinkedHashSet_LinkedHashSet$_empty(type$.String);
  120045. configuration = A._setArrayType([], type$.JSArray_ConfiguredVariable_2);
  120046. _this.whitespace$0();
  120047. t1 = _this.scanner;
  120048. t1.expectChar$1(40);
  120049. for (; true;) {
  120050. _this.whitespace$0();
  120051. t2 = t1._string_scanner$_position;
  120052. t1.expectChar$1(36);
  120053. $name = _this.identifier$1$normalize(true);
  120054. _this.whitespace$0();
  120055. t1.expectChar$1(58);
  120056. _this.whitespace$0();
  120057. expression = _this.expressionUntilComma$0();
  120058. t3 = t1._string_scanner$_position;
  120059. if (allowGuarded && t1.scanChar$1(33)) {
  120060. guarded = _this.identifier$0() === "default";
  120061. if (guarded)
  120062. _this.whitespace$0();
  120063. else {
  120064. endPosition = t1._string_scanner$_position;
  120065. t4 = t1._sourceFile;
  120066. t5 = new A._FileSpan(t4, t3, endPosition);
  120067. t5._FileSpan$3(t4, t3, endPosition);
  120068. _this.error$2(0, "Invalid flag name.", t5);
  120069. }
  120070. } else
  120071. guarded = false;
  120072. endPosition = t1._string_scanner$_position;
  120073. t3 = t1._sourceFile;
  120074. span = new A._FileSpan(t3, t2, endPosition);
  120075. span._FileSpan$3(t3, t2, endPosition);
  120076. if (variableNames.contains$1(0, $name))
  120077. _this.error$2(0, string$.The_sa, span);
  120078. variableNames.add$1(0, $name);
  120079. configuration.push(new A.ConfiguredVariable0($name, expression, guarded, span));
  120080. if (!t1.scanChar$1(44))
  120081. break;
  120082. _this.whitespace$0();
  120083. if (!_this._stylesheet0$_lookingAtExpression$0())
  120084. break;
  120085. }
  120086. t1.expectChar$1(41);
  120087. return configuration;
  120088. },
  120089. _stylesheet0$_configuration$0() {
  120090. return this._stylesheet0$_configuration$1$allowGuarded(false);
  120091. },
  120092. _stylesheet0$_warnRule$1(start) {
  120093. var value = this._stylesheet0$_expression$0();
  120094. this.expectStatementSeparator$1("@warn rule");
  120095. return new A.WarnRule0(value, this.scanner.spanFrom$1(start));
  120096. },
  120097. _stylesheet0$_whileRule$2(start, child) {
  120098. var _this = this,
  120099. wasInControlDirective = _this._stylesheet0$_inControlDirective;
  120100. _this._stylesheet0$_inControlDirective = true;
  120101. return _this._stylesheet0$_withChildren$3(child, start, new A.StylesheetParser__whileRule_closure0(_this, wasInControlDirective, _this._stylesheet0$_expression$0()));
  120102. },
  120103. unknownAtRule$2(start, $name) {
  120104. var t2, t3, rule, _this = this, t1 = {},
  120105. wasInUnknownAtRule = _this._stylesheet0$_inUnknownAtRule;
  120106. _this._stylesheet0$_inUnknownAtRule = true;
  120107. t1.value = null;
  120108. t2 = _this.scanner;
  120109. t3 = t2.peekChar$0() !== 33 && !_this.atEndOfStatement$0() ? t1.value = _this._stylesheet0$_interpolatedDeclarationValue$1$allowOpenBrace(false) : null;
  120110. if (_this.lookingAtChildren$0())
  120111. rule = _this._stylesheet0$_withChildren$3(_this.get$_stylesheet0$_statement(), start, new A.StylesheetParser_unknownAtRule_closure0(t1, $name));
  120112. else {
  120113. _this.expectStatementSeparator$0();
  120114. rule = A.AtRule$0($name, t2.spanFrom$1(start), null, t3);
  120115. }
  120116. _this._stylesheet0$_inUnknownAtRule = wasInUnknownAtRule;
  120117. return rule;
  120118. },
  120119. _stylesheet0$_disallowedAtRule$1(start) {
  120120. this._stylesheet0$_interpolatedDeclarationValue$2$allowEmpty$allowOpenBrace(true, false);
  120121. this.error$2(0, "This at-rule is not allowed here.", this.scanner.spanFrom$1(start));
  120122. },
  120123. _stylesheet0$_argumentDeclaration$0() {
  120124. var $arguments, named, restArgument, t3, $name, defaultValue, endPosition, t4, t5, _this = this,
  120125. t1 = _this.scanner,
  120126. t2 = t1._string_scanner$_position;
  120127. t1.expectChar$1(40);
  120128. _this.whitespace$0();
  120129. $arguments = A._setArrayType([], type$.JSArray_Argument_2);
  120130. named = A.LinkedHashSet_LinkedHashSet$_empty(type$.String);
  120131. for (; restArgument = null, t1.peekChar$0() === 36;) {
  120132. t3 = t1._string_scanner$_position;
  120133. t1.expectChar$1(36);
  120134. $name = _this.identifier$1$normalize(true);
  120135. _this.whitespace$0();
  120136. if (t1.scanChar$1(58)) {
  120137. _this.whitespace$0();
  120138. defaultValue = _this.expressionUntilComma$0();
  120139. } else {
  120140. if (t1.scanChar$1(46)) {
  120141. t1.expectChar$1(46);
  120142. t1.expectChar$1(46);
  120143. _this.whitespace$0();
  120144. restArgument = $name;
  120145. break;
  120146. }
  120147. defaultValue = null;
  120148. }
  120149. endPosition = t1._string_scanner$_position;
  120150. t4 = t1._sourceFile;
  120151. t5 = new A._FileSpan(t4, t3, endPosition);
  120152. t5._FileSpan$3(t4, t3, endPosition);
  120153. $arguments.push(new A.Argument0($name, defaultValue, t5));
  120154. if (!named.add$1(0, $name))
  120155. _this.error$2(0, "Duplicate argument.", B.JSArray_methods.get$last($arguments).span);
  120156. if (!t1.scanChar$1(44))
  120157. break;
  120158. _this.whitespace$0();
  120159. }
  120160. t1.expectChar$1(41);
  120161. t1 = t1.spanFrom$1(new A._SpanScannerState(t1, t2));
  120162. return new A.ArgumentDeclaration0(A.List_List$unmodifiable($arguments, type$.Argument_2), restArgument, t1);
  120163. },
  120164. _stylesheet0$_argumentInvocation$2$allowEmptySecondArg$mixin(allowEmptySecondArg, mixin) {
  120165. var positional, t3, t4, named, t5, rest, keywordRest, expression, t6, t7, result, _this = this,
  120166. t1 = _this.scanner,
  120167. t2 = t1._string_scanner$_position;
  120168. t1.expectChar$1(40);
  120169. _this.whitespace$0();
  120170. positional = A._setArrayType([], type$.JSArray_Expression_2);
  120171. t3 = type$.String;
  120172. t4 = type$.Expression_2;
  120173. named = A.LinkedHashMap_LinkedHashMap$_empty(t3, t4);
  120174. for (t5 = !mixin, rest = null; keywordRest = null, _this._stylesheet0$_lookingAtExpression$0();) {
  120175. expression = _this.expressionUntilComma$1$singleEquals(t5);
  120176. _this.whitespace$0();
  120177. if (expression instanceof A.VariableExpression0 && t1.scanChar$1(58)) {
  120178. _this.whitespace$0();
  120179. t6 = expression.name;
  120180. if (named.containsKey$1(t6))
  120181. _this.error$2(0, "Duplicate argument.", expression.span);
  120182. named.$indexSet(0, t6, _this.expressionUntilComma$1$singleEquals(t5));
  120183. } else if (t1.scanChar$1(46)) {
  120184. t1.expectChar$1(46);
  120185. t1.expectChar$1(46);
  120186. if (rest != null) {
  120187. _this.whitespace$0();
  120188. keywordRest = expression;
  120189. break;
  120190. }
  120191. rest = expression;
  120192. } else if (named.__js_helper$_length !== 0)
  120193. _this.error$2(0, string$.Positi, expression.get$span(expression));
  120194. else
  120195. positional.push(expression);
  120196. _this.whitespace$0();
  120197. if (!t1.scanChar$1(44))
  120198. break;
  120199. _this.whitespace$0();
  120200. if (allowEmptySecondArg && positional.length === 1 && named.__js_helper$_length === 0 && rest == null && t1.peekChar$0() === 41) {
  120201. t5 = t1._sourceFile;
  120202. t6 = t1._string_scanner$_position;
  120203. new A.FileLocation(t5, t6).FileLocation$_$2(t5, t6);
  120204. t7 = new A._FileSpan(t5, t6, t6);
  120205. t7._FileSpan$3(t5, t6, t6);
  120206. result = A.List_List$from([""], false, type$.Object);
  120207. result.fixed$length = Array;
  120208. result.immutable$list = Array;
  120209. positional.push(new A.StringExpression0(new A.Interpolation0(result, B.List_null, t7), false));
  120210. break;
  120211. }
  120212. }
  120213. t1.expectChar$1(41);
  120214. t1 = t1.spanFrom$1(new A._SpanScannerState(t1, t2));
  120215. return new A.ArgumentInvocation0(A.List_List$unmodifiable(positional, t4), A.ConstantMap_ConstantMap$from(named, t3, t4), rest, keywordRest, t1);
  120216. },
  120217. _stylesheet0$_argumentInvocation$0() {
  120218. return this._stylesheet0$_argumentInvocation$2$allowEmptySecondArg$mixin(false, false);
  120219. },
  120220. _stylesheet0$_argumentInvocation$1$allowEmptySecondArg(allowEmptySecondArg) {
  120221. return this._stylesheet0$_argumentInvocation$2$allowEmptySecondArg$mixin(allowEmptySecondArg, false);
  120222. },
  120223. _stylesheet0$_argumentInvocation$1$mixin(mixin) {
  120224. return this._stylesheet0$_argumentInvocation$2$allowEmptySecondArg$mixin(false, mixin);
  120225. },
  120226. _stylesheet0$_expression$3$bracketList$singleEquals$until(bracketList, singleEquals, until) {
  120227. var t2, beforeBracket, start, wasInExpression, wasInParentheses, resetState, resolveOneOperation, resolveOperations, addSingleExpression, addOperator, resolveSpaceExpressions, t3, _3_0, _1_0, t4, _3_28, _2_0, _3_32, _3_40, commaExpressions, spaceExpressions, singleExpression, _this = this,
  120228. _s20_ = "Expected expression.",
  120229. _box_0 = {},
  120230. t1 = until != null;
  120231. if (t1 && until.call$0())
  120232. _this.scanner.error$1(0, _s20_);
  120233. if (bracketList) {
  120234. t2 = _this.scanner;
  120235. beforeBracket = new A._SpanScannerState(t2, t2._string_scanner$_position);
  120236. t2.expectChar$1(91);
  120237. _this.whitespace$0();
  120238. if (t2.scanChar$1(93)) {
  120239. t1 = A._setArrayType([], type$.JSArray_Expression_2);
  120240. t2 = t2.spanFrom$1(beforeBracket);
  120241. return new A.ListExpression0(A.List_List$unmodifiable(t1, type$.Expression_2), B.ListSeparator_undecided_null_undecided0, true, t2);
  120242. }
  120243. } else
  120244. beforeBracket = null;
  120245. t2 = _this.scanner;
  120246. start = new A._SpanScannerState(t2, t2._string_scanner$_position);
  120247. wasInExpression = _this._stylesheet0$_inExpression;
  120248. wasInParentheses = _this._stylesheet0$_inParentheses;
  120249. _this._stylesheet0$_inExpression = true;
  120250. _box_0.operands_ = _box_0.operators_ = _box_0.spaceExpressions_ = _box_0.commaExpressions_ = null;
  120251. _box_0.allowSlash = true;
  120252. _box_0.singleExpression_ = _this._stylesheet0$_singleExpression$0();
  120253. resetState = new A.StylesheetParser__expression_resetState0(_box_0, _this, start);
  120254. resolveOneOperation = new A.StylesheetParser__expression_resolveOneOperation0(_box_0, _this);
  120255. resolveOperations = new A.StylesheetParser__expression_resolveOperations0(_box_0, resolveOneOperation);
  120256. addSingleExpression = new A.StylesheetParser__expression_addSingleExpression0(_box_0, _this, resetState, resolveOperations);
  120257. addOperator = new A.StylesheetParser__expression_addOperator0(_box_0, _this, resolveOneOperation);
  120258. resolveSpaceExpressions = new A.StylesheetParser__expression_resolveSpaceExpressions0(_box_0, _this, resolveOperations);
  120259. for (t3 = type$.JSArray_Expression_2; true;) {
  120260. _this.whitespace$0();
  120261. if (t1 && until.call$0())
  120262. break;
  120263. _3_0 = t2.peekChar$0();
  120264. if (_3_0 == null)
  120265. break;
  120266. if (40 === _3_0) {
  120267. addSingleExpression.call$1(_this.parentheses$0());
  120268. continue;
  120269. }
  120270. if (91 === _3_0) {
  120271. addSingleExpression.call$1(_this._stylesheet0$_expression$1$bracketList(true));
  120272. continue;
  120273. }
  120274. if (36 === _3_0) {
  120275. addSingleExpression.call$1(_this._stylesheet0$_variable$0());
  120276. continue;
  120277. }
  120278. if (38 === _3_0) {
  120279. addSingleExpression.call$1(_this._stylesheet0$_selector$0());
  120280. continue;
  120281. }
  120282. if (39 === _3_0 || 34 === _3_0) {
  120283. addSingleExpression.call$1(_this.interpolatedString$0());
  120284. continue;
  120285. }
  120286. if (35 === _3_0) {
  120287. addSingleExpression.call$1(_this._stylesheet0$_hashExpression$0());
  120288. continue;
  120289. }
  120290. if (61 === _3_0) {
  120291. t2.readChar$0();
  120292. if (singleEquals && t2.peekChar$0() !== 61)
  120293. addOperator.call$1(B.BinaryOperator_wdM0);
  120294. else {
  120295. t2.expectChar$1(61);
  120296. addOperator.call$1(B.BinaryOperator_g8k0);
  120297. }
  120298. continue;
  120299. }
  120300. if (33 === _3_0) {
  120301. $label0$1: {
  120302. _1_0 = t2.peekChar$1(1);
  120303. if (61 === _1_0) {
  120304. t2.readChar$0();
  120305. t2.readChar$0();
  120306. addOperator.call$1(B.BinaryOperator_icU0);
  120307. break $label0$1;
  120308. }
  120309. t4 = true;
  120310. if (_1_0 != null)
  120311. if (105 !== _1_0)
  120312. if (73 !== _1_0)
  120313. t4 = _1_0 === 32 || _1_0 === 9 || _1_0 === 10 || _1_0 === 13 || _1_0 === 12;
  120314. if (t4) {
  120315. addSingleExpression.call$1(_this._stylesheet0$_importantExpression$0());
  120316. break $label0$1;
  120317. }
  120318. break;
  120319. }
  120320. continue;
  120321. }
  120322. if (60 === _3_0) {
  120323. t2.readChar$0();
  120324. addOperator.call$1(t2.scanChar$1(61) ? B.BinaryOperator_SPQ0 : B.BinaryOperator_miq0);
  120325. continue;
  120326. }
  120327. if (62 === _3_0) {
  120328. t2.readChar$0();
  120329. addOperator.call$1(t2.scanChar$1(61) ? B.BinaryOperator_oEm0 : B.BinaryOperator_bEa0);
  120330. continue;
  120331. }
  120332. if (42 === _3_0) {
  120333. t2.readChar$0();
  120334. addOperator.call$1(B.BinaryOperator_2No0);
  120335. continue;
  120336. }
  120337. _3_28 = 43 === _3_0;
  120338. if (_3_28 && _box_0.singleExpression_ == null) {
  120339. addSingleExpression.call$1(_this._stylesheet0$_unaryOperation$0());
  120340. continue;
  120341. }
  120342. if (_3_28) {
  120343. t2.readChar$0();
  120344. addOperator.call$1(B.BinaryOperator_u150);
  120345. continue;
  120346. }
  120347. if (45 === _3_0) {
  120348. _2_0 = t2.peekChar$1(1);
  120349. if (A._isInt(_2_0) && _2_0 >= 48 && _2_0 <= 57 || 46 === _2_0)
  120350. if (_box_0.singleExpression_ != null) {
  120351. t4 = t2.peekChar$1(-1);
  120352. t4 = t4 === 32 || t4 === 9 || t4 === 10 || t4 === 13 || t4 === 12;
  120353. } else
  120354. t4 = true;
  120355. else
  120356. t4 = false;
  120357. if (t4)
  120358. addSingleExpression.call$1(_this._stylesheet0$_number$0());
  120359. else if (_this._stylesheet0$_lookingAtInterpolatedIdentifier$0())
  120360. addSingleExpression.call$1(_this.identifierLike$0());
  120361. else if (_box_0.singleExpression_ == null)
  120362. addSingleExpression.call$1(_this._stylesheet0$_unaryOperation$0());
  120363. else {
  120364. t2.readChar$0();
  120365. addOperator.call$1(B.BinaryOperator_SjO0);
  120366. }
  120367. continue;
  120368. }
  120369. _3_32 = 47 === _3_0;
  120370. if (_3_32 && _box_0.singleExpression_ == null) {
  120371. addSingleExpression.call$1(_this._stylesheet0$_unaryOperation$0());
  120372. continue;
  120373. }
  120374. if (_3_32) {
  120375. t2.readChar$0();
  120376. addOperator.call$1(B.BinaryOperator_U770);
  120377. continue;
  120378. }
  120379. if (37 === _3_0) {
  120380. t2.readChar$0();
  120381. addOperator.call$1(B.BinaryOperator_KNx0);
  120382. continue;
  120383. }
  120384. if (_3_0 >= 48 && _3_0 <= 57) {
  120385. addSingleExpression.call$1(_this._stylesheet0$_number$0());
  120386. continue;
  120387. }
  120388. _3_40 = 46 === _3_0;
  120389. if (_3_40 && t2.peekChar$1(1) === 46)
  120390. break;
  120391. if (_3_40) {
  120392. addSingleExpression.call$1(_this._stylesheet0$_number$0());
  120393. continue;
  120394. }
  120395. if (97 === _3_0 && !_this.get$plainCss() && _this.scanIdentifier$1("and")) {
  120396. addOperator.call$1(B.BinaryOperator_eDt0);
  120397. continue;
  120398. }
  120399. if (111 === _3_0 && !_this.get$plainCss() && _this.scanIdentifier$1("or")) {
  120400. addOperator.call$1(B.BinaryOperator_qNM0);
  120401. continue;
  120402. }
  120403. if ((117 === _3_0 || 85 === _3_0) && t2.peekChar$1(1) === 43) {
  120404. addSingleExpression.call$1(_this._stylesheet0$_unicodeRange$0());
  120405. continue;
  120406. }
  120407. if (!(_3_0 >= 97 && _3_0 <= 122))
  120408. t4 = _3_0 >= 65 && _3_0 <= 90 || 95 === _3_0 || 92 === _3_0 || _3_0 >= 128;
  120409. else
  120410. t4 = true;
  120411. if (t4) {
  120412. addSingleExpression.call$1(_this.identifierLike$0());
  120413. continue;
  120414. }
  120415. if (44 === _3_0) {
  120416. if (_this._stylesheet0$_inParentheses) {
  120417. _this._stylesheet0$_inParentheses = false;
  120418. if (_box_0.allowSlash) {
  120419. resetState.call$0();
  120420. continue;
  120421. }
  120422. }
  120423. commaExpressions = _box_0.commaExpressions_;
  120424. if (commaExpressions == null)
  120425. commaExpressions = _box_0.commaExpressions_ = A._setArrayType([], t3);
  120426. if (_box_0.singleExpression_ == null)
  120427. t2.error$1(0, _s20_);
  120428. resolveSpaceExpressions.call$0();
  120429. t4 = _box_0.singleExpression_;
  120430. t4.toString;
  120431. commaExpressions.push(t4);
  120432. t2.readChar$0();
  120433. _box_0.allowSlash = true;
  120434. _box_0.singleExpression_ = null;
  120435. continue;
  120436. }
  120437. break;
  120438. }
  120439. if (bracketList)
  120440. t2.expectChar$1(93);
  120441. commaExpressions = _box_0.commaExpressions_;
  120442. spaceExpressions = _box_0.spaceExpressions_;
  120443. if (commaExpressions != null) {
  120444. resolveSpaceExpressions.call$0();
  120445. _this._stylesheet0$_inParentheses = wasInParentheses;
  120446. singleExpression = _box_0.singleExpression_;
  120447. if (singleExpression != null)
  120448. commaExpressions.push(singleExpression);
  120449. _this._stylesheet0$_inExpression = wasInExpression;
  120450. t1 = t2.spanFrom$1(beforeBracket == null ? start : beforeBracket);
  120451. return new A.ListExpression0(A.List_List$unmodifiable(commaExpressions, type$.Expression_2), B.ListSeparator_ECn0, bracketList, t1);
  120452. } else if (bracketList && spaceExpressions != null) {
  120453. resolveOperations.call$0();
  120454. _this._stylesheet0$_inExpression = wasInExpression;
  120455. t1 = _box_0.singleExpression_;
  120456. t1.toString;
  120457. spaceExpressions.push(t1);
  120458. beforeBracket.toString;
  120459. t2 = t2.spanFrom$1(beforeBracket);
  120460. return new A.ListExpression0(A.List_List$unmodifiable(spaceExpressions, type$.Expression_2), B.ListSeparator_nbm0, true, t2);
  120461. } else {
  120462. resolveSpaceExpressions.call$0();
  120463. if (bracketList) {
  120464. t1 = _box_0.singleExpression_;
  120465. t1.toString;
  120466. t3 = A._setArrayType([t1], t3);
  120467. beforeBracket.toString;
  120468. t2 = t2.spanFrom$1(beforeBracket);
  120469. _box_0.singleExpression_ = new A.ListExpression0(A.List_List$unmodifiable(t3, type$.Expression_2), B.ListSeparator_undecided_null_undecided0, true, t2);
  120470. }
  120471. _this._stylesheet0$_inExpression = wasInExpression;
  120472. t1 = _box_0.singleExpression_;
  120473. t1.toString;
  120474. return t1;
  120475. }
  120476. },
  120477. _stylesheet0$_expression$2$singleEquals$until(singleEquals, until) {
  120478. return this._stylesheet0$_expression$3$bracketList$singleEquals$until(false, singleEquals, until);
  120479. },
  120480. _stylesheet0$_expression$1$bracketList(bracketList) {
  120481. return this._stylesheet0$_expression$3$bracketList$singleEquals$until(bracketList, false, null);
  120482. },
  120483. _stylesheet0$_expression$0() {
  120484. return this._stylesheet0$_expression$3$bracketList$singleEquals$until(false, false, null);
  120485. },
  120486. _stylesheet0$_expression$1$until(until) {
  120487. return this._stylesheet0$_expression$3$bracketList$singleEquals$until(false, false, until);
  120488. },
  120489. expressionUntilComma$1$singleEquals(singleEquals) {
  120490. return this._stylesheet0$_expression$2$singleEquals$until(singleEquals, new A.StylesheetParser_expressionUntilComma_closure0(this));
  120491. },
  120492. expressionUntilComma$0() {
  120493. return this.expressionUntilComma$1$singleEquals(false);
  120494. },
  120495. _stylesheet0$_isSlashOperand$1(expression) {
  120496. var t1 = true;
  120497. if (!(expression instanceof A.NumberExpression0))
  120498. if (!(expression instanceof A.FunctionExpression0))
  120499. t1 = expression instanceof A.BinaryOperationExpression0 && expression.allowsSlash;
  120500. return t1;
  120501. },
  120502. _stylesheet0$_singleExpression$0() {
  120503. var next, t2, _this = this,
  120504. _s20_ = "Expected expression.",
  120505. t1 = _this.scanner,
  120506. _0_0 = t1.peekChar$0();
  120507. $label0$0: {
  120508. if (_0_0 == null)
  120509. t1.error$1(0, _s20_);
  120510. if (40 === _0_0) {
  120511. t1 = _this.parentheses$0();
  120512. break $label0$0;
  120513. }
  120514. if (47 === _0_0) {
  120515. t1 = _this._stylesheet0$_unaryOperation$0();
  120516. break $label0$0;
  120517. }
  120518. if (46 === _0_0) {
  120519. t1 = _this._stylesheet0$_number$0();
  120520. break $label0$0;
  120521. }
  120522. if (91 === _0_0) {
  120523. t1 = _this._stylesheet0$_expression$1$bracketList(true);
  120524. break $label0$0;
  120525. }
  120526. if (36 === _0_0) {
  120527. t1 = _this._stylesheet0$_variable$0();
  120528. break $label0$0;
  120529. }
  120530. if (38 === _0_0) {
  120531. t1 = _this._stylesheet0$_selector$0();
  120532. break $label0$0;
  120533. }
  120534. if (39 === _0_0 || 34 === _0_0) {
  120535. t1 = _this.interpolatedString$0();
  120536. break $label0$0;
  120537. }
  120538. if (35 === _0_0) {
  120539. t1 = _this._stylesheet0$_hashExpression$0();
  120540. break $label0$0;
  120541. }
  120542. if (43 === _0_0) {
  120543. next = t1.peekChar$1(1);
  120544. t1 = next != null && next >= 48 && next <= 57 || next === 46 ? _this._stylesheet0$_number$0() : _this._stylesheet0$_unaryOperation$0();
  120545. break $label0$0;
  120546. }
  120547. if (45 === _0_0) {
  120548. t1 = _this._stylesheet0$_minusExpression$0();
  120549. break $label0$0;
  120550. }
  120551. if (33 === _0_0) {
  120552. t1 = _this._stylesheet0$_importantExpression$0();
  120553. break $label0$0;
  120554. }
  120555. if ((117 === _0_0 || 85 === _0_0) && t1.peekChar$1(1) === 43) {
  120556. t1 = _this._stylesheet0$_unicodeRange$0();
  120557. break $label0$0;
  120558. }
  120559. if (_0_0 >= 48 && _0_0 <= 57) {
  120560. t1 = _this._stylesheet0$_number$0();
  120561. break $label0$0;
  120562. }
  120563. if (!(_0_0 >= 97 && _0_0 <= 122))
  120564. t2 = _0_0 >= 65 && _0_0 <= 90 || 95 === _0_0 || 92 === _0_0 || _0_0 >= 128;
  120565. else
  120566. t2 = true;
  120567. if (t2) {
  120568. t1 = _this.identifierLike$0();
  120569. break $label0$0;
  120570. }
  120571. t1 = t1.error$1(0, _s20_);
  120572. }
  120573. return t1;
  120574. },
  120575. parentheses$0() {
  120576. var start, first, expressions, t1, t2, _this = this,
  120577. wasInParentheses = _this._stylesheet0$_inParentheses;
  120578. _this._stylesheet0$_inParentheses = true;
  120579. try {
  120580. t1 = _this.scanner;
  120581. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  120582. t1.expectChar$1(40);
  120583. _this.whitespace$0();
  120584. if (!_this._stylesheet0$_lookingAtExpression$0()) {
  120585. t1.expectChar$1(41);
  120586. t2 = A._setArrayType([], type$.JSArray_Expression_2);
  120587. t1 = t1.spanFrom$1(start);
  120588. t2 = A.List_List$unmodifiable(t2, type$.Expression_2);
  120589. return new A.ListExpression0(t2, B.ListSeparator_undecided_null_undecided0, false, t1);
  120590. }
  120591. first = _this.expressionUntilComma$0();
  120592. if (t1.scanChar$1(58)) {
  120593. _this.whitespace$0();
  120594. t1 = _this._stylesheet0$_map$2(first, start);
  120595. return t1;
  120596. }
  120597. if (!t1.scanChar$1(44)) {
  120598. t1.expectChar$1(41);
  120599. t1 = t1.spanFrom$1(start);
  120600. return new A.ParenthesizedExpression0(first, t1);
  120601. }
  120602. _this.whitespace$0();
  120603. expressions = A._setArrayType([first], type$.JSArray_Expression_2);
  120604. for (; true;) {
  120605. if (!_this._stylesheet0$_lookingAtExpression$0())
  120606. break;
  120607. J.add$1$ax(expressions, _this.expressionUntilComma$0());
  120608. if (!t1.scanChar$1(44))
  120609. break;
  120610. _this.whitespace$0();
  120611. }
  120612. t1.expectChar$1(41);
  120613. t1 = t1.spanFrom$1(start);
  120614. t2 = A.List_List$unmodifiable(expressions, type$.Expression_2);
  120615. return new A.ListExpression0(t2, B.ListSeparator_ECn0, false, t1);
  120616. } finally {
  120617. _this._stylesheet0$_inParentheses = wasInParentheses;
  120618. }
  120619. },
  120620. _stylesheet0$_map$2(first, start) {
  120621. var t1, key, _this = this,
  120622. pairs = A._setArrayType([new A._Record_2(first, _this.expressionUntilComma$0())], type$.JSArray_Record_2_Expression_and_Expression_2);
  120623. for (t1 = _this.scanner; t1.scanChar$1(44);) {
  120624. _this.whitespace$0();
  120625. if (!_this._stylesheet0$_lookingAtExpression$0())
  120626. break;
  120627. key = _this.expressionUntilComma$0();
  120628. t1.expectChar$1(58);
  120629. _this.whitespace$0();
  120630. pairs.push(new A._Record_2(key, _this.expressionUntilComma$0()));
  120631. }
  120632. t1.expectChar$1(41);
  120633. t1 = t1.spanFrom$1(start);
  120634. return new A.MapExpression0(A.List_List$unmodifiable(pairs, type$.Record_2_Expression_and_Expression_2), t1);
  120635. },
  120636. _stylesheet0$_hashExpression$0() {
  120637. var start, t2, identifier, buffer, t3, _this = this,
  120638. t1 = _this.scanner;
  120639. if (t1.peekChar$1(1) === 123)
  120640. return _this.identifierLike$0();
  120641. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  120642. t1.expectChar$1(35);
  120643. t2 = t1.peekChar$0();
  120644. if (t2 == null)
  120645. t2 = null;
  120646. else
  120647. t2 = t2 >= 48 && t2 <= 57;
  120648. if (t2 === true)
  120649. return new A.ColorExpression0(_this._stylesheet0$_hexColorContents$1(start), t1.spanFrom$1(start));
  120650. t2 = t1._string_scanner$_position;
  120651. identifier = _this.interpolatedIdentifier$0();
  120652. if (_this._stylesheet0$_isHexColor$1(identifier)) {
  120653. t1.set$state(new A._SpanScannerState(t1, t2));
  120654. return new A.ColorExpression0(_this._stylesheet0$_hexColorContents$1(start), t1.spanFrom$1(start));
  120655. }
  120656. t2 = new A.StringBuffer("");
  120657. buffer = new A.InterpolationBuffer0(t2, A._setArrayType([], type$.JSArray_Object), A._setArrayType([], type$.JSArray_nullable_FileSpan));
  120658. t3 = A.Primitives_stringFromCharCode(35);
  120659. t2._contents += t3;
  120660. buffer.addInterpolation$1(identifier);
  120661. return new A.StringExpression0(buffer.interpolation$1(t1.spanFrom$1(start)), false);
  120662. },
  120663. _stylesheet0$_hexColorContents$1(start) {
  120664. var red, green, blue, alpha, digit4, t2, t3, t4, _this = this,
  120665. digit1 = _this._stylesheet0$_hexDigit$0(),
  120666. digit2 = _this._stylesheet0$_hexDigit$0(),
  120667. digit3 = _this._stylesheet0$_hexDigit$0(),
  120668. t1 = _this.scanner,
  120669. $self = t1.peekChar$0();
  120670. if (!($self != null && A.CharacterExtension_get_isHex0($self))) {
  120671. red = (digit1 << 4 >>> 0) + digit1;
  120672. green = (digit2 << 4 >>> 0) + digit2;
  120673. blue = (digit3 << 4 >>> 0) + digit3;
  120674. alpha = null;
  120675. } else {
  120676. digit4 = _this._stylesheet0$_hexDigit$0();
  120677. $self = t1.peekChar$0();
  120678. t2 = $self != null && A.CharacterExtension_get_isHex0($self);
  120679. t3 = digit1 << 4 >>> 0;
  120680. t4 = digit3 << 4 >>> 0;
  120681. if (!t2) {
  120682. red = t3 + digit1;
  120683. green = (digit2 << 4 >>> 0) + digit2;
  120684. blue = t4 + digit3;
  120685. alpha = ((digit4 << 4 >>> 0) + digit4) / 255;
  120686. } else {
  120687. red = t3 + digit2;
  120688. green = t4 + digit4;
  120689. blue = (_this._stylesheet0$_hexDigit$0() << 4 >>> 0) + _this._stylesheet0$_hexDigit$0();
  120690. $self = t1.peekChar$0();
  120691. alpha = $self != null && A.CharacterExtension_get_isHex0($self) ? ((_this._stylesheet0$_hexDigit$0() << 4 >>> 0) + _this._stylesheet0$_hexDigit$0()) / 255 : null;
  120692. }
  120693. }
  120694. t2 = alpha == null;
  120695. t3 = t2 ? 1 : alpha;
  120696. return A.SassColor_SassColor$rgbInternal0(red, green, blue, t3, t2 ? new A.SpanColorFormat0(t1.spanFrom$1(start)) : null);
  120697. },
  120698. _stylesheet0$_isHexColor$1(interpolation) {
  120699. var _0_2, t1,
  120700. plain = interpolation.get$asPlain();
  120701. if (typeof plain == "string") {
  120702. _0_2 = plain.length;
  120703. t1 = true;
  120704. if (3 !== _0_2)
  120705. if (4 !== _0_2)
  120706. if (6 !== _0_2)
  120707. t1 = 8 === _0_2;
  120708. } else
  120709. t1 = false;
  120710. if (t1) {
  120711. t1 = new A.CodeUnits(plain);
  120712. return t1.every$1(t1, new A.StylesheetParser__isHexColor_closure0());
  120713. } else
  120714. return false;
  120715. },
  120716. _stylesheet0$_hexDigit$0() {
  120717. var t1 = this.scanner,
  120718. t2 = t1.peekChar$0();
  120719. t2 = t2 == null ? null : A.CharacterExtension_get_isHex0(t2);
  120720. return t2 === true ? A.asHex0(t1.readChar$0()) : t1.error$1(0, "Expected hex digit.");
  120721. },
  120722. _stylesheet0$_minusExpression$0() {
  120723. var _this = this,
  120724. _0_0 = _this.scanner.peekChar$1(1);
  120725. if (A._isInt(_0_0) && _0_0 >= 48 && _0_0 <= 57 || 46 === _0_0)
  120726. return _this._stylesheet0$_number$0();
  120727. if (_this._stylesheet0$_lookingAtInterpolatedIdentifier$0())
  120728. return _this.identifierLike$0();
  120729. return _this._stylesheet0$_unaryOperation$0();
  120730. },
  120731. _stylesheet0$_importantExpression$0() {
  120732. var t1 = this.scanner,
  120733. t2 = t1._string_scanner$_position;
  120734. t1.readChar$0();
  120735. this.whitespace$0();
  120736. this.expectIdentifier$1("important");
  120737. t2 = t1.spanFrom$1(new A._SpanScannerState(t1, t2));
  120738. return new A.StringExpression0(new A.Interpolation0(A.List_List$unmodifiable(["!important"], type$.Object), B.List_null, t2), false);
  120739. },
  120740. _stylesheet0$_unaryOperation$0() {
  120741. var _this = this,
  120742. t1 = _this.scanner,
  120743. t2 = t1._string_scanner$_position,
  120744. operator = _this._stylesheet0$_unaryOperatorFor$1(t1.readChar$0());
  120745. if (operator == null)
  120746. t1.error$2$position(0, "Expected unary operator.", t1._string_scanner$_position - 1);
  120747. else if (_this.get$plainCss() && operator !== B.UnaryOperator_SJr0)
  120748. t1.error$3$length$position(0, "Operators aren't allowed in plain CSS.", 1, t1._string_scanner$_position - 1);
  120749. _this.whitespace$0();
  120750. return new A.UnaryOperationExpression0(operator, _this._stylesheet0$_singleExpression$0(), t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  120751. },
  120752. _stylesheet0$_unaryOperatorFor$1(character) {
  120753. var t1;
  120754. $label0$0: {
  120755. if (43 === character) {
  120756. t1 = B.UnaryOperator_cLp0;
  120757. break $label0$0;
  120758. }
  120759. if (45 === character) {
  120760. t1 = B.UnaryOperator_AiQ0;
  120761. break $label0$0;
  120762. }
  120763. if (47 === character) {
  120764. t1 = B.UnaryOperator_SJr0;
  120765. break $label0$0;
  120766. }
  120767. t1 = null;
  120768. break $label0$0;
  120769. }
  120770. return t1;
  120771. },
  120772. _stylesheet0$_number$0() {
  120773. var number, unit, _this = this,
  120774. t1 = _this.scanner,
  120775. t2 = t1._string_scanner$_position,
  120776. first = t1.peekChar$0(),
  120777. t3 = first !== 43;
  120778. if (!t3 || first === 45)
  120779. t1.readChar$0();
  120780. if (t1.peekChar$0() !== 46)
  120781. _this._stylesheet0$_consumeNaturalNumber$0();
  120782. _this._stylesheet0$_tryDecimal$1$allowTrailingDot(t1._string_scanner$_position !== t2 && t3 && first !== 45);
  120783. _this._stylesheet0$_tryExponent$0();
  120784. number = A.double_parse(t1.substring$1(0, t2));
  120785. if (t1.scanChar$1(37))
  120786. unit = "%";
  120787. else {
  120788. if (_this.lookingAtIdentifier$0())
  120789. t3 = t1.peekChar$0() !== 45 || t1.peekChar$1(1) !== 45;
  120790. else
  120791. t3 = false;
  120792. unit = t3 ? _this.identifier$1$unit(true) : null;
  120793. }
  120794. return new A.NumberExpression0(number, unit, t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  120795. },
  120796. _stylesheet0$_consumeNaturalNumber$0() {
  120797. var $self,
  120798. t1 = this.scanner,
  120799. t2 = t1.readChar$0();
  120800. if (!(t2 >= 48 && t2 <= 57))
  120801. t1.error$2$position(0, "Expected digit.", t1._string_scanner$_position - 1);
  120802. while (true) {
  120803. $self = t1.peekChar$0();
  120804. if (!($self != null && $self >= 48 && $self <= 57))
  120805. break;
  120806. t1.readChar$0();
  120807. }
  120808. },
  120809. _stylesheet0$_tryDecimal$1$allowTrailingDot(allowTrailingDot) {
  120810. var $self,
  120811. t1 = this.scanner;
  120812. if (t1.peekChar$0() !== 46)
  120813. return;
  120814. $self = t1.peekChar$1(1);
  120815. if (!($self != null && $self >= 48 && $self <= 57)) {
  120816. if (allowTrailingDot)
  120817. return;
  120818. t1.error$2$position(0, "Expected digit.", t1._string_scanner$_position + 1);
  120819. }
  120820. t1.readChar$0();
  120821. while (true) {
  120822. $self = t1.peekChar$0();
  120823. if (!($self != null && $self >= 48 && $self <= 57))
  120824. break;
  120825. t1.readChar$0();
  120826. }
  120827. },
  120828. _stylesheet0$_tryExponent$0() {
  120829. var next, $self,
  120830. t1 = this.scanner,
  120831. first = t1.peekChar$0();
  120832. if (first !== 101 && first !== 69)
  120833. return;
  120834. next = t1.peekChar$1(1);
  120835. if (!(next != null && next >= 48 && next <= 57) && next !== 45 && next !== 43)
  120836. return;
  120837. t1.readChar$0();
  120838. if (43 === next || 45 === next)
  120839. t1.readChar$0();
  120840. $self = t1.peekChar$0();
  120841. if (!($self != null && $self >= 48 && $self <= 57))
  120842. t1.error$1(0, "Expected digit.");
  120843. while (true) {
  120844. $self = t1.peekChar$0();
  120845. if (!($self != null && $self >= 48 && $self <= 57))
  120846. break;
  120847. t1.readChar$0();
  120848. }
  120849. },
  120850. _stylesheet0$_unicodeRange$0() {
  120851. var firstRangeLength, hasQuestionMark, t2, secondRangeLength, _this = this,
  120852. _s26_ = "Expected at most 6 digits.",
  120853. t1 = _this.scanner,
  120854. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  120855. _this.expectIdentChar$1(117);
  120856. t1.expectChar$1(43);
  120857. for (firstRangeLength = 0; _this.scanCharIf$1(new A.StylesheetParser__unicodeRange_closure1());)
  120858. ++firstRangeLength;
  120859. for (hasQuestionMark = false; t1.scanChar$1(63); hasQuestionMark = true)
  120860. ++firstRangeLength;
  120861. if (firstRangeLength === 0)
  120862. t1.error$1(0, 'Expected hex digit or "?".');
  120863. else if (firstRangeLength > 6)
  120864. _this.error$2(0, _s26_, t1.spanFrom$1(start));
  120865. else if (hasQuestionMark) {
  120866. t2 = t1.substring$1(0, start.position);
  120867. t1 = t1.spanFrom$1(start);
  120868. return new A.StringExpression0(new A.Interpolation0(A.List_List$unmodifiable([t2], type$.Object), B.List_null, t1), false);
  120869. }
  120870. if (t1.scanChar$1(45)) {
  120871. t2 = t1._string_scanner$_position;
  120872. for (secondRangeLength = 0; _this.scanCharIf$1(new A.StylesheetParser__unicodeRange_closure2());)
  120873. ++secondRangeLength;
  120874. if (secondRangeLength === 0)
  120875. t1.error$1(0, "Expected hex digit.");
  120876. else if (secondRangeLength > 6)
  120877. _this.error$2(0, _s26_, t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  120878. }
  120879. if (_this._stylesheet0$_lookingAtInterpolatedIdentifierBody$0())
  120880. t1.error$1(0, "Expected end of identifier.");
  120881. t2 = t1.substring$1(0, start.position);
  120882. t1 = t1.spanFrom$1(start);
  120883. return new A.StringExpression0(new A.Interpolation0(A.List_List$unmodifiable([t2], type$.Object), B.List_null, t1), false);
  120884. },
  120885. _stylesheet0$_variable$0() {
  120886. var _this = this,
  120887. t1 = _this.scanner,
  120888. start = new A._SpanScannerState(t1, t1._string_scanner$_position),
  120889. $name = _this.variableName$0();
  120890. if (_this.get$plainCss())
  120891. _this.error$2(0, string$.Sassx20v, t1.spanFrom$1(start));
  120892. return new A.VariableExpression0(null, $name, t1.spanFrom$1(start));
  120893. },
  120894. _stylesheet0$_selector$0() {
  120895. var t1, start, _this = this;
  120896. if (_this.get$plainCss())
  120897. _this.scanner.error$2$length(0, string$.The_pa, 1);
  120898. t1 = _this.scanner;
  120899. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  120900. t1.expectChar$1(38);
  120901. if (t1.scanChar$1(38)) {
  120902. _this.warnings.push(new A._Record_3_deprecation_message_span(null, string$.In_Sas, t1.spanFrom$1(start)));
  120903. t1.set$position(t1._string_scanner$_position - 1);
  120904. }
  120905. return new A.SelectorExpression0(t1.spanFrom$1(start));
  120906. },
  120907. interpolatedString$0() {
  120908. var t3, t4, t5, buffer, _1_0, second, t6, _0_0,
  120909. t1 = this.scanner,
  120910. t2 = t1._string_scanner$_position,
  120911. quote = t1.readChar$0();
  120912. if (quote !== 39 && quote !== 34)
  120913. t1.error$2$position(0, "Expected string.", t2);
  120914. t3 = new A.StringBuffer("");
  120915. t4 = A._setArrayType([], type$.JSArray_Object);
  120916. t5 = A._setArrayType([], type$.JSArray_nullable_FileSpan);
  120917. buffer = new A.InterpolationBuffer0(t3, t4, t5);
  120918. for (; true;) {
  120919. _1_0 = t1.peekChar$0();
  120920. if (_1_0 === quote) {
  120921. t1.readChar$0();
  120922. break;
  120923. }
  120924. if (_1_0 == null || _1_0 === 10 || _1_0 === 13 || _1_0 === 12)
  120925. t1.error$1(0, "Expected " + A.Primitives_stringFromCharCode(quote) + ".");
  120926. if (92 === _1_0) {
  120927. second = t1.peekChar$1(1);
  120928. if (second === 10 || second === 13 || second === 12) {
  120929. t1.readChar$0();
  120930. t1.readChar$0();
  120931. if (second === 13)
  120932. t1.scanChar$1(10);
  120933. } else {
  120934. t6 = A.Primitives_stringFromCharCode(A.consumeEscapedCharacter0(t1));
  120935. t3._contents += t6;
  120936. }
  120937. continue;
  120938. }
  120939. if (35 === _1_0 && t1.peekChar$1(1) === 123) {
  120940. _0_0 = this.singleInterpolation$0();
  120941. buffer._interpolation_buffer0$_flushText$0();
  120942. t4.push(_0_0._0);
  120943. t5.push(_0_0._1);
  120944. continue;
  120945. }
  120946. t6 = A.Primitives_stringFromCharCode(t1.readChar$0());
  120947. t3._contents += t6;
  120948. }
  120949. return new A.StringExpression0(buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2))), true);
  120950. },
  120951. identifierLike$0() {
  120952. var invocation, expression, _0_0, t3, t4, t5, _1_0, _2_0, _2_2, _2_4, _this = this,
  120953. t1 = _this.scanner,
  120954. start = new A._SpanScannerState(t1, t1._string_scanner$_position),
  120955. identifier = _this.interpolatedIdentifier$0(),
  120956. plain = identifier.get$asPlain(),
  120957. lower = A._Cell$(),
  120958. t2 = plain != null;
  120959. if (t2) {
  120960. if (plain === "if" && t1.peekChar$0() === 40) {
  120961. invocation = _this._stylesheet0$_argumentInvocation$0();
  120962. return new A.IfExpression0(invocation, identifier.span.expand$1(0, invocation.span));
  120963. } else if (plain === "not") {
  120964. _this.whitespace$0();
  120965. expression = _this._stylesheet0$_singleExpression$0();
  120966. return new A.UnaryOperationExpression0(B.UnaryOperator_not_not_not0, expression, identifier.span.expand$1(0, expression.get$span(expression)));
  120967. }
  120968. lower.__late_helper$_value = plain.toLowerCase();
  120969. if (t1.peekChar$0() !== 40) {
  120970. switch (plain) {
  120971. case "false":
  120972. return new A.BooleanExpression0(false, identifier.span);
  120973. case "null":
  120974. return new A.NullExpression0(identifier.span);
  120975. case "true":
  120976. return new A.BooleanExpression0(true, identifier.span);
  120977. }
  120978. _0_0 = $.$get$colorsByName0().$index(0, lower._readLocal$0());
  120979. if (_0_0 != null) {
  120980. t1 = B.JSNumber_methods.round$0(_0_0._color0$_legacyChannel$2(B.RgbColorSpace_mlz0, "red"));
  120981. t2 = B.JSNumber_methods.round$0(_0_0._color0$_legacyChannel$2(B.RgbColorSpace_mlz0, "green"));
  120982. t3 = B.JSNumber_methods.round$0(_0_0._color0$_legacyChannel$2(B.RgbColorSpace_mlz0, "blue"));
  120983. t4 = _0_0.alphaOrNull;
  120984. if (t4 == null)
  120985. t4 = 0;
  120986. t5 = identifier.span;
  120987. return new A.ColorExpression0(A.SassColor_SassColor$rgbInternal0(t1, t2, t3, t4, new A.SpanColorFormat0(t5)), t5);
  120988. }
  120989. }
  120990. _1_0 = _this.trySpecialFunction$2(lower._readLocal$0(), start);
  120991. if (_1_0 != null)
  120992. return _1_0;
  120993. }
  120994. _2_0 = t1.peekChar$0();
  120995. _2_2 = 46 === _2_0;
  120996. if (_2_2 && t1.peekChar$1(1) === 46)
  120997. return new A.StringExpression0(identifier, false);
  120998. if (_2_2) {
  120999. t1.readChar$0();
  121000. if (t2)
  121001. return _this.namespacedExpression$2(plain, start);
  121002. _this.error$2(0, string$.Interpn, identifier.span);
  121003. }
  121004. _2_4 = 40 === _2_0;
  121005. if (_2_4 && t2) {
  121006. t2 = _this._stylesheet0$_argumentInvocation$1$allowEmptySecondArg(J.$eq$(lower._readLocal$0(), "var"));
  121007. t1 = t1.spanFrom$1(start);
  121008. return new A.FunctionExpression0(null, A.stringReplaceAllUnchecked(plain, "_", "-"), plain, t2, t1);
  121009. }
  121010. if (_2_4)
  121011. return new A.InterpolatedFunctionExpression0(identifier, _this._stylesheet0$_argumentInvocation$0(), t1.spanFrom$1(start));
  121012. return new A.StringExpression0(identifier, false);
  121013. },
  121014. namespacedExpression$2(namespace, start) {
  121015. var $name, t2, t3, _this = this,
  121016. t1 = _this.scanner;
  121017. if (t1.peekChar$0() === 36) {
  121018. $name = _this.variableName$0();
  121019. _this._stylesheet0$_assertPublic$2($name, new A.StylesheetParser_namespacedExpression_closure0(_this, start));
  121020. return new A.VariableExpression0(namespace, $name, t1.spanFrom$1(start));
  121021. }
  121022. t2 = _this._stylesheet0$_publicIdentifier$0();
  121023. t3 = _this._stylesheet0$_argumentInvocation$0();
  121024. t1 = t1.spanFrom$1(start);
  121025. return new A.FunctionExpression0(namespace, A.stringReplaceAllUnchecked(t2, "_", "-"), t2, t3, t1);
  121026. },
  121027. trySpecialFunction$2($name, start) {
  121028. var t1, buffer, t2, next, t3, _this = this,
  121029. normalized = A.unvendor0($name);
  121030. $label0$0: {
  121031. if (!("calc" === normalized && normalized !== $name && _this.scanner.scanChar$1(40)))
  121032. t1 = ("element" === normalized || "expression" === normalized) && _this.scanner.scanChar$1(40);
  121033. else
  121034. t1 = true;
  121035. if (t1) {
  121036. t1 = new A.StringBuffer("");
  121037. buffer = new A.InterpolationBuffer0(t1, A._setArrayType([], type$.JSArray_Object), A._setArrayType([], type$.JSArray_nullable_FileSpan));
  121038. t1._contents = "" + $name;
  121039. t2 = A.Primitives_stringFromCharCode(40);
  121040. t1._contents += t2;
  121041. break $label0$0;
  121042. }
  121043. if ("progid" === normalized && _this.scanner.scanChar$1(58)) {
  121044. t1 = new A.StringBuffer("");
  121045. buffer = new A.InterpolationBuffer0(t1, A._setArrayType([], type$.JSArray_Object), A._setArrayType([], type$.JSArray_nullable_FileSpan));
  121046. t1._contents = "" + $name;
  121047. t2 = A.Primitives_stringFromCharCode(58);
  121048. t1._contents += t2;
  121049. t2 = _this.scanner;
  121050. next = t2.peekChar$0();
  121051. while (true) {
  121052. if (next != null) {
  121053. if (!(next >= 97 && next <= 122))
  121054. t3 = next >= 65 && next <= 90;
  121055. else
  121056. t3 = true;
  121057. t3 = t3 || next === 46;
  121058. } else
  121059. t3 = false;
  121060. if (!t3)
  121061. break;
  121062. t3 = A.Primitives_stringFromCharCode(t2.readChar$0());
  121063. t1._contents += t3;
  121064. next = t2.peekChar$0();
  121065. }
  121066. t2.expectChar$1(40);
  121067. t2 = A.Primitives_stringFromCharCode(40);
  121068. t1._contents += t2;
  121069. break $label0$0;
  121070. }
  121071. if ("url" === normalized)
  121072. return A.NullableExtension_andThen0(_this._stylesheet0$_tryUrlContents$1(start), new A.StylesheetParser_trySpecialFunction_closure0());
  121073. return null;
  121074. }
  121075. buffer.addInterpolation$1(_this._stylesheet0$_interpolatedDeclarationValue$1$allowEmpty(true));
  121076. t1 = _this.scanner;
  121077. t1.expectChar$1(41);
  121078. t2 = buffer._interpolation_buffer0$_text;
  121079. t3 = A.Primitives_stringFromCharCode(41);
  121080. t2._contents += t3;
  121081. return new A.StringExpression0(buffer.interpolation$1(t1.spanFrom$1(start)), false);
  121082. },
  121083. _stylesheet0$_tryUrlContents$2$name(start, $name) {
  121084. var t3, t4, t5, buffer, t6, _1_0, _1_6, _0_0, endPosition, _this = this,
  121085. t1 = _this.scanner,
  121086. t2 = t1._string_scanner$_position;
  121087. if (!t1.scanChar$1(40))
  121088. return null;
  121089. _this.whitespaceWithoutComments$0();
  121090. t3 = new A.StringBuffer("");
  121091. t4 = A._setArrayType([], type$.JSArray_Object);
  121092. t5 = A._setArrayType([], type$.JSArray_nullable_FileSpan);
  121093. buffer = new A.InterpolationBuffer0(t3, t4, t5);
  121094. t3._contents = "" + ($name == null ? "url" : $name);
  121095. t6 = A.Primitives_stringFromCharCode(40);
  121096. t3._contents += t6;
  121097. for (; true;) {
  121098. _1_0 = t1.peekChar$0();
  121099. if (_1_0 == null)
  121100. break;
  121101. if (92 === _1_0) {
  121102. t6 = _this.escape$0();
  121103. t3._contents += t6;
  121104. continue;
  121105. }
  121106. _1_6 = 35 === _1_0;
  121107. if (_1_6 && t1.peekChar$1(1) === 123) {
  121108. _0_0 = _this.singleInterpolation$0();
  121109. buffer._interpolation_buffer0$_flushText$0();
  121110. t4.push(_0_0._0);
  121111. t5.push(_0_0._1);
  121112. continue;
  121113. }
  121114. t6 = true;
  121115. if (33 !== _1_0)
  121116. if (37 !== _1_0)
  121117. if (38 !== _1_0)
  121118. if (!_1_6)
  121119. t6 = _1_0 >= 42 && _1_0 <= 126 || _1_0 >= 128;
  121120. if (t6) {
  121121. t6 = A.Primitives_stringFromCharCode(t1.readChar$0());
  121122. t3._contents += t6;
  121123. continue;
  121124. }
  121125. if (_1_0 === 32 || _1_0 === 9 || _1_0 === 10 || _1_0 === 13 || _1_0 === 12) {
  121126. _this.whitespaceWithoutComments$0();
  121127. if (t1.peekChar$0() !== 41)
  121128. break;
  121129. continue;
  121130. }
  121131. if (41 === _1_0) {
  121132. t2 = A.Primitives_stringFromCharCode(t1.readChar$0());
  121133. t3._contents += t2;
  121134. endPosition = t1._string_scanner$_position;
  121135. t2 = t1._sourceFile;
  121136. t3 = start.position;
  121137. t1 = new A._FileSpan(t2, t3, endPosition);
  121138. t1._FileSpan$3(t2, t3, endPosition);
  121139. return buffer.interpolation$1(t1);
  121140. }
  121141. break;
  121142. }
  121143. t1.set$state(new A._SpanScannerState(t1, t2));
  121144. return null;
  121145. },
  121146. _stylesheet0$_tryUrlContents$1(start) {
  121147. return this._stylesheet0$_tryUrlContents$2$name(start, null);
  121148. },
  121149. dynamicUrl$0() {
  121150. var _0_0, t2, _this = this,
  121151. t1 = _this.scanner,
  121152. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  121153. _this.expectIdentifier$1("url");
  121154. _0_0 = _this._stylesheet0$_tryUrlContents$1(start);
  121155. if (_0_0 != null)
  121156. return new A.StringExpression0(_0_0, false);
  121157. t2 = t1.spanFrom$1(start);
  121158. return new A.InterpolatedFunctionExpression0(new A.Interpolation0(A.List_List$unmodifiable(["url"], type$.Object), B.List_null, t2), _this._stylesheet0$_argumentInvocation$0(), t1.spanFrom$1(start));
  121159. },
  121160. almostAnyValue$1$omitComments(omitComments) {
  121161. var t4, t5, t6, _2_0, t7, _0_0, _0_2, start, end, _0_4, identifier, _1_0, _this = this,
  121162. t1 = _this.scanner,
  121163. t2 = t1._string_scanner$_position,
  121164. t3 = new A.StringBuffer(""),
  121165. buffer = new A.InterpolationBuffer0(t3, A._setArrayType([], type$.JSArray_Object), A._setArrayType([], type$.JSArray_nullable_FileSpan));
  121166. for (t4 = t1.string, t5 = t4.length, t6 = !omitComments; true;)
  121167. $label0$0: {
  121168. _2_0 = t1.peekChar$0();
  121169. if (92 === _2_0) {
  121170. t7 = A.Primitives_stringFromCharCode(t1.readChar$0());
  121171. t3._contents += t7;
  121172. t7 = A.Primitives_stringFromCharCode(t1.readChar$0());
  121173. t3._contents += t7;
  121174. break $label0$0;
  121175. }
  121176. if (34 === _2_0 || 39 === _2_0) {
  121177. buffer.addInterpolation$1(_this.interpolatedString$0().asInterpolation$0());
  121178. break $label0$0;
  121179. }
  121180. if (47 === _2_0) {
  121181. $label1$1: {
  121182. _0_0 = t1.peekChar$1(1);
  121183. _0_2 = 42 === _0_0;
  121184. if (_0_2 && t6) {
  121185. t7 = _this.get$loudComment();
  121186. start = t1._string_scanner$_position;
  121187. t7.call$0();
  121188. end = t1._string_scanner$_position;
  121189. t3._contents += B.JSString_methods.substring$2(t4, start, end);
  121190. break $label1$1;
  121191. }
  121192. if (_0_2) {
  121193. _this.loudComment$0();
  121194. break $label1$1;
  121195. }
  121196. _0_4 = 47 === _0_0;
  121197. if (_0_4 && t6) {
  121198. t7 = _this.get$silentComment();
  121199. start = t1._string_scanner$_position;
  121200. t7.call$0();
  121201. end = t1._string_scanner$_position;
  121202. t3._contents += B.JSString_methods.substring$2(t4, start, end);
  121203. break $label1$1;
  121204. }
  121205. if (_0_4) {
  121206. _this.silentComment$0();
  121207. break $label1$1;
  121208. }
  121209. t7 = A.Primitives_stringFromCharCode(t1.readChar$0());
  121210. t3._contents += t7;
  121211. }
  121212. break $label0$0;
  121213. }
  121214. if (35 === _2_0 && t1.peekChar$1(1) === 123) {
  121215. buffer.addInterpolation$1(_this.interpolatedIdentifier$0());
  121216. break $label0$0;
  121217. }
  121218. if (13 === _2_0 || 10 === _2_0 || 12 === _2_0) {
  121219. if (_this.get$indented())
  121220. break;
  121221. t7 = A.Primitives_stringFromCharCode(t1.readChar$0());
  121222. t3._contents += t7;
  121223. break $label0$0;
  121224. }
  121225. if (33 === _2_0 || 59 === _2_0 || 123 === _2_0 || 125 === _2_0)
  121226. break;
  121227. if (117 === _2_0 || 85 === _2_0) {
  121228. t7 = t1._string_scanner$_position;
  121229. identifier = _this.identifier$0();
  121230. if (identifier !== "url" && identifier !== "url-prefix") {
  121231. t3._contents += identifier;
  121232. continue;
  121233. }
  121234. _1_0 = _this._stylesheet0$_tryUrlContents$2$name(new A._SpanScannerState(t1, t7), identifier);
  121235. if (_1_0 != null)
  121236. buffer.addInterpolation$1(_1_0);
  121237. else {
  121238. if ((t7 === 0 ? 1 / t7 < 0 : t7 < 0) || t7 > t5)
  121239. A.throwExpression(A.ArgumentError$("Invalid position " + t7, null));
  121240. t1._string_scanner$_position = t7;
  121241. t1._lastMatch = null;
  121242. t7 = A.Primitives_stringFromCharCode(t1.readChar$0());
  121243. t3._contents += t7;
  121244. }
  121245. break $label0$0;
  121246. }
  121247. if (_2_0 == null)
  121248. break;
  121249. t7 = _this.lookingAtIdentifier$0();
  121250. if (t7) {
  121251. t7 = _this.identifier$0();
  121252. t3._contents += t7;
  121253. break $label0$0;
  121254. }
  121255. t7 = A.Primitives_stringFromCharCode(t1.readChar$0());
  121256. t3._contents += t7;
  121257. }
  121258. return buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  121259. },
  121260. almostAnyValue$0() {
  121261. return this.almostAnyValue$1$omitComments(false);
  121262. },
  121263. _stylesheet0$_interpolatedDeclarationValue$5$allowColon$allowEmpty$allowOpenBrace$allowSemicolon$silentComments(allowColon, allowEmpty, allowOpenBrace, allowSemicolon, silentComments) {
  121264. var t4, t5, t6, t7, t8, wroteNewline, _2_0, wroteNewline0, t9, _0_0, start, end, _2_14_isSet, _2_14, t10, _2_18_isSet, _2_20, _2_18, _2_20_isSet, _2_22, bracket, identifier, _1_0, _this = this, _null = null,
  121265. t1 = _this.scanner,
  121266. t2 = t1._string_scanner$_position,
  121267. t3 = new A.StringBuffer(""),
  121268. buffer = new A.InterpolationBuffer0(t3, A._setArrayType([], type$.JSArray_Object), A._setArrayType([], type$.JSArray_nullable_FileSpan)),
  121269. brackets = A._setArrayType([], type$.JSArray_int);
  121270. for (t4 = !allowOpenBrace, t5 = t1.string, t6 = t5.length, t7 = !allowColon, t8 = !allowSemicolon, wroteNewline = false; true;)
  121271. $label0$0: {
  121272. _2_0 = t1.peekChar$0();
  121273. wroteNewline0 = false;
  121274. if (92 === _2_0) {
  121275. t9 = _this.escape$1$identifierStart(true);
  121276. t3._contents += t9;
  121277. wroteNewline = wroteNewline0;
  121278. break $label0$0;
  121279. }
  121280. if (34 === _2_0 || 39 === _2_0) {
  121281. buffer.addInterpolation$1(_this.interpolatedString$0().asInterpolation$0());
  121282. wroteNewline = wroteNewline0;
  121283. break $label0$0;
  121284. }
  121285. if (47 === _2_0) {
  121286. $label1$1: {
  121287. _0_0 = t1.peekChar$1(1);
  121288. if (42 === _0_0) {
  121289. t9 = _this.get$loudComment();
  121290. start = t1._string_scanner$_position;
  121291. t9.call$0();
  121292. end = t1._string_scanner$_position;
  121293. t3._contents += B.JSString_methods.substring$2(t5, start, end);
  121294. break $label1$1;
  121295. }
  121296. if (47 === _0_0 && silentComments) {
  121297. _this.silentComment$0();
  121298. break $label1$1;
  121299. }
  121300. t9 = A.Primitives_stringFromCharCode(t1.readChar$0());
  121301. t3._contents += t9;
  121302. }
  121303. wroteNewline = wroteNewline0;
  121304. break $label0$0;
  121305. }
  121306. if (35 === _2_0 && t1.peekChar$1(1) === 123) {
  121307. buffer.addInterpolation$1(_this.interpolatedIdentifier$0());
  121308. wroteNewline = wroteNewline0;
  121309. break $label0$0;
  121310. }
  121311. _2_14_isSet = 32 !== _2_0;
  121312. if (_2_14_isSet) {
  121313. _2_14 = 9 === _2_0;
  121314. t9 = _2_14;
  121315. } else {
  121316. _2_14 = _null;
  121317. t9 = true;
  121318. }
  121319. t10 = false;
  121320. if (t9)
  121321. if (!wroteNewline) {
  121322. t9 = t1.peekChar$1(1);
  121323. t9 = t9 === 32 || t9 === 9 || t9 === 10 || t9 === 13 || t9 === 12;
  121324. } else
  121325. t9 = t10;
  121326. else
  121327. t9 = t10;
  121328. if (t9) {
  121329. t1.readChar$0();
  121330. break $label0$0;
  121331. }
  121332. if (_2_14_isSet)
  121333. t9 = _2_14;
  121334. else
  121335. t9 = true;
  121336. if (t9) {
  121337. t9 = A.Primitives_stringFromCharCode(t1.readChar$0());
  121338. t3._contents += t9;
  121339. break $label0$0;
  121340. }
  121341. _2_18_isSet = 10 !== _2_0;
  121342. _2_20 = _null;
  121343. t9 = true;
  121344. if (_2_18_isSet) {
  121345. _2_18 = 13 === _2_0;
  121346. _2_20_isSet = !_2_18;
  121347. if (_2_20_isSet) {
  121348. _2_20 = 12 === _2_0;
  121349. t9 = _2_20;
  121350. }
  121351. } else {
  121352. _2_18 = _null;
  121353. _2_20_isSet = false;
  121354. }
  121355. if (t9 && _this.get$indented())
  121356. break;
  121357. t9 = true;
  121358. if (_2_18_isSet)
  121359. if (!_2_18)
  121360. t9 = _2_20_isSet ? _2_20 : 12 === _2_0;
  121361. if (t9) {
  121362. t9 = t1.peekChar$1(-1);
  121363. if (!(t9 === 10 || t9 === 13 || t9 === 12))
  121364. t3._contents += "\n";
  121365. t1.readChar$0();
  121366. wroteNewline = true;
  121367. break $label0$0;
  121368. }
  121369. _2_22 = 123 === _2_0;
  121370. if (_2_22 && t4)
  121371. break;
  121372. if (40 !== _2_0)
  121373. t9 = _2_22 || 91 === _2_0;
  121374. else
  121375. t9 = true;
  121376. if (t9) {
  121377. bracket = t1.readChar$0();
  121378. t9 = A.Primitives_stringFromCharCode(bracket);
  121379. t3._contents += t9;
  121380. brackets.push(A.opposite0(bracket));
  121381. wroteNewline = wroteNewline0;
  121382. break $label0$0;
  121383. }
  121384. if (41 === _2_0 || 125 === _2_0 || 93 === _2_0) {
  121385. if (brackets.length === 0)
  121386. break;
  121387. bracket = brackets.pop();
  121388. t1.expectChar$1(bracket);
  121389. t9 = A.Primitives_stringFromCharCode(bracket);
  121390. t3._contents += t9;
  121391. wroteNewline = wroteNewline0;
  121392. break $label0$0;
  121393. }
  121394. if (59 === _2_0) {
  121395. if (t8 && brackets.length === 0)
  121396. break;
  121397. t9 = A.Primitives_stringFromCharCode(t1.readChar$0());
  121398. t3._contents += t9;
  121399. wroteNewline = wroteNewline0;
  121400. break $label0$0;
  121401. }
  121402. if (58 === _2_0) {
  121403. if (t7 && brackets.length === 0)
  121404. break;
  121405. t9 = A.Primitives_stringFromCharCode(t1.readChar$0());
  121406. t3._contents += t9;
  121407. wroteNewline = wroteNewline0;
  121408. break $label0$0;
  121409. }
  121410. if (117 === _2_0 || 85 === _2_0) {
  121411. t9 = t1._string_scanner$_position;
  121412. identifier = _this.identifier$0();
  121413. if (identifier !== "url" && identifier !== "url-prefix") {
  121414. t3._contents += identifier;
  121415. wroteNewline = wroteNewline0;
  121416. continue;
  121417. }
  121418. _1_0 = _this._stylesheet0$_tryUrlContents$2$name(new A._SpanScannerState(t1, t9), identifier);
  121419. if (_1_0 != null)
  121420. buffer.addInterpolation$1(_1_0);
  121421. else {
  121422. if ((t9 === 0 ? 1 / t9 < 0 : t9 < 0) || t9 > t6)
  121423. A.throwExpression(A.ArgumentError$("Invalid position " + t9, _null));
  121424. t1._string_scanner$_position = t9;
  121425. t1._lastMatch = null;
  121426. t9 = A.Primitives_stringFromCharCode(t1.readChar$0());
  121427. t3._contents += t9;
  121428. }
  121429. wroteNewline = wroteNewline0;
  121430. break $label0$0;
  121431. }
  121432. if (_2_0 == null)
  121433. break;
  121434. t9 = _this.lookingAtIdentifier$0();
  121435. if (t9) {
  121436. t9 = _this.identifier$0();
  121437. t3._contents += t9;
  121438. wroteNewline = wroteNewline0;
  121439. break $label0$0;
  121440. }
  121441. t9 = A.Primitives_stringFromCharCode(t1.readChar$0());
  121442. t3._contents += t9;
  121443. wroteNewline = wroteNewline0;
  121444. }
  121445. if (brackets.length !== 0)
  121446. t1.expectChar$1(B.JSArray_methods.get$last(brackets));
  121447. if (!allowEmpty && buffer._interpolation_buffer0$_contents.length === 0 && t3._contents.length === 0)
  121448. t1.error$1(0, "Expected token.");
  121449. return buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  121450. },
  121451. _stylesheet0$_interpolatedDeclarationValue$1$allowEmpty(allowEmpty) {
  121452. return this._stylesheet0$_interpolatedDeclarationValue$5$allowColon$allowEmpty$allowOpenBrace$allowSemicolon$silentComments(true, allowEmpty, true, false, true);
  121453. },
  121454. _stylesheet0$_interpolatedDeclarationValue$1$allowOpenBrace(allowOpenBrace) {
  121455. return this._stylesheet0$_interpolatedDeclarationValue$5$allowColon$allowEmpty$allowOpenBrace$allowSemicolon$silentComments(true, false, allowOpenBrace, false, true);
  121456. },
  121457. _stylesheet0$_interpolatedDeclarationValue$2$allowEmpty$allowSemicolon(allowEmpty, allowSemicolon) {
  121458. return this._stylesheet0$_interpolatedDeclarationValue$5$allowColon$allowEmpty$allowOpenBrace$allowSemicolon$silentComments(true, allowEmpty, true, allowSemicolon, true);
  121459. },
  121460. _stylesheet0$_interpolatedDeclarationValue$3$allowColon$allowEmpty$allowSemicolon(allowColon, allowEmpty, allowSemicolon) {
  121461. return this._stylesheet0$_interpolatedDeclarationValue$5$allowColon$allowEmpty$allowOpenBrace$allowSemicolon$silentComments(allowColon, allowEmpty, true, allowSemicolon, true);
  121462. },
  121463. _stylesheet0$_interpolatedDeclarationValue$0() {
  121464. return this._stylesheet0$_interpolatedDeclarationValue$5$allowColon$allowEmpty$allowOpenBrace$allowSemicolon$silentComments(true, false, true, false, true);
  121465. },
  121466. _stylesheet0$_interpolatedDeclarationValue$2$allowEmpty$allowOpenBrace(allowEmpty, allowOpenBrace) {
  121467. return this._stylesheet0$_interpolatedDeclarationValue$5$allowColon$allowEmpty$allowOpenBrace$allowSemicolon$silentComments(true, allowEmpty, allowOpenBrace, false, true);
  121468. },
  121469. _stylesheet0$_interpolatedDeclarationValue$1$silentComments(silentComments) {
  121470. return this._stylesheet0$_interpolatedDeclarationValue$5$allowColon$allowEmpty$allowOpenBrace$allowSemicolon$silentComments(true, false, true, false, silentComments);
  121471. },
  121472. interpolatedIdentifier$0() {
  121473. var t3, _1_0, _0_0, _this = this,
  121474. _s20_ = "Expected identifier.",
  121475. t1 = _this.scanner,
  121476. start = new A._SpanScannerState(t1, t1._string_scanner$_position),
  121477. t2 = new A.StringBuffer(""),
  121478. buffer = new A.InterpolationBuffer0(t2, A._setArrayType([], type$.JSArray_Object), A._setArrayType([], type$.JSArray_nullable_FileSpan));
  121479. if (t1.scanChar$1(45)) {
  121480. t3 = A.Primitives_stringFromCharCode(45);
  121481. t2._contents += t3;
  121482. if (t1.scanChar$1(45)) {
  121483. t3 = A.Primitives_stringFromCharCode(45);
  121484. t2._contents += t3;
  121485. _this._stylesheet0$_interpolatedIdentifierBody$1(buffer);
  121486. return buffer.interpolation$1(t1.spanFrom$1(start));
  121487. }
  121488. }
  121489. $label0$0: {
  121490. _1_0 = t1.peekChar$0();
  121491. if (_1_0 == null)
  121492. t1.error$1(0, _s20_);
  121493. if (_1_0 === 95 || A.CharacterExtension_get_isAlphabetic0(_1_0) || _1_0 >= 128) {
  121494. t3 = A.Primitives_stringFromCharCode(t1.readChar$0());
  121495. t2._contents += t3;
  121496. break $label0$0;
  121497. }
  121498. if (92 === _1_0) {
  121499. t3 = _this.escape$1$identifierStart(true);
  121500. t2._contents += t3;
  121501. break $label0$0;
  121502. }
  121503. if (35 === _1_0 && t1.peekChar$1(1) === 123) {
  121504. _0_0 = _this.singleInterpolation$0();
  121505. buffer.add$2(0, _0_0._0, _0_0._1);
  121506. break $label0$0;
  121507. }
  121508. t1.error$1(0, _s20_);
  121509. }
  121510. _this._stylesheet0$_interpolatedIdentifierBody$1(buffer);
  121511. return buffer.interpolation$1(t1.spanFrom$1(start));
  121512. },
  121513. _stylesheet0$_interpolatedIdentifierBody$1(buffer) {
  121514. var t1, t2, t3, t4, _1_0, t5, _0_0;
  121515. for (t1 = buffer._interpolation_buffer0$_contents, t2 = buffer._interpolation_buffer0$_spans, t3 = this.scanner, t4 = buffer._interpolation_buffer0$_text; true;) {
  121516. _1_0 = t3.peekChar$0();
  121517. if (_1_0 == null)
  121518. break;
  121519. t5 = true;
  121520. if (95 !== _1_0)
  121521. if (45 !== _1_0) {
  121522. if (!(_1_0 >= 97 && _1_0 <= 122))
  121523. t5 = _1_0 >= 65 && _1_0 <= 90;
  121524. else
  121525. t5 = true;
  121526. if (!t5)
  121527. t5 = _1_0 >= 48 && _1_0 <= 57;
  121528. else
  121529. t5 = true;
  121530. t5 = t5 || _1_0 >= 128;
  121531. }
  121532. if (t5) {
  121533. t5 = A.Primitives_stringFromCharCode(t3.readChar$0());
  121534. t4._contents += t5;
  121535. continue;
  121536. }
  121537. if (92 === _1_0) {
  121538. t5 = this.escape$0();
  121539. t4._contents += t5;
  121540. continue;
  121541. }
  121542. if (35 === _1_0 && t3.peekChar$1(1) === 123) {
  121543. _0_0 = this.singleInterpolation$0();
  121544. buffer._interpolation_buffer0$_flushText$0();
  121545. t1.push(_0_0._0);
  121546. t2.push(_0_0._1);
  121547. continue;
  121548. }
  121549. break;
  121550. }
  121551. },
  121552. singleInterpolation$0() {
  121553. var contents, span, _this = this,
  121554. t1 = _this.scanner,
  121555. t2 = t1._string_scanner$_position;
  121556. t1.expect$1("#{");
  121557. _this.whitespace$0();
  121558. contents = _this._stylesheet0$_expression$0();
  121559. t1.expectChar$1(125);
  121560. span = t1.spanFrom$1(new A._SpanScannerState(t1, t2));
  121561. if (_this.get$plainCss())
  121562. _this.error$2(0, string$.Interpp, span);
  121563. return new A._Record_2(contents, span);
  121564. },
  121565. _stylesheet0$_mediaQueryList$0() {
  121566. var t4, _this = this,
  121567. t1 = _this.scanner,
  121568. t2 = t1._string_scanner$_position,
  121569. t3 = new A.StringBuffer(""),
  121570. buffer = new A.InterpolationBuffer0(t3, A._setArrayType([], type$.JSArray_Object), A._setArrayType([], type$.JSArray_nullable_FileSpan));
  121571. for (; true;) {
  121572. _this.whitespace$0();
  121573. _this._stylesheet0$_mediaQuery$1(buffer);
  121574. _this.whitespace$0();
  121575. if (!t1.scanChar$1(44))
  121576. break;
  121577. t4 = A.Primitives_stringFromCharCode(44);
  121578. t3._contents += t4;
  121579. t4 = A.Primitives_stringFromCharCode(32);
  121580. t3._contents += t4;
  121581. }
  121582. return buffer.interpolation$1(t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  121583. },
  121584. _stylesheet0$_mediaQuery$1(buffer) {
  121585. var identifier1, t1, t2, identifier2, _this = this, _s3_ = "and";
  121586. if (_this.scanner.peekChar$0() === 40) {
  121587. _this._stylesheet0$_mediaInParens$1(buffer);
  121588. _this.whitespace$0();
  121589. if (_this.scanIdentifier$1(_s3_)) {
  121590. buffer._interpolation_buffer0$_text._contents += " and ";
  121591. _this.expectWhitespace$0();
  121592. _this._stylesheet0$_mediaLogicSequence$2(buffer, _s3_);
  121593. } else if (_this.scanIdentifier$1("or")) {
  121594. buffer._interpolation_buffer0$_text._contents += " or ";
  121595. _this.expectWhitespace$0();
  121596. _this._stylesheet0$_mediaLogicSequence$2(buffer, "or");
  121597. }
  121598. return;
  121599. }
  121600. identifier1 = _this.interpolatedIdentifier$0();
  121601. if (A.equalsIgnoreCase0(identifier1.get$asPlain(), "not")) {
  121602. _this.expectWhitespace$0();
  121603. if (!_this._stylesheet0$_lookingAtInterpolatedIdentifier$0()) {
  121604. buffer._interpolation_buffer0$_text._contents += "not ";
  121605. _this._stylesheet0$_mediaOrInterp$1(buffer);
  121606. return;
  121607. }
  121608. }
  121609. _this.whitespace$0();
  121610. buffer.addInterpolation$1(identifier1);
  121611. if (!_this._stylesheet0$_lookingAtInterpolatedIdentifier$0())
  121612. return;
  121613. t1 = buffer._interpolation_buffer0$_text;
  121614. t2 = A.Primitives_stringFromCharCode(32);
  121615. t1._contents += t2;
  121616. identifier2 = _this.interpolatedIdentifier$0();
  121617. if (A.equalsIgnoreCase0(identifier2.get$asPlain(), _s3_)) {
  121618. _this.expectWhitespace$0();
  121619. t1._contents += " and ";
  121620. } else {
  121621. _this.whitespace$0();
  121622. buffer.addInterpolation$1(identifier2);
  121623. if (_this.scanIdentifier$1(_s3_)) {
  121624. _this.expectWhitespace$0();
  121625. t1._contents += " and ";
  121626. } else
  121627. return;
  121628. }
  121629. if (_this.scanIdentifier$1("not")) {
  121630. _this.expectWhitespace$0();
  121631. t1._contents += "not ";
  121632. _this._stylesheet0$_mediaOrInterp$1(buffer);
  121633. return;
  121634. }
  121635. _this._stylesheet0$_mediaLogicSequence$2(buffer, _s3_);
  121636. return;
  121637. },
  121638. _stylesheet0$_mediaLogicSequence$2(buffer, operator) {
  121639. var t1, t2, _this = this;
  121640. for (t1 = buffer._interpolation_buffer0$_text; true;) {
  121641. _this._stylesheet0$_mediaOrInterp$1(buffer);
  121642. _this.whitespace$0();
  121643. if (!_this.scanIdentifier$1(operator))
  121644. return;
  121645. _this.expectWhitespace$0();
  121646. t2 = A.Primitives_stringFromCharCode(32);
  121647. t2 = t1._contents += t2;
  121648. t1._contents = t2 + operator;
  121649. t2 = A.Primitives_stringFromCharCode(32);
  121650. t1._contents += t2;
  121651. }
  121652. },
  121653. _stylesheet0$_mediaOrInterp$1(buffer) {
  121654. var _0_0;
  121655. if (this.scanner.peekChar$0() === 35) {
  121656. _0_0 = this.singleInterpolation$0();
  121657. buffer.add$2(0, _0_0._0, _0_0._1);
  121658. } else
  121659. this._stylesheet0$_mediaInParens$1(buffer);
  121660. },
  121661. _stylesheet0$_mediaInParens$1(buffer) {
  121662. var t2, t3, expressionBefore, expressionAfter, next, t4, expressionMiddle, _this = this,
  121663. t1 = _this.scanner;
  121664. t1.expectChar$2$name(40, "media condition in parentheses");
  121665. t2 = buffer._interpolation_buffer0$_text;
  121666. t3 = A.Primitives_stringFromCharCode(40);
  121667. t2._contents += t3;
  121668. _this.whitespace$0();
  121669. if (t1.peekChar$0() === 40) {
  121670. _this._stylesheet0$_mediaInParens$1(buffer);
  121671. _this.whitespace$0();
  121672. if (_this.scanIdentifier$1("and")) {
  121673. t2._contents += " and ";
  121674. _this.expectWhitespace$0();
  121675. _this._stylesheet0$_mediaLogicSequence$2(buffer, "and");
  121676. } else if (_this.scanIdentifier$1("or")) {
  121677. t2._contents += " or ";
  121678. _this.expectWhitespace$0();
  121679. _this._stylesheet0$_mediaLogicSequence$2(buffer, "or");
  121680. }
  121681. } else if (_this.scanIdentifier$1("not")) {
  121682. t2._contents += "not ";
  121683. _this.expectWhitespace$0();
  121684. _this._stylesheet0$_mediaOrInterp$1(buffer);
  121685. } else {
  121686. expressionBefore = _this._stylesheet0$_expressionUntilComparison$0();
  121687. buffer.add$2(0, expressionBefore, expressionBefore.get$span(expressionBefore));
  121688. if (t1.scanChar$1(58)) {
  121689. _this.whitespace$0();
  121690. t3 = A.Primitives_stringFromCharCode(58);
  121691. t2._contents += t3;
  121692. t3 = A.Primitives_stringFromCharCode(32);
  121693. t2._contents += t3;
  121694. expressionAfter = _this._stylesheet0$_expression$0();
  121695. buffer.add$2(0, expressionAfter, expressionAfter.get$span(expressionAfter));
  121696. } else {
  121697. next = t1.peekChar$0();
  121698. t3 = 60 !== next;
  121699. if (!t3 || 62 === next || 61 === next) {
  121700. t4 = A.Primitives_stringFromCharCode(32);
  121701. t2._contents += t4;
  121702. t4 = A.Primitives_stringFromCharCode(t1.readChar$0());
  121703. t2._contents += t4;
  121704. if ((!t3 || 62 === next) && t1.scanChar$1(61)) {
  121705. t4 = A.Primitives_stringFromCharCode(61);
  121706. t2._contents += t4;
  121707. }
  121708. t4 = A.Primitives_stringFromCharCode(32);
  121709. t2._contents += t4;
  121710. _this.whitespace$0();
  121711. expressionMiddle = _this._stylesheet0$_expressionUntilComparison$0();
  121712. buffer.add$2(0, expressionMiddle, expressionMiddle.get$span(expressionMiddle));
  121713. if (!t3 || 62 === next) {
  121714. next.toString;
  121715. t3 = t1.scanChar$1(next);
  121716. } else
  121717. t3 = false;
  121718. if (t3) {
  121719. t3 = A.Primitives_stringFromCharCode(32);
  121720. t2._contents += t3;
  121721. t3 = A.Primitives_stringFromCharCode(next);
  121722. t2._contents += t3;
  121723. if (t1.scanChar$1(61)) {
  121724. t3 = A.Primitives_stringFromCharCode(61);
  121725. t2._contents += t3;
  121726. }
  121727. t3 = A.Primitives_stringFromCharCode(32);
  121728. t2._contents += t3;
  121729. _this.whitespace$0();
  121730. expressionAfter = _this._stylesheet0$_expressionUntilComparison$0();
  121731. buffer.add$2(0, expressionAfter, expressionAfter.get$span(expressionAfter));
  121732. }
  121733. }
  121734. }
  121735. }
  121736. t1.expectChar$1(41);
  121737. _this.whitespace$0();
  121738. t1 = A.Primitives_stringFromCharCode(41);
  121739. t2._contents += t1;
  121740. },
  121741. _stylesheet0$_expressionUntilComparison$0() {
  121742. return this._stylesheet0$_expression$1$until(new A.StylesheetParser__expressionUntilComparison_closure0(this));
  121743. },
  121744. _stylesheet0$_supportsCondition$0() {
  121745. var condition, operator, right, endPosition, t3, t4, lowerOperator, _this = this,
  121746. t1 = _this.scanner,
  121747. t2 = t1._string_scanner$_position;
  121748. if (_this.scanIdentifier$1("not")) {
  121749. _this.whitespace$0();
  121750. return new A.SupportsNegation0(_this._stylesheet0$_supportsConditionInParens$0(), t1.spanFrom$1(new A._SpanScannerState(t1, t2)));
  121751. }
  121752. condition = _this._stylesheet0$_supportsConditionInParens$0();
  121753. _this.whitespace$0();
  121754. for (operator = null; _this.lookingAtIdentifier$0();) {
  121755. if (operator != null)
  121756. _this.expectIdentifier$1(operator);
  121757. else if (_this.scanIdentifier$1("or"))
  121758. operator = "or";
  121759. else {
  121760. _this.expectIdentifier$1("and");
  121761. operator = "and";
  121762. }
  121763. _this.whitespace$0();
  121764. right = _this._stylesheet0$_supportsConditionInParens$0();
  121765. endPosition = t1._string_scanner$_position;
  121766. t3 = t1._sourceFile;
  121767. t4 = new A._FileSpan(t3, t2, endPosition);
  121768. t4._FileSpan$3(t3, t2, endPosition);
  121769. condition = new A.SupportsOperation0(condition, right, operator, t4);
  121770. lowerOperator = operator.toLowerCase();
  121771. if (lowerOperator !== "and" && lowerOperator !== "or")
  121772. A.throwExpression(A.ArgumentError$value(operator, "operator", 'may only be "and" or "or".'));
  121773. _this.whitespace$0();
  121774. }
  121775. return condition;
  121776. },
  121777. _stylesheet0$_supportsConditionInParens$0() {
  121778. var $name, nameStart, wasInParentheses, identifier, _1_0, operation, contents, identifier0, t2, $arguments, _0_0, _0_4_isSet, _0_4, _0_40, condition, exception, value, _this = this,
  121779. t1 = _this.scanner,
  121780. start = new A._SpanScannerState(t1, t1._string_scanner$_position);
  121781. if (_this._stylesheet0$_lookingAtInterpolatedIdentifier$0()) {
  121782. identifier0 = _this.interpolatedIdentifier$0();
  121783. t2 = identifier0.get$asPlain();
  121784. if ((t2 == null ? null : t2.toLowerCase()) === "not")
  121785. _this.error$2(0, '"not" is not a valid identifier here.', identifier0.span);
  121786. if (t1.scanChar$1(40)) {
  121787. $arguments = _this._stylesheet0$_interpolatedDeclarationValue$2$allowEmpty$allowSemicolon(true, true);
  121788. t1.expectChar$1(41);
  121789. return new A.SupportsFunction0(identifier0, $arguments, t1.spanFrom$1(start));
  121790. } else {
  121791. _0_0 = identifier0.contents;
  121792. _0_4_isSet = _0_0.length === 1;
  121793. _0_4 = null;
  121794. if (_0_4_isSet) {
  121795. _0_40 = _0_0[0];
  121796. t2 = _0_40;
  121797. _0_4 = t2;
  121798. t2 = t2 instanceof A.Expression0;
  121799. } else
  121800. t2 = false;
  121801. if (t2) {
  121802. t2 = _0_4_isSet ? _0_4 : _0_0[0];
  121803. return new A.SupportsInterpolation0(type$.Expression_2._as(t2), t1.spanFrom$1(start));
  121804. } else
  121805. _this.error$2(0, "Expected @supports condition.", identifier0.span);
  121806. }
  121807. }
  121808. t1.expectChar$1(40);
  121809. _this.whitespace$0();
  121810. if (_this.scanIdentifier$1("not")) {
  121811. _this.whitespace$0();
  121812. condition = _this._stylesheet0$_supportsConditionInParens$0();
  121813. t1.expectChar$1(41);
  121814. return new A.SupportsNegation0(condition, t1.spanFrom$1(start));
  121815. } else if (t1.peekChar$0() === 40) {
  121816. condition = _this._stylesheet0$_supportsCondition$0();
  121817. t1.expectChar$1(41);
  121818. return condition.withSpan$1(t1.spanFrom$1(start));
  121819. }
  121820. $name = null;
  121821. nameStart = new A._SpanScannerState(t1, t1._string_scanner$_position);
  121822. wasInParentheses = _this._stylesheet0$_inParentheses;
  121823. try {
  121824. $name = _this._stylesheet0$_expression$0();
  121825. t1.expectChar$1(58);
  121826. } catch (exception) {
  121827. if (type$.FormatException._is(A.unwrapException(exception))) {
  121828. t1.set$state(nameStart);
  121829. _this._stylesheet0$_inParentheses = wasInParentheses;
  121830. identifier = _this.interpolatedIdentifier$0();
  121831. _1_0 = _this._stylesheet0$_trySupportsOperation$2(identifier, nameStart);
  121832. operation = null;
  121833. if (_1_0 != null) {
  121834. operation = _1_0;
  121835. t1.expectChar$1(41);
  121836. t2 = operation;
  121837. t1 = t1.spanFrom$1(start);
  121838. return A.SupportsOperation$0(t2.left, t2.right, t2.operator, t1);
  121839. }
  121840. t2 = new A.InterpolationBuffer0(new A.StringBuffer(""), A._setArrayType([], type$.JSArray_Object), A._setArrayType([], type$.JSArray_nullable_FileSpan));
  121841. t2.addInterpolation$1(identifier);
  121842. t2.addInterpolation$1(_this._stylesheet0$_interpolatedDeclarationValue$3$allowColon$allowEmpty$allowSemicolon(false, true, true));
  121843. contents = t2.interpolation$1(t1.spanFrom$1(nameStart));
  121844. if (t1.peekChar$0() === 58)
  121845. throw exception;
  121846. t1.expectChar$1(41);
  121847. return new A.SupportsAnything0(contents, t1.spanFrom$1(start));
  121848. } else
  121849. throw exception;
  121850. }
  121851. value = _this._stylesheet0$_supportsDeclarationValue$1($name);
  121852. t1.expectChar$1(41);
  121853. return new A.SupportsDeclaration0($name, value, t1.spanFrom$1(start));
  121854. },
  121855. _stylesheet0$_supportsDeclarationValue$1($name) {
  121856. var t1 = false;
  121857. if ($name instanceof A.StringExpression0)
  121858. if (!$name.hasQuotes)
  121859. t1 = B.JSString_methods.startsWith$1($name.text.get$initialPlain(), "--");
  121860. if (t1)
  121861. return new A.StringExpression0(this._stylesheet0$_interpolatedDeclarationValue$0(), false);
  121862. else {
  121863. this.whitespace$0();
  121864. return this._stylesheet0$_expression$0();
  121865. }
  121866. },
  121867. _stylesheet0$_trySupportsOperation$2(interpolation, start) {
  121868. var expression, beforeWhitespace, t2, t3, operator, operation, right, t4, endPosition, t5, t6, lowerOperator, _this = this, _null = null,
  121869. t1 = interpolation.contents;
  121870. if (t1.length !== 1)
  121871. return _null;
  121872. expression = B.JSArray_methods.get$first(t1);
  121873. if (!(expression instanceof A.Expression0))
  121874. return _null;
  121875. t1 = _this.scanner;
  121876. beforeWhitespace = new A._SpanScannerState(t1, t1._string_scanner$_position);
  121877. _this.whitespace$0();
  121878. for (t2 = start.position, t3 = interpolation.span, operator = _null, operation = operator; _this.lookingAtIdentifier$0();) {
  121879. if (operator != null)
  121880. _this.expectIdentifier$1(operator);
  121881. else if (_this.scanIdentifier$1("and"))
  121882. operator = "and";
  121883. else {
  121884. if (!_this.scanIdentifier$1("or")) {
  121885. if (beforeWhitespace._scanner !== t1)
  121886. A.throwExpression(A.ArgumentError$(string$.The_gi, _null));
  121887. t2 = beforeWhitespace.position;
  121888. if ((t2 === 0 ? 1 / t2 < 0 : t2 < 0) || t2 > t1.string.length)
  121889. A.throwExpression(A.ArgumentError$("Invalid position " + t2, _null));
  121890. t1._string_scanner$_position = t2;
  121891. return t1._lastMatch = null;
  121892. }
  121893. operator = "or";
  121894. }
  121895. _this.whitespace$0();
  121896. right = _this._stylesheet0$_supportsConditionInParens$0();
  121897. t4 = operation == null ? new A.SupportsInterpolation0(expression, t3) : operation;
  121898. endPosition = t1._string_scanner$_position;
  121899. t5 = t1._sourceFile;
  121900. t6 = new A._FileSpan(t5, t2, endPosition);
  121901. t6._FileSpan$3(t5, t2, endPosition);
  121902. operation = new A.SupportsOperation0(t4, right, operator, t6);
  121903. lowerOperator = operator.toLowerCase();
  121904. if (lowerOperator !== "and" && lowerOperator !== "or")
  121905. A.throwExpression(A.ArgumentError$value(operator, "operator", 'may only be "and" or "or".'));
  121906. _this.whitespace$0();
  121907. }
  121908. return operation;
  121909. },
  121910. _stylesheet0$_lookingAtInterpolatedIdentifier$0() {
  121911. var t2, _0_0,
  121912. t1 = this.scanner,
  121913. _1_0 = t1.peekChar$0();
  121914. $label0$0: {
  121915. t2 = false;
  121916. if (_1_0 == null) {
  121917. t1 = t2;
  121918. break $label0$0;
  121919. }
  121920. if (_1_0 === 95 || A.CharacterExtension_get_isAlphabetic0(_1_0) || _1_0 >= 128 || 92 === _1_0) {
  121921. t1 = true;
  121922. break $label0$0;
  121923. }
  121924. if (35 === _1_0) {
  121925. t1 = t1.peekChar$1(1) === 123;
  121926. break $label0$0;
  121927. }
  121928. if (45 === _1_0) {
  121929. _0_0 = t1.peekChar$1(1);
  121930. $label1$1: {
  121931. if (_0_0 == null) {
  121932. t1 = t2;
  121933. break $label1$1;
  121934. }
  121935. if (35 === _0_0) {
  121936. t1 = t1.peekChar$1(2) === 123;
  121937. break $label1$1;
  121938. }
  121939. if (_0_0 === 95 || A.CharacterExtension_get_isAlphabetic0(_0_0) || _0_0 >= 128 || 92 === _0_0 || 45 === _0_0) {
  121940. t1 = true;
  121941. break $label1$1;
  121942. }
  121943. t1 = t2;
  121944. break $label1$1;
  121945. }
  121946. break $label0$0;
  121947. }
  121948. t1 = t2;
  121949. break $label0$0;
  121950. }
  121951. return t1;
  121952. },
  121953. _stylesheet0$_lookingAtPotentialPropertyHack$0() {
  121954. var t1 = this.scanner,
  121955. _0_0 = t1.peekChar$0();
  121956. $label0$0: {
  121957. if (58 === _0_0 || 42 === _0_0 || 46 === _0_0) {
  121958. t1 = true;
  121959. break $label0$0;
  121960. }
  121961. if (35 === _0_0) {
  121962. t1 = t1.peekChar$1(1) !== 123;
  121963. break $label0$0;
  121964. }
  121965. t1 = false;
  121966. break $label0$0;
  121967. }
  121968. return t1;
  121969. },
  121970. _stylesheet0$_lookingAtInterpolatedIdentifierBody$0() {
  121971. var t2, t3,
  121972. t1 = this.scanner,
  121973. _0_0 = t1.peekChar$0();
  121974. $label0$0: {
  121975. t2 = false;
  121976. if (_0_0 == null) {
  121977. t1 = t2;
  121978. break $label0$0;
  121979. }
  121980. if (!(_0_0 === 95 || A.CharacterExtension_get_isAlphabetic0(_0_0) || _0_0 >= 128))
  121981. t3 = _0_0 >= 48 && _0_0 <= 57 || _0_0 === 45;
  121982. else
  121983. t3 = true;
  121984. if (t3 || 92 === _0_0) {
  121985. t1 = true;
  121986. break $label0$0;
  121987. }
  121988. if (35 === _0_0) {
  121989. t1 = t1.peekChar$1(1) === 123;
  121990. break $label0$0;
  121991. }
  121992. t1 = t2;
  121993. break $label0$0;
  121994. }
  121995. return t1;
  121996. },
  121997. _stylesheet0$_lookingAtExpression$0() {
  121998. var t2, _0_0,
  121999. t1 = this.scanner,
  122000. _1_0 = t1.peekChar$0();
  122001. $label0$0: {
  122002. t2 = true;
  122003. if (_1_0 == null) {
  122004. t1 = false;
  122005. break $label0$0;
  122006. }
  122007. if (46 === _1_0) {
  122008. t1 = t1.peekChar$1(1) !== 46;
  122009. break $label0$0;
  122010. }
  122011. if (33 === _1_0) {
  122012. _0_0 = t1.peekChar$1(1);
  122013. $label1$1: {
  122014. if (_0_0 != null)
  122015. if (105 !== _0_0)
  122016. if (73 !== _0_0)
  122017. t1 = _0_0 === 32 || _0_0 === 9 || _0_0 === 10 || _0_0 === 13 || _0_0 === 12;
  122018. else
  122019. t1 = t2;
  122020. else
  122021. t1 = t2;
  122022. else
  122023. t1 = t2;
  122024. if (t1)
  122025. break $label1$1;
  122026. break $label1$1;
  122027. }
  122028. break $label0$0;
  122029. }
  122030. t1 = true;
  122031. if (40 !== _1_0)
  122032. if (47 !== _1_0)
  122033. if (91 !== _1_0)
  122034. if (39 !== _1_0)
  122035. if (34 !== _1_0)
  122036. if (35 !== _1_0)
  122037. if (43 !== _1_0)
  122038. if (45 !== _1_0)
  122039. if (92 !== _1_0)
  122040. if (36 !== _1_0)
  122041. if (38 !== _1_0)
  122042. if (!(_1_0 === 95 || A.CharacterExtension_get_isAlphabetic0(_1_0) || _1_0 >= 128))
  122043. t1 = _1_0 >= 48 && _1_0 <= 57;
  122044. if (t1) {
  122045. t1 = t2;
  122046. break $label0$0;
  122047. }
  122048. t1 = false;
  122049. break $label0$0;
  122050. }
  122051. return t1;
  122052. },
  122053. _stylesheet0$_withChildren$1$3(child, start, create) {
  122054. var result = create.call$2(this.children$1(0, child), this.scanner.spanFrom$1(start));
  122055. this.whitespaceWithoutComments$0();
  122056. return result;
  122057. },
  122058. _stylesheet0$_withChildren$3(child, start, create) {
  122059. return this._stylesheet0$_withChildren$1$3(child, start, create, type$.dynamic);
  122060. },
  122061. _stylesheet0$_urlString$0() {
  122062. var innerError, stackTrace, t2, exception,
  122063. t1 = this.scanner,
  122064. start = new A._SpanScannerState(t1, t1._string_scanner$_position),
  122065. url = this.string$0();
  122066. try {
  122067. t2 = A.Uri_parse(url);
  122068. return t2;
  122069. } catch (exception) {
  122070. t2 = A.unwrapException(exception);
  122071. if (type$.FormatException._is(t2)) {
  122072. innerError = t2;
  122073. stackTrace = A.getTraceFromException(exception);
  122074. this.error$3(0, "Invalid URL: " + J.get$message$x(innerError), t1.spanFrom$1(start), stackTrace);
  122075. } else
  122076. throw exception;
  122077. }
  122078. },
  122079. _stylesheet0$_publicIdentifier$0() {
  122080. var _this = this,
  122081. t1 = _this.scanner,
  122082. t2 = t1._string_scanner$_position,
  122083. result = _this.identifier$0();
  122084. _this._stylesheet0$_assertPublic$2(result, new A.StylesheetParser__publicIdentifier_closure0(_this, new A._SpanScannerState(t1, t2)));
  122085. return result;
  122086. },
  122087. _stylesheet0$_assertPublic$2(identifier, span) {
  122088. var first = identifier.charCodeAt(0);
  122089. if (!(first === 45 || first === 95))
  122090. return;
  122091. this.error$2(0, string$.Privat, span.call$0());
  122092. },
  122093. _stylesheet0$_addOrInject$2(buffer, expression) {
  122094. if (expression instanceof A.StringExpression0 && !expression.hasQuotes)
  122095. buffer.addInterpolation$1(expression.text);
  122096. else
  122097. buffer.add$2(0, expression, expression.get$span(expression));
  122098. },
  122099. get$plainCss() {
  122100. return false;
  122101. }
  122102. };
  122103. A.StylesheetParser_parse_closure0.prototype = {
  122104. call$0() {
  122105. var statements, t4,
  122106. t1 = this.$this,
  122107. t2 = t1.scanner,
  122108. t3 = t2._string_scanner$_position;
  122109. t2.scanChar$1(65279);
  122110. statements = t1.statements$1(new A.StylesheetParser_parse__closure1(t1));
  122111. t2.expectDone$0();
  122112. t4 = t1._stylesheet0$_globalVariables.get$values(0);
  122113. B.JSArray_methods.addAll$1(statements, A.MappedIterable_MappedIterable(t4, new A.StylesheetParser_parse__closure2(), A._instanceType(t4)._eval$1("Iterable.E"), type$.Statement_2));
  122114. return A.Stylesheet$internal0(statements, t2.spanFrom$1(new A._SpanScannerState(t2, t3)), t1.warnings, t1.get$plainCss());
  122115. },
  122116. $signature: 594
  122117. };
  122118. A.StylesheetParser_parse__closure1.prototype = {
  122119. call$0() {
  122120. var t1 = this.$this;
  122121. if (t1.scanner.scan$1("@charset")) {
  122122. t1.whitespace$0();
  122123. t1.string$0();
  122124. return null;
  122125. }
  122126. return t1._stylesheet0$_statement$1$root(true);
  122127. },
  122128. $signature: 595
  122129. };
  122130. A.StylesheetParser_parse__closure2.prototype = {
  122131. call$1(declaration) {
  122132. var t1 = declaration.expression;
  122133. return A.VariableDeclaration$0(declaration.name, new A.NullExpression0(t1.get$span(t1)), declaration.span, null, false, true, null);
  122134. },
  122135. $signature: 596
  122136. };
  122137. A.StylesheetParser_parseArgumentDeclaration_closure0.prototype = {
  122138. call$0() {
  122139. var $arguments,
  122140. t1 = this.$this,
  122141. t2 = t1.scanner;
  122142. t2.expectChar$2$name(64, "@-rule");
  122143. t1.identifier$0();
  122144. t1.whitespace$0();
  122145. t1.identifier$0();
  122146. $arguments = t1._stylesheet0$_argumentDeclaration$0();
  122147. t1.whitespace$0();
  122148. t2.expectChar$1(123);
  122149. return $arguments;
  122150. },
  122151. $signature: 597
  122152. };
  122153. A.StylesheetParser__parseSingleProduction_closure0.prototype = {
  122154. call$0() {
  122155. var result = this.production.call$0();
  122156. this.$this.scanner.expectDone$0();
  122157. return result;
  122158. },
  122159. $signature() {
  122160. return this.T._eval$1("0()");
  122161. }
  122162. };
  122163. A.StylesheetParser_parseSignature_closure.prototype = {
  122164. call$0() {
  122165. var $arguments, t2, t3,
  122166. t1 = this.$this,
  122167. $name = t1.identifier$0();
  122168. if (this.requireParens || t1.scanner.peekChar$0() === 40)
  122169. $arguments = t1._stylesheet0$_argumentDeclaration$0();
  122170. else {
  122171. t2 = t1.scanner;
  122172. t2 = A.FileLocation$_(t2._sourceFile, t2._string_scanner$_position);
  122173. t3 = t2.offset;
  122174. $arguments = new A.ArgumentDeclaration0(B.List_empty24, null, A._FileSpan$(t2.file, t3, t3));
  122175. }
  122176. t1.scanner.expectDone$0();
  122177. return new A._Record_2($name, $arguments);
  122178. },
  122179. $signature: 598
  122180. };
  122181. A.StylesheetParser__statement_closure0.prototype = {
  122182. call$0() {
  122183. return this.$this._stylesheet0$_statement$0();
  122184. },
  122185. $signature: 136
  122186. };
  122187. A.StylesheetParser_variableDeclarationWithoutNamespace_closure1.prototype = {
  122188. call$0() {
  122189. return this.$this.scanner.spanFrom$1(this.start);
  122190. },
  122191. $signature: 29
  122192. };
  122193. A.StylesheetParser_variableDeclarationWithoutNamespace_closure2.prototype = {
  122194. call$0() {
  122195. return this.declaration;
  122196. },
  122197. $signature: 599
  122198. };
  122199. A.StylesheetParser__styleRule_closure0.prototype = {
  122200. call$2(children, span) {
  122201. var _this = this,
  122202. t1 = _this.$this;
  122203. if (t1.get$indented() && children.length === 0)
  122204. t1.warnings.push(new A._Record_3_deprecation_message_span(null, string$.This_s, _this._box_0.interpolation.span));
  122205. t1._stylesheet0$_inStyleRule = _this.wasInStyleRule;
  122206. return A.StyleRule$0(_this._box_0.interpolation, children, t1.scanner.spanFrom$1(_this.start));
  122207. },
  122208. $signature: 600
  122209. };
  122210. A.StylesheetParser__tryDeclarationChildren_closure0.prototype = {
  122211. call$2(children, span) {
  122212. return A.Declaration$nested0(this.name, children, span, this.value);
  122213. },
  122214. $signature: 601
  122215. };
  122216. A.StylesheetParser__atRootRule_closure1.prototype = {
  122217. call$2(children, span) {
  122218. return A.AtRootRule$0(children, span, this.query);
  122219. },
  122220. $signature: 262
  122221. };
  122222. A.StylesheetParser__atRootRule_closure2.prototype = {
  122223. call$2(children, span) {
  122224. return A.AtRootRule$0(children, span, null);
  122225. },
  122226. $signature: 262
  122227. };
  122228. A.StylesheetParser__eachRule_closure0.prototype = {
  122229. call$2(children, span) {
  122230. var _this = this;
  122231. _this.$this._stylesheet0$_inControlDirective = _this.wasInControlDirective;
  122232. return A.EachRule$0(_this.variables, _this.list, children, span);
  122233. },
  122234. $signature: 603
  122235. };
  122236. A.StylesheetParser__functionRule_closure0.prototype = {
  122237. call$2(children, span) {
  122238. return A.FunctionRule$0(this.name, this.$arguments, children, span, this.precedingComment);
  122239. },
  122240. $signature: 604
  122241. };
  122242. A.StylesheetParser__forRule_closure1.prototype = {
  122243. call$0() {
  122244. var t1 = this.$this;
  122245. if (!t1.lookingAtIdentifier$0())
  122246. return false;
  122247. if (t1.scanIdentifier$1("to"))
  122248. return this._box_0.exclusive = true;
  122249. else if (t1.scanIdentifier$1("through")) {
  122250. this._box_0.exclusive = false;
  122251. return true;
  122252. } else
  122253. return false;
  122254. },
  122255. $signature: 24
  122256. };
  122257. A.StylesheetParser__forRule_closure2.prototype = {
  122258. call$2(children, span) {
  122259. var t1, _this = this;
  122260. _this.$this._stylesheet0$_inControlDirective = _this.wasInControlDirective;
  122261. t1 = _this._box_0.exclusive;
  122262. t1.toString;
  122263. return A.ForRule$0(_this.variable, _this.from, _this.to, children, span, t1);
  122264. },
  122265. $signature: 605
  122266. };
  122267. A.StylesheetParser__memberList_closure0.prototype = {
  122268. call$0() {
  122269. var t1 = this.$this;
  122270. if (t1.scanner.peekChar$0() === 36)
  122271. this.variables.add$1(0, t1.variableName$0());
  122272. else
  122273. this.identifiers.add$1(0, t1.identifier$1$normalize(true));
  122274. },
  122275. $signature: 1
  122276. };
  122277. A.StylesheetParser__includeRule_closure0.prototype = {
  122278. call$2(children, span) {
  122279. return A.ContentBlock$0(this.contentArguments_, children, span);
  122280. },
  122281. $signature: 606
  122282. };
  122283. A.StylesheetParser_mediaRule_closure0.prototype = {
  122284. call$2(children, span) {
  122285. return A.MediaRule$0(this.query, children, span);
  122286. },
  122287. $signature: 607
  122288. };
  122289. A.StylesheetParser__mixinRule_closure0.prototype = {
  122290. call$2(children, span) {
  122291. var _this = this;
  122292. _this.$this._stylesheet0$_inMixin = false;
  122293. return A.MixinRule$0(_this.name, _this.$arguments, children, span, _this.precedingComment);
  122294. },
  122295. $signature: 608
  122296. };
  122297. A.StylesheetParser_mozDocumentRule_closure0.prototype = {
  122298. call$2(children, span) {
  122299. var _this = this;
  122300. if (_this._box_0.needsDeprecationWarning)
  122301. _this.$this.warnings.push(new A._Record_3_deprecation_message_span(B.Deprecation_Ctw, string$.x40_moz_, span));
  122302. return A.AtRule$0(_this.name, span, children, _this.value);
  122303. },
  122304. $signature: 263
  122305. };
  122306. A.StylesheetParser_supportsRule_closure0.prototype = {
  122307. call$2(children, span) {
  122308. return A.SupportsRule$0(this.condition, children, span);
  122309. },
  122310. $signature: 610
  122311. };
  122312. A.StylesheetParser__whileRule_closure0.prototype = {
  122313. call$2(children, span) {
  122314. this.$this._stylesheet0$_inControlDirective = this.wasInControlDirective;
  122315. return A.WhileRule$0(this.condition, children, span);
  122316. },
  122317. $signature: 611
  122318. };
  122319. A.StylesheetParser_unknownAtRule_closure0.prototype = {
  122320. call$2(children, span) {
  122321. return A.AtRule$0(this.name, span, children, this._box_0.value);
  122322. },
  122323. $signature: 263
  122324. };
  122325. A.StylesheetParser__expression_resetState0.prototype = {
  122326. call$0() {
  122327. var t2,
  122328. t1 = this._box_0;
  122329. t1.operands_ = t1.operators_ = t1.spaceExpressions_ = t1.commaExpressions_ = null;
  122330. t2 = this.$this;
  122331. t2.scanner.set$state(this.start);
  122332. t1.allowSlash = true;
  122333. t1.singleExpression_ = t2._stylesheet0$_singleExpression$0();
  122334. },
  122335. $signature: 0
  122336. };
  122337. A.StylesheetParser__expression_resolveOneOperation0.prototype = {
  122338. call$0() {
  122339. var t2, t3, t4, t5, t6, t7, _this = this,
  122340. t1 = _this._box_0,
  122341. operator = t1.operators_.pop(),
  122342. left = t1.operands_.pop(),
  122343. right = t1.singleExpression_;
  122344. if (right == null) {
  122345. t2 = _this.$this.scanner;
  122346. t3 = operator.operator.length;
  122347. t2.error$3$length$position(0, "Expected expression.", t3, t2._string_scanner$_position - t3);
  122348. }
  122349. if (t1.allowSlash) {
  122350. t2 = _this.$this;
  122351. t2 = !t2._stylesheet0$_inParentheses && operator === B.BinaryOperator_U770 && t2._stylesheet0$_isSlashOperand$1(left) && t2._stylesheet0$_isSlashOperand$1(right);
  122352. } else
  122353. t2 = false;
  122354. if (t2)
  122355. t1.singleExpression_ = new A.BinaryOperationExpression0(B.BinaryOperator_U770, left, right, true);
  122356. else {
  122357. t1.singleExpression_ = new A.BinaryOperationExpression0(operator, left, right, false);
  122358. t2 = t1.allowSlash = false;
  122359. if (B.BinaryOperator_u150 === operator || B.BinaryOperator_SjO0 === operator) {
  122360. t3 = _this.$this;
  122361. t4 = t3.scanner.string;
  122362. t5 = right.get$span(right);
  122363. t5 = t5.get$start(t5);
  122364. t6 = right.get$span(right);
  122365. t7 = operator.operator;
  122366. if (B.JSString_methods.substring$2(t4, t5.offset - 1, t6.get$start(t6).offset) === t7) {
  122367. t2 = left.get$span(left);
  122368. t2 = t4.charCodeAt(t2.get$end(t2).offset);
  122369. t2 = t2 === 32 || t2 === 9 || t2 === 10 || t2 === 13 || t2 === 12;
  122370. }
  122371. if (t2) {
  122372. t2 = left.toString$0(0);
  122373. t4 = right.toString$0(0);
  122374. t5 = left.toString$0(0);
  122375. t6 = right.toString$0(0);
  122376. t1 = t1.singleExpression_;
  122377. t3.warnings.push(new A._Record_3_deprecation_message_span(B.Deprecation_UW2, "This operation is parsed as:\n\n " + t2 + " " + t7 + " " + t4 + string$.x0a_but_ + t5 + " (" + t7 + t6 + ")\n\nAdd a space after " + t7 + string$.x20to_cl, t1.get$span(t1)));
  122378. }
  122379. }
  122380. }
  122381. },
  122382. $signature: 0
  122383. };
  122384. A.StylesheetParser__expression_resolveOperations0.prototype = {
  122385. call$0() {
  122386. var t1,
  122387. operators = this._box_0.operators_;
  122388. if (operators == null)
  122389. return;
  122390. for (t1 = this.resolveOneOperation; operators.length !== 0;)
  122391. t1.call$0();
  122392. },
  122393. $signature: 0
  122394. };
  122395. A.StylesheetParser__expression_addSingleExpression0.prototype = {
  122396. call$1(expression) {
  122397. var t2, spaceExpressions, _this = this,
  122398. t1 = _this._box_0;
  122399. if (t1.singleExpression_ != null) {
  122400. t2 = _this.$this;
  122401. if (t2._stylesheet0$_inParentheses) {
  122402. t2._stylesheet0$_inParentheses = false;
  122403. if (t1.allowSlash) {
  122404. _this.resetState.call$0();
  122405. return;
  122406. }
  122407. }
  122408. spaceExpressions = t1.spaceExpressions_;
  122409. if (spaceExpressions == null)
  122410. spaceExpressions = t1.spaceExpressions_ = A._setArrayType([], type$.JSArray_Expression_2);
  122411. _this.resolveOperations.call$0();
  122412. t2 = t1.singleExpression_;
  122413. t2.toString;
  122414. spaceExpressions.push(t2);
  122415. t1.allowSlash = true;
  122416. }
  122417. t1.singleExpression_ = expression;
  122418. },
  122419. $signature: 612
  122420. };
  122421. A.StylesheetParser__expression_addOperator0.prototype = {
  122422. call$1(operator) {
  122423. var t2, t3, operators, operands, t4, singleExpression,
  122424. t1 = this.$this;
  122425. if (t1.get$plainCss() && operator !== B.BinaryOperator_wdM0 && operator !== B.BinaryOperator_u150 && operator !== B.BinaryOperator_SjO0 && operator !== B.BinaryOperator_2No0 && operator !== B.BinaryOperator_U770) {
  122426. t2 = t1.scanner;
  122427. t3 = operator.operator.length;
  122428. t2.error$3$length$position(0, "Operators aren't allowed in plain CSS.", t3, t2._string_scanner$_position - t3);
  122429. }
  122430. t2 = this._box_0;
  122431. t2.allowSlash = t2.allowSlash && operator === B.BinaryOperator_U770;
  122432. operators = t2.operators_;
  122433. if (operators == null)
  122434. operators = t2.operators_ = A._setArrayType([], type$.JSArray_BinaryOperator_2);
  122435. operands = t2.operands_;
  122436. if (operands == null)
  122437. operands = t2.operands_ = A._setArrayType([], type$.JSArray_Expression_2);
  122438. t3 = this.resolveOneOperation;
  122439. t4 = operator.precedence;
  122440. while (true) {
  122441. if (!(operators.length !== 0 && B.JSArray_methods.get$last(operators).precedence >= t4))
  122442. break;
  122443. t3.call$0();
  122444. }
  122445. operators.push(operator);
  122446. singleExpression = t2.singleExpression_;
  122447. if (singleExpression == null) {
  122448. t3 = t1.scanner;
  122449. t4 = operator.operator.length;
  122450. t3.error$3$length$position(0, "Expected expression.", t4, t3._string_scanner$_position - t4);
  122451. }
  122452. operands.push(singleExpression);
  122453. t1.whitespace$0();
  122454. t2.singleExpression_ = t1._stylesheet0$_singleExpression$0();
  122455. },
  122456. $signature: 613
  122457. };
  122458. A.StylesheetParser__expression_resolveSpaceExpressions0.prototype = {
  122459. call$0() {
  122460. var t1, spaceExpressions, singleExpression, t2;
  122461. this.resolveOperations.call$0();
  122462. t1 = this._box_0;
  122463. spaceExpressions = t1.spaceExpressions_;
  122464. if (spaceExpressions == null)
  122465. return;
  122466. singleExpression = t1.singleExpression_;
  122467. if (singleExpression == null)
  122468. this.$this.scanner.error$1(0, "Expected expression.");
  122469. spaceExpressions.push(singleExpression);
  122470. t2 = B.JSArray_methods.get$first(spaceExpressions);
  122471. t2 = t2.get$span(t2).expand$1(0, singleExpression.get$span(singleExpression));
  122472. t1.singleExpression_ = new A.ListExpression0(A.List_List$unmodifiable(spaceExpressions, type$.Expression_2), B.ListSeparator_nbm0, false, t2);
  122473. t1.spaceExpressions_ = null;
  122474. },
  122475. $signature: 0
  122476. };
  122477. A.StylesheetParser_expressionUntilComma_closure0.prototype = {
  122478. call$0() {
  122479. return this.$this.scanner.peekChar$0() === 44;
  122480. },
  122481. $signature: 24
  122482. };
  122483. A.StylesheetParser__isHexColor_closure0.prototype = {
  122484. call$1(char) {
  122485. return A.CharacterExtension_get_isHex0(char);
  122486. },
  122487. $signature: 47
  122488. };
  122489. A.StylesheetParser__unicodeRange_closure1.prototype = {
  122490. call$1(char) {
  122491. return char != null && A.CharacterExtension_get_isHex0(char);
  122492. },
  122493. $signature: 32
  122494. };
  122495. A.StylesheetParser__unicodeRange_closure2.prototype = {
  122496. call$1(char) {
  122497. return char != null && A.CharacterExtension_get_isHex0(char);
  122498. },
  122499. $signature: 32
  122500. };
  122501. A.StylesheetParser_namespacedExpression_closure0.prototype = {
  122502. call$0() {
  122503. return this.$this.scanner.spanFrom$1(this.start);
  122504. },
  122505. $signature: 29
  122506. };
  122507. A.StylesheetParser_trySpecialFunction_closure0.prototype = {
  122508. call$1(contents) {
  122509. return new A.StringExpression0(contents, false);
  122510. },
  122511. $signature: 614
  122512. };
  122513. A.StylesheetParser__expressionUntilComparison_closure0.prototype = {
  122514. call$0() {
  122515. var t1 = this.$this.scanner,
  122516. _0_0 = t1.peekChar$0();
  122517. $label0$0: {
  122518. if (61 === _0_0) {
  122519. t1 = t1.peekChar$1(1) !== 61;
  122520. break $label0$0;
  122521. }
  122522. if (60 === _0_0 || 62 === _0_0) {
  122523. t1 = true;
  122524. break $label0$0;
  122525. }
  122526. t1 = false;
  122527. break $label0$0;
  122528. }
  122529. return t1;
  122530. },
  122531. $signature: 24
  122532. };
  122533. A.StylesheetParser__publicIdentifier_closure0.prototype = {
  122534. call$0() {
  122535. return this.$this.scanner.spanFrom$1(this.start);
  122536. },
  122537. $signature: 29
  122538. };
  122539. A.Stylesheet0.prototype = {
  122540. Stylesheet$internal$4$plainCss0(children, span, parseTimeWarnings, plainCss) {
  122541. var t1, t2, t3, t4, _i, child;
  122542. for (t1 = this.children, t2 = t1.length, t3 = this._stylesheet1$_forwards, t4 = this._stylesheet1$_uses, _i = 0; _i < t2; ++_i) {
  122543. child = t1[_i];
  122544. if (child instanceof A.UseRule0) {
  122545. t4.push(child);
  122546. continue;
  122547. }
  122548. if (child instanceof A.ForwardRule0) {
  122549. t3.push(child);
  122550. continue;
  122551. }
  122552. if (child instanceof A.SilentComment0 || child instanceof A.LoudComment0 || child instanceof A.VariableDeclaration0)
  122553. continue;
  122554. break;
  122555. }
  122556. },
  122557. accept$1$1(visitor) {
  122558. return visitor.visitStylesheet$1(0, this);
  122559. },
  122560. accept$1(visitor) {
  122561. return this.accept$1$1(visitor, type$.dynamic);
  122562. },
  122563. toString$0(_) {
  122564. var t1 = this.children;
  122565. return (t1 && B.JSArray_methods).join$1(t1, " ");
  122566. },
  122567. get$span(receiver) {
  122568. return this.span;
  122569. }
  122570. };
  122571. A.SupportsExpression0.prototype = {
  122572. get$span(_) {
  122573. var t1 = this.condition;
  122574. return t1.get$span(t1);
  122575. },
  122576. accept$1$1(visitor) {
  122577. return visitor.visitSupportsExpression$1(0, this);
  122578. },
  122579. accept$1(visitor) {
  122580. return this.accept$1$1(visitor, type$.dynamic);
  122581. },
  122582. toString$0(_) {
  122583. return this.condition.toString$0(0);
  122584. }
  122585. };
  122586. A.ModifiableCssSupportsRule0.prototype = {
  122587. accept$1$1(visitor) {
  122588. return visitor.visitCssSupportsRule$1(this);
  122589. },
  122590. accept$1(visitor) {
  122591. return this.accept$1$1(visitor, type$.dynamic);
  122592. },
  122593. equalsIgnoringChildren$1(other) {
  122594. var t1, t2;
  122595. if (other instanceof A.ModifiableCssSupportsRule0) {
  122596. t1 = this.condition;
  122597. t2 = other.condition;
  122598. t1 = t1.$ti._is(t2) && J.$eq$(t2.value, t1.value);
  122599. } else
  122600. t1 = false;
  122601. return t1;
  122602. },
  122603. copyWithoutChildren$0() {
  122604. return A.ModifiableCssSupportsRule$0(this.condition, this.span);
  122605. },
  122606. get$span(receiver) {
  122607. return this.span;
  122608. }
  122609. };
  122610. A.SupportsRule0.prototype = {
  122611. accept$1$1(visitor) {
  122612. return visitor.visitSupportsRule$1(0, this);
  122613. },
  122614. accept$1(visitor) {
  122615. return this.accept$1$1(visitor, type$.dynamic);
  122616. },
  122617. toString$0(_) {
  122618. var t1 = this.children;
  122619. return "@supports " + this.condition.toString$0(0) + " {" + (t1 && B.JSArray_methods).join$1(t1, " ") + "}";
  122620. },
  122621. get$span(receiver) {
  122622. return this.span;
  122623. }
  122624. };
  122625. A.JSToDartImporter.prototype = {
  122626. canonicalize$1(_, url) {
  122627. var t1,
  122628. result = A.wrapJSExceptions(new A.JSToDartImporter_canonicalize_closure(this, url));
  122629. if (result == null)
  122630. return null;
  122631. t1 = self.URL;
  122632. if (result instanceof t1)
  122633. return A.Uri_parse(J.toString$0$(type$.JSUrl._as(result)));
  122634. t1 = self.Promise;
  122635. if (result instanceof t1)
  122636. A.jsThrow(new self.Error("The canonicalize() function can't return a Promise for synchronous compile functions."));
  122637. else
  122638. A.jsThrow(new self.Error(string$.The_ca));
  122639. },
  122640. load$1(_, url) {
  122641. var t1, contents, syntax, t2,
  122642. result = A.wrapJSExceptions(new A.JSToDartImporter_load_closure(this, url));
  122643. if (result == null)
  122644. return null;
  122645. t1 = self.Promise;
  122646. if (result instanceof t1)
  122647. A.jsThrow(new self.Error("The load() function can't return a Promise for synchronous compile functions."));
  122648. type$.JSImporterResult._as(result);
  122649. t1 = J.getInterceptor$x(result);
  122650. contents = t1.get$contents(result);
  122651. if (A._asString(new self.Function("value", "return typeof value").call$1(contents)) !== "string")
  122652. A.jsThrow(new A.ArgumentError(true, contents, "contents", "must be a string but was: " + A.jsType(contents)));
  122653. syntax = t1.get$syntax(result);
  122654. if (contents == null || syntax == null)
  122655. A.jsThrow(new self.Error(string$.The_lo));
  122656. t2 = A.parseSyntax(syntax);
  122657. return A.ImporterResult$(contents, A.NullableExtension_andThen0(t1.get$sourceMapUrl(result), A.utils3__jsToDartUrl$closure()), t2);
  122658. },
  122659. isNonCanonicalScheme$1(scheme) {
  122660. return this._sync$_nonCanonicalSchemes.contains$1(0, scheme);
  122661. }
  122662. };
  122663. A.JSToDartImporter_canonicalize_closure.prototype = {
  122664. call$0() {
  122665. return this.$this._sync$_canonicalize.call$2(this.url.toString$0(0), A.canonicalizeContext0());
  122666. },
  122667. $signature: 37
  122668. };
  122669. A.JSToDartImporter_load_closure.prototype = {
  122670. call$0() {
  122671. return this.$this._sync$_load.call$1(new self.URL(this.url.toString$0(0)));
  122672. },
  122673. $signature: 37
  122674. };
  122675. A.Syntax0.prototype = {
  122676. _enumToString$0() {
  122677. return "Syntax." + this._name;
  122678. },
  122679. toString$0(_) {
  122680. return this._syntax0$_name;
  122681. }
  122682. };
  122683. A.TypeSelector0.prototype = {
  122684. get$specificity() {
  122685. return 1;
  122686. },
  122687. accept$1$1(visitor) {
  122688. return visitor.visitTypeSelector$1(this);
  122689. },
  122690. accept$1(visitor) {
  122691. return this.accept$1$1(visitor, type$.dynamic);
  122692. },
  122693. addSuffix$1(suffix) {
  122694. var t1 = this.name;
  122695. return new A.TypeSelector0(new A.QualifiedName0(t1.name + suffix, t1.namespace), this.span);
  122696. },
  122697. unify$1(compound) {
  122698. var unified, t1,
  122699. _0_0 = A.IterableExtensions_get_firstOrNull(compound);
  122700. if (_0_0 instanceof A.UniversalSelector0 || _0_0 instanceof A.TypeSelector0) {
  122701. unified = A.unifyUniversalAndElement0(this, B.JSArray_methods.get$first(compound));
  122702. if (unified == null)
  122703. return null;
  122704. t1 = A._setArrayType([unified], type$.JSArray_SimpleSelector_2);
  122705. B.JSArray_methods.addAll$1(t1, A.SubListIterable$(compound, 1, null, A._arrayInstanceType(compound)._precomputed1));
  122706. return t1;
  122707. } else {
  122708. t1 = A._setArrayType([this], type$.JSArray_SimpleSelector_2);
  122709. B.JSArray_methods.addAll$1(t1, compound);
  122710. return t1;
  122711. }
  122712. },
  122713. isSuperselector$1(other) {
  122714. var t1, t2, t3;
  122715. if (!this.super$SimpleSelector$isSuperselector0(other)) {
  122716. t1 = false;
  122717. if (other instanceof A.TypeSelector0) {
  122718. t2 = this.name;
  122719. t3 = other.name;
  122720. if (t2.name === t3.name) {
  122721. t1 = t2.namespace;
  122722. t1 = t1 === "*" || t1 == t3.namespace;
  122723. }
  122724. }
  122725. } else
  122726. t1 = true;
  122727. return t1;
  122728. },
  122729. $eq(_, other) {
  122730. if (other == null)
  122731. return false;
  122732. return other instanceof A.TypeSelector0 && other.name.$eq(0, this.name);
  122733. },
  122734. get$hashCode(_) {
  122735. var t1 = this.name;
  122736. return B.JSString_methods.get$hashCode(t1.name) ^ J.get$hashCode$(t1.namespace);
  122737. }
  122738. };
  122739. A.Types.prototype = {};
  122740. A.UnaryOperationExpression0.prototype = {
  122741. accept$1$1(visitor) {
  122742. return visitor.visitUnaryOperationExpression$1(0, this);
  122743. },
  122744. accept$1(visitor) {
  122745. return this.accept$1$1(visitor, type$.dynamic);
  122746. },
  122747. toString$0(_) {
  122748. var operand,
  122749. t1 = this.operator,
  122750. t2 = t1.operator;
  122751. t1 = t1 === B.UnaryOperator_not_not_not0 ? t2 + A.Primitives_stringFromCharCode(32) : t2;
  122752. operand = this.operand;
  122753. $label0$0: {
  122754. t2 = true;
  122755. if (!(operand instanceof A.BinaryOperationExpression0))
  122756. if (!(operand instanceof A.UnaryOperationExpression0))
  122757. t2 = operand instanceof A.ListExpression0 && !operand.hasBrackets && operand.contents.length >= 2;
  122758. if (t2)
  122759. break $label0$0;
  122760. break $label0$0;
  122761. }
  122762. if (t2)
  122763. t1 += "40";
  122764. t1 += operand.toString$0(0);
  122765. if (t2)
  122766. t1 += "41";
  122767. return t1.charCodeAt(0) == 0 ? t1 : t1;
  122768. },
  122769. get$span(receiver) {
  122770. return this.span;
  122771. }
  122772. };
  122773. A.UnaryOperator0.prototype = {
  122774. _enumToString$0() {
  122775. return "UnaryOperator." + this._name;
  122776. },
  122777. toString$0(_) {
  122778. return this.name;
  122779. }
  122780. };
  122781. A.UnitlessSassNumber0.prototype = {
  122782. get$numeratorUnits(_) {
  122783. return B.List_empty;
  122784. },
  122785. get$denominatorUnits(_) {
  122786. return B.List_empty;
  122787. },
  122788. get$hasUnits() {
  122789. return false;
  122790. },
  122791. get$hasComplexUnits() {
  122792. return false;
  122793. },
  122794. withValue$1(value) {
  122795. return new A.UnitlessSassNumber0(value, null);
  122796. },
  122797. withSlash$2(numerator, denominator) {
  122798. return new A.UnitlessSassNumber0(this._number1$_value, new A._Record_2(numerator, denominator));
  122799. },
  122800. hasUnit$1(unit) {
  122801. return false;
  122802. },
  122803. hasCompatibleUnits$1(other) {
  122804. return other instanceof A.UnitlessSassNumber0;
  122805. },
  122806. hasPossiblyCompatibleUnits$1(other) {
  122807. return other instanceof A.UnitlessSassNumber0;
  122808. },
  122809. compatibleWithUnit$1(unit) {
  122810. return true;
  122811. },
  122812. coerceToMatch$3(other, $name, otherName) {
  122813. return other.withValue$1(this._number1$_value);
  122814. },
  122815. coerceToMatch$1(other) {
  122816. return this.coerceToMatch$3(other, null, null);
  122817. },
  122818. coerceValueToMatch$3(other, $name, otherName) {
  122819. return this._number1$_value;
  122820. },
  122821. coerceValueToMatch$1(other) {
  122822. return this.coerceValueToMatch$3(other, null, null);
  122823. },
  122824. convertToMatch$3(other, $name, otherName) {
  122825. return other.get$hasUnits() ? this.super$SassNumber$convertToMatch(other, $name, otherName) : this;
  122826. },
  122827. convertValueToMatch$3(other, $name, otherName) {
  122828. return other.get$hasUnits() ? this.super$SassNumber$convertValueToMatch0(other, $name, otherName) : this._number1$_value;
  122829. },
  122830. convertValueToMatch$1(other) {
  122831. return this.convertValueToMatch$3(other, null, null);
  122832. },
  122833. coerce$3(newNumerators, newDenominators, $name) {
  122834. return A.SassNumber_SassNumber$withUnits0(this._number1$_value, newDenominators, newNumerators);
  122835. },
  122836. coerce$2(newNumerators, newDenominators) {
  122837. return this.coerce$3(newNumerators, newDenominators, null);
  122838. },
  122839. coerceValue$3(newNumerators, newDenominators, $name) {
  122840. return this._number1$_value;
  122841. },
  122842. coerceValueToUnit$2(unit, $name) {
  122843. return this._number1$_value;
  122844. },
  122845. coerceValueToUnit$1(unit) {
  122846. return this.coerceValueToUnit$2(unit, null);
  122847. },
  122848. greaterThan$1(other) {
  122849. var t1, t2;
  122850. if (other instanceof A.SassNumber0) {
  122851. t1 = this._number1$_value;
  122852. t2 = other._number1$_value;
  122853. return t1 > t2 && !A.fuzzyEquals0(t1, t2) ? B.SassBoolean_true0 : B.SassBoolean_false0;
  122854. }
  122855. return this.super$SassNumber$greaterThan0(other);
  122856. },
  122857. greaterThanOrEquals$1(other) {
  122858. var t1, t2;
  122859. if (other instanceof A.SassNumber0) {
  122860. t1 = this._number1$_value;
  122861. t2 = other._number1$_value;
  122862. return t1 > t2 || A.fuzzyEquals0(t1, t2) ? B.SassBoolean_true0 : B.SassBoolean_false0;
  122863. }
  122864. return this.super$SassNumber$greaterThanOrEquals0(other);
  122865. },
  122866. lessThan$1(other) {
  122867. var t1, t2;
  122868. if (other instanceof A.SassNumber0) {
  122869. t1 = this._number1$_value;
  122870. t2 = other._number1$_value;
  122871. return t1 < t2 && !A.fuzzyEquals0(t1, t2) ? B.SassBoolean_true0 : B.SassBoolean_false0;
  122872. }
  122873. return this.super$SassNumber$lessThan0(other);
  122874. },
  122875. lessThanOrEquals$1(other) {
  122876. var t1, t2;
  122877. if (other instanceof A.SassNumber0) {
  122878. t1 = this._number1$_value;
  122879. t2 = other._number1$_value;
  122880. return t1 < t2 || A.fuzzyEquals0(t1, t2) ? B.SassBoolean_true0 : B.SassBoolean_false0;
  122881. }
  122882. return this.super$SassNumber$lessThanOrEquals0(other);
  122883. },
  122884. modulo$1(other) {
  122885. if (other instanceof A.SassNumber0)
  122886. return other.withValue$1(A.moduloLikeSass0(this._number1$_value, other._number1$_value));
  122887. return this.super$SassNumber$modulo0(other);
  122888. },
  122889. plus$1(other) {
  122890. if (other instanceof A.SassNumber0)
  122891. return other.withValue$1(this._number1$_value + other._number1$_value);
  122892. return this.super$SassNumber$plus0(other);
  122893. },
  122894. minus$1(other) {
  122895. if (other instanceof A.SassNumber0)
  122896. return other.withValue$1(this._number1$_value - other._number1$_value);
  122897. return this.super$SassNumber$minus0(other);
  122898. },
  122899. times$1(other) {
  122900. if (other instanceof A.SassNumber0)
  122901. return other.withValue$1(this._number1$_value * other._number1$_value);
  122902. return this.super$SassNumber$times0(other);
  122903. },
  122904. dividedBy$1(other) {
  122905. var t1, t2;
  122906. if (other instanceof A.SassNumber0) {
  122907. t1 = this._number1$_value / other._number1$_value;
  122908. if (other.get$hasUnits()) {
  122909. t2 = other.get$denominatorUnits(other);
  122910. t2 = A.SassNumber_SassNumber$withUnits0(t1, other.get$numeratorUnits(other), t2);
  122911. t1 = t2;
  122912. } else
  122913. t1 = new A.UnitlessSassNumber0(t1, null);
  122914. return t1;
  122915. }
  122916. return this.super$SassNumber$dividedBy0(other);
  122917. },
  122918. unaryMinus$0() {
  122919. return new A.UnitlessSassNumber0(-this._number1$_value, null);
  122920. },
  122921. $eq(_, other) {
  122922. if (other == null)
  122923. return false;
  122924. return other instanceof A.UnitlessSassNumber0 && A.fuzzyEquals0(this._number1$_value, other._number1$_value);
  122925. },
  122926. get$hashCode(_) {
  122927. var t1 = this.hashCache;
  122928. return t1 == null ? this.hashCache = A.fuzzyHashCode0(this._number1$_value) : t1;
  122929. }
  122930. };
  122931. A.UniversalSelector0.prototype = {
  122932. get$specificity() {
  122933. return 0;
  122934. },
  122935. accept$1$1(visitor) {
  122936. return visitor.visitUniversalSelector$1(this);
  122937. },
  122938. accept$1(visitor) {
  122939. return this.accept$1$1(visitor, type$.dynamic);
  122940. },
  122941. unify$1(compound) {
  122942. var _0_40, t1, rest, unified, t2, _this = this, _null = null,
  122943. _0_1 = compound.length,
  122944. _0_4_isSet = _0_1 >= 1,
  122945. _0_4 = _null;
  122946. if (_0_4_isSet) {
  122947. _0_40 = compound[0];
  122948. t1 = _0_40;
  122949. _0_4 = t1;
  122950. if (!(t1 instanceof A.UniversalSelector0))
  122951. t1 = _0_4 instanceof A.TypeSelector0;
  122952. else
  122953. t1 = true;
  122954. rest = t1 ? B.JSArray_methods.sublist$1(compound, 1) : _null;
  122955. } else {
  122956. rest = _null;
  122957. t1 = false;
  122958. }
  122959. if (t1) {
  122960. unified = A.unifyUniversalAndElement0(_this, B.JSArray_methods.get$first(compound));
  122961. if (unified == null)
  122962. return _null;
  122963. t1 = A._setArrayType([unified], type$.JSArray_SimpleSelector_2);
  122964. B.JSArray_methods.addAll$1(t1, rest);
  122965. return t1;
  122966. }
  122967. t1 = false;
  122968. if (_0_1 === 1) {
  122969. if (_0_4_isSet)
  122970. t2 = _0_4;
  122971. else {
  122972. _0_4 = compound[0];
  122973. t2 = _0_4;
  122974. _0_4_isSet = true;
  122975. }
  122976. if (t2 instanceof A.PseudoSelector0) {
  122977. t2 = _0_4_isSet ? _0_4 : compound[0];
  122978. type$.PseudoSelector_2._as(t2);
  122979. t1 = t2.isClass && t2.name === "host" || t2.get$isHostContext();
  122980. }
  122981. }
  122982. if (t1)
  122983. return _null;
  122984. if (_0_1 <= 0)
  122985. return A._setArrayType([_this], type$.JSArray_SimpleSelector_2);
  122986. t1 = _this.namespace;
  122987. if (t1 == null || t1 === "*")
  122988. t1 = compound;
  122989. else {
  122990. t1 = A._setArrayType([_this], type$.JSArray_SimpleSelector_2);
  122991. B.JSArray_methods.addAll$1(t1, compound);
  122992. }
  122993. return t1;
  122994. },
  122995. isSuperselector$1(other) {
  122996. var t1 = this.namespace;
  122997. if (t1 === "*")
  122998. return true;
  122999. if (other instanceof A.TypeSelector0)
  123000. return t1 == other.name.namespace;
  123001. if (other instanceof A.UniversalSelector0)
  123002. return t1 == other.namespace;
  123003. return t1 == null || this.super$SimpleSelector$isSuperselector0(other);
  123004. },
  123005. $eq(_, other) {
  123006. if (other == null)
  123007. return false;
  123008. return other instanceof A.UniversalSelector0 && other.namespace == this.namespace;
  123009. },
  123010. get$hashCode(_) {
  123011. return J.get$hashCode$(this.namespace);
  123012. }
  123013. };
  123014. A.UnprefixedMapView0.prototype = {
  123015. get$keys(_) {
  123016. return new A._UnprefixedKeys0(this);
  123017. },
  123018. $index(_, key) {
  123019. return typeof key == "string" ? this._unprefixed_map_view0$_map.$index(0, this._unprefixed_map_view0$_prefix + key) : null;
  123020. },
  123021. containsKey$1(key) {
  123022. return typeof key == "string" && this._unprefixed_map_view0$_map.containsKey$1(this._unprefixed_map_view0$_prefix + key);
  123023. },
  123024. remove$1(_, key) {
  123025. return typeof key == "string" ? this._unprefixed_map_view0$_map.remove$1(0, this._unprefixed_map_view0$_prefix + key) : null;
  123026. }
  123027. };
  123028. A._UnprefixedKeys0.prototype = {
  123029. get$iterator(_) {
  123030. var t1 = this._unprefixed_map_view0$_view._unprefixed_map_view0$_map;
  123031. t1 = J.where$1$ax(t1.get$keys(t1), new A._UnprefixedKeys_iterator_closure1(this)).map$1$1(0, new A._UnprefixedKeys_iterator_closure2(this), type$.String);
  123032. return t1.get$iterator(t1);
  123033. },
  123034. contains$1(_, key) {
  123035. return this._unprefixed_map_view0$_view.containsKey$1(key);
  123036. }
  123037. };
  123038. A._UnprefixedKeys_iterator_closure1.prototype = {
  123039. call$1(key) {
  123040. return B.JSString_methods.startsWith$1(key, this.$this._unprefixed_map_view0$_view._unprefixed_map_view0$_prefix);
  123041. },
  123042. $signature: 5
  123043. };
  123044. A._UnprefixedKeys_iterator_closure2.prototype = {
  123045. call$1(key) {
  123046. return B.JSString_methods.substring$1(key, this.$this._unprefixed_map_view0$_view._unprefixed_map_view0$_prefix.length);
  123047. },
  123048. $signature: 6
  123049. };
  123050. A.JSUrl0.prototype = {};
  123051. A.UseRule0.prototype = {
  123052. UseRule$4$configuration0(url, namespace, span, configuration) {
  123053. var t1, t2, _i, variable;
  123054. for (t1 = this.configuration, t2 = t1.length, _i = 0; _i < t2; ++_i) {
  123055. variable = t1[_i];
  123056. if (variable.isGuarded)
  123057. throw A.wrapException(A.ArgumentError$value(variable, "configured variable", "can't be guarded in a @use rule."));
  123058. }
  123059. },
  123060. accept$1$1(visitor) {
  123061. return visitor.visitUseRule$1(0, this);
  123062. },
  123063. accept$1(visitor) {
  123064. return this.accept$1$1(visitor, type$.dynamic);
  123065. },
  123066. toString$0(_) {
  123067. var t1 = this.url,
  123068. t2 = "@use " + A.StringExpression_quoteText0(t1.toString$0(0)),
  123069. basename = t1.get$pathSegments().length === 0 ? "" : B.JSArray_methods.get$last(t1.get$pathSegments()),
  123070. dot = B.JSString_methods.indexOf$1(basename, ".");
  123071. t1 = this.namespace;
  123072. if (t1 !== B.JSString_methods.substring$2(basename, 0, dot === -1 ? basename.length : dot))
  123073. t1 = t2 + (" as " + (t1 == null ? "*" : t1));
  123074. else
  123075. t1 = t2;
  123076. t2 = this.configuration;
  123077. t1 = (t2.length !== 0 ? t1 + (" with (" + B.JSArray_methods.join$1(t2, ", ") + ")") : t1) + ";";
  123078. return t1.charCodeAt(0) == 0 ? t1 : t1;
  123079. },
  123080. get$span(receiver) {
  123081. return this.span;
  123082. }
  123083. };
  123084. A.UserDefinedCallable0.prototype = {
  123085. get$name(_) {
  123086. return this.declaration.name;
  123087. },
  123088. $isAsyncCallable0: 1,
  123089. $isCallable: 1
  123090. };
  123091. A.resolveImportPath_closure1.prototype = {
  123092. call$0() {
  123093. return A._exactlyOne0(A._tryPath0($.$get$context().withoutExtension$1(this.path) + ".import" + this.extension));
  123094. },
  123095. $signature: 46
  123096. };
  123097. A.resolveImportPath_closure2.prototype = {
  123098. call$0() {
  123099. return A._exactlyOne0(A._tryPathWithExtensions0(this.path + ".import"));
  123100. },
  123101. $signature: 46
  123102. };
  123103. A._tryPathAsDirectory_closure0.prototype = {
  123104. call$0() {
  123105. return A._exactlyOne0(A._tryPathWithExtensions0(A.join(this.path, "index.import", null)));
  123106. },
  123107. $signature: 46
  123108. };
  123109. A._exactlyOne_closure0.prototype = {
  123110. call$1(path) {
  123111. var t1 = $.$get$context();
  123112. return " " + t1.prettyUri$1(t1.toUri$1(path));
  123113. },
  123114. $signature: 6
  123115. };
  123116. A._PropertyDescriptor0.prototype = {};
  123117. A.futureToPromise_closure0.prototype = {
  123118. call$2(resolve, reject) {
  123119. this.future.then$1$2$onError(0, new A.futureToPromise__closure0(resolve), new A.futureToPromise__closure1(reject), type$.void);
  123120. },
  123121. $signature: 615
  123122. };
  123123. A.futureToPromise__closure0.prototype = {
  123124. call$1(result) {
  123125. return this.resolve.call$1(result);
  123126. },
  123127. $signature: 33
  123128. };
  123129. A.futureToPromise__closure1.prototype = {
  123130. call$2(error, stackTrace) {
  123131. A.attachTrace0(error, stackTrace);
  123132. this.reject.call$1(error);
  123133. },
  123134. $signature: 54
  123135. };
  123136. A.objectToMap_closure.prototype = {
  123137. call$2(key, value) {
  123138. this.map.$indexSet(0, key, value);
  123139. return value;
  123140. },
  123141. $signature: 126
  123142. };
  123143. A._RequireMain0.prototype = {};
  123144. A.indent_closure0.prototype = {
  123145. call$1(line) {
  123146. return B.JSString_methods.$mul(" ", this.indentation) + line;
  123147. },
  123148. $signature: 6
  123149. };
  123150. A.flattenVertically_closure1.prototype = {
  123151. call$1(inner) {
  123152. return A.QueueList_QueueList$from(inner, this.T);
  123153. },
  123154. $signature() {
  123155. return this.T._eval$1("QueueList<0>(Iterable<0>)");
  123156. }
  123157. };
  123158. A.flattenVertically_closure2.prototype = {
  123159. call$1(queue) {
  123160. this.result.push(queue.removeFirst$0());
  123161. return queue.get$length(0) === 0;
  123162. },
  123163. $signature() {
  123164. return this.T._eval$1("bool(QueueList<0>)");
  123165. }
  123166. };
  123167. A.longestCommonSubsequence_backtrack0.prototype = {
  123168. call$2(i, j) {
  123169. var selection, t1, _this = this;
  123170. if (i === -1 || j === -1)
  123171. return A._setArrayType([], _this.T._eval$1("JSArray<0>"));
  123172. selection = _this.selections[i][j];
  123173. if (selection != null) {
  123174. t1 = _this.call$2(i - 1, j - 1);
  123175. J.add$1$ax(t1, selection);
  123176. return t1;
  123177. }
  123178. t1 = _this.lengths;
  123179. return t1[i + 1][j] > t1[i][j + 1] ? _this.call$2(i, j - 1) : _this.call$2(i - 1, j);
  123180. },
  123181. $signature() {
  123182. return this.T._eval$1("List<0>(int,int)");
  123183. }
  123184. };
  123185. A.mapAddAll2_closure0.prototype = {
  123186. call$2(key, inner) {
  123187. var t1 = this.destination,
  123188. _0_0 = t1.$index(0, key);
  123189. if (_0_0 != null)
  123190. _0_0.addAll$1(0, inner);
  123191. else
  123192. t1.$indexSet(0, key, inner);
  123193. },
  123194. $signature() {
  123195. return this.K1._eval$1("@<0>")._bind$1(this.K2)._bind$1(this.V)._eval$1("~(1,Map<2,3>)");
  123196. }
  123197. };
  123198. A.CssValue0.prototype = {
  123199. $eq(_, other) {
  123200. if (other == null)
  123201. return false;
  123202. return this.$ti._is(other) && J.$eq$(other.value, this.value);
  123203. },
  123204. get$hashCode(_) {
  123205. return J.get$hashCode$(this.value);
  123206. },
  123207. toString$0(_) {
  123208. return J.toString$0$(this.value);
  123209. },
  123210. $isAstNode0: 1,
  123211. get$span(receiver) {
  123212. return this.span;
  123213. }
  123214. };
  123215. A.ValueExpression0.prototype = {
  123216. accept$1$1(visitor) {
  123217. return visitor.visitValueExpression$1(0, this);
  123218. },
  123219. accept$1(visitor) {
  123220. return this.accept$1$1(visitor, type$.dynamic);
  123221. },
  123222. toString$0(_) {
  123223. return this.value.toString$0(0);
  123224. },
  123225. get$span(receiver) {
  123226. return this.span;
  123227. }
  123228. };
  123229. A.valueClass_closure.prototype = {
  123230. call$0() {
  123231. var t2,
  123232. t1 = type$.JSClass,
  123233. jsClass = t1._as(self.Object.getPrototypeOf(J.get$$prototype$x(t1._as(B.C__SassNull0.constructor))).constructor);
  123234. A.JSClassExtension_setCustomInspect(jsClass, new A.valueClass__closure());
  123235. t1 = type$.String;
  123236. t2 = type$.Function;
  123237. A.LinkedHashMap_LinkedHashMap$_literal(["asList", new A.valueClass__closure0(), "hasBrackets", new A.valueClass__closure1(), "isTruthy", new A.valueClass__closure2(), "realNull", new A.valueClass__closure3(), "separator", new A.valueClass__closure4()], t1, t2).forEach$1(0, A.JSClassExtension_get_defineGetter(jsClass));
  123238. A.LinkedHashMap_LinkedHashMap$_literal(["sassIndexToListIndex", new A.valueClass__closure5(), "get", new A.valueClass__closure6(), "assertBoolean", new A.valueClass__closure7(), "assertCalculation", new A.valueClass__closure8(), "assertColor", new A.valueClass__closure9(), "assertFunction", new A.valueClass__closure10(), "assertMap", new A.valueClass__closure11(), "assertMixin", new A.valueClass__closure12(), "assertNumber", new A.valueClass__closure13(), "assertString", new A.valueClass__closure14(), "tryMap", new A.valueClass__closure15(), "equals", new A.valueClass__closure16(), "hashCode", new A.valueClass__closure17(), "toString", new A.valueClass__closure18()], t1, t2).forEach$1(0, A.JSClassExtension_get_defineMethod(jsClass));
  123239. return jsClass;
  123240. },
  123241. $signature: 16
  123242. };
  123243. A.valueClass__closure.prototype = {
  123244. call$1($self) {
  123245. return J.toString$0$($self);
  123246. },
  123247. $signature: 120
  123248. };
  123249. A.valueClass__closure0.prototype = {
  123250. call$1($self) {
  123251. return new self.immutable.List($self.get$asList());
  123252. },
  123253. $signature: 616
  123254. };
  123255. A.valueClass__closure1.prototype = {
  123256. call$1($self) {
  123257. return $self.get$hasBrackets();
  123258. },
  123259. $signature: 56
  123260. };
  123261. A.valueClass__closure2.prototype = {
  123262. call$1($self) {
  123263. return $self.get$isTruthy();
  123264. },
  123265. $signature: 56
  123266. };
  123267. A.valueClass__closure3.prototype = {
  123268. call$1($self) {
  123269. return $self.get$realNull();
  123270. },
  123271. $signature: 228
  123272. };
  123273. A.valueClass__closure4.prototype = {
  123274. call$1($self) {
  123275. return $self.get$separator($self).separator;
  123276. },
  123277. $signature: 617
  123278. };
  123279. A.valueClass__closure5.prototype = {
  123280. call$3($self, sassIndex, $name) {
  123281. return $self.sassIndexToListIndex$2(sassIndex, $name);
  123282. },
  123283. call$2($self, sassIndex) {
  123284. return this.call$3($self, sassIndex, null);
  123285. },
  123286. "call*": "call$3",
  123287. $requiredArgCount: 2,
  123288. $defaultValues() {
  123289. return [null];
  123290. },
  123291. $signature: 618
  123292. };
  123293. A.valueClass__closure6.prototype = {
  123294. call$2($self, index) {
  123295. return index < 1 && index >= -1 ? $self : self.undefined;
  123296. },
  123297. $signature: 240
  123298. };
  123299. A.valueClass__closure7.prototype = {
  123300. call$2($self, $name) {
  123301. return $self.assertBoolean$1($name);
  123302. },
  123303. call$1($self) {
  123304. return this.call$2($self, null);
  123305. },
  123306. "call*": "call$2",
  123307. $requiredArgCount: 1,
  123308. $defaultValues() {
  123309. return [null];
  123310. },
  123311. $signature: 619
  123312. };
  123313. A.valueClass__closure8.prototype = {
  123314. call$2($self, $name) {
  123315. return $self.assertCalculation$1($name);
  123316. },
  123317. call$1($self) {
  123318. return this.call$2($self, null);
  123319. },
  123320. "call*": "call$2",
  123321. $requiredArgCount: 1,
  123322. $defaultValues() {
  123323. return [null];
  123324. },
  123325. $signature: 620
  123326. };
  123327. A.valueClass__closure9.prototype = {
  123328. call$2($self, $name) {
  123329. return $self.assertColor$1($name);
  123330. },
  123331. call$1($self) {
  123332. return this.call$2($self, null);
  123333. },
  123334. "call*": "call$2",
  123335. $requiredArgCount: 1,
  123336. $defaultValues() {
  123337. return [null];
  123338. },
  123339. $signature: 621
  123340. };
  123341. A.valueClass__closure10.prototype = {
  123342. call$2($self, $name) {
  123343. return $self.assertFunction$1($name);
  123344. },
  123345. call$1($self) {
  123346. return this.call$2($self, null);
  123347. },
  123348. "call*": "call$2",
  123349. $requiredArgCount: 1,
  123350. $defaultValues() {
  123351. return [null];
  123352. },
  123353. $signature: 622
  123354. };
  123355. A.valueClass__closure11.prototype = {
  123356. call$2($self, $name) {
  123357. return $self.assertMap$1($name);
  123358. },
  123359. call$1($self) {
  123360. return this.call$2($self, null);
  123361. },
  123362. "call*": "call$2",
  123363. $requiredArgCount: 1,
  123364. $defaultValues() {
  123365. return [null];
  123366. },
  123367. $signature: 623
  123368. };
  123369. A.valueClass__closure12.prototype = {
  123370. call$2($self, $name) {
  123371. return $self.assertMixin$1($name);
  123372. },
  123373. call$1($self) {
  123374. return this.call$2($self, null);
  123375. },
  123376. "call*": "call$2",
  123377. $requiredArgCount: 1,
  123378. $defaultValues() {
  123379. return [null];
  123380. },
  123381. $signature: 624
  123382. };
  123383. A.valueClass__closure13.prototype = {
  123384. call$2($self, $name) {
  123385. return $self.assertNumber$1($name);
  123386. },
  123387. call$1($self) {
  123388. return this.call$2($self, null);
  123389. },
  123390. "call*": "call$2",
  123391. $requiredArgCount: 1,
  123392. $defaultValues() {
  123393. return [null];
  123394. },
  123395. $signature: 625
  123396. };
  123397. A.valueClass__closure14.prototype = {
  123398. call$2($self, $name) {
  123399. return $self.assertString$1($name);
  123400. },
  123401. call$1($self) {
  123402. return this.call$2($self, null);
  123403. },
  123404. "call*": "call$2",
  123405. $requiredArgCount: 1,
  123406. $defaultValues() {
  123407. return [null];
  123408. },
  123409. $signature: 626
  123410. };
  123411. A.valueClass__closure15.prototype = {
  123412. call$1($self) {
  123413. return $self.tryMap$0();
  123414. },
  123415. $signature: 627
  123416. };
  123417. A.valueClass__closure16.prototype = {
  123418. call$2($self, other) {
  123419. return $self.$eq(0, other);
  123420. },
  123421. $signature: 628
  123422. };
  123423. A.valueClass__closure17.prototype = {
  123424. call$2($self, _) {
  123425. return $self.get$hashCode($self);
  123426. },
  123427. call$1($self) {
  123428. return this.call$2($self, null);
  123429. },
  123430. "call*": "call$2",
  123431. $requiredArgCount: 1,
  123432. $defaultValues() {
  123433. return [null];
  123434. },
  123435. $signature: 629
  123436. };
  123437. A.valueClass__closure18.prototype = {
  123438. call$1($self) {
  123439. return $self.toString$0(0);
  123440. },
  123441. $signature: 209
  123442. };
  123443. A.Value0.prototype = {
  123444. get$isTruthy() {
  123445. return true;
  123446. },
  123447. get$separator(_) {
  123448. return B.ListSeparator_undecided_null_undecided0;
  123449. },
  123450. get$hasBrackets() {
  123451. return false;
  123452. },
  123453. get$asList() {
  123454. return A._setArrayType([this], type$.JSArray_Value_2);
  123455. },
  123456. get$lengthAsList() {
  123457. return 1;
  123458. },
  123459. get$isBlank() {
  123460. return false;
  123461. },
  123462. get$isSpecialNumber() {
  123463. return false;
  123464. },
  123465. get$isVar() {
  123466. return false;
  123467. },
  123468. get$realNull() {
  123469. return this;
  123470. },
  123471. sassIndexToListIndex$2(sassIndex, $name) {
  123472. var t1, index,
  123473. indexValue = sassIndex.assertNumber$1($name);
  123474. if (indexValue.get$hasUnits()) {
  123475. t1 = indexValue.get$unitString();
  123476. A.warnForDeprecation0("$" + A.S($name) + ": Passing a number with unit " + t1 + string$.x20is_de + indexValue.unitSuggestion$1($name == null ? "index" : $name) + string$.x0a_Morex3af, B.Deprecation_jV0);
  123477. }
  123478. index = indexValue.assertInt$1($name);
  123479. if (index === 0)
  123480. throw A.wrapException(A.SassScriptException$0("List index may not be 0.", $name));
  123481. if (Math.abs(index) > this.get$lengthAsList())
  123482. throw A.wrapException(A.SassScriptException$0("Invalid index " + sassIndex.toString$0(0) + " for a list with " + this.get$lengthAsList() + " elements.", $name));
  123483. return index < 0 ? this.get$lengthAsList() + index : index - 1;
  123484. },
  123485. assertBoolean$1($name) {
  123486. return A.throwExpression(A.SassScriptException$0(this.toString$0(0) + " is not a boolean.", $name));
  123487. },
  123488. assertCalculation$1($name) {
  123489. return A.throwExpression(A.SassScriptException$0(this.toString$0(0) + " is not a calculation.", $name));
  123490. },
  123491. assertColor$1($name) {
  123492. return A.throwExpression(A.SassScriptException$0(this.toString$0(0) + " is not a color.", $name));
  123493. },
  123494. assertFunction$1($name) {
  123495. return A.throwExpression(A.SassScriptException$0(this.toString$0(0) + " is not a function reference.", $name));
  123496. },
  123497. assertMixin$1($name) {
  123498. return A.throwExpression(A.SassScriptException$0(this.toString$0(0) + " is not a mixin reference.", $name));
  123499. },
  123500. assertMap$1($name) {
  123501. return A.throwExpression(A.SassScriptException$0(this.toString$0(0) + " is not a map.", $name));
  123502. },
  123503. tryMap$0() {
  123504. return null;
  123505. },
  123506. assertNumber$1($name) {
  123507. return A.throwExpression(A.SassScriptException$0(this.toString$0(0) + " is not a number.", $name));
  123508. },
  123509. assertNumber$0() {
  123510. return this.assertNumber$1(null);
  123511. },
  123512. assertString$1($name) {
  123513. return A.throwExpression(A.SassScriptException$0(this.toString$0(0) + " is not a string.", $name));
  123514. },
  123515. assertCommonListStyle$2$allowSlash($name, allowSlash) {
  123516. var invalidSeparator, buffer, t1, _this = this,
  123517. _s8_ = "Expected";
  123518. if (_this.get$separator(_this) !== B.ListSeparator_ECn0)
  123519. invalidSeparator = !allowSlash && _this.get$separator(_this) === B.ListSeparator_cQA0;
  123520. else
  123521. invalidSeparator = true;
  123522. if (!invalidSeparator && !_this.get$hasBrackets())
  123523. return _this.get$asList();
  123524. buffer = new A.StringBuffer(_s8_);
  123525. if (_this.get$hasBrackets()) {
  123526. t1 = "Expected" + " an unbracketed";
  123527. buffer._contents = t1;
  123528. } else
  123529. t1 = _s8_;
  123530. if (invalidSeparator) {
  123531. t1 += _this.get$hasBrackets() ? "," : " a";
  123532. buffer._contents = t1;
  123533. t1 = buffer._contents = t1 + " space-";
  123534. t1 = buffer._contents = (allowSlash ? buffer._contents = t1 + " or slash-" : t1) + "separated";
  123535. }
  123536. buffer._contents = t1 + (" list, was " + _this.toString$0(0));
  123537. throw A.wrapException(A.SassScriptException$0(buffer.toString$0(0), $name));
  123538. },
  123539. _value$_selectorString$1($name) {
  123540. var _0_0 = this._value$_selectorStringOrNull$0();
  123541. if (_0_0 != null)
  123542. return _0_0;
  123543. throw A.wrapException(A.SassScriptException$0(this.toString$0(0) + string$.x20is_noav, $name));
  123544. },
  123545. _value$_selectorStringOrNull$0() {
  123546. var t1, t2, result, _1_0, _i, complex, string, compound, _this = this, _null = null;
  123547. if (_this instanceof A.SassString0)
  123548. return _this._string0$_text;
  123549. if (!(_this instanceof A.SassList0))
  123550. return _null;
  123551. t1 = _this._list1$_contents;
  123552. t2 = t1.length;
  123553. if (t2 === 0)
  123554. return _null;
  123555. result = A._setArrayType([], type$.JSArray_String);
  123556. $label0$1: {
  123557. _1_0 = _this._list1$_separator;
  123558. if (B.ListSeparator_ECn0 === _1_0) {
  123559. for (_i = 0; _i < t2; ++_i) {
  123560. complex = t1[_i];
  123561. if (complex instanceof A.SassString0) {
  123562. result.push(complex._string0$_text);
  123563. continue;
  123564. }
  123565. if (complex instanceof A.SassList0 && B.ListSeparator_nbm0 === complex._list1$_separator) {
  123566. string = complex._value$_selectorStringOrNull$0();
  123567. if (string == null)
  123568. return _null;
  123569. result.push(string);
  123570. continue;
  123571. }
  123572. return _null;
  123573. }
  123574. break $label0$1;
  123575. }
  123576. if (B.ListSeparator_cQA0 === _1_0)
  123577. return _null;
  123578. for (_i = 0; _i < t2; ++_i) {
  123579. compound = t1[_i];
  123580. if (!(compound instanceof A.SassString0))
  123581. return _null;
  123582. result.push(compound._string0$_text);
  123583. }
  123584. break $label0$1;
  123585. }
  123586. return B.JSArray_methods.join$1(result, _1_0 === B.ListSeparator_ECn0 ? ", " : " ");
  123587. },
  123588. withListContents$2$separator(contents, separator) {
  123589. var t1 = separator == null ? this.get$separator(this) : separator,
  123590. t2 = this.get$hasBrackets();
  123591. return A.SassList$0(contents, t1, t2);
  123592. },
  123593. withListContents$1(contents) {
  123594. return this.withListContents$2$separator(contents, null);
  123595. },
  123596. greaterThan$1(other) {
  123597. return A.throwExpression(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " > " + other.toString$0(0) + '".', null));
  123598. },
  123599. greaterThanOrEquals$1(other) {
  123600. return A.throwExpression(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " >= " + other.toString$0(0) + '".', null));
  123601. },
  123602. lessThan$1(other) {
  123603. return A.throwExpression(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " < " + other.toString$0(0) + '".', null));
  123604. },
  123605. lessThanOrEquals$1(other) {
  123606. return A.throwExpression(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " <= " + other.toString$0(0) + '".', null));
  123607. },
  123608. times$1(other) {
  123609. return A.throwExpression(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " * " + other.toString$0(0) + '".', null));
  123610. },
  123611. modulo$1(other) {
  123612. return A.throwExpression(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " % " + other.toString$0(0) + '".', null));
  123613. },
  123614. plus$1(other) {
  123615. var t1;
  123616. $label0$0: {
  123617. if (other instanceof A.SassString0) {
  123618. t1 = new A.SassString0(A.serializeValue0(this, false, true) + other._string0$_text, other._string0$_hasQuotes);
  123619. break $label0$0;
  123620. }
  123621. if (other instanceof A.SassCalculation0)
  123622. A.throwExpression(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " + " + other.toString$0(0) + '".', null));
  123623. t1 = new A.SassString0(A.serializeValue0(this, false, true) + A.serializeValue0(other, false, true), false);
  123624. break $label0$0;
  123625. }
  123626. return t1;
  123627. },
  123628. minus$1(other) {
  123629. return other instanceof A.SassCalculation0 ? A.throwExpression(A.SassScriptException$0('Undefined operation "' + this.toString$0(0) + " - " + other.toString$0(0) + '".', null)) : new A.SassString0(A.serializeValue0(this, false, true) + "-" + A.serializeValue0(other, false, true), false);
  123630. },
  123631. dividedBy$1(other) {
  123632. return new A.SassString0(A.serializeValue0(this, false, true) + "/" + A.serializeValue0(other, false, true), false);
  123633. },
  123634. unaryPlus$0() {
  123635. return new A.SassString0("+" + A.serializeValue0(this, false, true), false);
  123636. },
  123637. unaryMinus$0() {
  123638. return new A.SassString0("-" + A.serializeValue0(this, false, true), false);
  123639. },
  123640. unaryNot$0() {
  123641. return B.SassBoolean_false0;
  123642. },
  123643. withoutSlash$0() {
  123644. return this;
  123645. },
  123646. toString$0(_) {
  123647. return A.serializeValue0(this, true, true);
  123648. }
  123649. };
  123650. A.VariableExpression0.prototype = {
  123651. accept$1$1(visitor) {
  123652. return visitor.visitVariableExpression$1(0, this);
  123653. },
  123654. accept$1(visitor) {
  123655. return this.accept$1$1(visitor, type$.dynamic);
  123656. },
  123657. toString$0(_) {
  123658. var t1 = this.span;
  123659. return A.String_String$fromCharCodes(B.NativeUint32List_methods.sublist$2(t1.file._decodedChars, t1._file$_start, t1._end), 0, null);
  123660. },
  123661. get$span(receiver) {
  123662. return this.span;
  123663. }
  123664. };
  123665. A.VariableDeclaration0.prototype = {
  123666. accept$1$1(visitor) {
  123667. return visitor.visitVariableDeclaration$1(0, this);
  123668. },
  123669. accept$1(visitor) {
  123670. return this.accept$1$1(visitor, type$.dynamic);
  123671. },
  123672. toString$0(_) {
  123673. var t1 = this.namespace;
  123674. t1 = t1 != null ? "" + (t1 + ".") : "";
  123675. t1 += "$" + this.name + ": " + this.expression.toString$0(0) + ";";
  123676. return t1.charCodeAt(0) == 0 ? t1 : t1;
  123677. },
  123678. get$span(receiver) {
  123679. return this.span;
  123680. }
  123681. };
  123682. A.WarnRule0.prototype = {
  123683. accept$1$1(visitor) {
  123684. return visitor.visitWarnRule$1(0, this);
  123685. },
  123686. accept$1(visitor) {
  123687. return this.accept$1$1(visitor, type$.dynamic);
  123688. },
  123689. toString$0(_) {
  123690. return "@warn " + this.expression.toString$0(0) + ";";
  123691. },
  123692. get$span(receiver) {
  123693. return this.span;
  123694. }
  123695. };
  123696. A.WhileRule0.prototype = {
  123697. accept$1$1(visitor) {
  123698. return visitor.visitWhileRule$1(0, this);
  123699. },
  123700. accept$1(visitor) {
  123701. return this.accept$1$1(visitor, type$.dynamic);
  123702. },
  123703. toString$0(_) {
  123704. var t1 = this.children;
  123705. return "@while " + this.condition.toString$0(0) + " {" + (t1 && B.JSArray_methods).join$1(t1, " ") + "}";
  123706. },
  123707. get$span(receiver) {
  123708. return this.span;
  123709. }
  123710. };
  123711. A.XyzD50ColorSpace0.prototype = {
  123712. get$isBoundedInternal() {
  123713. return false;
  123714. },
  123715. convert$10$missingA$missingB$missingChroma$missingHue$missingLightness(dest, x, y, z, alpha, missingA, missingB, missingChroma, missingHue, missingLightness) {
  123716. var f0, f1, f2, lightness, a, b, t1, _this = this, _null = null;
  123717. if (B.LabColorSpace_IF20 === dest || B.LchColorSpace_wv80 === dest) {
  123718. f0 = _this._xyz_d50$_convertComponentToLabF$1((x == null ? 0 : x) / 0.9642956764295677);
  123719. f1 = _this._xyz_d50$_convertComponentToLabF$1((y == null ? 0 : y) / 1);
  123720. f2 = _this._xyz_d50$_convertComponentToLabF$1((z == null ? 0 : z) / 0.8251046025104602);
  123721. lightness = missingLightness ? _null : 116 * f1 - 16;
  123722. a = 500 * (f0 - f1);
  123723. b = 200 * (f1 - f2);
  123724. if (dest === B.LabColorSpace_IF20) {
  123725. t1 = missingA ? _null : a;
  123726. t1 = A.SassColor$_forSpace0(B.LabColorSpace_IF20, lightness, t1, missingB ? _null : b, alpha, _null);
  123727. } else
  123728. t1 = A.labToLch0(B.LchColorSpace_wv80, lightness, a, b, alpha, missingChroma, missingHue);
  123729. return t1;
  123730. }
  123731. return _this.super$ColorSpace$convertLinear0(dest, x, y, z, alpha, missingA, missingB, missingChroma, missingHue, missingLightness);
  123732. },
  123733. convert$5(dest, x, y, z, alpha) {
  123734. return this.convert$10$missingA$missingB$missingChroma$missingHue$missingLightness(dest, x, y, z, alpha, false, false, false, false, false);
  123735. },
  123736. _xyz_d50$_convertComponentToLabF$1(component) {
  123737. return component > 0.008856451679035631 ? Math.pow(component, 0.3333333333333333) + 0 : (903.2962962962963 * component + 16) / 116;
  123738. },
  123739. toLinear$1(channel) {
  123740. return channel;
  123741. },
  123742. fromLinear$1(channel) {
  123743. return channel;
  123744. },
  123745. transformationMatrix$1(dest) {
  123746. var t1;
  123747. $label0$0: {
  123748. if (B.SrgbLinearColorSpace_sEs0 === dest || B.SrgbColorSpace_AD40 === dest || B.RgbColorSpace_mlz0 === dest) {
  123749. t1 = $.$get$xyzD50ToLinearSrgb0();
  123750. break $label0$0;
  123751. }
  123752. if (B.A98RgbColorSpace_bdu0 === dest) {
  123753. t1 = $.$get$xyzD50ToLinearA98Rgb0();
  123754. break $label0$0;
  123755. }
  123756. if (B.ProphotoRgbColorSpace_KiG0 === dest) {
  123757. t1 = $.$get$xyzD50ToLinearProphotoRgb0();
  123758. break $label0$0;
  123759. }
  123760. if (B.DisplayP3ColorSpace_NQk0 === dest) {
  123761. t1 = $.$get$xyzD50ToLinearDisplayP30();
  123762. break $label0$0;
  123763. }
  123764. if (B.Rec2020ColorSpace_2jN0 === dest) {
  123765. t1 = $.$get$xyzD50ToLinearRec20200();
  123766. break $label0$0;
  123767. }
  123768. if (B.XyzD65ColorSpace_4CA0 === dest) {
  123769. t1 = $.$get$xyzD50ToXyzD650();
  123770. break $label0$0;
  123771. }
  123772. if (B.LmsColorSpace_8I80 === dest) {
  123773. t1 = $.$get$xyzD50ToLms0();
  123774. break $label0$0;
  123775. }
  123776. t1 = this.super$ColorSpace$transformationMatrix0(dest);
  123777. break $label0$0;
  123778. }
  123779. return t1;
  123780. }
  123781. };
  123782. A.XyzD65ColorSpace0.prototype = {
  123783. get$isBoundedInternal() {
  123784. return false;
  123785. },
  123786. toLinear$1(channel) {
  123787. return channel;
  123788. },
  123789. fromLinear$1(channel) {
  123790. return channel;
  123791. },
  123792. transformationMatrix$1(dest) {
  123793. var t1;
  123794. $label0$0: {
  123795. if (B.SrgbLinearColorSpace_sEs0 === dest || B.SrgbColorSpace_AD40 === dest || B.RgbColorSpace_mlz0 === dest) {
  123796. t1 = $.$get$xyzD65ToLinearSrgb0();
  123797. break $label0$0;
  123798. }
  123799. if (B.A98RgbColorSpace_bdu0 === dest) {
  123800. t1 = $.$get$xyzD65ToLinearA98Rgb0();
  123801. break $label0$0;
  123802. }
  123803. if (B.ProphotoRgbColorSpace_KiG0 === dest) {
  123804. t1 = $.$get$xyzD65ToLinearProphotoRgb0();
  123805. break $label0$0;
  123806. }
  123807. if (B.DisplayP3ColorSpace_NQk0 === dest) {
  123808. t1 = $.$get$xyzD65ToLinearDisplayP30();
  123809. break $label0$0;
  123810. }
  123811. if (B.Rec2020ColorSpace_2jN0 === dest) {
  123812. t1 = $.$get$xyzD65ToLinearRec20200();
  123813. break $label0$0;
  123814. }
  123815. if (B.XyzD50ColorSpace_2No0 === dest) {
  123816. t1 = $.$get$xyzD65ToXyzD500();
  123817. break $label0$0;
  123818. }
  123819. if (B.LmsColorSpace_8I80 === dest) {
  123820. t1 = $.$get$xyzD65ToLms0();
  123821. break $label0$0;
  123822. }
  123823. t1 = this.super$ColorSpace$transformationMatrix0(dest);
  123824. break $label0$0;
  123825. }
  123826. return t1;
  123827. }
  123828. };
  123829. (function aliases() {
  123830. var _ = J.LegacyJavaScriptObject.prototype;
  123831. _.super$LegacyJavaScriptObject$toString = _.toString$0;
  123832. _ = A.JsLinkedHashMap.prototype;
  123833. _.super$JsLinkedHashMap$internalContainsKey = _.internalContainsKey$1;
  123834. _.super$JsLinkedHashMap$internalGet = _.internalGet$1;
  123835. _.super$JsLinkedHashMap$internalSet = _.internalSet$2;
  123836. _.super$JsLinkedHashMap$internalRemove = _.internalRemove$1;
  123837. _ = A._BufferingStreamSubscription.prototype;
  123838. _.super$_BufferingStreamSubscription$_add = _._async$_add$1;
  123839. _.super$_BufferingStreamSubscription$_addError = _._addError$2;
  123840. _ = A.ListBase.prototype;
  123841. _.super$ListBase$setRange = _.setRange$4;
  123842. _ = A.Iterable.prototype;
  123843. _.super$Iterable$where = _.where$1;
  123844. _.super$Iterable$skipWhile = _.skipWhile$1;
  123845. _ = A.ModifiableCssParentNode.prototype;
  123846. _.super$ModifiableCssParentNode$addChild = _.addChild$1;
  123847. _ = A.SimpleSelector.prototype;
  123848. _.super$SimpleSelector$addSuffix = _.addSuffix$1;
  123849. _.super$SimpleSelector$unify = _.unify$1;
  123850. _.super$SimpleSelector$isSuperselector = _.isSuperselector$1;
  123851. _ = A.Parser.prototype;
  123852. _.super$Parser$silentComment = _.silentComment$0;
  123853. _ = A.StylesheetParser.prototype;
  123854. _.super$StylesheetParser$importArgument = _.importArgument$0;
  123855. _.super$StylesheetParser$namespacedExpression = _.namespacedExpression$2;
  123856. _ = A.Value.prototype;
  123857. _.super$Value$assertMap = _.assertMap$1;
  123858. _.super$Value$plus = _.plus$1;
  123859. _.super$Value$minus = _.minus$1;
  123860. _.super$Value$dividedBy = _.dividedBy$1;
  123861. _.super$Value$toString = _.toString$0;
  123862. _ = A.ColorSpace.prototype;
  123863. _.super$ColorSpace$convert = _.convert$5;
  123864. _.super$ColorSpace$convertLinear = _.convertLinear$10$missingA$missingB$missingChroma$missingHue$missingLightness;
  123865. _.super$ColorSpace$transformationMatrix = _.transformationMatrix$1;
  123866. _ = A.SassNumber.prototype;
  123867. _.super$SassNumber$convertValueToMatch = _.convertValueToMatch$3;
  123868. _.super$SassNumber$coerce = _.coerce$3;
  123869. _.super$SassNumber$coerceValue = _.coerceValue$3;
  123870. _.super$SassNumber$coerceValueToUnit = _.coerceValueToUnit$2;
  123871. _.super$SassNumber$coerceToMatch = _.coerceToMatch$3;
  123872. _.super$SassNumber$coerceValueToMatch = _.coerceValueToMatch$3;
  123873. _.super$SassNumber$greaterThan = _.greaterThan$1;
  123874. _.super$SassNumber$greaterThanOrEquals = _.greaterThanOrEquals$1;
  123875. _.super$SassNumber$lessThan = _.lessThan$1;
  123876. _.super$SassNumber$lessThanOrEquals = _.lessThanOrEquals$1;
  123877. _.super$SassNumber$modulo = _.modulo$1;
  123878. _.super$SassNumber$plus = _.plus$1;
  123879. _.super$SassNumber$minus = _.minus$1;
  123880. _.super$SassNumber$times = _.times$1;
  123881. _.super$SassNumber$dividedBy = _.dividedBy$1;
  123882. _ = A.AnySelectorVisitor.prototype;
  123883. _.super$AnySelectorVisitor$visitComplexSelector = _.visitComplexSelector$1;
  123884. _ = A.EveryCssVisitor.prototype;
  123885. _.super$EveryCssVisitor$visitCssStyleRule = _.visitCssStyleRule$1;
  123886. _ = A.ReplaceExpressionVisitor.prototype;
  123887. _.super$ReplaceExpressionVisitor$visitBinaryOperationExpression = _.visitBinaryOperationExpression$1;
  123888. _.super$ReplaceExpressionVisitor$visitUnaryOperationExpression = _.visitUnaryOperationExpression$1;
  123889. _ = A.SourceSpanMixin.prototype;
  123890. _.super$SourceSpanMixin$compareTo = _.compareTo$1;
  123891. _.super$SourceSpanMixin$$eq = _.$eq;
  123892. _ = A.StringScanner.prototype;
  123893. _.super$StringScanner$readChar = _.readChar$0;
  123894. _.super$StringScanner$scanChar = _.scanChar$1;
  123895. _.super$StringScanner$scan = _.scan$1;
  123896. _.super$StringScanner$matches = _.matches$1;
  123897. _ = A.AnySelectorVisitor0.prototype;
  123898. _.super$AnySelectorVisitor$visitComplexSelector0 = _.visitComplexSelector$1;
  123899. _ = A.EveryCssVisitor0.prototype;
  123900. _.super$EveryCssVisitor$visitCssStyleRule0 = _.visitCssStyleRule$1;
  123901. _ = A.ModifiableCssParentNode0.prototype;
  123902. _.super$ModifiableCssParentNode$addChild0 = _.addChild$1;
  123903. _ = A.SassNumber0.prototype;
  123904. _.super$SassNumber$convertToMatch = _.convertToMatch$3;
  123905. _.super$SassNumber$convertValueToMatch0 = _.convertValueToMatch$3;
  123906. _.super$SassNumber$coerce0 = _.coerce$3;
  123907. _.super$SassNumber$coerceValue0 = _.coerceValue$3;
  123908. _.super$SassNumber$coerceValueToUnit0 = _.coerceValueToUnit$2;
  123909. _.super$SassNumber$coerceToMatch0 = _.coerceToMatch$3;
  123910. _.super$SassNumber$coerceValueToMatch0 = _.coerceValueToMatch$3;
  123911. _.super$SassNumber$greaterThan0 = _.greaterThan$1;
  123912. _.super$SassNumber$greaterThanOrEquals0 = _.greaterThanOrEquals$1;
  123913. _.super$SassNumber$lessThan0 = _.lessThan$1;
  123914. _.super$SassNumber$lessThanOrEquals0 = _.lessThanOrEquals$1;
  123915. _.super$SassNumber$modulo0 = _.modulo$1;
  123916. _.super$SassNumber$plus0 = _.plus$1;
  123917. _.super$SassNumber$minus0 = _.minus$1;
  123918. _.super$SassNumber$times0 = _.times$1;
  123919. _.super$SassNumber$dividedBy0 = _.dividedBy$1;
  123920. _ = A.Parser1.prototype;
  123921. _.super$Parser$silentComment0 = _.silentComment$0;
  123922. _ = A.ReplaceExpressionVisitor0.prototype;
  123923. _.super$ReplaceExpressionVisitor$visitBinaryOperationExpression0 = _.visitBinaryOperationExpression$1;
  123924. _.super$ReplaceExpressionVisitor$visitUnaryOperationExpression0 = _.visitUnaryOperationExpression$1;
  123925. _ = A.SimpleSelector0.prototype;
  123926. _.super$SimpleSelector$addSuffix0 = _.addSuffix$1;
  123927. _.super$SimpleSelector$unify0 = _.unify$1;
  123928. _.super$SimpleSelector$isSuperselector0 = _.isSuperselector$1;
  123929. _ = A.ColorSpace0.prototype;
  123930. _.super$ColorSpace$convert0 = _.convert$5;
  123931. _.super$ColorSpace$convertLinear0 = _.convertLinear$10$missingA$missingB$missingChroma$missingHue$missingLightness;
  123932. _.super$ColorSpace$transformationMatrix0 = _.transformationMatrix$1;
  123933. _ = A.StylesheetParser0.prototype;
  123934. _.super$StylesheetParser$importArgument0 = _.importArgument$0;
  123935. _.super$StylesheetParser$namespacedExpression0 = _.namespacedExpression$2;
  123936. _ = A.Value0.prototype;
  123937. _.super$Value$assertMap0 = _.assertMap$1;
  123938. _.super$Value$plus0 = _.plus$1;
  123939. _.super$Value$minus0 = _.minus$1;
  123940. _.super$Value$dividedBy0 = _.dividedBy$1;
  123941. _.super$Value$toString0 = _.toString$0;
  123942. })();
  123943. (function installTearOffs() {
  123944. var _static_2 = hunkHelpers._static_2,
  123945. _instance_1_i = hunkHelpers._instance_1i,
  123946. _instance_1_u = hunkHelpers._instance_1u,
  123947. _static_1 = hunkHelpers._static_1,
  123948. _static_0 = hunkHelpers._static_0,
  123949. _static = hunkHelpers.installStaticTearOff,
  123950. _instance = hunkHelpers.installInstanceTearOff,
  123951. _instance_2_u = hunkHelpers._instance_2u,
  123952. _instance_0_i = hunkHelpers._instance_0i,
  123953. _instance_0_u = hunkHelpers._instance_0u;
  123954. _static_2(J, "_interceptors_JSArray__compareAny$closure", "JSArray__compareAny", 264);
  123955. _instance_1_i(J.JSArray.prototype, "get$contains", "contains$1", 9);
  123956. _instance_1_i(A._CastIterableBase.prototype, "get$contains", "contains$1", 9);
  123957. _instance_1_u(A.CastMap.prototype, "get$containsKey", "containsKey$1", 9);
  123958. _instance_1_u(A.ConstantStringMap.prototype, "get$containsKey", "containsKey$1", 9);
  123959. _instance_1_i(A.ConstantStringSet.prototype, "get$contains", "contains$1", 9);
  123960. _instance_1_i(A.GeneralConstantSet.prototype, "get$contains", "contains$1", 9);
  123961. _instance_1_u(A.JsLinkedHashMap.prototype, "get$containsKey", "containsKey$1", 9);
  123962. _static_1(A, "async__AsyncRun__scheduleImmediateJsOverride$closure", "_AsyncRun__scheduleImmediateJsOverride", 118);
  123963. _static_1(A, "async__AsyncRun__scheduleImmediateWithSetImmediate$closure", "_AsyncRun__scheduleImmediateWithSetImmediate", 118);
  123964. _static_1(A, "async__AsyncRun__scheduleImmediateWithTimer$closure", "_AsyncRun__scheduleImmediateWithTimer", 118);
  123965. _static_0(A, "async___startMicrotaskLoop$closure", "_startMicrotaskLoop", 0);
  123966. _static_1(A, "async___nullDataHandler$closure", "_nullDataHandler", 70);
  123967. _static_2(A, "async___nullErrorHandler$closure", "_nullErrorHandler", 68);
  123968. _static_0(A, "async___nullDoneHandler$closure", "_nullDoneHandler", 0);
  123969. _static(A, "async___rootHandleUncaughtError$closure", 5, null, ["call$5"], ["_rootHandleUncaughtError"], 632, 0);
  123970. _static(A, "async___rootRun$closure", 4, null, ["call$1$4", "call$4"], ["_rootRun", function($self, $parent, zone, f) {
  123971. return A._rootRun($self, $parent, zone, f, type$.dynamic);
  123972. }], 633, 1);
  123973. _static(A, "async___rootRunUnary$closure", 5, null, ["call$2$5", "call$5"], ["_rootRunUnary", function($self, $parent, zone, f, arg) {
  123974. var t1 = type$.dynamic;
  123975. return A._rootRunUnary($self, $parent, zone, f, arg, t1, t1);
  123976. }], 634, 1);
  123977. _static(A, "async___rootRunBinary$closure", 6, null, ["call$3$6", "call$6"], ["_rootRunBinary", function($self, $parent, zone, f, arg1, arg2) {
  123978. var t1 = type$.dynamic;
  123979. return A._rootRunBinary($self, $parent, zone, f, arg1, arg2, t1, t1, t1);
  123980. }], 635, 1);
  123981. _static(A, "async___rootRegisterCallback$closure", 4, null, ["call$1$4", "call$4"], ["_rootRegisterCallback", function($self, $parent, zone, f) {
  123982. return A._rootRegisterCallback($self, $parent, zone, f, type$.dynamic);
  123983. }], 636, 0);
  123984. _static(A, "async___rootRegisterUnaryCallback$closure", 4, null, ["call$2$4", "call$4"], ["_rootRegisterUnaryCallback", function($self, $parent, zone, f) {
  123985. var t1 = type$.dynamic;
  123986. return A._rootRegisterUnaryCallback($self, $parent, zone, f, t1, t1);
  123987. }], 637, 0);
  123988. _static(A, "async___rootRegisterBinaryCallback$closure", 4, null, ["call$3$4", "call$4"], ["_rootRegisterBinaryCallback", function($self, $parent, zone, f) {
  123989. var t1 = type$.dynamic;
  123990. return A._rootRegisterBinaryCallback($self, $parent, zone, f, t1, t1, t1);
  123991. }], 638, 0);
  123992. _static(A, "async___rootErrorCallback$closure", 5, null, ["call$5"], ["_rootErrorCallback"], 639, 0);
  123993. _static(A, "async___rootScheduleMicrotask$closure", 4, null, ["call$4"], ["_rootScheduleMicrotask"], 640, 0);
  123994. _static(A, "async___rootCreateTimer$closure", 5, null, ["call$5"], ["_rootCreateTimer"], 641, 0);
  123995. _static(A, "async___rootCreatePeriodicTimer$closure", 5, null, ["call$5"], ["_rootCreatePeriodicTimer"], 642, 0);
  123996. _static(A, "async___rootPrint$closure", 4, null, ["call$4"], ["_rootPrint"], 643, 0);
  123997. _static_1(A, "async___printToZone$closure", "_printToZone", 84);
  123998. _static(A, "async___rootFork$closure", 5, null, ["call$5"], ["_rootFork"], 644, 0);
  123999. _instance(A._AsyncCompleter.prototype, "get$complete", 0, 0, function() {
  124000. return [null];
  124001. }, ["call$1", "call$0"], ["complete$1", "complete$0"], 265, 0, 0);
  124002. _instance_2_u(A._Future.prototype, "get$_completeError", "_completeError$2", 68);
  124003. var _;
  124004. _instance_1_i(_ = A._StreamController.prototype, "get$add", "add$1", 33);
  124005. _instance(_, "get$addError", 0, 1, function() {
  124006. return [null];
  124007. }, ["call$2", "call$1"], ["addError$2", "addError$1"], 176, 0, 0);
  124008. _instance_0_i(_, "get$close", "close$0", 447);
  124009. _instance_1_u(_, "get$_async$_add", "_async$_add$1", 33);
  124010. _instance_2_u(_, "get$_addError", "_addError$2", 68);
  124011. _instance_0_u(_, "get$_close", "_close$0", 0);
  124012. _instance_0_u(_ = A._ControllerSubscription.prototype, "get$_async$_onPause", "_async$_onPause$0", 0);
  124013. _instance_0_u(_, "get$_async$_onResume", "_async$_onResume$0", 0);
  124014. _instance(_ = A._BufferingStreamSubscription.prototype, "get$pause", 1, 0, null, ["call$1", "call$0"], ["pause$1", "pause$0"], 471, 0, 0);
  124015. _instance_0_i(_, "get$resume", "resume$0", 0);
  124016. _instance_0_u(_, "get$_async$_onPause", "_async$_onPause$0", 0);
  124017. _instance_0_u(_, "get$_async$_onResume", "_async$_onResume$0", 0);
  124018. _instance_1_u(_ = A._StreamIterator.prototype, "get$_onData", "_onData$1", 33);
  124019. _instance_2_u(_, "get$_onError", "_onError$2", 68);
  124020. _instance_0_u(_, "get$_onDone", "_onDone$0", 0);
  124021. _instance_0_u(_ = A._ForwardingStreamSubscription.prototype, "get$_async$_onPause", "_async$_onPause$0", 0);
  124022. _instance_0_u(_, "get$_async$_onResume", "_async$_onResume$0", 0);
  124023. _instance_1_u(_, "get$_handleData", "_handleData$1", 33);
  124024. _instance_2_u(_, "get$_handleError", "_handleError$2", 510);
  124025. _instance_0_u(_, "get$_handleDone", "_handleDone$0", 0);
  124026. _static_2(A, "collection___defaultEquals$closure", "_defaultEquals", 266);
  124027. _static_1(A, "collection___defaultHashCode$closure", "_defaultHashCode", 267);
  124028. _static_2(A, "collection_ListBase__compareAny$closure", "ListBase__compareAny", 264);
  124029. _instance_1_u(A._HashMap.prototype, "get$containsKey", "containsKey$1", 9);
  124030. _instance_1_u(A._LinkedCustomHashMap.prototype, "get$containsKey", "containsKey$1", 9);
  124031. _instance(_ = A._LinkedHashSet.prototype, "get$_newSimilarSet", 0, 0, null, ["call$1$0", "call$0"], ["_newSimilarSet$1$0", "_newSimilarSet$0"], 186, 0, 0);
  124032. _instance_1_i(_, "get$contains", "contains$1", 9);
  124033. _instance_1_i(_, "get$add", "add$1", 9);
  124034. _instance(A._LinkedIdentityHashSet.prototype, "get$_newSimilarSet", 0, 0, null, ["call$1$0", "call$0"], ["_newSimilarSet$1$0", "_newSimilarSet$0"], 186, 0, 0);
  124035. _instance_1_u(A.MapBase.prototype, "get$containsKey", "containsKey$1", 9);
  124036. _instance_1_u(A.MapView.prototype, "get$containsKey", "containsKey$1", 9);
  124037. _instance_1_i(A.UnmodifiableSetView.prototype, "get$contains", "contains$1", 9);
  124038. _static_1(A, "convert___defaultToEncodable$closure", "_defaultToEncodable", 110);
  124039. _instance_1_u(A._JsonMap.prototype, "get$containsKey", "containsKey$1", 9);
  124040. _static_1(A, "core__identityHashCode$closure", "identityHashCode", 267);
  124041. _static_2(A, "core__identical$closure", "identical", 266);
  124042. _static_1(A, "core_Uri_decodeComponent$closure", "Uri_decodeComponent", 6);
  124043. _instance_1_i(A.Iterable.prototype, "get$contains", "contains$1", 9);
  124044. _instance_1_i(A.StringBuffer.prototype, "get$write", "write$1", 33);
  124045. _static(A, "math0__max$closure", 2, null, ["call$1$2", "call$2"], ["max", function(a, b) {
  124046. return A.max(a, b, type$.num);
  124047. }], 647, 1);
  124048. _instance_1_u(A.ArgResults.prototype, "get$wasParsed", "wasParsed$1", 5);
  124049. _instance_1_u(_ = A.StreamCompleter.prototype, "get$setSourceStream", "setSourceStream$1", 33);
  124050. _instance(_, "get$setError", 0, 1, function() {
  124051. return [null];
  124052. }, ["call$2", "call$1"], ["setError$2", "setError$1"], 176, 0, 0);
  124053. _instance_0_u(_ = A.StreamGroup.prototype, "get$_onListen", "_onListen$0", 0);
  124054. _instance_0_u(_, "get$_onPause", "_onPause$0", 0);
  124055. _instance_0_u(_, "get$_onResume", "_onResume$0", 0);
  124056. _instance_0_u(_, "get$_onCancel", "_onCancel$0", 190);
  124057. _instance_0_i(A.ReplAdapter.prototype, "get$exit", "exit$0", 0);
  124058. _instance_1_i(A.EmptyUnmodifiableSet.prototype, "get$contains", "contains$1", 9);
  124059. _instance_1_i(A.UnionSet.prototype, "get$contains", "contains$1", 9);
  124060. _instance_1_i(A._DelegatingIterableBase.prototype, "get$contains", "contains$1", 9);
  124061. _instance_1_i(A.MapKeySet.prototype, "get$contains", "contains$1", 9);
  124062. _static_1(A, "version_Version___parse_tearOff$closure", "Version___parse_tearOff", 219);
  124063. _instance_1_u(A.VersionRange.prototype, "get$allows", "allows$1", 326);
  124064. _instance_1_u(A._IsInvisibleVisitor0.prototype, "get$visitComplexSelector", "visitComplexSelector$1", 19);
  124065. _instance_1_u(A._IsBogusVisitor.prototype, "get$visitComplexSelector", "visitComplexSelector$1", 19);
  124066. _instance_1_u(A._IsUselessVisitor.prototype, "get$visitComplexSelector", "visitComplexSelector$1", 19);
  124067. _instance_1_u(A.SelectorList.prototype, "get$isSuperselector", "isSuperselector$1", 69);
  124068. _instance_1_u(A.PseudoSelector.prototype, "get$isSuperselector", "isSuperselector$1", 13);
  124069. _instance_1_u(A.SimpleSelector.prototype, "get$isSuperselector", "isSuperselector$1", 13);
  124070. _instance_1_u(A.TypeSelector.prototype, "get$isSuperselector", "isSuperselector$1", 13);
  124071. _instance_1_u(A.UniversalSelector.prototype, "get$isSuperselector", "isSuperselector$1", 13);
  124072. _instance_1_u(A.EmptyExtensionStore.prototype, "get$addExtensions", "addExtensions$1", 156);
  124073. _instance_1_u(A.ExtensionStore.prototype, "get$addExtensions", "addExtensions$1", 156);
  124074. _static_1(A, "functions___isUnique$closure", "_isUnique", 13);
  124075. _instance_2_u(A.NodePackageImporter.prototype, "get$_compareExpansionKeys", "_compareExpansionKeys$2", 141);
  124076. _instance_0_u(A.CssParser.prototype, "get$silentComment", "silentComment$0", 24);
  124077. _instance_0_u(_ = A.Parser.prototype, "get$whitespace", "whitespace$0", 0);
  124078. _instance_0_u(_, "get$silentComment", "silentComment$0", 24);
  124079. _instance_0_u(_, "get$loudComment", "loudComment$0", 0);
  124080. _instance_0_u(_, "get$string", "string$0", 31);
  124081. _instance(_, "get$error", 1, 2, function() {
  124082. return [null];
  124083. }, ["call$3", "call$2"], ["error$3", "error$2"], 170, 0, 0);
  124084. _instance_0_u(A.SassParser.prototype, "get$loudComment", "loudComment$0", 0);
  124085. _instance(_ = A.StylesheetParser.prototype, "get$_statement", 0, 0, null, ["call$1$root", "call$0"], ["_statement$1$root", "_statement$0"], 349, 0, 0);
  124086. _instance_0_u(_, "get$_declarationChild", "_declarationChild$0", 125);
  124087. _instance_0_u(_, "get$_functionChild", "_functionChild$0", 125);
  124088. _instance(_, "get$_expression", 0, 0, null, ["call$3$bracketList$singleEquals$until", "call$0", "call$2$singleEquals$until", "call$1$bracketList", "call$1$until"], ["_expression$3$bracketList$singleEquals$until", "_expression$0", "_expression$2$singleEquals$until", "_expression$1$bracketList", "_expression$1$until"], 352, 0, 0);
  124089. _instance_0_u(_, "get$_number", "_number$0", 353);
  124090. _instance(A.LazyFileSpan.prototype, "get$message", 1, 1, function() {
  124091. return {color: null};
  124092. }, ["call$2$color", "call$1"], ["message$2$color", "message$1"], 123, 0, 0);
  124093. _instance_1_u(A.LimitedMapView.prototype, "get$containsKey", "containsKey$1", 9);
  124094. _instance_1_u(A.MergedMapView.prototype, "get$containsKey", "containsKey$1", 9);
  124095. _instance(A.MultiSpan.prototype, "get$message", 1, 1, function() {
  124096. return {color: null};
  124097. }, ["call$2$color", "call$1"], ["message$2$color", "message$1"], 181, 0, 0);
  124098. _instance_1_i(A.NoSourceMapBuffer.prototype, "get$write", "write$1", 33);
  124099. _instance_1_u(A.PrefixedMapView.prototype, "get$containsKey", "containsKey$1", 9);
  124100. _instance_1_u(A.PublicMemberMapView.prototype, "get$containsKey", "containsKey$1", 9);
  124101. _instance_1_i(A.SourceMapBuffer.prototype, "get$write", "write$1", 33);
  124102. _instance_1_u(A.UnprefixedMapView.prototype, "get$containsKey", "containsKey$1", 9);
  124103. _static_1(A, "utils__isPublic$closure", "isPublic", 5);
  124104. _static_1(A, "calculation_SassCalculation__simplify$closure", "SassCalculation__simplify", 79);
  124105. _instance_1_u(A.ColorChannel.prototype, "get$isAnalogous", "isAnalogous$1", 90);
  124106. _instance_1_u(A.SrgbColorSpace.prototype, "get$toLinear", "toLinear$1", 15);
  124107. _instance_1_u(A.AnySelectorVisitor.prototype, "get$visitComplexSelector", "visitComplexSelector$1", 19);
  124108. _instance(_ = A._EvaluateVisitor0.prototype, "get$_async_evaluate$_interpolationToValue", 0, 1, null, ["call$3$trim$warnForColor", "call$1", "call$2$warnForColor"], ["_async_evaluate$_interpolationToValue$3$trim$warnForColor", "_async_evaluate$_interpolationToValue$1", "_async_evaluate$_interpolationToValue$2$warnForColor"], 425, 0, 0);
  124109. _instance_1_u(_, "get$_async_evaluate$_expressionNode", "_async_evaluate$_expressionNode$1", 188);
  124110. _instance(_ = A._EvaluateVisitor.prototype, "get$_interpolationToValue", 0, 1, null, ["call$3$trim$warnForColor", "call$1", "call$2$warnForColor"], ["_interpolationToValue$3$trim$warnForColor", "_interpolationToValue$1", "_interpolationToValue$2$warnForColor"], 582, 0, 0);
  124111. _instance_1_u(_, "get$_expressionNode", "_expressionNode$1", 188);
  124112. _instance_1_i(_ = A.RecursiveStatementVisitor.prototype, "get$visitContentBlock", "visitContentBlock$1", 275);
  124113. _instance_1_u(_, "get$visitChildren", "visitChildren$1", 276);
  124114. _instance_1_u(_ = A.SelectorSearchVisitor.prototype, "get$visitComplexSelector", "visitComplexSelector$1", "SelectorSearchVisitor.T?(ComplexSelector)");
  124115. _instance_1_u(_, "get$visitSelectorList", "visitSelectorList$1", "SelectorSearchVisitor.T?(SelectorList)");
  124116. _instance_1_u(_ = A._SerializeVisitor.prototype, "get$_visitMediaQuery", "_visitMediaQuery$1", 279);
  124117. _instance_1_u(_, "get$_specificities", "_specificities$1", 280);
  124118. _instance_1_u(_, "get$_writeCalculationValue", "_writeCalculationValue$1", 88);
  124119. _instance(_, "get$_writeChannel", 0, 1, null, ["call$2", "call$1"], ["_writeChannel$2", "_writeChannel$1"], 149, 0, 0);
  124120. _instance_1_u(_, "get$visitSelectorList", "visitSelectorList$1", 282);
  124121. _instance_1_u(_, "get$_requiresSemicolon", "_requiresSemicolon$1", 7);
  124122. _instance_1_i(_ = A.StatementSearchVisitor.prototype, "get$visitContentBlock", "visitContentBlock$1", "StatementSearchVisitor.T?(ContentBlock)");
  124123. _instance_1_u(_, "get$visitChildren", "visitChildren$1", "StatementSearchVisitor.T?(List<Statement>)");
  124124. _instance(A.SourceSpanMixin.prototype, "get$message", 1, 1, function() {
  124125. return {color: null};
  124126. }, ["call$2$color", "call$1"], ["message$2$color", "message$1"], 123, 0, 0);
  124127. _static_1(A, "frame_Frame___parseVM_tearOff$closure", "Frame___parseVM_tearOff", 92);
  124128. _static_1(A, "frame_Frame___parseV8_tearOff$closure", "Frame___parseV8_tearOff", 92);
  124129. _static_1(A, "frame_Frame___parseFirefox_tearOff$closure", "Frame___parseFirefox_tearOff", 92);
  124130. _static_1(A, "frame_Frame___parseFriendly_tearOff$closure", "Frame___parseFriendly_tearOff", 92);
  124131. _static_1(A, "trace_Trace___parseVM_tearOff$closure", "Trace___parseVM_tearOff", 269);
  124132. _static_1(A, "trace_Trace___parseFriendly_tearOff$closure", "Trace___parseFriendly_tearOff", 269);
  124133. _static(A, "from_handlers__TransformByHandlers__defaultHandleError$closure", 3, null, ["call$1$3", "call$3"], ["TransformByHandlers__defaultHandleError", function(error, stackTrace, sink) {
  124134. return A.TransformByHandlers__defaultHandleError(error, stackTrace, sink, type$.dynamic);
  124135. }], 650, 0);
  124136. _static(A, "rate_limit___collect$closure", 2, null, ["call$1$2", "call$2"], ["_collect", function($event, soFar) {
  124137. return A._collect($event, soFar, type$.dynamic);
  124138. }], 651, 0);
  124139. _instance_1_u(A.AnySelectorVisitor0.prototype, "get$visitComplexSelector", "visitComplexSelector$1", 20);
  124140. _instance(_ = A._EvaluateVisitor2.prototype, "get$_async_evaluate0$_interpolationToValue", 0, 1, null, ["call$3$trim$warnForColor", "call$1", "call$2$warnForColor"], ["_async_evaluate0$_interpolationToValue$3$trim$warnForColor", "_async_evaluate0$_interpolationToValue$1", "_async_evaluate0$_interpolationToValue$2$warnForColor"], 322, 0, 0);
  124141. _instance_1_u(_, "get$_async_evaluate0$_expressionNode", "_async_evaluate0$_expressionNode$1", 166);
  124142. _static_1(A, "calculation1___assertCalculationValue$closure", "_assertCalculationValue", 88);
  124143. _static_1(A, "calculation1___isValidClampArg$closure", "_isValidClampArg", 9);
  124144. _static_1(A, "calculation0_SassCalculation__simplify$closure", "SassCalculation__simplify0", 79);
  124145. _instance_1_u(A.ColorChannel0.prototype, "get$isAnalogous", "isAnalogous$1", 71);
  124146. _static(A, "compile__compile$closure", 1, function() {
  124147. return [null];
  124148. }, ["call$2", "call$1"], ["compile0", function(path) {
  124149. return A.compile0(path, null);
  124150. }], 652, 0);
  124151. _static(A, "compile__compileString$closure", 1, function() {
  124152. return [null];
  124153. }, ["call$2", "call$1"], ["compileString0", function(text) {
  124154. return A.compileString0(text, null);
  124155. }], 653, 0);
  124156. _static(A, "compile__compileAsync$closure", 1, function() {
  124157. return [null];
  124158. }, ["call$2", "call$1"], ["compileAsync1", function(path) {
  124159. return A.compileAsync1(path, null);
  124160. }], 654, 0);
  124161. _static(A, "compile__compileStringAsync$closure", 1, function() {
  124162. return [null];
  124163. }, ["call$2", "call$1"], ["compileStringAsync1", function(text) {
  124164. return A.compileStringAsync1(text, null);
  124165. }], 655, 0);
  124166. _static_1(A, "compile___parseImporter$closure", "_parseImporter0", 656);
  124167. _static_1(A, "compile___simplifyCalcArg$closure", "_simplifyCalcArg", 79);
  124168. _static_0(A, "compiler__initCompiler$closure", "initCompiler", 657);
  124169. _static_0(A, "compiler__initAsyncCompiler$closure", "initAsyncCompiler", 658);
  124170. _instance_0_u(A.CssParser0.prototype, "get$silentComment", "silentComment$0", 24);
  124171. _instance_1_u(A.EmptyExtensionStore0.prototype, "get$addExtensions", "addExtensions$1", 220);
  124172. _instance(_ = A._EvaluateVisitor1.prototype, "get$_evaluate0$_interpolationToValue", 0, 1, null, ["call$3$trim$warnForColor", "call$1", "call$2$warnForColor"], ["_evaluate0$_interpolationToValue$3$trim$warnForColor", "_evaluate0$_interpolationToValue$1", "_evaluate0$_interpolationToValue$2$warnForColor"], 452, 0, 0);
  124173. _instance_1_u(_, "get$_evaluate0$_expressionNode", "_evaluate0$_expressionNode$1", 166);
  124174. _instance_1_u(A.ExtensionStore0.prototype, "get$addExtensions", "addExtensions$1", 220);
  124175. _static_1(A, "functions0___isUnique$closure", "_isUnique0", 14);
  124176. _static_1(A, "immutable__jsToDartList$closure", "jsToDartList", 659);
  124177. _instance(A.LazyFileSpan0.prototype, "get$message", 1, 1, function() {
  124178. return {color: null};
  124179. }, ["call$2$color", "call$1"], ["message$2$color", "message$1"], 123, 0, 0);
  124180. _static_2(A, "legacy__render$closure", "render", 660);
  124181. _static_1(A, "legacy__renderSync$closure", "renderSync", 661);
  124182. _instance_1_u(A.LimitedMapView0.prototype, "get$containsKey", "containsKey$1", 9);
  124183. _instance_1_u(A.SelectorList0.prototype, "get$isSuperselector", "isSuperselector$1", 73);
  124184. _instance_1_u(A.MergedMapView0.prototype, "get$containsKey", "containsKey$1", 9);
  124185. _instance(A.MultiSpan0.prototype, "get$message", 1, 1, function() {
  124186. return {color: null};
  124187. }, ["call$2$color", "call$1"], ["message$2$color", "message$1"], 181, 0, 0);
  124188. _instance_1_i(A.NoSourceMapBuffer0.prototype, "get$write", "write$1", 33);
  124189. _instance_2_u(A.NodePackageImporter0.prototype, "get$_node_package$_compareExpansionKeys", "_node_package$_compareExpansionKeys$2", 141);
  124190. _static_0(A, "parser0__loadParserExports$closure", "loadParserExports", 662);
  124191. _static(A, "parser0___parse$closure", 3, null, ["call$3"], ["_parse"], 663, 0);
  124192. _static_1(A, "parser0___parseIdentifier$closure", "_parseIdentifier", 664);
  124193. _static_1(A, "parser0___toCssIdentifier$closure", "_toCssIdentifier", 6);
  124194. _instance_0_u(_ = A.Parser1.prototype, "get$whitespace", "whitespace$0", 0);
  124195. _instance_0_u(_, "get$silentComment", "silentComment$0", 24);
  124196. _instance_0_u(_, "get$loudComment", "loudComment$0", 0);
  124197. _instance_0_u(_, "get$string", "string$0", 31);
  124198. _instance(_, "get$error", 1, 2, function() {
  124199. return [null];
  124200. }, ["call$3", "call$2"], ["error$3", "error$2"], 170, 0, 0);
  124201. _instance_1_u(A.PrefixedMapView0.prototype, "get$containsKey", "containsKey$1", 9);
  124202. _instance_1_u(A.PseudoSelector0.prototype, "get$isSuperselector", "isSuperselector$1", 14);
  124203. _instance_1_u(A.PublicMemberMapView0.prototype, "get$containsKey", "containsKey$1", 9);
  124204. _instance_0_u(A.SassParser0.prototype, "get$loudComment", "loudComment$0", 0);
  124205. _instance_1_u(A._IsInvisibleVisitor2.prototype, "get$visitComplexSelector", "visitComplexSelector$1", 20);
  124206. _instance_1_u(A._IsBogusVisitor0.prototype, "get$visitComplexSelector", "visitComplexSelector$1", 20);
  124207. _instance_1_u(A._IsUselessVisitor0.prototype, "get$visitComplexSelector", "visitComplexSelector$1", 20);
  124208. _instance_1_u(_ = A.SelectorSearchVisitor0.prototype, "get$visitComplexSelector", "visitComplexSelector$1", "SelectorSearchVisitor0.T?(ComplexSelector0)");
  124209. _instance_1_u(_, "get$visitSelectorList", "visitSelectorList$1", "SelectorSearchVisitor0.T?(SelectorList0)");
  124210. _instance_1_u(_ = A._SerializeVisitor0.prototype, "get$_serialize0$_visitMediaQuery", "_serialize0$_visitMediaQuery$1", 570);
  124211. _instance_1_u(_, "get$_serialize0$_specificities", "_serialize0$_specificities$1", 571);
  124212. _instance_1_u(_, "get$_serialize0$_writeCalculationValue", "_serialize0$_writeCalculationValue$1", 88);
  124213. _instance(_, "get$_serialize0$_writeChannel", 0, 1, null, ["call$2", "call$1"], ["_serialize0$_writeChannel$2", "_serialize0$_writeChannel$1"], 149, 0, 0);
  124214. _instance_1_u(_, "get$visitSelectorList", "visitSelectorList$1", 572);
  124215. _instance_1_u(_, "get$_serialize0$_requiresSemicolon", "_serialize0$_requiresSemicolon$1", 8);
  124216. _instance_1_u(A.SimpleSelector0.prototype, "get$isSuperselector", "isSuperselector$1", 14);
  124217. _instance_1_i(A.SourceMapBuffer0.prototype, "get$write", "write$1", 33);
  124218. _instance_1_u(A.SrgbColorSpace0.prototype, "get$toLinear", "toLinear$1", 15);
  124219. _instance_1_i(_ = A.StatementSearchVisitor0.prototype, "get$visitContentBlock", "visitContentBlock$1", "StatementSearchVisitor0.T?(ContentBlock0)");
  124220. _instance_1_u(_, "get$visitChildren", "visitChildren$1", "StatementSearchVisitor0.T?(List<Statement0>)");
  124221. _instance(_ = A.StylesheetParser0.prototype, "get$_stylesheet0$_statement", 0, 0, null, ["call$1$root", "call$0"], ["_stylesheet0$_statement$1$root", "_stylesheet0$_statement$0"], 591, 0, 0);
  124222. _instance_0_u(_, "get$_stylesheet0$_declarationChild", "_stylesheet0$_declarationChild$0", 136);
  124223. _instance_0_u(_, "get$_stylesheet0$_functionChild", "_stylesheet0$_functionChild$0", 136);
  124224. _instance_0_u(_, "get$_stylesheet0$_number", "_stylesheet0$_number$0", 593);
  124225. _instance_1_u(A.TypeSelector0.prototype, "get$isSuperselector", "isSuperselector$1", 14);
  124226. _instance_1_u(A.UniversalSelector0.prototype, "get$isSuperselector", "isSuperselector$1", 14);
  124227. _instance_1_u(A.UnprefixedMapView0.prototype, "get$containsKey", "containsKey$1", 9);
  124228. _static_1(A, "utils3__jsToDartUrl$closure", "jsToDartUrl", 665);
  124229. _static_1(A, "utils3__dartToJSUrl$closure", "dartToJSUrl", 257);
  124230. _static_1(A, "utils1__isPublic$closure", "isPublic0", 5);
  124231. _static(A, "path__absolute$closure", 1, function() {
  124232. return [null, null, null, null, null, null, null, null, null, null, null, null, null, null];
  124233. }, ["call$15", "call$1", "call$2", "call$3", "call$4", "call$5", "call$6"], ["absolute", function(part1) {
  124234. var _null = null;
  124235. return A.absolute(part1, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null);
  124236. }, function(part1, part2) {
  124237. var _null = null;
  124238. return A.absolute(part1, part2, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null);
  124239. }, function(part1, part2, part3) {
  124240. var _null = null;
  124241. return A.absolute(part1, part2, part3, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null);
  124242. }, function(part1, part2, part3, part4) {
  124243. var _null = null;
  124244. return A.absolute(part1, part2, part3, part4, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null);
  124245. }, function(part1, part2, part3, part4, part5) {
  124246. var _null = null;
  124247. return A.absolute(part1, part2, part3, part4, part5, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null);
  124248. }, function(part1, part2, part3, part4, part5, part6) {
  124249. var _null = null;
  124250. return A.absolute(part1, part2, part3, part4, part5, part6, _null, _null, _null, _null, _null, _null, _null, _null, _null);
  124251. }], 666, 0);
  124252. _static_1(A, "path__toUri$closure", "toUri", 128);
  124253. _static_1(A, "path__prettyUri$closure", "prettyUri", 667);
  124254. _static_2(A, "number0__fuzzyLessThan$closure", "fuzzyLessThan", 45);
  124255. _static_2(A, "number0__fuzzyLessThanOrEquals$closure", "fuzzyLessThanOrEquals", 45);
  124256. _static_2(A, "number0__fuzzyGreaterThan$closure", "fuzzyGreaterThan", 45);
  124257. _static_2(A, "number0__fuzzyGreaterThanOrEquals$closure", "fuzzyGreaterThanOrEquals", 45);
  124258. _static_2(A, "number0__moduloLikeSass$closure", "moduloLikeSass", 62);
  124259. _static_1(A, "number0__sqrt$closure", "sqrt", 51);
  124260. _static_1(A, "number0__sin$closure", "sin", 51);
  124261. _static_1(A, "number0__cos$closure", "cos", 51);
  124262. _static_1(A, "number0__tan$closure", "tan", 51);
  124263. _static_1(A, "number0__atan$closure", "atan", 51);
  124264. _static_1(A, "number0__asin$closure", "asin", 51);
  124265. _static_1(A, "number0__acos$closure", "acos", 51);
  124266. _static_1(A, "utils0__srgbAndDisplayP3FromLinear$closure", "srgbAndDisplayP3FromLinear", 15);
  124267. _static_2(A, "number2__fuzzyLessThan$closure", "fuzzyLessThan0", 45);
  124268. _static_2(A, "number2__fuzzyLessThanOrEquals$closure", "fuzzyLessThanOrEquals0", 45);
  124269. _static_2(A, "number2__fuzzyGreaterThan$closure", "fuzzyGreaterThan0", 45);
  124270. _static_2(A, "number2__fuzzyGreaterThanOrEquals$closure", "fuzzyGreaterThanOrEquals0", 45);
  124271. _static_2(A, "number2__moduloLikeSass$closure", "moduloLikeSass0", 62);
  124272. _static_1(A, "number2__sqrt$closure", "sqrt0", 52);
  124273. _static_1(A, "number2__sin$closure", "sin0", 52);
  124274. _static_1(A, "number2__cos$closure", "cos0", 52);
  124275. _static_1(A, "number2__tan$closure", "tan0", 52);
  124276. _static_1(A, "number2__atan$closure", "atan0", 52);
  124277. _static_1(A, "number2__asin$closure", "asin0", 52);
  124278. _static_1(A, "number2__acos$closure", "acos0", 52);
  124279. _static_1(A, "sass__main$closure", "main1", 671);
  124280. _static_1(A, "utils4__validateUrlScheme$closure", "validateUrlScheme", 84);
  124281. _static_1(A, "utils2__srgbAndDisplayP3FromLinear$closure", "srgbAndDisplayP3FromLinear0", 15);
  124282. _static_1(A, "value0__wrapValue$closure", "wrapValue", 448);
  124283. })();
  124284. (function inheritance() {
  124285. var _mixin = hunkHelpers.mixin,
  124286. _inherit = hunkHelpers.inherit,
  124287. _inheritMany = hunkHelpers.inheritMany;
  124288. _inherit(A.Object, null);
  124289. _inheritMany(A.Object, [A.JS_CONST, J.Interceptor, J.ArrayIterator, A.Iterable, A.CastIterator, A.Closure, A.MapBase, A.Error, A.ListBase, A.SentinelValue, A.ListIterator, A.MappedIterator, A.WhereIterator, A.ExpandIterator, A.TakeIterator, A.SkipIterator, A.SkipWhileIterator, A.EmptyIterator, A.FollowedByIterator, A.WhereTypeIterator, A.NonNullsIterator, A.FixedLengthListMixin, A.UnmodifiableListMixin, A.Symbol, A._Record, A.MapView, A.ConstantMap, A._KeysOrValuesOrElementsIterator, A.SetBase, A.JSInvocationMirror, A.TypeErrorDecoder, A.NullThrownFromJavaScriptException, A.ExceptionAndStackTrace, A._StackTrace, A._Required, A.LinkedHashMapCell, A.LinkedHashMapKeyIterator, A.JSSyntaxRegExp, A._MatchImplementation, A._AllMatchesIterator, A.StringMatch, A._StringAllMatchesIterator, A._Cell, A.Rti, A._FunctionParameters, A._Type, A._TimerImpl, A._AsyncAwaitCompleter, A._SyncStarIterator, A.AsyncError, A._Completer, A._FutureListener, A._Future, A._AsyncCallbackEntry, A.Stream, A._StreamController, A._SyncStreamControllerDispatch, A._AsyncStreamControllerDispatch, A._BufferingStreamSubscription, A._AddStreamState, A._DelayedEvent, A._DelayedDone, A._PendingEvents, A._StreamIterator, A._ZoneFunction, A._ZoneSpecification, A._ZoneDelegate, A._Zone, A._HashMapKeyIterator, A._LinkedHashSetCell, A._LinkedHashSetIterator, A._MapBaseValueIterator, A._UnmodifiableMapMixin, A._ListQueueIterator, A._UnmodifiableSetMixin, A.Codec, A.Converter, A._Base64Encoder, A.ByteConversionSink, A._JsonStringifier, A.StringConversionSink, A._Utf8Encoder, A._Utf8Decoder, A.DateTime, A.Duration, A._Enum, A.OutOfMemoryError, A.StackOverflowError, A._Exception, A.FormatException, A.MapEntry, A.Null, A._StringStackTrace, A.RuneIterator, A.StringBuffer, A._Uri, A.UriData, A._SimpleUri, A.Expando, A.NullRejectionException, A._JSRandom, A.ArgParser, A.ArgResults, A.Option, A.OptionType, A.Parser0, A._Usage, A.FutureGroup, A.ErrorResult, A.ValueResult, A.StreamCompleter, A.StreamGroup, A._StreamGroupState, A.StreamQueue, A._NextRequest, A.Repl, A.ReplAdapter, A.DefaultEquality, A.IterableEquality, A.ListEquality, A._MapEntry, A.MapEquality, A._QueueList_Object_ListMixin, A._DelegatingIterableBase, A.UnmodifiableSetMixin, A.Context, A._PathDirection, A._PathRelation, A.Style, A.ParsedPath, A.PathException, A.Version, A.VersionRange, A.CssMediaQuery, A.MediaQuerySuccessfulMergeResult, A.CssNode, A.__IsInvisibleVisitor_Object_EveryCssVisitor, A.CssValue, A._FakeAstNode, A.Argument, A.ArgumentDeclaration, A.ArgumentInvocation, A.AtRootQuery, A.ConfiguredVariable, A.Expression, A.DynamicImport, A.StaticImport, A.Interpolation, A.Statement, A.IfRuleClause, A.__HasContentVisitor_Object_StatementSearchVisitor, A.SupportsAnything, A.SupportsDeclaration, A.SupportsFunction, A.SupportsInterpolation, A.SupportsNegation, A.SupportsOperation, A.Selector, A.__IsInvisibleVisitor_Object_AnySelectorVisitor, A.__IsBogusVisitor_Object_AnySelectorVisitor, A.__IsUselessVisitor_Object_AnySelectorVisitor, A.ComplexSelectorComponent, A.__ParentSelectorVisitor_Object_SelectorSearchVisitor, A.QualifiedName, A.AsyncEnvironment, A._EnvironmentModule0, A.AsyncImportCache, A.AsyncBuiltInCallable, A.BuiltInCallable, A.PlainCssCallable, A.UserDefinedCallable, A.CompileResult, A.Configuration, A.ConfiguredValue, A.Environment, A._EnvironmentModule, A.SourceSpanException, A.SassScriptException, A.ExecutableOptions, A.UsageException, A._Watcher, A.EmptyExtensionStore, A.Extension, A.Extender, A.ExtensionStore, A.ImportCache, A.AsyncImporter, A.CanonicalizeContext, A.ImporterResult, A.InterpolationBuffer, A.InterpolationMap, A.FileSystemException, A.LoggerWithDeprecationType0, A._QuietLogger, A.StderrLogger, A.TrackingLogger, A.BuiltInModule, A.ForwardedModuleView, A.ShadowedModuleView, A.Parser, A.StylesheetGraph, A.StylesheetNode, A.Box, A.ModifiableBox, A.LazyFileSpan, A.MultiDirWatcher, A.MultiSpan, A.NoSourceMapBuffer, A.SourceMapBuffer, A.Value, A.CalculationOperation, A._ColorFormatEnum, A.SpanColorFormat, A.ColorChannel, A.GamutMapMethod, A.InterpolationMethod, A.ColorSpace, A.AnySelectorVisitor, A._EvaluateVisitor0, A._ImportedCssVisitor0, A._EvaluationContext0, A._CloneCssVisitor, A.Evaluator, A._EvaluateVisitor, A._ImportedCssVisitor, A._EvaluationContext, A.EveryCssVisitor, A.__MakeExpressionCalculationSafe_Object_ReplaceExpressionVisitor, A.__FindDependenciesVisitor_Object_RecursiveStatementVisitor, A.DependencyReport, A.IsCalculationSafeVisitor, A.RecursiveStatementVisitor, A.ReplaceExpressionVisitor, A.SelectorSearchVisitor, A._SerializeVisitor, A.StatementSearchVisitor, A.Entry, A.Mapping, A.TargetLineEntry, A.TargetEntry, A.SourceFile, A.SourceLocationMixin, A.SourceSpanMixin, A.Highlighter, A._Highlight, A._Line, A.SourceLocation, A.Chain, A.Frame, A.LazyTrace, A.Trace, A.UnparsedFrame, A.StringScanner, A._SpanScannerState, A.AsciiGlyphSet, A.UnicodeGlyphSet, A.WatchEvent, A.ChangeType, A.ColorSpace0, A.AnySelectorVisitor0, A.SupportsAnything0, A.Argument0, A.ArgumentDeclaration0, A.ArgumentInvocation0, A.Value0, A.AsyncImporter0, A.AsyncBuiltInCallable0, A.AsyncEnvironment0, A._EnvironmentModule2, A._EvaluateVisitor2, A._ImportedCssVisitor2, A._EvaluationContext2, A.AsyncImportCache0, A.Parser1, A.AtRootQuery0, A.Statement0, A.CssNode0, A.Selector0, A.Expression0, A.Box0, A.ModifiableBox0, A.BuiltInCallable0, A.BuiltInModule0, A.CalculationOperation0, A.CalculationInterpolation, A.CanonicalizeContext0, A.ColorChannel0, A.GamutMapMethod0, A._CloneCssVisitor0, A._ColorFormatEnum0, A.SpanColorFormat0, A.CompileResult0, A.Compiler, A.ComplexSelectorComponent0, A.Configuration0, A.ConfiguredValue0, A.ConfiguredVariable0, A.SupportsDeclaration0, A.LoggerWithDeprecationType, A.DynamicImport0, A.EmptyExtensionStore0, A.Environment0, A._EnvironmentModule1, A._EvaluateVisitor1, A._ImportedCssVisitor1, A._EvaluationContext1, A.EveryCssVisitor0, A.SassScriptException0, A.JSExpressionVisitor, A.__MakeExpressionCalculationSafe_Object_ReplaceExpressionVisitor0, A.Extension0, A.Extender0, A.ExtensionStore0, A.ForwardedModuleView0, A.SupportsFunction0, A.IfRuleClause0, A.NodeImporter, A.ImportCache0, A.Interpolation0, A.SupportsInterpolation0, A.InterpolationBuffer0, A.InterpolationMap0, A.InterpolationMethod0, A.IsCalculationSafeVisitor0, A.FileSystemException0, A.LazyFileSpan0, A.__ParentSelectorVisitor_Object_SelectorSearchVisitor0, A.CssMediaQuery0, A.MediaQuerySuccessfulMergeResult0, A.__HasContentVisitor_Object_StatementSearchVisitor0, A.MultiSpan0, A.SupportsNegation0, A.NoSourceMapBuffer0, A._FakeAstNode0, A.__IsInvisibleVisitor_Object_EveryCssVisitor0, A.SupportsOperation0, A.PlainCssCallable0, A.QualifiedName0, A.ReplaceExpressionVisitor0, A.ImporterResult0, A.__IsInvisibleVisitor_Object_AnySelectorVisitor0, A.__IsBogusVisitor_Object_AnySelectorVisitor0, A.__IsUselessVisitor_Object_AnySelectorVisitor0, A.SelectorSearchVisitor0, A._SerializeVisitor0, A.ShadowedModuleView0, A.SourceInterpolationVisitor, A.SourceMapBuffer0, A.JSStatementVisitor, A.StatementSearchVisitor0, A.StaticImport0, A.StderrLogger0, A.UserDefinedCallable0, A.CssValue0]);
  124290. _inheritMany(J.Interceptor, [J.JSBool, J.JSNull, J.JavaScriptObject, J.JavaScriptBigInt, J.JavaScriptSymbol, J.JSNumber, J.JSString]);
  124291. _inheritMany(J.JavaScriptObject, [J.LegacyJavaScriptObject, J.JSArray, A.NativeByteBuffer, A.NativeTypedData]);
  124292. _inheritMany(J.LegacyJavaScriptObject, [J.PlainJavaScriptObject, J.UnknownJavaScriptObject, J.JavaScriptFunction, A.Stdin, A.Stdout, A.ReadlineModule, A.ReadlineOptions, A.ReadlineInterface, A.BufferModule, A.BufferConstants, A.Buffer, A.ConsoleModule, A.Console, A.EventEmitter, A.FS, A.FSConstants, A.FSWatcher, A.ReadStream, A.ReadStreamOptions, A.WriteStream, A.WriteStreamOptions, A.FileOptions, A.StatOptions, A.MkdirOptions, A.RmdirOptions, A.WatchOptions, A.WatchFileOptions, A.Stats, A.Promise, A.Date, A.JsError, A.Atomics, A.Modules, A.Module, A.Net, A.Socket, A.NetAddress, A.NetServer, A.NodeJsError, A.Process, A.CPUUsage, A.Release, A.StreamModule, A.Readable, A.Writable, A.Duplex, A.Transform, A.WritableOptions, A.ReadableOptions, A.Immediate, A.Timeout, A.TTY, A.Util, A.JSArray0, A.Chokidar, A.ChokidarOptions, A.ChokidarWatcher, A.JSFunction, A.ImmutableList, A.ImmutableMap, A.NodeImporterResult, A.RenderContext, A.RenderContextOptions, A.RenderContextResult, A.RenderContextResultStats, A.JSModule, A.JSModuleRequire, A.ParcelWatcherSubscription, A.ParcelWatcherEvent, A.ParcelWatcher, A.JSClass, A.JSUrl, A._PropertyDescriptor, A._RequireMain, A.JSArray1, A.Chokidar0, A.ChokidarOptions0, A.ChokidarWatcher0, A._Channels, A._ChannelOptions, A._ToGamutOptions, A._InterpolationOptions, A._NodeSassColor, A.CompileOptions, A.NodeCompileResult, A.Deprecation1, A.Exports, A.LoggerNamespace, A.JSExpressionVisitorObject, A.FiberClass, A.Fiber, A.JSFunction0, A.ImmutableList0, A.ImmutableMap0, A.JSImporter, A.JSImporterResult, A.NodeImporterResult0, A._ConstructorOptions, A._NodeSassList, A.JSLogger, A.WarnOptions, A.DebugOptions, A._NodeSassMap, A.JSModule0, A.JSModuleRequire0, A._ConstructorOptions0, A._NodeSassNumber, A.ParcelWatcherSubscription0, A.ParcelWatcherEvent0, A.ParcelWatcher0, A.ParserExports, A.JSClass0, A.RenderContext0, A.RenderContextOptions0, A.RenderContextResult0, A.RenderContextResultStats0, A.RenderOptions, A.RenderResult, A.RenderResultStats, A._Exports, A.JSStatementVisitorObject, A._ConstructorOptions1, A._NodeSassString, A.Types, A.JSUrl0, A._PropertyDescriptor0, A._RequireMain0]);
  124293. _inherit(J.JSUnmodifiableArray, J.JSArray);
  124294. _inheritMany(J.JSNumber, [J.JSInt, J.JSNumNotInt]);
  124295. _inheritMany(A.Iterable, [A._CastIterableBase, A.EfficientLengthIterable, A.MappedIterable, A.WhereIterable, A.ExpandIterable, A.TakeIterable, A.SkipIterable, A.SkipWhileIterable, A.FollowedByIterable, A.WhereTypeIterable, A.NonNullsIterable, A._KeysOrValues, A._AllMatchesIterable, A._StringAllMatchesIterable, A._SyncStarIterable, A.Runes, A._EmptyUnmodifiableSet_IterableBase_UnmodifiableSetMixin, A._PrefixedKeys, A._UnprefixedKeys, A._PrefixedKeys0, A._UnprefixedKeys0]);
  124296. _inheritMany(A._CastIterableBase, [A.CastIterable, A.__CastListBase__CastIterableBase_ListMixin, A.CastSet]);
  124297. _inherit(A._EfficientLengthCastIterable, A.CastIterable);
  124298. _inherit(A._CastListBase, A.__CastListBase__CastIterableBase_ListMixin);
  124299. _inheritMany(A.Closure, [A.Closure2Args, A.CastMap_entries_closure, A.Closure0Args, A.Instantiation, A.TearOffClosure, A.JsLinkedHashMap_values_closure, A.initHooks_closure, A.initHooks_closure1, A._AsyncRun__initializeScheduleImmediate_internalCallback, A._AsyncRun__initializeScheduleImmediate_closure, A._awaitOnObject_closure, A.Future_wait_closure, A._Future__chainForeignFuture_closure, A._Future__propagateToListeners_handleWhenCompleteCallback_closure, A.Stream_Stream$fromFuture_closure, A.Stream_length_closure, A._CustomZone_bindUnaryCallback_closure, A._RootZone_bindUnaryCallback_closure, A._HashMap_values_closure, A._LinkedCustomHashMap_closure, A.MapBase_entries_closure, A._JsonMap_values_closure, A._Uri__makePath_closure, A._createTables_setChars, A._createTables_setRange, A.jsify__convert, A.promiseToFuture_closure1, A.promiseToFuture_closure2, A.ArgParser__addOption_closure, A._Usage__writeOption_closure, A._Usage__buildAllowedList_closure, A.FutureGroup_add_closure, A.StreamGroup__onListen_closure, A.StreamGroup__onCancel_closure, A.StreamQueue__ensureListening_closure, A.alwaysValid_closure, A.ReplAdapter_runAsync__closure, A.UnionSet__iterable_closure, A.UnionSet_contains_closure, A.MapKeySet_difference_closure, A.promiseToFuture_closure, A.promiseToFuture_closure0, A.futureToPromise__closure, A.Context_joinAll_closure, A.Context_split_closure, A._validateArgList_closure, A.ParsedPath__splitExtension_closure, A.PathMap__create_closure0, A.PathMap__create_closure1, A.WindowsStyle_absolutePathToUri_closure, A.Version__splitParts_closure, A.ModifiableCssNode_hasFollowingSibling_closure, A.ArgumentDeclaration_verify_closure, A.ArgumentDeclaration_verify_closure0, A.ListExpression_toString_closure, A.Interpolation_toString_closure, A.EachRule_toString_closure, A.IfRuleClause$__closure, A.IfRuleClause$___closure, A.ParentStatement_closure, A.ParentStatement__closure, A._IsBogusVisitor_visitComplexSelector_closure, A._IsUselessVisitor_visitComplexSelector_closure, A.ComplexSelectorComponent_toString_closure, A.CompoundSelector_hasComplicatedSuperselectorSemantics_closure, A.IDSelector_unify_closure, A.SelectorList_asSassList_closure, A.SelectorList_nestWithin_closure, A.SelectorList_nestWithin__closure, A.SelectorList_nestWithin__closure0, A.SelectorList__nestWithinCompound_closure, A.SelectorList__nestWithinCompound_closure0, A.SelectorList__nestWithinCompound_closure1, A.SelectorList_withAdditionalCombinators_closure, A.PseudoSelector_specificity__closure, A.PseudoSelector_specificity__closure0, A.PseudoSelector_unify_closure, A.SimpleSelector_isSuperselector_closure, A.SimpleSelector_isSuperselector__closure, A._compileStylesheet_closure0, A.AsyncEnvironment__getVariableFromGlobalModule_closure, A.AsyncEnvironment_setVariable_closure0, A.AsyncEnvironment__getFunctionFromGlobalModule_closure, A.AsyncEnvironment__getMixinFromGlobalModule_closure, A.AsyncEnvironment_toModule_closure, A.AsyncEnvironment_toDummyModule_closure, A._EnvironmentModule__EnvironmentModule_closure5, A._EnvironmentModule__EnvironmentModule_closure6, A._EnvironmentModule__EnvironmentModule_closure7, A._EnvironmentModule__EnvironmentModule_closure8, A._EnvironmentModule__EnvironmentModule_closure9, A._EnvironmentModule__EnvironmentModule_closure10, A.AsyncImportCache_humanize_closure, A.AsyncImportCache_humanize_closure0, A.AsyncImportCache_humanize_closure1, A.AsyncImportCache_humanize_closure2, A.AsyncBuiltInCallable$mixin_closure, A.AsyncBuiltInCallable_withDeprecationWarning_closure, A.BuiltInCallable$mixin_closure, A.BuiltInCallable_withDeprecationWarning_closure, A._compileStylesheet_closure, A.Deprecation_fromId_closure, A.Environment__getVariableFromGlobalModule_closure, A.Environment_setVariable_closure0, A.Environment__getFunctionFromGlobalModule_closure, A.Environment__getMixinFromGlobalModule_closure, A.Environment_toModule_closure, A.Environment_toDummyModule_closure, A._EnvironmentModule__EnvironmentModule_closure, A._EnvironmentModule__EnvironmentModule_closure0, A._EnvironmentModule__EnvironmentModule_closure1, A._EnvironmentModule__EnvironmentModule_closure2, A._EnvironmentModule__EnvironmentModule_closure3, A._EnvironmentModule__EnvironmentModule_closure4, A._writeSourceMap_closure, A.ExecutableOptions_emitErrorCss_closure, A.repl_warn, A.watch_closure, A._Watcher__debounceEvents_closure, A.ExtensionStore_extensionsWhereTarget_closure, A.ExtensionStore__extendComplex_closure, A.ExtensionStore__extendComplex__closure, A.ExtensionStore__extendCompound_closure, A.ExtensionStore__extendCompound_closure0, A.ExtensionStore__extendCompound_closure1, A.ExtensionStore__extendSimple_withoutPseudo, A.ExtensionStore__extendSimple_closure, A.ExtensionStore__extendSimple_closure0, A.ExtensionStore__extendPseudo_closure, A.ExtensionStore__extendPseudo_closure0, A.ExtensionStore__extendPseudo_closure1, A.ExtensionStore__extendPseudo_closure2, A.ExtensionStore__extendPseudo_closure3, A.ExtensionStore__trim_closure, A.ExtensionStore__trim_closure0, A.unifyComplex_closure, A._weaveParents_closure0, A._weaveParents_closure1, A._weaveParents_closure2, A._mustUnify_closure, A._mustUnify__closure, A.paths__closure, A.paths___closure, A.listIsSuperselector_closure, A.listIsSuperselector__closure, A.complexIsSuperselector_closure, A.complexIsSuperselector_closure0, A._compatibleWithPreviousCombinator_closure, A.compoundIsSuperselector_closure, A._selectorPseudoIsSuperselector_closure, A._selectorPseudoIsSuperselector_closure0, A._selectorPseudoIsSuperselector_closure1, A._selectorPseudoIsSuperselector_closure2, A._selectorPseudoIsSuperselector_closure3, A._selectorPseudoIsSuperselector__closure, A._selectorPseudoIsSuperselector___closure, A._selectorPseudoIsSuperselector___closure0, A._selectorPseudoIsSuperselector_closure4, A._selectorPseudoIsSuperselector_closure5, A._selectorPseudoArgs_closure, A._selectorPseudoArgs_closure0, A.globalFunctions_closure, A.global_closure0, A.global_closure1, A.global_closure2, A.global_closure3, A.global_closure4, A.global_closure5, A.global_closure6, A.global_closure7, A.global_closure8, A.global_closure9, A.global_closure10, A.global_closure11, A.global_closure12, A.global_closure13, A.global_closure14, A.global_closure15, A.global_closure16, A.global_closure17, A.global_closure18, A.global_closure19, A.global_closure20, A.global_closure21, A.global_closure22, A.global_closure23, A.global_closure24, A.global_closure25, A.global_closure26, A.global_closure27, A.global_closure28, A.global_closure29, A.global_closure30, A.global_closure31, A.global_closure32, A.global_closure33, A.global_closure34, A.global_closure35, A.global__closure, A.global_closure36, A.global_closure37, A.global_closure38, A.global_closure39, A.global_closure40, A.global_closure41, A.global_closure42, A.module_closure1, A.module_closure2, A.module_closure3, A.module_closure4, A.module_closure5, A.module_closure6, A.module_closure7, A.module_closure8, A.module_closure9, A.module_closure10, A.module_closure11, A.module_closure12, A.module_closure13, A.module_closure14, A.module__closure2, A.module_closure15, A.module_closure16, A.module_closure17, A.module_closure18, A.module_closure19, A.module_closure20, A.module_closure21, A.module_closure22, A.module__closure1, A.module_closure23, A.module_closure_toXyzNoMissing, A.module_closure24, A._mix_closure, A._complement_closure, A._adjust_closure, A._scale_closure, A._change_closure, A._ieHexStr_closure, A._ieHexStr_closure_hexString, A._updateComponents_closure, A._updateComponents_closure0, A._adjustColor_closure, A._functionString_closure, A._removedColorFunction_closure, A._rgb_closure, A._hsl_closure, A._parseChannels_closure, A._parseChannels_closure0, A._colorFromChannels_closure, A._colorFromChannels_closure0, A._channelFromValue_closure, A._channelFunction_closure, A._suggestScaleAndAdjust_closure, A._length_closure0, A._nth_closure, A._setNth_closure, A._join_closure, A._append_closure0, A._zip_closure, A._zip__closure, A._zip__closure0, A._zip__closure1, A._index_closure0, A._separator_closure, A._isBracketed_closure, A._slash_closure, A._get_closure, A._set_closure, A._set__closure0, A._set_closure0, A._set__closure, A._merge_closure, A._merge_closure0, A._merge__closure, A._deepMerge_closure, A._deepRemove_closure, A._deepRemove__closure, A._remove_closure, A._remove_closure0, A._keys_closure, A._values_closure, A._hasKey_closure, A._modify_modifyNestedMap, A.global_closure, A.module_closure0, A._ceil_closure, A._clamp_closure, A._floor_closure, A._max_closure, A._min_closure, A._round_closure, A._hypot_closure, A._hypot__closure, A._log_closure, A._pow_closure, A._atan2_closure, A._compatible_closure, A._isUnitless_closure, A._unit_closure, A._percentage_closure, A._randomFunction_closure, A._div_closure, A._singleArgumentMathFunc_closure, A._numberFunction_closure, A._shared_closure, A._shared_closure0, A._shared_closure1, A._shared_closure2, A.moduleFunctions_closure, A.moduleFunctions_closure0, A.moduleFunctions__closure, A.moduleFunctions_closure1, A._nest_closure, A._nest__closure, A._append_closure, A._append__closure, A._append___closure, A._extend_closure, A._replace_closure, A._unify_closure, A._isSuperselector_closure, A._simpleSelectors_closure, A._simpleSelectors__closure, A._parse_closure, A.module_closure, A.module__closure, A.module__closure0, A._unquote_closure, A._quote_closure, A._length_closure, A._insert_closure, A._index_closure, A._slice_closure, A._toUpperCase_closure, A._toLowerCase_closure, A._uniqueId_closure, A.ImportCache_humanize_closure, A.ImportCache_humanize_closure0, A.ImportCache_humanize_closure1, A.ImportCache_humanize_closure2, A.FilesystemImporter_canonicalize_closure, A.NodePackageImporter__nodePackageExportsResolve_closure, A.NodePackageImporter__nodePackageExportsResolve_closure0, A.NodePackageImporter__nodePackageExportsResolve_closure1, A.NodePackageImporter__nodePackageExportsResolve_closure2, A.NodePackageImporter__nodePackageExportsResolve__closure, A.NodePackageImporter__nodePackageExportsResolve__closure0, A.NodePackageImporter__getMainExport_closure, A._exactlyOne_closure, A.InterpolationMap_mapException_closure, A._realCasePath_helper, A._realCasePath_helper__closure, A.readStdin_closure, A.readStdin_closure0, A.readStdin_closure1, A.readStdin_closure2, A.listDir__closure, A.listDir__closure0, A.listDir_closure_list, A.listDir__list_closure, A.watchDir_closure, A.watchDir_closure0, A.watchDir_closure1, A.watchDir_closure2, A.DeprecationProcessingLogger_summarize_closure, A.DeprecationProcessingLogger_summarize_closure0, A._disallowedFunctionNames_closure, A.Parser_escape_closure, A.Parser_scanIdentChar_matches, A.SassParser_styleRuleSelector_closure, A.SassParser__peekIndentation_closure, A.SassParser__peekIndentation_closure0, A.StylesheetParser_parse__closure0, A.StylesheetParser__expression_addSingleExpression, A.StylesheetParser__expression_addOperator, A.StylesheetParser__isHexColor_closure, A.StylesheetParser__unicodeRange_closure, A.StylesheetParser__unicodeRange_closure0, A.StylesheetParser_trySpecialFunction_closure, A.StylesheetGraph_modifiedSince_transitiveModificationTime, A.MapExtensions_get_pairs_closure, A._PrefixedKeys_iterator_closure, A.SourceMapBuffer_buildSourceMap_closure, A._UnprefixedKeys_iterator_closure, A._UnprefixedKeys_iterator_closure0, A.indent_closure, A.flattenVertically_closure, A.flattenVertically_closure0, A.SassCalculation__verifyLength_closure, A.SassColor$_forSpace_closure, A.HwbColorSpace_convert_toRgb, A.SassList_isBlank_closure, A.SassNumber__coerceOrConvertValue_closure, A.SassNumber__coerceOrConvertValue_closure1, A.SassNumber_multiplyUnits_closure, A.SassNumber_multiplyUnits_closure1, A.SassNumber__areAnyConvertible_closure, A.SassNumber__canonicalizeUnitList_closure, A.SassNumber_unitSuggestion_closure, A.SassNumber_unitSuggestion_closure0, A.SingleUnitSassNumber__coerceToUnit_closure, A.SingleUnitSassNumber__coerceValueToUnit_closure, A.SingleUnitSassNumber_multiplyUnits_closure, A.AnySelectorVisitor_visitComplexSelector_closure, A.AnySelectorVisitor_visitCompoundSelector_closure, A._EvaluateVisitor_closure12, A._EvaluateVisitor_closure13, A._EvaluateVisitor_closure14, A._EvaluateVisitor_closure15, A._EvaluateVisitor_closure16, A._EvaluateVisitor_closure17, A._EvaluateVisitor_closure18, A._EvaluateVisitor_closure19, A._EvaluateVisitor_closure20, A._EvaluateVisitor_closure21, A._EvaluateVisitor_closure22, A._EvaluateVisitor_closure23, A._EvaluateVisitor_closure24, A._EvaluateVisitor__loadModule__closure1, A._EvaluateVisitor__combineCss_closure1, A._EvaluateVisitor__combineCss_closure2, A._EvaluateVisitor__combineCss_visitModule0, A._EvaluateVisitor__extendModules_closure1, A._EvaluateVisitor__scopeForAtRoot_closure5, A._EvaluateVisitor__scopeForAtRoot_closure6, A._EvaluateVisitor__scopeForAtRoot_closure7, A._EvaluateVisitor__scopeForAtRoot_closure8, A._EvaluateVisitor__scopeForAtRoot_closure9, A._EvaluateVisitor__scopeForAtRoot_closure10, A._EvaluateVisitor_visitEachRule_closure2, A._EvaluateVisitor_visitEachRule_closure3, A._EvaluateVisitor_visitEachRule__closure0, A._EvaluateVisitor_visitEachRule___closure0, A._EvaluateVisitor_visitAtRule_closure2, A._EvaluateVisitor_visitAtRule_closure4, A._EvaluateVisitor_visitForRule__closure0, A._EvaluateVisitor_visitIfRule_closure0, A._EvaluateVisitor_visitIfRule___closure0, A._EvaluateVisitor__visitDynamicImport__closure3, A._EvaluateVisitor__visitDynamicImport__closure4, A._EvaluateVisitor__visitDynamicImport__closure5, A._EvaluateVisitor_visitIncludeRule_closure3, A._EvaluateVisitor_visitMediaRule_closure2, A._EvaluateVisitor_visitMediaRule_closure4, A._EvaluateVisitor_visitStyleRule_closure4, A._EvaluateVisitor_visitStyleRule_closure5, A._EvaluateVisitor__warnForBogusCombinators_closure0, A._EvaluateVisitor_visitSupportsRule_closure2, A._EvaluateVisitor_visitWhileRule__closure0, A._EvaluateVisitor__slash_recommendation0, A._EvaluateVisitor_visitListExpression_closure0, A._EvaluateVisitor_visitFunctionExpression_closure3, A._EvaluateVisitor__checkCalculationArguments_check0, A._EvaluateVisitor__runUserDefinedCallable____closure0, A._EvaluateVisitor__runBuiltInCallable_closure4, A._EvaluateVisitor__evaluateArguments_closure3, A._EvaluateVisitor__evaluateArguments_closure4, A._EvaluateVisitor__evaluateArguments_closure6, A._EvaluateVisitor__evaluateMacroArguments_closure3, A._EvaluateVisitor__evaluateMacroArguments_closure4, A._EvaluateVisitor__evaluateMacroArguments_closure6, A._EvaluateVisitor_visitCssAtRule_closure2, A._EvaluateVisitor_visitCssKeyframeBlock_closure2, A._EvaluateVisitor_visitCssMediaRule_closure2, A._EvaluateVisitor_visitCssMediaRule_closure4, A._EvaluateVisitor_visitCssStyleRule_closure1, A._EvaluateVisitor_visitCssSupportsRule_closure2, A._EvaluateVisitor__performInterpolationHelper_closure0, A._EvaluateVisitor__withoutSlash_recommendation0, A._EvaluateVisitor__stackFrame_closure0, A._ImportedCssVisitor_visitCssAtRule_closure0, A._ImportedCssVisitor_visitCssMediaRule_closure0, A._ImportedCssVisitor_visitCssStyleRule_closure0, A._ImportedCssVisitor_visitCssSupportsRule_closure0, A._EvaluateVisitor_closure, A._EvaluateVisitor_closure0, A._EvaluateVisitor_closure1, A._EvaluateVisitor_closure2, A._EvaluateVisitor_closure3, A._EvaluateVisitor_closure4, A._EvaluateVisitor_closure5, A._EvaluateVisitor_closure6, A._EvaluateVisitor_closure7, A._EvaluateVisitor_closure8, A._EvaluateVisitor_closure9, A._EvaluateVisitor_closure10, A._EvaluateVisitor_closure11, A._EvaluateVisitor__loadModule__closure, A._EvaluateVisitor__combineCss_closure, A._EvaluateVisitor__combineCss_closure0, A._EvaluateVisitor__combineCss_visitModule, A._EvaluateVisitor__extendModules_closure, A._EvaluateVisitor__scopeForAtRoot_closure, A._EvaluateVisitor__scopeForAtRoot_closure0, A._EvaluateVisitor__scopeForAtRoot_closure1, A._EvaluateVisitor__scopeForAtRoot_closure2, A._EvaluateVisitor__scopeForAtRoot_closure3, A._EvaluateVisitor__scopeForAtRoot_closure4, A._EvaluateVisitor_visitEachRule_closure, A._EvaluateVisitor_visitEachRule_closure0, A._EvaluateVisitor_visitEachRule__closure, A._EvaluateVisitor_visitEachRule___closure, A._EvaluateVisitor_visitAtRule_closure, A._EvaluateVisitor_visitAtRule_closure1, A._EvaluateVisitor_visitForRule__closure, A._EvaluateVisitor_visitIfRule_closure, A._EvaluateVisitor_visitIfRule___closure, A._EvaluateVisitor__visitDynamicImport__closure, A._EvaluateVisitor__visitDynamicImport__closure0, A._EvaluateVisitor__visitDynamicImport__closure1, A._EvaluateVisitor_visitIncludeRule_closure0, A._EvaluateVisitor_visitMediaRule_closure, A._EvaluateVisitor_visitMediaRule_closure1, A._EvaluateVisitor_visitStyleRule_closure0, A._EvaluateVisitor_visitStyleRule_closure1, A._EvaluateVisitor__warnForBogusCombinators_closure, A._EvaluateVisitor_visitSupportsRule_closure0, A._EvaluateVisitor_visitWhileRule__closure, A._EvaluateVisitor__slash_recommendation, A._EvaluateVisitor_visitListExpression_closure, A._EvaluateVisitor_visitFunctionExpression_closure0, A._EvaluateVisitor__checkCalculationArguments_check, A._EvaluateVisitor__runUserDefinedCallable____closure, A._EvaluateVisitor__runBuiltInCallable_closure1, A._EvaluateVisitor__evaluateArguments_closure, A._EvaluateVisitor__evaluateArguments_closure0, A._EvaluateVisitor__evaluateArguments_closure2, A._EvaluateVisitor__evaluateMacroArguments_closure, A._EvaluateVisitor__evaluateMacroArguments_closure0, A._EvaluateVisitor__evaluateMacroArguments_closure2, A._EvaluateVisitor_visitCssAtRule_closure0, A._EvaluateVisitor_visitCssKeyframeBlock_closure0, A._EvaluateVisitor_visitCssMediaRule_closure, A._EvaluateVisitor_visitCssMediaRule_closure1, A._EvaluateVisitor_visitCssStyleRule_closure, A._EvaluateVisitor_visitCssSupportsRule_closure0, A._EvaluateVisitor__performInterpolationHelper_closure, A._EvaluateVisitor__withoutSlash_recommendation, A._EvaluateVisitor__stackFrame_closure, A._ImportedCssVisitor_visitCssAtRule_closure, A._ImportedCssVisitor_visitCssMediaRule_closure, A._ImportedCssVisitor_visitCssStyleRule_closure, A._ImportedCssVisitor_visitCssSupportsRule_closure, A.EveryCssVisitor_visitCssAtRule_closure, A.EveryCssVisitor_visitCssKeyframeBlock_closure, A.EveryCssVisitor_visitCssMediaRule_closure, A.EveryCssVisitor_visitCssStyleRule_closure, A.EveryCssVisitor_visitCssStylesheet_closure, A.EveryCssVisitor_visitCssSupportsRule_closure, A.IsCalculationSafeVisitor_visitListExpression_closure, A.ReplaceExpressionVisitor_visitListExpression_closure, A.ReplaceExpressionVisitor_visitArgumentInvocation_closure, A.ReplaceExpressionVisitor_visitInterpolation_closure, A.SelectorSearchVisitor_visitComplexSelector_closure, A.SelectorSearchVisitor_visitCompoundSelector_closure, A.serialize_closure, A._SerializeVisitor_visitList_closure, A._SerializeVisitor_visitList_closure0, A._SerializeVisitor_visitList_closure1, A._SerializeVisitor_visitMap_closure, A._SerializeVisitor_visitSelectorList_closure, A.StatementSearchVisitor_visitIfRule_closure, A.StatementSearchVisitor_visitIfRule__closure0, A.StatementSearchVisitor_visitIfRule_closure0, A.StatementSearchVisitor_visitIfRule__closure, A.StatementSearchVisitor_visitChildren_closure, A.SingleMapping_SingleMapping$fromEntries_closure1, A.SingleMapping_toJson_closure, A.Highlighter$__closure, A.Highlighter$___closure, A.Highlighter$__closure0, A.Highlighter__collateLines_closure, A.Highlighter__collateLines_closure1, A.Highlighter__collateLines__closure, A.Highlighter_highlight_closure, A.Chain_Chain$parse_closure, A.Chain_toTrace_closure, A.Chain_toString_closure0, A.Chain_toString__closure0, A.Chain_toString_closure, A.Chain_toString__closure, A.Trace__parseVM_closure, A.Trace$parseV8_closure, A.Trace$parseJSCore_closure, A.Trace$parseFirefox_closure, A.Trace$parseFriendly_closure, A.Trace_terse_closure, A.Trace_foldFrames_closure, A.Trace_foldFrames_closure0, A.Trace_toString_closure0, A.Trace_toString_closure, A.TransformByHandlers_transformByHandlers__closure, A.RateLimit__debounceAggregate_closure0, A.AnySelectorVisitor_visitComplexSelector_closure0, A.AnySelectorVisitor_visitCompoundSelector_closure0, A.ArgumentDeclaration_verify_closure1, A.ArgumentDeclaration_verify_closure2, A.argumentListClass__closure, A.argumentListClass__closure0, A.AsyncBuiltInCallable$mixin_closure0, A.AsyncBuiltInCallable_withDeprecationWarning_closure0, A._compileStylesheet_closure2, A.AsyncEnvironment__getVariableFromGlobalModule_closure0, A.AsyncEnvironment_setVariable_closure3, A.AsyncEnvironment__getFunctionFromGlobalModule_closure0, A.AsyncEnvironment__getMixinFromGlobalModule_closure0, A.AsyncEnvironment_toModule_closure0, A.AsyncEnvironment_toDummyModule_closure0, A._EnvironmentModule__EnvironmentModule_closure17, A._EnvironmentModule__EnvironmentModule_closure18, A._EnvironmentModule__EnvironmentModule_closure19, A._EnvironmentModule__EnvironmentModule_closure20, A._EnvironmentModule__EnvironmentModule_closure21, A._EnvironmentModule__EnvironmentModule_closure22, A._EvaluateVisitor_closure38, A._EvaluateVisitor_closure39, A._EvaluateVisitor_closure40, A._EvaluateVisitor_closure41, A._EvaluateVisitor_closure42, A._EvaluateVisitor_closure43, A._EvaluateVisitor_closure44, A._EvaluateVisitor_closure45, A._EvaluateVisitor_closure46, A._EvaluateVisitor_closure47, A._EvaluateVisitor_closure48, A._EvaluateVisitor_closure49, A._EvaluateVisitor_closure50, A._EvaluateVisitor__loadModule__closure5, A._EvaluateVisitor__combineCss_closure5, A._EvaluateVisitor__combineCss_closure6, A._EvaluateVisitor__combineCss_visitModule2, A._EvaluateVisitor__extendModules_closure5, A._EvaluateVisitor__scopeForAtRoot_closure17, A._EvaluateVisitor__scopeForAtRoot_closure18, A._EvaluateVisitor__scopeForAtRoot_closure19, A._EvaluateVisitor__scopeForAtRoot_closure20, A._EvaluateVisitor__scopeForAtRoot_closure21, A._EvaluateVisitor__scopeForAtRoot_closure22, A._EvaluateVisitor_visitEachRule_closure8, A._EvaluateVisitor_visitEachRule_closure9, A._EvaluateVisitor_visitEachRule__closure2, A._EvaluateVisitor_visitEachRule___closure2, A._EvaluateVisitor_visitAtRule_closure8, A._EvaluateVisitor_visitAtRule_closure10, A._EvaluateVisitor_visitForRule__closure2, A._EvaluateVisitor_visitIfRule_closure2, A._EvaluateVisitor_visitIfRule___closure2, A._EvaluateVisitor__visitDynamicImport__closure11, A._EvaluateVisitor__visitDynamicImport__closure12, A._EvaluateVisitor__visitDynamicImport__closure13, A._EvaluateVisitor_visitIncludeRule_closure9, A._EvaluateVisitor_visitMediaRule_closure8, A._EvaluateVisitor_visitMediaRule_closure10, A._EvaluateVisitor_visitStyleRule_closure12, A._EvaluateVisitor_visitStyleRule_closure13, A._EvaluateVisitor__warnForBogusCombinators_closure2, A._EvaluateVisitor_visitSupportsRule_closure6, A._EvaluateVisitor_visitWhileRule__closure2, A._EvaluateVisitor__slash_recommendation2, A._EvaluateVisitor_visitListExpression_closure2, A._EvaluateVisitor_visitFunctionExpression_closure9, A._EvaluateVisitor__checkCalculationArguments_check2, A._EvaluateVisitor__runUserDefinedCallable____closure2, A._EvaluateVisitor__runBuiltInCallable_closure10, A._EvaluateVisitor__evaluateArguments_closure11, A._EvaluateVisitor__evaluateArguments_closure12, A._EvaluateVisitor__evaluateArguments_closure14, A._EvaluateVisitor__evaluateMacroArguments_closure11, A._EvaluateVisitor__evaluateMacroArguments_closure12, A._EvaluateVisitor__evaluateMacroArguments_closure14, A._EvaluateVisitor_visitCssAtRule_closure6, A._EvaluateVisitor_visitCssKeyframeBlock_closure6, A._EvaluateVisitor_visitCssMediaRule_closure8, A._EvaluateVisitor_visitCssMediaRule_closure10, A._EvaluateVisitor_visitCssStyleRule_closure5, A._EvaluateVisitor_visitCssSupportsRule_closure6, A._EvaluateVisitor__performInterpolationHelper_closure2, A._EvaluateVisitor__withoutSlash_recommendation2, A._EvaluateVisitor__stackFrame_closure2, A._ImportedCssVisitor_visitCssAtRule_closure2, A._ImportedCssVisitor_visitCssMediaRule_closure2, A._ImportedCssVisitor_visitCssStyleRule_closure2, A._ImportedCssVisitor_visitCssSupportsRule_closure2, A.AsyncImportCache_humanize_closure3, A.AsyncImportCache_humanize_closure4, A.AsyncImportCache_humanize_closure5, A.AsyncImportCache_humanize_closure6, A.booleanClass__closure, A.legacyBooleanClass__closure, A.legacyBooleanClass__closure0, A.BuiltInCallable$mixin_closure0, A.BuiltInCallable_withDeprecationWarning_closure0, A.calculationClass__closure, A.calculationClass__closure0, A.calculationClass__closure1, A.calculationClass__closure2, A.calculationClass__closure3, A.calculationClass__closure4, A.calculationClass__closure5, A.calculationOperationClass__closure, A.calculationOperationClass___closure, A.calculationOperationClass__closure1, A.calculationOperationClass__closure2, A.calculationOperationClass__closure3, A.calculationOperationClass__closure4, A.calculationInterpolationClass__closure1, A.calculationInterpolationClass__closure2, A.SassCalculation__verifyLength_closure0, A.updateCanonicalizeContextPrototype_closure, A.updateCanonicalizeContextPrototype_closure0, A.global_closure44, A.global_closure45, A.global_closure46, A.global_closure47, A.global_closure48, A.global_closure49, A.global_closure50, A.global_closure51, A.global_closure52, A.global_closure53, A.global_closure54, A.global_closure55, A.global_closure56, A.global_closure57, A.global_closure58, A.global_closure59, A.global_closure60, A.global_closure61, A.global_closure62, A.global_closure63, A.global_closure64, A.global_closure65, A.global_closure66, A.global_closure67, A.global_closure68, A.global_closure69, A.global_closure70, A.global_closure71, A.global_closure72, A.global_closure73, A.global_closure74, A.global_closure75, A.global_closure76, A.global_closure77, A.global_closure78, A.global_closure79, A.global__closure0, A.global_closure80, A.global_closure81, A.global_closure82, A.global_closure83, A.global_closure84, A.global_closure85, A.global_closure86, A.module_closure27, A.module_closure28, A.module_closure29, A.module_closure30, A.module_closure31, A.module_closure32, A.module_closure33, A.module_closure34, A.module_closure35, A.module_closure36, A.module_closure37, A.module_closure38, A.module_closure39, A.module_closure40, A.module__closure6, A.module_closure41, A.module_closure42, A.module_closure43, A.module_closure44, A.module_closure45, A.module_closure46, A.module_closure47, A.module_closure48, A.module__closure5, A.module_closure49, A.module_closure_toXyzNoMissing0, A.module_closure50, A._mix_closure0, A._complement_closure0, A._adjust_closure0, A._scale_closure0, A._change_closure0, A._ieHexStr_closure0, A._ieHexStr_closure_hexString0, A._updateComponents_closure1, A._updateComponents_closure2, A._adjustColor_closure0, A._functionString_closure0, A._removedColorFunction_closure0, A._rgb_closure0, A._hsl_closure0, A._parseChannels_closure1, A._parseChannels_closure2, A._colorFromChannels_closure1, A._colorFromChannels_closure2, A._channelFromValue_closure0, A._channelFunction_closure0, A._suggestScaleAndAdjust_closure0, A.colorClass__closure1, A.colorClass__closure3, A.colorClass__closure5, A.colorClass__closure7, A.colorClass___closure, A.colorClass__closure_changedValue, A.colorClass__closure9, A.colorClass__closure10, A.colorClass__closure11, A.colorClass__closure12, A.colorClass__closure13, A.colorClass__closure14, A.colorClass__closure15, A.colorClass__closure16, A.colorClass__closure17, A.colorClass__closure18, A.colorClass__closure19, A.colorClass__closure20, A.colorClass__closure21, A.colorClass__closure22, A.legacyColorClass_closure, A.legacyColorClass__closure, A.legacyColorClass_closure0, A.legacyColorClass_closure1, A.legacyColorClass_closure2, A.legacyColorClass_closure3, A.SassColor$_forSpace_closure0, A.compileAsync__closure, A.compileStringAsync__closure, A.compileStringAsync__closure0, A._wrapAsyncSassExceptions_closure, A._parseFunctions__closure2, A._parseFunctions__closure3, A.nodePackageImporterClass__closure, A._compileStylesheet_closure1, A.AsyncCompiler_addCompilation_closure, A.compilerClass__closure, A.compilerClass__closure0, A.compilerClass__closure1, A.compilerClass__closure2, A.asyncCompilerClass__closure, A.asyncCompilerClass__closure0, A.asyncCompilerClass__closure1, A.asyncCompilerClass__closure2, A.ComplexSelectorComponent_toString_closure0, A.CompoundSelector_hasComplicatedSuperselectorSemantics_closure0, A._disallowedFunctionNames_closure0, A.Deprecation_fromId_closure0, A.DeprecationProcessingLogger_summarize_closure1, A.DeprecationProcessingLogger_summarize_closure2, A.versionClass__closure, A.versionClass__closure0, A.EachRule_toString_closure0, A.Environment__getVariableFromGlobalModule_closure0, A.Environment_setVariable_closure3, A.Environment__getFunctionFromGlobalModule_closure0, A.Environment__getMixinFromGlobalModule_closure0, A.Environment_toModule_closure0, A.Environment_toDummyModule_closure0, A._EnvironmentModule__EnvironmentModule_closure11, A._EnvironmentModule__EnvironmentModule_closure12, A._EnvironmentModule__EnvironmentModule_closure13, A._EnvironmentModule__EnvironmentModule_closure14, A._EnvironmentModule__EnvironmentModule_closure15, A._EnvironmentModule__EnvironmentModule_closure16, A._EvaluateVisitor_closure25, A._EvaluateVisitor_closure26, A._EvaluateVisitor_closure27, A._EvaluateVisitor_closure28, A._EvaluateVisitor_closure29, A._EvaluateVisitor_closure30, A._EvaluateVisitor_closure31, A._EvaluateVisitor_closure32, A._EvaluateVisitor_closure33, A._EvaluateVisitor_closure34, A._EvaluateVisitor_closure35, A._EvaluateVisitor_closure36, A._EvaluateVisitor_closure37, A._EvaluateVisitor__loadModule__closure3, A._EvaluateVisitor__combineCss_closure3, A._EvaluateVisitor__combineCss_closure4, A._EvaluateVisitor__combineCss_visitModule1, A._EvaluateVisitor__extendModules_closure3, A._EvaluateVisitor__scopeForAtRoot_closure11, A._EvaluateVisitor__scopeForAtRoot_closure12, A._EvaluateVisitor__scopeForAtRoot_closure13, A._EvaluateVisitor__scopeForAtRoot_closure14, A._EvaluateVisitor__scopeForAtRoot_closure15, A._EvaluateVisitor__scopeForAtRoot_closure16, A._EvaluateVisitor_visitEachRule_closure5, A._EvaluateVisitor_visitEachRule_closure6, A._EvaluateVisitor_visitEachRule__closure1, A._EvaluateVisitor_visitEachRule___closure1, A._EvaluateVisitor_visitAtRule_closure5, A._EvaluateVisitor_visitAtRule_closure7, A._EvaluateVisitor_visitForRule__closure1, A._EvaluateVisitor_visitIfRule_closure1, A._EvaluateVisitor_visitIfRule___closure1, A._EvaluateVisitor__visitDynamicImport__closure7, A._EvaluateVisitor__visitDynamicImport__closure8, A._EvaluateVisitor__visitDynamicImport__closure9, A._EvaluateVisitor_visitIncludeRule_closure6, A._EvaluateVisitor_visitMediaRule_closure5, A._EvaluateVisitor_visitMediaRule_closure7, A._EvaluateVisitor_visitStyleRule_closure8, A._EvaluateVisitor_visitStyleRule_closure9, A._EvaluateVisitor__warnForBogusCombinators_closure1, A._EvaluateVisitor_visitSupportsRule_closure4, A._EvaluateVisitor_visitWhileRule__closure1, A._EvaluateVisitor__slash_recommendation1, A._EvaluateVisitor_visitListExpression_closure1, A._EvaluateVisitor_visitFunctionExpression_closure6, A._EvaluateVisitor__checkCalculationArguments_check1, A._EvaluateVisitor__runUserDefinedCallable____closure1, A._EvaluateVisitor__runBuiltInCallable_closure7, A._EvaluateVisitor__evaluateArguments_closure7, A._EvaluateVisitor__evaluateArguments_closure8, A._EvaluateVisitor__evaluateArguments_closure10, A._EvaluateVisitor__evaluateMacroArguments_closure7, A._EvaluateVisitor__evaluateMacroArguments_closure8, A._EvaluateVisitor__evaluateMacroArguments_closure10, A._EvaluateVisitor_visitCssAtRule_closure4, A._EvaluateVisitor_visitCssKeyframeBlock_closure4, A._EvaluateVisitor_visitCssMediaRule_closure5, A._EvaluateVisitor_visitCssMediaRule_closure7, A._EvaluateVisitor_visitCssStyleRule_closure3, A._EvaluateVisitor_visitCssSupportsRule_closure4, A._EvaluateVisitor__performInterpolationHelper_closure1, A._EvaluateVisitor__withoutSlash_recommendation1, A._EvaluateVisitor__stackFrame_closure1, A._ImportedCssVisitor_visitCssAtRule_closure1, A._ImportedCssVisitor_visitCssMediaRule_closure1, A._ImportedCssVisitor_visitCssStyleRule_closure1, A._ImportedCssVisitor_visitCssSupportsRule_closure1, A.EveryCssVisitor_visitCssAtRule_closure0, A.EveryCssVisitor_visitCssKeyframeBlock_closure0, A.EveryCssVisitor_visitCssMediaRule_closure0, A.EveryCssVisitor_visitCssStyleRule_closure0, A.EveryCssVisitor_visitCssStylesheet_closure0, A.EveryCssVisitor_visitCssSupportsRule_closure0, A.exceptionClass__closure, A.exceptionClass__closure0, A.exceptionClass__closure1, A.ExtensionStore_extensionsWhereTarget_closure0, A.ExtensionStore__extendComplex_closure0, A.ExtensionStore__extendComplex__closure0, A.ExtensionStore__extendCompound_closure2, A.ExtensionStore__extendCompound_closure3, A.ExtensionStore__extendCompound_closure4, A.ExtensionStore__extendSimple_withoutPseudo0, A.ExtensionStore__extendSimple_closure1, A.ExtensionStore__extendSimple_closure2, A.ExtensionStore__extendPseudo_closure4, A.ExtensionStore__extendPseudo_closure5, A.ExtensionStore__extendPseudo_closure6, A.ExtensionStore__extendPseudo_closure7, A.ExtensionStore__extendPseudo_closure8, A.ExtensionStore__trim_closure1, A.ExtensionStore__trim_closure2, A.FilesystemImporter_canonicalize_closure0, A.functionClass__closure, A.functionClass__closure0, A.unifyComplex_closure0, A._weaveParents_closure4, A._weaveParents_closure5, A._weaveParents_closure6, A._mustUnify_closure0, A._mustUnify__closure0, A.paths__closure0, A.paths___closure0, A.listIsSuperselector_closure0, A.listIsSuperselector__closure0, A.complexIsSuperselector_closure1, A.complexIsSuperselector_closure2, A._compatibleWithPreviousCombinator_closure0, A.compoundIsSuperselector_closure0, A._selectorPseudoIsSuperselector_closure6, A._selectorPseudoIsSuperselector_closure7, A._selectorPseudoIsSuperselector_closure8, A._selectorPseudoIsSuperselector_closure9, A._selectorPseudoIsSuperselector_closure10, A._selectorPseudoIsSuperselector__closure0, A._selectorPseudoIsSuperselector___closure1, A._selectorPseudoIsSuperselector___closure2, A._selectorPseudoIsSuperselector_closure11, A._selectorPseudoIsSuperselector_closure12, A._selectorPseudoArgs_closure1, A._selectorPseudoArgs_closure2, A.globalFunctions_closure0, A.HwbColorSpace_convert_toRgb0, A.IDSelector_unify_closure0, A.IfRuleClause$__closure0, A.IfRuleClause$___closure0, A.immutableMapToDartMap_closure, A.NodeImporter__tryPath_closure0, A.ImportCache_humanize_closure3, A.ImportCache_humanize_closure4, A.ImportCache_humanize_closure5, A.ImportCache_humanize_closure6, A.Interpolation_toString_closure0, A.InterpolationMap_mapException_closure0, A._realCasePath_helper0, A._realCasePath_helper__closure0, A.IsCalculationSafeVisitor_visitListExpression_closure0, A.listDir__closure1, A.listDir__closure2, A.listDir_closure_list0, A.listDir__list_closure0, A.render_closure0, A._parseFunctions__closure, A._parseFunctions___closure2, A._parseFunctions__closure0, A._parseFunctions__closure1, A._parseFunctions___closure, A._parseImporter_closure, A._parseImporter__closure, A._parseImporter___closure, A.ListExpression_toString_closure0, A._length_closure2, A._nth_closure0, A._setNth_closure0, A._join_closure0, A._append_closure2, A._zip_closure0, A._zip__closure2, A._zip__closure3, A._zip__closure4, A._index_closure2, A._separator_closure0, A._isBracketed_closure0, A._slash_closure0, A.SelectorList_asSassList_closure0, A.SelectorList_nestWithin_closure0, A.SelectorList_nestWithin__closure1, A.SelectorList_nestWithin__closure2, A.SelectorList__nestWithinCompound_closure2, A.SelectorList__nestWithinCompound_closure3, A.SelectorList__nestWithinCompound_closure4, A.SelectorList_withAdditionalCombinators_closure0, A.listClass__closure, A.legacyListClass_closure, A.legacyListClass__closure, A.legacyListClass_closure1, A.legacyListClass_closure2, A.legacyListClass_closure4, A.SassList_isBlank_closure0, A._get_closure0, A._set_closure1, A._set__closure2, A._set_closure2, A._set__closure1, A._merge_closure1, A._merge_closure2, A._merge__closure0, A._deepMerge_closure0, A._deepRemove_closure0, A._deepRemove__closure0, A._remove_closure1, A._remove_closure2, A._keys_closure0, A._values_closure0, A._hasKey_closure0, A._modify_modifyNestedMap0, A.MapExtensions_get_pairs_closure0, A.mapClass__closure, A.mapClass__closure0, A.legacyMapClass_closure, A.legacyMapClass__closure, A.legacyMapClass__closure0, A.legacyMapClass_closure2, A.legacyMapClass_closure3, A.legacyMapClass_closure4, A.global_closure43, A.module_closure26, A._ceil_closure0, A._clamp_closure0, A._floor_closure0, A._max_closure0, A._min_closure0, A._round_closure0, A._hypot_closure0, A._hypot__closure0, A._log_closure0, A._pow_closure0, A._atan2_closure0, A._compatible_closure0, A._isUnitless_closure0, A._unit_closure0, A._percentage_closure0, A._randomFunction_closure0, A._div_closure0, A._singleArgumentMathFunc_closure0, A._numberFunction_closure0, A._shared_closure3, A._shared_closure4, A._shared_closure5, A._shared_closure6, A.moduleFunctions_closure2, A.moduleFunctions_closure3, A.moduleFunctions__closure0, A.moduleFunctions_closure4, A.mixinClass__closure, A.mixinClass__closure0, A.ModifiableCssNode_hasFollowingSibling_closure0, A.NodePackageImporter__nodePackageExportsResolve_closure3, A.NodePackageImporter__nodePackageExportsResolve_closure4, A.NodePackageImporter__nodePackageExportsResolve_closure5, A.NodePackageImporter__nodePackageExportsResolve_closure6, A.NodePackageImporter__nodePackageExportsResolve__closure1, A.NodePackageImporter__nodePackageExportsResolve__closure2, A.NodePackageImporter__getMainExport_closure0, A.legacyNullClass__closure, A.numberClass__closure, A.numberClass__closure0, A.numberClass__closure1, A.numberClass__closure2, A.numberClass__closure3, A.numberClass__closure4, A.numberClass__closure5, A.numberClass__closure6, A.numberClass__closure7, A.numberClass__closure8, A.numberClass__closure9, A.numberClass__closure12, A.numberClass__closure13, A.numberClass__closure14, A.numberClass__closure15, A.numberClass__closure16, A.numberClass__closure17, A.numberClass__closure18, A.numberClass__closure19, A.legacyNumberClass_closure, A.legacyNumberClass_closure0, A.legacyNumberClass_closure2, A._parseNumber_closure, A._parseNumber_closure0, A.SassNumber__coerceOrConvertValue_closure3, A.SassNumber__coerceOrConvertValue_closure5, A.SassNumber_multiplyUnits_closure3, A.SassNumber_multiplyUnits_closure5, A.SassNumber__areAnyConvertible_closure0, A.SassNumber__canonicalizeUnitList_closure0, A.SassNumber_unitSuggestion_closure1, A.SassNumber_unitSuggestion_closure2, A.ParentStatement_closure0, A.ParentStatement__closure0, A.loadParserExports_closure, A.loadParserExports_closure0, A._updateAstPrototypes_closure, A._updateAstPrototypes_closure0, A._updateAstPrototypes_closure1, A._updateAstPrototypes_closure4, A._addSupportsConditionToInterpolation_closure, A.Parser_escape_closure0, A.Parser_scanIdentChar_matches0, A._PrefixedKeys_iterator_closure0, A.PseudoSelector_specificity__closure1, A.PseudoSelector_specificity__closure2, A.PseudoSelector_unify_closure0, A.JSClassExtension_setCustomInspect_closure, A.ReplaceExpressionVisitor_visitListExpression_closure0, A.ReplaceExpressionVisitor_visitArgumentInvocation_closure0, A.ReplaceExpressionVisitor_visitInterpolation_closure0, A.SassParser_styleRuleSelector_closure0, A.SassParser__peekIndentation_closure1, A.SassParser__peekIndentation_closure2, A._wrapMain_closure, A._wrapMain_closure0, A._IsBogusVisitor_visitComplexSelector_closure0, A._IsUselessVisitor_visitComplexSelector_closure0, A._nest_closure0, A._nest__closure1, A._append_closure1, A._append__closure1, A._append___closure0, A._extend_closure0, A._replace_closure0, A._unify_closure0, A._isSuperselector_closure0, A._simpleSelectors_closure0, A._simpleSelectors__closure0, A._parse_closure0, A.SelectorSearchVisitor_visitComplexSelector_closure0, A.SelectorSearchVisitor_visitCompoundSelector_closure0, A.serialize_closure0, A._SerializeVisitor_visitList_closure2, A._SerializeVisitor_visitList_closure3, A._SerializeVisitor_visitList_closure4, A._SerializeVisitor_visitMap_closure0, A._SerializeVisitor_visitSelectorList_closure0, A.SimpleSelector_isSuperselector_closure0, A.SimpleSelector_isSuperselector__closure0, A.SingleUnitSassNumber__coerceToUnit_closure0, A.SingleUnitSassNumber__coerceValueToUnit_closure0, A.SingleUnitSassNumber_multiplyUnits_closure1, A.SourceMapBuffer_buildSourceMap_closure0, A.updateSourceSpanPrototype_closure0, A.updateSourceSpanPrototype_closure1, A.updateSourceSpanPrototype_closure2, A.updateSourceSpanPrototype__closure, A.updateSourceSpanPrototype_closure3, A.updateSourceSpanPrototype_closure4, A.updateSourceSpanPrototype_closure5, A.updateSourceSpanPrototype_closure6, A.StatementSearchVisitor_visitIfRule_closure1, A.StatementSearchVisitor_visitIfRule__closure2, A.StatementSearchVisitor_visitIfRule_closure2, A.StatementSearchVisitor_visitIfRule__closure1, A.StatementSearchVisitor_visitChildren_closure0, A.module_closure25, A.module__closure3, A.module__closure4, A._unquote_closure0, A._quote_closure0, A._length_closure1, A._insert_closure0, A._index_closure1, A._slice_closure0, A._toUpperCase_closure0, A._toLowerCase_closure0, A._uniqueId_closure0, A.StringExtension_toCssIdentifier_writeEscape, A.StringExtension_toCssIdentifier_consumeSurrogatePair, A.stringClass__closure, A.stringClass__closure0, A.stringClass__closure1, A.stringClass__closure2, A.stringClass__closure3, A.legacyStringClass_closure, A.legacyStringClass_closure0, A.StylesheetParser_parse__closure2, A.StylesheetParser__expression_addSingleExpression0, A.StylesheetParser__expression_addOperator0, A.StylesheetParser__isHexColor_closure0, A.StylesheetParser__unicodeRange_closure1, A.StylesheetParser__unicodeRange_closure2, A.StylesheetParser_trySpecialFunction_closure0, A._UnprefixedKeys_iterator_closure1, A._UnprefixedKeys_iterator_closure2, A._exactlyOne_closure0, A.futureToPromise__closure0, A.indent_closure0, A.flattenVertically_closure1, A.flattenVertically_closure2, A.valueClass__closure, A.valueClass__closure0, A.valueClass__closure1, A.valueClass__closure2, A.valueClass__closure3, A.valueClass__closure4, A.valueClass__closure5, A.valueClass__closure7, A.valueClass__closure8, A.valueClass__closure9, A.valueClass__closure10, A.valueClass__closure11, A.valueClass__closure12, A.valueClass__closure13, A.valueClass__closure14, A.valueClass__closure15, A.valueClass__closure17, A.valueClass__closure18]);
  124300. _inheritMany(A.Closure2Args, [A._CastListBase_sort_closure, A.CastMap_forEach_closure, A.Primitives_functionNoSuchMethod_closure, A.JsLinkedHashMap_addAll_closure, A.initHooks_closure0, A._awaitOnObject_closure0, A._wrapJsFunctionForAsync_closure, A.Future_wait_handleError, A._Future__chainForeignFuture_closure0, A.Stream_Stream$fromFuture_closure0, A._AddStreamState_makeErrorHandler_closure, A._HashMap_addAll_closure, A.HashMap_HashMap$from_closure, A.LinkedHashMap_LinkedHashMap$from_closure, A.MapBase_addAll_closure, A.MapBase_mapToString_closure, A._JsonMap_addAll_closure, A._JsonStringifier_writeMap_closure, A.NoSuchMethodError_toString_closure, A.Uri__parseIPv4Address_error, A.Uri_parseIPv6Address_error, A.Uri_parseIPv6Address_parseHex, A._createTables_build, A.Parser_parse_closure, A.FutureGroup_add_closure0, A.StreamQueue__ensureListening_closure1, A.futureToPromise_closure, A.PathMap__create_closure, A.IfRule_toString_closure, A.ComplexSelector_specificity_closure, A.CompoundSelector_specificity_closure, A.ExtensionStore_clone_closure, A._weaveParents_closure, A.paths_closure, A._nest__closure0, A._append__closure0, A.ImportCache_clearCanonicalize_closure, A.watchDir_closure5, A.ParcelWatcher_subscribeFuture_closure, A.StylesheetParser__styleRule_closure, A.StylesheetParser__tryDeclarationChildren_closure, A.StylesheetParser__atRootRule_closure, A.StylesheetParser__atRootRule_closure0, A.StylesheetParser__eachRule_closure, A.StylesheetParser__functionRule_closure, A.StylesheetParser__forRule_closure0, A.StylesheetParser__includeRule_closure, A.StylesheetParser_mediaRule_closure, A.StylesheetParser__mixinRule_closure, A.StylesheetParser_mozDocumentRule_closure, A.StylesheetParser_supportsRule_closure, A.StylesheetParser__whileRule_closure, A.StylesheetParser_unknownAtRule_closure, A.longestCommonSubsequence_backtrack, A.mapAddAll2_closure, A.SassNumber_plus_closure, A.SassNumber_minus_closure, A.SassNumber__canonicalMultiplier_closure, A._EvaluateVisitor__closure3, A._EvaluateVisitor__closure4, A._EvaluateVisitor_visitForwardRule_closure1, A._EvaluateVisitor_visitForwardRule_closure2, A._EvaluateVisitor_visitUseRule_closure0, A._EvaluateVisitor__evaluateArguments_closure5, A._EvaluateVisitor__evaluateMacroArguments_closure5, A._EvaluateVisitor__addRestMap_closure0, A._EvaluateVisitor__closure, A._EvaluateVisitor__closure0, A._EvaluateVisitor_visitForwardRule_closure, A._EvaluateVisitor_visitForwardRule_closure0, A._EvaluateVisitor_visitUseRule_closure, A._EvaluateVisitor__evaluateArguments_closure1, A._EvaluateVisitor__evaluateMacroArguments_closure1, A._EvaluateVisitor__addRestMap_closure, A.SingleMapping_toJson_closure0, A.Highlighter__collateLines_closure0, A.Frame_Frame$parseV8_closure_parseJsLocation, A.TransformByHandlers_transformByHandlers__closure1, A.RateLimit__debounceAggregate_closure, A._EvaluateVisitor__closure11, A._EvaluateVisitor__closure12, A._EvaluateVisitor_visitForwardRule_closure5, A._EvaluateVisitor_visitForwardRule_closure6, A._EvaluateVisitor_visitUseRule_closure2, A._EvaluateVisitor__evaluateArguments_closure13, A._EvaluateVisitor__evaluateMacroArguments_closure13, A._EvaluateVisitor__addRestMap_closure2, A.calculationOperationClass__closure0, A.calculationInterpolationClass__closure, A.calculationInterpolationClass__closure0, A.colorClass__closure, A.colorClass__closure0, A.colorClass__closure2, A.colorClass__closure4, A.colorClass__closure6, A.colorClass__closure8, A.legacyColorClass_closure4, A.legacyColorClass_closure5, A.legacyColorClass_closure6, A.legacyColorClass_closure7, A._parseFunctions_closure0, A.ComplexSelector_specificity_closure0, A.CompoundSelector_specificity_closure0, A._EvaluateVisitor__closure7, A._EvaluateVisitor__closure8, A._EvaluateVisitor_visitForwardRule_closure3, A._EvaluateVisitor_visitForwardRule_closure4, A._EvaluateVisitor_visitUseRule_closure1, A._EvaluateVisitor__evaluateArguments_closure9, A._EvaluateVisitor__evaluateMacroArguments_closure9, A._EvaluateVisitor__addRestMap_closure1, A.ExtensionStore_clone_closure0, A._weaveParents_closure3, A.paths_closure0, A.IfRule_toString_closure0, A.main_closure, A.main_closure0, A.render_closure1, A._parseFunctions_closure, A.listClass__closure0, A.legacyListClass_closure0, A.legacyListClass_closure3, A.mapClass__closure1, A.legacyMapClass_closure0, A.legacyMapClass_closure1, A.numberClass__closure10, A.numberClass__closure11, A.legacyNumberClass_closure1, A.legacyNumberClass_closure3, A.SassNumber_plus_closure0, A.SassNumber_minus_closure0, A.SassNumber__canonicalMultiplier_closure0, A._updateAstPrototypes_closure2, A._updateAstPrototypes_closure3, A.JSClassExtension_get_defineStaticMethod_closure, A.JSClassExtension_get_defineMethod_closure, A.JSClassExtension_get_defineGetter_closure, A._nest__closure2, A._append__closure2, A.legacyStringClass_closure1, A.StylesheetParser__styleRule_closure0, A.StylesheetParser__tryDeclarationChildren_closure0, A.StylesheetParser__atRootRule_closure1, A.StylesheetParser__atRootRule_closure2, A.StylesheetParser__eachRule_closure0, A.StylesheetParser__functionRule_closure0, A.StylesheetParser__forRule_closure2, A.StylesheetParser__includeRule_closure0, A.StylesheetParser_mediaRule_closure0, A.StylesheetParser__mixinRule_closure0, A.StylesheetParser_mozDocumentRule_closure0, A.StylesheetParser_supportsRule_closure0, A.StylesheetParser__whileRule_closure0, A.StylesheetParser_unknownAtRule_closure0, A.futureToPromise_closure0, A.futureToPromise__closure1, A.objectToMap_closure, A.longestCommonSubsequence_backtrack0, A.mapAddAll2_closure0, A.valueClass__closure6, A.valueClass__closure16]);
  124301. _inherit(A.CastList, A._CastListBase);
  124302. _inheritMany(A.MapBase, [A.CastMap, A.JsLinkedHashMap, A._HashMap, A.UnmodifiableMapBase, A._JsonMap, A.MergedMapView, A.MergedMapView0]);
  124303. _inheritMany(A.Error, [A.LateError, A.ReachabilityError, A.TypeError, A.JsNoSuchMethodError, A.UnknownJsTypeError, A._CyclicInitializationError, A.RuntimeError, A._Error, A.JsonUnsupportedObjectError, A.AssertionError, A.ArgumentError, A.NoSuchMethodError, A.UnsupportedError, A.UnimplementedError, A.StateError, A.ConcurrentModificationError]);
  124304. _inherit(A.UnmodifiableListBase, A.ListBase);
  124305. _inheritMany(A.UnmodifiableListBase, [A.CodeUnits, A.UnmodifiableListView]);
  124306. _inheritMany(A.Closure0Args, [A.nullFuture_closure, A._AsyncRun__scheduleImmediateJsOverride_internalCallback, A._AsyncRun__scheduleImmediateWithSetImmediate_internalCallback, A._TimerImpl_internalCallback, A._TimerImpl$periodic_closure, A._Future__addListener_closure, A._Future__prependListeners_closure, A._Future__chainForeignFuture_closure1, A._Future__chainCoreFutureAsync_closure, A._Future__asyncCompleteWithValue_closure, A._Future__asyncCompleteError_closure, A._Future__propagateToListeners_handleWhenCompleteCallback, A._Future__propagateToListeners_handleValueCallback, A._Future__propagateToListeners_handleError, A.Stream_length_closure0, A._StreamController__subscribe_closure, A._StreamController__recordCancel_complete, A._AddStreamState_cancel_closure, A._BufferingStreamSubscription__sendError_sendError, A._BufferingStreamSubscription__sendDone_sendDone, A._PendingEvents_schedule_closure, A._CustomZone_bindCallback_closure, A._CustomZone_bindCallbackGuarded_closure, A._rootHandleError_closure, A._RootZone_bindCallback_closure, A._RootZone_bindCallbackGuarded_closure, A._Utf8Decoder__decoder_closure, A._Utf8Decoder__decoderNonfatal_closure, A.Parser__setOption_closure, A.StreamGroup_add_closure, A.StreamGroup_add_closure0, A.StreamGroup__listenToStream_closure, A.StreamQueue__ensureListening_closure0, A._isStrictMode_closure, A.ReplAdapter_runAsync_closure, A.ParsedPath__splitExtension_closure0, A.PseudoSelector_specificity_closure, A.AsyncEnvironment_setVariable_closure, A.AsyncEnvironment_setVariable_closure1, A.AsyncImportCache_canonicalize_closure, A.AsyncImportCache__canonicalize_closure, A.AsyncImportCache_importCanonical_closure, A.Environment_setVariable_closure, A.Environment_setVariable_closure1, A.ExecutableOptions__parser_closure, A.ExecutableOptions_interactive_closure, A.ExecutableOptions_fatalDeprecations_closure, A.ExtensionStore__registerSelector_closure, A.ExtensionStore_addExtension_closure, A.ExtensionStore_addExtension_closure0, A.ExtensionStore_addExtension_closure1, A.ExtensionStore__extendExistingExtensions_closure, A.ExtensionStore__extendExistingExtensions_closure0, A.ExtensionStore_addExtensions_closure, A._changeColor_closure, A.ImportCache_canonicalize_closure, A.ImportCache__canonicalize_closure, A.ImportCache_importCanonical_closure, A.resolveImportPath_closure, A.resolveImportPath_closure0, A._tryPathAsDirectory_closure, A._realCasePath_helper_closure, A._readFile_closure, A.writeFile_closure, A.deleteFile_closure, A.fileExists_closure, A.dirExists_closure, A.ensureDir_closure, A.listDir_closure, A.modificationTime_closure, A.watchDir_closure3, A.watchDir__closure, A.watchDir_closure4, A.AtRootQueryParser_parse_closure, A.KeyframeSelectorParser_parse_closure, A.MediaQueryParser_parse_closure, A.Parser__parseIdentifier_closure, A.Parser_spanFrom_closure, A.SassParser_children_closure, A.SelectorParser_parse_closure, A.SelectorParser_parseCompoundSelector_closure, A.StylesheetParser_parse_closure, A.StylesheetParser_parse__closure, A.StylesheetParser_parseArgumentDeclaration_closure, A.StylesheetParser_parseVariableDeclaration_closure, A.StylesheetParser_parseUseRule_closure, A.StylesheetParser__parseSingleProduction_closure, A.StylesheetParser__statement_closure, A.StylesheetParser_variableDeclarationWithoutNamespace_closure, A.StylesheetParser_variableDeclarationWithoutNamespace_closure0, A.StylesheetParser__forRule_closure, A.StylesheetParser__memberList_closure, A.StylesheetParser__expression_resetState, A.StylesheetParser__expression_resolveOneOperation, A.StylesheetParser__expression_resolveOperations, A.StylesheetParser__expression_resolveSpaceExpressions, A.StylesheetParser_expressionUntilComma_closure, A.StylesheetParser_namespacedExpression_closure, A.StylesheetParser__expressionUntilComparison_closure, A.StylesheetParser__publicIdentifier_closure, A.StylesheetGraph_modifiedSince_transitiveModificationTime_closure, A.StylesheetGraph__add_closure, A.StylesheetGraph_addCanonical_closure, A.StylesheetGraph_reload_closure, A.StylesheetGraph__nodeFor_closure, A.StylesheetGraph__nodeFor_closure0, A.SassNumber__coerceOrConvertValue_compatibilityException, A.SassNumber__coerceOrConvertValue_closure0, A.SassNumber__coerceOrConvertValue_closure2, A.SassNumber_multiplyUnits_closure0, A.SassNumber_multiplyUnits_closure2, A.SingleUnitSassNumber_multiplyUnits_closure0, A._EvaluateVisitor__closure6, A._EvaluateVisitor__closure5, A._EvaluateVisitor_run_closure0, A._EvaluateVisitor_run__closure0, A._EvaluateVisitor__loadModule_closure1, A._EvaluateVisitor__loadModule_closure2, A._EvaluateVisitor__loadModule__closure2, A._EvaluateVisitor__execute_closure0, A._EvaluateVisitor__extendModules_closure2, A._EvaluateVisitor_visitAtRootRule_closure1, A._EvaluateVisitor_visitAtRootRule_closure2, A._EvaluateVisitor__scopeForAtRoot__closure0, A._EvaluateVisitor_visitContentRule_closure0, A._EvaluateVisitor_visitDeclaration_closure0, A._EvaluateVisitor_visitEachRule_closure4, A._EvaluateVisitor_visitAtRule_closure3, A._EvaluateVisitor_visitAtRule__closure0, A._EvaluateVisitor_visitForRule_closure4, A._EvaluateVisitor_visitForRule_closure5, A._EvaluateVisitor_visitForRule_closure6, A._EvaluateVisitor_visitForRule_closure7, A._EvaluateVisitor_visitForRule_closure8, A._EvaluateVisitor__registerCommentsForModule_closure0, A._EvaluateVisitor_visitIfRule__closure0, A._EvaluateVisitor__visitDynamicImport_closure0, A._EvaluateVisitor__visitDynamicImport__closure6, A._EvaluateVisitor__applyMixin_closure1, A._EvaluateVisitor__applyMixin__closure2, A._EvaluateVisitor__applyMixin_closure2, A._EvaluateVisitor__applyMixin__closure1, A._EvaluateVisitor__applyMixin___closure0, A._EvaluateVisitor__applyMixin____closure0, A._EvaluateVisitor_visitIncludeRule_closure2, A._EvaluateVisitor_visitIncludeRule_closure4, A._EvaluateVisitor_visitMediaRule_closure3, A._EvaluateVisitor_visitMediaRule__closure0, A._EvaluateVisitor_visitMediaRule___closure0, A._EvaluateVisitor_visitStyleRule_closure3, A._EvaluateVisitor_visitStyleRule_closure6, A._EvaluateVisitor_visitStyleRule__closure0, A._EvaluateVisitor_visitSupportsRule_closure1, A._EvaluateVisitor_visitSupportsRule__closure0, A._EvaluateVisitor__visitSupportsCondition_closure0, A._EvaluateVisitor_visitVariableDeclaration_closure2, A._EvaluateVisitor_visitVariableDeclaration_closure3, A._EvaluateVisitor_visitVariableDeclaration_closure4, A._EvaluateVisitor_visitWarnRule_closure0, A._EvaluateVisitor_visitWhileRule_closure0, A._EvaluateVisitor_visitBinaryOperationExpression_closure0, A._EvaluateVisitor_visitVariableExpression_closure0, A._EvaluateVisitor_visitUnaryOperationExpression_closure0, A._EvaluateVisitor_visitFunctionExpression_closure2, A._EvaluateVisitor_visitFunctionExpression_closure4, A._EvaluateVisitor__visitCalculationExpression_closure0, A._EvaluateVisitor_visitInterpolatedFunctionExpression_closure0, A._EvaluateVisitor__runUserDefinedCallable_closure0, A._EvaluateVisitor__runUserDefinedCallable__closure0, A._EvaluateVisitor__runUserDefinedCallable___closure0, A._EvaluateVisitor__runFunctionCallable_closure0, A._EvaluateVisitor__runBuiltInCallable_closure2, A._EvaluateVisitor__runBuiltInCallable_closure3, A._EvaluateVisitor__verifyArguments_closure0, A._EvaluateVisitor_visitCssAtRule_closure1, A._EvaluateVisitor_visitCssKeyframeBlock_closure1, A._EvaluateVisitor_visitCssMediaRule_closure3, A._EvaluateVisitor_visitCssMediaRule__closure0, A._EvaluateVisitor_visitCssMediaRule___closure0, A._EvaluateVisitor_visitCssStyleRule_closure2, A._EvaluateVisitor_visitCssStyleRule__closure0, A._EvaluateVisitor_visitCssSupportsRule_closure1, A._EvaluateVisitor_visitCssSupportsRule__closure0, A._EvaluateVisitor__serialize_closure0, A._EvaluateVisitor__expressionNode_closure0, A._EvaluateVisitor__closure2, A._EvaluateVisitor__closure1, A._EvaluateVisitor_run_closure, A._EvaluateVisitor_run__closure, A._EvaluateVisitor_runExpression_closure, A._EvaluateVisitor_runExpression__closure, A._EvaluateVisitor_runExpression___closure, A._EvaluateVisitor_runStatement_closure, A._EvaluateVisitor_runStatement__closure, A._EvaluateVisitor_runStatement___closure, A._EvaluateVisitor__loadModule_closure, A._EvaluateVisitor__loadModule_closure0, A._EvaluateVisitor__loadModule__closure0, A._EvaluateVisitor__execute_closure, A._EvaluateVisitor__extendModules_closure0, A._EvaluateVisitor_visitAtRootRule_closure, A._EvaluateVisitor_visitAtRootRule_closure0, A._EvaluateVisitor__scopeForAtRoot__closure, A._EvaluateVisitor_visitContentRule_closure, A._EvaluateVisitor_visitDeclaration_closure, A._EvaluateVisitor_visitEachRule_closure1, A._EvaluateVisitor_visitAtRule_closure0, A._EvaluateVisitor_visitAtRule__closure, A._EvaluateVisitor_visitForRule_closure, A._EvaluateVisitor_visitForRule_closure0, A._EvaluateVisitor_visitForRule_closure1, A._EvaluateVisitor_visitForRule_closure2, A._EvaluateVisitor_visitForRule_closure3, A._EvaluateVisitor__registerCommentsForModule_closure, A._EvaluateVisitor_visitIfRule__closure, A._EvaluateVisitor__visitDynamicImport_closure, A._EvaluateVisitor__visitDynamicImport__closure2, A._EvaluateVisitor__applyMixin_closure, A._EvaluateVisitor__applyMixin__closure0, A._EvaluateVisitor__applyMixin_closure0, A._EvaluateVisitor__applyMixin__closure, A._EvaluateVisitor__applyMixin___closure, A._EvaluateVisitor__applyMixin____closure, A._EvaluateVisitor_visitIncludeRule_closure, A._EvaluateVisitor_visitIncludeRule_closure1, A._EvaluateVisitor_visitMediaRule_closure0, A._EvaluateVisitor_visitMediaRule__closure, A._EvaluateVisitor_visitMediaRule___closure, A._EvaluateVisitor_visitStyleRule_closure, A._EvaluateVisitor_visitStyleRule_closure2, A._EvaluateVisitor_visitStyleRule__closure, A._EvaluateVisitor_visitSupportsRule_closure, A._EvaluateVisitor_visitSupportsRule__closure, A._EvaluateVisitor__visitSupportsCondition_closure, A._EvaluateVisitor_visitVariableDeclaration_closure, A._EvaluateVisitor_visitVariableDeclaration_closure0, A._EvaluateVisitor_visitVariableDeclaration_closure1, A._EvaluateVisitor_visitWarnRule_closure, A._EvaluateVisitor_visitWhileRule_closure, A._EvaluateVisitor_visitBinaryOperationExpression_closure, A._EvaluateVisitor_visitVariableExpression_closure, A._EvaluateVisitor_visitUnaryOperationExpression_closure, A._EvaluateVisitor_visitFunctionExpression_closure, A._EvaluateVisitor_visitFunctionExpression_closure1, A._EvaluateVisitor__visitCalculationExpression_closure, A._EvaluateVisitor_visitInterpolatedFunctionExpression_closure, A._EvaluateVisitor__runUserDefinedCallable_closure, A._EvaluateVisitor__runUserDefinedCallable__closure, A._EvaluateVisitor__runUserDefinedCallable___closure, A._EvaluateVisitor__runFunctionCallable_closure, A._EvaluateVisitor__runBuiltInCallable_closure, A._EvaluateVisitor__runBuiltInCallable_closure0, A._EvaluateVisitor__verifyArguments_closure, A._EvaluateVisitor_visitCssAtRule_closure, A._EvaluateVisitor_visitCssKeyframeBlock_closure, A._EvaluateVisitor_visitCssMediaRule_closure0, A._EvaluateVisitor_visitCssMediaRule__closure, A._EvaluateVisitor_visitCssMediaRule___closure, A._EvaluateVisitor_visitCssStyleRule_closure0, A._EvaluateVisitor_visitCssStyleRule__closure, A._EvaluateVisitor_visitCssSupportsRule_closure, A._EvaluateVisitor_visitCssSupportsRule__closure, A._EvaluateVisitor__serialize_closure, A._EvaluateVisitor__expressionNode_closure, A._SerializeVisitor_visitCssComment_closure, A._SerializeVisitor_visitCssAtRule_closure, A._SerializeVisitor_visitCssMediaRule_closure, A._SerializeVisitor_visitCssImport_closure, A._SerializeVisitor_visitCssImport__closure, A._SerializeVisitor_visitCssKeyframeBlock_closure, A._SerializeVisitor_visitCssStyleRule_closure, A._SerializeVisitor_visitCssSupportsRule_closure, A._SerializeVisitor_visitCssDeclaration_closure, A._SerializeVisitor_visitCssDeclaration_closure0, A._SerializeVisitor__write_closure, A._SerializeVisitor__visitChildren_closure, A._SerializeVisitor__visitChildren_closure0, A.SingleMapping_SingleMapping$fromEntries_closure, A.SingleMapping_SingleMapping$fromEntries_closure0, A.Highlighter_closure, A.Highlighter__writeFileStart_closure, A.Highlighter__writeMultilineHighlights_closure, A.Highlighter__writeMultilineHighlights_closure0, A.Highlighter__writeMultilineHighlights_closure1, A.Highlighter__writeMultilineHighlights_closure2, A.Highlighter__writeMultilineHighlights__closure, A.Highlighter__writeMultilineHighlights__closure0, A.Highlighter__writeHighlightedText_closure, A.Highlighter__writeIndicator_closure, A.Highlighter__writeIndicator_closure0, A.Highlighter__writeIndicator_closure1, A.Highlighter__writeLabel_closure, A.Highlighter__writeLabel_closure0, A.Highlighter__writeSidebar_closure, A._Highlight_closure, A.Frame_Frame$parseVM_closure, A.Frame_Frame$parseV8_closure, A.Frame_Frame$_parseFirefoxEval_closure, A.Frame_Frame$parseFirefox_closure, A.Frame_Frame$parseFriendly_closure, A.LazyTrace_terse_closure, A.Trace_Trace$from_closure, A.TransformByHandlers_transformByHandlers_closure, A.TransformByHandlers_transformByHandlers__closure0, A.TransformByHandlers_transformByHandlers__closure2, A.RateLimit__debounceAggregate_closure_emit, A.RateLimit__debounceAggregate__closure, A.argumentListClass_closure, A.JSToDartAsyncImporter_canonicalize_closure, A.JSToDartAsyncImporter_load_closure, A.AsyncEnvironment_setVariable_closure2, A.AsyncEnvironment_setVariable_closure4, A._EvaluateVisitor__closure14, A._EvaluateVisitor__closure13, A._EvaluateVisitor_run_closure2, A._EvaluateVisitor_run__closure2, A._EvaluateVisitor__loadModule_closure5, A._EvaluateVisitor__loadModule_closure6, A._EvaluateVisitor__loadModule__closure6, A._EvaluateVisitor__execute_closure2, A._EvaluateVisitor__extendModules_closure6, A._EvaluateVisitor_visitAtRootRule_closure5, A._EvaluateVisitor_visitAtRootRule_closure6, A._EvaluateVisitor__scopeForAtRoot__closure2, A._EvaluateVisitor_visitContentRule_closure2, A._EvaluateVisitor_visitDeclaration_closure2, A._EvaluateVisitor_visitEachRule_closure10, A._EvaluateVisitor_visitAtRule_closure9, A._EvaluateVisitor_visitAtRule__closure2, A._EvaluateVisitor_visitForRule_closure14, A._EvaluateVisitor_visitForRule_closure15, A._EvaluateVisitor_visitForRule_closure16, A._EvaluateVisitor_visitForRule_closure17, A._EvaluateVisitor_visitForRule_closure18, A._EvaluateVisitor__registerCommentsForModule_closure2, A._EvaluateVisitor_visitIfRule__closure2, A._EvaluateVisitor__visitDynamicImport_closure2, A._EvaluateVisitor__visitDynamicImport__closure14, A._EvaluateVisitor__applyMixin_closure5, A._EvaluateVisitor__applyMixin__closure6, A._EvaluateVisitor__applyMixin_closure6, A._EvaluateVisitor__applyMixin__closure5, A._EvaluateVisitor__applyMixin___closure2, A._EvaluateVisitor__applyMixin____closure2, A._EvaluateVisitor_visitIncludeRule_closure8, A._EvaluateVisitor_visitIncludeRule_closure10, A._EvaluateVisitor_visitMediaRule_closure9, A._EvaluateVisitor_visitMediaRule__closure2, A._EvaluateVisitor_visitMediaRule___closure2, A._EvaluateVisitor_visitStyleRule_closure11, A._EvaluateVisitor_visitStyleRule_closure14, A._EvaluateVisitor_visitStyleRule__closure2, A._EvaluateVisitor_visitSupportsRule_closure5, A._EvaluateVisitor_visitSupportsRule__closure2, A._EvaluateVisitor__visitSupportsCondition_closure2, A._EvaluateVisitor_visitVariableDeclaration_closure8, A._EvaluateVisitor_visitVariableDeclaration_closure9, A._EvaluateVisitor_visitVariableDeclaration_closure10, A._EvaluateVisitor_visitWarnRule_closure2, A._EvaluateVisitor_visitWhileRule_closure2, A._EvaluateVisitor_visitBinaryOperationExpression_closure2, A._EvaluateVisitor_visitVariableExpression_closure2, A._EvaluateVisitor_visitUnaryOperationExpression_closure2, A._EvaluateVisitor_visitFunctionExpression_closure8, A._EvaluateVisitor_visitFunctionExpression_closure10, A._EvaluateVisitor__visitCalculationExpression_closure2, A._EvaluateVisitor_visitInterpolatedFunctionExpression_closure2, A._EvaluateVisitor__runUserDefinedCallable_closure2, A._EvaluateVisitor__runUserDefinedCallable__closure2, A._EvaluateVisitor__runUserDefinedCallable___closure2, A._EvaluateVisitor__runFunctionCallable_closure2, A._EvaluateVisitor__runBuiltInCallable_closure8, A._EvaluateVisitor__runBuiltInCallable_closure9, A._EvaluateVisitor__verifyArguments_closure2, A._EvaluateVisitor_visitCssAtRule_closure5, A._EvaluateVisitor_visitCssKeyframeBlock_closure5, A._EvaluateVisitor_visitCssMediaRule_closure9, A._EvaluateVisitor_visitCssMediaRule__closure2, A._EvaluateVisitor_visitCssMediaRule___closure2, A._EvaluateVisitor_visitCssStyleRule_closure6, A._EvaluateVisitor_visitCssStyleRule__closure2, A._EvaluateVisitor_visitCssSupportsRule_closure5, A._EvaluateVisitor_visitCssSupportsRule__closure2, A._EvaluateVisitor__serialize_closure2, A._EvaluateVisitor__expressionNode_closure2, A.JSToDartAsyncFileImporter_canonicalize_closure, A.AsyncImportCache_canonicalize_closure0, A.AsyncImportCache__canonicalize_closure0, A.AsyncImportCache_importCanonical_closure0, A.AtRootQueryParser_parse_closure0, A.booleanClass_closure, A.legacyBooleanClass_closure, A.calculationClass_closure, A.calculationOperationClass_closure, A.calculationInterpolationClass_closure, A._changeColor_closure0, A.colorClass_closure, A.compileAsync_closure, A.compileStringAsync_closure, A._parseFunctions___closure6, A._parseFunctions___closure5, A.nodePackageImporterClass_closure, A.compilerClass_closure, A.asyncCompilerClass_closure, A.asyncCompilerClass___closure, A.initAsyncCompiler_closure, A.deprecations_closure, A.parseDeprecations_closure, A.versionClass_closure, A.Environment_setVariable_closure2, A.Environment_setVariable_closure4, A._EvaluateVisitor__closure10, A._EvaluateVisitor__closure9, A._EvaluateVisitor_run_closure1, A._EvaluateVisitor_run__closure1, A._EvaluateVisitor__loadModule_closure3, A._EvaluateVisitor__loadModule_closure4, A._EvaluateVisitor__loadModule__closure4, A._EvaluateVisitor__execute_closure1, A._EvaluateVisitor__extendModules_closure4, A._EvaluateVisitor_visitAtRootRule_closure3, A._EvaluateVisitor_visitAtRootRule_closure4, A._EvaluateVisitor__scopeForAtRoot__closure1, A._EvaluateVisitor_visitContentRule_closure1, A._EvaluateVisitor_visitDeclaration_closure1, A._EvaluateVisitor_visitEachRule_closure7, A._EvaluateVisitor_visitAtRule_closure6, A._EvaluateVisitor_visitAtRule__closure1, A._EvaluateVisitor_visitForRule_closure9, A._EvaluateVisitor_visitForRule_closure10, A._EvaluateVisitor_visitForRule_closure11, A._EvaluateVisitor_visitForRule_closure12, A._EvaluateVisitor_visitForRule_closure13, A._EvaluateVisitor__registerCommentsForModule_closure1, A._EvaluateVisitor_visitIfRule__closure1, A._EvaluateVisitor__visitDynamicImport_closure1, A._EvaluateVisitor__visitDynamicImport__closure10, A._EvaluateVisitor__applyMixin_closure3, A._EvaluateVisitor__applyMixin__closure4, A._EvaluateVisitor__applyMixin_closure4, A._EvaluateVisitor__applyMixin__closure3, A._EvaluateVisitor__applyMixin___closure1, A._EvaluateVisitor__applyMixin____closure1, A._EvaluateVisitor_visitIncludeRule_closure5, A._EvaluateVisitor_visitIncludeRule_closure7, A._EvaluateVisitor_visitMediaRule_closure6, A._EvaluateVisitor_visitMediaRule__closure1, A._EvaluateVisitor_visitMediaRule___closure1, A._EvaluateVisitor_visitStyleRule_closure7, A._EvaluateVisitor_visitStyleRule_closure10, A._EvaluateVisitor_visitStyleRule__closure1, A._EvaluateVisitor_visitSupportsRule_closure3, A._EvaluateVisitor_visitSupportsRule__closure1, A._EvaluateVisitor__visitSupportsCondition_closure1, A._EvaluateVisitor_visitVariableDeclaration_closure5, A._EvaluateVisitor_visitVariableDeclaration_closure6, A._EvaluateVisitor_visitVariableDeclaration_closure7, A._EvaluateVisitor_visitWarnRule_closure1, A._EvaluateVisitor_visitWhileRule_closure1, A._EvaluateVisitor_visitBinaryOperationExpression_closure1, A._EvaluateVisitor_visitVariableExpression_closure1, A._EvaluateVisitor_visitUnaryOperationExpression_closure1, A._EvaluateVisitor_visitFunctionExpression_closure5, A._EvaluateVisitor_visitFunctionExpression_closure7, A._EvaluateVisitor__visitCalculationExpression_closure1, A._EvaluateVisitor_visitInterpolatedFunctionExpression_closure1, A._EvaluateVisitor__runUserDefinedCallable_closure1, A._EvaluateVisitor__runUserDefinedCallable__closure1, A._EvaluateVisitor__runUserDefinedCallable___closure1, A._EvaluateVisitor__runFunctionCallable_closure1, A._EvaluateVisitor__runBuiltInCallable_closure5, A._EvaluateVisitor__runBuiltInCallable_closure6, A._EvaluateVisitor__verifyArguments_closure1, A._EvaluateVisitor_visitCssAtRule_closure3, A._EvaluateVisitor_visitCssKeyframeBlock_closure3, A._EvaluateVisitor_visitCssMediaRule_closure6, A._EvaluateVisitor_visitCssMediaRule__closure1, A._EvaluateVisitor_visitCssMediaRule___closure1, A._EvaluateVisitor_visitCssStyleRule_closure4, A._EvaluateVisitor_visitCssStyleRule__closure1, A._EvaluateVisitor_visitCssSupportsRule_closure3, A._EvaluateVisitor_visitCssSupportsRule__closure1, A._EvaluateVisitor__serialize_closure1, A._EvaluateVisitor__expressionNode_closure1, A.exceptionClass_closure, A.ExtensionStore__registerSelector_closure0, A.ExtensionStore_addExtension_closure2, A.ExtensionStore_addExtension_closure3, A.ExtensionStore_addExtension_closure4, A.ExtensionStore__extendExistingExtensions_closure1, A.ExtensionStore__extendExistingExtensions_closure2, A.ExtensionStore_addExtensions_closure0, A.JSToDartFileImporter_canonicalize_closure, A.functionClass_closure, A.NodeImporter_load_closure, A.NodeImporter__tryPath_closure, A.NodeImporter__callImporterAsync_closure, A.ImportCache_canonicalize_closure0, A.ImportCache__canonicalize_closure0, A.ImportCache_importCanonical_closure0, A._realCasePath_helper_closure0, A._readFile_closure0, A.fileExists_closure0, A.dirExists_closure0, A.listDir_closure0, A.JSToDartLogger_internalWarn_closure, A.JSToDartLogger_debug_closure, A.KeyframeSelectorParser_parse_closure0, A.render_closure, A._parseFunctions____closure, A._parseFunctions___closure3, A._parseFunctions___closure4, A._parseFunctions___closure1, A._parseFunctions___closure0, A._parseImporter____closure, A._parseImporter___closure0, A.listClass_closure, A.mapClass_closure, A.MediaQueryParser_parse_closure0, A.mixinClass_closure, A.legacyNullClass_closure, A.numberClass_closure, A.SassNumber__coerceOrConvertValue_compatibilityException0, A.SassNumber__coerceOrConvertValue_closure4, A.SassNumber__coerceOrConvertValue_closure6, A.SassNumber_multiplyUnits_closure4, A.SassNumber_multiplyUnits_closure6, A.Parser__parseIdentifier_closure0, A.Parser_spanFrom_closure0, A.PseudoSelector_specificity_closure0, A.SassParser_children_closure0, A.SelectorParser_parse_closure0, A.SelectorParser_parseCompoundSelector_closure0, A._SerializeVisitor_visitCssComment_closure0, A._SerializeVisitor_visitCssAtRule_closure0, A._SerializeVisitor_visitCssMediaRule_closure0, A._SerializeVisitor_visitCssImport_closure0, A._SerializeVisitor_visitCssImport__closure0, A._SerializeVisitor_visitCssKeyframeBlock_closure0, A._SerializeVisitor_visitCssStyleRule_closure0, A._SerializeVisitor_visitCssSupportsRule_closure0, A._SerializeVisitor_visitCssDeclaration_closure1, A._SerializeVisitor_visitCssDeclaration_closure2, A._SerializeVisitor__write_closure0, A._SerializeVisitor__visitChildren_closure1, A._SerializeVisitor__visitChildren_closure2, A.SingleUnitSassNumber_multiplyUnits_closure2, A.updateSourceSpanPrototype_closure, A.stringClass_closure, A.StylesheetParser_parse_closure0, A.StylesheetParser_parse__closure1, A.StylesheetParser_parseArgumentDeclaration_closure0, A.StylesheetParser__parseSingleProduction_closure0, A.StylesheetParser_parseSignature_closure, A.StylesheetParser__statement_closure0, A.StylesheetParser_variableDeclarationWithoutNamespace_closure1, A.StylesheetParser_variableDeclarationWithoutNamespace_closure2, A.StylesheetParser__forRule_closure1, A.StylesheetParser__memberList_closure0, A.StylesheetParser__expression_resetState0, A.StylesheetParser__expression_resolveOneOperation0, A.StylesheetParser__expression_resolveOperations0, A.StylesheetParser__expression_resolveSpaceExpressions0, A.StylesheetParser_expressionUntilComma_closure0, A.StylesheetParser_namespacedExpression_closure0, A.StylesheetParser__expressionUntilComparison_closure0, A.StylesheetParser__publicIdentifier_closure0, A.JSToDartImporter_canonicalize_closure, A.JSToDartImporter_load_closure, A.resolveImportPath_closure1, A.resolveImportPath_closure2, A._tryPathAsDirectory_closure0, A.valueClass_closure]);
  124307. _inheritMany(A.EfficientLengthIterable, [A.ListIterable, A.EmptyIterable, A.LinkedHashMapKeyIterable, A._HashMapKeyIterable, A._MapBaseValueIterable]);
  124308. _inheritMany(A.ListIterable, [A.SubListIterable, A.MappedListIterable, A.ReversedListIterable, A.ListQueue, A._JsonMapKeyIterable, A._GeneratorIterable]);
  124309. _inherit(A.EfficientLengthMappedIterable, A.MappedIterable);
  124310. _inherit(A.EfficientLengthTakeIterable, A.TakeIterable);
  124311. _inherit(A.EfficientLengthSkipIterable, A.SkipIterable);
  124312. _inherit(A.EfficientLengthFollowedByIterable, A.FollowedByIterable);
  124313. _inheritMany(A._Record, [A._Record1, A._Record2, A._Record3, A._RecordN]);
  124314. _inherit(A._Record_1, A._Record1);
  124315. _inheritMany(A._Record2, [A._Record_2, A._Record_2_forImport, A._Record_2_imports_modules, A._Record_2_loadedUrls_stylesheet, A._Record_2_sourceMap]);
  124316. _inheritMany(A._Record3, [A._Record_3, A._Record_3_deprecation_message_span, A._Record_3_forImport, A._Record_3_importer_isDependency, A._Record_3_originalUrl]);
  124317. _inherit(A._Record_5_named_namedNodes_positional_positionalNodes_separator, A._RecordN);
  124318. _inheritMany(A.MapView, [A._UnmodifiableMapView_MapView__UnmodifiableMapMixin, A.PathMap]);
  124319. _inherit(A.UnmodifiableMapView, A._UnmodifiableMapView_MapView__UnmodifiableMapMixin);
  124320. _inherit(A.ConstantMapView, A.UnmodifiableMapView);
  124321. _inherit(A.ConstantStringMap, A.ConstantMap);
  124322. _inheritMany(A.SetBase, [A.ConstantSet, A._SetBase, A._UnmodifiableSetView_SetBase__UnmodifiableSetMixin, A._UnionSet_SetBase_UnmodifiableSetMixin]);
  124323. _inheritMany(A.ConstantSet, [A.ConstantStringSet, A.GeneralConstantSet]);
  124324. _inherit(A.Instantiation1, A.Instantiation);
  124325. _inherit(A.NullError, A.TypeError);
  124326. _inheritMany(A.TearOffClosure, [A.StaticClosure, A.BoundClosure]);
  124327. _inheritMany(A.JsLinkedHashMap, [A.JsIdentityLinkedHashMap, A.JsConstantLinkedHashMap, A._LinkedCustomHashMap]);
  124328. _inheritMany(A.NativeTypedData, [A.NativeByteData, A.NativeTypedArray]);
  124329. _inheritMany(A.NativeTypedArray, [A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin, A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin]);
  124330. _inherit(A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin, A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin);
  124331. _inherit(A.NativeTypedArrayOfDouble, A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin);
  124332. _inherit(A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin, A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin);
  124333. _inherit(A.NativeTypedArrayOfInt, A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin);
  124334. _inheritMany(A.NativeTypedArrayOfDouble, [A.NativeFloat32List, A.NativeFloat64List]);
  124335. _inheritMany(A.NativeTypedArrayOfInt, [A.NativeInt16List, A.NativeInt32List, A.NativeInt8List, A.NativeUint16List, A.NativeUint32List, A.NativeUint8ClampedList, A.NativeUint8List]);
  124336. _inherit(A._TypeError, A._Error);
  124337. _inheritMany(A._Completer, [A._AsyncCompleter, A._SyncCompleter]);
  124338. _inheritMany(A._StreamController, [A._AsyncStreamController, A._SyncStreamController]);
  124339. _inheritMany(A.Stream, [A._StreamImpl, A._ForwardingStream, A._CompleterStream]);
  124340. _inherit(A._ControllerStream, A._StreamImpl);
  124341. _inheritMany(A._BufferingStreamSubscription, [A._ControllerSubscription, A._ForwardingStreamSubscription]);
  124342. _inherit(A._StreamControllerAddStreamState, A._AddStreamState);
  124343. _inheritMany(A._DelayedEvent, [A._DelayedData, A._DelayedError]);
  124344. _inherit(A._ExpandStream, A._ForwardingStream);
  124345. _inheritMany(A._Zone, [A._CustomZone, A._RootZone]);
  124346. _inherit(A._IdentityHashMap, A._HashMap);
  124347. _inherit(A._LinkedHashSet, A._SetBase);
  124348. _inherit(A._LinkedIdentityHashSet, A._LinkedHashSet);
  124349. _inherit(A.UnmodifiableSetView, A._UnmodifiableSetView_SetBase__UnmodifiableSetMixin);
  124350. _inheritMany(A.Codec, [A.Encoding, A.Base64Codec, A.JsonCodec]);
  124351. _inheritMany(A.Encoding, [A.AsciiCodec, A.Utf8Codec]);
  124352. _inheritMany(A.Converter, [A._UnicodeSubsetEncoder, A.Base64Encoder, A.JsonEncoder, A.JsonDecoder, A.Utf8Encoder, A.Utf8Decoder]);
  124353. _inherit(A.AsciiEncoder, A._UnicodeSubsetEncoder);
  124354. _inheritMany(A.ByteConversionSink, [A._Base64EncoderSink, A._Utf8StringSinkAdapter]);
  124355. _inherit(A._Utf8Base64EncoderSink, A._Base64EncoderSink);
  124356. _inherit(A.JsonCyclicError, A.JsonUnsupportedObjectError);
  124357. _inherit(A._JsonStringStringifier, A._JsonStringifier);
  124358. _inherit(A._StringSinkConversionSink, A.StringConversionSink);
  124359. _inherit(A._StringCallbackSink, A._StringSinkConversionSink);
  124360. _inheritMany(A.ArgumentError, [A.RangeError, A.IndexError]);
  124361. _inherit(A._DataUri, A._Uri);
  124362. _inherit(A.ArgParserException, A.FormatException);
  124363. _inherit(A.EmptyUnmodifiableSet, A._EmptyUnmodifiableSet_IterableBase_UnmodifiableSetMixin);
  124364. _inherit(A.QueueList, A._QueueList_Object_ListMixin);
  124365. _inherit(A._CastQueueList, A.QueueList);
  124366. _inherit(A.UnionSet, A._UnionSet_SetBase_UnmodifiableSetMixin);
  124367. _inheritMany(A._DelegatingIterableBase, [A.DelegatingSet, A._MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin]);
  124368. _inherit(A._UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin, A.DelegatingSet);
  124369. _inherit(A.UnmodifiableSetView0, A._UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin);
  124370. _inherit(A.MapKeySet, A._MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin);
  124371. _inheritMany(A.NodeJsError, [A.JsAssertionError, A.JsRangeError, A.JsReferenceError, A.JsSyntaxError, A.JsTypeError, A.JsSystemError]);
  124372. _inheritMany(A.Socket, [A.TTYReadStream, A.TTYWriteStream]);
  124373. _inherit(A.InternalStyle, A.Style);
  124374. _inheritMany(A.InternalStyle, [A.PosixStyle, A.UrlStyle, A.WindowsStyle]);
  124375. _inheritMany(A._Enum, [A._SingletonCssMediaQueryMergeResult, A.BinaryOperator, A.UnaryOperator, A.AttributeOperator, A.Combinator, A.Deprecation, A.ExtendMode, A.Syntax, A.CalculationOperator, A.HueInterpolationMethod, A.ListSeparator, A.OutputStyle, A.LineFeed, A.AttributeOperator0, A.BinaryOperator0, A.CalculationOperator0, A.Combinator0, A.Deprecation0, A.HueInterpolationMethod0, A.ListSeparator0, A._SingletonCssMediaQueryMergeResult0, A.ExtendMode0, A.OutputStyle0, A.LineFeed0, A.Syntax0, A.UnaryOperator0]);
  124376. _inheritMany(A.CssNode, [A.ModifiableCssNode, A.CssParentNode]);
  124377. _inheritMany(A.ModifiableCssNode, [A.ModifiableCssParentNode, A.ModifiableCssComment, A.ModifiableCssDeclaration, A.ModifiableCssImport]);
  124378. _inheritMany(A.ModifiableCssParentNode, [A.ModifiableCssAtRule, A.ModifiableCssKeyframeBlock, A.ModifiableCssMediaRule, A.ModifiableCssStyleRule, A.ModifiableCssStylesheet, A.ModifiableCssSupportsRule]);
  124379. _inherit(A._IsInvisibleVisitor, A.__IsInvisibleVisitor_Object_EveryCssVisitor);
  124380. _inherit(A.CssStylesheet, A.CssParentNode);
  124381. _inheritMany(A.Expression, [A.BinaryOperationExpression, A.BooleanExpression, A.ColorExpression, A.FunctionExpression, A.IfExpression, A.InterpolatedFunctionExpression, A.ListExpression, A.MapExpression, A.NullExpression, A.NumberExpression, A.ParenthesizedExpression, A.SelectorExpression, A.StringExpression, A.SupportsExpression, A.UnaryOperationExpression, A.ValueExpression, A.VariableExpression]);
  124382. _inheritMany(A.Statement, [A.ParentStatement, A.ContentRule, A.DebugRule, A.ErrorRule, A.ExtendRule, A.ForwardRule, A.IfRule, A.ImportRule, A.IncludeRule, A.LoudComment, A.ReturnRule, A.SilentComment, A.UseRule, A.VariableDeclaration, A.WarnRule]);
  124383. _inheritMany(A.ParentStatement, [A.AtRootRule, A.AtRule, A.CallableDeclaration, A.Declaration, A.EachRule, A.ForRule, A.MediaRule, A.StyleRule, A.Stylesheet, A.SupportsRule, A.WhileRule]);
  124384. _inheritMany(A.CallableDeclaration, [A.ContentBlock, A.FunctionRule, A.MixinRule]);
  124385. _inheritMany(A.IfRuleClause, [A.IfClause, A.ElseClause]);
  124386. _inherit(A._HasContentVisitor, A.__HasContentVisitor_Object_StatementSearchVisitor);
  124387. _inherit(A._IsInvisibleVisitor0, A.__IsInvisibleVisitor_Object_AnySelectorVisitor);
  124388. _inherit(A._IsBogusVisitor, A.__IsBogusVisitor_Object_AnySelectorVisitor);
  124389. _inherit(A._IsUselessVisitor, A.__IsUselessVisitor_Object_AnySelectorVisitor);
  124390. _inheritMany(A.Selector, [A.SimpleSelector, A.ComplexSelector, A.CompoundSelector, A.SelectorList]);
  124391. _inheritMany(A.SimpleSelector, [A.AttributeSelector, A.ClassSelector, A.IDSelector, A.ParentSelector, A.PlaceholderSelector, A.PseudoSelector, A.TypeSelector, A.UniversalSelector]);
  124392. _inherit(A._ParentSelectorVisitor, A.__ParentSelectorVisitor_Object_SelectorSearchVisitor);
  124393. _inherit(A.ExplicitConfiguration, A.Configuration);
  124394. _inheritMany(A.SourceSpanException, [A.SassException, A.SourceSpanFormatException, A.MultiSourceSpanException, A.SassException0]);
  124395. _inheritMany(A.SassException, [A.MultiSpanSassException, A.SassRuntimeException, A.SassFormatException]);
  124396. _inheritMany(A.MultiSpanSassException, [A.MultiSpanSassRuntimeException, A.MultiSpanSassFormatException]);
  124397. _inherit(A.MultiSpanSassScriptException, A.SassScriptException);
  124398. _inherit(A.MergedExtension, A.Extension);
  124399. _inherit(A.Importer, A.AsyncImporter);
  124400. _inheritMany(A.Importer, [A.FilesystemImporter, A.NoOpImporter, A.NodePackageImporter]);
  124401. _inherit(A.DeprecationProcessingLogger, A.LoggerWithDeprecationType0);
  124402. _inheritMany(A.Parser, [A.AtRootQueryParser, A.StylesheetParser, A.KeyframeSelectorParser, A.MediaQueryParser, A.SelectorParser]);
  124403. _inheritMany(A.StylesheetParser, [A.ScssParser, A.SassParser]);
  124404. _inherit(A.CssParser, A.ScssParser);
  124405. _inheritMany(A.UnmodifiableMapBase, [A.LimitedMapView, A.PrefixedMapView, A.PublicMemberMapView, A.UnprefixedMapView, A.LimitedMapView0, A.PrefixedMapView0, A.PublicMemberMapView0, A.UnprefixedMapView0]);
  124406. _inheritMany(A.Value, [A.SassList, A.SassBoolean, A.SassCalculation, A.SassColor, A.SassFunction, A.SassMap, A.SassMixin, A._SassNull, A.SassNumber, A.SassString]);
  124407. _inherit(A.SassArgumentList, A.SassList);
  124408. _inherit(A.LinearChannel, A.ColorChannel);
  124409. _inheritMany(A.GamutMapMethod, [A.ClipGamutMap, A.LocalMindeGamutMap]);
  124410. _inheritMany(A.ColorSpace, [A.A98RgbColorSpace, A.DisplayP3ColorSpace, A.HslColorSpace, A.HwbColorSpace, A.LabColorSpace, A.LchColorSpace, A.LmsColorSpace, A.OklabColorSpace, A.OklchColorSpace, A.ProphotoRgbColorSpace, A.Rec2020ColorSpace, A.RgbColorSpace, A.SrgbColorSpace, A.SrgbLinearColorSpace, A.XyzD50ColorSpace, A.XyzD65ColorSpace]);
  124411. _inheritMany(A.SassNumber, [A.ComplexSassNumber, A.SingleUnitSassNumber, A.UnitlessSassNumber]);
  124412. _inherit(A._MakeExpressionCalculationSafe, A.__MakeExpressionCalculationSafe_Object_ReplaceExpressionVisitor);
  124413. _inherit(A._FindDependenciesVisitor, A.__FindDependenciesVisitor_Object_RecursiveStatementVisitor);
  124414. _inherit(A.SingleMapping, A.Mapping);
  124415. _inherit(A.FileLocation, A.SourceLocationMixin);
  124416. _inheritMany(A.SourceSpanMixin, [A._FileSpan, A.SourceSpanBase]);
  124417. _inherit(A.MultiSourceSpanFormatException, A.MultiSourceSpanException);
  124418. _inherit(A.SourceSpanWithContext, A.SourceSpanBase);
  124419. _inherit(A.StringScannerException, A.SourceSpanFormatException);
  124420. _inheritMany(A.StringScanner, [A.LineScanner, A.SpanScanner]);
  124421. _inheritMany(A.ColorSpace0, [A.A98RgbColorSpace0, A.DisplayP3ColorSpace0, A.HslColorSpace0, A.HwbColorSpace0, A.LabColorSpace0, A.LchColorSpace0, A.LmsColorSpace0, A.OklabColorSpace0, A.OklchColorSpace0, A.ProphotoRgbColorSpace0, A.Rec2020ColorSpace0, A.RgbColorSpace0, A.SrgbColorSpace0, A.SrgbLinearColorSpace0, A.XyzD50ColorSpace0, A.XyzD65ColorSpace0]);
  124422. _inheritMany(A.Value0, [A.SassList0, A.SassBoolean0, A.SassCalculation0, A.SassColor0, A.SassNumber0, A.SassFunction0, A.SassMap0, A.SassMixin0, A._SassNull0, A.SassString0]);
  124423. _inherit(A.SassArgumentList0, A.SassList0);
  124424. _inheritMany(A.AsyncImporter0, [A.JSToDartAsyncImporter, A.JSToDartAsyncFileImporter, A.Importer0]);
  124425. _inheritMany(A.Parser1, [A.AtRootQueryParser0, A.StylesheetParser0, A.KeyframeSelectorParser0, A.MediaQueryParser0, A.SelectorParser0]);
  124426. _inheritMany(A.Statement0, [A.ParentStatement0, A.ContentRule0, A.DebugRule0, A.ErrorRule0, A.ExtendRule0, A.ForwardRule0, A.IfRule0, A.ImportRule0, A.IncludeRule0, A.LoudComment0, A.ReturnRule0, A.SilentComment0, A.UseRule0, A.VariableDeclaration0, A.WarnRule0]);
  124427. _inheritMany(A.ParentStatement0, [A.AtRootRule0, A.AtRule0, A.CallableDeclaration0, A.Declaration0, A.EachRule0, A.ForRule0, A.MediaRule0, A.StyleRule0, A.Stylesheet0, A.SupportsRule0, A.WhileRule0]);
  124428. _inheritMany(A.CssNode0, [A.ModifiableCssNode0, A.CssParentNode0]);
  124429. _inheritMany(A.ModifiableCssNode0, [A.ModifiableCssParentNode0, A.ModifiableCssComment0, A.ModifiableCssDeclaration0, A.ModifiableCssImport0]);
  124430. _inheritMany(A.ModifiableCssParentNode0, [A.ModifiableCssAtRule0, A.ModifiableCssKeyframeBlock0, A.ModifiableCssMediaRule0, A.ModifiableCssStyleRule0, A.ModifiableCssStylesheet0, A.ModifiableCssSupportsRule0]);
  124431. _inheritMany(A.Selector0, [A.SimpleSelector0, A.ComplexSelector0, A.CompoundSelector0, A.SelectorList0]);
  124432. _inheritMany(A.SimpleSelector0, [A.AttributeSelector0, A.ClassSelector0, A.IDSelector0, A.ParentSelector0, A.PlaceholderSelector0, A.PseudoSelector0, A.TypeSelector0, A.UniversalSelector0]);
  124433. _inheritMany(A.Expression0, [A.BinaryOperationExpression0, A.BooleanExpression0, A.ColorExpression0, A.FunctionExpression0, A.IfExpression0, A.InterpolatedFunctionExpression0, A.ListExpression0, A.MapExpression0, A.NullExpression0, A.NumberExpression0, A.ParenthesizedExpression0, A.SelectorExpression0, A.StringExpression0, A.SupportsExpression0, A.UnaryOperationExpression0, A.ValueExpression0, A.VariableExpression0]);
  124434. _inherit(A.LinearChannel0, A.ColorChannel0);
  124435. _inheritMany(A.GamutMapMethod0, [A.ClipGamutMap0, A.LocalMindeGamutMap0]);
  124436. _inherit(A._ConstructionOptions, A._Channels);
  124437. _inherit(A.CompileStringOptions, A.CompileOptions);
  124438. _inherit(A.AsyncCompiler, A.Compiler);
  124439. _inheritMany(A.SassNumber0, [A.ComplexSassNumber0, A.SingleUnitSassNumber0, A.UnitlessSassNumber0]);
  124440. _inherit(A.ExplicitConfiguration0, A.Configuration0);
  124441. _inheritMany(A.CallableDeclaration0, [A.ContentBlock0, A.FunctionRule0, A.MixinRule0]);
  124442. _inheritMany(A.StylesheetParser0, [A.ScssParser0, A.SassParser0]);
  124443. _inherit(A.CssParser0, A.ScssParser0);
  124444. _inheritMany(A.LoggerWithDeprecationType, [A.DeprecationProcessingLogger0, A.JSToDartLogger]);
  124445. _inherit(A._NodeException, A.JsError);
  124446. _inheritMany(A.SassException0, [A.MultiSpanSassException0, A.SassRuntimeException0, A.SassFormatException0]);
  124447. _inheritMany(A.MultiSpanSassException0, [A.MultiSpanSassRuntimeException0, A.MultiSpanSassFormatException0]);
  124448. _inherit(A.MultiSpanSassScriptException0, A.SassScriptException0);
  124449. _inherit(A._MakeExpressionCalculationSafe0, A.__MakeExpressionCalculationSafe_Object_ReplaceExpressionVisitor0);
  124450. _inheritMany(A.Importer0, [A.JSToDartFileImporter, A.FilesystemImporter0, A.NoOpImporter0, A.NodePackageImporter0, A.JSToDartImporter]);
  124451. _inheritMany(A.IfRuleClause0, [A.IfClause0, A.ElseClause0]);
  124452. _inherit(A._ParentSelectorVisitor0, A.__ParentSelectorVisitor_Object_SelectorSearchVisitor0);
  124453. _inherit(A.MergedExtension0, A.Extension0);
  124454. _inherit(A._HasContentVisitor0, A.__HasContentVisitor_Object_StatementSearchVisitor0);
  124455. _inherit(A._IsInvisibleVisitor1, A.__IsInvisibleVisitor_Object_EveryCssVisitor0);
  124456. _inherit(A._IsInvisibleVisitor2, A.__IsInvisibleVisitor_Object_AnySelectorVisitor0);
  124457. _inherit(A._IsBogusVisitor0, A.__IsBogusVisitor_Object_AnySelectorVisitor0);
  124458. _inherit(A._IsUselessVisitor0, A.__IsUselessVisitor_Object_AnySelectorVisitor0);
  124459. _inherit(A.CssStylesheet0, A.CssParentNode0);
  124460. _mixin(A.UnmodifiableListBase, A.UnmodifiableListMixin);
  124461. _mixin(A.__CastListBase__CastIterableBase_ListMixin, A.ListBase);
  124462. _mixin(A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin, A.ListBase);
  124463. _mixin(A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin, A.FixedLengthListMixin);
  124464. _mixin(A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin, A.ListBase);
  124465. _mixin(A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin, A.FixedLengthListMixin);
  124466. _mixin(A._AsyncStreamController, A._AsyncStreamControllerDispatch);
  124467. _mixin(A._SyncStreamController, A._SyncStreamControllerDispatch);
  124468. _mixin(A.UnmodifiableMapBase, A._UnmodifiableMapMixin);
  124469. _mixin(A._UnmodifiableMapView_MapView__UnmodifiableMapMixin, A._UnmodifiableMapMixin);
  124470. _mixin(A._UnmodifiableSetView_SetBase__UnmodifiableSetMixin, A._UnmodifiableSetMixin);
  124471. _mixin(A._EmptyUnmodifiableSet_IterableBase_UnmodifiableSetMixin, A.UnmodifiableSetMixin);
  124472. _mixin(A._QueueList_Object_ListMixin, A.ListBase);
  124473. _mixin(A._UnionSet_SetBase_UnmodifiableSetMixin, A.UnmodifiableSetMixin);
  124474. _mixin(A._UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin, A.UnmodifiableSetMixin);
  124475. _mixin(A._MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin, A.UnmodifiableSetMixin);
  124476. _mixin(A.__IsInvisibleVisitor_Object_EveryCssVisitor, A.EveryCssVisitor);
  124477. _mixin(A.__HasContentVisitor_Object_StatementSearchVisitor, A.StatementSearchVisitor);
  124478. _mixin(A.__IsBogusVisitor_Object_AnySelectorVisitor, A.AnySelectorVisitor);
  124479. _mixin(A.__IsInvisibleVisitor_Object_AnySelectorVisitor, A.AnySelectorVisitor);
  124480. _mixin(A.__IsUselessVisitor_Object_AnySelectorVisitor, A.AnySelectorVisitor);
  124481. _mixin(A.__ParentSelectorVisitor_Object_SelectorSearchVisitor, A.SelectorSearchVisitor);
  124482. _mixin(A.__MakeExpressionCalculationSafe_Object_ReplaceExpressionVisitor, A.ReplaceExpressionVisitor);
  124483. _mixin(A.__FindDependenciesVisitor_Object_RecursiveStatementVisitor, A.RecursiveStatementVisitor);
  124484. _mixin(A.__MakeExpressionCalculationSafe_Object_ReplaceExpressionVisitor0, A.ReplaceExpressionVisitor0);
  124485. _mixin(A.__ParentSelectorVisitor_Object_SelectorSearchVisitor0, A.SelectorSearchVisitor0);
  124486. _mixin(A.__HasContentVisitor_Object_StatementSearchVisitor0, A.StatementSearchVisitor0);
  124487. _mixin(A.__IsInvisibleVisitor_Object_EveryCssVisitor0, A.EveryCssVisitor0);
  124488. _mixin(A.__IsBogusVisitor_Object_AnySelectorVisitor0, A.AnySelectorVisitor0);
  124489. _mixin(A.__IsInvisibleVisitor_Object_AnySelectorVisitor0, A.AnySelectorVisitor0);
  124490. _mixin(A.__IsUselessVisitor_Object_AnySelectorVisitor0, A.AnySelectorVisitor0);
  124491. })();
  124492. var init = {
  124493. typeUniverse: {eC: new Map(), tR: {}, eT: {}, tPV: {}, sEA: []},
  124494. mangledGlobalNames: {int: "int", double: "double", num: "num", String: "String", bool: "bool", Null: "Null", List: "List", Object: "Object", Map: "Map"},
  124495. mangledNames: {},
  124496. types: ["~()", "Null()", "Future<Null>()", "Value0(List<Value0>)", "Value(List<Value>)", "bool(String)", "String(String)", "bool(CssNode)", "bool(CssNode0)", "bool(Object?)", "int()", "SassBoolean(List<Value>)", "SassBoolean0(List<Value0>)", "bool(SimpleSelector)", "bool(SimpleSelector0)", "double(double)", "JSClass0()", "SassString0(List<Value0>)", "SassString(List<Value>)", "bool(ComplexSelector)", "bool(ComplexSelector0)", "SassColor(List<Value>)", "SassNumber0(List<Value0>)", "SassNumber(List<Value>)", "bool()", "SassColor0(List<Value0>)", "SassList0(List<Value0>)", "SassList(List<Value>)", "double(SassColor0)", "FileSpan()", "Future<~>()", "String()", "bool(int?)", "~(Object?)", "SassMap(List<Value>)", "Null(~())", "SassMap0(List<Value0>)", "Object?()", "Value()", "Future<Null>(Future<~>())", "int(SassColor0)", "Value(Value)", "Value?()", "Value0(Value0)", "Value0?()", "bool(num,num)", "String?()", "bool(int)", "Value0()", "double(SassColor)", "Uri(Uri)", "SassNumber(SassNumber)", "SassNumber0(SassNumber0)", "bool(ComplexSelectorComponent)", "Null(Object,StackTrace)", "bool(ComplexSelectorComponent0)", "bool(Value0)", "ValueExpression(Value)", "Null(@)", "ComplexSelector0(ComplexSelector0)", "~(Value)", "~(Value0)", "double(double,double)", "ComplexSelector(ComplexSelector)", "int(SassColor)", "@()", "ValueExpression0(Value0)", "Future<Value0?>()", "~(Object,StackTrace)", "bool(SelectorList)", "~(@)", "bool(ColorChannel0)", "Frame()", "bool(SelectorList0)", "Future<Value>()", "Future<Value?>()", "bool(Object)", "bool(Value)", "Future<Value0>()", "Object(Object)", "Future<Value?>(Statement)", "AsyncCallable?()", "Value?(Statement)", "Object()", "~(String)", "Callable0?()", "Null([Object?])", "int(Uri)", "~(Object)", "~(String,Value)", "bool(ColorChannel)", "Value0?(Statement0)", "Frame(String)", "~(Module1<Callable>,bool)", "Null(_NodeSassColor,num)", "double(SassNumber0)", "AsyncCallable0?()", "~(Value0,Value0)", "SassRuntimeException0(AstNode0)", "~([int?])", "~(Module0<Callable0>,bool)", "Future<Value0?>(Statement0)", "~(Value,Value)", "List<CssMediaQuery>?(List<CssMediaQuery>)", "Stylesheet?()", "List<CssMediaQuery0>?(List<CssMediaQuery0>)", "SassRuntimeException(AstNode)", "Future<Value0>(List<Value0>)", "~(String,Value0)", "Callable?()", "@(@)", "~(String,@)", "String(Expression0)", "Map<ComplexSelector,Extension>()", "Null(Module1<AsyncCallable0>,bool)", "SassCalculation0(Object)", "Null(Module0<AsyncCallable>,bool)", "bool(Module0<Callable0>)", "~(~())", "String(Expression)", "String(Object)", "bool(Expression)", "double(SassNumber)", "String(String{color:Object?})", "int(_NodeSassColor)", "Statement()", "~(String,Object?)", "bool(Module1<Callable>)", "Uri(String)", "bool(Module1<AsyncCallable0>)", "String(@)", "Map<ComplexSelector0,Extension0>()", "List<String>()", "bool(Module0<AsyncCallable>)", "bool(_Highlight)", "~(String,Function)", "Statement0()", "bool(Expression0)", "+originalUrl(Importer,Uri,Uri)?()", "Iterable<String>(@)", "String(SassNumber)", "int(String,String)", "~(List<Value>)", "String?(String?)", "String?(Object)", "SassNumber()", "Callable0?(Module0<Callable0>)", "Expression(Expression)", "MapKeySet<Module0<Callable0>>(Map<Module0<Callable0>,AstNode>)", "~(double?[String?])", "Map<String,Callable0>(Module0<Callable0>)", "int(Frame)", "String(Frame)", "bool(Statement)", "Trace()", "bool(Frame)", "~(Iterable<ExtensionStore>)", "Iterable<String>()", "Iterable<String>(String)", "bool(Import)", "DateTime()", "~(String[~])", "AsyncCallable0?(Module1<AsyncCallable0>)", "MapKeySet<Module1<AsyncCallable0>>(Map<Module1<AsyncCallable0>,AstNode0>)", "Map<String,AsyncCallable0>(Module1<AsyncCallable0>)", "List<Extension>()", "AstNode0(AstNode0)", "List<ExtensionStore0>()", "int(int)", "SassFunction0(List<Value0>)", "0&(String,FileSpan[StackTrace?])", "SassMixin0(List<Value0>)", "Future<~>(List<Value0>)", "bool(Queue<List<ComplexSelectorComponent>>)", "~(Uint8List,String,int)", "bool(ModifiableCssParentNode0)", "~(Object[StackTrace?])", "VariableDeclaration()", "AtRootRule(List<Statement>,FileSpan)", "AtRule(List<Statement>,FileSpan)", "bool(@)", "String(String{color:@})", "List<CssComment0>()", "bool(UseRule0)", "bool(ForwardRule0)", "Entry(Entry)", "Set<0^>()<Object?>", "double(double,String)", "AstNode(AstNode)", "SassFunction(List<Value>)", "Future<~>?()", "SassMixin(List<Value>)", "Future<~>(List<Value>)", "~(@,@)", "InterpolationMap0(List<SourceLocation>)", "AstNode0?()", "String(SassNumber0)", "0&(Object[Object?])", "0&(@[@])", "int(ComplexSelector)", "AsyncCallable?(Module0<AsyncCallable>)", "Object(CalculationOperation0)", "List<ExtensionStore>()", "String(double)", "bool(ModifiableCssParentNode)", "double()", "MapKeySet<Module0<AsyncCallable>>(Map<Module0<AsyncCallable>,AstNode>)", "double(Value)", "Map<String,AsyncCallable>(Module0<AsyncCallable>)", "String(Value0)", "double(Value0)", "Future<SassNumber>()", "ImmutableList0(SassColor0)", "~(Object?,Object?)", "List<CssComment>()", "Future<NodeCompileResult>()", "AsyncImporter0(Object?)", "bool(UseRule)", "Set<0&>(Object)", "Version(String)", "~(Iterable<ExtensionStore0>)", "Callable?(Module1<Callable>)", "MapKeySet<Module1<Callable>>(Map<Module1<Callable>,AstNode0>)", "Map<String,Callable>(Module1<Callable>)", "bool(ForwardRule)", "Uri?/()", "~(List<Value0>)", "Future<String>()", "Value0?(Value0)", "bool(String?)", "SassNumber0()", "String(_NodeException)", "SelectorList(Value)", "List<Extension0>()", "SelectorList(SelectorList,SelectorList)", "bool(Queue<List<ComplexSelectorComponent0>>)", "@(String)", "bool(Statement0)", "bool(Import0)", "Uri?()", "@(Value0,num)", "Value0(int)", "Object(_NodeSassMap,int)", "Null(_NodeSassMap,int,Object)", "bool(SassNumber0)", "ImmutableList0(SassNumber0)", "bool(SassNumber0,String)", "SassNumber0(SassNumber0,Object,Object[String?])", "SassNumber0(SassNumber0,SassNumber0[String?,String?])", "double(SassNumber0,Object,Object[String?])", "double(SassNumber0,SassNumber0[String?,String?])", "int(ComplexSelector0)", "Future<Object>()", "Expression0(Expression0)", "SelectorList0(Value0)", "SelectorList0(SelectorList0,SelectorList0)", "FileLocation(FileSpan)", "JSUrl0(Uri)", "String(FileSpan)", "int(SourceLocation)", "~(int)", "Future<Value>(List<Value>)", "AtRootRule0(List<Statement0>,FileSpan)", "AtRule0(List<Statement0>,FileSpan)", "int(@,@)", "~([Object?])", "bool(Object?,Object?)", "int(Object?)", "InterpolationMap(List<SourceLocation>)", "Trace(String)", "AstNode?()", "Future<SassNumber0>()", "~(Module0<AsyncCallable>,bool)", "Value(Expression)", "Map<String,Value>(Module0<AsyncCallable>)", "~(ContentBlock)", "~(List<Statement>)", "Map<String,AstNode>(Module0<AsyncCallable>)", "SassString(SimpleSelector)", "~(CssMediaQuery)", "Set<int>(CssParentNode)", "SassString(int)", "~(SelectorList)", "~(MapEntry<Value,Value>)", "SourceFile()", "SourceFile?(int)", "String?(SourceFile?)", "int(_Line)", "SassString(String)", "Object(_Line)", "Object(_Highlight)", "int(_Highlight,_Highlight)", "List<_Line>(MapEntry<Object,List<_Highlight>>)", "SourceSpanWithContext()", "List<Frame>(Trace)", "int(Trace)", "Null(@,StackTrace)", "String(Trace)", "Null(Function,Function)", "Future<+originalUrl(AsyncImporter,Uri,Uri)?>()", "Frame(String,String)", "bool(+originalUrl(Importer,Uri,Uri))", "Uri(+originalUrl(Importer,Uri,Uri))", "Frame(Frame)", "bool(+forImport(Importer,Uri,bool),+originalUrl(Importer,Uri,Uri)?)", "String(String?)", "Future<Stylesheet?>()", "String(Argument0)", "bool(+originalUrl(AsyncImporter,Uri,Uri))", "SassArgumentList0(Object,Object,Object[String?])", "ImmutableMap0(SassArgumentList0)", "Uri(+originalUrl(AsyncImporter,Uri,Uri))", "~(Symbol0,@)", "Value0/(List<Value0>)", "Value0?(Module1<AsyncCallable0>)", "Module1<AsyncCallable0>?(Module1<AsyncCallable0>)", "bool(String?,String?)", "int(String?)", "Map<String,Value0>(Module1<AsyncCallable0>)", "Map<String,AstNode0>(Module1<AsyncCallable0>)", "Value/(List<Value>)", "Object(String)", "Future<CssValue0<String>>(Interpolation0{trim:bool,warnForColor:bool})", "bool(Deprecation)", "Value?(Module0<Callable0>)", "Module0<Callable0>?(Module0<Callable0>)", "bool(Version)", "bool(ModifiableCssNode)", "Map<String,Value>(Module0<Callable0>)", "~(Object?,List<ParcelWatcherEvent>)", "Null(Object?,List<@>)", "~(Module1<AsyncCallable0>,bool)", "Future<+loadedUrls,stylesheet(Set<Uri>,CssStylesheet0)>()", "Future<Module1<AsyncCallable0>>()", "Map<String,AstNode>(Module0<Callable0>)", "~(Module1<AsyncCallable0>)", "List<ComplexSelector>(ComplexSelector)", "String(Argument)", "AtRootQuery()", "String(BuiltInCallable)", "Future<Value0?>(Value0)", "List<CssMediaQuery>()", "Future<CssValue0<String>>(Interpolation0)", "~(String,int)", "ArgParser()", "Set<Deprecation>()", "SelectorList()", "Future<Value0?>(IfRuleClause0)", "CompoundSelector()", "Statement({root:bool})", "UserDefinedCallable0<AsyncEnvironment0>(ContentBlock0)", "~(+deprecation,message,span(Deprecation?,String,FileSpan))", "Expression({bracketList:bool,singleEquals:bool,until:bool()?})", "NumberExpression()", "Stylesheet()", "Statement?()", "Future<Value0>(Expression0)", "VariableDeclaration(VariableDeclaration)", "Value0/()", "ArgumentDeclaration()", "Future<~>(String)", "UseRule()", "StyleRule(List<Statement>,FileSpan)", "Declaration(List<Statement>,FileSpan)", "List<WatchEvent>(List<WatchEvent>)", "Future<+originalUrl(AsyncImporter0,Uri,Uri)?>()", "Future<Stylesheet0?>()", "bool(+originalUrl(AsyncImporter0,Uri,Uri))", "Uri(+originalUrl(AsyncImporter0,Uri,Uri))", "AtRootQuery0()", "EachRule(List<Statement>,FileSpan)", "FunctionRule(List<Statement>,FileSpan)", "ForRule(List<Statement>,FileSpan)", "ContentBlock(List<Statement>,FileSpan)", "SassCalculation0(Object[Object?,Object?])", "SassCalculation0(SassCalculation0[String?])", "ImmutableList(SassCalculation0)", "Object(Object,String,Object,Object)", "bool(CalculationOperator0)", "bool(CalculationOperation0,Object)", "int(CalculationOperation0)", "String(CalculationOperation0)", "MediaRule(List<Statement>,FileSpan)", "CalculationInterpolation(Object,String)", "bool(CalculationInterpolation,Object)", "int(CalculationInterpolation)", "String(CalculationInterpolation)", "bool(CanonicalizeContext0)", "JSUrl0?(CanonicalizeContext0)", "MixinRule(List<Statement>,FileSpan)", "~(String,int?)", "SupportsRule(List<Statement>,FileSpan)", "WhileRule(List<Statement>,FileSpan)", "~(Expression)", "~(BinaryOperator)", "StringExpression(Interpolation)", "SassColor0(SassColor0)", "SassColor0(ColorSpace0)", "DateTime(StylesheetNode)", "0&(List<Value0>)", "bool(Extension)", "Set<ModifiableBox<SelectorList>>()", "SassColor0(Object,_ConstructionOptions)", "bool(SassColor0,Object)", "SassColor0(SassColor0,String)", "bool(SassColor0[String?])", "SassColor0(SassColor0,_ToGamutOptions)", "double(SassColor0,String[_ChannelOptions?])", "bool(SassColor0,String)", "bool(SassColor0,String[_ChannelOptions?])", "SassColor0(SassColor0,_ConstructionOptions)", "double?(String)", "SassColor0(SassColor0,SassColor0[_InterpolationOptions?])", "String(SassColor0)", "bool(SassColor0)", "String(int,IfClause)", "Null(_NodeSassColor,num?[num?,num?,num?,SassColor0?])", "double(num)", "SassScriptException()", "double(_NodeSassColor)", "int(int,int)", "Iterable<ComplexSelector>(List<ComplexSelector>)", "SingleUnitSassNumber(double)", "AsyncImporter0(JSImporter)", "0&(@)", "Future<CssValue<String>>(Interpolation{trim:bool,warnForColor:bool})", "NodePackageImporter0(Object[String?])", "List<SimpleSelector>(Extender)", "NodeCompileResult(Compiler,String[CompileOptions?])", "NodeCompileResult(Compiler,String[CompileStringOptions?])", "Null(Compiler)", "Promise(AsyncCompiler,String[CompileOptions?])", "Promise(AsyncCompiler,String[CompileStringOptions?])", "Promise(AsyncCompiler)", "Future<AsyncCompiler>()", "int(int,ComplexSelectorComponent0)", "String(CssValue0<Combinator0>)", "int(int,SimpleSelector0)", "String(BuiltInCallable0)", "bool(Deprecation0)", "Iterable<Deprecation0>()", "Version(Object,int,int,int)", "List<Extender>?(SimpleSelector)", "List<Extender>(PseudoSelector)", "Value0?(Module1<Callable>)", "Module1<Callable>?(Module1<Callable>)", "List<List<Extender>>(List<Extender>)", "Future<@>()", "Object(Value0)", "Map<String,AstNode0>(Module1<Callable>)", "PseudoSelector(ComplexSelector)", "~(SimpleSelector,Set<ModifiableBox<SelectorList>>)", "CssValue0<String>(Interpolation0{trim:bool,warnForColor:bool})", "Future<+loadedUrls,stylesheet(Set<Uri>,CssStylesheet)>()", "Future<Module0<AsyncCallable>>()", "List<ComplexSelectorComponent>?(List<ComplexSelectorComponent>,List<ComplexSelectorComponent>)", "+loadedUrls,stylesheet(Set<Uri>,CssStylesheet0)()", "Module1<Callable>()", "~(Module1<Callable>)", "~(Module0<AsyncCallable>)", "Uint8List(@,@)", "CssValue0<String>(Interpolation0)", "bool(List<Iterable<ComplexSelectorComponent>>)", "Value0?(IfRuleClause0)", "UserDefinedCallable0<Environment0>(ContentBlock0)", "Value0(Expression0)", "bool(PseudoSelector)", "FileSpan(_NodeException)", "bool(Extension0)", "Set<ModifiableBox0<SelectorList0>>()", "SelectorList?(PseudoSelector)", "~([Future<~>?])", "Iterable<ComplexSelector0>(List<ComplexSelector0>)", "Future<Value?>(Value)", "List<SimpleSelector0>(Extender0)", "List<Extender0>?(SimpleSelector0)", "List<Extender0>(PseudoSelector0)", "List<List<Extender0>>(List<Extender0>)", "List<ComplexSelector0>(ComplexSelector0)", "PseudoSelector0(ComplexSelector0)", "~(SimpleSelector0,Set<ModifiableBox0<SelectorList0>>)", "SassFunction0(Object,String,Value0(List<Value0>))", "List<ComplexSelectorComponent0>?(List<ComplexSelectorComponent0>,List<ComplexSelectorComponent0>)", "int(int,ComplexSelectorComponent)", "bool(List<Iterable<ComplexSelectorComponent0>>)", "Future<CssValue<String>>(Interpolation)", "bool(PseudoSelector0)", "SelectorList0?(PseudoSelector0)", "String(int,IfClause0)", "String(CssValue<Combinator>)", "int(int,SimpleSelector)", "~(Object?,Object,Object?)", "+(String,String)(String)", "+originalUrl(Importer0,Uri,Uri)?()", "Stylesheet0?()", "bool(+originalUrl(Importer0,Uri,Uri))", "Uri(+originalUrl(Importer0,Uri,Uri))", "~(String,WarnOptions)", "~(String,DebugOptions)", "Null(RenderResult)", "JSFunction0(JSFunction0)", "Object?(Object,String,String[Object?])", "Null(Object)", "Object?(Object?)", "List<Value0>(Value0)", "bool(List<Value0>)", "SassList0(ComplexSelector0)", "Iterable<ComplexSelector0>(ComplexSelector0)", "SimpleSelector0(SimpleSelector0)", "SassList0(Object[Object?,_ConstructorOptions?])", "~(@,StackTrace)", "Null(_NodeSassList,int?[bool?,SassList0?])", "Future<Value?>(IfRuleClause)", "Object(_NodeSassList,int)", "Null(_NodeSassList,int,Object)", "bool(_NodeSassList)", "Null(_NodeSassList,bool)", "int(_NodeSassList)", "SassMap0(Value0)", "SassMap0(SassMap0)", "SassMap0(Object[ImmutableMap0?])", "ImmutableMap0(SassMap0)", "@(SassMap0,Object)", "Null(_NodeSassMap,int?[SassMap0?])", "SassNumber0(int)", "SassList(ComplexSelector)", "int(_NodeSassMap)", "Iterable<ComplexSelector>(ComplexSelector)", "SassNumber0(Value0)", "List<CssMediaQuery0>()", "Value0(Object)", "0&(Object)", "bool(ModifiableCssNode0)", "SassNumber0(Object,num[Object?])", "UserDefinedCallable<AsyncEnvironment>(ContentBlock)", "int?(SassNumber0)", "SassColor(SassColor)", "int(SassNumber0[String?])", "double(SassNumber0,num,num[String?])", "SassNumber0(SassNumber0[String?])", "SassNumber0(SassNumber0,String[String?])", "~(String,Option)", "SassColor(ColorSpace)", "SimpleSelector(SimpleSelector)", "~(int,@)", "Future<Value>(Expression)", "Null(_NodeSassNumber,num?[String?,SassNumber0?])", "double(_NodeSassNumber)", "Null(_NodeSassNumber,num)", "String(_NodeSassNumber)", "Null(_NodeSassNumber,String)", "SassScriptException0()", "JSExpressionVisitor(JSExpressionVisitorObject)", "JSStatementVisitor(JSStatementVisitorObject)", "String(SourceFile,int[int?])", "List<int>(SourceFile)", "String?(Interpolation0)", "Object?(Statement0,StatementVisitor<Object?>)", "Object?(Expression0,ExpressionVisitor<Object?>)", "FileSpan(SassNode)", "Interpolation0(SupportsCondition)", "String(Value)", "String(Object,@,@[@])", "0&(List<Value>)", "_Future<@>(@)", "Value/()", "Value?(Module0<AsyncCallable>)", "SassString0(SimpleSelector0)", "SelectorList0()", "CompoundSelector0()", "~(CssMediaQuery0)", "Set<int>(CssParentNode0)", "~(SelectorList0)", "~(MapEntry<Value0,Value0>)", "SingleUnitSassNumber0(double)", "Module0<AsyncCallable>?(Module0<AsyncCallable>)", "JSUrl0?(FileSpan)", "List<Value>(Value)", "bool(List<Value>)", "Null(@,@)", "SassString0(int)", "SassString0(String)", "CssValue<String>(Interpolation{trim:bool,warnForColor:bool})", "SassString0(Object[Object?,_ConstructorOptions1?])", "String(SassString0)", "bool(SassString0)", "int(SassString0)", "int(SassString0,Value0[String?])", "Null(_NodeSassString,String?[SassString0?])", "String(_NodeSassString)", "Null(_NodeSassString,String)", "Statement0({root:bool})", "@(@,String)", "NumberExpression0()", "Stylesheet0()", "Statement0?()", "VariableDeclaration0(VariableDeclaration0)", "ArgumentDeclaration0()", "+(String,ArgumentDeclaration0)()", "VariableDeclaration0()", "StyleRule0(List<Statement0>,FileSpan)", "Declaration0(List<Statement0>,FileSpan)", "SassMap(Value)", "EachRule0(List<Statement0>,FileSpan)", "FunctionRule0(List<Statement0>,FileSpan)", "ForRule0(List<Statement0>,FileSpan)", "ContentBlock0(List<Statement0>,FileSpan)", "MediaRule0(List<Statement0>,FileSpan)", "MixinRule0(List<Statement0>,FileSpan)", "SassMap(SassMap)", "SupportsRule0(List<Statement0>,FileSpan)", "WhileRule0(List<Statement0>,FileSpan)", "~(Expression0)", "~(BinaryOperator0)", "StringExpression0(Interpolation0)", "Null(~(Object?),~(Object?))", "ImmutableList0(Value0)", "String?(Value0)", "int(Value0,Value0[String?])", "SassBoolean0(Value0[String?])", "SassCalculation0(Value0[String?])", "SassColor0(Value0[String?])", "SassFunction0(Value0[String?])", "SassMap0(Value0[String?])", "SassMixin0(Value0[String?])", "SassNumber0(Value0[String?])", "SassString0(Value0[String?])", "SassMap0?(Value0)", "bool(Value0,Object?)", "int(Value0[Object?])", "+loadedUrls,stylesheet(Set<Uri>,CssStylesheet)()", "Module0<Callable0>()", "~(Zone?,ZoneDelegate?,Zone,Object,StackTrace)", "0^(Zone?,ZoneDelegate?,Zone,0^())<Object?>", "0^(Zone?,ZoneDelegate?,Zone,0^(1^),1^)<Object?,Object?>", "0^(Zone?,ZoneDelegate?,Zone,0^(1^,2^),1^,2^)<Object?,Object?,Object?>", "0^()(Zone,ZoneDelegate,Zone,0^())<Object?>", "0^(1^)(Zone,ZoneDelegate,Zone,0^(1^))<Object?,Object?>", "0^(1^,2^)(Zone,ZoneDelegate,Zone,0^(1^,2^))<Object?,Object?,Object?>", "AsyncError?(Zone,ZoneDelegate,Zone,Object,StackTrace?)", "~(Zone?,ZoneDelegate?,Zone,~())", "Timer(Zone,ZoneDelegate,Zone,Duration,~())", "Timer(Zone,ZoneDelegate,Zone,Duration,~(Timer))", "~(Zone,ZoneDelegate,Zone,String)", "Zone(Zone?,ZoneDelegate?,Zone,ZoneSpecification?,Map<Object?,Object?>?)", "~(Module0<Callable0>)", "Value?(Value)", "0^(0^,0^)<num>", "SassNumber(Value)", "CssValue<String>(Interpolation)", "~(Object,StackTrace,EventSink<0^>)<Object?>", "List<0^>(0^,List<0^>?)<Object?>", "NodeCompileResult(String[CompileOptions?])", "NodeCompileResult(String[CompileStringOptions?])", "Promise(String[CompileOptions?])", "Promise(String[CompileStringOptions?])", "Importer0(Object?)", "Compiler()", "Promise()", "List<Object?>(Object?)", "~(RenderOptions,~(Object?,RenderResult?))", "RenderResult(RenderOptions)", "ParserExports()", "Stylesheet0(String,String,String?)", "String?(String)", "Uri(JSUrl0)", "String(String[String?,String?,String?,String?,String?,String?,String?,String?,String?,String?,String?,String?,String?,String?])", "String(Object?)", "Value(Object)", "Value?(IfRuleClause)", "UserDefinedCallable<Environment>(ContentBlock)", "Future<~>(List<String>)", "Map<String,Value0>(Module1<Callable>)"],
  124497. interceptorsByTag: null,
  124498. leafTags: null,
  124499. arrayRti: Symbol("$ti"),
  124500. rttc: {
  124501. "1;": t1 => o => o instanceof A._Record_1 && t1._is(o._0),
  124502. "2;": (t1, t2) => o => o instanceof A._Record_2 && t1._is(o._0) && t2._is(o._1),
  124503. "2;forImport": (t1, t2) => o => o instanceof A._Record_2_forImport && t1._is(o._0) && t2._is(o._1),
  124504. "2;sourceMap": (t1, t2) => o => o instanceof A._Record_2_sourceMap && t1._is(o._0) && t2._is(o._1),
  124505. "2;imports,modules": (t1, t2) => o => o instanceof A._Record_2_imports_modules && t1._is(o._0) && t2._is(o._1),
  124506. "2;loadedUrls,stylesheet": (t1, t2) => o => o instanceof A._Record_2_loadedUrls_stylesheet && t1._is(o._0) && t2._is(o._1),
  124507. "3;": (t1, t2, t3) => o => o instanceof A._Record_3 && t1._is(o._0) && t2._is(o._1) && t3._is(o._2),
  124508. "3;forImport": (t1, t2, t3) => o => o instanceof A._Record_3_forImport && t1._is(o._0) && t2._is(o._1) && t3._is(o._2),
  124509. "3;originalUrl": (t1, t2, t3) => o => o instanceof A._Record_3_originalUrl && t1._is(o._0) && t2._is(o._1) && t3._is(o._2),
  124510. "3;importer,isDependency": (t1, t2, t3) => o => o instanceof A._Record_3_importer_isDependency && t1._is(o._0) && t2._is(o._1) && t3._is(o._2),
  124511. "3;deprecation,message,span": (t1, t2, t3) => o => o instanceof A._Record_3_deprecation_message_span && t1._is(o._0) && t2._is(o._1) && t3._is(o._2),
  124512. "5;named,namedNodes,positional,positionalNodes,separator": types => o => o instanceof A._Record_5_named_namedNodes_positional_positionalNodes_separator && A.pairwiseIsTest(types, o._values)
  124513. }
  124514. };
  124515. A._Universe_addRules(init.typeUniverse, JSON.parse('{"PlainJavaScriptObject":"LegacyJavaScriptObject","UnknownJavaScriptObject":"LegacyJavaScriptObject","JavaScriptFunction":"LegacyJavaScriptObject","Stdin":"LegacyJavaScriptObject","Stdout":"LegacyJavaScriptObject","ReadlineModule":"LegacyJavaScriptObject","ReadlineOptions":"LegacyJavaScriptObject","ReadlineInterface":"LegacyJavaScriptObject","BufferModule":"LegacyJavaScriptObject","BufferConstants":"LegacyJavaScriptObject","Buffer":"LegacyJavaScriptObject","ConsoleModule":"LegacyJavaScriptObject","Console":"LegacyJavaScriptObject","EventEmitter":"LegacyJavaScriptObject","FS":"LegacyJavaScriptObject","FSConstants":"LegacyJavaScriptObject","FSWatcher":"LegacyJavaScriptObject","ReadStream":"LegacyJavaScriptObject","ReadStreamOptions":"LegacyJavaScriptObject","WriteStream":"LegacyJavaScriptObject","WriteStreamOptions":"LegacyJavaScriptObject","FileOptions":"LegacyJavaScriptObject","StatOptions":"LegacyJavaScriptObject","MkdirOptions":"LegacyJavaScriptObject","RmdirOptions":"LegacyJavaScriptObject","WatchOptions":"LegacyJavaScriptObject","WatchFileOptions":"LegacyJavaScriptObject","Stats":"LegacyJavaScriptObject","Promise":"LegacyJavaScriptObject","Date":"LegacyJavaScriptObject","JsError":"LegacyJavaScriptObject","Atomics":"LegacyJavaScriptObject","Modules":"LegacyJavaScriptObject","Module":"LegacyJavaScriptObject","Net":"LegacyJavaScriptObject","Socket":"LegacyJavaScriptObject","NetAddress":"LegacyJavaScriptObject","NetServer":"LegacyJavaScriptObject","NodeJsError":"LegacyJavaScriptObject","JsAssertionError":"LegacyJavaScriptObject","JsRangeError":"LegacyJavaScriptObject","JsReferenceError":"LegacyJavaScriptObject","JsSyntaxError":"LegacyJavaScriptObject","JsTypeError":"LegacyJavaScriptObject","JsSystemError":"LegacyJavaScriptObject","Process":"LegacyJavaScriptObject","CPUUsage":"LegacyJavaScriptObject","Release":"LegacyJavaScriptObject","StreamModule":"LegacyJavaScriptObject","Readable":"LegacyJavaScriptObject","Writable":"LegacyJavaScriptObject","Duplex":"LegacyJavaScriptObject","Transform":"LegacyJavaScriptObject","WritableOptions":"LegacyJavaScriptObject","ReadableOptions":"LegacyJavaScriptObject","Immediate":"LegacyJavaScriptObject","Timeout":"LegacyJavaScriptObject","TTY":"LegacyJavaScriptObject","TTYReadStream":"LegacyJavaScriptObject","TTYWriteStream":"LegacyJavaScriptObject","Util":"LegacyJavaScriptObject","JSArray0":"LegacyJavaScriptObject","Chokidar":"LegacyJavaScriptObject","ChokidarOptions":"LegacyJavaScriptObject","ChokidarWatcher":"LegacyJavaScriptObject","JSFunction":"LegacyJavaScriptObject","ImmutableList":"LegacyJavaScriptObject","ImmutableMap":"LegacyJavaScriptObject","NodeImporterResult":"LegacyJavaScriptObject","RenderContext":"LegacyJavaScriptObject","RenderContextOptions":"LegacyJavaScriptObject","RenderContextResult":"LegacyJavaScriptObject","RenderContextResultStats":"LegacyJavaScriptObject","JSModule":"LegacyJavaScriptObject","JSModuleRequire":"LegacyJavaScriptObject","ParcelWatcherSubscription":"LegacyJavaScriptObject","ParcelWatcherEvent":"LegacyJavaScriptObject","ParcelWatcher":"LegacyJavaScriptObject","JSClass":"LegacyJavaScriptObject","JSUrl":"LegacyJavaScriptObject","_PropertyDescriptor":"LegacyJavaScriptObject","_RequireMain":"LegacyJavaScriptObject","JSArray1":"LegacyJavaScriptObject","Chokidar0":"LegacyJavaScriptObject","ChokidarOptions0":"LegacyJavaScriptObject","ChokidarWatcher0":"LegacyJavaScriptObject","_ConstructionOptions":"LegacyJavaScriptObject","_ChannelOptions":"LegacyJavaScriptObject","_ToGamutOptions":"LegacyJavaScriptObject","_InterpolationOptions":"LegacyJavaScriptObject","_Channels":"LegacyJavaScriptObject","_NodeSassColor":"LegacyJavaScriptObject","CompileOptions":"LegacyJavaScriptObject","CompileStringOptions":"LegacyJavaScriptObject","NodeCompileResult":"LegacyJavaScriptObject","Deprecation1":"LegacyJavaScriptObject","_NodeException":"LegacyJavaScriptObject","Exports":"LegacyJavaScriptObject","LoggerNamespace":"LegacyJavaScriptObject","JSExpressionVisitorObject":"LegacyJavaScriptObject","Fiber":"LegacyJavaScriptObject","FiberClass":"LegacyJavaScriptObject","JSFunction0":"LegacyJavaScriptObject","ImmutableList0":"LegacyJavaScriptObject","ImmutableMap0":"LegacyJavaScriptObject","JSImporter":"LegacyJavaScriptObject","JSImporterResult":"LegacyJavaScriptObject","NodeImporterResult0":"LegacyJavaScriptObject","_ConstructorOptions":"LegacyJavaScriptObject","_NodeSassList":"LegacyJavaScriptObject","WarnOptions":"LegacyJavaScriptObject","DebugOptions":"LegacyJavaScriptObject","JSLogger":"LegacyJavaScriptObject","_NodeSassMap":"LegacyJavaScriptObject","JSModule0":"LegacyJavaScriptObject","JSModuleRequire0":"LegacyJavaScriptObject","_ConstructorOptions0":"LegacyJavaScriptObject","_NodeSassNumber":"LegacyJavaScriptObject","ParcelWatcherSubscription0":"LegacyJavaScriptObject","ParcelWatcherEvent0":"LegacyJavaScriptObject","ParcelWatcher0":"LegacyJavaScriptObject","ParserExports":"LegacyJavaScriptObject","JSClass0":"LegacyJavaScriptObject","RenderContext0":"LegacyJavaScriptObject","RenderContextOptions0":"LegacyJavaScriptObject","RenderContextResult0":"LegacyJavaScriptObject","RenderContextResultStats0":"LegacyJavaScriptObject","RenderOptions":"LegacyJavaScriptObject","RenderResult":"LegacyJavaScriptObject","RenderResultStats":"LegacyJavaScriptObject","_Exports":"LegacyJavaScriptObject","JSStatementVisitorObject":"LegacyJavaScriptObject","_ConstructorOptions1":"LegacyJavaScriptObject","_NodeSassString":"LegacyJavaScriptObject","Types":"LegacyJavaScriptObject","JSUrl0":"LegacyJavaScriptObject","_PropertyDescriptor0":"LegacyJavaScriptObject","_RequireMain0":"LegacyJavaScriptObject","JSBool":{"bool":[],"TrustedGetRuntimeType":[]},"JSNull":{"Null":[],"TrustedGetRuntimeType":[]},"LegacyJavaScriptObject":{"Promise":[],"JsSystemError":[],"ImmutableList":[],"ParcelWatcherSubscription":[],"ParcelWatcherEvent":[],"_ConstructionOptions":[],"_ChannelOptions":[],"_ToGamutOptions":[],"_InterpolationOptions":[],"_NodeSassColor":[],"CompileOptions":[],"CompileStringOptions":[],"NodeCompileResult":[],"Deprecation1":[],"_NodeException":[],"JSExpressionVisitorObject":[],"Fiber":[],"JSFunction0":[],"ImmutableList0":[],"ImmutableMap0":[],"JSImporter":[],"JSImporterResult":[],"NodeImporterResult0":[],"_ConstructorOptions":[],"_NodeSassList":[],"WarnOptions":[],"DebugOptions":[],"_NodeSassMap":[],"_ConstructorOptions0":[],"_NodeSassNumber":[],"ParserExports":[],"JSClass0":[],"RenderContextOptions0":[],"RenderOptions":[],"RenderResult":[],"JSStatementVisitorObject":[],"_ConstructorOptions1":[],"_NodeSassString":[],"JSUrl0":[]},"JSArray":{"List":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"JSUnmodifiableArray":{"JSArray":["1"],"List":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"JSNumber":{"double":[],"num":[],"Comparable":["num"]},"JSInt":{"double":[],"int":[],"num":[],"Comparable":["num"],"TrustedGetRuntimeType":[]},"JSNumNotInt":{"double":[],"num":[],"Comparable":["num"],"TrustedGetRuntimeType":[]},"JSString":{"String":[],"Comparable":["String"],"TrustedGetRuntimeType":[]},"_CastIterableBase":{"Iterable":["2"]},"CastIterable":{"_CastIterableBase":["1","2"],"Iterable":["2"],"Iterable.E":"2"},"_EfficientLengthCastIterable":{"CastIterable":["1","2"],"_CastIterableBase":["1","2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"Iterable.E":"2"},"_CastListBase":{"ListBase":["2"],"List":["2"],"_CastIterableBase":["1","2"],"EfficientLengthIterable":["2"],"Iterable":["2"]},"CastList":{"_CastListBase":["1","2"],"ListBase":["2"],"List":["2"],"_CastIterableBase":["1","2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"ListBase.E":"2","Iterable.E":"2"},"CastSet":{"Set":["2"],"_CastIterableBase":["1","2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"Iterable.E":"2"},"CastMap":{"MapBase":["3","4"],"Map":["3","4"],"MapBase.V":"4","MapBase.K":"3"},"LateError":{"Error":[]},"ReachabilityError":{"Error":[]},"CodeUnits":{"ListBase":["int"],"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"ListBase.E":"int"},"EfficientLengthIterable":{"Iterable":["1"]},"ListIterable":{"EfficientLengthIterable":["1"],"Iterable":["1"]},"SubListIterable":{"ListIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListIterable.E":"1","Iterable.E":"1"},"MappedIterable":{"Iterable":["2"],"Iterable.E":"2"},"EfficientLengthMappedIterable":{"MappedIterable":["1","2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"Iterable.E":"2"},"MappedListIterable":{"ListIterable":["2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"ListIterable.E":"2","Iterable.E":"2"},"WhereIterable":{"Iterable":["1"],"Iterable.E":"1"},"ExpandIterable":{"Iterable":["2"],"Iterable.E":"2"},"TakeIterable":{"Iterable":["1"],"Iterable.E":"1"},"EfficientLengthTakeIterable":{"TakeIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"SkipIterable":{"Iterable":["1"],"Iterable.E":"1"},"EfficientLengthSkipIterable":{"SkipIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"SkipWhileIterable":{"Iterable":["1"],"Iterable.E":"1"},"EmptyIterable":{"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"FollowedByIterable":{"Iterable":["1"],"Iterable.E":"1"},"EfficientLengthFollowedByIterable":{"FollowedByIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"WhereTypeIterable":{"Iterable":["1"],"Iterable.E":"1"},"NonNullsIterable":{"Iterable":["1"],"Iterable.E":"1"},"UnmodifiableListBase":{"ListBase":["1"],"List":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"ReversedListIterable":{"ListIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListIterable.E":"1","Iterable.E":"1"},"Symbol":{"Symbol0":[]},"ConstantMapView":{"UnmodifiableMapView":["1","2"],"Map":["1","2"]},"ConstantMap":{"Map":["1","2"]},"ConstantStringMap":{"ConstantMap":["1","2"],"Map":["1","2"]},"_KeysOrValues":{"Iterable":["1"],"Iterable.E":"1"},"ConstantSet":{"SetBase":["1"],"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"ConstantStringSet":{"SetBase":["1"],"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"GeneralConstantSet":{"SetBase":["1"],"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"Instantiation":{"Function":[]},"Instantiation1":{"Function":[]},"NullError":{"TypeError":[],"Error":[]},"JsNoSuchMethodError":{"Error":[]},"UnknownJsTypeError":{"Error":[]},"NullThrownFromJavaScriptException":{"Exception":[]},"_StackTrace":{"StackTrace":[]},"Closure":{"Function":[]},"Closure0Args":{"Function":[]},"Closure2Args":{"Function":[]},"TearOffClosure":{"Function":[]},"StaticClosure":{"Function":[]},"BoundClosure":{"Function":[]},"_CyclicInitializationError":{"Error":[]},"RuntimeError":{"Error":[]},"JsLinkedHashMap":{"MapBase":["1","2"],"Map":["1","2"],"MapBase.V":"2","MapBase.K":"1"},"LinkedHashMapKeyIterable":{"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"JsIdentityLinkedHashMap":{"JsLinkedHashMap":["1","2"],"MapBase":["1","2"],"Map":["1","2"],"MapBase.V":"2","MapBase.K":"1"},"JsConstantLinkedHashMap":{"JsLinkedHashMap":["1","2"],"MapBase":["1","2"],"Map":["1","2"],"MapBase.V":"2","MapBase.K":"1"},"_MatchImplementation":{"RegExpMatch":[],"Match":[]},"_AllMatchesIterable":{"Iterable":["RegExpMatch"],"Iterable.E":"RegExpMatch"},"StringMatch":{"Match":[]},"_StringAllMatchesIterable":{"Iterable":["Match"],"Iterable.E":"Match"},"NativeByteBuffer":{"ByteBuffer":[],"TrustedGetRuntimeType":[]},"NativeByteData":{"ByteData":[],"TrustedGetRuntimeType":[]},"NativeTypedArray":{"JavaScriptIndexingBehavior":["1"]},"NativeTypedArrayOfDouble":{"ListBase":["double"],"List":["double"],"JavaScriptIndexingBehavior":["double"],"EfficientLengthIterable":["double"],"Iterable":["double"]},"NativeTypedArrayOfInt":{"ListBase":["int"],"List":["int"],"JavaScriptIndexingBehavior":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"NativeFloat32List":{"NativeTypedArrayOfDouble":[],"Float32List":[],"ListBase":["double"],"List":["double"],"JavaScriptIndexingBehavior":["double"],"EfficientLengthIterable":["double"],"Iterable":["double"],"TrustedGetRuntimeType":[],"ListBase.E":"double"},"NativeFloat64List":{"NativeTypedArrayOfDouble":[],"Float64List":[],"ListBase":["double"],"List":["double"],"JavaScriptIndexingBehavior":["double"],"EfficientLengthIterable":["double"],"Iterable":["double"],"TrustedGetRuntimeType":[],"ListBase.E":"double"},"NativeInt16List":{"NativeTypedArrayOfInt":[],"Int16List":[],"ListBase":["int"],"List":["int"],"JavaScriptIndexingBehavior":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"TrustedGetRuntimeType":[],"ListBase.E":"int"},"NativeInt32List":{"NativeTypedArrayOfInt":[],"Int32List":[],"ListBase":["int"],"List":["int"],"JavaScriptIndexingBehavior":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"TrustedGetRuntimeType":[],"ListBase.E":"int"},"NativeInt8List":{"NativeTypedArrayOfInt":[],"Int8List":[],"ListBase":["int"],"List":["int"],"JavaScriptIndexingBehavior":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"TrustedGetRuntimeType":[],"ListBase.E":"int"},"NativeUint16List":{"NativeTypedArrayOfInt":[],"Uint16List":[],"ListBase":["int"],"List":["int"],"JavaScriptIndexingBehavior":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"TrustedGetRuntimeType":[],"ListBase.E":"int"},"NativeUint32List":{"NativeTypedArrayOfInt":[],"Uint32List":[],"ListBase":["int"],"List":["int"],"JavaScriptIndexingBehavior":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"TrustedGetRuntimeType":[],"ListBase.E":"int"},"NativeUint8ClampedList":{"NativeTypedArrayOfInt":[],"Uint8ClampedList":[],"ListBase":["int"],"List":["int"],"JavaScriptIndexingBehavior":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"TrustedGetRuntimeType":[],"ListBase.E":"int"},"NativeUint8List":{"NativeTypedArrayOfInt":[],"Uint8List":[],"ListBase":["int"],"List":["int"],"JavaScriptIndexingBehavior":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"],"TrustedGetRuntimeType":[],"ListBase.E":"int"},"_Error":{"Error":[]},"_TypeError":{"TypeError":[],"Error":[]},"AsyncError":{"Error":[]},"_Future":{"Future":["1"]},"_SyncStarIterable":{"Iterable":["1"],"Iterable.E":"1"},"_AsyncCompleter":{"_Completer":["1"]},"_SyncCompleter":{"_Completer":["1"]},"_StreamController":{"EventSink":["1"]},"_AsyncStreamController":{"_StreamController":["1"],"EventSink":["1"]},"_SyncStreamController":{"_StreamController":["1"],"EventSink":["1"]},"_ControllerStream":{"_StreamImpl":["1"],"Stream":["1"],"Stream.T":"1"},"_ControllerSubscription":{"_BufferingStreamSubscription":["1"],"StreamSubscription":["1"],"_BufferingStreamSubscription.T":"1"},"_BufferingStreamSubscription":{"StreamSubscription":["1"],"_BufferingStreamSubscription.T":"1"},"_StreamImpl":{"Stream":["1"]},"_ForwardingStream":{"Stream":["2"]},"_ForwardingStreamSubscription":{"_BufferingStreamSubscription":["2"],"StreamSubscription":["2"],"_BufferingStreamSubscription.T":"2"},"_ExpandStream":{"_ForwardingStream":["1","2"],"Stream":["2"],"Stream.T":"2"},"_ZoneSpecification":{"ZoneSpecification":[]},"_ZoneDelegate":{"ZoneDelegate":[]},"_Zone":{"Zone":[]},"_CustomZone":{"Zone":[]},"_RootZone":{"Zone":[]},"Queue":{"EfficientLengthIterable":["1"],"Iterable":["1"]},"_HashMap":{"MapBase":["1","2"],"Map":["1","2"],"MapBase.V":"2","MapBase.K":"1"},"_IdentityHashMap":{"_HashMap":["1","2"],"MapBase":["1","2"],"Map":["1","2"],"MapBase.V":"2","MapBase.K":"1"},"_HashMapKeyIterable":{"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"_LinkedCustomHashMap":{"JsLinkedHashMap":["1","2"],"MapBase":["1","2"],"Map":["1","2"],"MapBase.V":"2","MapBase.K":"1"},"_LinkedHashSet":{"_SetBase":["1"],"SetBase":["1"],"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"_LinkedIdentityHashSet":{"_LinkedHashSet":["1"],"_SetBase":["1"],"SetBase":["1"],"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"UnmodifiableListView":{"ListBase":["1"],"List":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListBase.E":"1"},"ListBase":{"List":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"MapBase":{"Map":["1","2"]},"UnmodifiableMapBase":{"MapBase":["1","2"],"Map":["1","2"]},"_MapBaseValueIterable":{"EfficientLengthIterable":["2"],"Iterable":["2"],"Iterable.E":"2"},"MapView":{"Map":["1","2"]},"UnmodifiableMapView":{"Map":["1","2"]},"ListQueue":{"Queue":["1"],"ListIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListIterable.E":"1","Iterable.E":"1"},"SetBase":{"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"_SetBase":{"SetBase":["1"],"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"UnmodifiableSetView":{"SetBase":["1"],"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"_JsonMap":{"MapBase":["String","@"],"Map":["String","@"],"MapBase.V":"@","MapBase.K":"String"},"_JsonMapKeyIterable":{"ListIterable":["String"],"EfficientLengthIterable":["String"],"Iterable":["String"],"ListIterable.E":"String","Iterable.E":"String"},"AsciiCodec":{"Codec":["String","List<int>"]},"_UnicodeSubsetEncoder":{"Converter":["String","List<int>"]},"AsciiEncoder":{"Converter":["String","List<int>"]},"Base64Codec":{"Codec":["List<int>","String"]},"Base64Encoder":{"Converter":["List<int>","String"]},"Encoding":{"Codec":["String","List<int>"]},"JsonUnsupportedObjectError":{"Error":[]},"JsonCyclicError":{"Error":[]},"JsonCodec":{"Codec":["Object?","String"]},"JsonEncoder":{"Converter":["Object?","String"]},"JsonDecoder":{"Converter":["String","Object?"]},"Utf8Codec":{"Codec":["String","List<int>"]},"Utf8Encoder":{"Converter":["String","List<int>"]},"Utf8Decoder":{"Converter":["List<int>","String"]},"DateTime":{"Comparable":["DateTime"]},"double":{"num":[],"Comparable":["num"]},"Duration":{"Comparable":["Duration"]},"int":{"num":[],"Comparable":["num"]},"List":{"EfficientLengthIterable":["1"],"Iterable":["1"]},"num":{"Comparable":["num"]},"RegExpMatch":{"Match":[]},"Set":{"EfficientLengthIterable":["1"],"Iterable":["1"]},"String":{"Comparable":["String"]},"AssertionError":{"Error":[]},"TypeError":{"Error":[]},"ArgumentError":{"Error":[]},"RangeError":{"Error":[]},"IndexError":{"RangeError":[],"Error":[]},"NoSuchMethodError":{"Error":[]},"UnsupportedError":{"Error":[]},"UnimplementedError":{"Error":[]},"StateError":{"Error":[]},"ConcurrentModificationError":{"Error":[]},"OutOfMemoryError":{"Error":[]},"StackOverflowError":{"Error":[]},"_Exception":{"Exception":[]},"FormatException":{"Exception":[]},"_GeneratorIterable":{"ListIterable":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListIterable.E":"1","Iterable.E":"1"},"_StringStackTrace":{"StackTrace":[]},"Runes":{"Iterable":["int"],"Iterable.E":"int"},"_Uri":{"_PlatformUri":[],"Uri":[]},"_SimpleUri":{"_PlatformUri":[],"Uri":[]},"_DataUri":{"_PlatformUri":[],"Uri":[]},"NullRejectionException":{"Exception":[]},"ArgParserException":{"FormatException":[],"Exception":[]},"ErrorResult":{"Result":["0&"]},"ValueResult":{"Result":["1"]},"_CompleterStream":{"Stream":["1"],"Stream.T":"1"},"_NextRequest":{"_EventRequest":["1"]},"EmptyUnmodifiableSet":{"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"Iterable.E":"1"},"QueueList":{"ListBase":["1"],"List":["1"],"Queue":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"],"ListBase.E":"1","QueueList.E":"1"},"_CastQueueList":{"QueueList":["2"],"ListBase":["2"],"List":["2"],"Queue":["2"],"EfficientLengthIterable":["2"],"Iterable":["2"],"ListBase.E":"2","QueueList.E":"2"},"UnionSet":{"SetBase":["1"],"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"UnmodifiableSetView0":{"DelegatingSet":["1"],"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"MapKeySet":{"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"_DelegatingIterableBase":{"Iterable":["1"]},"DelegatingSet":{"Set":["1"],"EfficientLengthIterable":["1"],"Iterable":["1"]},"PathException":{"Exception":[]},"PathMap":{"Map":["String?","1"]},"Version":{"VersionRange":[],"Comparable":["VersionRange"]},"VersionRange":{"Comparable":["VersionRange"]},"ModifiableCssAtRule":{"ModifiableCssParentNode":[],"ModifiableCssNode":[],"CssParentNode":[],"CssNode":[],"AstNode":[]},"ModifiableCssComment":{"ModifiableCssNode":[],"CssComment":[],"CssNode":[],"AstNode":[]},"ModifiableCssDeclaration":{"ModifiableCssNode":[],"CssNode":[],"AstNode":[]},"ModifiableCssImport":{"ModifiableCssNode":[],"CssNode":[],"AstNode":[]},"ModifiableCssKeyframeBlock":{"ModifiableCssParentNode":[],"ModifiableCssNode":[],"CssParentNode":[],"CssNode":[],"AstNode":[]},"ModifiableCssMediaRule":{"ModifiableCssParentNode":[],"ModifiableCssNode":[],"CssParentNode":[],"CssNode":[],"AstNode":[]},"ModifiableCssNode":{"CssNode":[],"AstNode":[]},"ModifiableCssParentNode":{"ModifiableCssNode":[],"CssParentNode":[],"CssNode":[],"AstNode":[]},"ModifiableCssStyleRule":{"ModifiableCssParentNode":[],"CssStyleRule":[],"ModifiableCssNode":[],"CssParentNode":[],"CssNode":[],"AstNode":[]},"ModifiableCssStylesheet":{"ModifiableCssParentNode":[],"CssStylesheet":[],"ModifiableCssNode":[],"CssParentNode":[],"CssNode":[],"AstNode":[]},"ModifiableCssSupportsRule":{"ModifiableCssParentNode":[],"ModifiableCssNode":[],"CssParentNode":[],"CssNode":[],"AstNode":[]},"CssNode":{"AstNode":[]},"CssParentNode":{"CssNode":[],"AstNode":[]},"CssStylesheet":{"CssParentNode":[],"CssNode":[],"AstNode":[]},"CssValue":{"AstNode":[]},"_FakeAstNode":{"AstNode":[]},"Argument":{"AstNode":[]},"ArgumentDeclaration":{"AstNode":[]},"ArgumentInvocation":{"AstNode":[]},"ConfiguredVariable":{"AstNode":[]},"Expression":{"AstNode":[]},"BinaryOperationExpression":{"Expression":[],"AstNode":[]},"BooleanExpression":{"Expression":[],"AstNode":[]},"ColorExpression":{"Expression":[],"AstNode":[]},"FunctionExpression":{"Expression":[],"AstNode":[]},"IfExpression":{"Expression":[],"AstNode":[]},"InterpolatedFunctionExpression":{"Expression":[],"AstNode":[]},"ListExpression":{"Expression":[],"AstNode":[]},"MapExpression":{"Expression":[],"AstNode":[]},"NullExpression":{"Expression":[],"AstNode":[]},"NumberExpression":{"Expression":[],"AstNode":[]},"ParenthesizedExpression":{"Expression":[],"AstNode":[]},"SelectorExpression":{"Expression":[],"AstNode":[]},"StringExpression":{"Expression":[],"AstNode":[]},"SupportsExpression":{"Expression":[],"AstNode":[]},"UnaryOperationExpression":{"Expression":[],"AstNode":[]},"ValueExpression":{"Expression":[],"AstNode":[]},"VariableExpression":{"Expression":[],"AstNode":[]},"DynamicImport":{"Import":[],"AstNode":[]},"StaticImport":{"Import":[],"AstNode":[]},"Interpolation":{"AstNode":[]},"Statement":{"AstNode":[]},"AtRootRule":{"Statement":[],"AstNode":[]},"AtRule":{"Statement":[],"AstNode":[]},"CallableDeclaration":{"Statement":[],"AstNode":[]},"ContentBlock":{"Statement":[],"AstNode":[]},"ContentRule":{"Statement":[],"AstNode":[]},"DebugRule":{"Statement":[],"AstNode":[]},"Declaration":{"Statement":[],"AstNode":[]},"EachRule":{"Statement":[],"AstNode":[]},"ErrorRule":{"Statement":[],"AstNode":[]},"ExtendRule":{"Statement":[],"AstNode":[]},"ForRule":{"Statement":[],"AstNode":[]},"ForwardRule":{"Statement":[],"AstNode":[]},"FunctionRule":{"Statement":[],"AstNode":[]},"IfClause":{"IfRuleClause":[]},"ElseClause":{"IfRuleClause":[]},"IfRule":{"Statement":[],"AstNode":[]},"ImportRule":{"Statement":[],"AstNode":[]},"IncludeRule":{"Statement":[],"AstNode":[]},"LoudComment":{"Statement":[],"AstNode":[]},"MediaRule":{"Statement":[],"AstNode":[]},"MixinRule":{"Statement":[],"AstNode":[]},"_HasContentVisitor":{"StatementSearchVisitor":["bool"],"StatementSearchVisitor.T":"bool"},"ParentStatement":{"Statement":[],"AstNode":[]},"ReturnRule":{"Statement":[],"AstNode":[]},"SilentComment":{"Statement":[],"AstNode":[]},"StyleRule":{"Statement":[],"AstNode":[]},"Stylesheet":{"Statement":[],"AstNode":[]},"SupportsRule":{"Statement":[],"AstNode":[]},"UseRule":{"Statement":[],"AstNode":[]},"VariableDeclaration":{"Statement":[],"AstNode":[]},"WarnRule":{"Statement":[],"AstNode":[]},"WhileRule":{"Statement":[],"AstNode":[]},"SupportsAnything":{"AstNode":[]},"SupportsDeclaration":{"AstNode":[]},"SupportsFunction":{"AstNode":[]},"SupportsInterpolation":{"AstNode":[]},"SupportsNegation":{"AstNode":[]},"SupportsOperation":{"AstNode":[]},"Selector":{"AstNode":[]},"AttributeSelector":{"SimpleSelector":[],"AstNode":[]},"ClassSelector":{"SimpleSelector":[],"AstNode":[]},"ComplexSelector":{"AstNode":[]},"CompoundSelector":{"AstNode":[]},"IDSelector":{"SimpleSelector":[],"AstNode":[]},"SelectorList":{"AstNode":[]},"_ParentSelectorVisitor":{"SelectorSearchVisitor":["ParentSelector"],"SelectorSearchVisitor.T":"ParentSelector"},"ParentSelector":{"SimpleSelector":[],"AstNode":[]},"PlaceholderSelector":{"SimpleSelector":[],"AstNode":[]},"PseudoSelector":{"SimpleSelector":[],"AstNode":[]},"SimpleSelector":{"AstNode":[]},"TypeSelector":{"SimpleSelector":[],"AstNode":[]},"UniversalSelector":{"SimpleSelector":[],"AstNode":[]},"_EnvironmentModule0":{"Module0":["AsyncCallable"]},"AsyncBuiltInCallable":{"AsyncCallable":[]},"BuiltInCallable":{"Callable0":[],"AsyncBuiltInCallable":[],"AsyncCallable":[]},"PlainCssCallable":{"Callable0":[],"AsyncCallable":[]},"UserDefinedCallable":{"Callable0":[],"AsyncCallable":[]},"ExplicitConfiguration":{"Configuration":[]},"_EnvironmentModule":{"Module0":["Callable0"]},"SassRuntimeException":{"Exception":[]},"SassException":{"Exception":[]},"MultiSpanSassException":{"Exception":[]},"MultiSpanSassRuntimeException":{"SassRuntimeException":[],"Exception":[]},"SassFormatException":{"SourceSpanFormatException":[],"FormatException":[],"Exception":[]},"MultiSpanSassFormatException":{"MultiSourceSpanFormatException":[],"SassFormatException":[],"SourceSpanFormatException":[],"FormatException":[],"Exception":[]},"UsageException":{"Exception":[]},"EmptyExtensionStore":{"ExtensionStore":[]},"MergedExtension":{"Extension":[]},"Importer":{"AsyncImporter":[]},"FilesystemImporter":{"Importer":[],"AsyncImporter":[]},"NodePackageImporter":{"Importer":[],"AsyncImporter":[]},"BuiltInModule":{"Module0":["1"]},"ForwardedModuleView":{"Module0":["1"]},"ShadowedModuleView":{"Module0":["1"]},"LazyFileSpan":{"FileSpan":[],"SourceSpanWithContext":[],"SourceSpan":[],"Comparable":["SourceSpan"]},"LimitedMapView":{"MapBase":["1","2"],"Map":["1","2"],"MapBase.V":"2","MapBase.K":"1"},"MergedMapView":{"MapBase":["1","2"],"Map":["1","2"],"MapBase.V":"2","MapBase.K":"1"},"MultiSpan":{"FileSpan":[],"SourceSpanWithContext":[],"SourceSpan":[],"Comparable":["SourceSpan"]},"PrefixedMapView":{"MapBase":["String","1"],"Map":["String","1"],"MapBase.V":"1","MapBase.K":"String"},"_PrefixedKeys":{"Iterable":["String"],"Iterable.E":"String"},"PublicMemberMapView":{"MapBase":["String","1"],"Map":["String","1"],"MapBase.V":"1","MapBase.K":"String"},"UnprefixedMapView":{"MapBase":["String","1"],"Map":["String","1"],"MapBase.V":"1","MapBase.K":"String"},"_UnprefixedKeys":{"Iterable":["String"],"Iterable.E":"String"},"SassArgumentList":{"SassList":[],"Value":[]},"SassBoolean":{"Value":[]},"SassCalculation":{"Value":[]},"SassColor":{"Value":[]},"LinearChannel":{"ColorChannel":[]},"A98RgbColorSpace":{"ColorSpace":[]},"DisplayP3ColorSpace":{"ColorSpace":[]},"HslColorSpace":{"ColorSpace":[]},"HwbColorSpace":{"ColorSpace":[]},"LabColorSpace":{"ColorSpace":[]},"LchColorSpace":{"ColorSpace":[]},"LmsColorSpace":{"ColorSpace":[]},"OklabColorSpace":{"ColorSpace":[]},"OklchColorSpace":{"ColorSpace":[]},"ProphotoRgbColorSpace":{"ColorSpace":[]},"Rec2020ColorSpace":{"ColorSpace":[]},"RgbColorSpace":{"ColorSpace":[]},"SrgbColorSpace":{"ColorSpace":[]},"SrgbLinearColorSpace":{"ColorSpace":[]},"XyzD50ColorSpace":{"ColorSpace":[]},"XyzD65ColorSpace":{"ColorSpace":[]},"SassFunction":{"Value":[]},"SassList":{"Value":[]},"SassMap":{"Value":[]},"SassMixin":{"Value":[]},"_SassNull":{"Value":[]},"SassNumber":{"Value":[]},"ComplexSassNumber":{"SassNumber":[],"Value":[]},"SingleUnitSassNumber":{"SassNumber":[],"Value":[]},"UnitlessSassNumber":{"SassNumber":[],"Value":[]},"SassString":{"Value":[]},"_EvaluationContext0":{"EvaluationContext":[]},"_EvaluationContext":{"EvaluationContext":[]},"Entry":{"Comparable":["Entry"]},"FileLocation":{"SourceLocation":[],"Comparable":["SourceLocation"]},"FileSpan":{"SourceSpanWithContext":[],"SourceSpan":[],"Comparable":["SourceSpan"]},"_FileSpan":{"FileSpan":[],"SourceSpanWithContext":[],"SourceSpan":[],"Comparable":["SourceSpan"]},"SourceLocation":{"Comparable":["SourceLocation"]},"SourceLocationMixin":{"SourceLocation":[],"Comparable":["SourceLocation"]},"SourceSpan":{"Comparable":["SourceSpan"]},"SourceSpanBase":{"SourceSpan":[],"Comparable":["SourceSpan"]},"SourceSpanException":{"Exception":[]},"SourceSpanFormatException":{"FormatException":[],"Exception":[]},"MultiSourceSpanException":{"Exception":[]},"MultiSourceSpanFormatException":{"FormatException":[],"Exception":[]},"SourceSpanMixin":{"SourceSpan":[],"Comparable":["SourceSpan"]},"SourceSpanWithContext":{"SourceSpan":[],"Comparable":["SourceSpan"]},"Chain":{"StackTrace":[]},"LazyTrace":{"Trace":[],"StackTrace":[]},"Trace":{"StackTrace":[]},"UnparsedFrame":{"Frame":[]},"StringScannerException":{"SourceSpanFormatException":[],"FormatException":[],"Exception":[]},"A98RgbColorSpace0":{"ColorSpace0":[]},"SupportsAnything0":{"SupportsCondition":[],"SassNode":[],"AstNode0":[]},"Argument0":{"SassNode":[],"AstNode0":[]},"ArgumentDeclaration0":{"SassNode":[],"AstNode0":[]},"ArgumentInvocation0":{"SassNode":[],"AstNode0":[]},"SassArgumentList0":{"SassList0":[],"Value0":[]},"JSToDartAsyncImporter":{"AsyncImporter0":[]},"AsyncBuiltInCallable0":{"AsyncCallable0":[]},"_EnvironmentModule2":{"Module1":["AsyncCallable0"]},"_EvaluateVisitor2":{"StatementVisitor":["Future<Value0?>"],"ExpressionVisitor":["Future<Value0>"]},"_EvaluationContext2":{"EvaluationContext0":[]},"JSToDartAsyncFileImporter":{"AsyncImporter0":[]},"AtRootRule0":{"Statement0":[],"SassNode":[],"AstNode0":[]},"ModifiableCssAtRule0":{"ModifiableCssParentNode0":[],"ModifiableCssNode0":[],"CssParentNode0":[],"CssNode0":[],"AstNode0":[]},"AtRule0":{"Statement0":[],"SassNode":[],"AstNode0":[]},"AttributeSelector0":{"SimpleSelector0":[],"AstNode0":[]},"BinaryOperationExpression0":{"Expression0":[],"SassNode":[],"AstNode0":[]},"BooleanExpression0":{"Expression0":[],"SassNode":[],"AstNode0":[]},"SassBoolean0":{"Value0":[]},"BuiltInCallable0":{"Callable":[],"AsyncBuiltInCallable0":[],"AsyncCallable0":[]},"BuiltInModule0":{"Module1":["1"]},"SassCalculation0":{"Value0":[]},"CallableDeclaration0":{"Statement0":[],"SassNode":[],"AstNode0":[]},"LinearChannel0":{"ColorChannel0":[]},"ClassSelector0":{"SimpleSelector0":[],"AstNode0":[]},"ColorExpression0":{"Expression0":[],"SassNode":[],"AstNode0":[]},"SassColor0":{"Value0":[]},"ModifiableCssComment0":{"ModifiableCssNode0":[],"CssComment0":[],"CssNode0":[],"AstNode0":[]},"AsyncCompiler":{"Compiler":[]},"ComplexSassNumber0":{"SassNumber0":[],"Value0":[]},"ComplexSelector0":{"AstNode0":[]},"CompoundSelector0":{"AstNode0":[]},"ExplicitConfiguration0":{"Configuration0":[]},"ConfiguredVariable0":{"SassNode":[],"AstNode0":[]},"ContentBlock0":{"Statement0":[],"SassNode":[],"AstNode0":[]},"ContentRule0":{"Statement0":[],"SassNode":[],"AstNode0":[]},"DebugRule0":{"Statement0":[],"SassNode":[],"AstNode0":[]},"ModifiableCssDeclaration0":{"ModifiableCssNode0":[],"CssNode0":[],"AstNode0":[]},"Declaration0":{"Statement0":[],"SassNode":[],"AstNode0":[]},"SupportsDeclaration0":{"SupportsCondition":[],"SassNode":[],"AstNode0":[]},"DisplayP3ColorSpace0":{"ColorSpace0":[]},"DynamicImport0":{"Import0":[],"SassNode":[],"AstNode0":[]},"EachRule0":{"Statement0":[],"SassNode":[],"AstNode0":[]},"EmptyExtensionStore0":{"ExtensionStore0":[]},"_EnvironmentModule1":{"Module1":["Callable"]},"ErrorRule0":{"Statement0":[],"SassNode":[],"AstNode0":[]},"_EvaluateVisitor1":{"StatementVisitor":["Value0?"],"ExpressionVisitor":["Value0"]},"_EvaluationContext1":{"EvaluationContext0":[]},"SassRuntimeException0":{"Exception":[]},"SassException0":{"Exception":[]},"MultiSpanSassException0":{"Exception":[]},"MultiSpanSassRuntimeException0":{"SassRuntimeException0":[],"Exception":[]},"SassFormatException0":{"SourceSpanFormatException":[],"FormatException":[],"Exception":[]},"MultiSpanSassFormatException0":{"MultiSourceSpanFormatException":[],"SassFormatException0":[],"SourceSpanFormatException":[],"FormatException":[],"Exception":[]},"Expression0":{"SassNode":[],"AstNode0":[]},"JSExpressionVisitor":{"ExpressionVisitor":["Object?"]},"_MakeExpressionCalculationSafe0":{"ExpressionVisitor":["Expression0"]},"ExtendRule0":{"Statement0":[],"SassNode":[],"AstNode0":[]},"JSToDartFileImporter":{"Importer0":[],"AsyncImporter0":[]},"FilesystemImporter0":{"Importer0":[],"AsyncImporter0":[]},"ForRule0":{"Statement0":[],"SassNode":[],"AstNode0":[]},"ForwardRule0":{"Statement0":[],"SassNode":[],"AstNode0":[]},"ForwardedModuleView0":{"Module1":["1"]},"FunctionExpression0":{"Expression0":[],"SassNode":[],"AstNode0":[]},"SupportsFunction0":{"SupportsCondition":[],"SassNode":[],"AstNode0":[]},"SassFunction0":{"Value0":[]},"FunctionRule0":{"Statement0":[],"SassNode":[],"AstNode0":[]},"HslColorSpace0":{"ColorSpace0":[]},"HwbColorSpace0":{"ColorSpace0":[]},"IDSelector0":{"SimpleSelector0":[],"AstNode0":[]},"IfExpression0":{"Expression0":[],"SassNode":[],"AstNode0":[]},"IfClause0":{"IfRuleClause0":[]},"ElseClause0":{"IfRuleClause0":[]},"IfRule0":{"Statement0":[],"SassNode":[],"AstNode0":[]},"ModifiableCssImport0":{"ModifiableCssNode0":[],"CssNode0":[],"AstNode0":[]},"ImportRule0":{"Statement0":[],"SassNode":[],"AstNode0":[]},"Importer0":{"AsyncImporter0":[]},"IncludeRule0":{"Statement0":[],"SassNode":[],"AstNode0":[]},"InterpolatedFunctionExpression0":{"Expression0":[],"SassNode":[],"AstNode0":[]},"Interpolation0":{"SassNode":[],"AstNode0":[]},"SupportsInterpolation0":{"SupportsCondition":[],"SassNode":[],"AstNode0":[]},"IsCalculationSafeVisitor0":{"ExpressionVisitor":["bool"]},"ModifiableCssKeyframeBlock0":{"ModifiableCssParentNode0":[],"ModifiableCssNode0":[],"CssParentNode0":[],"CssNode0":[],"AstNode0":[]},"LabColorSpace0":{"ColorSpace0":[]},"LazyFileSpan0":{"FileSpan":[],"SourceSpanWithContext":[],"SourceSpan":[],"Comparable":["SourceSpan"]},"LchColorSpace0":{"ColorSpace0":[]},"LimitedMapView0":{"MapBase":["1","2"],"Map":["1","2"],"MapBase.V":"2","MapBase.K":"1"},"ListExpression0":{"Expression0":[],"SassNode":[],"AstNode0":[]},"SelectorList0":{"AstNode0":[]},"_ParentSelectorVisitor0":{"SelectorSearchVisitor0":["ParentSelector0"],"SelectorSearchVisitor0.T":"ParentSelector0"},"SassList0":{"Value0":[]},"LmsColorSpace0":{"ColorSpace0":[]},"LoudComment0":{"Statement0":[],"SassNode":[],"AstNode0":[]},"MapExpression0":{"Expression0":[],"SassNode":[],"AstNode0":[]},"SassMap0":{"Value0":[]},"ModifiableCssMediaRule0":{"ModifiableCssParentNode0":[],"ModifiableCssNode0":[],"CssParentNode0":[],"CssNode0":[],"AstNode0":[]},"MediaRule0":{"Statement0":[],"SassNode":[],"AstNode0":[]},"MergedExtension0":{"Extension0":[]},"MergedMapView0":{"MapBase":["1","2"],"Map":["1","2"],"MapBase.V":"2","MapBase.K":"1"},"SassMixin0":{"Value0":[]},"MixinRule0":{"Statement0":[],"SassNode":[],"AstNode0":[]},"_HasContentVisitor0":{"StatementSearchVisitor0":["bool"],"StatementVisitor":["bool?"],"StatementSearchVisitor0.T":"bool"},"MultiSpan0":{"FileSpan":[],"SourceSpanWithContext":[],"SourceSpan":[],"Comparable":["SourceSpan"]},"SupportsNegation0":{"SupportsCondition":[],"SassNode":[],"AstNode0":[]},"NoOpImporter0":{"Importer0":[],"AsyncImporter0":[]},"_FakeAstNode0":{"AstNode0":[]},"CssNode0":{"AstNode0":[]},"CssParentNode0":{"CssNode0":[],"AstNode0":[]},"ModifiableCssNode0":{"CssNode0":[],"AstNode0":[]},"ModifiableCssParentNode0":{"ModifiableCssNode0":[],"CssParentNode0":[],"CssNode0":[],"AstNode0":[]},"NodePackageImporter0":{"Importer0":[],"AsyncImporter0":[]},"NullExpression0":{"Expression0":[],"SassNode":[],"AstNode0":[]},"_SassNull0":{"Value0":[]},"NumberExpression0":{"Expression0":[],"SassNode":[],"AstNode0":[]},"SassNumber0":{"Value0":[]},"OklabColorSpace0":{"ColorSpace0":[]},"OklchColorSpace0":{"ColorSpace0":[]},"SupportsOperation0":{"SupportsCondition":[],"SassNode":[],"AstNode0":[]},"ParentSelector0":{"SimpleSelector0":[],"AstNode0":[]},"ParentStatement0":{"Statement0":[],"SassNode":[],"AstNode0":[]},"ParenthesizedExpression0":{"Expression0":[],"SassNode":[],"AstNode0":[]},"PlaceholderSelector0":{"SimpleSelector0":[],"AstNode0":[]},"PlainCssCallable0":{"Callable":[],"AsyncCallable0":[]},"PrefixedMapView0":{"MapBase":["String","1"],"Map":["String","1"],"MapBase.V":"1","MapBase.K":"String"},"_PrefixedKeys0":{"Iterable":["String"],"Iterable.E":"String"},"ProphotoRgbColorSpace0":{"ColorSpace0":[]},"PseudoSelector0":{"SimpleSelector0":[],"AstNode0":[]},"PublicMemberMapView0":{"MapBase":["String","1"],"Map":["String","1"],"MapBase.V":"1","MapBase.K":"String"},"Rec2020ColorSpace0":{"ColorSpace0":[]},"ReturnRule0":{"Statement0":[],"SassNode":[],"AstNode0":[]},"RgbColorSpace0":{"ColorSpace0":[]},"Selector0":{"AstNode0":[]},"SelectorExpression0":{"Expression0":[],"SassNode":[],"AstNode0":[]},"ShadowedModuleView0":{"Module1":["1"]},"SilentComment0":{"Statement0":[],"SassNode":[],"AstNode0":[]},"SimpleSelector0":{"AstNode0":[]},"SingleUnitSassNumber0":{"SassNumber0":[],"Value0":[]},"SourceInterpolationVisitor":{"ExpressionVisitor":["~"]},"SrgbColorSpace0":{"ColorSpace0":[]},"SrgbLinearColorSpace0":{"ColorSpace0":[]},"Statement0":{"SassNode":[],"AstNode0":[]},"JSStatementVisitor":{"StatementVisitor":["Object?"]},"StaticImport0":{"Import0":[],"SassNode":[],"AstNode0":[]},"StringExpression0":{"Expression0":[],"SassNode":[],"AstNode0":[]},"SassString0":{"Value0":[]},"ModifiableCssStyleRule0":{"ModifiableCssParentNode0":[],"CssStyleRule0":[],"ModifiableCssNode0":[],"CssParentNode0":[],"CssNode0":[],"AstNode0":[]},"StyleRule0":{"Statement0":[],"SassNode":[],"AstNode0":[]},"CssStylesheet0":{"CssParentNode0":[],"CssNode0":[],"AstNode0":[]},"ModifiableCssStylesheet0":{"ModifiableCssParentNode0":[],"CssStylesheet0":[],"ModifiableCssNode0":[],"CssParentNode0":[],"CssNode0":[],"AstNode0":[]},"Stylesheet0":{"Statement0":[],"SassNode":[],"AstNode0":[]},"SupportsExpression0":{"Expression0":[],"SassNode":[],"AstNode0":[]},"ModifiableCssSupportsRule0":{"ModifiableCssParentNode0":[],"ModifiableCssNode0":[],"CssParentNode0":[],"CssNode0":[],"AstNode0":[]},"SupportsRule0":{"Statement0":[],"SassNode":[],"AstNode0":[]},"JSToDartImporter":{"Importer0":[],"AsyncImporter0":[]},"TypeSelector0":{"SimpleSelector0":[],"AstNode0":[]},"UnaryOperationExpression0":{"Expression0":[],"SassNode":[],"AstNode0":[]},"UnitlessSassNumber0":{"SassNumber0":[],"Value0":[]},"UniversalSelector0":{"SimpleSelector0":[],"AstNode0":[]},"UnprefixedMapView0":{"MapBase":["String","1"],"Map":["String","1"],"MapBase.V":"1","MapBase.K":"String"},"_UnprefixedKeys0":{"Iterable":["String"],"Iterable.E":"String"},"UseRule0":{"Statement0":[],"SassNode":[],"AstNode0":[]},"UserDefinedCallable0":{"Callable":[],"AsyncCallable0":[]},"CssValue0":{"AstNode0":[]},"ValueExpression0":{"Expression0":[],"SassNode":[],"AstNode0":[]},"VariableExpression0":{"Expression0":[],"SassNode":[],"AstNode0":[]},"VariableDeclaration0":{"Statement0":[],"SassNode":[],"AstNode0":[]},"WarnRule0":{"Statement0":[],"SassNode":[],"AstNode0":[]},"WhileRule0":{"Statement0":[],"SassNode":[],"AstNode0":[]},"XyzD50ColorSpace0":{"ColorSpace0":[]},"XyzD65ColorSpace0":{"ColorSpace0":[]},"Int8List":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"Uint8List":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"Uint8ClampedList":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"Int16List":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"Uint16List":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"Int32List":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"Uint32List":{"List":["int"],"EfficientLengthIterable":["int"],"Iterable":["int"]},"Float32List":{"List":["double"],"EfficientLengthIterable":["double"],"Iterable":["double"]},"Float64List":{"List":["double"],"EfficientLengthIterable":["double"],"Iterable":["double"]},"CssComment":{"CssNode":[],"AstNode":[]},"CssStyleRule":{"CssParentNode":[],"CssNode":[],"AstNode":[]},"Import":{"AstNode":[]},"Callable0":{"AsyncCallable":[]},"Callable":{"AsyncCallable0":[]},"CssComment0":{"CssNode0":[],"AstNode0":[]},"Import0":{"SassNode":[],"AstNode0":[]},"SassNode":{"AstNode0":[]},"CssStyleRule0":{"CssParentNode0":[],"CssNode0":[],"AstNode0":[]},"SupportsCondition":{"SassNode":[],"AstNode0":[]}}'));
  124516. A._Universe_addErasedTypes(init.typeUniverse, JSON.parse('{"WhereIterator":1,"SkipIterator":1,"SkipWhileIterator":1,"EmptyIterator":1,"FollowedByIterator":1,"NonNullsIterator":1,"FixedLengthListMixin":1,"UnmodifiableListMixin":1,"UnmodifiableListBase":1,"__CastListBase__CastIterableBase_ListMixin":2,"ConstantSet":1,"LinkedHashMapKeyIterator":1,"NativeTypedArray":1,"EventSink":1,"_SyncStarIterator":1,"_SyncStreamControllerDispatch":1,"_AsyncStreamControllerDispatch":1,"_AddStreamState":1,"_StreamControllerAddStreamState":1,"_DelayedEvent":1,"_DelayedData":1,"_PendingEvents":1,"_StreamIterator":1,"_ZoneFunction":1,"Queue":1,"UnmodifiableMapBase":2,"_UnmodifiableMapMixin":2,"MapView":2,"_UnmodifiableSetMixin":1,"_UnmodifiableMapView_MapView__UnmodifiableMapMixin":2,"_UnmodifiableSetView_SetBase__UnmodifiableSetMixin":1,"_StringSinkConversionSink":1,"Expando":1,"_EventRequest":1,"_EmptyUnmodifiableSet_IterableBase_UnmodifiableSetMixin":1,"DefaultEquality":1,"IterableEquality":1,"ListEquality":1,"_QueueList_Object_ListMixin":1,"_UnionSet_SetBase_UnmodifiableSetMixin":1,"UnmodifiableSetMixin":1,"_UnmodifiableSetView_DelegatingSet_UnmodifiableSetMixin":1,"_DelegatingIterableBase":1,"_MapKeySet__DelegatingIterableBase_UnmodifiableSetMixin":1,"ParentStatement":1,"ParentStatement0":1,"ExpressionVisitor":1}'));
  124517. var string$ = {
  124518. x0a_BUG_: "\n\nBUG: This should include a source span!",
  124519. x0a_Morex20: "\n\nMore info and automated migrator: https://sass-lang.com/d/slash-div",
  124520. x0a_Morex3ac: "\n\nMore info: https://sass-lang.com/d/color-functions",
  124521. x0a_Morex3af: "\n\nMore info: https://sass-lang.com/d/function-units",
  124522. x0a_See_: "\n\nSee https://sass-lang.com/d/function-units",
  124523. x0a_This: "\n\nThis is only an error because you've set the ",
  124524. x0a_To_p: "\n\nTo preserve current behavior: math.random(math.div($limit, 1",
  124525. x0a_but_: "\n\nbut you may have intended it to mean:\n\n ",
  124526. x0aRun_i: "\nRun in verbose mode to see all warnings.",
  124527. x0aThis_: "\nThis will be an error in Dart Sass 2.0.0.\n\nMore info: https://sass-lang.com/d/bogus-combinators",
  124528. x0aYou_m: "\nYou may not @extend the same selector from within different media queries.",
  124529. x20It_wi: " It will be omitted from the generated CSS.",
  124530. x20be_an: " be an extender.\nThis will be an error in Dart Sass 2.0.0.\n\nMore info: https://sass-lang.com/d/bogus-combinators",
  124531. x20can_n: " can not have both conditions and paths at the same level.\nFound ",
  124532. x20deprex20: " deprecation to be fatal.\nRemove this setting if you need to keep using this feature.",
  124533. x20deprex2c: " deprecation, since it has also been made fatal.",
  124534. x20hue__: ' hue" may not be set for rectangular color space ',
  124535. x20in_in: " in interpolation here.\nIt may end up represented as ",
  124536. x20inste: " instead.\n\nMore info and automated migrator: https://sass-lang.com/d/import",
  124537. x20is_as: " is asynchronous.\nThis is probably caused by a bug in a Sass plugin.",
  124538. x20is_av: " is available from multiple global modules.",
  124539. x20is_de: " is deprecated.\n\nTo preserve current behavior: ",
  124540. x20is_noaf: " is not a future deprecation, so it does not need to be explicitly enabled.",
  124541. x20is_noav: " is not a valid selector: it must be a string,\na list of strings, or a list of lists of strings.",
  124542. x20is_nov: " is not valid CSS.\nThis will be an error in Dart Sass 2.0.0.\n\nMore info: https://sass-lang.com/d/bogus-combinators",
  124543. x20must_b: " must be either nearest, up, down or to-zero.",
  124544. x20must_n: " must not be greater than the number of characters in the file, ",
  124545. x20repet: " repetitive deprecation warnings omitted.",
  124546. x20targe: " targetLocations if the interpolation has ",
  124547. x20to_be: " to be in the legacy RGB, HSL, or HWB color space.",
  124548. x20to_be_: " to be in the legacy RGB, HSL, or HWB color space.\n\nRecommendation: color.change(",
  124549. x20to_cl: " to clarify that it's meant to be a binary operation, or wrap\nit in parentheses to make it a unary operation. This will be an error in future\nversions of Sass.\n\nMore info and automated migrator: https://sass-lang.com/d/strict-unary",
  124550. x20to_co: " to color.opacity() is deprecated.\n\nRecommendation: ",
  124551. x20was_a: ' was already loaded, so it can\'t be configured using "with".',
  124552. x20was_n: " was not declared with !default in the @used module.",
  124553. x20was_p: " was passed both by position and by name.",
  124554. x21defau: "!default should only be written once for each variable.\nThis will be an error in Dart Sass 2.0.0.",
  124555. x21globai: "!global isn't allowed for variables in other modules.",
  124556. x21globas: "!global should only be written once for each variable.\nThis will be an error in Dart Sass 2.0.0.",
  124557. x22x20can_: "\" can't be used as a parent in a compound selector.",
  124558. x22x20is_ix0a: '" is invalid CSS.\nThis will be an error in Dart Sass 2.0.0.\n\nMore info: https://sass-lang.com/d/bogus-combinators',
  124559. x22x20is_ix20: '" is invalid CSS. It will be omitted from the generated CSS.\nThis will be an error in Dart Sass 2.0.0.\n\nMore info: https://sass-lang.com/d/bogus-combinators',
  124560. x22x20is_n: '" is not a valid Sass identifier.\n\nRecommendation: add an "as" clause to define an explicit namespace.',
  124561. x22x20is_o: "\" is only valid for nesting and shouldn't\nhave children other than style rules.",
  124562. x22x26__ma: '"&" may only used at the beginning of a compound selector.',
  124563. x22x29__If: "\").\nIf you really want to use the color value here, use '",
  124564. x22x2b__an: '"+" and "-" must be surrounded by whitespace in calculations.',
  124565. x22packa: '"package:" URLs aren\'t supported on this platform.',
  124566. x24color: "$color1, $color2, $weight: 50%, $method: null",
  124567. x24css_a: "$css and $module may not both be passed at once.",
  124568. x24list1: "$list1, $list2, $separator: auto, $bracketed: auto",
  124569. x24selec: "$selectors: At least one selector must be passed.",
  124570. x24separ: '$separator: Must be "space", "comma", "slash", or "auto".',
  124571. x27x20must: "' must be a path relative to the package root at '",
  124572. x27x2c_whi: "', which is not a '.scss', '.sass', or '.css' file.",
  124573. x28__is_d: '() is deprecated. Suggestion:\n\ncolor.channel($color, "',
  124574. x28__is_oa: "() is only supported for legacy colors. Please use color.adjust() instead with an explicit $space argument.",
  124575. x28__is_oc: "() is only supported for legacy colors. Please use color.channel() instead with an explicit $space argument.",
  124576. x28__isn: "() isn't in the sass:color module.\n\nRecommendation: color.adjust(",
  124577. x29x0a_Mor_: ")\n\nMore info: https://sass-lang.com/d/color-functions",
  124578. x29x0a_Moro: ")\n\nMore info: https://sass-lang.com/documentation/functions/color#",
  124579. x29x20in_a: ") in a future release.\n\nRecommendation: math.random(math.div($limit, 1",
  124580. x29x20is_d: ") is deprecated.\n\nTo preserve current behavior: ",
  124581. x29x20to_cg: ") to color.grayscale() is deprecated.\n\nRecommendation: ",
  124582. x29x20to_ci: ") to color.invert() is deprecated.\n\nRecommendation: ",
  124583. x29x29__Mo: "))\n\nMore info: https://sass-lang.com/d/function-units",
  124584. x2c_whicu: ", which uses a scheme declared as non-canonical.",
  124585. x2c_whicw: ', which will likely produce invalid CSS.\nAlways quote color names when using them as strings or map keys (for example, "',
  124586. x2e_Rela: ".\nRelative canonical URLs are deprecated and will eventually be disallowed.",
  124587. x3d_____: "===== asynchronous gap ===========================\n",
  124588. x40_moz_: "@-moz-document is deprecated and support will be removed in Dart Sass 2.0.0.\n\nFor details, see https://sass-lang.com/d/moz-document.",
  124589. x40conte: "@content is only allowed within mixin declarations.",
  124590. x40elsei: "@elseif is deprecated and will not be supported in future Sass versions.\n\nRecommendation: @else if",
  124591. x40exten: "@extend may only be used within style rules.",
  124592. x40forwa: "@forward rules must be written before any other rules.",
  124593. x40funct: "@function if($condition, $if-true, $if-false) {",
  124594. x40use_r: "@use rules must be written before any other rules.",
  124595. A_list: "A list with more than one element must have an explicit separator.",
  124596. A_pkg_h: "A pkg: URL must not have a host, port, username or password.",
  124597. A_pkg_q: "A pkg: URL must not have a query or fragment.",
  124598. ABCDEF: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",
  124599. An_impa: "An importer may not have a findFileUrl method as well as canonicalize and load methods.",
  124600. An_impu: "An importer must have either canonicalize and load methods, or a findFileUrl method.",
  124601. As_of_R: "As of Dart Sass 2.0.0, !global assignments won't be able to declare new variables.\n\nRecommendation: add `",
  124602. As_of_S: "As of Dart Sass 2.0.0, !global assignments won't be able to declare new variables.\n\nSince this assignment is at the root of the stylesheet, the !global flag is\nunnecessary and can safely be removed.",
  124603. At_rul: "At-rules may not be used within nested declarations.",
  124604. Becaus: "Because the CSS working group is still deciding on the best behavior, Sass doesn't currently support modifying missing channels (color: ",
  124605. Cannotff: "Cannot extract a file path from a URI with a fragment component",
  124606. Cannotfq: "Cannot extract a file path from a URI with a query component",
  124607. Cannotn: "Cannot extract a non-Windows file path from a file URI with an authority",
  124608. Comple: "ComplexSassNumber.hasPossiblyCompatibleUnits is not implemented.",
  124609. Could_: 'Could not find an option with short name "-',
  124610. CssNod: "CssNodes must have a CssStylesheet transitive parent node.",
  124611. Custom: "Custom importers are required to load stylesheets when compiling in the browser.",
  124612. Declarm: "Declarations may only be used within style rules.",
  124613. Declarw: 'Declarations whose names begin with "--" may not be nested.',
  124614. Either: "Either options.data or options.file must be set.",
  124615. Entrie: "Entries may not be removed from MergedMapView.",
  124616. Error_: "Error handler must accept one Object or one Object and a StackTrace as arguments, and return a value of the returned future's type",
  124617. Evalua: "Evaluation handles @include and its content block together.",
  124618. Expecta: "Expected a color interpolation method, got an empty list.",
  124619. Expectu: 'Expected unquoted string "hue" at the end of ',
  124620. Expectv: "Expected variable, mixin, or function name",
  124621. Functi: "Functions may not be declared in control directives.",
  124622. Global: "Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.\nUse ",
  124623. Globalcad: "Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.\nUse color.adjust instead.\n\nMore info and automated migrator: https://sass-lang.com/d/import",
  124624. Globalcal: "Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.\nUse color.alpha instead.\n\nMore info and automated migrator: https://sass-lang.com/d/import",
  124625. Globalcg: "Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.\nUse color.grayscale instead.\n\nMore info and automated migrator: https://sass-lang.com/d/import",
  124626. Globalci: "Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.\nUse color.invert instead.\n\nMore info and automated migrator: https://sass-lang.com/d/import",
  124627. Globalco: "Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.\nUse color.opacity instead.\n\nMore info and automated migrator: https://sass-lang.com/d/import",
  124628. Globalm: "Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.\nUse math.abs instead.\n\nMore info and automated migrator: https://sass-lang.com/d/import",
  124629. Hue_in: "Hue interpolation method may not be set for rectangular color space ",
  124630. If_con: "If conditions is longer than one element, conjunction may not be null.",
  124631. If_par: "If parsedAsCustomProperty is true, value must contain a SassString (was `",
  124632. If_str: "If strategy is not null, step is required.",
  124633. In_Sas: 'In Sass, "&&" means two copies of the parent selector. You probably want to use "and" instead.',
  124634. Indent: "Indenting at the beginning of the document is illegal.",
  124635. Interpn: "Interpolation isn't allowed in namespaces.",
  124636. Interpp: "Interpolation isn't allowed in plain CSS.",
  124637. Invali: 'Invalid return value for custom function "',
  124638. It_s_n: "It's not clear which file to import. Found:\n",
  124639. Keywor: "Keyword arguments can't be used with calculations.",
  124640. May_no: "May not have a value for string elements (at index ",
  124641. Media_: "Media rules may not be used within nested declarations.",
  124642. Mixinsb: "Mixins may not be declared in control directives.",
  124643. Mixinscf: "Mixins may not contain function declarations.",
  124644. Mixinscm: "Mixins may not contain mixin declarations.",
  124645. Modulel: "Module loop: this module is already being loaded.",
  124646. Modulen: "Module namespaces aren't allowed in plain CSS.",
  124647. Must_n: "Must not have a value for expression elements (at index ",
  124648. Nested: "Nested declarations aren't allowed in plain CSS.",
  124649. New_en: "New entries may not be added to MergedMapView.",
  124650. No_Sasc: "No Sass callable is currently being evaluated.",
  124651. No_Sass: "No Sass stylesheet is currently being evaluated.",
  124652. NoSour: "NoSourceMapBuffer.buildSourceMap() is not supported.",
  124653. None_o: "None of the patterns in the switch expression the matched input value. See https://github.com/dart-lang/language/issues/3488 for details.",
  124654. Number: "Number to round and step arguments are required.",
  124655. Only_2: "Only 2 slash-separated elements allowed, but ",
  124656. Only_oa: "Only one argument may be passed to the plain-CSS invert() function.",
  124657. Only_op: "Only one positional argument is allowed. All other arguments must be passed by name.",
  124658. Other_: "Other modules' members can't be defined with !global.",
  124659. Parent: "Parent selectors can't have suffixes in plain CSS.",
  124660. Passin_: "Passing `alpha: null` without setting `space` is deprecated.\nMore info: https://sass-lang.com/d/null-alpha",
  124661. Passina: "Passing a string to call() is deprecated and will be illegal in Dart Sass 2.0.0.\n\nRecommendation: call(get-function(",
  124662. Passinp: "Passing percentage units to the global abs() function is deprecated.\nIn the future, this will emit a CSS abs() function to be resolved by the browser.\nTo preserve current behavior: math.abs(",
  124663. Placeh: "Placeholder selectors aren't allowed in plain CSS.",
  124664. Plain_: "Plain CSS functions don't support keyword arguments.",
  124665. Positi: "Positional arguments must come before keyword arguments.",
  124666. Privat: "Private members can't be accessed from outside their modules.",
  124667. Rest_a: "Rest arguments can't be used with calculations.",
  124668. Sassx20_ff: "Sass @function names beginning with -- are deprecated for forward-compatibility with plain CSS functions.\n\nFor details, see https://sass-lang.com/d/css-function-mixin",
  124669. Sassx20_fm: "Sass @function names beginning with -- are deprecated for forward-compatibility with plain CSS mixins.\n\nFor details, see https://sass-lang.com/d/css-function-mixin",
  124670. Sassx20_i: "Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.\n\nMore info and automated migrator: https://sass-lang.com/d/import",
  124671. Sassx20_m: "Sass @mixin names beginning with -- are deprecated for forward-compatibility with plain CSS mixins.\n\nFor details, see https://sass-lang.com/d/css-function-mixin",
  124672. Sassx20v: "Sass variables aren't allowed in plain CSS.",
  124673. Sassx27s: "Sass's behavior for declarations that appear after nested\nrules will be changing to match the behavior specified by CSS in an upcoming\nversion. To keep the existing behavior, move the declaration above the nested\nrule. To opt into the new behavior, wrap the declaration in `& {}`.\n\nMore info: https://sass-lang.com/d/mixed-decls",
  124674. Silent: "Silent comments aren't allowed in plain CSS.",
  124675. Style_k: "Style rules may not be used within keyframe blocks.",
  124676. Style_n: "Style rules may not be used within nested declarations.",
  124677. Suppor: "Supports rules may not be used within nested declarations.",
  124678. The_Ex: "The ExtensionStore and CssStylesheet passed to cloneCssStylesheet() must come from the same compilation.",
  124679. The_No: "The Node package importer cannot be used without a filesystem.",
  124680. The_ca: "The canonicalize() method must return a URL.",
  124681. The_co: "The color() function doesn't support the color space ",
  124682. The_fe: "The feature-exists() function is deprecated.\n\nMore info: https://sass-lang.com/d/feature-exists",
  124683. The_fie: "The findFileUrl() method must return a URL.",
  124684. The_fiu: 'The findFileUrl() must return a URL with scheme file://, was "',
  124685. The_gi: "The given LineScannerState was not returned by this LineScanner.",
  124686. The_le: "The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.\n\nMore info: https://sass-lang.com/d/legacy-js-api",
  124687. The_lo: "The load() function must return an object with contents and syntax fields.",
  124688. The_pa: "The parent selector isn't allowed in plain CSS.",
  124689. The_sa: "The same variable may only be configured once.",
  124690. The_ta: 'The target selector was not found.\nUse "@extend ',
  124691. There_: "There's already a module with namespace \"",
  124692. This_d: 'This declaration has no argument named "$',
  124693. This_e: "This expression can't be used in a calculation.",
  124694. This_f: "This function isn't allowed in plain CSS.",
  124695. This_ma: 'This module and the new module both define a variable named "$',
  124696. This_mw: 'This module was already loaded, so it can\'t be configured using "with".',
  124697. This_o: "This operation can't be used in a calculation.",
  124698. This_s: "This selector doesn't have any properties and won't be rendered.",
  124699. This_v: "This variable was not declared with !default in the @used module.",
  124700. To_usei: "To use color.invert() with non-legacy color ",
  124701. To_usem: "To use color.mix() with non-legacy color ",
  124702. Top_lel: "Top-level leading combinators aren't allowed in plain CSS.",
  124703. Top_les: 'Top-level selectors may not contain the parent selector "&".',
  124704. Unable: "Unable to determine which of multiple potential resolutions found for ",
  124705. Unexpe: "Unexpected Zone.current[#_canonicalizeContext] value ",
  124706. User_a: "User-authored deprecations should not be silenced.",
  124707. Using__i: "Using / for division is deprecated and will be removed in Dart Sass 2.0.0.\n\nRecommendation: ",
  124708. Using__o: "Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.\n\nRecommendation: ",
  124709. Using_c: "Using color.alpha() for a Microsoft filter is deprecated.\n\nRecommendation: ",
  124710. Using_t: "Using the current working directory as an implicit load path is deprecated. Either add it as an explicit load path or importer, or load this stylesheet from a different URL.",
  124711. Variab_: "Variable keyword argument map must have string keys.\n",
  124712. Variabs: "Variable keyword arguments must be a map (was ",
  124713. You_ma: "You may not @extend selectors across media queries.",
  124714. You_pr: "You probably don't mean to use the color value ",
  124715. x60_inst: "` instead.\nSee https://sass-lang.com/d/extend-compound for details.\n",
  124716. addExt: "addExtensions() can't be called for a const ExtensionStore.",
  124717. adjustd: "adjust-hue() is deprecated. Suggestion:\n\ncolor.adjust($color, $hue: ",
  124718. adjusto: "adjust-hue() is only supported for legacy colors. Please use color.adjust() instead with an explicit $space argument.",
  124719. alpha_: "alpha() is only supported for legacy colors. Please use color.channel() instead.",
  124720. canoni: "canonicalizeContext may only be accessed within a call to canonicalize().",
  124721. color_a: "color.alpha() is only supported for legacy colors. Please use color.channel() instead.",
  124722. color_c: "color.changeHsl() is only supported for legacy colors. Please use color.changeChannels() instead with an explicit $space argument.",
  124723. color_t: "color.to-gamut() requires a $method argument for forwards-compatibility with changes in the CSS spec. Suggestion:\n\n$method: local-minde",
  124724. compou: "compound selectors may no longer be extended.\nConsider `@extend ",
  124725. conten: "content-exists() may only be called within a mixin.",
  124726. darken: "darken() is only supported for legacy colors. Please use color.adjust() instead with an explicit $space argument.",
  124727. desatu: "desaturate() is only supported for legacy colors. Please use color.adjust() instead with an explicit $space argument.",
  124728. fileEx: "fileExists() is only supported on Node.js",
  124729. leadin: "leadingCombinators and components may not both be empty.",
  124730. lighte: "lighten() is only supported for legacy colors. Please use color.adjust() instead with an explicit $space argument.",
  124731. math_d: "math.div() will only support number arguments in a future release.\nUse list.slash() instead for a slash separator.",
  124732. math_r: "math.random() will no longer ignore $limit units (",
  124733. must_b: "must be a UniversalSelector or a TypeSelector",
  124734. parsed: 'parsedAsCustomProperty must be false if name doesn\'t begin with "--".',
  124735. satura: "saturate() is only supported for legacy colors. Please use color.adjust() instead with an explicit $space argument.",
  124736. semico: "semicolons aren't allowed in the indented syntax.",
  124737. throug: "through() must return false for at least one parent of ",
  124738. x7d__Mor: "})\nMore info: https://sass-lang.com/d/abs-percent"
  124739. };
  124740. var type$ = (function rtii() {
  124741. var findType = A.findType;
  124742. return {
  124743. $env_1_1_String: findType("@<String>"),
  124744. ArgParser: findType("ArgParser"),
  124745. Argument: findType("Argument"),
  124746. ArgumentDeclaration: findType("ArgumentDeclaration"),
  124747. ArgumentDeclaration_2: findType("ArgumentDeclaration0"),
  124748. Argument_2: findType("Argument0"),
  124749. AstNode: findType("AstNode"),
  124750. AstNode_2: findType("AstNode0"),
  124751. AsyncBuiltInCallable: findType("AsyncBuiltInCallable"),
  124752. AsyncBuiltInCallable_2: findType("AsyncBuiltInCallable0"),
  124753. AsyncCallable: findType("AsyncCallable"),
  124754. AsyncCallable_2: findType("AsyncCallable0"),
  124755. AsyncCompiler: findType("AsyncCompiler"),
  124756. AsyncImporter: findType("AsyncImporter0"),
  124757. Box_SelectorList: findType("Box<SelectorList>"),
  124758. Box_SelectorList_2: findType("Box0<SelectorList0>"),
  124759. BuiltInCallable: findType("BuiltInCallable"),
  124760. BuiltInCallable_2: findType("BuiltInCallable0"),
  124761. BuiltInModule_AsyncCallable: findType("BuiltInModule<AsyncCallable>"),
  124762. BuiltInModule_AsyncCallable_2: findType("BuiltInModule0<AsyncCallable0>"),
  124763. BuiltInModule_Callable: findType("BuiltInModule<Callable0>"),
  124764. BuiltInModule_Callable_2: findType("BuiltInModule0<Callable>"),
  124765. ByteBuffer: findType("ByteBuffer"),
  124766. ByteData: findType("ByteData"),
  124767. Callable: findType("Callable0"),
  124768. Callable_2: findType("Callable"),
  124769. ChangeType: findType("ChangeType"),
  124770. CodeUnits: findType("CodeUnits"),
  124771. Combinator: findType("Combinator"),
  124772. Combinator_2: findType("Combinator0"),
  124773. Comparable_dynamic: findType("Comparable<@>"),
  124774. Comparable_nullable_Object: findType("Comparable<Object?>"),
  124775. CompileResult: findType("CompileResult"),
  124776. CompileResult_2: findType("CompileResult0"),
  124777. ComplexSelector: findType("ComplexSelector"),
  124778. ComplexSelectorComponent: findType("ComplexSelectorComponent"),
  124779. ComplexSelectorComponent_2: findType("ComplexSelectorComponent0"),
  124780. ComplexSelector_2: findType("ComplexSelector0"),
  124781. Configuration: findType("Configuration"),
  124782. Configuration_2: findType("Configuration0"),
  124783. ConfiguredValue: findType("ConfiguredValue"),
  124784. ConfiguredValue_2: findType("ConfiguredValue0"),
  124785. ConfiguredVariable: findType("ConfiguredVariable"),
  124786. ConfiguredVariable_2: findType("ConfiguredVariable0"),
  124787. ConstantMapView_Symbol_dynamic: findType("ConstantMapView<Symbol0,@>"),
  124788. ConstantStringMap_String_double: findType("ConstantStringMap<String,double>"),
  124789. ConstantStringSet_String: findType("ConstantStringSet<String>"),
  124790. CssComment: findType("CssComment"),
  124791. CssComment_2: findType("CssComment0"),
  124792. CssMediaQuery: findType("CssMediaQuery"),
  124793. CssMediaQuery_2: findType("CssMediaQuery0"),
  124794. CssParentNode: findType("CssParentNode"),
  124795. CssParentNode_2: findType("CssParentNode0"),
  124796. CssStyleRule: findType("CssStyleRule"),
  124797. CssStyleRule_2: findType("CssStyleRule0"),
  124798. CssStylesheet: findType("CssStylesheet"),
  124799. CssStylesheet_2: findType("CssStylesheet0"),
  124800. CssValue_Combinator: findType("CssValue<Combinator>"),
  124801. CssValue_Combinator_2: findType("CssValue0<Combinator0>"),
  124802. CssValue_List_String: findType("CssValue<List<String>>"),
  124803. CssValue_List_String_2: findType("CssValue0<List<String>>"),
  124804. CssValue_String: findType("CssValue<String>"),
  124805. CssValue_String_2: findType("CssValue0<String>"),
  124806. CssValue_Value: findType("CssValue<Value>"),
  124807. CssValue_Value_2: findType("CssValue0<Value0>"),
  124808. DateTime: findType("DateTime"),
  124809. Deprecation: findType("Deprecation"),
  124810. Deprecation_2: findType("Deprecation1"),
  124811. Deprecation_3: findType("Deprecation0"),
  124812. EfficientLengthIterable_dynamic: findType("EfficientLengthIterable<@>"),
  124813. Error: findType("Error"),
  124814. EvaluationContext: findType("EvaluationContext"),
  124815. EvaluationContext_2: findType("EvaluationContext0"),
  124816. Exception: findType("Exception"),
  124817. Expression: findType("Expression"),
  124818. Expression_2: findType("Expression0"),
  124819. Extender: findType("Extender"),
  124820. Extender_2: findType("Extender0"),
  124821. Extension: findType("Extension"),
  124822. Extension_2: findType("Extension0"),
  124823. FileLocation: findType("FileLocation"),
  124824. FileSpan: findType("FileSpan"),
  124825. Float32List: findType("Float32List"),
  124826. Float64List: findType("Float64List"),
  124827. FormatException: findType("FormatException"),
  124828. Frame: findType("Frame"),
  124829. Function: findType("Function"),
  124830. FutureGroup_void: findType("FutureGroup<~>"),
  124831. FutureOr_Record_2_Set_Uri_loadedUrls_and_CssStylesheet_stylesheet: findType("+loadedUrls,stylesheet(Set<Uri>,CssStylesheet)/"),
  124832. FutureOr_Record_2_Set_Uri_loadedUrls_and_CssStylesheet_stylesheet_2: findType("+loadedUrls,stylesheet(Set<Uri>,CssStylesheet0)/"),
  124833. FutureOr_nullable_Uri: findType("Uri?/"),
  124834. Future_Record_2_Set_Uri_loadedUrls_and_CssStylesheet_stylesheet: findType("Future<+loadedUrls,stylesheet(Set<Uri>,CssStylesheet)>"),
  124835. Future_Record_2_Set_Uri_loadedUrls_and_CssStylesheet_stylesheet_2: findType("Future<+loadedUrls,stylesheet(Set<Uri>,CssStylesheet0)>"),
  124836. Future_Value: findType("Future<Value>"),
  124837. Future_Value_2: findType("Future<Value0>"),
  124838. Future_nullable_CssValue_String: findType("Future<CssValue<String>?>"),
  124839. Future_nullable_CssValue_String_2: findType("Future<CssValue0<String>?>"),
  124840. Future_nullable_ImporterResult: findType("Future<ImporterResult0?>"),
  124841. Future_nullable_Uri: findType("Future<Uri?>"),
  124842. Future_nullable_Value: findType("Future<Value?>"),
  124843. Future_nullable_Value_2: findType("Future<Value0?>"),
  124844. IfClause: findType("IfClause"),
  124845. IfClause_2: findType("IfClause0"),
  124846. ImmutableList: findType("ImmutableList0"),
  124847. ImmutableList_2: findType("ImmutableList"),
  124848. ImmutableMap: findType("ImmutableMap0"),
  124849. Import: findType("Import"),
  124850. Import_2: findType("Import0"),
  124851. Importer: findType("Importer0"),
  124852. ImporterResult: findType("ImporterResult"),
  124853. ImporterResult_2: findType("ImporterResult0"),
  124854. Importer_2: findType("Importer"),
  124855. Int16List: findType("Int16List"),
  124856. Int32List: findType("Int32List"),
  124857. Int8List: findType("Int8List"),
  124858. Interpolation: findType("Interpolation"),
  124859. InterpolationBuffer: findType("InterpolationBuffer"),
  124860. InterpolationBuffer_2: findType("InterpolationBuffer0"),
  124861. Interpolation_2: findType("Interpolation0"),
  124862. Iterable_ComplexSelectorComponent: findType("Iterable<ComplexSelectorComponent>"),
  124863. Iterable_ComplexSelectorComponent_2: findType("Iterable<ComplexSelectorComponent0>"),
  124864. Iterable_dynamic: findType("Iterable<@>"),
  124865. Iterable_nullable_Object: findType("Iterable<Object?>"),
  124866. JSArray_Argument: findType("JSArray<Argument>"),
  124867. JSArray_Argument_2: findType("JSArray<Argument0>"),
  124868. JSArray_AstNode: findType("JSArray<AstNode>"),
  124869. JSArray_AstNode_2: findType("JSArray<AstNode0>"),
  124870. JSArray_AsyncBuiltInCallable: findType("JSArray<AsyncBuiltInCallable>"),
  124871. JSArray_AsyncBuiltInCallable_2: findType("JSArray<AsyncBuiltInCallable0>"),
  124872. JSArray_AsyncCallable: findType("JSArray<AsyncCallable>"),
  124873. JSArray_AsyncCallable_2: findType("JSArray<AsyncCallable0>"),
  124874. JSArray_AsyncImporter: findType("JSArray<AsyncImporter0>"),
  124875. JSArray_AsyncImporter_2: findType("JSArray<AsyncImporter>"),
  124876. JSArray_BinaryOperator: findType("JSArray<BinaryOperator>"),
  124877. JSArray_BinaryOperator_2: findType("JSArray<BinaryOperator0>"),
  124878. JSArray_BuiltInCallable: findType("JSArray<BuiltInCallable>"),
  124879. JSArray_BuiltInCallable_2: findType("JSArray<BuiltInCallable0>"),
  124880. JSArray_Callable: findType("JSArray<Callable0>"),
  124881. JSArray_Callable_2: findType("JSArray<Callable>"),
  124882. JSArray_ColorChannel: findType("JSArray<ColorChannel>"),
  124883. JSArray_ColorChannel_2: findType("JSArray<ColorChannel0>"),
  124884. JSArray_ComplexSelector: findType("JSArray<ComplexSelector>"),
  124885. JSArray_ComplexSelectorComponent: findType("JSArray<ComplexSelectorComponent>"),
  124886. JSArray_ComplexSelectorComponent_2: findType("JSArray<ComplexSelectorComponent0>"),
  124887. JSArray_ComplexSelector_2: findType("JSArray<ComplexSelector0>"),
  124888. JSArray_ConfiguredVariable: findType("JSArray<ConfiguredVariable>"),
  124889. JSArray_ConfiguredVariable_2: findType("JSArray<ConfiguredVariable0>"),
  124890. JSArray_CssComment: findType("JSArray<CssComment>"),
  124891. JSArray_CssComment_2: findType("JSArray<CssComment0>"),
  124892. JSArray_CssMediaQuery: findType("JSArray<CssMediaQuery>"),
  124893. JSArray_CssMediaQuery_2: findType("JSArray<CssMediaQuery0>"),
  124894. JSArray_CssNode: findType("JSArray<CssNode>"),
  124895. JSArray_CssNode_2: findType("JSArray<CssNode0>"),
  124896. JSArray_CssStyleRule: findType("JSArray<CssStyleRule>"),
  124897. JSArray_CssStyleRule_2: findType("JSArray<CssStyleRule0>"),
  124898. JSArray_CssValue_Combinator: findType("JSArray<CssValue<Combinator>>"),
  124899. JSArray_CssValue_Combinator_2: findType("JSArray<CssValue0<Combinator0>>"),
  124900. JSArray_Entry: findType("JSArray<Entry>"),
  124901. JSArray_Expression: findType("JSArray<Expression>"),
  124902. JSArray_Expression_2: findType("JSArray<Expression0>"),
  124903. JSArray_Extender: findType("JSArray<Extender>"),
  124904. JSArray_Extender_2: findType("JSArray<Extender0>"),
  124905. JSArray_Extension: findType("JSArray<Extension>"),
  124906. JSArray_ExtensionStore: findType("JSArray<ExtensionStore>"),
  124907. JSArray_ExtensionStore_2: findType("JSArray<ExtensionStore0>"),
  124908. JSArray_Extension_2: findType("JSArray<Extension0>"),
  124909. JSArray_ForwardRule: findType("JSArray<ForwardRule>"),
  124910. JSArray_ForwardRule_2: findType("JSArray<ForwardRule0>"),
  124911. JSArray_Frame: findType("JSArray<Frame>"),
  124912. JSArray_Future_nullable_Record_3_int_and_String_and_nullable_String: findType("JSArray<Future<+(int,String,String?)?>>"),
  124913. JSArray_IfClause: findType("JSArray<IfClause>"),
  124914. JSArray_IfClause_2: findType("JSArray<IfClause0>"),
  124915. JSArray_Import: findType("JSArray<Import>"),
  124916. JSArray_Import_2: findType("JSArray<Import0>"),
  124917. JSArray_Importer: findType("JSArray<Importer>"),
  124918. JSArray_Importer_2: findType("JSArray<Importer0>"),
  124919. JSArray_Iterable_ComplexSelectorComponent: findType("JSArray<Iterable<ComplexSelectorComponent>>"),
  124920. JSArray_Iterable_ComplexSelectorComponent_2: findType("JSArray<Iterable<ComplexSelectorComponent0>>"),
  124921. JSArray_JSFunction: findType("JSArray<JSFunction0>"),
  124922. JSArray_LinearChannel: findType("JSArray<LinearChannel>"),
  124923. JSArray_LinearChannel_2: findType("JSArray<LinearChannel0>"),
  124924. JSArray_List_ComplexSelector: findType("JSArray<List<ComplexSelector>>"),
  124925. JSArray_List_ComplexSelectorComponent: findType("JSArray<List<ComplexSelectorComponent>>"),
  124926. JSArray_List_ComplexSelectorComponent_2: findType("JSArray<List<ComplexSelectorComponent0>>"),
  124927. JSArray_List_ComplexSelector_2: findType("JSArray<List<ComplexSelector0>>"),
  124928. JSArray_List_Extender: findType("JSArray<List<Extender>>"),
  124929. JSArray_List_Extender_2: findType("JSArray<List<Extender0>>"),
  124930. JSArray_List_Iterable_ComplexSelectorComponent: findType("JSArray<List<Iterable<ComplexSelectorComponent>>>"),
  124931. JSArray_List_Iterable_ComplexSelectorComponent_2: findType("JSArray<List<Iterable<ComplexSelectorComponent0>>>"),
  124932. JSArray_Map_String_AstNode: findType("JSArray<Map<String,AstNode>>"),
  124933. JSArray_Map_String_AstNode_2: findType("JSArray<Map<String,AstNode0>>"),
  124934. JSArray_Map_String_AsyncCallable: findType("JSArray<Map<String,AsyncCallable>>"),
  124935. JSArray_Map_String_AsyncCallable_2: findType("JSArray<Map<String,AsyncCallable0>>"),
  124936. JSArray_Map_String_Callable: findType("JSArray<Map<String,Callable0>>"),
  124937. JSArray_Map_String_Callable_2: findType("JSArray<Map<String,Callable>>"),
  124938. JSArray_Map_String_Value: findType("JSArray<Map<String,Value>>"),
  124939. JSArray_Map_String_Value_2: findType("JSArray<Map<String,Value0>>"),
  124940. JSArray_ModifiableCssImport: findType("JSArray<ModifiableCssImport>"),
  124941. JSArray_ModifiableCssImport_2: findType("JSArray<ModifiableCssImport0>"),
  124942. JSArray_ModifiableCssNode: findType("JSArray<ModifiableCssNode>"),
  124943. JSArray_ModifiableCssNode_2: findType("JSArray<ModifiableCssNode0>"),
  124944. JSArray_ModifiableCssParentNode: findType("JSArray<ModifiableCssParentNode>"),
  124945. JSArray_ModifiableCssParentNode_2: findType("JSArray<ModifiableCssParentNode0>"),
  124946. JSArray_Module_AsyncCallable: findType("JSArray<Module0<AsyncCallable>>"),
  124947. JSArray_Module_AsyncCallable_2: findType("JSArray<Module1<AsyncCallable0>>"),
  124948. JSArray_Module_Callable: findType("JSArray<Module0<Callable0>>"),
  124949. JSArray_Module_Callable_2: findType("JSArray<Module1<Callable>>"),
  124950. JSArray_Object: findType("JSArray<Object>"),
  124951. JSArray_PseudoSelector: findType("JSArray<PseudoSelector>"),
  124952. JSArray_PseudoSelector_2: findType("JSArray<PseudoSelector0>"),
  124953. JSArray_Record_2_ArgumentDeclaration_and_Value_Function_List_Value: findType("JSArray<+(ArgumentDeclaration,Value(List<Value>))>"),
  124954. JSArray_Record_2_ArgumentDeclaration_and_Value_Function_List_Value_2: findType("JSArray<+(ArgumentDeclaration0,Value0(List<Value0>))>"),
  124955. JSArray_Record_2_Expression_and_Expression: findType("JSArray<+(Expression,Expression)>"),
  124956. JSArray_Record_2_Expression_and_Expression_2: findType("JSArray<+(Expression0,Expression0)>"),
  124957. JSArray_Record_2_String_and_AstNode: findType("JSArray<+(String,AstNode)>"),
  124958. JSArray_Record_2_String_and_AstNode_2: findType("JSArray<+(String,AstNode0)>"),
  124959. JSArray_Record_3_nullable_Deprecation_deprecation_and_String_message_and_FileSpan_span: findType("JSArray<+deprecation,message,span(Deprecation?,String,FileSpan)>"),
  124960. JSArray_Record_3_nullable_Deprecation_deprecation_and_String_message_and_FileSpan_span_2: findType("JSArray<+deprecation,message,span(Deprecation0?,String,FileSpan)>"),
  124961. JSArray_SassList: findType("JSArray<SassList>"),
  124962. JSArray_SassList_2: findType("JSArray<SassList0>"),
  124963. JSArray_SimpleSelector: findType("JSArray<SimpleSelector>"),
  124964. JSArray_SimpleSelector_2: findType("JSArray<SimpleSelector0>"),
  124965. JSArray_SourceLocation: findType("JSArray<SourceLocation>"),
  124966. JSArray_Statement: findType("JSArray<Statement>"),
  124967. JSArray_Statement_2: findType("JSArray<Statement0>"),
  124968. JSArray_String: findType("JSArray<String>"),
  124969. JSArray_StylesheetNode: findType("JSArray<StylesheetNode>"),
  124970. JSArray_TargetEntry: findType("JSArray<TargetEntry>"),
  124971. JSArray_TargetLineEntry: findType("JSArray<TargetLineEntry>"),
  124972. JSArray_Trace: findType("JSArray<Trace>"),
  124973. JSArray_UseRule: findType("JSArray<UseRule>"),
  124974. JSArray_UseRule_2: findType("JSArray<UseRule0>"),
  124975. JSArray_Value: findType("JSArray<Value>"),
  124976. JSArray_Value_2: findType("JSArray<Value0>"),
  124977. JSArray_WatchEvent: findType("JSArray<WatchEvent>"),
  124978. JSArray__Highlight: findType("JSArray<_Highlight>"),
  124979. JSArray__Line: findType("JSArray<_Line>"),
  124980. JSArray_double: findType("JSArray<double>"),
  124981. JSArray_dynamic: findType("JSArray<@>"),
  124982. JSArray_int: findType("JSArray<int>"),
  124983. JSArray_nullable_FileSpan: findType("JSArray<FileSpan?>"),
  124984. JSArray_nullable_Record_3_int_and_String_and_nullable_String: findType("JSArray<+(int,String,String?)?>"),
  124985. JSArray_nullable_SassNumber: findType("JSArray<SassNumber?>"),
  124986. JSArray_nullable_SassNumber_2: findType("JSArray<SassNumber0?>"),
  124987. JSArray_nullable_String: findType("JSArray<String?>"),
  124988. JSClass: findType("JSClass0"),
  124989. JSFunction: findType("JSFunction0"),
  124990. JSImporter: findType("JSImporter"),
  124991. JSImporterResult: findType("JSImporterResult"),
  124992. JSNull: findType("JSNull"),
  124993. JSUrl: findType("JSUrl0"),
  124994. JavaScriptFunction: findType("JavaScriptFunction"),
  124995. JavaScriptIndexingBehavior_dynamic: findType("JavaScriptIndexingBehavior<@>"),
  124996. JsIdentityLinkedHashMap_SimpleSelector_int: findType("JsIdentityLinkedHashMap<SimpleSelector,int>"),
  124997. JsIdentityLinkedHashMap_SimpleSelector_int_2: findType("JsIdentityLinkedHashMap<SimpleSelector0,int>"),
  124998. JsIdentityLinkedHashMap_of_SelectorList_and_Box_SelectorList: findType("JsIdentityLinkedHashMap<SelectorList,Box<SelectorList>>"),
  124999. JsIdentityLinkedHashMap_of_SelectorList_and_Box_SelectorList_2: findType("JsIdentityLinkedHashMap<SelectorList0,Box0<SelectorList0>>"),
  125000. JsLinkedHashMap_Symbol_dynamic: findType("JsLinkedHashMap<Symbol0,@>"),
  125001. JsSystemError: findType("JsSystemError"),
  125002. LimitedMapView_String_ConfiguredValue: findType("LimitedMapView<String,ConfiguredValue>"),
  125003. LimitedMapView_String_ConfiguredValue_2: findType("LimitedMapView0<String,ConfiguredValue0>"),
  125004. LinearChannel: findType("LinearChannel"),
  125005. LinearChannel_2: findType("LinearChannel0"),
  125006. List_ComplexSelectorComponent: findType("List<ComplexSelectorComponent>"),
  125007. List_ComplexSelectorComponent_2: findType("List<ComplexSelectorComponent0>"),
  125008. List_CssComment: findType("List<CssComment>"),
  125009. List_CssComment_2: findType("List<CssComment0>"),
  125010. List_CssMediaQuery: findType("List<CssMediaQuery>"),
  125011. List_CssMediaQuery_2: findType("List<CssMediaQuery0>"),
  125012. List_CssValue_Combinator: findType("List<CssValue<Combinator>>"),
  125013. List_CssValue_Combinator_2: findType("List<CssValue0<Combinator0>>"),
  125014. List_Extension: findType("List<Extension>"),
  125015. List_ExtensionStore: findType("List<ExtensionStore>"),
  125016. List_ExtensionStore_2: findType("List<ExtensionStore0>"),
  125017. List_Extension_2: findType("List<Extension0>"),
  125018. List_List_ComplexSelectorComponent: findType("List<List<ComplexSelectorComponent>>"),
  125019. List_List_ComplexSelectorComponent_2: findType("List<List<ComplexSelectorComponent0>>"),
  125020. List_Module_AsyncCallable: findType("List<Module0<AsyncCallable>>"),
  125021. List_Module_AsyncCallable_2: findType("List<Module1<AsyncCallable0>>"),
  125022. List_Module_Callable: findType("List<Module0<Callable0>>"),
  125023. List_Module_Callable_2: findType("List<Module1<Callable>>"),
  125024. List_String: findType("List<String>"),
  125025. List_WatchEvent: findType("List<WatchEvent>"),
  125026. List_dynamic: findType("List<@>"),
  125027. List_int: findType("List<int>"),
  125028. List_nullable_Object: findType("List<Object?>"),
  125029. MapKeySet_Module_AsyncCallable: findType("MapKeySet<Module0<AsyncCallable>>"),
  125030. MapKeySet_Module_AsyncCallable_2: findType("MapKeySet<Module1<AsyncCallable0>>"),
  125031. MapKeySet_Module_Callable: findType("MapKeySet<Module0<Callable0>>"),
  125032. MapKeySet_Module_Callable_2: findType("MapKeySet<Module1<Callable>>"),
  125033. MapKeySet_SimpleSelector: findType("MapKeySet<SimpleSelector>"),
  125034. MapKeySet_SimpleSelector_2: findType("MapKeySet<SimpleSelector0>"),
  125035. MapKeySet_String: findType("MapKeySet<String>"),
  125036. MapKeySet_nullable_Object: findType("MapKeySet<Object?>"),
  125037. Map_ComplexSelector_Extension: findType("Map<ComplexSelector,Extension>"),
  125038. Map_ComplexSelector_Extension_2: findType("Map<ComplexSelector0,Extension0>"),
  125039. Map_String_AstNode: findType("Map<String,AstNode>"),
  125040. Map_String_AstNode_2: findType("Map<String,AstNode0>"),
  125041. Map_String_AsyncCallable: findType("Map<String,AsyncCallable>"),
  125042. Map_String_AsyncCallable_2: findType("Map<String,AsyncCallable0>"),
  125043. Map_String_Callable: findType("Map<String,Callable0>"),
  125044. Map_String_Callable_2: findType("Map<String,Callable>"),
  125045. Map_String_Value: findType("Map<String,Value>"),
  125046. Map_String_Value_2: findType("Map<String,Value0>"),
  125047. Map_String_dynamic: findType("Map<String,@>"),
  125048. Map_dynamic_dynamic: findType("Map<@,@>"),
  125049. Map_of_nullable_Object_and_nullable_Object: findType("Map<Object?,Object?>"),
  125050. MappedIterable_String_Frame: findType("MappedIterable<String,Frame>"),
  125051. MappedListIterable_Frame_Frame: findType("MappedListIterable<Frame,Frame>"),
  125052. MappedListIterable_String_Object: findType("MappedListIterable<String,Object>"),
  125053. MappedListIterable_String_String: findType("MappedListIterable<String,String>"),
  125054. MappedListIterable_String_Trace: findType("MappedListIterable<String,Trace>"),
  125055. MappedListIterable_String_Value: findType("MappedListIterable<String,Value>"),
  125056. MappedListIterable_String_Value_2: findType("MappedListIterable<String,Value0>"),
  125057. MappedListIterable_String_dynamic: findType("MappedListIterable<String,@>"),
  125058. MixinRule: findType("MixinRule"),
  125059. MixinRule_2: findType("MixinRule0"),
  125060. ModifiableBox_SelectorList: findType("ModifiableBox<SelectorList>"),
  125061. ModifiableBox_SelectorList_2: findType("ModifiableBox0<SelectorList0>"),
  125062. ModifiableCssAtRule: findType("ModifiableCssAtRule"),
  125063. ModifiableCssAtRule_2: findType("ModifiableCssAtRule0"),
  125064. ModifiableCssKeyframeBlock: findType("ModifiableCssKeyframeBlock"),
  125065. ModifiableCssKeyframeBlock_2: findType("ModifiableCssKeyframeBlock0"),
  125066. ModifiableCssMediaRule: findType("ModifiableCssMediaRule"),
  125067. ModifiableCssMediaRule_2: findType("ModifiableCssMediaRule0"),
  125068. ModifiableCssNode: findType("ModifiableCssNode"),
  125069. ModifiableCssNode_2: findType("ModifiableCssNode0"),
  125070. ModifiableCssParentNode: findType("ModifiableCssParentNode"),
  125071. ModifiableCssParentNode_2: findType("ModifiableCssParentNode0"),
  125072. ModifiableCssStyleRule: findType("ModifiableCssStyleRule"),
  125073. ModifiableCssStyleRule_2: findType("ModifiableCssStyleRule0"),
  125074. ModifiableCssSupportsRule: findType("ModifiableCssSupportsRule"),
  125075. ModifiableCssSupportsRule_2: findType("ModifiableCssSupportsRule0"),
  125076. Module_AsyncCallable: findType("Module0<AsyncCallable>"),
  125077. Module_AsyncCallable_2: findType("Module1<AsyncCallable0>"),
  125078. Module_Callable: findType("Module0<Callable0>"),
  125079. Module_Callable_2: findType("Module1<Callable>"),
  125080. MultiSourceSpanFormatException: findType("MultiSourceSpanFormatException"),
  125081. NativeTypedArrayOfDouble: findType("NativeTypedArrayOfDouble"),
  125082. NativeTypedArrayOfInt: findType("NativeTypedArrayOfInt"),
  125083. NativeUint8List: findType("NativeUint8List"),
  125084. Never: findType("0&"),
  125085. NodeCompileResult: findType("NodeCompileResult"),
  125086. NodeImporterResult: findType("NodeImporterResult0"),
  125087. NonNullsIterable_Future_void: findType("NonNullsIterable<Future<~>>"),
  125088. NonNullsIterable_Object: findType("NonNullsIterable<Object>"),
  125089. NonNullsIterable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl: findType("NonNullsIterable<+originalUrl(AsyncImporter,Uri,Uri)>"),
  125090. NonNullsIterable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl_2: findType("NonNullsIterable<+originalUrl(AsyncImporter0,Uri,Uri)>"),
  125091. NonNullsIterable_Record_3_Importer_and_Uri_and_Uri_originalUrl: findType("NonNullsIterable<+originalUrl(Importer,Uri,Uri)>"),
  125092. NonNullsIterable_Record_3_Importer_and_Uri_and_Uri_originalUrl_2: findType("NonNullsIterable<+originalUrl(Importer0,Uri,Uri)>"),
  125093. NonNullsIterable_SelectorList: findType("NonNullsIterable<SelectorList>"),
  125094. NonNullsIterable_SelectorList_2: findType("NonNullsIterable<SelectorList0>"),
  125095. NonNullsIterable_String: findType("NonNullsIterable<String>"),
  125096. Null: findType("Null"),
  125097. NumberExpression: findType("NumberExpression"),
  125098. NumberExpression_2: findType("NumberExpression0"),
  125099. Object: findType("Object"),
  125100. Option: findType("Option"),
  125101. ParcelWatcherEvent: findType("ParcelWatcherEvent"),
  125102. ParcelWatcherSubscription: findType("ParcelWatcherSubscription"),
  125103. PathMap_ChangeType: findType("PathMap<ChangeType>"),
  125104. PathMap_Stream_WatchEvent: findType("PathMap<Stream<WatchEvent>>"),
  125105. PathMap_String: findType("PathMap<String>"),
  125106. PathMap_nullable_String: findType("PathMap<String?>"),
  125107. Promise: findType("Promise"),
  125108. PseudoSelector: findType("PseudoSelector"),
  125109. PseudoSelector_2: findType("PseudoSelector0"),
  125110. RangeError: findType("RangeError"),
  125111. Record: findType("Record"),
  125112. Record_0: findType("+()"),
  125113. Record_1_nullable_Object: findType("+(Object?)"),
  125114. Record_2_Expression_and_Expression: findType("+(Expression,Expression)"),
  125115. Record_2_Expression_and_Expression_2: findType("+(Expression0,Expression0)"),
  125116. Record_2_List_Expression_and_Map_String_Expression: findType("+(List<Expression>,Map<String,Expression>)"),
  125117. Record_2_List_Expression_and_Map_String_Expression_2: findType("+(List<Expression0>,Map<String,Expression0>)"),
  125118. Record_2_Set_Uri_loadedUrls_and_CssStylesheet_stylesheet: findType("+loadedUrls,stylesheet(Set<Uri>,CssStylesheet)"),
  125119. Record_2_Set_Uri_loadedUrls_and_CssStylesheet_stylesheet_2: findType("+loadedUrls,stylesheet(Set<Uri>,CssStylesheet0)"),
  125120. Record_2_String_and_InterpolationMap: findType("+(String,InterpolationMap)"),
  125121. Record_2_String_and_InterpolationMap_2: findType("+(String,InterpolationMap0)"),
  125122. Record_2_String_and_SourceSpan: findType("+(String,SourceSpan)"),
  125123. Record_2_String_and_nullable_InterpolationMap: findType("+(String,InterpolationMap?)"),
  125124. Record_2_String_and_nullable_InterpolationMap_2: findType("+(String,InterpolationMap0?)"),
  125125. Record_2_Uri_and_bool_forImport: findType("+forImport(Uri,bool)"),
  125126. Record_2_nullable_Object_and_nullable_Object: findType("+(Object?,Object?)"),
  125127. Record_2_nullable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl_and_bool: findType("+(+originalUrl(AsyncImporter,Uri,Uri)?,bool)"),
  125128. Record_2_nullable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl_and_bool_2: findType("+(+originalUrl(AsyncImporter0,Uri,Uri)?,bool)"),
  125129. Record_2_nullable_String_and_nullable_String: findType("+(String?,String?)"),
  125130. Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl: findType("+originalUrl(AsyncImporter,Uri,Uri)"),
  125131. Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl_2: findType("+originalUrl(AsyncImporter0,Uri,Uri)"),
  125132. Record_3_AsyncImporter_and_Uri_and_bool_forImport: findType("+forImport(AsyncImporter,Uri,bool)"),
  125133. Record_3_AsyncImporter_and_Uri_and_bool_forImport_2: findType("+forImport(AsyncImporter0,Uri,bool)"),
  125134. Record_3_Importer_and_Uri_and_Uri_originalUrl: findType("+originalUrl(Importer,Uri,Uri)"),
  125135. Record_3_Importer_and_Uri_and_Uri_originalUrl_2: findType("+originalUrl(Importer0,Uri,Uri)"),
  125136. Record_3_Importer_and_Uri_and_bool_forImport: findType("+forImport(Importer,Uri,bool)"),
  125137. Record_3_Importer_and_Uri_and_bool_forImport_2: findType("+forImport(Importer0,Uri,bool)"),
  125138. Record_3_Stylesheet_and_nullable_AsyncImporter_importer_and_bool_isDependency: findType("+importer,isDependency(Stylesheet,AsyncImporter?,bool)"),
  125139. Record_3_Stylesheet_and_nullable_AsyncImporter_importer_and_bool_isDependency_2: findType("+importer,isDependency(Stylesheet0,AsyncImporter0?,bool)"),
  125140. Record_3_nullable_Object_and_nullable_Object_and_nullable_Object_originalUrl: findType("+originalUrl(Object?,Object?,Object?)"),
  125141. Record_5_Map_String_Value_named_and_Map_String_AstNode_namedNodes_and_List_Value_positional_and_List_AstNode_positionalNodes_and_ListSeparator_separator: findType("+named,namedNodes,positional,positionalNodes,separator(Map<String,Value>,Map<String,AstNode>,List<Value>,List<AstNode>,ListSeparator)"),
  125142. Record_5_Map_String_Value_named_and_Map_String_AstNode_namedNodes_and_List_Value_positional_and_List_AstNode_positionalNodes_and_ListSeparator_separator_2: findType("+named,namedNodes,positional,positionalNodes,separator(Map<String,Value0>,Map<String,AstNode0>,List<Value0>,List<AstNode0>,ListSeparator0)"),
  125143. RegExpMatch: findType("RegExpMatch"),
  125144. RenderContextOptions: findType("RenderContextOptions0"),
  125145. RenderResult: findType("RenderResult"),
  125146. Result_String: findType("Result<String>"),
  125147. ReversedListIterable_Frame: findType("ReversedListIterable<Frame>"),
  125148. Runes: findType("Runes"),
  125149. SassArgumentList: findType("SassArgumentList"),
  125150. SassArgumentList_2: findType("SassArgumentList0"),
  125151. SassBoolean: findType("SassBoolean"),
  125152. SassBoolean_2: findType("SassBoolean0"),
  125153. SassColor: findType("SassColor"),
  125154. SassColor_2: findType("SassColor0"),
  125155. SassFormatException: findType("SassFormatException"),
  125156. SassFormatException_2: findType("SassFormatException0"),
  125157. SassList: findType("SassList"),
  125158. SassList_2: findType("SassList0"),
  125159. SassMap: findType("SassMap"),
  125160. SassMap_2: findType("SassMap0"),
  125161. SassNumber: findType("SassNumber"),
  125162. SassNumber_2: findType("SassNumber0"),
  125163. SassRuntimeException: findType("SassRuntimeException"),
  125164. SassRuntimeException_2: findType("SassRuntimeException0"),
  125165. SassString: findType("SassString"),
  125166. SassString_2: findType("SassString0"),
  125167. SelectorList: findType("SelectorList"),
  125168. SelectorList_2: findType("SelectorList0"),
  125169. Set_ModifiableBox_SelectorList: findType("Set<ModifiableBox<SelectorList>>"),
  125170. Set_ModifiableBox_SelectorList_2: findType("Set<ModifiableBox0<SelectorList0>>"),
  125171. Set_Uri: findType("Set<Uri>"),
  125172. SimpleSelector: findType("SimpleSelector"),
  125173. SimpleSelector_2: findType("SimpleSelector0"),
  125174. SourceFile: findType("SourceFile"),
  125175. SourceLocation: findType("SourceLocation"),
  125176. SourceSpan: findType("SourceSpan"),
  125177. SourceSpanFormatException: findType("SourceSpanFormatException"),
  125178. SourceSpanWithContext: findType("SourceSpanWithContext"),
  125179. StackTrace: findType("StackTrace"),
  125180. Statement: findType("Statement"),
  125181. Statement_2: findType("Statement0"),
  125182. StaticImport: findType("StaticImport"),
  125183. StaticImport_2: findType("StaticImport0"),
  125184. StreamCompleter_WatchEvent: findType("StreamCompleter<WatchEvent>"),
  125185. StreamGroup_WatchEvent: findType("StreamGroup<WatchEvent>"),
  125186. StreamQueue_String: findType("StreamQueue<String>"),
  125187. Stream_WatchEvent: findType("Stream<WatchEvent>"),
  125188. String: findType("String"),
  125189. StringExpression: findType("StringExpression"),
  125190. StringExpression_2: findType("StringExpression0"),
  125191. StylesheetNode: findType("StylesheetNode"),
  125192. Timer: findType("Timer"),
  125193. Trace: findType("Trace"),
  125194. TrustedGetRuntimeType: findType("TrustedGetRuntimeType"),
  125195. TypeError: findType("TypeError"),
  125196. TypeSelector: findType("TypeSelector"),
  125197. TypeSelector_2: findType("TypeSelector0"),
  125198. Uint16List: findType("Uint16List"),
  125199. Uint32List: findType("Uint32List"),
  125200. Uint8ClampedList: findType("Uint8ClampedList"),
  125201. Uint8List: findType("Uint8List"),
  125202. UnionSet_Uri: findType("UnionSet<Uri>"),
  125203. UnknownJavaScriptObject: findType("UnknownJavaScriptObject"),
  125204. UnmodifiableListView_CssComment: findType("UnmodifiableListView<CssComment>"),
  125205. UnmodifiableListView_CssComment_2: findType("UnmodifiableListView<CssComment0>"),
  125206. UnmodifiableListView_CssNode: findType("UnmodifiableListView<CssNode>"),
  125207. UnmodifiableListView_CssNode_2: findType("UnmodifiableListView<CssNode0>"),
  125208. UnmodifiableListView_ForwardRule: findType("UnmodifiableListView<ForwardRule>"),
  125209. UnmodifiableListView_ForwardRule_2: findType("UnmodifiableListView<ForwardRule0>"),
  125210. UnmodifiableListView_ModifiableCssNode: findType("UnmodifiableListView<ModifiableCssNode>"),
  125211. UnmodifiableListView_ModifiableCssNode_2: findType("UnmodifiableListView<ModifiableCssNode0>"),
  125212. UnmodifiableListView_Record_3_nullable_Deprecation_deprecation_and_String_message_and_FileSpan_span: findType("UnmodifiableListView<+deprecation,message,span(Deprecation?,String,FileSpan)>"),
  125213. UnmodifiableListView_Record_3_nullable_Deprecation_deprecation_and_String_message_and_FileSpan_span_2: findType("UnmodifiableListView<+deprecation,message,span(Deprecation0?,String,FileSpan)>"),
  125214. UnmodifiableListView_String: findType("UnmodifiableListView<String>"),
  125215. UnmodifiableListView_UseRule: findType("UnmodifiableListView<UseRule>"),
  125216. UnmodifiableListView_UseRule_2: findType("UnmodifiableListView<UseRule0>"),
  125217. UnmodifiableMapView_String_ArgParser: findType("UnmodifiableMapView<String,ArgParser>"),
  125218. UnmodifiableMapView_String_ConfiguredValue: findType("UnmodifiableMapView<String,ConfiguredValue>"),
  125219. UnmodifiableMapView_String_ConfiguredValue_2: findType("UnmodifiableMapView<String,ConfiguredValue0>"),
  125220. UnmodifiableMapView_String_Option: findType("UnmodifiableMapView<String,Option>"),
  125221. UnmodifiableMapView_String_Value: findType("UnmodifiableMapView<String,Value>"),
  125222. UnmodifiableMapView_String_Value_2: findType("UnmodifiableMapView<String,Value0>"),
  125223. UnmodifiableMapView_of_Uri_and_nullable_StylesheetNode: findType("UnmodifiableMapView<Uri,StylesheetNode?>"),
  125224. UnmodifiableMapView_of_nullable_String_and_String: findType("UnmodifiableMapView<String?,String>"),
  125225. UnmodifiableMapView_of_nullable_String_and_nullable_String: findType("UnmodifiableMapView<String?,String?>"),
  125226. UnmodifiableSetView_String: findType("UnmodifiableSetView0<String>"),
  125227. UnmodifiableSetView_StylesheetNode: findType("UnmodifiableSetView0<StylesheetNode>"),
  125228. UnmodifiableSetView_Uri: findType("UnmodifiableSetView0<Uri>"),
  125229. UnprefixedMapView_ConfiguredValue: findType("UnprefixedMapView<ConfiguredValue>"),
  125230. UnprefixedMapView_ConfiguredValue_2: findType("UnprefixedMapView0<ConfiguredValue0>"),
  125231. Uri: findType("Uri"),
  125232. UseRule: findType("UseRule"),
  125233. UserDefinedCallable_AsyncEnvironment: findType("UserDefinedCallable<AsyncEnvironment>"),
  125234. UserDefinedCallable_AsyncEnvironment_2: findType("UserDefinedCallable0<AsyncEnvironment0>"),
  125235. UserDefinedCallable_Environment: findType("UserDefinedCallable<Environment>"),
  125236. UserDefinedCallable_Environment_2: findType("UserDefinedCallable0<Environment0>"),
  125237. Value: findType("Value"),
  125238. Value_2: findType("Value0"),
  125239. Value_Function_List_Value: findType("Value(List<Value>)"),
  125240. Value_Function_List_Value_2: findType("Value0(List<Value0>)"),
  125241. VariableDeclaration: findType("VariableDeclaration"),
  125242. VariableDeclaration_2: findType("VariableDeclaration0"),
  125243. VersionRange: findType("VersionRange"),
  125244. WatchEvent: findType("WatchEvent"),
  125245. WhereIterable_List_Iterable_ComplexSelectorComponent: findType("WhereIterable<List<Iterable<ComplexSelectorComponent>>>"),
  125246. WhereIterable_List_Iterable_ComplexSelectorComponent_2: findType("WhereIterable<List<Iterable<ComplexSelectorComponent0>>>"),
  125247. WhereIterable_String: findType("WhereIterable<String>"),
  125248. WhereTypeIterable_PseudoSelector: findType("WhereTypeIterable<PseudoSelector>"),
  125249. WhereTypeIterable_PseudoSelector_2: findType("WhereTypeIterable<PseudoSelector0>"),
  125250. WhereTypeIterable_String: findType("WhereTypeIterable<String>"),
  125251. _AsyncCompleter_List_void: findType("_AsyncCompleter<List<~>>"),
  125252. _AsyncCompleter_Object: findType("_AsyncCompleter<Object>"),
  125253. _AsyncCompleter_Stream_WatchEvent: findType("_AsyncCompleter<Stream<WatchEvent>>"),
  125254. _AsyncCompleter_String: findType("_AsyncCompleter<String>"),
  125255. _AsyncCompleter_nullable_Object: findType("_AsyncCompleter<Object?>"),
  125256. _CompleterStream_WatchEvent: findType("_CompleterStream<WatchEvent>"),
  125257. _EventRequest_dynamic: findType("_EventRequest<@>"),
  125258. _Future_List_void: findType("_Future<List<~>>"),
  125259. _Future_Object: findType("_Future<Object>"),
  125260. _Future_Stream_WatchEvent: findType("_Future<Stream<WatchEvent>>"),
  125261. _Future_String: findType("_Future<String>"),
  125262. _Future_Value: findType("_Future<Value>"),
  125263. _Future_Value_2: findType("_Future<Value0>"),
  125264. _Future_bool: findType("_Future<bool>"),
  125265. _Future_dynamic: findType("_Future<@>"),
  125266. _Future_int: findType("_Future<int>"),
  125267. _Future_nullable_Object: findType("_Future<Object?>"),
  125268. _Future_void: findType("_Future<~>"),
  125269. _Highlight: findType("_Highlight"),
  125270. _IdentityHashMap_of_nullable_Object_and_nullable_Object: findType("_IdentityHashMap<Object?,Object?>"),
  125271. _LinkedIdentityHashSet_ComplexSelector: findType("_LinkedIdentityHashSet<ComplexSelector>"),
  125272. _LinkedIdentityHashSet_ComplexSelector_2: findType("_LinkedIdentityHashSet<ComplexSelector0>"),
  125273. _LinkedIdentityHashSet_Extension: findType("_LinkedIdentityHashSet<Extension>"),
  125274. _LinkedIdentityHashSet_Extension_2: findType("_LinkedIdentityHashSet<Extension0>"),
  125275. _MapEntry: findType("_MapEntry"),
  125276. _NodeException: findType("_NodeException"),
  125277. _PlatformUri: findType("_PlatformUri"),
  125278. _SyncStarIterable_Deprecation: findType("_SyncStarIterable<Deprecation0>"),
  125279. _SyncStarIterable_Extension: findType("_SyncStarIterable<Extension>"),
  125280. _SyncStarIterable_Extension_2: findType("_SyncStarIterable<Extension0>"),
  125281. _SyncStarIterable_SimpleSelector: findType("_SyncStarIterable<SimpleSelector>"),
  125282. _SyncStarIterable_SimpleSelector_2: findType("_SyncStarIterable<SimpleSelector0>"),
  125283. _SyncStarIterable_String: findType("_SyncStarIterable<String>"),
  125284. bool: findType("bool"),
  125285. double: findType("double"),
  125286. dynamic: findType("@"),
  125287. dynamic_Function: findType("@()"),
  125288. dynamic_Function_Object: findType("@(Object)"),
  125289. dynamic_Function_Object_StackTrace: findType("@(Object,StackTrace)"),
  125290. int: findType("int"),
  125291. legacy_Never: findType("0&*"),
  125292. legacy_Object: findType("Object*"),
  125293. nullable_AstNode: findType("AstNode?"),
  125294. nullable_AstNode_2: findType("AstNode0?"),
  125295. nullable_CanonicalizeContext: findType("CanonicalizeContext?"),
  125296. nullable_CanonicalizeContext_2: findType("CanonicalizeContext0?"),
  125297. nullable_CssValue_String: findType("CssValue<String>?"),
  125298. nullable_CssValue_String_2: findType("CssValue0<String>?"),
  125299. nullable_FileSpan: findType("FileSpan?"),
  125300. nullable_Future_Null: findType("Future<Null>?"),
  125301. nullable_Future_void: findType("Future<~>?"),
  125302. nullable_ImporterResult: findType("ImporterResult?"),
  125303. nullable_ImporterResult_2: findType("ImporterResult0?"),
  125304. nullable_Object: findType("Object?"),
  125305. nullable_Record_2_String_and_String: findType("+(String,String)?"),
  125306. nullable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl: findType("+originalUrl(AsyncImporter,Uri,Uri)?"),
  125307. nullable_Record_3_AsyncImporter_and_Uri_and_Uri_originalUrl_2: findType("+originalUrl(AsyncImporter0,Uri,Uri)?"),
  125308. nullable_Record_3_Importer_and_Uri_and_Uri_originalUrl: findType("+originalUrl(Importer,Uri,Uri)?"),
  125309. nullable_Record_3_Importer_and_Uri_and_Uri_originalUrl_2: findType("+originalUrl(Importer0,Uri,Uri)?"),
  125310. nullable_Record_3_Stylesheet_and_nullable_AsyncImporter_importer_and_bool_isDependency: findType("+importer,isDependency(Stylesheet0,AsyncImporter0?,bool)?"),
  125311. nullable_Record_3_int_and_String_and_nullable_String: findType("+(int,String,String?)?"),
  125312. nullable_SourceFile: findType("SourceFile?"),
  125313. nullable_SourceSpan: findType("SourceSpan?"),
  125314. nullable_StreamSubscription_WatchEvent: findType("StreamSubscription<WatchEvent>?"),
  125315. nullable_String: findType("String?"),
  125316. nullable_Stylesheet: findType("Stylesheet?"),
  125317. nullable_StylesheetNode: findType("StylesheetNode?"),
  125318. nullable_Stylesheet_2: findType("Stylesheet0?"),
  125319. nullable_Uri: findType("Uri?"),
  125320. nullable_Value: findType("Value?"),
  125321. nullable_Value_2: findType("Value0?"),
  125322. nullable__ConstructorOptions: findType("_ConstructorOptions?"),
  125323. nullable__ConstructorOptions_2: findType("_ConstructorOptions0?"),
  125324. nullable__ConstructorOptions_3: findType("_ConstructorOptions1?"),
  125325. nullable__Highlight: findType("_Highlight?"),
  125326. nullable_double: findType("double?"),
  125327. num: findType("num"),
  125328. void: findType("~"),
  125329. void_Function_Object: findType("~(Object)"),
  125330. void_Function_Object_StackTrace: findType("~(Object,StackTrace)")
  125331. };
  125332. })();
  125333. (function constants() {
  125334. var makeConstList = hunkHelpers.makeConstList;
  125335. B.Interceptor_methods = J.Interceptor.prototype;
  125336. B.JSArray_methods = J.JSArray.prototype;
  125337. B.JSBool_methods = J.JSBool.prototype;
  125338. B.JSInt_methods = J.JSInt.prototype;
  125339. B.JSNull_methods = J.JSNull.prototype;
  125340. B.JSNumber_methods = J.JSNumber.prototype;
  125341. B.JSString_methods = J.JSString.prototype;
  125342. B.JavaScriptFunction_methods = J.JavaScriptFunction.prototype;
  125343. B.JavaScriptObject_methods = J.JavaScriptObject.prototype;
  125344. B.NativeUint32List_methods = A.NativeUint32List.prototype;
  125345. B.NativeUint8List_methods = A.NativeUint8List.prototype;
  125346. B.PlainJavaScriptObject_methods = J.PlainJavaScriptObject.prototype;
  125347. B.UnknownJavaScriptObject_methods = J.UnknownJavaScriptObject.prototype;
  125348. B.LinearChannel_4KI = new A.LinearChannel(0, 1, false, false, false, "red", false, null);
  125349. B.LinearChannel_qbH = new A.LinearChannel(0, 1, false, false, false, "green", false, null);
  125350. B.LinearChannel_W3m = new A.LinearChannel(0, 1, false, false, false, "blue", false, null);
  125351. B.List_V3K = A._setArrayType(makeConstList([B.LinearChannel_4KI, B.LinearChannel_qbH, B.LinearChannel_W3m]), type$.JSArray_LinearChannel);
  125352. B.A98RgbColorSpace_bdu = new A.A98RgbColorSpace("a98-rgb", B.List_V3K);
  125353. B.LinearChannel_4KI0 = new A.LinearChannel0(0, 1, false, false, false, "red", false, null);
  125354. B.LinearChannel_qbH0 = new A.LinearChannel0(0, 1, false, false, false, "green", false, null);
  125355. B.LinearChannel_W3m0 = new A.LinearChannel0(0, 1, false, false, false, "blue", false, null);
  125356. B.List_V3K0 = A._setArrayType(makeConstList([B.LinearChannel_4KI0, B.LinearChannel_qbH0, B.LinearChannel_W3m0]), type$.JSArray_LinearChannel_2);
  125357. B.A98RgbColorSpace_bdu0 = new A.A98RgbColorSpace0("a98-rgb", B.List_V3K0);
  125358. B.AsciiEncoder_127 = new A.AsciiEncoder(127);
  125359. B.C_EmptyUnmodifiableSet1 = new A.EmptyUnmodifiableSet(A.findType("EmptyUnmodifiableSet<String>"));
  125360. B.AtRootQuery_n2q = new A.AtRootQuery(false, B.C_EmptyUnmodifiableSet1, false, true);
  125361. B.AtRootQuery_n2q0 = new A.AtRootQuery0(false, B.C_EmptyUnmodifiableSet1, false, true);
  125362. B.AttributeOperator_4QF = new A.AttributeOperator("=", "equal");
  125363. B.AttributeOperator_4QF0 = new A.AttributeOperator0("=", "equal");
  125364. B.AttributeOperator_61T = new A.AttributeOperator("*=", "substring");
  125365. B.AttributeOperator_61T0 = new A.AttributeOperator0("*=", "substring");
  125366. B.AttributeOperator_cMb = new A.AttributeOperator("^=", "prefix");
  125367. B.AttributeOperator_cMb0 = new A.AttributeOperator0("^=", "prefix");
  125368. B.AttributeOperator_jqB = new A.AttributeOperator("|=", "dash");
  125369. B.AttributeOperator_jqB0 = new A.AttributeOperator0("|=", "dash");
  125370. B.AttributeOperator_qhE = new A.AttributeOperator("$=", "suffix");
  125371. B.AttributeOperator_qhE0 = new A.AttributeOperator0("$=", "suffix");
  125372. B.AttributeOperator_yT8 = new A.AttributeOperator("~=", "include");
  125373. B.AttributeOperator_yT80 = new A.AttributeOperator0("~=", "include");
  125374. B.BinaryOperator_2No = new A.BinaryOperator("times", "*", 6, true, "times");
  125375. B.BinaryOperator_2No0 = new A.BinaryOperator0("times", "*", 6, true, "times");
  125376. B.BinaryOperator_KNx = new A.BinaryOperator("modulo", "%", 6, false, "modulo");
  125377. B.BinaryOperator_KNx0 = new A.BinaryOperator0("modulo", "%", 6, false, "modulo");
  125378. B.BinaryOperator_SPQ = new A.BinaryOperator("less than or equals", "<=", 4, false, "lessThanOrEquals");
  125379. B.BinaryOperator_SPQ0 = new A.BinaryOperator0("less than or equals", "<=", 4, false, "lessThanOrEquals");
  125380. B.BinaryOperator_SjO = new A.BinaryOperator("minus", "-", 5, false, "minus");
  125381. B.BinaryOperator_SjO0 = new A.BinaryOperator0("minus", "-", 5, false, "minus");
  125382. B.BinaryOperator_U77 = new A.BinaryOperator("divided by", "/", 6, false, "dividedBy");
  125383. B.BinaryOperator_U770 = new A.BinaryOperator0("divided by", "/", 6, false, "dividedBy");
  125384. B.BinaryOperator_bEa = new A.BinaryOperator("greater than", ">", 4, false, "greaterThan");
  125385. B.BinaryOperator_bEa0 = new A.BinaryOperator0("greater than", ">", 4, false, "greaterThan");
  125386. B.BinaryOperator_eDt = new A.BinaryOperator("and", "and", 2, true, "and");
  125387. B.BinaryOperator_eDt0 = new A.BinaryOperator0("and", "and", 2, true, "and");
  125388. B.BinaryOperator_g8k = new A.BinaryOperator("equals", "==", 3, false, "equals");
  125389. B.BinaryOperator_g8k0 = new A.BinaryOperator0("equals", "==", 3, false, "equals");
  125390. B.BinaryOperator_icU = new A.BinaryOperator("not equals", "!=", 3, false, "notEquals");
  125391. B.BinaryOperator_icU0 = new A.BinaryOperator0("not equals", "!=", 3, false, "notEquals");
  125392. B.BinaryOperator_miq = new A.BinaryOperator("less than", "<", 4, false, "lessThan");
  125393. B.BinaryOperator_miq0 = new A.BinaryOperator0("less than", "<", 4, false, "lessThan");
  125394. B.BinaryOperator_oEm = new A.BinaryOperator("greater than or equals", ">=", 4, false, "greaterThanOrEquals");
  125395. B.BinaryOperator_oEm0 = new A.BinaryOperator0("greater than or equals", ">=", 4, false, "greaterThanOrEquals");
  125396. B.BinaryOperator_qNM = new A.BinaryOperator("or", "or", 1, true, "or");
  125397. B.BinaryOperator_qNM0 = new A.BinaryOperator0("or", "or", 1, true, "or");
  125398. B.BinaryOperator_u15 = new A.BinaryOperator("plus", "+", 5, true, "plus");
  125399. B.BinaryOperator_u150 = new A.BinaryOperator0("plus", "+", 5, true, "plus");
  125400. B.BinaryOperator_wdM = new A.BinaryOperator("single equals", "=", 0, false, "singleEquals");
  125401. B.BinaryOperator_wdM0 = new A.BinaryOperator0("single equals", "=", 0, false, "singleEquals");
  125402. B.CONSTANT = new A.Instantiation1(A.math0__max$closure(), A.findType("Instantiation1<int>"));
  125403. B.C_AsciiCodec = new A.AsciiCodec();
  125404. B.C_AsciiGlyphSet = new A.AsciiGlyphSet();
  125405. B.C_Base64Encoder = new A.Base64Encoder();
  125406. B.C_Base64Codec = new A.Base64Codec();
  125407. B.C_DefaultEquality = new A.DefaultEquality();
  125408. B.C_EmptyExtensionStore = new A.EmptyExtensionStore();
  125409. B.C_EmptyExtensionStore0 = new A.EmptyExtensionStore0();
  125410. B.C_EmptyIterator = new A.EmptyIterator();
  125411. B.C_EmptyUnmodifiableSet = new A.EmptyUnmodifiableSet(A.findType("EmptyUnmodifiableSet<SimpleSelector>"));
  125412. B.C_EmptyUnmodifiableSet0 = new A.EmptyUnmodifiableSet(A.findType("EmptyUnmodifiableSet<SimpleSelector0>"));
  125413. B.C_IsCalculationSafeVisitor = new A.IsCalculationSafeVisitor();
  125414. B.C_IsCalculationSafeVisitor0 = new A.IsCalculationSafeVisitor0();
  125415. B.C_IterableEquality = new A.IterableEquality();
  125416. B.C_JS_CONST = function getTagFallback(o) {
  125417. var s = Object.prototype.toString.call(o);
  125418. return s.substring(8, s.length - 1);
  125419. };
  125420. B.C_JS_CONST0 = function() {
  125421. var toStringFunction = Object.prototype.toString;
  125422. function getTag(o) {
  125423. var s = toStringFunction.call(o);
  125424. return s.substring(8, s.length - 1);
  125425. }
  125426. function getUnknownTag(object, tag) {
  125427. if (/^HTML[A-Z].*Element$/.test(tag)) {
  125428. var name = toStringFunction.call(object);
  125429. if (name == "[object Object]") return null;
  125430. return "HTMLElement";
  125431. }
  125432. }
  125433. function getUnknownTagGenericBrowser(object, tag) {
  125434. if (object instanceof HTMLElement) return "HTMLElement";
  125435. return getUnknownTag(object, tag);
  125436. }
  125437. function prototypeForTag(tag) {
  125438. if (typeof window == "undefined") return null;
  125439. if (typeof window[tag] == "undefined") return null;
  125440. var constructor = window[tag];
  125441. if (typeof constructor != "function") return null;
  125442. return constructor.prototype;
  125443. }
  125444. function discriminator(tag) { return null; }
  125445. var isBrowser = typeof HTMLElement == "function";
  125446. return {
  125447. getTag: getTag,
  125448. getUnknownTag: isBrowser ? getUnknownTagGenericBrowser : getUnknownTag,
  125449. prototypeForTag: prototypeForTag,
  125450. discriminator: discriminator };
  125451. };
  125452. B.C_JS_CONST6 = function(getTagFallback) {
  125453. return function(hooks) {
  125454. if (typeof navigator != "object") return hooks;
  125455. var userAgent = navigator.userAgent;
  125456. if (typeof userAgent != "string") return hooks;
  125457. if (userAgent.indexOf("DumpRenderTree") >= 0) return hooks;
  125458. if (userAgent.indexOf("Chrome") >= 0) {
  125459. function confirm(p) {
  125460. return typeof window == "object" && window[p] && window[p].name == p;
  125461. }
  125462. if (confirm("Window") && confirm("HTMLElement")) return hooks;
  125463. }
  125464. hooks.getTag = getTagFallback;
  125465. };
  125466. };
  125467. B.C_JS_CONST1 = function(hooks) {
  125468. if (typeof dartExperimentalFixupGetTag != "function") return hooks;
  125469. hooks.getTag = dartExperimentalFixupGetTag(hooks.getTag);
  125470. };
  125471. B.C_JS_CONST5 = function(hooks) {
  125472. if (typeof navigator != "object") return hooks;
  125473. var userAgent = navigator.userAgent;
  125474. if (typeof userAgent != "string") return hooks;
  125475. if (userAgent.indexOf("Firefox") == -1) return hooks;
  125476. var getTag = hooks.getTag;
  125477. var quickMap = {
  125478. "BeforeUnloadEvent": "Event",
  125479. "DataTransfer": "Clipboard",
  125480. "GeoGeolocation": "Geolocation",
  125481. "Location": "!Location",
  125482. "WorkerMessageEvent": "MessageEvent",
  125483. "XMLDocument": "!Document"};
  125484. function getTagFirefox(o) {
  125485. var tag = getTag(o);
  125486. return quickMap[tag] || tag;
  125487. }
  125488. hooks.getTag = getTagFirefox;
  125489. };
  125490. B.C_JS_CONST4 = function(hooks) {
  125491. if (typeof navigator != "object") return hooks;
  125492. var userAgent = navigator.userAgent;
  125493. if (typeof userAgent != "string") return hooks;
  125494. if (userAgent.indexOf("Trident/") == -1) return hooks;
  125495. var getTag = hooks.getTag;
  125496. var quickMap = {
  125497. "BeforeUnloadEvent": "Event",
  125498. "DataTransfer": "Clipboard",
  125499. "HTMLDDElement": "HTMLElement",
  125500. "HTMLDTElement": "HTMLElement",
  125501. "HTMLPhraseElement": "HTMLElement",
  125502. "Position": "Geoposition"
  125503. };
  125504. function getTagIE(o) {
  125505. var tag = getTag(o);
  125506. var newTag = quickMap[tag];
  125507. if (newTag) return newTag;
  125508. if (tag == "Object") {
  125509. if (window.DataView && (o instanceof window.DataView)) return "DataView";
  125510. }
  125511. return tag;
  125512. }
  125513. function prototypeForTagIE(tag) {
  125514. var constructor = window[tag];
  125515. if (constructor == null) return null;
  125516. return constructor.prototype;
  125517. }
  125518. hooks.getTag = getTagIE;
  125519. hooks.prototypeForTag = prototypeForTagIE;
  125520. };
  125521. B.C_JS_CONST2 = function(hooks) {
  125522. var getTag = hooks.getTag;
  125523. var prototypeForTag = hooks.prototypeForTag;
  125524. function getTagFixed(o) {
  125525. var tag = getTag(o);
  125526. if (tag == "Document") {
  125527. if (!!o.xmlVersion) return "!Document";
  125528. return "!HTMLDocument";
  125529. }
  125530. return tag;
  125531. }
  125532. function prototypeForTagFixed(tag) {
  125533. if (tag == "Document") return null;
  125534. return prototypeForTag(tag);
  125535. }
  125536. hooks.getTag = getTagFixed;
  125537. hooks.prototypeForTag = prototypeForTagFixed;
  125538. };
  125539. B.C_JS_CONST3 = function(hooks) { return hooks; }
  125540. ;
  125541. B.C_JsonCodec = new A.JsonCodec();
  125542. B.C_ListEquality0 = new A.ListEquality();
  125543. B.C_ListEquality = new A.ListEquality();
  125544. B.C_MapEquality = new A.MapEquality(A.findType("MapEquality<Object,Object>"));
  125545. B.C_OutOfMemoryError = new A.OutOfMemoryError();
  125546. B.C_SentinelValue = new A.SentinelValue();
  125547. B.C_UnicodeGlyphSet = new A.UnicodeGlyphSet();
  125548. B.C_Utf8Codec = new A.Utf8Codec();
  125549. B.C_Utf8Encoder = new A.Utf8Encoder();
  125550. B.C__ColorFormatEnum = new A._ColorFormatEnum();
  125551. B.C__ColorFormatEnum0 = new A._ColorFormatEnum0();
  125552. B.C__DelayedDone = new A._DelayedDone();
  125553. B.C__HasContentVisitor = new A._HasContentVisitor();
  125554. B.C__HasContentVisitor0 = new A._HasContentVisitor0();
  125555. B.C__IsUselessVisitor = new A._IsUselessVisitor();
  125556. B.C__IsUselessVisitor0 = new A._IsUselessVisitor0();
  125557. B.C__JSRandom = new A._JSRandom();
  125558. B.C__MakeExpressionCalculationSafe = new A._MakeExpressionCalculationSafe();
  125559. B.C__MakeExpressionCalculationSafe0 = new A._MakeExpressionCalculationSafe0();
  125560. B.C__ParentSelectorVisitor = new A._ParentSelectorVisitor();
  125561. B.C__ParentSelectorVisitor0 = new A._ParentSelectorVisitor0();
  125562. B.C__Required = new A._Required();
  125563. B.C__RootZone = new A._RootZone();
  125564. B.C__SassNull = new A._SassNull();
  125565. B.C__SassNull0 = new A._SassNull0();
  125566. B.CalculationOperator_171 = new A.CalculationOperator("times", "*", 2, "times");
  125567. B.CalculationOperator_1710 = new A.CalculationOperator0("times", "*", 2, "times");
  125568. B.CalculationOperator_CxF = new A.CalculationOperator("minus", "-", 1, "minus");
  125569. B.CalculationOperator_CxF0 = new A.CalculationOperator0("minus", "-", 1, "minus");
  125570. B.CalculationOperator_Qf1 = new A.CalculationOperator("divided by", "/", 2, "dividedBy");
  125571. B.CalculationOperator_Qf10 = new A.CalculationOperator0("divided by", "/", 2, "dividedBy");
  125572. B.CalculationOperator_g2q = new A.CalculationOperator("plus", "+", 1, "plus");
  125573. B.CalculationOperator_g2q0 = new A.CalculationOperator0("plus", "+", 1, "plus");
  125574. B.ChangeType_add = new A.ChangeType("add");
  125575. B.ChangeType_modify = new A.ChangeType("modify");
  125576. B.ChangeType_remove = new A.ChangeType("remove");
  125577. B.ClipGamutMap_clip = new A.ClipGamutMap("clip");
  125578. B.ClipGamutMap_clip0 = new A.ClipGamutMap0("clip");
  125579. B.Combinator_8I8 = new A.Combinator(">", "child");
  125580. B.Combinator_8I80 = new A.Combinator0(">", "child");
  125581. B.Combinator_gRV = new A.Combinator("+", "nextSibling");
  125582. B.Combinator_gRV0 = new A.Combinator0("+", "nextSibling");
  125583. B.Combinator_y18 = new A.Combinator("~", "followingSibling");
  125584. B.Combinator_y180 = new A.Combinator0("~", "followingSibling");
  125585. B.Object_empty = {};
  125586. B.Map_empty17 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap<String,ConfiguredValue>"));
  125587. B.Configuration_Map_empty_null = new A.Configuration(B.Map_empty17, null);
  125588. B.Map_empty18 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap<String,ConfiguredValue0>"));
  125589. B.Configuration_Map_empty_null0 = new A.Configuration0(B.Map_empty18, null);
  125590. B.Deprecation_0 = new A.Deprecation("css-function-mixin", "1.76.0", "cssFunctionMixin");
  125591. B.Deprecation_0Gh = new A.Deprecation("global-builtin", "1.80.0", "globalBuiltin");
  125592. B.Deprecation_2My = new A.Deprecation("strict-unary", "1.55.0", "strictUnary");
  125593. B.Deprecation_2No = new A.Deprecation0("legacy-js-api", "1.79.0", "Legacy JS API.", "legacyJsApi");
  125594. B.Deprecation_4QP = new A.Deprecation0("color-module-compat", "1.23.0", "Using color module functions in place of plain CSS functions.", "colorModuleCompat");
  125595. B.Deprecation_6v8 = new A.Deprecation("call-string", "0.0.0", "callString");
  125596. B.Deprecation_A0i = new A.Deprecation0("import", "1.80.0", "@import rules.", "import");
  125597. B.Deprecation_Aec = new A.Deprecation("elseif", "1.3.2", "elseif");
  125598. B.Deprecation_C9i = new A.Deprecation("bogus-combinators", "1.54.0", "bogusCombinators");
  125599. B.Deprecation_Ctw = new A.Deprecation0("moz-document", "1.7.2", "@-moz-document.", "mozDocument");
  125600. B.Deprecation_ErI = new A.Deprecation0("calc-interp", null, null, "calcInterp");
  125601. B.Deprecation_FIw = new A.Deprecation0("color-4-api", "1.79.0", "Certain uses of built-in sass:color functions.", "color4Api");
  125602. B.Deprecation_INA = new A.Deprecation("relative-canonical", "1.14.2", "relativeCanonical");
  125603. B.Deprecation_JeE = new A.Deprecation0("user-authored", null, null, "userAuthored");
  125604. B.Deprecation_KIf = new A.Deprecation("new-global", "1.17.2", "newGlobal");
  125605. B.Deprecation_MT8 = new A.Deprecation0("new-global", "1.17.2", "Declaring new variables with !global.", "newGlobal");
  125606. B.Deprecation_MYu = new A.Deprecation("import", "1.80.0", "import");
  125607. B.Deprecation_Q5r = new A.Deprecation0("global-builtin", "1.80.0", "Global built-in functions that are available in sass: modules.", "globalBuiltin");
  125608. B.Deprecation_QAx = new A.Deprecation0("feature-exists", "1.78.0", "meta.feature-exists", "featureExists");
  125609. B.Deprecation_T5f = new A.Deprecation("moz-document", "1.7.2", "mozDocument");
  125610. B.Deprecation_U43 = new A.Deprecation0("call-string", "0.0.0", "Passing a string directly to meta.call().", "callString");
  125611. B.Deprecation_UW2 = new A.Deprecation0("strict-unary", "1.55.0", "Ambiguous + and - operators.", "strictUnary");
  125612. B.Deprecation_VIq = new A.Deprecation0("mixed-decls", "1.77.7", "Declarations after or between nested rules.", "mixedDecls");
  125613. B.Deprecation_VqL = new A.Deprecation0("duplicate-var-flags", "1.62.0", "Using !default or !global multiple times for one variable.", "duplicateVarFlags");
  125614. B.Deprecation_Vr4 = new A.Deprecation("feature-exists", "1.78.0", "featureExists");
  125615. B.Deprecation_W1R = new A.Deprecation("user-authored", null, "userAuthored");
  125616. B.Deprecation_YKG = new A.Deprecation0("elseif", "1.3.2", "@elseif.", "elseif");
  125617. B.Deprecation_YUI = new A.Deprecation("duplicate-var-flags", "1.62.0", "duplicateVarFlags");
  125618. B.Deprecation_Zk6 = new A.Deprecation("abs-percent", "1.65.0", "absPercent");
  125619. B.Deprecation_bh9 = new A.Deprecation0("bogus-combinators", "1.54.0", "Leading, trailing, and repeated combinators.", "bogusCombinators");
  125620. B.Deprecation_cI8 = new A.Deprecation0("fs-importer-cwd", "1.73.0", "Using the current working directory as an implicit load path.", "fsImporterCwd");
  125621. B.Deprecation_ePO = new A.Deprecation("color-module-compat", "1.23.0", "colorModuleCompat");
  125622. B.Deprecation_fXI = new A.Deprecation0("relative-canonical", "1.14.2", "Imports using relative canonical URLs.", "relativeCanonical");
  125623. B.Deprecation_int = new A.Deprecation("function-units", "1.56.0", "functionUnits");
  125624. B.Deprecation_izR = new A.Deprecation("color-functions", "1.79.0", "colorFunctions");
  125625. B.Deprecation_jV0 = new A.Deprecation0("function-units", "1.56.0", "Passing invalid units to built-in functions.", "functionUnits");
  125626. B.Deprecation_mBb = new A.Deprecation0("null-alpha", "1.62.3", "Passing null as alpha in the JS API.", "nullAlpha");
  125627. B.Deprecation_mRl = new A.Deprecation("slash-div", "1.33.0", "slashDiv");
  125628. B.Deprecation_omC = new A.Deprecation0("css-function-mixin", "1.76.0", "Function and mixin names beginning with --.", "cssFunctionMixin");
  125629. B.Deprecation_q39 = new A.Deprecation0("slash-div", "1.33.0", "/ operator for division.", "slashDiv");
  125630. B.Deprecation_qgq = new A.Deprecation0("abs-percent", "1.65.0", "Passing percentages to the Sass abs() function.", "absPercent");
  125631. B.Deprecation_rb9 = new A.Deprecation0("color-functions", "1.79.0", "Using global color functions instead of sass:color.", "colorFunctions");
  125632. B.Deprecation_u1l = new A.Deprecation("mixed-decls", "1.77.7", "mixedDecls");
  125633. B.Deprecation_vct = new A.Deprecation("fs-importer-cwd", "1.73.0", "fsImporterCwd");
  125634. B.DisplayP3ColorSpace_NQk = new A.DisplayP3ColorSpace("display-p3", B.List_V3K);
  125635. B.DisplayP3ColorSpace_NQk0 = new A.DisplayP3ColorSpace0("display-p3", B.List_V3K0);
  125636. B.Duration_0 = new A.Duration(0);
  125637. B.ExtendMode_allTargets_allTargets = new A.ExtendMode("allTargets", "allTargets");
  125638. B.ExtendMode_allTargets_allTargets0 = new A.ExtendMode0("allTargets", "allTargets");
  125639. B.ExtendMode_normal_normal = new A.ExtendMode("normal", "normal");
  125640. B.ExtendMode_normal_normal0 = new A.ExtendMode0("normal", "normal");
  125641. B.ExtendMode_replace_replace = new A.ExtendMode("replace", "replace");
  125642. B.ExtendMode_replace_replace0 = new A.ExtendMode0("replace", "replace");
  125643. B.ColorChannel_hue_true_deg = new A.ColorChannel("hue", true, "deg");
  125644. B.LinearChannel_Bq6 = new A.LinearChannel(0, 100, true, true, false, "saturation", false, "%");
  125645. B.LinearChannel_cKo = new A.LinearChannel(0, 100, true, false, false, "lightness", false, "%");
  125646. B.List_8aB = A._setArrayType(makeConstList([B.ColorChannel_hue_true_deg, B.LinearChannel_Bq6, B.LinearChannel_cKo]), type$.JSArray_ColorChannel);
  125647. B.HslColorSpace_gsm = new A.HslColorSpace("hsl", B.List_8aB);
  125648. B.ColorChannel_hue_true_deg0 = new A.ColorChannel0("hue", true, "deg");
  125649. B.LinearChannel_Bq60 = new A.LinearChannel0(0, 100, true, true, false, "saturation", false, "%");
  125650. B.LinearChannel_cKo0 = new A.LinearChannel0(0, 100, true, false, false, "lightness", false, "%");
  125651. B.List_8aB0 = A._setArrayType(makeConstList([B.ColorChannel_hue_true_deg0, B.LinearChannel_Bq60, B.LinearChannel_cKo0]), type$.JSArray_ColorChannel_2);
  125652. B.HslColorSpace_gsm0 = new A.HslColorSpace0("hsl", B.List_8aB0);
  125653. B.HueInterpolationMethod_0 = new A.HueInterpolationMethod("shorter");
  125654. B.HueInterpolationMethod_00 = new A.HueInterpolationMethod0("shorter");
  125655. B.HueInterpolationMethod_1 = new A.HueInterpolationMethod("longer");
  125656. B.HueInterpolationMethod_10 = new A.HueInterpolationMethod0("longer");
  125657. B.HueInterpolationMethod_2 = new A.HueInterpolationMethod("increasing");
  125658. B.HueInterpolationMethod_20 = new A.HueInterpolationMethod0("increasing");
  125659. B.HueInterpolationMethod_3 = new A.HueInterpolationMethod("decreasing");
  125660. B.HueInterpolationMethod_30 = new A.HueInterpolationMethod0("decreasing");
  125661. B.LinearChannel_A0x = new A.LinearChannel(0, 100, true, false, false, "whiteness", false, "%");
  125662. B.LinearChannel_SYB = new A.LinearChannel(0, 100, true, false, false, "blackness", false, "%");
  125663. B.List_gc6 = A._setArrayType(makeConstList([B.ColorChannel_hue_true_deg, B.LinearChannel_A0x, B.LinearChannel_SYB]), type$.JSArray_ColorChannel);
  125664. B.HwbColorSpace_06z = new A.HwbColorSpace("hwb", B.List_gc6);
  125665. B.LinearChannel_A0x0 = new A.LinearChannel0(0, 100, true, false, false, "whiteness", false, "%");
  125666. B.LinearChannel_SYB0 = new A.LinearChannel0(0, 100, true, false, false, "blackness", false, "%");
  125667. B.List_gc60 = A._setArrayType(makeConstList([B.ColorChannel_hue_true_deg0, B.LinearChannel_A0x0, B.LinearChannel_SYB0]), type$.JSArray_ColorChannel_2);
  125668. B.HwbColorSpace_06z0 = new A.HwbColorSpace0("hwb", B.List_gc60);
  125669. B.JsonDecoder_null = new A.JsonDecoder(null);
  125670. B.JsonEncoder_null = new A.JsonEncoder(null);
  125671. B.LinearChannel_cKo1 = new A.LinearChannel(0, 100, false, true, true, "lightness", false, "%");
  125672. B.LinearChannel_EgN = new A.LinearChannel(-125, 125, false, false, false, "a", false, null);
  125673. B.LinearChannel_WFl = new A.LinearChannel(-125, 125, false, false, false, "b", false, null);
  125674. B.List_gT2 = A._setArrayType(makeConstList([B.LinearChannel_cKo1, B.LinearChannel_EgN, B.LinearChannel_WFl]), type$.JSArray_ColorChannel);
  125675. B.LabColorSpace_IF2 = new A.LabColorSpace("lab", B.List_gT2);
  125676. B.LinearChannel_cKo2 = new A.LinearChannel0(0, 100, false, true, true, "lightness", false, "%");
  125677. B.LinearChannel_EgN0 = new A.LinearChannel0(-125, 125, false, false, false, "a", false, null);
  125678. B.LinearChannel_WFl0 = new A.LinearChannel0(-125, 125, false, false, false, "b", false, null);
  125679. B.List_gT20 = A._setArrayType(makeConstList([B.LinearChannel_cKo2, B.LinearChannel_EgN0, B.LinearChannel_WFl0]), type$.JSArray_ColorChannel_2);
  125680. B.LabColorSpace_IF20 = new A.LabColorSpace0("lab", B.List_gT20);
  125681. B.LinearChannel_a4O = new A.LinearChannel(0, 150, false, true, false, "chroma", false, null);
  125682. B.List_i7B = A._setArrayType(makeConstList([B.LinearChannel_cKo1, B.LinearChannel_a4O, B.ColorChannel_hue_true_deg]), type$.JSArray_ColorChannel);
  125683. B.LchColorSpace_wv8 = new A.LchColorSpace("lch", B.List_i7B);
  125684. B.LinearChannel_a4O0 = new A.LinearChannel0(0, 150, false, true, false, "chroma", false, null);
  125685. B.List_i7B0 = A._setArrayType(makeConstList([B.LinearChannel_cKo2, B.LinearChannel_a4O0, B.ColorChannel_hue_true_deg0]), type$.JSArray_ColorChannel_2);
  125686. B.LchColorSpace_wv80 = new A.LchColorSpace0("lch", B.List_i7B0);
  125687. B.LineFeed_75j = new A.LineFeed0("lfcr", "\n\r", "lfcr");
  125688. B.LineFeed_89t = new A.LineFeed0("cr", "\r", "cr");
  125689. B.LineFeed_A4L = new A.LineFeed0("crlf", "\r\n", "crlf");
  125690. B.LineFeed_LvD = new A.LineFeed0("lf", "\n", "lf");
  125691. B.LineFeed_lf = new A.LineFeed("lf");
  125692. B.LinearChannel_Npb = new A.LinearChannel(0, 255, false, true, true, "blue", false, null);
  125693. B.LinearChannel_Npb0 = new A.LinearChannel0(0, 255, false, true, true, "blue", false, null);
  125694. B.LinearChannel_bdu = new A.LinearChannel(0, 255, false, true, true, "red", false, null);
  125695. B.LinearChannel_bdu0 = new A.LinearChannel0(0, 255, false, true, true, "red", false, null);
  125696. B.LinearChannel_kUZ = new A.LinearChannel(0, 255, false, true, true, "green", false, null);
  125697. B.LinearChannel_kUZ0 = new A.LinearChannel0(0, 255, false, true, true, "green", false, null);
  125698. B.LinearChannel_omH = new A.LinearChannel(0, 1, false, false, false, "alpha", false, null);
  125699. B.LinearChannel_omH0 = new A.LinearChannel0(0, 1, false, false, false, "alpha", false, null);
  125700. B.ListSeparator_ECn = new A.ListSeparator("comma", ",", "comma");
  125701. B.ListSeparator_ECn0 = new A.ListSeparator0("comma", ",", "comma");
  125702. B.ListSeparator_cQA = new A.ListSeparator("slash", "/", "slash");
  125703. B.ListSeparator_cQA0 = new A.ListSeparator0("slash", "/", "slash");
  125704. B.ListSeparator_nbm = new A.ListSeparator("space", " ", "space");
  125705. B.ListSeparator_nbm0 = new A.ListSeparator0("space", " ", "space");
  125706. B.ListSeparator_undecided_null_undecided = new A.ListSeparator("undecided", null, "undecided");
  125707. B.ListSeparator_undecided_null_undecided0 = new A.ListSeparator0("undecided", null, "undecided");
  125708. B.List_23h = A._setArrayType(makeConstList([B.HueInterpolationMethod_00, B.HueInterpolationMethod_10, B.HueInterpolationMethod_20, B.HueInterpolationMethod_30]), A.findType("JSArray<HueInterpolationMethod0>"));
  125709. B.List_2jN = A._setArrayType(makeConstList([0, 0, 32722, 12287, 65534, 34815, 65534, 18431]), type$.JSArray_int);
  125710. B.List_31K = A._setArrayType(makeConstList([B.Deprecation_U43, B.Deprecation_YKG, B.Deprecation_Ctw, B.Deprecation_fXI, B.Deprecation_MT8, B.Deprecation_4QP, B.Deprecation_q39, B.Deprecation_bh9, B.Deprecation_UW2, B.Deprecation_jV0, B.Deprecation_VqL, B.Deprecation_mBb, B.Deprecation_qgq, B.Deprecation_cI8, B.Deprecation_omC, B.Deprecation_VIq, B.Deprecation_QAx, B.Deprecation_FIw, B.Deprecation_rb9, B.Deprecation_2No, B.Deprecation_A0i, B.Deprecation_Q5r, B.Deprecation_JeE, B.Deprecation_ErI]), A.findType("JSArray<Deprecation0>"));
  125711. B.List_42A = A._setArrayType(makeConstList([0, 0, 65490, 45055, 65535, 34815, 65534, 18431]), type$.JSArray_int);
  125712. B.List_4AN = A._setArrayType(makeConstList([0, 0, 32754, 11263, 65534, 34815, 65534, 18431]), type$.JSArray_int);
  125713. B.Object_79D = {em: 0, rem: 1, ex: 2, rex: 3, cap: 4, rcap: 5, ch: 6, rch: 7, ic: 8, ric: 9, lh: 10, rlh: 11, vw: 12, lvw: 13, svw: 14, dvw: 15, vh: 16, lvh: 17, svh: 18, dvh: 19, vi: 20, lvi: 21, svi: 22, dvi: 23, vb: 24, lvb: 25, svb: 26, dvb: 27, vmin: 28, lvmin: 29, svmin: 30, dvmin: 31, vmax: 32, lvmax: 33, svmax: 34, dvmax: 35, cqw: 36, cqh: 37, cqi: 38, cqb: 39, cqmin: 40, cqmax: 41, cm: 42, mm: 43, q: 44, in: 45, pt: 46, pc: 47, px: 48};
  125714. B.Set_ot1A = new A.ConstantStringSet(B.Object_79D, 49, type$.ConstantStringSet_String);
  125715. B.Object_Yf3 = {deg: 0, grad: 1, rad: 2, turn: 3};
  125716. B.Set_YZQG9 = new A.ConstantStringSet(B.Object_Yf3, 4, type$.ConstantStringSet_String);
  125717. B.Object_s_0_ms_1 = {s: 0, ms: 1};
  125718. B.Set_wEo81 = new A.ConstantStringSet(B.Object_s_0_ms_1, 2, type$.ConstantStringSet_String);
  125719. B.Object_hz_0_khz_1 = {hz: 0, khz: 1};
  125720. B.Set_y00Wb = new A.ConstantStringSet(B.Object_hz_0_khz_1, 2, type$.ConstantStringSet_String);
  125721. B.Object_3CF = {dpi: 0, dpcm: 1, dppx: 2};
  125722. B.Set_Db0y4 = new A.ConstantStringSet(B.Object_3CF, 3, type$.ConstantStringSet_String);
  125723. B.List_Eeh = A._setArrayType(makeConstList([B.Set_ot1A, B.Set_YZQG9, B.Set_wEo81, B.Set_y00Wb, B.Set_Db0y4]), A.findType("JSArray<Set<String>>"));
  125724. B.List_GVy = A._setArrayType(makeConstList([0, 0, 26624, 1023, 65534, 2047, 65534, 2047]), type$.JSArray_int);
  125725. B.Deprecation_0Tm = new A.Deprecation("null-alpha", "1.62.3", "nullAlpha");
  125726. B.Deprecation_izR0 = new A.Deprecation("color-4-api", "1.79.0", "color4Api");
  125727. B.Deprecation_wa9 = new A.Deprecation("legacy-js-api", "1.79.0", "legacyJsApi");
  125728. B.Deprecation_uOS = new A.Deprecation("calc-interp", null, "calcInterp");
  125729. B.List_Hx4 = A._setArrayType(makeConstList([B.Deprecation_6v8, B.Deprecation_Aec, B.Deprecation_T5f, B.Deprecation_INA, B.Deprecation_KIf, B.Deprecation_ePO, B.Deprecation_mRl, B.Deprecation_C9i, B.Deprecation_2My, B.Deprecation_int, B.Deprecation_YUI, B.Deprecation_0Tm, B.Deprecation_Zk6, B.Deprecation_vct, B.Deprecation_0, B.Deprecation_u1l, B.Deprecation_Vr4, B.Deprecation_izR0, B.Deprecation_izR, B.Deprecation_wa9, B.Deprecation_MYu, B.Deprecation_0Gh, B.Deprecation_W1R, B.Deprecation_uOS]), A.findType("JSArray<Deprecation>"));
  125730. B.List_M2I0 = A._setArrayType(makeConstList([0, 0, 32722, 12287, 65535, 34815, 65534, 18431]), type$.JSArray_int);
  125731. B.List_M2I = A._setArrayType(makeConstList([0, 0, 65490, 12287, 65535, 34815, 65534, 18431]), type$.JSArray_int);
  125732. B.List_VOY = A._setArrayType(makeConstList([0, 0, 32776, 33792, 1, 10240, 0, 0]), type$.JSArray_int);
  125733. B.List_empty12 = A._setArrayType(makeConstList([]), type$.JSArray_Argument);
  125734. B.List_empty24 = A._setArrayType(makeConstList([]), type$.JSArray_Argument_2);
  125735. B.List_empty26 = A._setArrayType(makeConstList([]), type$.JSArray_AsyncCallable_2);
  125736. B.List_empty27 = A._setArrayType(makeConstList([]), type$.JSArray_AsyncImporter);
  125737. B.List_empty1 = A._setArrayType(makeConstList([]), type$.JSArray_ComplexSelector);
  125738. B.List_empty15 = A._setArrayType(makeConstList([]), type$.JSArray_ComplexSelector_2);
  125739. B.List_empty2 = A._setArrayType(makeConstList([]), type$.JSArray_ComplexSelectorComponent);
  125740. B.List_empty16 = A._setArrayType(makeConstList([]), type$.JSArray_ComplexSelectorComponent_2);
  125741. B.List_empty10 = A._setArrayType(makeConstList([]), type$.JSArray_ConfiguredVariable);
  125742. B.List_empty22 = A._setArrayType(makeConstList([]), type$.JSArray_ConfiguredVariable_2);
  125743. B.List_empty3 = A._setArrayType(makeConstList([]), type$.JSArray_CssNode);
  125744. B.List_empty17 = A._setArrayType(makeConstList([]), type$.JSArray_CssNode_2);
  125745. B.List_empty11 = A._setArrayType(makeConstList([]), type$.JSArray_CssStyleRule);
  125746. B.List_empty23 = A._setArrayType(makeConstList([]), type$.JSArray_CssStyleRule_2);
  125747. B.List_empty0 = A._setArrayType(makeConstList([]), type$.JSArray_CssValue_Combinator);
  125748. B.List_empty14 = A._setArrayType(makeConstList([]), type$.JSArray_CssValue_Combinator_2);
  125749. B.List_empty9 = A._setArrayType(makeConstList([]), type$.JSArray_Expression);
  125750. B.List_empty21 = A._setArrayType(makeConstList([]), type$.JSArray_Expression_2);
  125751. B.List_empty5 = A._setArrayType(makeConstList([]), type$.JSArray_Extension);
  125752. B.List_empty18 = A._setArrayType(makeConstList([]), type$.JSArray_Extension_2);
  125753. B.List_empty25 = A._setArrayType(makeConstList([]), type$.JSArray_Importer_2);
  125754. B.List_empty7 = A._setArrayType(makeConstList([]), A.findType("JSArray<Module0<0&>>"));
  125755. B.List_empty19 = A._setArrayType(makeConstList([]), A.findType("JSArray<Module1<0&>>"));
  125756. B.List_empty28 = A._setArrayType(makeConstList([]), type$.JSArray_Object);
  125757. B.List_empty13 = A._setArrayType(makeConstList([]), type$.JSArray_Statement);
  125758. B.List_empty = A._setArrayType(makeConstList([]), type$.JSArray_String);
  125759. B.List_empty8 = A._setArrayType(makeConstList([]), type$.JSArray_Value);
  125760. B.List_empty20 = A._setArrayType(makeConstList([]), type$.JSArray_Value_2);
  125761. B.List_empty4 = A._setArrayType(makeConstList([]), type$.JSArray_int);
  125762. B.List_empty6 = A._setArrayType(makeConstList([]), type$.JSArray_dynamic);
  125763. B.List_empty29 = A._setArrayType(makeConstList([]), type$.JSArray_nullable_FileSpan);
  125764. B.List_kUZ = A._setArrayType(makeConstList([B.CalculationOperator_g2q0, B.CalculationOperator_CxF0, B.CalculationOperator_1710, B.CalculationOperator_Qf10]), A.findType("JSArray<CalculationOperator0>"));
  125765. B.List_null = A._setArrayType(makeConstList([null]), type$.JSArray_nullable_FileSpan);
  125766. B.List_oyU = A._setArrayType(makeConstList([0, 0, 27858, 1023, 65534, 51199, 65535, 32767]), type$.JSArray_int);
  125767. B.List_piR = A._setArrayType(makeConstList([0, 0, 24576, 1023, 65534, 34815, 65534, 18431]), type$.JSArray_int);
  125768. B.LinearChannel_WRn = new A.LinearChannel(0, 1, false, false, false, "long", false, null);
  125769. B.LinearChannel_AKA = new A.LinearChannel(0, 1, false, false, false, "medium", false, null);
  125770. B.LinearChannel_Kdl = new A.LinearChannel(0, 1, false, false, false, "short", false, null);
  125771. B.List_Na9 = A._setArrayType(makeConstList([B.LinearChannel_WRn, B.LinearChannel_AKA, B.LinearChannel_Kdl]), type$.JSArray_ColorChannel);
  125772. B.LmsColorSpace_8I8 = new A.LmsColorSpace("lms", B.List_Na9);
  125773. B.LinearChannel_WRn0 = new A.LinearChannel0(0, 1, false, false, false, "long", false, null);
  125774. B.LinearChannel_AKA0 = new A.LinearChannel0(0, 1, false, false, false, "medium", false, null);
  125775. B.LinearChannel_Kdl0 = new A.LinearChannel0(0, 1, false, false, false, "short", false, null);
  125776. B.List_Na90 = A._setArrayType(makeConstList([B.LinearChannel_WRn0, B.LinearChannel_AKA0, B.LinearChannel_Kdl0]), type$.JSArray_ColorChannel_2);
  125777. B.LmsColorSpace_8I80 = new A.LmsColorSpace0("lms", B.List_Na90);
  125778. B.LocalMindeGamutMap_Q7f = new A.LocalMindeGamutMap("local-minde");
  125779. B.LocalMindeGamutMap_Q7f0 = new A.LocalMindeGamutMap0("local-minde");
  125780. B.Object_Jgz = {length: 0, angle: 1, time: 2, frequency: 3, "pixel density": 4};
  125781. B.List_Mul = A._setArrayType(makeConstList(["in", "cm", "pc", "mm", "q", "pt", "px"]), type$.JSArray_String);
  125782. B.List_deg_grad_rad_turn = A._setArrayType(makeConstList(["deg", "grad", "rad", "turn"]), type$.JSArray_String);
  125783. B.List_s_ms = A._setArrayType(makeConstList(["s", "ms"]), type$.JSArray_String);
  125784. B.List_Hz_kHz = A._setArrayType(makeConstList(["Hz", "kHz"]), type$.JSArray_String);
  125785. B.List_dpi_dpcm_dppx = A._setArrayType(makeConstList(["dpi", "dpcm", "dppx"]), type$.JSArray_String);
  125786. B.Map_397RH = new A.ConstantStringMap(B.Object_Jgz, [B.List_Mul, B.List_deg_grad_rad_turn, B.List_s_ms, B.List_Hz_kHz, B.List_dpi_dpcm_dppx], A.findType("ConstantStringMap<String,List<String>>"));
  125787. B.Map_empty7 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap<Module0<AsyncCallable>,List<CssComment>>"));
  125788. B.Map_empty0 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap<Module0<Callable0>,List<CssComment>>"));
  125789. B.Map_empty2 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap<Module0<0&>,List<CssComment>>"));
  125790. B.Map_empty15 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap<Module1<AsyncCallable0>,List<CssComment0>>"));
  125791. B.Map_empty9 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap<Module1<Callable>,List<CssComment0>>"));
  125792. B.Map_empty11 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap<Module1<0&>,List<CssComment0>>"));
  125793. B.Map_empty4 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap<String,AstNode>"));
  125794. B.Map_empty12 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap<String,AstNode0>"));
  125795. B.Map_empty6 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap<String,Expression>"));
  125796. B.Map_empty14 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap<String,Expression0>"));
  125797. B.Map_empty8 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap<String,Module0<AsyncCallable>>"));
  125798. B.Map_empty1 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap<String,Module0<Callable0>>"));
  125799. B.Map_empty16 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap<String,Module1<AsyncCallable0>>"));
  125800. B.Map_empty10 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap<String,Module1<Callable>>"));
  125801. B.Map_empty5 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap<String,Value>"));
  125802. B.Map_empty13 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap<String,Value0>"));
  125803. B.Map_empty3 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap<Symbol0,@>"));
  125804. B.Map_empty = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap<String?,String>"));
  125805. B.Object_AiQ = {in: 0, cm: 1, pc: 2, mm: 3, q: 4, pt: 5, px: 6, deg: 7, grad: 8, rad: 9, turn: 10, s: 11, ms: 12, Hz: 13, kHz: 14, dpi: 15, dpcm: 16, dppx: 17};
  125806. B.Object_Uy1 = {in: 0, cm: 1, pc: 2, mm: 3, q: 4, pt: 5, px: 6};
  125807. B.Map_MuACk = new A.ConstantStringMap(B.Object_Uy1, [1, 0.39370078740157477, 0.16666666666666666, 0.03937007874015748, 0.00984251968503937, 0.013888888888888888, 0.010416666666666666], type$.ConstantStringMap_String_double);
  125808. B.Map_MuHeh = new A.ConstantStringMap(B.Object_Uy1, [2.54, 1, 0.42333333333333334, 0.1, 0.025, 0.035277777777777776, 0.026458333333333334], type$.ConstantStringMap_String_double);
  125809. B.Map_Mudgs = new A.ConstantStringMap(B.Object_Uy1, [6, 2.3622047244094486, 1, 0.2362204724409449, 0.05905511811023623, 0.08333333333333333, 0.0625], type$.ConstantStringMap_String_double);
  125810. B.Map_Mu8oi = new A.ConstantStringMap(B.Object_Uy1, [25.4, 10, 4.233333333333333, 1, 0.25, 0.35277777777777775, 0.26458333333333334], type$.ConstantStringMap_String_double);
  125811. B.Map_MusBb = new A.ConstantStringMap(B.Object_Uy1, [101.6, 40, 16.933333333333334, 4, 1, 1.411111111111111, 1.0583333333333333], type$.ConstantStringMap_String_double);
  125812. B.Map_MuX5a = new A.ConstantStringMap(B.Object_Uy1, [72, 28.346456692913385, 12, 2.834645669291339, 0.7086614173228347, 1, 0.75], type$.ConstantStringMap_String_double);
  125813. B.Map_MuVWp = new A.ConstantStringMap(B.Object_Uy1, [96, 37.79527559055118, 16, 3.7795275590551185, 0.9448818897637796, 1.3333333333333333, 1], type$.ConstantStringMap_String_double);
  125814. B.Map_P98ha = new A.ConstantStringMap(B.Object_Yf3, [1, 0.9, 57.29577951308232, 360], type$.ConstantStringMap_String_double);
  125815. B.Map_P9IYz = new A.ConstantStringMap(B.Object_Yf3, [1.1111111111111112, 1, 63.66197723675813, 400], type$.ConstantStringMap_String_double);
  125816. B.Map_P9t42 = new A.ConstantStringMap(B.Object_Yf3, [0.017453292519943295, 0.015707963267948967, 1, 6.283185307179586], type$.ConstantStringMap_String_double);
  125817. B.Map_P9ZUB = new A.ConstantStringMap(B.Object_Yf3, [0.002777777777777778, 0.0025, 0.15915494309189535, 1], type$.ConstantStringMap_String_double);
  125818. B.Map_kUCK0 = new A.ConstantStringMap(B.Object_s_0_ms_1, [1, 0.001], type$.ConstantStringMap_String_double);
  125819. B.Map_kUfVB = new A.ConstantStringMap(B.Object_s_0_ms_1, [1000, 1], type$.ConstantStringMap_String_double);
  125820. B.Object_Hz_0_kHz_1 = {Hz: 0, kHz: 1};
  125821. B.Map_WfkC8 = new A.ConstantStringMap(B.Object_Hz_0_kHz_1, [1, 1000], type$.ConstantStringMap_String_double);
  125822. B.Map_Wfs7p = new A.ConstantStringMap(B.Object_Hz_0_kHz_1, [0.001, 1], type$.ConstantStringMap_String_double);
  125823. B.Map_dgy9B = new A.ConstantStringMap(B.Object_3CF, [1, 2.54, 96], type$.ConstantStringMap_String_double);
  125824. B.Map_dgLkt = new A.ConstantStringMap(B.Object_3CF, [0.39370078740157477, 1, 37.79527559055118], type$.ConstantStringMap_String_double);
  125825. B.Map_dgw3K = new A.ConstantStringMap(B.Object_3CF, [0.010416666666666666, 0.026458333333333334, 1], type$.ConstantStringMap_String_double);
  125826. B.Map_gQqJO = new A.ConstantStringMap(B.Object_AiQ, [B.Map_MuACk, B.Map_MuHeh, B.Map_Mudgs, B.Map_Mu8oi, B.Map_MusBb, B.Map_MuX5a, B.Map_MuVWp, B.Map_P98ha, B.Map_P9IYz, B.Map_P9t42, B.Map_P9ZUB, B.Map_kUCK0, B.Map_kUfVB, B.Map_WfkC8, B.Map_Wfs7p, B.Map_dgy9B, B.Map_dgLkt, B.Map_dgw3K], A.findType("ConstantStringMap<String,Map<String,double>>"));
  125827. B.LinearChannel_cKo3 = new A.LinearChannel(0, 1, false, true, true, "lightness", false, "%");
  125828. B.LinearChannel_6h9 = new A.LinearChannel(-0.4, 0.4, false, false, false, "a", false, null);
  125829. B.LinearChannel_kOG = new A.LinearChannel(-0.4, 0.4, false, false, false, "b", false, null);
  125830. B.List_9dS = A._setArrayType(makeConstList([B.LinearChannel_cKo3, B.LinearChannel_6h9, B.LinearChannel_kOG]), type$.JSArray_ColorChannel);
  125831. B.OklabColorSpace_yrt = new A.OklabColorSpace("oklab", B.List_9dS);
  125832. B.LinearChannel_cKo4 = new A.LinearChannel0(0, 1, false, true, true, "lightness", false, "%");
  125833. B.LinearChannel_6h90 = new A.LinearChannel0(-0.4, 0.4, false, false, false, "a", false, null);
  125834. B.LinearChannel_kOG0 = new A.LinearChannel0(-0.4, 0.4, false, false, false, "b", false, null);
  125835. B.List_9dS0 = A._setArrayType(makeConstList([B.LinearChannel_cKo4, B.LinearChannel_6h90, B.LinearChannel_kOG0]), type$.JSArray_ColorChannel_2);
  125836. B.OklabColorSpace_yrt0 = new A.OklabColorSpace0("oklab", B.List_9dS0);
  125837. B.LinearChannel_kmC = new A.LinearChannel(0, 0.4, false, true, false, "chroma", false, null);
  125838. B.List_e5Y = A._setArrayType(makeConstList([B.LinearChannel_cKo3, B.LinearChannel_kmC, B.ColorChannel_hue_true_deg]), type$.JSArray_ColorChannel);
  125839. B.OklchColorSpace_li8 = new A.OklchColorSpace("oklch", B.List_e5Y);
  125840. B.LinearChannel_kmC0 = new A.LinearChannel0(0, 0.4, false, true, false, "chroma", false, null);
  125841. B.List_e5Y0 = A._setArrayType(makeConstList([B.LinearChannel_cKo4, B.LinearChannel_kmC0, B.ColorChannel_hue_true_deg0]), type$.JSArray_ColorChannel_2);
  125842. B.OklchColorSpace_li80 = new A.OklchColorSpace0("oklch", B.List_e5Y0);
  125843. B.OptionType_I6i = new A.OptionType("OptionType.flag");
  125844. B.OptionType_tew = new A.OptionType("OptionType.single");
  125845. B.OptionType_yPm = new A.OptionType("OptionType.multiple");
  125846. B.OutputStyle_0 = new A.OutputStyle("expanded");
  125847. B.OutputStyle_00 = new A.OutputStyle0("expanded");
  125848. B.OutputStyle_1 = new A.OutputStyle("compressed");
  125849. B.OutputStyle_10 = new A.OutputStyle0("compressed");
  125850. B.ProphotoRgbColorSpace_KiG = new A.ProphotoRgbColorSpace("prophoto-rgb", B.List_V3K);
  125851. B.ProphotoRgbColorSpace_KiG0 = new A.ProphotoRgbColorSpace0("prophoto-rgb", B.List_V3K0);
  125852. B.Rec2020ColorSpace_2jN = new A.Rec2020ColorSpace("rec2020", B.List_V3K);
  125853. B.Rec2020ColorSpace_2jN0 = new A.Rec2020ColorSpace0("rec2020", B.List_V3K0);
  125854. B.Map_empty19 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap<SelectorList,Box<SelectorList>>"));
  125855. B.Record2_EmptyExtensionStore_Map_empty = new A._Record_2(B.C_EmptyExtensionStore, B.Map_empty19);
  125856. B.Map_empty20 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap<SelectorList0,Box0<SelectorList0>>"));
  125857. B.Record2_EmptyExtensionStore_Map_empty0 = new A._Record_2(B.C_EmptyExtensionStore0, B.Map_empty20);
  125858. B.List_wEo = A._setArrayType(makeConstList([B.LinearChannel_bdu, B.LinearChannel_kUZ, B.LinearChannel_Npb]), type$.JSArray_ColorChannel);
  125859. B.RgbColorSpace_mlz = new A.RgbColorSpace("rgb", B.List_wEo);
  125860. B.List_wEo0 = A._setArrayType(makeConstList([B.LinearChannel_bdu0, B.LinearChannel_kUZ0, B.LinearChannel_Npb0]), type$.JSArray_ColorChannel_2);
  125861. B.RgbColorSpace_mlz0 = new A.RgbColorSpace0("rgb", B.List_wEo0);
  125862. B.SassBoolean_false = new A.SassBoolean(false);
  125863. B.SassBoolean_false0 = new A.SassBoolean0(false);
  125864. B.SassBoolean_true = new A.SassBoolean(true);
  125865. B.SassBoolean_true0 = new A.SassBoolean0(true);
  125866. B.SassList_bdS = new A.SassList(B.List_empty8, B.ListSeparator_ECn, false);
  125867. B.SassList_bdS0 = new A.SassList(B.List_empty8, B.ListSeparator_ECn, true);
  125868. B.SassList_bdS1 = new A.SassList0(B.List_empty20, B.ListSeparator_ECn0, false);
  125869. B.SassList_bdS2 = new A.SassList0(B.List_empty20, B.ListSeparator_ECn0, true);
  125870. B.SassList_k8F = new A.SassList0(B.List_empty20, B.ListSeparator_undecided_null_undecided0, false);
  125871. B.Map_empty21 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap<Value,Value>"));
  125872. B.SassMap_Map_empty = new A.SassMap(B.Map_empty21);
  125873. B.Map_empty22 = new A.ConstantStringMap(B.Object_empty, [], A.findType("ConstantStringMap<Value0,Value0>"));
  125874. B.SassMap_Map_empty0 = new A.SassMap0(B.Map_empty22);
  125875. B.Set_0 = new A.GeneralConstantSet([0], A.findType("GeneralConstantSet<int>"));
  125876. B.Object_oyn = {".scss": 0, ".sass": 1, ".css": 2};
  125877. B.Set_00 = new A.ConstantStringSet(B.Object_oyn, 3, type$.ConstantStringSet_String);
  125878. B.Set_2Dcfy = new A.GeneralConstantSet([B.RgbColorSpace_mlz, B.HslColorSpace_gsm], A.findType("GeneralConstantSet<ColorSpace>"));
  125879. B.Set_2Dcfy0 = new A.GeneralConstantSet([B.RgbColorSpace_mlz0, B.HslColorSpace_gsm0], A.findType("GeneralConstantSet<ColorSpace0>"));
  125880. B.Object_6Gw = {sass: 0, style: 1, default: 2};
  125881. B.Set_TnQrk = new A.ConstantStringSet(B.Object_6Gw, 3, type$.ConstantStringSet_String);
  125882. B.Set_empty1 = new A.ConstantStringSet(B.Object_empty, 0, A.findType("ConstantStringSet<CssMediaQuery>"));
  125883. B.Set_empty5 = new A.ConstantStringSet(B.Object_empty, 0, A.findType("ConstantStringSet<CssMediaQuery0>"));
  125884. B.Set_empty2 = new A.ConstantStringSet(B.Object_empty, 0, A.findType("ConstantStringSet<Module0<AsyncCallable>>"));
  125885. B.Set_empty0 = new A.ConstantStringSet(B.Object_empty, 0, A.findType("ConstantStringSet<Module0<Callable0>>"));
  125886. B.Set_empty6 = new A.ConstantStringSet(B.Object_empty, 0, A.findType("ConstantStringSet<Module1<AsyncCallable0>>"));
  125887. B.Set_empty4 = new A.ConstantStringSet(B.Object_empty, 0, A.findType("ConstantStringSet<Module1<Callable>>"));
  125888. B.Set_empty7 = new A.ConstantStringSet(B.Object_empty, 0, type$.ConstantStringSet_String);
  125889. B.Set_empty3 = new A.ConstantStringSet(B.Object_empty, 0, A.findType("ConstantStringSet<StylesheetNode>"));
  125890. B.Set_empty = new A.ConstantStringSet(B.Object_empty, 0, A.findType("ConstantStringSet<Uri>"));
  125891. B.Object_q8Y = {is: 0, matches: 1, where: 2};
  125892. B.Set_mlzm2 = new A.ConstantStringSet(B.Object_q8Y, 3, type$.ConstantStringSet_String);
  125893. B.Set_mqKz = new A.GeneralConstantSet([B.BinaryOperator_2No, B.BinaryOperator_U77, B.BinaryOperator_u15, B.BinaryOperator_SjO], A.findType("GeneralConstantSet<BinaryOperator>"));
  125894. B.Set_mqKz0 = new A.GeneralConstantSet([B.BinaryOperator_2No0, B.BinaryOperator_U770, B.BinaryOperator_u150, B.BinaryOperator_SjO0], A.findType("GeneralConstantSet<BinaryOperator0>"));
  125895. B.Object_GUq = {calc: 0, clamp: 1, hypot: 2, sin: 3, cos: 4, tan: 5, asin: 6, acos: 7, atan: 8, sqrt: 9, exp: 10, sign: 11, mod: 12, rem: 13, atan2: 14, pow: 15, log: 16};
  125896. B.Set_yHF81 = new A.ConstantStringSet(B.Object_GUq, 17, type$.ConstantStringSet_String);
  125897. B.SrgbColorSpace_AD4 = new A.SrgbColorSpace("srgb", B.List_V3K);
  125898. B.SrgbColorSpace_AD40 = new A.SrgbColorSpace0("srgb", B.List_V3K0);
  125899. B.SrgbLinearColorSpace_sEs = new A.SrgbLinearColorSpace("srgb-linear", B.List_V3K);
  125900. B.SrgbLinearColorSpace_sEs0 = new A.SrgbLinearColorSpace0("srgb-linear", B.List_V3K0);
  125901. B.StderrLogger_false = new A.StderrLogger(false);
  125902. B.StderrLogger_false0 = new A.StderrLogger0(false);
  125903. B.Symbol__canonicalizeContext = new A.Symbol("_canonicalizeContext");
  125904. B.Symbol__evaluationContext = new A.Symbol("_evaluationContext");
  125905. B.Symbol__extensions = new A.Symbol("_extensions");
  125906. B.Symbol__sourceSpecificity = new A.Symbol("_sourceSpecificity");
  125907. B.Symbol_call = new A.Symbol("call");
  125908. B.Syntax_CSS_css = new A.Syntax("CSS", "css");
  125909. B.Syntax_CSS_css0 = new A.Syntax0("CSS", "css");
  125910. B.Syntax_SCSS_scss = new A.Syntax("SCSS", "scss");
  125911. B.Syntax_SCSS_scss0 = new A.Syntax0("SCSS", "scss");
  125912. B.Syntax_Sass_sass = new A.Syntax("Sass", "sass");
  125913. B.Syntax_Sass_sass0 = new A.Syntax0("Sass", "sass");
  125914. B.Type_ByteBuffer_EOZ = A.typeLiteral("ByteBuffer");
  125915. B.Type_ByteData_mF8 = A.typeLiteral("ByteData");
  125916. B.Type_Float32List_Ymk = A.typeLiteral("Float32List");
  125917. B.Type_Float64List_Ymk = A.typeLiteral("Float64List");
  125918. B.Type_Int16List_cot = A.typeLiteral("Int16List");
  125919. B.Type_Int32List_m1p = A.typeLiteral("Int32List");
  125920. B.Type_Int8List_woc = A.typeLiteral("Int8List");
  125921. B.Type_Object_QJv = A.typeLiteral("Object");
  125922. B.Type_Uint16List_2mh = A.typeLiteral("Uint16List");
  125923. B.Type_Uint32List_2mh = A.typeLiteral("Uint32List");
  125924. B.Type_Uint8ClampedList_9Bb = A.typeLiteral("Uint8ClampedList");
  125925. B.Type_Uint8List_CSc = A.typeLiteral("Uint8List");
  125926. B.UnaryOperator_AiQ = new A.UnaryOperator("minus", "-", "minus");
  125927. B.UnaryOperator_AiQ0 = new A.UnaryOperator0("minus", "-", "minus");
  125928. B.UnaryOperator_SJr = new A.UnaryOperator("divide", "/", "divide");
  125929. B.UnaryOperator_SJr0 = new A.UnaryOperator0("divide", "/", "divide");
  125930. B.UnaryOperator_cLp = new A.UnaryOperator("plus", "+", "plus");
  125931. B.UnaryOperator_cLp0 = new A.UnaryOperator0("plus", "+", "plus");
  125932. B.UnaryOperator_not_not_not = new A.UnaryOperator("not", "not", "not");
  125933. B.UnaryOperator_not_not_not0 = new A.UnaryOperator0("not", "not", "not");
  125934. B.Utf8Decoder_false = new A.Utf8Decoder(false);
  125935. B.LinearChannel_qJx = new A.LinearChannel(0, 1, false, false, false, "x", false, null);
  125936. B.LinearChannel_FCG = new A.LinearChannel(0, 1, false, false, false, "y", false, null);
  125937. B.LinearChannel_AWj = new A.LinearChannel(0, 1, false, false, false, "z", false, null);
  125938. B.List_8eb = A._setArrayType(makeConstList([B.LinearChannel_qJx, B.LinearChannel_FCG, B.LinearChannel_AWj]), type$.JSArray_LinearChannel);
  125939. B.XyzD50ColorSpace_2No = new A.XyzD50ColorSpace("xyz-d50", B.List_8eb);
  125940. B.LinearChannel_qJx0 = new A.LinearChannel0(0, 1, false, false, false, "x", false, null);
  125941. B.LinearChannel_FCG0 = new A.LinearChannel0(0, 1, false, false, false, "y", false, null);
  125942. B.LinearChannel_AWj0 = new A.LinearChannel0(0, 1, false, false, false, "z", false, null);
  125943. B.List_8eb0 = A._setArrayType(makeConstList([B.LinearChannel_qJx0, B.LinearChannel_FCG0, B.LinearChannel_AWj0]), type$.JSArray_LinearChannel_2);
  125944. B.XyzD50ColorSpace_2No0 = new A.XyzD50ColorSpace0("xyz-d50", B.List_8eb0);
  125945. B.XyzD65ColorSpace_4CA = new A.XyzD65ColorSpace("xyz", B.List_8eb);
  125946. B.XyzD65ColorSpace_4CA0 = new A.XyzD65ColorSpace0("xyz", B.List_8eb0);
  125947. B._IsBogusVisitor_false = new A._IsBogusVisitor(false);
  125948. B._IsBogusVisitor_false0 = new A._IsBogusVisitor0(false);
  125949. B._IsBogusVisitor_true = new A._IsBogusVisitor(true);
  125950. B._IsBogusVisitor_true0 = new A._IsBogusVisitor0(true);
  125951. B._IsInvisibleVisitor_false = new A._IsInvisibleVisitor0(false);
  125952. B._IsInvisibleVisitor_false0 = new A._IsInvisibleVisitor2(false);
  125953. B._IsInvisibleVisitor_false_false = new A._IsInvisibleVisitor(false, false);
  125954. B._IsInvisibleVisitor_false_false0 = new A._IsInvisibleVisitor1(false, false);
  125955. B._IsInvisibleVisitor_true = new A._IsInvisibleVisitor0(true);
  125956. B._IsInvisibleVisitor_true0 = new A._IsInvisibleVisitor2(true);
  125957. B._IsInvisibleVisitor_true_false = new A._IsInvisibleVisitor(true, false);
  125958. B._IsInvisibleVisitor_true_false0 = new A._IsInvisibleVisitor1(true, false);
  125959. B._IsInvisibleVisitor_true_true = new A._IsInvisibleVisitor(true, true);
  125960. B._IsInvisibleVisitor_true_true0 = new A._IsInvisibleVisitor1(true, true);
  125961. B._PathDirection_3KU = new A._PathDirection("above root");
  125962. B._PathDirection_8OV = new A._PathDirection("at root");
  125963. B._PathDirection_e7w = new A._PathDirection("reaches root");
  125964. B._PathDirection_yLX = new A._PathDirection("below root");
  125965. B._PathRelation_different = new A._PathRelation("different");
  125966. B._PathRelation_equal = new A._PathRelation("equal");
  125967. B._PathRelation_inconclusive = new A._PathRelation("inconclusive");
  125968. B._PathRelation_within = new A._PathRelation("within");
  125969. B._SingletonCssMediaQueryMergeResult_0 = new A._SingletonCssMediaQueryMergeResult("empty");
  125970. B._SingletonCssMediaQueryMergeResult_00 = new A._SingletonCssMediaQueryMergeResult0("empty");
  125971. B._SingletonCssMediaQueryMergeResult_1 = new A._SingletonCssMediaQueryMergeResult("unrepresentable");
  125972. B._SingletonCssMediaQueryMergeResult_10 = new A._SingletonCssMediaQueryMergeResult0("unrepresentable");
  125973. B._StreamGroupState_canceled = new A._StreamGroupState("canceled");
  125974. B._StreamGroupState_dormant = new A._StreamGroupState("dormant");
  125975. B._StreamGroupState_listening = new A._StreamGroupState("listening");
  125976. B._StreamGroupState_paused = new A._StreamGroupState("paused");
  125977. B._StringStackTrace_uwd = new A._StringStackTrace("");
  125978. B._ZoneFunction_NIe = new A._ZoneFunction(B.C__RootZone, A.async___rootHandleUncaughtError$closure());
  125979. B._ZoneFunction_QOa = new A._ZoneFunction(B.C__RootZone, A.async___rootRegisterUnaryCallback$closure());
  125980. B._ZoneFunction__RootZone__rootCreateTimer = new A._ZoneFunction(B.C__RootZone, A.async___rootCreateTimer$closure());
  125981. B._ZoneFunction__RootZone__rootErrorCallback = new A._ZoneFunction(B.C__RootZone, A.async___rootErrorCallback$closure());
  125982. B._ZoneFunction__RootZone__rootFork = new A._ZoneFunction(B.C__RootZone, A.async___rootFork$closure());
  125983. B._ZoneFunction__RootZone__rootPrint = new A._ZoneFunction(B.C__RootZone, A.async___rootPrint$closure());
  125984. B._ZoneFunction__RootZone__rootRegisterCallback = new A._ZoneFunction(B.C__RootZone, A.async___rootRegisterCallback$closure());
  125985. B._ZoneFunction__RootZone__rootRun = new A._ZoneFunction(B.C__RootZone, A.async___rootRun$closure());
  125986. B._ZoneFunction__RootZone__rootRunBinary = new A._ZoneFunction(B.C__RootZone, A.async___rootRunBinary$closure());
  125987. B._ZoneFunction__RootZone__rootRunUnary = new A._ZoneFunction(B.C__RootZone, A.async___rootRunUnary$closure());
  125988. B._ZoneFunction__RootZone__rootScheduleMicrotask = new A._ZoneFunction(B.C__RootZone, A.async___rootScheduleMicrotask$closure());
  125989. B._ZoneFunction_kWM = new A._ZoneFunction(B.C__RootZone, A.async___rootCreatePeriodicTimer$closure());
  125990. B._ZoneFunction_qxw = new A._ZoneFunction(B.C__RootZone, A.async___rootRegisterBinaryCallback$closure());
  125991. B._ZoneSpecification_48t = new A._ZoneSpecification(null, null, null, null, null, null, null, null, null, null, null, null, null);
  125992. })();
  125993. (function staticFields() {
  125994. $._JS_INTEROP_INTERCEPTOR_TAG = null;
  125995. $.toStringVisiting = A._setArrayType([], type$.JSArray_Object);
  125996. $.printToZone = null;
  125997. $.Primitives__identityHashCodeProperty = null;
  125998. $.BoundClosure__receiverFieldNameCache = null;
  125999. $.BoundClosure__interceptorFieldNameCache = null;
  126000. $.getTagFunction = null;
  126001. $.alternateTagFunction = null;
  126002. $.prototypeForTagFunction = null;
  126003. $.dispatchRecordsForInstanceTags = null;
  126004. $.interceptorsForUncacheableTags = null;
  126005. $.initNativeDispatchFlag = null;
  126006. $._Record__computedFieldKeys = A._setArrayType([], A.findType("JSArray<List<Object>?>"));
  126007. $._nextCallback = null;
  126008. $._lastCallback = null;
  126009. $._lastPriorityCallback = null;
  126010. $._isInCallbackLoop = false;
  126011. $.Zone__current = B.C__RootZone;
  126012. $._RootZone__rootDelegate = null;
  126013. $.Uri__cachedBaseString = "";
  126014. $.Uri__cachedBaseUri = null;
  126015. $._fs = null;
  126016. $._currentUriBase = null;
  126017. $._current = null;
  126018. $._subselectorPseudos = A.LinkedHashSet_LinkedHashSet$_literal(["is", "matches", "where", "any", "nth-child", "nth-last-child"], type$.String);
  126019. $._rootishPseudoClasses = A.LinkedHashSet_LinkedHashSet$_literal(["root", "scope", "host", "host-context"], type$.String);
  126020. $._features = A.LinkedHashSet_LinkedHashSet$_literal(["global-variable-shadowing", "extend-selector-pseudoclass", "units-level-3", "at-error", "custom-property"], type$.String);
  126021. $._realCaseCache = function() {
  126022. var t1 = type$.String;
  126023. return A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  126024. }();
  126025. $._selectorPseudoClasses = A.LinkedHashSet_LinkedHashSet$_literal(["not", "is", "matches", "where", "current", "any", "has", "host", "host-context"], type$.String);
  126026. $._selectorPseudoElements = A.LinkedHashSet_LinkedHashSet$_literal(["slotted"], type$.String);
  126027. $._glyphs = B.C_UnicodeGlyphSet;
  126028. $._rootishPseudoClasses0 = A.LinkedHashSet_LinkedHashSet$_literal(["root", "scope", "host", "host-context"], type$.String);
  126029. $._realCaseCache0 = function() {
  126030. var t1 = type$.String;
  126031. return A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  126032. }();
  126033. $._features0 = A.LinkedHashSet_LinkedHashSet$_literal(["global-variable-shadowing", "extend-selector-pseudoclass", "units-level-3", "at-error", "custom-property"], type$.String);
  126034. $._selectorPseudoClasses0 = A.LinkedHashSet_LinkedHashSet$_literal(["not", "is", "matches", "where", "current", "any", "has", "host", "host-context"], type$.String);
  126035. $._selectorPseudoElements0 = A.LinkedHashSet_LinkedHashSet$_literal(["slotted"], type$.String);
  126036. $._subselectorPseudos0 = A.LinkedHashSet_LinkedHashSet$_literal(["is", "matches", "where", "any", "nth-child", "nth-last-child"], type$.String);
  126037. })();
  126038. (function lazyInitializers() {
  126039. var _lazyFinal = hunkHelpers.lazyFinal,
  126040. _lazy = hunkHelpers.lazy;
  126041. _lazyFinal($, "DART_CLOSURE_PROPERTY_NAME", "$get$DART_CLOSURE_PROPERTY_NAME", () => A.getIsolateAffinityTag("_$dart_dartClosure"));
  126042. _lazyFinal($, "nullFuture", "$get$nullFuture", () => B.C__RootZone.run$1$1(0, new A.nullFuture_closure(), A.findType("Future<Null>")));
  126043. _lazyFinal($, "TypeErrorDecoder_noSuchMethodPattern", "$get$TypeErrorDecoder_noSuchMethodPattern", () => A.TypeErrorDecoder_extractPattern(A.TypeErrorDecoder_provokeCallErrorOn({
  126044. toString: function() {
  126045. return "$receiver$";
  126046. }
  126047. })));
  126048. _lazyFinal($, "TypeErrorDecoder_notClosurePattern", "$get$TypeErrorDecoder_notClosurePattern", () => A.TypeErrorDecoder_extractPattern(A.TypeErrorDecoder_provokeCallErrorOn({$method$: null,
  126049. toString: function() {
  126050. return "$receiver$";
  126051. }
  126052. })));
  126053. _lazyFinal($, "TypeErrorDecoder_nullCallPattern", "$get$TypeErrorDecoder_nullCallPattern", () => A.TypeErrorDecoder_extractPattern(A.TypeErrorDecoder_provokeCallErrorOn(null)));
  126054. _lazyFinal($, "TypeErrorDecoder_nullLiteralCallPattern", "$get$TypeErrorDecoder_nullLiteralCallPattern", () => A.TypeErrorDecoder_extractPattern(function() {
  126055. var $argumentsExpr$ = "$arguments$";
  126056. try {
  126057. null.$method$($argumentsExpr$);
  126058. } catch (e) {
  126059. return e.message;
  126060. }
  126061. }()));
  126062. _lazyFinal($, "TypeErrorDecoder_undefinedCallPattern", "$get$TypeErrorDecoder_undefinedCallPattern", () => A.TypeErrorDecoder_extractPattern(A.TypeErrorDecoder_provokeCallErrorOn(void 0)));
  126063. _lazyFinal($, "TypeErrorDecoder_undefinedLiteralCallPattern", "$get$TypeErrorDecoder_undefinedLiteralCallPattern", () => A.TypeErrorDecoder_extractPattern(function() {
  126064. var $argumentsExpr$ = "$arguments$";
  126065. try {
  126066. (void 0).$method$($argumentsExpr$);
  126067. } catch (e) {
  126068. return e.message;
  126069. }
  126070. }()));
  126071. _lazyFinal($, "TypeErrorDecoder_nullPropertyPattern", "$get$TypeErrorDecoder_nullPropertyPattern", () => A.TypeErrorDecoder_extractPattern(A.TypeErrorDecoder_provokePropertyErrorOn(null)));
  126072. _lazyFinal($, "TypeErrorDecoder_nullLiteralPropertyPattern", "$get$TypeErrorDecoder_nullLiteralPropertyPattern", () => A.TypeErrorDecoder_extractPattern(function() {
  126073. try {
  126074. null.$method$;
  126075. } catch (e) {
  126076. return e.message;
  126077. }
  126078. }()));
  126079. _lazyFinal($, "TypeErrorDecoder_undefinedPropertyPattern", "$get$TypeErrorDecoder_undefinedPropertyPattern", () => A.TypeErrorDecoder_extractPattern(A.TypeErrorDecoder_provokePropertyErrorOn(void 0)));
  126080. _lazyFinal($, "TypeErrorDecoder_undefinedLiteralPropertyPattern", "$get$TypeErrorDecoder_undefinedLiteralPropertyPattern", () => A.TypeErrorDecoder_extractPattern(function() {
  126081. try {
  126082. (void 0).$method$;
  126083. } catch (e) {
  126084. return e.message;
  126085. }
  126086. }()));
  126087. _lazyFinal($, "_AsyncRun__scheduleImmediateClosure", "$get$_AsyncRun__scheduleImmediateClosure", () => A._AsyncRun__initializeScheduleImmediate());
  126088. _lazyFinal($, "Future__nullFuture", "$get$Future__nullFuture", () => A.findType("_Future<Null>")._as($.$get$nullFuture()));
  126089. _lazyFinal($, "Future__falseFuture", "$get$Future__falseFuture", () => A._Future$zoneValue(false, B.C__RootZone, type$.bool));
  126090. _lazyFinal($, "_RootZone__rootMap", "$get$_RootZone__rootMap", () => {
  126091. var t1 = type$.dynamic;
  126092. return A.HashMap_HashMap(t1, t1);
  126093. });
  126094. _lazyFinal($, "_Utf8Decoder__reusableBuffer", "$get$_Utf8Decoder__reusableBuffer", () => A.NativeUint8List_NativeUint8List(4096));
  126095. _lazyFinal($, "_Utf8Decoder__decoder", "$get$_Utf8Decoder__decoder", () => new A._Utf8Decoder__decoder_closure().call$0());
  126096. _lazyFinal($, "_Utf8Decoder__decoderNonfatal", "$get$_Utf8Decoder__decoderNonfatal", () => new A._Utf8Decoder__decoderNonfatal_closure().call$0());
  126097. _lazyFinal($, "_Base64Decoder__inverseAlphabet", "$get$_Base64Decoder__inverseAlphabet", () => A.NativeInt8List__create1(A._ensureNativeList(A._setArrayType([-2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -1, -2, -2, -2, -2, -2, 62, -2, 62, -2, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -2, -2, -2, -1, -2, -2, -2, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -2, -2, -2, -2, 63, -2, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, -2, -2, -2, -2, -2], type$.JSArray_int))));
  126098. _lazyFinal($, "_Uri__isWindowsCached", "$get$_Uri__isWindowsCached", () => {
  126099. var t1 = typeof process != "undefined" && Object.prototype.toString.call(process) == "[object process]" && process.platform == "win32";
  126100. return t1;
  126101. });
  126102. _lazyFinal($, "_Uri__needsNoEncoding", "$get$_Uri__needsNoEncoding", () => A.RegExp_RegExp("^[\\-\\.0-9A-Z_a-z~]*$", false));
  126103. _lazyFinal($, "_hashSeed", "$get$_hashSeed", () => A.objectHashCode(B.Type_Object_QJv));
  126104. _lazyFinal($, "_scannerTables", "$get$_scannerTables", () => A._createTables());
  126105. _lazyFinal($, "Option__invalidChars", "$get$Option__invalidChars", () => A.RegExp_RegExp("[ \\t\\r\\n\"'\\\\/]", false));
  126106. _lazyFinal($, "_isStrictMode", "$get$_isStrictMode", () => new A._isStrictMode_closure().call$0());
  126107. _lazyFinal($, "alwaysValid", "$get$alwaysValid", () => new A.alwaysValid_closure());
  126108. _lazyFinal($, "readline", "$get$readline", () => self.readline);
  126109. _lazyFinal($, "windows", "$get$windows", () => A.Context_Context($.$get$Style_windows()));
  126110. _lazyFinal($, "url", "$get$url", () => A.Context_Context($.$get$Style_url()));
  126111. _lazyFinal($, "context", "$get$context", () => new A.Context($.$get$Style_platform(), null));
  126112. _lazyFinal($, "Style_posix", "$get$Style_posix", () => new A.PosixStyle(A.RegExp_RegExp("/", false), A.RegExp_RegExp("[^/]$", false), A.RegExp_RegExp("^/", false)));
  126113. _lazyFinal($, "Style_windows", "$get$Style_windows", () => new A.WindowsStyle(A.RegExp_RegExp("[/\\\\]", false), A.RegExp_RegExp("[^/\\\\]$", false), A.RegExp_RegExp("^(\\\\\\\\[^\\\\]+\\\\[^\\\\/]+|[a-zA-Z]:[/\\\\])", false), A.RegExp_RegExp("^[/\\\\](?![/\\\\])", false)));
  126114. _lazyFinal($, "Style_url", "$get$Style_url", () => new A.UrlStyle(A.RegExp_RegExp("/", false), A.RegExp_RegExp("(^[a-zA-Z][-+.a-zA-Z\\d]*://|[^/])$", false), A.RegExp_RegExp("[a-zA-Z][-+.a-zA-Z\\d]*://[^/]*", false), A.RegExp_RegExp("^/", false)));
  126115. _lazyFinal($, "Style_platform", "$get$Style_platform", () => A.Style__getPlatformStyle());
  126116. _lazyFinal($, "startVersion", "$get$startVersion", () => A.RegExp_RegExp("^(\\d+)\\.(\\d+)\\.(\\d+)(-([0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*))?(\\+([0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*))?", false));
  126117. _lazyFinal($, "completeVersion", "$get$completeVersion", () => A.RegExp_RegExp($.$get$startVersion().pattern + "$", false));
  126118. _lazyFinal($, "IfExpression_declaration", "$get$IfExpression_declaration", () => A.ArgumentDeclaration_ArgumentDeclaration$parse(string$.x40funct, null));
  126119. _lazyFinal($, "colorsByName", "$get$colorsByName", () => A.LinkedHashMap_LinkedHashMap$_literal(["yellowgreen", A.SassColor_SassColor$rgb(154, 205, 50, 1), "yellow", A.SassColor_SassColor$rgb(255, 255, 0, 1), "whitesmoke", A.SassColor_SassColor$rgb(245, 245, 245, 1), "white", A.SassColor_SassColor$rgb(255, 255, 255, 1), "wheat", A.SassColor_SassColor$rgb(245, 222, 179, 1), "violet", A.SassColor_SassColor$rgb(238, 130, 238, 1), "turquoise", A.SassColor_SassColor$rgb(64, 224, 208, 1), "transparent", A.SassColor_SassColor$rgb(0, 0, 0, 0), "tomato", A.SassColor_SassColor$rgb(255, 99, 71, 1), "thistle", A.SassColor_SassColor$rgb(216, 191, 216, 1), "teal", A.SassColor_SassColor$rgb(0, 128, 128, 1), "tan", A.SassColor_SassColor$rgb(210, 180, 140, 1), "steelblue", A.SassColor_SassColor$rgb(70, 130, 180, 1), "springgreen", A.SassColor_SassColor$rgb(0, 255, 127, 1), "snow", A.SassColor_SassColor$rgb(255, 250, 250, 1), "slategrey", A.SassColor_SassColor$rgb(112, 128, 144, 1), "slategray", A.SassColor_SassColor$rgb(112, 128, 144, 1), "slateblue", A.SassColor_SassColor$rgb(106, 90, 205, 1), "skyblue", A.SassColor_SassColor$rgb(135, 206, 235, 1), "silver", A.SassColor_SassColor$rgb(192, 192, 192, 1), "sienna", A.SassColor_SassColor$rgb(160, 82, 45, 1), "seashell", A.SassColor_SassColor$rgb(255, 245, 238, 1), "seagreen", A.SassColor_SassColor$rgb(46, 139, 87, 1), "sandybrown", A.SassColor_SassColor$rgb(244, 164, 96, 1), "salmon", A.SassColor_SassColor$rgb(250, 128, 114, 1), "saddlebrown", A.SassColor_SassColor$rgb(139, 69, 19, 1), "royalblue", A.SassColor_SassColor$rgb(65, 105, 225, 1), "rosybrown", A.SassColor_SassColor$rgb(188, 143, 143, 1), "red", A.SassColor_SassColor$rgb(255, 0, 0, 1), "rebeccapurple", A.SassColor_SassColor$rgb(102, 51, 153, 1), "purple", A.SassColor_SassColor$rgb(128, 0, 128, 1), "powderblue", A.SassColor_SassColor$rgb(176, 224, 230, 1), "plum", A.SassColor_SassColor$rgb(221, 160, 221, 1), "pink", A.SassColor_SassColor$rgb(255, 192, 203, 1), "peru", A.SassColor_SassColor$rgb(205, 133, 63, 1), "peachpuff", A.SassColor_SassColor$rgb(255, 218, 185, 1), "papayawhip", A.SassColor_SassColor$rgb(255, 239, 213, 1), "palevioletred", A.SassColor_SassColor$rgb(219, 112, 147, 1), "paleturquoise", A.SassColor_SassColor$rgb(175, 238, 238, 1), "palegreen", A.SassColor_SassColor$rgb(152, 251, 152, 1), "palegoldenrod", A.SassColor_SassColor$rgb(238, 232, 170, 1), "orchid", A.SassColor_SassColor$rgb(218, 112, 214, 1), "orangered", A.SassColor_SassColor$rgb(255, 69, 0, 1), "orange", A.SassColor_SassColor$rgb(255, 165, 0, 1), "olivedrab", A.SassColor_SassColor$rgb(107, 142, 35, 1), "olive", A.SassColor_SassColor$rgb(128, 128, 0, 1), "oldlace", A.SassColor_SassColor$rgb(253, 245, 230, 1), "navy", A.SassColor_SassColor$rgb(0, 0, 128, 1), "navajowhite", A.SassColor_SassColor$rgb(255, 222, 173, 1), "moccasin", A.SassColor_SassColor$rgb(255, 228, 181, 1), "mistyrose", A.SassColor_SassColor$rgb(255, 228, 225, 1), "mintcream", A.SassColor_SassColor$rgb(245, 255, 250, 1), "midnightblue", A.SassColor_SassColor$rgb(25, 25, 112, 1), "mediumvioletred", A.SassColor_SassColor$rgb(199, 21, 133, 1), "mediumturquoise", A.SassColor_SassColor$rgb(72, 209, 204, 1), "mediumspringgreen", A.SassColor_SassColor$rgb(0, 250, 154, 1), "mediumslateblue", A.SassColor_SassColor$rgb(123, 104, 238, 1), "mediumseagreen", A.SassColor_SassColor$rgb(60, 179, 113, 1), "mediumpurple", A.SassColor_SassColor$rgb(147, 112, 219, 1), "mediumorchid", A.SassColor_SassColor$rgb(186, 85, 211, 1), "mediumblue", A.SassColor_SassColor$rgb(0, 0, 205, 1), "mediumaquamarine", A.SassColor_SassColor$rgb(102, 205, 170, 1), "maroon", A.SassColor_SassColor$rgb(128, 0, 0, 1), "magenta", A.SassColor_SassColor$rgb(255, 0, 255, 1), "linen", A.SassColor_SassColor$rgb(250, 240, 230, 1), "limegreen", A.SassColor_SassColor$rgb(50, 205, 50, 1), "lime", A.SassColor_SassColor$rgb(0, 255, 0, 1), "lightyellow", A.SassColor_SassColor$rgb(255, 255, 224, 1), "lightsteelblue", A.SassColor_SassColor$rgb(176, 196, 222, 1), "lightslategrey", A.SassColor_SassColor$rgb(119, 136, 153, 1), "lightslategray", A.SassColor_SassColor$rgb(119, 136, 153, 1), "lightskyblue", A.SassColor_SassColor$rgb(135, 206, 250, 1), "lightseagreen", A.SassColor_SassColor$rgb(32, 178, 170, 1), "lightsalmon", A.SassColor_SassColor$rgb(255, 160, 122, 1), "lightpink", A.SassColor_SassColor$rgb(255, 182, 193, 1), "lightgrey", A.SassColor_SassColor$rgb(211, 211, 211, 1), "lightgreen", A.SassColor_SassColor$rgb(144, 238, 144, 1), "lightgray", A.SassColor_SassColor$rgb(211, 211, 211, 1), "lightgoldenrodyellow", A.SassColor_SassColor$rgb(250, 250, 210, 1), "lightcyan", A.SassColor_SassColor$rgb(224, 255, 255, 1), "lightcoral", A.SassColor_SassColor$rgb(240, 128, 128, 1), "lightblue", A.SassColor_SassColor$rgb(173, 216, 230, 1), "lemonchiffon", A.SassColor_SassColor$rgb(255, 250, 205, 1), "lawngreen", A.SassColor_SassColor$rgb(124, 252, 0, 1), "lavenderblush", A.SassColor_SassColor$rgb(255, 240, 245, 1), "lavender", A.SassColor_SassColor$rgb(230, 230, 250, 1), "khaki", A.SassColor_SassColor$rgb(240, 230, 140, 1), "ivory", A.SassColor_SassColor$rgb(255, 255, 240, 1), "indigo", A.SassColor_SassColor$rgb(75, 0, 130, 1), "indianred", A.SassColor_SassColor$rgb(205, 92, 92, 1), "hotpink", A.SassColor_SassColor$rgb(255, 105, 180, 1), "honeydew", A.SassColor_SassColor$rgb(240, 255, 240, 1), "grey", A.SassColor_SassColor$rgb(128, 128, 128, 1), "greenyellow", A.SassColor_SassColor$rgb(173, 255, 47, 1), "green", A.SassColor_SassColor$rgb(0, 128, 0, 1), "gray", A.SassColor_SassColor$rgb(128, 128, 128, 1), "goldenrod", A.SassColor_SassColor$rgb(218, 165, 32, 1), "gold", A.SassColor_SassColor$rgb(255, 215, 0, 1), "ghostwhite", A.SassColor_SassColor$rgb(248, 248, 255, 1), "gainsboro", A.SassColor_SassColor$rgb(220, 220, 220, 1), "fuchsia", A.SassColor_SassColor$rgb(255, 0, 255, 1), "forestgreen", A.SassColor_SassColor$rgb(34, 139, 34, 1), "floralwhite", A.SassColor_SassColor$rgb(255, 250, 240, 1), "firebrick", A.SassColor_SassColor$rgb(178, 34, 34, 1), "dodgerblue", A.SassColor_SassColor$rgb(30, 144, 255, 1), "dimgrey", A.SassColor_SassColor$rgb(105, 105, 105, 1), "dimgray", A.SassColor_SassColor$rgb(105, 105, 105, 1), "deepskyblue", A.SassColor_SassColor$rgb(0, 191, 255, 1), "deeppink", A.SassColor_SassColor$rgb(255, 20, 147, 1), "darkviolet", A.SassColor_SassColor$rgb(148, 0, 211, 1), "darkturquoise", A.SassColor_SassColor$rgb(0, 206, 209, 1), "darkslategrey", A.SassColor_SassColor$rgb(47, 79, 79, 1), "darkslategray", A.SassColor_SassColor$rgb(47, 79, 79, 1), "darkslateblue", A.SassColor_SassColor$rgb(72, 61, 139, 1), "darkseagreen", A.SassColor_SassColor$rgb(143, 188, 143, 1), "darksalmon", A.SassColor_SassColor$rgb(233, 150, 122, 1), "darkred", A.SassColor_SassColor$rgb(139, 0, 0, 1), "darkorchid", A.SassColor_SassColor$rgb(153, 50, 204, 1), "darkorange", A.SassColor_SassColor$rgb(255, 140, 0, 1), "darkolivegreen", A.SassColor_SassColor$rgb(85, 107, 47, 1), "darkmagenta", A.SassColor_SassColor$rgb(139, 0, 139, 1), "darkkhaki", A.SassColor_SassColor$rgb(189, 183, 107, 1), "darkgrey", A.SassColor_SassColor$rgb(169, 169, 169, 1), "darkgreen", A.SassColor_SassColor$rgb(0, 100, 0, 1), "darkgray", A.SassColor_SassColor$rgb(169, 169, 169, 1), "darkgoldenrod", A.SassColor_SassColor$rgb(184, 134, 11, 1), "darkcyan", A.SassColor_SassColor$rgb(0, 139, 139, 1), "darkblue", A.SassColor_SassColor$rgb(0, 0, 139, 1), "cyan", A.SassColor_SassColor$rgb(0, 255, 255, 1), "crimson", A.SassColor_SassColor$rgb(220, 20, 60, 1), "cornsilk", A.SassColor_SassColor$rgb(255, 248, 220, 1), "cornflowerblue", A.SassColor_SassColor$rgb(100, 149, 237, 1), "coral", A.SassColor_SassColor$rgb(255, 127, 80, 1), "chocolate", A.SassColor_SassColor$rgb(210, 105, 30, 1), "chartreuse", A.SassColor_SassColor$rgb(127, 255, 0, 1), "cadetblue", A.SassColor_SassColor$rgb(95, 158, 160, 1), "burlywood", A.SassColor_SassColor$rgb(222, 184, 135, 1), "brown", A.SassColor_SassColor$rgb(165, 42, 42, 1), "blueviolet", A.SassColor_SassColor$rgb(138, 43, 226, 1), "blue", A.SassColor_SassColor$rgb(0, 0, 255, 1), "blanchedalmond", A.SassColor_SassColor$rgb(255, 235, 205, 1), "black", A.SassColor_SassColor$rgb(0, 0, 0, 1), "bisque", A.SassColor_SassColor$rgb(255, 228, 196, 1), "beige", A.SassColor_SassColor$rgb(245, 245, 220, 1), "azure", A.SassColor_SassColor$rgb(240, 255, 255, 1), "aquamarine", A.SassColor_SassColor$rgb(127, 255, 212, 1), "aqua", A.SassColor_SassColor$rgb(0, 255, 255, 1), "antiquewhite", A.SassColor_SassColor$rgb(250, 235, 215, 1), "aliceblue", A.SassColor_SassColor$rgb(240, 248, 255, 1)], type$.String, type$.SassColor));
  126120. _lazyFinal($, "namesByColor", "$get$namesByColor", () => {
  126121. var $name,
  126122. t1 = type$.SassColor,
  126123. t2 = type$.String,
  126124. t3 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
  126125. for (t1 = A.MapExtensions_get_pairs($.$get$colorsByName(), t2, t1), t1 = t1.get$iterator(t1); t1.moveNext$0();) {
  126126. t2 = t1.get$current(t1);
  126127. $name = t2._0;
  126128. t3.$indexSet(0, t2._1, $name);
  126129. }
  126130. return t3;
  126131. });
  126132. _lazyFinal($, "ExecutableOptions__separatorBar", "$get$ExecutableOptions__separatorBar", () => A.isWindows() ? "=" : "\u2501");
  126133. _lazyFinal($, "ExecutableOptions__parser", "$get$ExecutableOptions__parser", () => new A.ExecutableOptions__parser_closure().call$0());
  126134. _lazyFinal($, "globalFunctions", "$get$globalFunctions", () => {
  126135. var t1 = type$.BuiltInCallable,
  126136. t2 = A.List_List$of($.$get$global(), true, t1);
  126137. B.JSArray_methods.addAll$1(t2, $.$get$global0());
  126138. B.JSArray_methods.addAll$1(t2, $.$get$global1());
  126139. B.JSArray_methods.addAll$1(t2, $.$get$global2());
  126140. B.JSArray_methods.addAll$1(t2, $.$get$global3());
  126141. B.JSArray_methods.addAll$1(t2, $.$get$global4());
  126142. B.JSArray_methods.addAll$1(t2, $.$get$global5());
  126143. t2.push(A.BuiltInCallable$function("if", "$condition, $if-true, $if-false", new A.globalFunctions_closure(), null));
  126144. return A.UnmodifiableListView$(t2, t1);
  126145. });
  126146. _lazyFinal($, "coreModules", "$get$coreModules", () => A.UnmodifiableListView$(A._setArrayType([$.$get$module(), $.$get$module0(), $.$get$module1(), $.$get$module2(), $.$get$module3(), $.$get$module4()], A.findType("JSArray<BuiltInModule<Callable0>>")), type$.BuiltInModule_Callable));
  126147. _lazyFinal($, "_microsoftFilterStart", "$get$_microsoftFilterStart", () => A.RegExp_RegExp("^[a-zA-Z]+\\s*=", false));
  126148. _lazyFinal($, "global", "$get$global", () => {
  126149. var _s5_ = "color",
  126150. _s27_ = "$red, $green, $blue, $alpha",
  126151. _s19_ = "$red, $green, $blue",
  126152. _s9_ = "$channels",
  126153. _s37_ = "$hue, $saturation, $lightness, $alpha",
  126154. _s29_ = "$hue, $saturation, $lightness",
  126155. _s17_ = "$hue, $saturation",
  126156. _s6_ = "adjust",
  126157. _s15_ = "$color, $amount",
  126158. t1 = type$.String,
  126159. t2 = type$.Value_Function_List_Value;
  126160. return A.UnmodifiableListView$(A._setArrayType([A._channelFunction("red", B.RgbColorSpace_mlz, new A.global_closure0(), true, null).withDeprecationWarning$1(_s5_), A._channelFunction("green", B.RgbColorSpace_mlz, new A.global_closure1(), true, null).withDeprecationWarning$1(_s5_), A._channelFunction("blue", B.RgbColorSpace_mlz, new A.global_closure2(), true, null).withDeprecationWarning$1(_s5_), $.$get$_mix().withDeprecationWarning$1(_s5_), A.BuiltInCallable$overloadedFunction("rgb", A.LinkedHashMap_LinkedHashMap$_literal([_s27_, new A.global_closure3(), _s19_, new A.global_closure4(), "$color, $alpha", new A.global_closure5(), "$channels", new A.global_closure6()], t1, t2)), A.BuiltInCallable$overloadedFunction("rgba", A.LinkedHashMap_LinkedHashMap$_literal([_s27_, new A.global_closure7(), _s19_, new A.global_closure8(), "$color, $alpha", new A.global_closure9(), "$channels", new A.global_closure10()], t1, t2)), A._function5("invert", "$color, $weight: 100%, $space: null", new A.global_closure11()), A._channelFunction("hue", B.HslColorSpace_gsm, new A.global_closure12(), true, "deg").withDeprecationWarning$1(_s5_), A._channelFunction("saturation", B.HslColorSpace_gsm, new A.global_closure13(), true, "%").withDeprecationWarning$1(_s5_), A._channelFunction("lightness", B.HslColorSpace_gsm, new A.global_closure14(), true, "%").withDeprecationWarning$1(_s5_), A.BuiltInCallable$overloadedFunction("hsl", A.LinkedHashMap_LinkedHashMap$_literal([_s37_, new A.global_closure15(), _s29_, new A.global_closure16(), _s17_, new A.global_closure17(), "$channels", new A.global_closure18()], t1, t2)), A.BuiltInCallable$overloadedFunction("hsla", A.LinkedHashMap_LinkedHashMap$_literal([_s37_, new A.global_closure19(), _s29_, new A.global_closure20(), _s17_, new A.global_closure21(), "$channels", new A.global_closure22()], t1, t2)), A._function5("grayscale", "$color", new A.global_closure23()), A._function5("adjust-hue", "$color, $degrees", new A.global_closure24()).withDeprecationWarning$2(_s5_, _s6_), A._function5("lighten", _s15_, new A.global_closure25()).withDeprecationWarning$2(_s5_, _s6_), A._function5("darken", _s15_, new A.global_closure26()).withDeprecationWarning$2(_s5_, _s6_), A.BuiltInCallable$overloadedFunction("saturate", A.LinkedHashMap_LinkedHashMap$_literal(["$amount", new A.global_closure27(), "$color, $amount", new A.global_closure28()], t1, t2)), A._function5("desaturate", _s15_, new A.global_closure29()).withDeprecationWarning$2(_s5_, _s6_), A._function5("opacify", _s15_, new A.global_closure30()).withDeprecationWarning$2(_s5_, _s6_), A._function5("fade-in", _s15_, new A.global_closure31()).withDeprecationWarning$2(_s5_, _s6_), A._function5("transparentize", _s15_, new A.global_closure32()).withDeprecationWarning$2(_s5_, _s6_), A._function5("fade-out", _s15_, new A.global_closure33()).withDeprecationWarning$2(_s5_, _s6_), A.BuiltInCallable$overloadedFunction("alpha", A.LinkedHashMap_LinkedHashMap$_literal(["$color", new A.global_closure34(), "$args...", new A.global_closure35()], t1, t2)), A._function5("opacity", "$color", new A.global_closure36()), A._function5(_s5_, "$description", new A.global_closure37()), A._function5("hwb", _s9_, new A.global_closure38()), A._function5("lab", _s9_, new A.global_closure39()), A._function5("lch", _s9_, new A.global_closure40()), A._function5("oklab", _s9_, new A.global_closure41()), A._function5("oklch", _s9_, new A.global_closure42()), $.$get$_complement().withDeprecationWarning$1(_s5_), $.$get$_ieHexStr(), $.$get$_adjust().withDeprecationWarning$1(_s5_).withName$1("adjust-color"), $.$get$_scale().withDeprecationWarning$1(_s5_).withName$1("scale-color"), $.$get$_change().withDeprecationWarning$1(_s5_).withName$1("change-color")], type$.JSArray_BuiltInCallable), type$.BuiltInCallable);
  126161. });
  126162. _lazyFinal($, "module", "$get$module", () => {
  126163. var _null = null,
  126164. _s10_ = "saturation",
  126165. _s9_ = "lightness",
  126166. _s6_ = "$color", _s5_ = "alpha",
  126167. _s30_ = "$color, $channel, $space: null",
  126168. t1 = type$.String,
  126169. t2 = type$.Value_Function_List_Value;
  126170. return A.BuiltInModule$("color", A._setArrayType([A._channelFunction("red", B.RgbColorSpace_mlz, new A.module_closure1(), false, _null), A._channelFunction("green", B.RgbColorSpace_mlz, new A.module_closure2(), false, _null), A._channelFunction("blue", B.RgbColorSpace_mlz, new A.module_closure3(), false, _null), $.$get$_mix(), A._function5("invert", "$color, $weight: 100%, $space: null", new A.module_closure4()), A._channelFunction("hue", B.HslColorSpace_gsm, new A.module_closure5(), false, "deg"), A._channelFunction(_s10_, B.HslColorSpace_gsm, new A.module_closure6(), false, "%"), A._channelFunction(_s9_, B.HslColorSpace_gsm, new A.module_closure7(), false, "%"), A._removedColorFunction("adjust-hue", "hue", false), A._removedColorFunction("lighten", _s9_, false), A._removedColorFunction("darken", _s9_, true), A._removedColorFunction("saturate", _s10_, false), A._removedColorFunction("desaturate", _s10_, true), A._function5("grayscale", _s6_, new A.module_closure8()), A.BuiltInCallable$overloadedFunction("hwb", A.LinkedHashMap_LinkedHashMap$_literal(["$hue, $whiteness, $blackness, $alpha: 1", new A.module_closure9(), "$channels", new A.module_closure10()], t1, t2)), A._channelFunction("whiteness", B.HwbColorSpace_06z, new A.module_closure11(), false, "%"), A._channelFunction("blackness", B.HwbColorSpace_06z, new A.module_closure12(), false, "%"), A._removedColorFunction("opacify", _s5_, false), A._removedColorFunction("fade-in", _s5_, false), A._removedColorFunction("transparentize", _s5_, true), A._removedColorFunction("fade-out", _s5_, true), A.BuiltInCallable$overloadedFunction(_s5_, A.LinkedHashMap_LinkedHashMap$_literal(["$color", new A.module_closure13(), "$args...", new A.module_closure14()], t1, t2)), A._function5("opacity", _s6_, new A.module_closure15()), A._function5("space", _s6_, new A.module_closure16()), A._function5("to-space", "$color, $space", new A.module_closure17()), A._function5("is-legacy", _s6_, new A.module_closure18()), A._function5("is-missing", "$color, $channel", new A.module_closure19()), A._function5("is-in-gamut", "$color, $space: null", new A.module_closure20()), A._function5("to-gamut", "$color, $space: null, $method: null", new A.module_closure21()), A._function5("channel", _s30_, new A.module_closure22()), A._function5("same", "$color1, $color2", new A.module_closure23()), A._function5("is-powerless", _s30_, new A.module_closure24()), $.$get$_complement(), $.$get$_adjust(), $.$get$_scale(), $.$get$_change(), $.$get$_ieHexStr()], type$.JSArray_Callable), _null, _null, type$.Callable);
  126171. });
  126172. _lazyFinal($, "_mix", "$get$_mix", () => A._function5("mix", string$.x24color, new A._mix_closure()));
  126173. _lazyFinal($, "_complement", "$get$_complement", () => A._function5("complement", "$color, $space: null", new A._complement_closure()));
  126174. _lazyFinal($, "_adjust", "$get$_adjust", () => A._function5("adjust", "$color, $kwargs...", new A._adjust_closure()));
  126175. _lazyFinal($, "_scale", "$get$_scale", () => A._function5("scale", "$color, $kwargs...", new A._scale_closure()));
  126176. _lazyFinal($, "_change", "$get$_change", () => A._function5("change", "$color, $kwargs...", new A._change_closure()));
  126177. _lazyFinal($, "_ieHexStr", "$get$_ieHexStr", () => A._function5("ie-hex-str", "$color", new A._ieHexStr_closure()));
  126178. _lazyFinal($, "global0", "$get$global0", () => {
  126179. var _s4_ = "list";
  126180. return A.UnmodifiableListView$(A._setArrayType([$.$get$_length0().withDeprecationWarning$1(_s4_), $.$get$_nth().withDeprecationWarning$1(_s4_), $.$get$_setNth().withDeprecationWarning$1(_s4_), $.$get$_join().withDeprecationWarning$1(_s4_), $.$get$_append0().withDeprecationWarning$1(_s4_), $.$get$_zip().withDeprecationWarning$1(_s4_), $.$get$_index0().withDeprecationWarning$1(_s4_), $.$get$_isBracketed().withDeprecationWarning$1(_s4_), $.$get$_separator().withDeprecationWarning$1(_s4_).withName$1("list-separator")], type$.JSArray_BuiltInCallable), type$.BuiltInCallable);
  126181. });
  126182. _lazyFinal($, "module0", "$get$module0", () => A.BuiltInModule$("list", A._setArrayType([$.$get$_length0(), $.$get$_nth(), $.$get$_setNth(), $.$get$_join(), $.$get$_append0(), $.$get$_zip(), $.$get$_index0(), $.$get$_isBracketed(), $.$get$_separator(), $.$get$_slash()], type$.JSArray_Callable), null, null, type$.Callable));
  126183. _lazyFinal($, "_length", "$get$_length0", () => A._function4("length", "$list", new A._length_closure0()));
  126184. _lazyFinal($, "_nth", "$get$_nth", () => A._function4("nth", "$list, $n", new A._nth_closure()));
  126185. _lazyFinal($, "_setNth", "$get$_setNth", () => A._function4("set-nth", "$list, $n, $value", new A._setNth_closure()));
  126186. _lazyFinal($, "_join", "$get$_join", () => A._function4("join", string$.x24list1, new A._join_closure()));
  126187. _lazyFinal($, "_append", "$get$_append0", () => A._function4("append", "$list, $val, $separator: auto", new A._append_closure0()));
  126188. _lazyFinal($, "_zip", "$get$_zip", () => A._function4("zip", "$lists...", new A._zip_closure()));
  126189. _lazyFinal($, "_index", "$get$_index0", () => A._function4("index", "$list, $value", new A._index_closure0()));
  126190. _lazyFinal($, "_separator", "$get$_separator", () => A._function4("separator", "$list", new A._separator_closure()));
  126191. _lazyFinal($, "_isBracketed", "$get$_isBracketed", () => A._function4("is-bracketed", "$list", new A._isBracketed_closure()));
  126192. _lazyFinal($, "_slash", "$get$_slash", () => A._function4("slash", "$elements...", new A._slash_closure()));
  126193. _lazyFinal($, "global1", "$get$global1", () => {
  126194. var _s3_ = "map";
  126195. return A.UnmodifiableListView$(A._setArrayType([$.$get$_get().withDeprecationWarning$1(_s3_).withName$1("map-get"), $.$get$_merge().withDeprecationWarning$1(_s3_).withName$1("map-merge"), $.$get$_remove().withDeprecationWarning$1(_s3_).withName$1("map-remove"), $.$get$_keys().withDeprecationWarning$1(_s3_).withName$1("map-keys"), $.$get$_values().withDeprecationWarning$1(_s3_).withName$1("map-values"), $.$get$_hasKey().withDeprecationWarning$1(_s3_).withName$1("map-has-key")], type$.JSArray_BuiltInCallable), type$.BuiltInCallable);
  126196. });
  126197. _lazyFinal($, "module1", "$get$module1", () => A.BuiltInModule$("map", A._setArrayType([$.$get$_get(), $.$get$_set(), $.$get$_merge(), $.$get$_remove(), $.$get$_keys(), $.$get$_values(), $.$get$_hasKey(), $.$get$_deepMerge(), $.$get$_deepRemove()], type$.JSArray_Callable), null, null, type$.Callable));
  126198. _lazyFinal($, "_get", "$get$_get", () => A._function3("get", "$map, $key, $keys...", new A._get_closure()));
  126199. _lazyFinal($, "_set", "$get$_set", () => A.BuiltInCallable$overloadedFunction("set", A.LinkedHashMap_LinkedHashMap$_literal(["$map, $key, $value", new A._set_closure(), "$map, $args...", new A._set_closure0()], type$.String, type$.Value_Function_List_Value)));
  126200. _lazyFinal($, "_merge", "$get$_merge", () => A.BuiltInCallable$overloadedFunction("merge", A.LinkedHashMap_LinkedHashMap$_literal(["$map1, $map2", new A._merge_closure(), "$map1, $args...", new A._merge_closure0()], type$.String, type$.Value_Function_List_Value)));
  126201. _lazyFinal($, "_deepMerge", "$get$_deepMerge", () => A._function3("deep-merge", "$map1, $map2", new A._deepMerge_closure()));
  126202. _lazyFinal($, "_deepRemove", "$get$_deepRemove", () => A._function3("deep-remove", "$map, $key, $keys...", new A._deepRemove_closure()));
  126203. _lazyFinal($, "_remove", "$get$_remove", () => A.BuiltInCallable$overloadedFunction("remove", A.LinkedHashMap_LinkedHashMap$_literal(["$map", new A._remove_closure(), "$map, $key, $keys...", new A._remove_closure0()], type$.String, type$.Value_Function_List_Value)));
  126204. _lazyFinal($, "_keys", "$get$_keys", () => A._function3("keys", "$map", new A._keys_closure()));
  126205. _lazyFinal($, "_values", "$get$_values", () => A._function3("values", "$map", new A._values_closure()));
  126206. _lazyFinal($, "_hasKey", "$get$_hasKey", () => A._function3("has-key", "$map, $key, $keys...", new A._hasKey_closure()));
  126207. _lazyFinal($, "global2", "$get$global2", () => {
  126208. var _s4_ = "math";
  126209. return A.UnmodifiableListView$(A._setArrayType([A._function2("abs", "$number", new A.global_closure()), $.$get$_ceil().withDeprecationWarning$1(_s4_), $.$get$_floor().withDeprecationWarning$1(_s4_), $.$get$_max().withDeprecationWarning$1(_s4_), $.$get$_min().withDeprecationWarning$1(_s4_), $.$get$_percentage().withDeprecationWarning$1(_s4_), $.$get$_randomFunction().withDeprecationWarning$1(_s4_), $.$get$_round().withDeprecationWarning$1(_s4_), $.$get$_unit().withDeprecationWarning$1(_s4_), $.$get$_compatible().withDeprecationWarning$1(_s4_).withName$1("comparable"), $.$get$_isUnitless().withDeprecationWarning$1(_s4_).withName$1("unitless")], type$.JSArray_BuiltInCallable), type$.BuiltInCallable);
  126210. });
  126211. _lazyFinal($, "module2", "$get$module2", () => {
  126212. var _null = null;
  126213. return A.BuiltInModule$("math", A._setArrayType([A._numberFunction("abs", new A.module_closure0()), $.$get$_acos(), $.$get$_asin(), $.$get$_atan(), $.$get$_atan2(), $.$get$_ceil(), $.$get$_clamp(), $.$get$_cos(), $.$get$_compatible(), $.$get$_floor(), $.$get$_hypot(), $.$get$_isUnitless(), $.$get$_log(), $.$get$_max(), $.$get$_min(), $.$get$_percentage(), $.$get$_pow(), $.$get$_randomFunction(), $.$get$_round(), $.$get$_sin(), $.$get$_sqrt(), $.$get$_tan(), $.$get$_unit(), $.$get$_div()], type$.JSArray_Callable), _null, A.LinkedHashMap_LinkedHashMap$_literal(["e", A.SassNumber_SassNumber(2.718281828459045, _null), "pi", A.SassNumber_SassNumber(3.141592653589793, _null), "epsilon", A.SassNumber_SassNumber(2220446049250313e-31, _null), "max-safe-integer", A.SassNumber_SassNumber(9007199254740991, _null), "min-safe-integer", A.SassNumber_SassNumber(-9007199254740991, _null), "max-number", A.SassNumber_SassNumber(17976931348623157e292, _null), "min-number", A.SassNumber_SassNumber(5e-324, _null)], type$.String, type$.Value), type$.Callable);
  126214. });
  126215. _lazyFinal($, "_ceil", "$get$_ceil", () => A._numberFunction("ceil", new A._ceil_closure()));
  126216. _lazyFinal($, "_clamp", "$get$_clamp", () => A._function2("clamp", "$min, $number, $max", new A._clamp_closure()));
  126217. _lazyFinal($, "_floor", "$get$_floor", () => A._numberFunction("floor", new A._floor_closure()));
  126218. _lazyFinal($, "_max", "$get$_max", () => A._function2("max", "$numbers...", new A._max_closure()));
  126219. _lazyFinal($, "_min", "$get$_min", () => A._function2("min", "$numbers...", new A._min_closure()));
  126220. _lazyFinal($, "_round", "$get$_round", () => A._numberFunction("round", new A._round_closure()));
  126221. _lazyFinal($, "_hypot", "$get$_hypot", () => A._function2("hypot", "$numbers...", new A._hypot_closure()));
  126222. _lazyFinal($, "_log", "$get$_log", () => A._function2("log", "$number, $base: null", new A._log_closure()));
  126223. _lazyFinal($, "_pow", "$get$_pow", () => A._function2("pow", "$base, $exponent", new A._pow_closure()));
  126224. _lazyFinal($, "_sqrt", "$get$_sqrt", () => A._singleArgumentMathFunc("sqrt", A.number0__sqrt$closure()));
  126225. _lazyFinal($, "_acos", "$get$_acos", () => A._singleArgumentMathFunc("acos", A.number0__acos$closure()));
  126226. _lazyFinal($, "_asin", "$get$_asin", () => A._singleArgumentMathFunc("asin", A.number0__asin$closure()));
  126227. _lazyFinal($, "_atan", "$get$_atan", () => A._singleArgumentMathFunc("atan", A.number0__atan$closure()));
  126228. _lazyFinal($, "_atan2", "$get$_atan2", () => A._function2("atan2", "$y, $x", new A._atan2_closure()));
  126229. _lazyFinal($, "_cos", "$get$_cos", () => A._singleArgumentMathFunc("cos", A.number0__cos$closure()));
  126230. _lazyFinal($, "_sin", "$get$_sin", () => A._singleArgumentMathFunc("sin", A.number0__sin$closure()));
  126231. _lazyFinal($, "_tan", "$get$_tan", () => A._singleArgumentMathFunc("tan", A.number0__tan$closure()));
  126232. _lazyFinal($, "_compatible", "$get$_compatible", () => A._function2("compatible", "$number1, $number2", new A._compatible_closure()));
  126233. _lazyFinal($, "_isUnitless", "$get$_isUnitless", () => A._function2("is-unitless", "$number", new A._isUnitless_closure()));
  126234. _lazyFinal($, "_unit", "$get$_unit", () => A._function2("unit", "$number", new A._unit_closure()));
  126235. _lazyFinal($, "_percentage", "$get$_percentage", () => A._function2("percentage", "$number", new A._percentage_closure()));
  126236. _lazyFinal($, "_random", "$get$_random0", () => A.Random_Random());
  126237. _lazyFinal($, "_randomFunction", "$get$_randomFunction", () => A._function2("random", "$limit: null", new A._randomFunction_closure()));
  126238. _lazyFinal($, "_div", "$get$_div", () => A._function2("div", "$number1, $number2", new A._div_closure()));
  126239. _lazyFinal($, "_shared", "$get$_shared", () => A.UnmodifiableListView$(A._setArrayType([A._function("feature-exists", "$feature", new A._shared_closure()), A._function("inspect", "$value", new A._shared_closure0()), A._function("type-of", "$value", new A._shared_closure1()), A._function("keywords", "$args", new A._shared_closure2())], type$.JSArray_BuiltInCallable), type$.BuiltInCallable));
  126240. _lazyFinal($, "global3", "$get$global5", () => {
  126241. var t2,
  126242. t1 = A._setArrayType([], type$.JSArray_BuiltInCallable);
  126243. for (t2 = $.$get$_shared(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  126244. t1.push(t2.get$current(0).withDeprecationWarning$1("meta"));
  126245. return A.UnmodifiableListView$(t1, type$.BuiltInCallable);
  126246. });
  126247. _lazyFinal($, "moduleFunctions", "$get$moduleFunctions", () => {
  126248. var t1 = type$.BuiltInCallable,
  126249. t2 = A.List_List$of($.$get$_shared(), true, t1);
  126250. t2.push(A._function("calc-name", "$calc", new A.moduleFunctions_closure()));
  126251. t2.push(A._function("calc-args", "$calc", new A.moduleFunctions_closure0()));
  126252. t2.push(A._function("accepts-content", "$mixin", new A.moduleFunctions_closure1()));
  126253. return A.UnmodifiableListView$(t2, t1);
  126254. });
  126255. _lazyFinal($, "global4", "$get$global3", () => {
  126256. var _s8_ = "selector";
  126257. return A.UnmodifiableListView$(A._setArrayType([$.$get$_isSuperselector().withDeprecationWarning$1(_s8_), $.$get$_simpleSelectors().withDeprecationWarning$1(_s8_), $.$get$_parse().withDeprecationWarning$1(_s8_).withName$1("selector-parse"), $.$get$_nest().withDeprecationWarning$1(_s8_).withName$1("selector-nest"), $.$get$_append().withDeprecationWarning$1(_s8_).withName$1("selector-append"), $.$get$_extend().withDeprecationWarning$1(_s8_).withName$1("selector-extend"), $.$get$_replace().withDeprecationWarning$1(_s8_).withName$1("selector-replace"), $.$get$_unify().withDeprecationWarning$1(_s8_).withName$1("selector-unify")], type$.JSArray_BuiltInCallable), type$.BuiltInCallable);
  126258. });
  126259. _lazyFinal($, "module3", "$get$module3", () => A.BuiltInModule$("selector", A._setArrayType([$.$get$_isSuperselector(), $.$get$_simpleSelectors(), $.$get$_parse(), $.$get$_nest(), $.$get$_append(), $.$get$_extend(), $.$get$_replace(), $.$get$_unify()], type$.JSArray_Callable), null, null, type$.Callable));
  126260. _lazyFinal($, "_nest", "$get$_nest", () => A._function1("nest", "$selectors...", new A._nest_closure()));
  126261. _lazyFinal($, "_append0", "$get$_append", () => A._function1("append", "$selectors...", new A._append_closure()));
  126262. _lazyFinal($, "_extend", "$get$_extend", () => A._function1("extend", "$selector, $extendee, $extender", new A._extend_closure()));
  126263. _lazyFinal($, "_replace", "$get$_replace", () => A._function1("replace", "$selector, $original, $replacement", new A._replace_closure()));
  126264. _lazyFinal($, "_unify", "$get$_unify", () => A._function1("unify", "$selector1, $selector2", new A._unify_closure()));
  126265. _lazyFinal($, "_isSuperselector", "$get$_isSuperselector", () => A._function1("is-superselector", "$super, $sub", new A._isSuperselector_closure()));
  126266. _lazyFinal($, "_simpleSelectors", "$get$_simpleSelectors", () => A._function1("simple-selectors", "$selector", new A._simpleSelectors_closure()));
  126267. _lazyFinal($, "_parse0", "$get$_parse", () => A._function1("parse", "$selector", new A._parse_closure()));
  126268. _lazyFinal($, "_random0", "$get$_random", () => A.Random_Random());
  126269. _lazy($, "_previousUniqueId", "$get$_previousUniqueId", () => $.$get$_random().nextInt$1(A._asInt(A.pow(36, 6))));
  126270. _lazyFinal($, "global5", "$get$global4", () => {
  126271. var _s6_ = "string";
  126272. return A.UnmodifiableListView$(A._setArrayType([$.$get$_unquote().withDeprecationWarning$1(_s6_), $.$get$_quote().withDeprecationWarning$1(_s6_), $.$get$_toUpperCase().withDeprecationWarning$1(_s6_), $.$get$_toLowerCase().withDeprecationWarning$1(_s6_), $.$get$_uniqueId().withDeprecationWarning$1(_s6_), $.$get$_length().withDeprecationWarning$1(_s6_).withName$1("str-length"), $.$get$_insert().withDeprecationWarning$1(_s6_).withName$1("str-insert"), $.$get$_index().withDeprecationWarning$1(_s6_).withName$1("str-index"), $.$get$_slice().withDeprecationWarning$1(_s6_).withName$1("str-slice")], type$.JSArray_BuiltInCallable), type$.BuiltInCallable);
  126273. });
  126274. _lazyFinal($, "module4", "$get$module4", () => A.BuiltInModule$("string", A._setArrayType([$.$get$_unquote(), $.$get$_quote(), $.$get$_toUpperCase(), $.$get$_toLowerCase(), $.$get$_length(), $.$get$_insert(), $.$get$_index(), $.$get$_slice(), $.$get$_uniqueId(), A._function0("split", "$string, $separator, $limit: null", new A.module_closure())], type$.JSArray_Callable), null, null, type$.Callable));
  126275. _lazyFinal($, "_unquote", "$get$_unquote", () => A._function0("unquote", "$string", new A._unquote_closure()));
  126276. _lazyFinal($, "_quote", "$get$_quote", () => A._function0("quote", "$string", new A._quote_closure()));
  126277. _lazyFinal($, "_length0", "$get$_length", () => A._function0("length", "$string", new A._length_closure()));
  126278. _lazyFinal($, "_insert", "$get$_insert", () => A._function0("insert", "$string, $insert, $index", new A._insert_closure()));
  126279. _lazyFinal($, "_index0", "$get$_index", () => A._function0("index", "$string, $substring", new A._index_closure()));
  126280. _lazyFinal($, "_slice", "$get$_slice", () => A._function0("slice", "$string, $start-at, $end-at: -1", new A._slice_closure()));
  126281. _lazyFinal($, "_toUpperCase", "$get$_toUpperCase", () => A._function0("to-upper-case", "$string", new A._toUpperCase_closure()));
  126282. _lazyFinal($, "_toLowerCase", "$get$_toLowerCase", () => A._function0("to-lower-case", "$string", new A._toLowerCase_closure()));
  126283. _lazyFinal($, "_uniqueId", "$get$_uniqueId", () => A._function0("unique-id", "", new A._uniqueId_closure()));
  126284. _lazyFinal($, "FilesystemImporter_cwd", "$get$FilesystemImporter_cwd", () => {
  126285. var _null = null;
  126286. return new A.FilesystemImporter(A.absolute(".", _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null), true);
  126287. });
  126288. _lazyFinal($, "FilesystemImporter_noLoadPath", "$get$FilesystemImporter_noLoadPath", () => new A.FilesystemImporter(null, false));
  126289. _lazyFinal($, "_jsThrow", "$get$_jsThrow0", () => new self.Function("error", "throw error;"));
  126290. _lazyFinal($, "Logger_quiet", "$get$Logger_quiet", () => new A._QuietLogger());
  126291. _lazyFinal($, "_disallowedFunctionNames", "$get$_disallowedFunctionNames", () => {
  126292. var t1 = $.$get$globalFunctions();
  126293. t1 = t1.map$1$1(t1, new A._disallowedFunctionNames_closure(), type$.String).toSet$0(0);
  126294. t1.add$1(0, "if");
  126295. t1.remove$1(0, "rgb");
  126296. t1.remove$1(0, "rgba");
  126297. t1.remove$1(0, "hsl");
  126298. t1.remove$1(0, "hsla");
  126299. t1.remove$1(0, "grayscale");
  126300. t1.remove$1(0, "invert");
  126301. t1.remove$1(0, "alpha");
  126302. t1.remove$1(0, "opacity");
  126303. t1.remove$1(0, "saturate");
  126304. t1.remove$1(0, "min");
  126305. t1.remove$1(0, "max");
  126306. t1.remove$1(0, "round");
  126307. t1.remove$1(0, "abs");
  126308. return t1;
  126309. });
  126310. _lazyFinal($, "_epsilon", "$get$_epsilon", () => A.pow(10, -11));
  126311. _lazyFinal($, "_inverseEpsilon", "$get$_inverseEpsilon", () => A.pow(10, 11));
  126312. _lazyFinal($, "bogusSpan", "$get$bogusSpan", () => A.SourceFile$decoded(A._setArrayType([], type$.JSArray_int), null).span$1(0, 0));
  126313. _lazyFinal($, "_noSourceUrl", "$get$_noSourceUrl", () => A.Uri_parse("-"));
  126314. _lazyFinal($, "_traces", "$get$_traces", () => A.Expando$());
  126315. _lazyFinal($, "lmsToOklab", "$get$lmsToOklab", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.210454268309314, 0.7936177747023054, -0.0040720430116193, 1.9779985324311684, -2.42859224204858, 0.450593709617411, 0.0259040424655478, 0.7827717124575296, -0.8086757549230774], type$.JSArray_double)));
  126316. _lazyFinal($, "oklabToLms", "$get$oklabToLms", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([1.0000000000000002, 0.3963377773761749, 0.2158037573099136, 0.9999999999999998, -0.10556134581565854, -0.06385417282581334, 0.9999999999999999, -0.0894841775298118, -1.2914855480194094], type$.JSArray_double)));
  126317. _lazyFinal($, "linearSrgbToLinearDisplayP3", "$get$linearSrgbToLinearDisplayP3", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.8224619687143623, 0.17753803128563775, 0, 0.03319419885096161, 0.9668058011490384, 0, 0.01708263072112003, 0.07239744066396346, 0.9105199286149165], type$.JSArray_double)));
  126318. _lazyFinal($, "linearDisplayP3ToLinearSrgb", "$get$linearDisplayP3ToLinearSrgb", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([1.2249401762805598, -0.22494017628055996, 0, -0.04205695470968816, 1.042056954709688, 0, -0.01963755459033443, -0.07863604555063188, 1.0982736001409663], type$.JSArray_double)));
  126319. _lazyFinal($, "linearSrgbToLinearA98Rgb", "$get$linearSrgbToLinearA98Rgb", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.7151256068556247, 0.28487439314437535, 0, 0, 1, 0, 0, 0.04116194845011846, 0.9588380515498816], type$.JSArray_double)));
  126320. _lazyFinal($, "linearA98RgbToLinearSrgb", "$get$linearA98RgbToLinearSrgb", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([1.3983557439607783, -0.3983557439607783, 0, 0, 1, 0, 0, -0.04292898929447326, 1.0429289892944733], type$.JSArray_double)));
  126321. _lazyFinal($, "linearSrgbToLinearRec2020", "$get$linearSrgbToLinearRec2020", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.627403895934699, 0.3292830383778837, 0.04331306568741722, 0.06909728935823208, 0.9195403950754587, 0.01136231556630917, 0.01639143887515027, 0.08801330787722575, 0.895595253247624], type$.JSArray_double)));
  126322. _lazyFinal($, "linearRec2020ToLinearSrgb", "$get$linearRec2020ToLinearSrgb", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([1.6604910021084345, -0.5876411387885495, -0.07284986331988487, -0.12455047452159074, 1.1328998971259603, -0.00834942260436947, -0.0181507633549053, -0.10057889800800737, 1.1187296613629127], type$.JSArray_double)));
  126323. _lazyFinal($, "linearSrgbToXyzD65", "$get$linearSrgbToXyzD65", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.4123907992659595, 0.35758433938387796, 0.1804807884018343, 0.21263900587151036, 0.7151686787677559, 0.07219231536073371, 0.01933081871559185, 0.11919477979462598, 0.9505321522496606], type$.JSArray_double)));
  126324. _lazyFinal($, "xyzD65ToLinearSrgb", "$get$xyzD65ToLinearSrgb", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([3.2409699419045213, -1.5373831775700935, -0.4986107602930033, -0.9692436362808798, 1.8759675015077206, 0.04155505740717561, 0.0556300796969936, -0.20397695888897657, 1.0569715142428786], type$.JSArray_double)));
  126325. _lazyFinal($, "linearSrgbToLms", "$get$linearSrgbToLms", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.412221469470763, 0.5363325372617348, 0.0514459932675022, 0.2119034958178252, 0.6806995506452342, 0.1073969535369405, 0.08830245919005641, 0.2817188391361215, 0.6299787016738221], type$.JSArray_double)));
  126326. _lazyFinal($, "lmsToLinearSrgb", "$get$lmsToLinearSrgb", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([4.076741636075958, -3.307711539258062, 0.23096990318210417, -1.268437973285032, 2.609757349287689, -0.3413193760026571, -0.00419607613867551, -0.7034186179359363, 1.707614694074612], type$.JSArray_double)));
  126327. _lazyFinal($, "linearSrgbToLinearProphotoRgb", "$get$linearSrgbToLinearProphotoRgb", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.5292769776226116, 0.33015450197849283, 0.14056852039889556, 0.09836585954044917, 0.8734707129069618, 0.028163427552589, 0.01687534092138684, 0.11765941425612084, 0.8654652448224923], type$.JSArray_double)));
  126328. _lazyFinal($, "linearProphotoRgbToLinearSrgb", "$get$linearProphotoRgbToLinearSrgb", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([2.034380849516996, -0.7276357899341342, -0.3067450595828618, -0.22882573163305037, 1.2317425411901048, -0.00291680955705449, -0.00855882878391742, -0.1532667021380372, 1.1618255309219547], type$.JSArray_double)));
  126329. _lazyFinal($, "linearSrgbToXyzD50", "$get$linearSrgbToXyzD50", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.43606574687426936, 0.3851515095901596, 0.14307841996513868, 0.22249317711056518, 0.7168870130944824, 0.06061980979495235, 0.01392392146316939, 0.09708132423141015, 0.7140993568158807], type$.JSArray_double)));
  126330. _lazyFinal($, "xyzD50ToLinearSrgb", "$get$xyzD50ToLinearSrgb", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([3.1341358529001178, -1.617385998018042, -0.49066221791109754, -0.9787954765557777, 1.9162543773959884, 0.03344287339036693, 0.07195539255794733, -0.228976759815182, 1.4053860351131182], type$.JSArray_double)));
  126331. _lazyFinal($, "linearDisplayP3ToLinearA98Rgb", "$get$linearDisplayP3ToLinearA98Rgb", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.8640051374740484, 0.13599486252595164, 0, -0.04205695470968816, 1.042056954709688, 0, -0.02056038078232985, -0.03250613804550798, 1.0530665188278379], type$.JSArray_double)));
  126332. _lazyFinal($, "linearA98RgbToLinearDisplayP3", "$get$linearA98RgbToLinearDisplayP3", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([1.1500944181410184, -0.15009441814101834, 0, 0.04641729862941844, 0.9535827013705815, 0, 0.02388759479083904, 0.02650477632633013, 0.9496076288828308], type$.JSArray_double)));
  126333. _lazyFinal($, "linearDisplayP3ToLinearRec2020", "$get$linearDisplayP3ToLinearRec2020", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.7538330343617218, 0.1985973690526163, 0.04756959658566187, 0.04574384896535833, 0.9417772198116935, 0.01247893122294812, -0.00121034035451832, 0.01760171730108989, 0.9836086230534284], type$.JSArray_double)));
  126334. _lazyFinal($, "linearRec2020ToLinearDisplayP3", "$get$linearRec2020ToLinearDisplayP3", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([1.343578252584332, -0.2821796705261357, -0.06139858205819628, -0.06529745278911953, 1.0757879158485746, -0.01049046305945495, 0.00282178726170095, -0.01959849452449406, 1.0167767072627931], type$.JSArray_double)));
  126335. _lazyFinal($, "linearDisplayP3ToXyzD65", "$get$linearDisplayP3ToXyzD65", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.48657094864821626, 0.26566769316909294, 0.1982172852343625, 0.22897456406974884, 0.6917385218365062, 0.079286914093745, 0, 0.04511338185890257, 1.0439443689009757], type$.JSArray_double)));
  126336. _lazyFinal($, "xyzD65ToLinearDisplayP3", "$get$xyzD65ToLinearDisplayP3", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([2.4934969119414245, -0.9313836179191236, -0.40271078445071684, -0.8294889695615749, 1.7626640603183468, 0.02362468584194359, 0.03584583024378433, -0.0761723892680417, 0.9568845240076873], type$.JSArray_double)));
  126337. _lazyFinal($, "linearDisplayP3ToLms", "$get$linearDisplayP3ToLms", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.48137985274995443, 0.46211837101131803, 0.05650177623872756, 0.22883194181124472, 0.6532168193835676, 0.11795123880518774, 0.08394575232299319, 0.22416527097756642, 0.6918889766994404], type$.JSArray_double)));
  126338. _lazyFinal($, "lmsToLinearDisplayP3", "$get$lmsToLinearDisplayP3", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([3.1277689713618737, -2.2571357625916386, 0.12936679122976494, -1.0910090184377979, 2.4133317103069225, -0.32232269186912466, -0.02601080193857045, -0.508041331704167, 1.5340521336427373], type$.JSArray_double)));
  126339. _lazyFinal($, "linearDisplayP3ToLinearProphotoRgb", "$get$linearDisplayP3ToLinearProphotoRgb", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.6316869193403589, 0.21393038569465722, 0.1543826949649839, 0.08320371426648458, 0.8858651367630243, 0.03093114897049121, -0.00127273456473881, 0.05075510433665735, 0.9505176302280814], type$.JSArray_double)));
  126340. _lazyFinal($, "linearProphotoRgbToLinearDisplayP3", "$get$linearProphotoRgbToLinearDisplayP3", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([1.6325756087069179, -0.3797716184825984, -0.2528039902243195, -0.15370040233755072, 1.1667025472425014, -0.01300214490495082, 0.01039319529676572, -0.0628073126495944, 1.0524141173528287], type$.JSArray_double)));
  126341. _lazyFinal($, "linearDisplayP3ToXyzD50", "$get$linearDisplayP3ToXyzD50", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.515146442968116, 0.2920099820638577, 0.15713925139759397, 0.2412003221252552, 0.6922225411313818, 0.06657713674336294, -0.00105013914714014, 0.0418782701890746, 0.7842764714685257], type$.JSArray_double)));
  126342. _lazyFinal($, "xyzD50ToLinearDisplayP3", "$get$xyzD50ToLinearDisplayP3", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([2.4039341218554973, -0.9900304424955931, -0.39761363181465614, -0.8422700161454688, 1.7989580161067082, 0.01604562477090472, 0.04819381686413303, -0.09738519815446048, 1.2736713693321273], type$.JSArray_double)));
  126343. _lazyFinal($, "linearA98RgbToLinearRec2020", "$get$linearA98RgbToLinearRec2020", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.8773338416636568, 0.07749370651571998, 0.04517245182062317, 0.09662259146620378, 0.8915273202441805, 0.01185008828961569, 0.02292106270284839, 0.04303668501067932, 0.9340422522864723], type$.JSArray_double)));
  126344. _lazyFinal($, "linearRec2020ToLinearA98Rgb", "$get$linearRec2020ToLinearA98Rgb", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([1.1519783947159163, -0.0975030553024086, -0.05447533941350766, -0.12455047452159074, 1.1328998971259603, -0.00834942260436947, -0.0225303827810559, -0.04980650742838876, 1.0723368902094446], type$.JSArray_double)));
  126345. _lazyFinal($, "linearA98RgbToXyzD65", "$get$linearA98RgbToXyzD65", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.5766690429101308, 0.18555823790654627, 0.18822864623499472, 0.29734497525053616, 0.627363566255466, 0.07529145849399789, 0.02703136138641237, 0.07068885253582714, 0.9913375368376389], type$.JSArray_double)));
  126346. _lazyFinal($, "xyzD65ToLinearA98Rgb", "$get$xyzD65ToLinearA98Rgb", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([2.041587903810746, -0.5650069742788596, -0.3447313507783295, -0.9692436362808798, 1.8759675015077206, 0.04155505740717561, 0.01344428063203102, -0.11836239223101823, 1.0151749943912054], type$.JSArray_double)));
  126347. _lazyFinal($, "linearA98RgbToLms", "$get$linearA98RgbToLms", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.5764322596183941, 0.36991322261987963, 0.05365451776172635, 0.29631647054222465, 0.5916761332521885, 0.11200739620558686, 0.1234782510142776, 0.21949869837199862, 0.6570230506137238], type$.JSArray_double)));
  126348. _lazyFinal($, "lmsToLinearA98Rgb", "$get$lmsToLinearA98Rgb", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([2.5540368386115566, -1.6219761806828699, 0.06793934207131327, -1.268437973285032, 2.609757349287689, -0.3413193760026571, -0.05623473593749381, -0.5670418395669061, 1.6232765755043999], type$.JSArray_double)));
  126349. _lazyFinal($, "linearA98RgbToLinearProphotoRgb", "$get$linearA98RgbToLinearProphotoRgb", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.7401175018047792, 0.11327951328898105, 0.1466029849062397, 0.1375504646980262, 0.833077080269484, 0.02937245503248977, 0.02359772990871766, 0.07378347703906656, 0.9026187930522158], type$.JSArray_double)));
  126350. _lazyFinal($, "linearProphotoRgbToLinearA98Rgb", "$get$linearProphotoRgbToLinearA98Rgb", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([1.38965124815152, -0.16945907691487766, -0.22019217123664242, -0.22882573163305037, 1.2317425411901048, -0.00291680955705449, -0.01762544368426068, -0.09625702306122665, 1.1138824667454874], type$.JSArray_double)));
  126351. _lazyFinal($, "linearA98RgbToXyzD50", "$get$linearA98RgbToXyzD50", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.6097750418861814, 0.20530000261929401, 0.14922063192409227, 0.31112461220464155, 0.6256532308346856, 0.06322215696067286, 0.01947059555648168, 0.06087908649415867, 0.7447549204598198], type$.JSArray_double)));
  126352. _lazyFinal($, "xyzD50ToLinearA98Rgb", "$get$xyzD50ToLinearA98Rgb", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([1.9624670363768806, -0.6107423404815073, -0.3413580980827154, -0.9787954765557777, 1.9162543773959884, 0.03344287339036693, 0.02870443944957101, -0.1406748663317068, 1.3489141814137937], type$.JSArray_double)));
  126353. _lazyFinal($, "linearRec2020ToXyzD65", "$get$linearRec2020ToXyzD65", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.6369580483012913, 0.14461690358620838, 0.16888097516417205, 0.26270021201126703, 0.677998071518871, 0.05930171646986194, 0, 0.0280726930490875, 1.0609850577107909], type$.JSArray_double)));
  126354. _lazyFinal($, "xyzD65ToLinearRec2020", "$get$xyzD65ToLinearRec2020", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([1.7166511879712676, -0.3556707837763924, -0.2533662813736598, -0.666684351832489, 1.616481236634939, 0.01576854581391113, 0.01763985744531091, -0.04277061325780865, 0.942103121235474], type$.JSArray_double)));
  126355. _lazyFinal($, "linearRec2020ToLms", "$get$linearRec2020ToLms", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.6167557848654444, 0.36019840122646335, 0.02304581390809228, 0.2651330593926367, 0.6358393720678491, 0.09902756853951408, 0.10010262952034828, 0.20390652261661452, 0.6959908478630372], type$.JSArray_double)));
  126356. _lazyFinal($, "lmsToLinearRec2020", "$get$lmsToLinearRec2020", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([2.1399067304346513, -1.246389493760618, 0.10648276332596668, -0.8847358357577674, 2.1632309383612007, -0.2784951026034334, -0.04857374640044396, -0.4545031497140964, 1.5030768961145404], type$.JSArray_double)));
  126357. _lazyFinal($, "linearRec2020ToLinearProphotoRgb", "$get$linearRec2020ToLinearProphotoRgb", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.8351873331297235, 0.04886884858605698, 0.11594381828421951, 0.05403324519953363, 0.9289184085692044, 0.01704834623126199, -0.00234203897072539, 0.03633215316169465, 0.9660098858090307], type$.JSArray_double)));
  126358. _lazyFinal($, "linearProphotoRgbToLinearRec2020", "$get$linearProphotoRgbToLinearRec2020", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([1.200659329517408, -0.05756805370122346, -0.14309127581618444, -0.06994154955888504, 1.080617897597214, -0.01067634803832895, 0.00554147334294746, -0.04078219298657951, 1.035240719643632], type$.JSArray_double)));
  126359. _lazyFinal($, "linearRec2020ToXyzD50", "$get$linearRec2020ToXyzD50", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.673515463188276, 0.16569726370390453, 0.12508294953738705, 0.2790590051411206, 0.6753180057491098, 0.04562298910976962, -0.00193242713400438, 0.02997782679282923, 0.7970592028516355], type$.JSArray_double)));
  126360. _lazyFinal($, "xyzD50ToLinearRec2020", "$get$xyzD50ToLinearRec2020", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([1.647184904671766, -0.3936818981316471, -0.23595963848828266, -0.6826641074173818, 1.6477146127444076, 0.01281708338512084, 0.02966887665275675, -0.0629258964297003, 1.2535578201865771], type$.JSArray_double)));
  126361. _lazyFinal($, "xyzD65ToLms", "$get$xyzD65ToLms", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.819022437996703, 0.36190626005289034, -0.12887378152098788, 0.03298365393238846, 0.9292868615863433, 0.03614466635064235, 0.0481771893596242, 0.2642395317527308, 0.6335478284694308], type$.JSArray_double)));
  126362. _lazyFinal($, "lmsToXyzD65", "$get$lmsToXyzD65", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([1.2268798758459243, -0.5578149944602171, 0.2813910456659646, -0.04057574521480084, 1.1122868032803173, -0.07171105806551635, -0.07637293667466007, -0.42149333240224324, 1.5869240198367818], type$.JSArray_double)));
  126363. _lazyFinal($, "xyzD65ToLinearProphotoRgb", "$get$xyzD65ToLinearProphotoRgb", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([1.4031904633774979, -0.22301514479051668, -0.1016066850741379, -0.5262384021633072, 1.4816319629234644, 0.01701879027252688, -0.0112022652862215, 0.01824640347962099, 0.9112472274915048], type$.JSArray_double)));
  126364. _lazyFinal($, "linearProphotoRgbToXyzD65", "$get$linearProphotoRgbToXyzD65", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.755590742296921, 0.11271984265940525, 0.0821453420953454, 0.2683218435785719, 0.7151152566617912, 0.01656289975963685, 0.0039159727624258, -0.01293344283684181, 1.0980752208342945], type$.JSArray_double)));
  126365. _lazyFinal($, "xyzD65ToXyzD50", "$get$xyzD65ToXyzD50", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([1.0479297925449966, 0.02294687060160952, -0.05019226628920519, 0.02962780877005567, 0.99043442675388, -0.01707379906341879, -0.00924304064620452, 0.01505519149029816, 0.751874281428137], type$.JSArray_double)));
  126366. _lazyFinal($, "xyzD50ToXyzD65", "$get$xyzD50ToXyzD65", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.9554734214880752, -0.02309845494876452, 0.06325924320057065, -0.02836970933386358, 1.0099953980813041, 0.0210414411919173, 0.01231401486448199, -0.02050764929889898, 1.330365926242124], type$.JSArray_double)));
  126367. _lazyFinal($, "lmsToLinearProphotoRgb", "$get$lmsToLinearProphotoRgb", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([1.7383551481157207, -0.9879509427514458, 0.24959579463572504, -0.7070494015329266, 1.9343700444401382, -0.2273206429072115, -0.08407882206239634, -0.35754060521141334, 1.4416194272738097], type$.JSArray_double)));
  126368. _lazyFinal($, "linearProphotoRgbToLms", "$get$linearProphotoRgbToLms", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.7154484605655534, 0.35279155007721186, -0.0682400106427653, 0.2744116490015671, 0.6677976498412367, 0.05779070115719616, 0.10978443261622942, 0.18619829115002018, 0.7040172762337504], type$.JSArray_double)));
  126369. _lazyFinal($, "lmsToXyzD50", "$get$lmsToXyzD50", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([1.288586218172706, -0.5378717444973745, 0.2135812027542364, -0.00253387643187372, 1.0923167988719165, -0.08978292244004273, -0.06937382305734124, -0.29500839894431263, 1.1894868245121142], type$.JSArray_double)));
  126370. _lazyFinal($, "xyzD50ToLms", "$get$xyzD50ToLms", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.7707000420431172, 0.34924840261939616, -0.11202351884164681, 0.00559649248368848, 0.9370723401136769, 0.06972568836252771, 0.04633714262191069, 0.25277531574310524, 0.851458076746796], type$.JSArray_double)));
  126371. _lazyFinal($, "linearProphotoRgbToXyzD50", "$get$linearProphotoRgbToXyzD50", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.7977666449006423, 0.13518129740053308, 0.0313477341283922, 0.2880748288194013, 0.711835234241873, 0.00008993693872564, 0, 0, 0.8251046025104602], type$.JSArray_double)));
  126372. _lazyFinal($, "xyzD50ToLinearProphotoRgb", "$get$xyzD50ToLinearProphotoRgb", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([1.3457868816471583, -0.25557208737979464, -0.05110186497554526, -0.5446307051249019, 1.5082477428451468, 0.02052744743642139, 0, 0, 1.2119675456389452], type$.JSArray_double)));
  126373. _lazyFinal($, "_typesByUnit", "$get$_typesByUnit", () => {
  126374. var t3, type,
  126375. t1 = type$.String,
  126376. t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  126377. for (t1 = A.MapExtensions_get_pairs(B.Map_397RH, t1, type$.List_String), t1 = t1.get$iterator(t1); t1.moveNext$0();) {
  126378. t3 = t1.get$current(t1);
  126379. type = t3._0;
  126380. for (t3 = J.get$iterator$ax(t3._1); t3.moveNext$0();)
  126381. t2.$indexSet(0, t3.get$current(t3), type);
  126382. }
  126383. return t2;
  126384. });
  126385. _lazyFinal($, "_knownCompatibilitiesByUnit", "$get$_knownCompatibilitiesByUnit", () => {
  126386. var _i, set, t2,
  126387. t1 = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, A.findType("Set<String>"));
  126388. for (_i = 0; _i < 5; ++_i) {
  126389. set = B.List_Eeh[_i];
  126390. for (t2 = set.get$iterator(set); t2.moveNext$0();)
  126391. t1.$indexSet(0, t2.get$current(0), set);
  126392. }
  126393. return t1;
  126394. });
  126395. _lazyFinal($, "_emptyQuoted", "$get$_emptyQuoted", () => A.SassString$("", true));
  126396. _lazyFinal($, "_emptyUnquoted", "$get$_emptyUnquoted", () => A.SassString$("", false));
  126397. _lazyFinal($, "maxInt32", "$get$maxInt32", () => A._asInt(A.pow(2, 31)) - 1);
  126398. _lazyFinal($, "minInt32", "$get$minInt32", () => -A._asInt(A.pow(2, 31)));
  126399. _lazyFinal($, "_vmFrame", "$get$_vmFrame", () => A.RegExp_RegExp("^#\\d+\\s+(\\S.*) \\((.+?)((?::\\d+){0,2})\\)$", false));
  126400. _lazyFinal($, "_v8JsFrame", "$get$_v8JsFrame", () => A.RegExp_RegExp("^\\s*at (?:(\\S.*?)(?: \\[as [^\\]]+\\])? \\((.*)\\)|(.*))$", false));
  126401. _lazyFinal($, "_v8JsUrlLocation", "$get$_v8JsUrlLocation", () => A.RegExp_RegExp("^(.*?):(\\d+)(?::(\\d+))?$|native$", false));
  126402. _lazyFinal($, "_v8WasmFrame", "$get$_v8WasmFrame", () => A.RegExp_RegExp("^\\s*at (?:(?<member>.+) )?(?:\\(?(?:(?<uri>\\S+):wasm-function\\[(?<index>\\d+)\\]\\:0x(?<offset>[0-9a-fA-F]+))\\)?)$", false));
  126403. _lazyFinal($, "_v8EvalLocation", "$get$_v8EvalLocation", () => A.RegExp_RegExp("^eval at (?:\\S.*?) \\((.*)\\)(?:, .*?:\\d+:\\d+)?$", false));
  126404. _lazyFinal($, "_firefoxEvalLocation", "$get$_firefoxEvalLocation", () => A.RegExp_RegExp("(\\S+)@(\\S+) line (\\d+) >.* (Function|eval):\\d+:\\d+", false));
  126405. _lazyFinal($, "_firefoxSafariJSFrame", "$get$_firefoxSafariJSFrame", () => A.RegExp_RegExp("^(?:([^@(/]*)(?:\\(.*\\))?((?:/[^/]*)*)(?:\\(.*\\))?@)?(.*?):(\\d*)(?::(\\d*))?$", false));
  126406. _lazyFinal($, "_firefoxWasmFrame", "$get$_firefoxWasmFrame", () => A.RegExp_RegExp("^(?<member>.*?)@(?:(?<uri>\\S+).*?:wasm-function\\[(?<index>\\d+)\\]:0x(?<offset>[0-9a-fA-F]+))$", false));
  126407. _lazyFinal($, "_safariWasmFrame", "$get$_safariWasmFrame", () => A.RegExp_RegExp("^.*?wasm-function\\[(?<member>.*)\\]@\\[wasm code\\]$", false));
  126408. _lazyFinal($, "_friendlyFrame", "$get$_friendlyFrame", () => A.RegExp_RegExp("^(\\S+)(?: (\\d+)(?::(\\d+))?)?\\s+([^\\d].*)$", false));
  126409. _lazyFinal($, "_asyncBody", "$get$_asyncBody", () => A.RegExp_RegExp("<(<anonymous closure>|[^>]+)_async_body>", false));
  126410. _lazyFinal($, "_initialDot", "$get$_initialDot", () => A.RegExp_RegExp("^\\.", false));
  126411. _lazyFinal($, "Frame__uriRegExp", "$get$Frame__uriRegExp", () => A.RegExp_RegExp("^[a-zA-Z][-+.a-zA-Z\\d]*://", false));
  126412. _lazyFinal($, "Frame__windowsRegExp", "$get$Frame__windowsRegExp", () => A.RegExp_RegExp("^([a-zA-Z]:[\\\\/]|\\\\\\\\)", false));
  126413. _lazyFinal($, "_terseRegExp", "$get$_terseRegExp", () => A.RegExp_RegExp("(-patch)?([/\\\\].*)?$", false));
  126414. _lazyFinal($, "_v8Trace", "$get$_v8Trace", () => A.RegExp_RegExp("\\n ?at ", false));
  126415. _lazyFinal($, "_v8TraceLine", "$get$_v8TraceLine", () => A.RegExp_RegExp(" ?at ", false));
  126416. _lazyFinal($, "_firefoxEvalTrace", "$get$_firefoxEvalTrace", () => A.RegExp_RegExp("@\\S+ line \\d+ >.* (Function|eval):\\d+:\\d+", false));
  126417. _lazyFinal($, "_firefoxSafariTrace", "$get$_firefoxSafariTrace", () => A.RegExp_RegExp("^(([.0-9A-Za-z_$/<]|\\(.*\\))*@)?[^\\s]*:\\d*$", true));
  126418. _lazyFinal($, "_friendlyTrace", "$get$_friendlyTrace", () => A.RegExp_RegExp("^[^\\s<][^\\s]*( \\d+(:\\d+)?)?[ \\t]+[^\\s]+$", true));
  126419. _lazyFinal($, "vmChainGap", "$get$vmChainGap", () => A.RegExp_RegExp("^<asynchronous suspension>\\n?$", true));
  126420. _lazyFinal($, "_newlineRegExp", "$get$_newlineRegExp", () => A.RegExp_RegExp("\\n|\\r\\n|\\r(?!\\n)", false));
  126421. _lazyFinal($, "argumentListClass", "$get$argumentListClass", () => new A.argumentListClass_closure().call$0());
  126422. _lazyFinal($, "booleanClass", "$get$booleanClass", () => new A.booleanClass_closure().call$0());
  126423. _lazyFinal($, "legacyBooleanClass", "$get$legacyBooleanClass", () => new A.legacyBooleanClass_closure().call$0());
  126424. _lazyFinal($, "calculationClass", "$get$calculationClass", () => new A.calculationClass_closure().call$0());
  126425. _lazyFinal($, "calculationOperationClass", "$get$calculationOperationClass", () => new A.calculationOperationClass_closure().call$0());
  126426. _lazyFinal($, "calculationInterpolationClass", "$get$calculationInterpolationClass", () => new A.calculationInterpolationClass_closure().call$0());
  126427. _lazyFinal($, "_microsoftFilterStart0", "$get$_microsoftFilterStart0", () => A.RegExp_RegExp("^[a-zA-Z]+\\s*=", false));
  126428. _lazyFinal($, "global6", "$get$global6", () => {
  126429. var _s5_ = "color",
  126430. _s27_ = "$red, $green, $blue, $alpha",
  126431. _s19_ = "$red, $green, $blue",
  126432. _s9_ = "$channels",
  126433. _s37_ = "$hue, $saturation, $lightness, $alpha",
  126434. _s29_ = "$hue, $saturation, $lightness",
  126435. _s17_ = "$hue, $saturation",
  126436. _s6_ = "adjust",
  126437. _s15_ = "$color, $amount",
  126438. t1 = type$.String,
  126439. t2 = type$.Value_Function_List_Value_2;
  126440. return A.UnmodifiableListView$(A._setArrayType([A._channelFunction0("red", B.RgbColorSpace_mlz0, new A.global_closure44(), true, null).withDeprecationWarning$1(_s5_), A._channelFunction0("green", B.RgbColorSpace_mlz0, new A.global_closure45(), true, null).withDeprecationWarning$1(_s5_), A._channelFunction0("blue", B.RgbColorSpace_mlz0, new A.global_closure46(), true, null).withDeprecationWarning$1(_s5_), $.$get$_mix0().withDeprecationWarning$1(_s5_), A.BuiltInCallable$overloadedFunction0("rgb", A.LinkedHashMap_LinkedHashMap$_literal([_s27_, new A.global_closure47(), _s19_, new A.global_closure48(), "$color, $alpha", new A.global_closure49(), "$channels", new A.global_closure50()], t1, t2)), A.BuiltInCallable$overloadedFunction0("rgba", A.LinkedHashMap_LinkedHashMap$_literal([_s27_, new A.global_closure51(), _s19_, new A.global_closure52(), "$color, $alpha", new A.global_closure53(), "$channels", new A.global_closure54()], t1, t2)), A._function12("invert", "$color, $weight: 100%, $space: null", new A.global_closure55()), A._channelFunction0("hue", B.HslColorSpace_gsm0, new A.global_closure56(), true, "deg").withDeprecationWarning$1(_s5_), A._channelFunction0("saturation", B.HslColorSpace_gsm0, new A.global_closure57(), true, "%").withDeprecationWarning$1(_s5_), A._channelFunction0("lightness", B.HslColorSpace_gsm0, new A.global_closure58(), true, "%").withDeprecationWarning$1(_s5_), A.BuiltInCallable$overloadedFunction0("hsl", A.LinkedHashMap_LinkedHashMap$_literal([_s37_, new A.global_closure59(), _s29_, new A.global_closure60(), _s17_, new A.global_closure61(), "$channels", new A.global_closure62()], t1, t2)), A.BuiltInCallable$overloadedFunction0("hsla", A.LinkedHashMap_LinkedHashMap$_literal([_s37_, new A.global_closure63(), _s29_, new A.global_closure64(), _s17_, new A.global_closure65(), "$channels", new A.global_closure66()], t1, t2)), A._function12("grayscale", "$color", new A.global_closure67()), A._function12("adjust-hue", "$color, $degrees", new A.global_closure68()).withDeprecationWarning$2(_s5_, _s6_), A._function12("lighten", _s15_, new A.global_closure69()).withDeprecationWarning$2(_s5_, _s6_), A._function12("darken", _s15_, new A.global_closure70()).withDeprecationWarning$2(_s5_, _s6_), A.BuiltInCallable$overloadedFunction0("saturate", A.LinkedHashMap_LinkedHashMap$_literal(["$amount", new A.global_closure71(), "$color, $amount", new A.global_closure72()], t1, t2)), A._function12("desaturate", _s15_, new A.global_closure73()).withDeprecationWarning$2(_s5_, _s6_), A._function12("opacify", _s15_, new A.global_closure74()).withDeprecationWarning$2(_s5_, _s6_), A._function12("fade-in", _s15_, new A.global_closure75()).withDeprecationWarning$2(_s5_, _s6_), A._function12("transparentize", _s15_, new A.global_closure76()).withDeprecationWarning$2(_s5_, _s6_), A._function12("fade-out", _s15_, new A.global_closure77()).withDeprecationWarning$2(_s5_, _s6_), A.BuiltInCallable$overloadedFunction0("alpha", A.LinkedHashMap_LinkedHashMap$_literal(["$color", new A.global_closure78(), "$args...", new A.global_closure79()], t1, t2)), A._function12("opacity", "$color", new A.global_closure80()), A._function12(_s5_, "$description", new A.global_closure81()), A._function12("hwb", _s9_, new A.global_closure82()), A._function12("lab", _s9_, new A.global_closure83()), A._function12("lch", _s9_, new A.global_closure84()), A._function12("oklab", _s9_, new A.global_closure85()), A._function12("oklch", _s9_, new A.global_closure86()), $.$get$_complement0().withDeprecationWarning$1(_s5_), $.$get$_ieHexStr0(), $.$get$_adjust0().withDeprecationWarning$1(_s5_).withName$1("adjust-color"), $.$get$_scale0().withDeprecationWarning$1(_s5_).withName$1("scale-color"), $.$get$_change0().withDeprecationWarning$1(_s5_).withName$1("change-color")], type$.JSArray_BuiltInCallable_2), type$.BuiltInCallable_2);
  126441. });
  126442. _lazyFinal($, "module5", "$get$module5", () => {
  126443. var _null = null,
  126444. _s10_ = "saturation",
  126445. _s9_ = "lightness",
  126446. _s6_ = "$color", _s5_ = "alpha",
  126447. _s30_ = "$color, $channel, $space: null",
  126448. t1 = type$.String,
  126449. t2 = type$.Value_Function_List_Value_2;
  126450. return A.BuiltInModule$0("color", A._setArrayType([A._channelFunction0("red", B.RgbColorSpace_mlz0, new A.module_closure27(), false, _null), A._channelFunction0("green", B.RgbColorSpace_mlz0, new A.module_closure28(), false, _null), A._channelFunction0("blue", B.RgbColorSpace_mlz0, new A.module_closure29(), false, _null), $.$get$_mix0(), A._function12("invert", "$color, $weight: 100%, $space: null", new A.module_closure30()), A._channelFunction0("hue", B.HslColorSpace_gsm0, new A.module_closure31(), false, "deg"), A._channelFunction0(_s10_, B.HslColorSpace_gsm0, new A.module_closure32(), false, "%"), A._channelFunction0(_s9_, B.HslColorSpace_gsm0, new A.module_closure33(), false, "%"), A._removedColorFunction0("adjust-hue", "hue", false), A._removedColorFunction0("lighten", _s9_, false), A._removedColorFunction0("darken", _s9_, true), A._removedColorFunction0("saturate", _s10_, false), A._removedColorFunction0("desaturate", _s10_, true), A._function12("grayscale", _s6_, new A.module_closure34()), A.BuiltInCallable$overloadedFunction0("hwb", A.LinkedHashMap_LinkedHashMap$_literal(["$hue, $whiteness, $blackness, $alpha: 1", new A.module_closure35(), "$channels", new A.module_closure36()], t1, t2)), A._channelFunction0("whiteness", B.HwbColorSpace_06z0, new A.module_closure37(), false, "%"), A._channelFunction0("blackness", B.HwbColorSpace_06z0, new A.module_closure38(), false, "%"), A._removedColorFunction0("opacify", _s5_, false), A._removedColorFunction0("fade-in", _s5_, false), A._removedColorFunction0("transparentize", _s5_, true), A._removedColorFunction0("fade-out", _s5_, true), A.BuiltInCallable$overloadedFunction0(_s5_, A.LinkedHashMap_LinkedHashMap$_literal(["$color", new A.module_closure39(), "$args...", new A.module_closure40()], t1, t2)), A._function12("opacity", _s6_, new A.module_closure41()), A._function12("space", _s6_, new A.module_closure42()), A._function12("to-space", "$color, $space", new A.module_closure43()), A._function12("is-legacy", _s6_, new A.module_closure44()), A._function12("is-missing", "$color, $channel", new A.module_closure45()), A._function12("is-in-gamut", "$color, $space: null", new A.module_closure46()), A._function12("to-gamut", "$color, $space: null, $method: null", new A.module_closure47()), A._function12("channel", _s30_, new A.module_closure48()), A._function12("same", "$color1, $color2", new A.module_closure49()), A._function12("is-powerless", _s30_, new A.module_closure50()), $.$get$_complement0(), $.$get$_adjust0(), $.$get$_scale0(), $.$get$_change0(), $.$get$_ieHexStr0()], type$.JSArray_Callable_2), _null, _null, type$.Callable_2);
  126451. });
  126452. _lazyFinal($, "_mix0", "$get$_mix0", () => A._function12("mix", string$.x24color, new A._mix_closure0()));
  126453. _lazyFinal($, "_complement0", "$get$_complement0", () => A._function12("complement", "$color, $space: null", new A._complement_closure0()));
  126454. _lazyFinal($, "_adjust0", "$get$_adjust0", () => A._function12("adjust", "$color, $kwargs...", new A._adjust_closure0()));
  126455. _lazyFinal($, "_scale0", "$get$_scale0", () => A._function12("scale", "$color, $kwargs...", new A._scale_closure0()));
  126456. _lazyFinal($, "_change0", "$get$_change0", () => A._function12("change", "$color, $kwargs...", new A._change_closure0()));
  126457. _lazyFinal($, "_ieHexStr0", "$get$_ieHexStr0", () => A._function12("ie-hex-str", "$color", new A._ieHexStr_closure0()));
  126458. _lazyFinal($, "colorClass", "$get$colorClass", () => new A.colorClass_closure().call$0());
  126459. _lazyFinal($, "legacyColorClass", "$get$legacyColorClass", () => {
  126460. var t1 = A.createJSClass("sass.types.Color", new A.legacyColorClass_closure());
  126461. A.JSClassExtension_defineMethods(t1, A.LinkedHashMap_LinkedHashMap$_literal(["getR", new A.legacyColorClass_closure0(), "getG", new A.legacyColorClass_closure1(), "getB", new A.legacyColorClass_closure2(), "getA", new A.legacyColorClass_closure3(), "setR", new A.legacyColorClass_closure4(), "setG", new A.legacyColorClass_closure5(), "setB", new A.legacyColorClass_closure6(), "setA", new A.legacyColorClass_closure7()], type$.String, type$.Function));
  126462. return t1;
  126463. });
  126464. _lazyFinal($, "colorsByName0", "$get$colorsByName0", () => A.LinkedHashMap_LinkedHashMap$_literal(["yellowgreen", A.SassColor_SassColor$rgb0(154, 205, 50, 1), "yellow", A.SassColor_SassColor$rgb0(255, 255, 0, 1), "whitesmoke", A.SassColor_SassColor$rgb0(245, 245, 245, 1), "white", A.SassColor_SassColor$rgb0(255, 255, 255, 1), "wheat", A.SassColor_SassColor$rgb0(245, 222, 179, 1), "violet", A.SassColor_SassColor$rgb0(238, 130, 238, 1), "turquoise", A.SassColor_SassColor$rgb0(64, 224, 208, 1), "transparent", A.SassColor_SassColor$rgb0(0, 0, 0, 0), "tomato", A.SassColor_SassColor$rgb0(255, 99, 71, 1), "thistle", A.SassColor_SassColor$rgb0(216, 191, 216, 1), "teal", A.SassColor_SassColor$rgb0(0, 128, 128, 1), "tan", A.SassColor_SassColor$rgb0(210, 180, 140, 1), "steelblue", A.SassColor_SassColor$rgb0(70, 130, 180, 1), "springgreen", A.SassColor_SassColor$rgb0(0, 255, 127, 1), "snow", A.SassColor_SassColor$rgb0(255, 250, 250, 1), "slategrey", A.SassColor_SassColor$rgb0(112, 128, 144, 1), "slategray", A.SassColor_SassColor$rgb0(112, 128, 144, 1), "slateblue", A.SassColor_SassColor$rgb0(106, 90, 205, 1), "skyblue", A.SassColor_SassColor$rgb0(135, 206, 235, 1), "silver", A.SassColor_SassColor$rgb0(192, 192, 192, 1), "sienna", A.SassColor_SassColor$rgb0(160, 82, 45, 1), "seashell", A.SassColor_SassColor$rgb0(255, 245, 238, 1), "seagreen", A.SassColor_SassColor$rgb0(46, 139, 87, 1), "sandybrown", A.SassColor_SassColor$rgb0(244, 164, 96, 1), "salmon", A.SassColor_SassColor$rgb0(250, 128, 114, 1), "saddlebrown", A.SassColor_SassColor$rgb0(139, 69, 19, 1), "royalblue", A.SassColor_SassColor$rgb0(65, 105, 225, 1), "rosybrown", A.SassColor_SassColor$rgb0(188, 143, 143, 1), "red", A.SassColor_SassColor$rgb0(255, 0, 0, 1), "rebeccapurple", A.SassColor_SassColor$rgb0(102, 51, 153, 1), "purple", A.SassColor_SassColor$rgb0(128, 0, 128, 1), "powderblue", A.SassColor_SassColor$rgb0(176, 224, 230, 1), "plum", A.SassColor_SassColor$rgb0(221, 160, 221, 1), "pink", A.SassColor_SassColor$rgb0(255, 192, 203, 1), "peru", A.SassColor_SassColor$rgb0(205, 133, 63, 1), "peachpuff", A.SassColor_SassColor$rgb0(255, 218, 185, 1), "papayawhip", A.SassColor_SassColor$rgb0(255, 239, 213, 1), "palevioletred", A.SassColor_SassColor$rgb0(219, 112, 147, 1), "paleturquoise", A.SassColor_SassColor$rgb0(175, 238, 238, 1), "palegreen", A.SassColor_SassColor$rgb0(152, 251, 152, 1), "palegoldenrod", A.SassColor_SassColor$rgb0(238, 232, 170, 1), "orchid", A.SassColor_SassColor$rgb0(218, 112, 214, 1), "orangered", A.SassColor_SassColor$rgb0(255, 69, 0, 1), "orange", A.SassColor_SassColor$rgb0(255, 165, 0, 1), "olivedrab", A.SassColor_SassColor$rgb0(107, 142, 35, 1), "olive", A.SassColor_SassColor$rgb0(128, 128, 0, 1), "oldlace", A.SassColor_SassColor$rgb0(253, 245, 230, 1), "navy", A.SassColor_SassColor$rgb0(0, 0, 128, 1), "navajowhite", A.SassColor_SassColor$rgb0(255, 222, 173, 1), "moccasin", A.SassColor_SassColor$rgb0(255, 228, 181, 1), "mistyrose", A.SassColor_SassColor$rgb0(255, 228, 225, 1), "mintcream", A.SassColor_SassColor$rgb0(245, 255, 250, 1), "midnightblue", A.SassColor_SassColor$rgb0(25, 25, 112, 1), "mediumvioletred", A.SassColor_SassColor$rgb0(199, 21, 133, 1), "mediumturquoise", A.SassColor_SassColor$rgb0(72, 209, 204, 1), "mediumspringgreen", A.SassColor_SassColor$rgb0(0, 250, 154, 1), "mediumslateblue", A.SassColor_SassColor$rgb0(123, 104, 238, 1), "mediumseagreen", A.SassColor_SassColor$rgb0(60, 179, 113, 1), "mediumpurple", A.SassColor_SassColor$rgb0(147, 112, 219, 1), "mediumorchid", A.SassColor_SassColor$rgb0(186, 85, 211, 1), "mediumblue", A.SassColor_SassColor$rgb0(0, 0, 205, 1), "mediumaquamarine", A.SassColor_SassColor$rgb0(102, 205, 170, 1), "maroon", A.SassColor_SassColor$rgb0(128, 0, 0, 1), "magenta", A.SassColor_SassColor$rgb0(255, 0, 255, 1), "linen", A.SassColor_SassColor$rgb0(250, 240, 230, 1), "limegreen", A.SassColor_SassColor$rgb0(50, 205, 50, 1), "lime", A.SassColor_SassColor$rgb0(0, 255, 0, 1), "lightyellow", A.SassColor_SassColor$rgb0(255, 255, 224, 1), "lightsteelblue", A.SassColor_SassColor$rgb0(176, 196, 222, 1), "lightslategrey", A.SassColor_SassColor$rgb0(119, 136, 153, 1), "lightslategray", A.SassColor_SassColor$rgb0(119, 136, 153, 1), "lightskyblue", A.SassColor_SassColor$rgb0(135, 206, 250, 1), "lightseagreen", A.SassColor_SassColor$rgb0(32, 178, 170, 1), "lightsalmon", A.SassColor_SassColor$rgb0(255, 160, 122, 1), "lightpink", A.SassColor_SassColor$rgb0(255, 182, 193, 1), "lightgrey", A.SassColor_SassColor$rgb0(211, 211, 211, 1), "lightgreen", A.SassColor_SassColor$rgb0(144, 238, 144, 1), "lightgray", A.SassColor_SassColor$rgb0(211, 211, 211, 1), "lightgoldenrodyellow", A.SassColor_SassColor$rgb0(250, 250, 210, 1), "lightcyan", A.SassColor_SassColor$rgb0(224, 255, 255, 1), "lightcoral", A.SassColor_SassColor$rgb0(240, 128, 128, 1), "lightblue", A.SassColor_SassColor$rgb0(173, 216, 230, 1), "lemonchiffon", A.SassColor_SassColor$rgb0(255, 250, 205, 1), "lawngreen", A.SassColor_SassColor$rgb0(124, 252, 0, 1), "lavenderblush", A.SassColor_SassColor$rgb0(255, 240, 245, 1), "lavender", A.SassColor_SassColor$rgb0(230, 230, 250, 1), "khaki", A.SassColor_SassColor$rgb0(240, 230, 140, 1), "ivory", A.SassColor_SassColor$rgb0(255, 255, 240, 1), "indigo", A.SassColor_SassColor$rgb0(75, 0, 130, 1), "indianred", A.SassColor_SassColor$rgb0(205, 92, 92, 1), "hotpink", A.SassColor_SassColor$rgb0(255, 105, 180, 1), "honeydew", A.SassColor_SassColor$rgb0(240, 255, 240, 1), "grey", A.SassColor_SassColor$rgb0(128, 128, 128, 1), "greenyellow", A.SassColor_SassColor$rgb0(173, 255, 47, 1), "green", A.SassColor_SassColor$rgb0(0, 128, 0, 1), "gray", A.SassColor_SassColor$rgb0(128, 128, 128, 1), "goldenrod", A.SassColor_SassColor$rgb0(218, 165, 32, 1), "gold", A.SassColor_SassColor$rgb0(255, 215, 0, 1), "ghostwhite", A.SassColor_SassColor$rgb0(248, 248, 255, 1), "gainsboro", A.SassColor_SassColor$rgb0(220, 220, 220, 1), "fuchsia", A.SassColor_SassColor$rgb0(255, 0, 255, 1), "forestgreen", A.SassColor_SassColor$rgb0(34, 139, 34, 1), "floralwhite", A.SassColor_SassColor$rgb0(255, 250, 240, 1), "firebrick", A.SassColor_SassColor$rgb0(178, 34, 34, 1), "dodgerblue", A.SassColor_SassColor$rgb0(30, 144, 255, 1), "dimgrey", A.SassColor_SassColor$rgb0(105, 105, 105, 1), "dimgray", A.SassColor_SassColor$rgb0(105, 105, 105, 1), "deepskyblue", A.SassColor_SassColor$rgb0(0, 191, 255, 1), "deeppink", A.SassColor_SassColor$rgb0(255, 20, 147, 1), "darkviolet", A.SassColor_SassColor$rgb0(148, 0, 211, 1), "darkturquoise", A.SassColor_SassColor$rgb0(0, 206, 209, 1), "darkslategrey", A.SassColor_SassColor$rgb0(47, 79, 79, 1), "darkslategray", A.SassColor_SassColor$rgb0(47, 79, 79, 1), "darkslateblue", A.SassColor_SassColor$rgb0(72, 61, 139, 1), "darkseagreen", A.SassColor_SassColor$rgb0(143, 188, 143, 1), "darksalmon", A.SassColor_SassColor$rgb0(233, 150, 122, 1), "darkred", A.SassColor_SassColor$rgb0(139, 0, 0, 1), "darkorchid", A.SassColor_SassColor$rgb0(153, 50, 204, 1), "darkorange", A.SassColor_SassColor$rgb0(255, 140, 0, 1), "darkolivegreen", A.SassColor_SassColor$rgb0(85, 107, 47, 1), "darkmagenta", A.SassColor_SassColor$rgb0(139, 0, 139, 1), "darkkhaki", A.SassColor_SassColor$rgb0(189, 183, 107, 1), "darkgrey", A.SassColor_SassColor$rgb0(169, 169, 169, 1), "darkgreen", A.SassColor_SassColor$rgb0(0, 100, 0, 1), "darkgray", A.SassColor_SassColor$rgb0(169, 169, 169, 1), "darkgoldenrod", A.SassColor_SassColor$rgb0(184, 134, 11, 1), "darkcyan", A.SassColor_SassColor$rgb0(0, 139, 139, 1), "darkblue", A.SassColor_SassColor$rgb0(0, 0, 139, 1), "cyan", A.SassColor_SassColor$rgb0(0, 255, 255, 1), "crimson", A.SassColor_SassColor$rgb0(220, 20, 60, 1), "cornsilk", A.SassColor_SassColor$rgb0(255, 248, 220, 1), "cornflowerblue", A.SassColor_SassColor$rgb0(100, 149, 237, 1), "coral", A.SassColor_SassColor$rgb0(255, 127, 80, 1), "chocolate", A.SassColor_SassColor$rgb0(210, 105, 30, 1), "chartreuse", A.SassColor_SassColor$rgb0(127, 255, 0, 1), "cadetblue", A.SassColor_SassColor$rgb0(95, 158, 160, 1), "burlywood", A.SassColor_SassColor$rgb0(222, 184, 135, 1), "brown", A.SassColor_SassColor$rgb0(165, 42, 42, 1), "blueviolet", A.SassColor_SassColor$rgb0(138, 43, 226, 1), "blue", A.SassColor_SassColor$rgb0(0, 0, 255, 1), "blanchedalmond", A.SassColor_SassColor$rgb0(255, 235, 205, 1), "black", A.SassColor_SassColor$rgb0(0, 0, 0, 1), "bisque", A.SassColor_SassColor$rgb0(255, 228, 196, 1), "beige", A.SassColor_SassColor$rgb0(245, 245, 220, 1), "azure", A.SassColor_SassColor$rgb0(240, 255, 255, 1), "aquamarine", A.SassColor_SassColor$rgb0(127, 255, 212, 1), "aqua", A.SassColor_SassColor$rgb0(0, 255, 255, 1), "antiquewhite", A.SassColor_SassColor$rgb0(250, 235, 215, 1), "aliceblue", A.SassColor_SassColor$rgb0(240, 248, 255, 1)], type$.String, type$.SassColor_2));
  126465. _lazyFinal($, "namesByColor0", "$get$namesByColor0", () => {
  126466. var $name,
  126467. t1 = type$.SassColor_2,
  126468. t2 = type$.String,
  126469. t3 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t2);
  126470. for (t1 = A.MapExtensions_get_pairs0($.$get$colorsByName0(), t2, t1), t1 = t1.get$iterator(t1); t1.moveNext$0();) {
  126471. t2 = t1.get$current(t1);
  126472. $name = t2._0;
  126473. t3.$indexSet(0, t2._1, $name);
  126474. }
  126475. return t3;
  126476. });
  126477. _lazyFinal($, "nodePackageImporterClass", "$get$nodePackageImporterClass", () => new A.nodePackageImporterClass_closure().call$0());
  126478. _lazyFinal($, "compilerClass", "$get$compilerClass", () => new A.compilerClass_closure().call$0());
  126479. _lazyFinal($, "asyncCompilerClass", "$get$asyncCompilerClass", () => new A.asyncCompilerClass_closure().call$0());
  126480. _lazyFinal($, "lmsToOklab0", "$get$lmsToOklab0", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.210454268309314, 0.7936177747023054, -0.0040720430116193, 1.9779985324311684, -2.42859224204858, 0.450593709617411, 0.0259040424655478, 0.7827717124575296, -0.8086757549230774], type$.JSArray_double)));
  126481. _lazyFinal($, "oklabToLms0", "$get$oklabToLms0", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([1.0000000000000002, 0.3963377773761749, 0.2158037573099136, 0.9999999999999998, -0.10556134581565854, -0.06385417282581334, 0.9999999999999999, -0.0894841775298118, -1.2914855480194094], type$.JSArray_double)));
  126482. _lazyFinal($, "linearSrgbToLinearDisplayP30", "$get$linearSrgbToLinearDisplayP30", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.8224619687143623, 0.17753803128563775, 0, 0.03319419885096161, 0.9668058011490384, 0, 0.01708263072112003, 0.07239744066396346, 0.9105199286149165], type$.JSArray_double)));
  126483. _lazyFinal($, "linearDisplayP3ToLinearSrgb0", "$get$linearDisplayP3ToLinearSrgb0", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([1.2249401762805598, -0.22494017628055996, 0, -0.04205695470968816, 1.042056954709688, 0, -0.01963755459033443, -0.07863604555063188, 1.0982736001409663], type$.JSArray_double)));
  126484. _lazyFinal($, "linearSrgbToLinearA98Rgb0", "$get$linearSrgbToLinearA98Rgb0", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.7151256068556247, 0.28487439314437535, 0, 0, 1, 0, 0, 0.04116194845011846, 0.9588380515498816], type$.JSArray_double)));
  126485. _lazyFinal($, "linearA98RgbToLinearSrgb0", "$get$linearA98RgbToLinearSrgb0", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([1.3983557439607783, -0.3983557439607783, 0, 0, 1, 0, 0, -0.04292898929447326, 1.0429289892944733], type$.JSArray_double)));
  126486. _lazyFinal($, "linearSrgbToLinearRec20200", "$get$linearSrgbToLinearRec20200", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.627403895934699, 0.3292830383778837, 0.04331306568741722, 0.06909728935823208, 0.9195403950754587, 0.01136231556630917, 0.01639143887515027, 0.08801330787722575, 0.895595253247624], type$.JSArray_double)));
  126487. _lazyFinal($, "linearRec2020ToLinearSrgb0", "$get$linearRec2020ToLinearSrgb0", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([1.6604910021084345, -0.5876411387885495, -0.07284986331988487, -0.12455047452159074, 1.1328998971259603, -0.00834942260436947, -0.0181507633549053, -0.10057889800800737, 1.1187296613629127], type$.JSArray_double)));
  126488. _lazyFinal($, "linearSrgbToXyzD650", "$get$linearSrgbToXyzD650", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.4123907992659595, 0.35758433938387796, 0.1804807884018343, 0.21263900587151036, 0.7151686787677559, 0.07219231536073371, 0.01933081871559185, 0.11919477979462598, 0.9505321522496606], type$.JSArray_double)));
  126489. _lazyFinal($, "xyzD65ToLinearSrgb0", "$get$xyzD65ToLinearSrgb0", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([3.2409699419045213, -1.5373831775700935, -0.4986107602930033, -0.9692436362808798, 1.8759675015077206, 0.04155505740717561, 0.0556300796969936, -0.20397695888897657, 1.0569715142428786], type$.JSArray_double)));
  126490. _lazyFinal($, "linearSrgbToLms0", "$get$linearSrgbToLms0", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.412221469470763, 0.5363325372617348, 0.0514459932675022, 0.2119034958178252, 0.6806995506452342, 0.1073969535369405, 0.08830245919005641, 0.2817188391361215, 0.6299787016738221], type$.JSArray_double)));
  126491. _lazyFinal($, "lmsToLinearSrgb0", "$get$lmsToLinearSrgb0", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([4.076741636075958, -3.307711539258062, 0.23096990318210417, -1.268437973285032, 2.609757349287689, -0.3413193760026571, -0.00419607613867551, -0.7034186179359363, 1.707614694074612], type$.JSArray_double)));
  126492. _lazyFinal($, "linearSrgbToLinearProphotoRgb0", "$get$linearSrgbToLinearProphotoRgb0", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.5292769776226116, 0.33015450197849283, 0.14056852039889556, 0.09836585954044917, 0.8734707129069618, 0.028163427552589, 0.01687534092138684, 0.11765941425612084, 0.8654652448224923], type$.JSArray_double)));
  126493. _lazyFinal($, "linearProphotoRgbToLinearSrgb0", "$get$linearProphotoRgbToLinearSrgb0", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([2.034380849516996, -0.7276357899341342, -0.3067450595828618, -0.22882573163305037, 1.2317425411901048, -0.00291680955705449, -0.00855882878391742, -0.1532667021380372, 1.1618255309219547], type$.JSArray_double)));
  126494. _lazyFinal($, "linearSrgbToXyzD500", "$get$linearSrgbToXyzD500", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.43606574687426936, 0.3851515095901596, 0.14307841996513868, 0.22249317711056518, 0.7168870130944824, 0.06061980979495235, 0.01392392146316939, 0.09708132423141015, 0.7140993568158807], type$.JSArray_double)));
  126495. _lazyFinal($, "xyzD50ToLinearSrgb0", "$get$xyzD50ToLinearSrgb0", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([3.1341358529001178, -1.617385998018042, -0.49066221791109754, -0.9787954765557777, 1.9162543773959884, 0.03344287339036693, 0.07195539255794733, -0.228976759815182, 1.4053860351131182], type$.JSArray_double)));
  126496. _lazyFinal($, "linearDisplayP3ToLinearA98Rgb0", "$get$linearDisplayP3ToLinearA98Rgb0", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.8640051374740484, 0.13599486252595164, 0, -0.04205695470968816, 1.042056954709688, 0, -0.02056038078232985, -0.03250613804550798, 1.0530665188278379], type$.JSArray_double)));
  126497. _lazyFinal($, "linearA98RgbToLinearDisplayP30", "$get$linearA98RgbToLinearDisplayP30", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([1.1500944181410184, -0.15009441814101834, 0, 0.04641729862941844, 0.9535827013705815, 0, 0.02388759479083904, 0.02650477632633013, 0.9496076288828308], type$.JSArray_double)));
  126498. _lazyFinal($, "linearDisplayP3ToLinearRec20200", "$get$linearDisplayP3ToLinearRec20200", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.7538330343617218, 0.1985973690526163, 0.04756959658566187, 0.04574384896535833, 0.9417772198116935, 0.01247893122294812, -0.00121034035451832, 0.01760171730108989, 0.9836086230534284], type$.JSArray_double)));
  126499. _lazyFinal($, "linearRec2020ToLinearDisplayP30", "$get$linearRec2020ToLinearDisplayP30", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([1.343578252584332, -0.2821796705261357, -0.06139858205819628, -0.06529745278911953, 1.0757879158485746, -0.01049046305945495, 0.00282178726170095, -0.01959849452449406, 1.0167767072627931], type$.JSArray_double)));
  126500. _lazyFinal($, "linearDisplayP3ToXyzD650", "$get$linearDisplayP3ToXyzD650", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.48657094864821626, 0.26566769316909294, 0.1982172852343625, 0.22897456406974884, 0.6917385218365062, 0.079286914093745, 0, 0.04511338185890257, 1.0439443689009757], type$.JSArray_double)));
  126501. _lazyFinal($, "xyzD65ToLinearDisplayP30", "$get$xyzD65ToLinearDisplayP30", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([2.4934969119414245, -0.9313836179191236, -0.40271078445071684, -0.8294889695615749, 1.7626640603183468, 0.02362468584194359, 0.03584583024378433, -0.0761723892680417, 0.9568845240076873], type$.JSArray_double)));
  126502. _lazyFinal($, "linearDisplayP3ToLms0", "$get$linearDisplayP3ToLms0", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.48137985274995443, 0.46211837101131803, 0.05650177623872756, 0.22883194181124472, 0.6532168193835676, 0.11795123880518774, 0.08394575232299319, 0.22416527097756642, 0.6918889766994404], type$.JSArray_double)));
  126503. _lazyFinal($, "lmsToLinearDisplayP30", "$get$lmsToLinearDisplayP30", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([3.1277689713618737, -2.2571357625916386, 0.12936679122976494, -1.0910090184377979, 2.4133317103069225, -0.32232269186912466, -0.02601080193857045, -0.508041331704167, 1.5340521336427373], type$.JSArray_double)));
  126504. _lazyFinal($, "linearDisplayP3ToLinearProphotoRgb0", "$get$linearDisplayP3ToLinearProphotoRgb0", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.6316869193403589, 0.21393038569465722, 0.1543826949649839, 0.08320371426648458, 0.8858651367630243, 0.03093114897049121, -0.00127273456473881, 0.05075510433665735, 0.9505176302280814], type$.JSArray_double)));
  126505. _lazyFinal($, "linearProphotoRgbToLinearDisplayP30", "$get$linearProphotoRgbToLinearDisplayP30", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([1.6325756087069179, -0.3797716184825984, -0.2528039902243195, -0.15370040233755072, 1.1667025472425014, -0.01300214490495082, 0.01039319529676572, -0.0628073126495944, 1.0524141173528287], type$.JSArray_double)));
  126506. _lazyFinal($, "linearDisplayP3ToXyzD500", "$get$linearDisplayP3ToXyzD500", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.515146442968116, 0.2920099820638577, 0.15713925139759397, 0.2412003221252552, 0.6922225411313818, 0.06657713674336294, -0.00105013914714014, 0.0418782701890746, 0.7842764714685257], type$.JSArray_double)));
  126507. _lazyFinal($, "xyzD50ToLinearDisplayP30", "$get$xyzD50ToLinearDisplayP30", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([2.4039341218554973, -0.9900304424955931, -0.39761363181465614, -0.8422700161454688, 1.7989580161067082, 0.01604562477090472, 0.04819381686413303, -0.09738519815446048, 1.2736713693321273], type$.JSArray_double)));
  126508. _lazyFinal($, "linearA98RgbToLinearRec20200", "$get$linearA98RgbToLinearRec20200", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.8773338416636568, 0.07749370651571998, 0.04517245182062317, 0.09662259146620378, 0.8915273202441805, 0.01185008828961569, 0.02292106270284839, 0.04303668501067932, 0.9340422522864723], type$.JSArray_double)));
  126509. _lazyFinal($, "linearRec2020ToLinearA98Rgb0", "$get$linearRec2020ToLinearA98Rgb0", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([1.1519783947159163, -0.0975030553024086, -0.05447533941350766, -0.12455047452159074, 1.1328998971259603, -0.00834942260436947, -0.0225303827810559, -0.04980650742838876, 1.0723368902094446], type$.JSArray_double)));
  126510. _lazyFinal($, "linearA98RgbToXyzD650", "$get$linearA98RgbToXyzD650", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.5766690429101308, 0.18555823790654627, 0.18822864623499472, 0.29734497525053616, 0.627363566255466, 0.07529145849399789, 0.02703136138641237, 0.07068885253582714, 0.9913375368376389], type$.JSArray_double)));
  126511. _lazyFinal($, "xyzD65ToLinearA98Rgb0", "$get$xyzD65ToLinearA98Rgb0", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([2.041587903810746, -0.5650069742788596, -0.3447313507783295, -0.9692436362808798, 1.8759675015077206, 0.04155505740717561, 0.01344428063203102, -0.11836239223101823, 1.0151749943912054], type$.JSArray_double)));
  126512. _lazyFinal($, "linearA98RgbToLms0", "$get$linearA98RgbToLms0", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.5764322596183941, 0.36991322261987963, 0.05365451776172635, 0.29631647054222465, 0.5916761332521885, 0.11200739620558686, 0.1234782510142776, 0.21949869837199862, 0.6570230506137238], type$.JSArray_double)));
  126513. _lazyFinal($, "lmsToLinearA98Rgb0", "$get$lmsToLinearA98Rgb0", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([2.5540368386115566, -1.6219761806828699, 0.06793934207131327, -1.268437973285032, 2.609757349287689, -0.3413193760026571, -0.05623473593749381, -0.5670418395669061, 1.6232765755043999], type$.JSArray_double)));
  126514. _lazyFinal($, "linearA98RgbToLinearProphotoRgb0", "$get$linearA98RgbToLinearProphotoRgb0", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.7401175018047792, 0.11327951328898105, 0.1466029849062397, 0.1375504646980262, 0.833077080269484, 0.02937245503248977, 0.02359772990871766, 0.07378347703906656, 0.9026187930522158], type$.JSArray_double)));
  126515. _lazyFinal($, "linearProphotoRgbToLinearA98Rgb0", "$get$linearProphotoRgbToLinearA98Rgb0", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([1.38965124815152, -0.16945907691487766, -0.22019217123664242, -0.22882573163305037, 1.2317425411901048, -0.00291680955705449, -0.01762544368426068, -0.09625702306122665, 1.1138824667454874], type$.JSArray_double)));
  126516. _lazyFinal($, "linearA98RgbToXyzD500", "$get$linearA98RgbToXyzD500", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.6097750418861814, 0.20530000261929401, 0.14922063192409227, 0.31112461220464155, 0.6256532308346856, 0.06322215696067286, 0.01947059555648168, 0.06087908649415867, 0.7447549204598198], type$.JSArray_double)));
  126517. _lazyFinal($, "xyzD50ToLinearA98Rgb0", "$get$xyzD50ToLinearA98Rgb0", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([1.9624670363768806, -0.6107423404815073, -0.3413580980827154, -0.9787954765557777, 1.9162543773959884, 0.03344287339036693, 0.02870443944957101, -0.1406748663317068, 1.3489141814137937], type$.JSArray_double)));
  126518. _lazyFinal($, "linearRec2020ToXyzD650", "$get$linearRec2020ToXyzD650", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.6369580483012913, 0.14461690358620838, 0.16888097516417205, 0.26270021201126703, 0.677998071518871, 0.05930171646986194, 0, 0.0280726930490875, 1.0609850577107909], type$.JSArray_double)));
  126519. _lazyFinal($, "xyzD65ToLinearRec20200", "$get$xyzD65ToLinearRec20200", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([1.7166511879712676, -0.3556707837763924, -0.2533662813736598, -0.666684351832489, 1.616481236634939, 0.01576854581391113, 0.01763985744531091, -0.04277061325780865, 0.942103121235474], type$.JSArray_double)));
  126520. _lazyFinal($, "linearRec2020ToLms0", "$get$linearRec2020ToLms0", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.6167557848654444, 0.36019840122646335, 0.02304581390809228, 0.2651330593926367, 0.6358393720678491, 0.09902756853951408, 0.10010262952034828, 0.20390652261661452, 0.6959908478630372], type$.JSArray_double)));
  126521. _lazyFinal($, "lmsToLinearRec20200", "$get$lmsToLinearRec20200", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([2.1399067304346513, -1.246389493760618, 0.10648276332596668, -0.8847358357577674, 2.1632309383612007, -0.2784951026034334, -0.04857374640044396, -0.4545031497140964, 1.5030768961145404], type$.JSArray_double)));
  126522. _lazyFinal($, "linearRec2020ToLinearProphotoRgb0", "$get$linearRec2020ToLinearProphotoRgb0", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.8351873331297235, 0.04886884858605698, 0.11594381828421951, 0.05403324519953363, 0.9289184085692044, 0.01704834623126199, -0.00234203897072539, 0.03633215316169465, 0.9660098858090307], type$.JSArray_double)));
  126523. _lazyFinal($, "linearProphotoRgbToLinearRec20200", "$get$linearProphotoRgbToLinearRec20200", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([1.200659329517408, -0.05756805370122346, -0.14309127581618444, -0.06994154955888504, 1.080617897597214, -0.01067634803832895, 0.00554147334294746, -0.04078219298657951, 1.035240719643632], type$.JSArray_double)));
  126524. _lazyFinal($, "linearRec2020ToXyzD500", "$get$linearRec2020ToXyzD500", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.673515463188276, 0.16569726370390453, 0.12508294953738705, 0.2790590051411206, 0.6753180057491098, 0.04562298910976962, -0.00193242713400438, 0.02997782679282923, 0.7970592028516355], type$.JSArray_double)));
  126525. _lazyFinal($, "xyzD50ToLinearRec20200", "$get$xyzD50ToLinearRec20200", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([1.647184904671766, -0.3936818981316471, -0.23595963848828266, -0.6826641074173818, 1.6477146127444076, 0.01281708338512084, 0.02966887665275675, -0.0629258964297003, 1.2535578201865771], type$.JSArray_double)));
  126526. _lazyFinal($, "xyzD65ToLms0", "$get$xyzD65ToLms0", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.819022437996703, 0.36190626005289034, -0.12887378152098788, 0.03298365393238846, 0.9292868615863433, 0.03614466635064235, 0.0481771893596242, 0.2642395317527308, 0.6335478284694308], type$.JSArray_double)));
  126527. _lazyFinal($, "lmsToXyzD650", "$get$lmsToXyzD650", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([1.2268798758459243, -0.5578149944602171, 0.2813910456659646, -0.04057574521480084, 1.1122868032803173, -0.07171105806551635, -0.07637293667466007, -0.42149333240224324, 1.5869240198367818], type$.JSArray_double)));
  126528. _lazyFinal($, "xyzD65ToLinearProphotoRgb0", "$get$xyzD65ToLinearProphotoRgb0", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([1.4031904633774979, -0.22301514479051668, -0.1016066850741379, -0.5262384021633072, 1.4816319629234644, 0.01701879027252688, -0.0112022652862215, 0.01824640347962099, 0.9112472274915048], type$.JSArray_double)));
  126529. _lazyFinal($, "linearProphotoRgbToXyzD650", "$get$linearProphotoRgbToXyzD650", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.755590742296921, 0.11271984265940525, 0.0821453420953454, 0.2683218435785719, 0.7151152566617912, 0.01656289975963685, 0.0039159727624258, -0.01293344283684181, 1.0980752208342945], type$.JSArray_double)));
  126530. _lazyFinal($, "xyzD65ToXyzD500", "$get$xyzD65ToXyzD500", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([1.0479297925449966, 0.02294687060160952, -0.05019226628920519, 0.02962780877005567, 0.99043442675388, -0.01707379906341879, -0.00924304064620452, 0.01505519149029816, 0.751874281428137], type$.JSArray_double)));
  126531. _lazyFinal($, "xyzD50ToXyzD650", "$get$xyzD50ToXyzD650", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.9554734214880752, -0.02309845494876452, 0.06325924320057065, -0.02836970933386358, 1.0099953980813041, 0.0210414411919173, 0.01231401486448199, -0.02050764929889898, 1.330365926242124], type$.JSArray_double)));
  126532. _lazyFinal($, "lmsToLinearProphotoRgb0", "$get$lmsToLinearProphotoRgb0", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([1.7383551481157207, -0.9879509427514458, 0.24959579463572504, -0.7070494015329266, 1.9343700444401382, -0.2273206429072115, -0.08407882206239634, -0.35754060521141334, 1.4416194272738097], type$.JSArray_double)));
  126533. _lazyFinal($, "linearProphotoRgbToLms0", "$get$linearProphotoRgbToLms0", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.7154484605655534, 0.35279155007721186, -0.0682400106427653, 0.2744116490015671, 0.6677976498412367, 0.05779070115719616, 0.10978443261622942, 0.18619829115002018, 0.7040172762337504], type$.JSArray_double)));
  126534. _lazyFinal($, "lmsToXyzD500", "$get$lmsToXyzD500", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([1.288586218172706, -0.5378717444973745, 0.2135812027542364, -0.00253387643187372, 1.0923167988719165, -0.08978292244004273, -0.06937382305734124, -0.29500839894431263, 1.1894868245121142], type$.JSArray_double)));
  126535. _lazyFinal($, "xyzD50ToLms0", "$get$xyzD50ToLms0", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.7707000420431172, 0.34924840261939616, -0.11202351884164681, 0.00559649248368848, 0.9370723401136769, 0.06972568836252771, 0.04633714262191069, 0.25277531574310524, 0.851458076746796], type$.JSArray_double)));
  126536. _lazyFinal($, "linearProphotoRgbToXyzD500", "$get$linearProphotoRgbToXyzD500", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([0.7977666449006423, 0.13518129740053308, 0.0313477341283922, 0.2880748288194013, 0.711835234241873, 0.00008993693872564, 0, 0, 0.8251046025104602], type$.JSArray_double)));
  126537. _lazyFinal($, "xyzD50ToLinearProphotoRgb0", "$get$xyzD50ToLinearProphotoRgb0", () => A.NativeFloat64List_NativeFloat64List$fromList(A._setArrayType([1.3457868816471583, -0.25557208737979464, -0.05110186497554526, -0.5446307051249019, 1.5082477428451468, 0.02052744743642139, 0, 0, 1.2119675456389452], type$.JSArray_double)));
  126538. _lazyFinal($, "_disallowedFunctionNames0", "$get$_disallowedFunctionNames0", () => {
  126539. var t1 = $.$get$globalFunctions0();
  126540. t1 = t1.map$1$1(t1, new A._disallowedFunctionNames_closure0(), type$.String).toSet$0(0);
  126541. t1.add$1(0, "if");
  126542. t1.remove$1(0, "rgb");
  126543. t1.remove$1(0, "rgba");
  126544. t1.remove$1(0, "hsl");
  126545. t1.remove$1(0, "hsla");
  126546. t1.remove$1(0, "grayscale");
  126547. t1.remove$1(0, "invert");
  126548. t1.remove$1(0, "alpha");
  126549. t1.remove$1(0, "opacity");
  126550. t1.remove$1(0, "saturate");
  126551. t1.remove$1(0, "min");
  126552. t1.remove$1(0, "max");
  126553. t1.remove$1(0, "round");
  126554. t1.remove$1(0, "abs");
  126555. return t1;
  126556. });
  126557. _lazyFinal($, "deprecations", "$get$deprecations", () => {
  126558. var _i, deprecation, t2,
  126559. t1 = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, A.findType("Deprecation1?"));
  126560. for (_i = 0; _i < 24; ++_i) {
  126561. deprecation = B.List_31K[_i];
  126562. if (deprecation !== B.Deprecation_ErI) {
  126563. t2 = deprecation.id;
  126564. t1.$indexSet(0, t2, {id: t2, status: new A.deprecations_closure(deprecation).call$0(), description: deprecation.description, deprecatedIn: deprecation.get$deprecatedIn(0), obsoleteIn: deprecation.get$deprecatedIn(0)});
  126565. }
  126566. }
  126567. return t1;
  126568. });
  126569. _lazyFinal($, "versionClass", "$get$versionClass", () => new A.versionClass_closure().call$0());
  126570. _lazyFinal($, "exceptionClass", "$get$exceptionClass", () => new A.exceptionClass_closure().call$0());
  126571. _lazyFinal($, "FilesystemImporter_cwd0", "$get$FilesystemImporter_cwd0", () => {
  126572. var _null = null;
  126573. return new A.FilesystemImporter0(A.absolute(".", _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null, _null), true);
  126574. });
  126575. _lazyFinal($, "functionClass", "$get$functionClass", () => new A.functionClass_closure().call$0());
  126576. _lazyFinal($, "globalFunctions0", "$get$globalFunctions0", () => {
  126577. var t1 = type$.BuiltInCallable_2,
  126578. t2 = A.List_List$of($.$get$global6(), true, t1);
  126579. B.JSArray_methods.addAll$1(t2, $.$get$global7());
  126580. B.JSArray_methods.addAll$1(t2, $.$get$global8());
  126581. B.JSArray_methods.addAll$1(t2, $.$get$global9());
  126582. B.JSArray_methods.addAll$1(t2, $.$get$global10());
  126583. B.JSArray_methods.addAll$1(t2, $.$get$global11());
  126584. B.JSArray_methods.addAll$1(t2, $.$get$global12());
  126585. t2.push(A.BuiltInCallable$function0("if", "$condition, $if-true, $if-false", new A.globalFunctions_closure0(), null));
  126586. return A.UnmodifiableListView$(t2, t1);
  126587. });
  126588. _lazyFinal($, "coreModules0", "$get$coreModules0", () => A.UnmodifiableListView$(A._setArrayType([$.$get$module5(), $.$get$module6(), $.$get$module7(), $.$get$module8(), $.$get$module9(), $.$get$module10()], A.findType("JSArray<BuiltInModule0<Callable>>")), type$.BuiltInModule_Callable_2));
  126589. _lazyFinal($, "IfExpression_declaration0", "$get$IfExpression_declaration0", () => A.ArgumentDeclaration_ArgumentDeclaration$parse0(string$.x40funct, null));
  126590. _lazyFinal($, "global7", "$get$global7", () => {
  126591. var _s4_ = "list";
  126592. return A.UnmodifiableListView$(A._setArrayType([$.$get$_length2().withDeprecationWarning$1(_s4_), $.$get$_nth0().withDeprecationWarning$1(_s4_), $.$get$_setNth0().withDeprecationWarning$1(_s4_), $.$get$_join0().withDeprecationWarning$1(_s4_), $.$get$_append2().withDeprecationWarning$1(_s4_), $.$get$_zip0().withDeprecationWarning$1(_s4_), $.$get$_index2().withDeprecationWarning$1(_s4_), $.$get$_isBracketed0().withDeprecationWarning$1(_s4_), $.$get$_separator0().withDeprecationWarning$1(_s4_).withName$1("list-separator")], type$.JSArray_BuiltInCallable_2), type$.BuiltInCallable_2);
  126593. });
  126594. _lazyFinal($, "module6", "$get$module6", () => A.BuiltInModule$0("list", A._setArrayType([$.$get$_length2(), $.$get$_nth0(), $.$get$_setNth0(), $.$get$_join0(), $.$get$_append2(), $.$get$_zip0(), $.$get$_index2(), $.$get$_isBracketed0(), $.$get$_separator0(), $.$get$_slash0()], type$.JSArray_Callable_2), null, null, type$.Callable_2));
  126595. _lazyFinal($, "_length1", "$get$_length2", () => A._function11("length", "$list", new A._length_closure2()));
  126596. _lazyFinal($, "_nth0", "$get$_nth0", () => A._function11("nth", "$list, $n", new A._nth_closure0()));
  126597. _lazyFinal($, "_setNth0", "$get$_setNth0", () => A._function11("set-nth", "$list, $n, $value", new A._setNth_closure0()));
  126598. _lazyFinal($, "_join0", "$get$_join0", () => A._function11("join", string$.x24list1, new A._join_closure0()));
  126599. _lazyFinal($, "_append1", "$get$_append2", () => A._function11("append", "$list, $val, $separator: auto", new A._append_closure2()));
  126600. _lazyFinal($, "_zip0", "$get$_zip0", () => A._function11("zip", "$lists...", new A._zip_closure0()));
  126601. _lazyFinal($, "_index1", "$get$_index2", () => A._function11("index", "$list, $value", new A._index_closure2()));
  126602. _lazyFinal($, "_separator0", "$get$_separator0", () => A._function11("separator", "$list", new A._separator_closure0()));
  126603. _lazyFinal($, "_isBracketed0", "$get$_isBracketed0", () => A._function11("is-bracketed", "$list", new A._isBracketed_closure0()));
  126604. _lazyFinal($, "_slash0", "$get$_slash0", () => A._function11("slash", "$elements...", new A._slash_closure0()));
  126605. _lazyFinal($, "listClass", "$get$listClass", () => new A.listClass_closure().call$0());
  126606. _lazyFinal($, "legacyListClass", "$get$legacyListClass", () => {
  126607. var t1 = A.createJSClass("sass.types.List", new A.legacyListClass_closure());
  126608. A.JSClassExtension_defineMethods(t1, A.LinkedHashMap_LinkedHashMap$_literal(["getValue", new A.legacyListClass_closure0(), "setValue", new A.legacyListClass_closure1(), "getSeparator", new A.legacyListClass_closure2(), "setSeparator", new A.legacyListClass_closure3(), "getLength", new A.legacyListClass_closure4()], type$.String, type$.Function));
  126609. return t1;
  126610. });
  126611. _lazyFinal($, "global8", "$get$global8", () => {
  126612. var _s3_ = "map";
  126613. return A.UnmodifiableListView$(A._setArrayType([$.$get$_get0().withDeprecationWarning$1(_s3_).withName$1("map-get"), $.$get$_merge0().withDeprecationWarning$1(_s3_).withName$1("map-merge"), $.$get$_remove0().withDeprecationWarning$1(_s3_).withName$1("map-remove"), $.$get$_keys0().withDeprecationWarning$1(_s3_).withName$1("map-keys"), $.$get$_values0().withDeprecationWarning$1(_s3_).withName$1("map-values"), $.$get$_hasKey0().withDeprecationWarning$1(_s3_).withName$1("map-has-key")], type$.JSArray_BuiltInCallable_2), type$.BuiltInCallable_2);
  126614. });
  126615. _lazyFinal($, "module7", "$get$module7", () => A.BuiltInModule$0("map", A._setArrayType([$.$get$_get0(), $.$get$_set0(), $.$get$_merge0(), $.$get$_remove0(), $.$get$_keys0(), $.$get$_values0(), $.$get$_hasKey0(), $.$get$_deepMerge0(), $.$get$_deepRemove0()], type$.JSArray_Callable_2), null, null, type$.Callable_2));
  126616. _lazyFinal($, "_get0", "$get$_get0", () => A._function10("get", "$map, $key, $keys...", new A._get_closure0()));
  126617. _lazyFinal($, "_set0", "$get$_set0", () => A.BuiltInCallable$overloadedFunction0("set", A.LinkedHashMap_LinkedHashMap$_literal(["$map, $key, $value", new A._set_closure1(), "$map, $args...", new A._set_closure2()], type$.String, type$.Value_Function_List_Value_2)));
  126618. _lazyFinal($, "_merge0", "$get$_merge0", () => A.BuiltInCallable$overloadedFunction0("merge", A.LinkedHashMap_LinkedHashMap$_literal(["$map1, $map2", new A._merge_closure1(), "$map1, $args...", new A._merge_closure2()], type$.String, type$.Value_Function_List_Value_2)));
  126619. _lazyFinal($, "_deepMerge0", "$get$_deepMerge0", () => A._function10("deep-merge", "$map1, $map2", new A._deepMerge_closure0()));
  126620. _lazyFinal($, "_deepRemove0", "$get$_deepRemove0", () => A._function10("deep-remove", "$map, $key, $keys...", new A._deepRemove_closure0()));
  126621. _lazyFinal($, "_remove0", "$get$_remove0", () => A.BuiltInCallable$overloadedFunction0("remove", A.LinkedHashMap_LinkedHashMap$_literal(["$map", new A._remove_closure1(), "$map, $key, $keys...", new A._remove_closure2()], type$.String, type$.Value_Function_List_Value_2)));
  126622. _lazyFinal($, "_keys0", "$get$_keys0", () => A._function10("keys", "$map", new A._keys_closure0()));
  126623. _lazyFinal($, "_values0", "$get$_values0", () => A._function10("values", "$map", new A._values_closure0()));
  126624. _lazyFinal($, "_hasKey0", "$get$_hasKey0", () => A._function10("has-key", "$map, $key, $keys...", new A._hasKey_closure0()));
  126625. _lazyFinal($, "mapClass", "$get$mapClass", () => new A.mapClass_closure().call$0());
  126626. _lazyFinal($, "legacyMapClass", "$get$legacyMapClass", () => {
  126627. var t1 = A.createJSClass("sass.types.Map", new A.legacyMapClass_closure());
  126628. A.JSClassExtension_defineMethods(t1, A.LinkedHashMap_LinkedHashMap$_literal(["getKey", new A.legacyMapClass_closure0(), "getValue", new A.legacyMapClass_closure1(), "getLength", new A.legacyMapClass_closure2(), "setKey", new A.legacyMapClass_closure3(), "setValue", new A.legacyMapClass_closure4()], type$.String, type$.Function));
  126629. return t1;
  126630. });
  126631. _lazyFinal($, "global9", "$get$global9", () => {
  126632. var _s4_ = "math";
  126633. return A.UnmodifiableListView$(A._setArrayType([A._function9("abs", "$number", new A.global_closure43()), $.$get$_ceil0().withDeprecationWarning$1(_s4_), $.$get$_floor0().withDeprecationWarning$1(_s4_), $.$get$_max0().withDeprecationWarning$1(_s4_), $.$get$_min0().withDeprecationWarning$1(_s4_), $.$get$_percentage0().withDeprecationWarning$1(_s4_), $.$get$_randomFunction0().withDeprecationWarning$1(_s4_), $.$get$_round0().withDeprecationWarning$1(_s4_), $.$get$_unit0().withDeprecationWarning$1(_s4_), $.$get$_compatible0().withDeprecationWarning$1(_s4_).withName$1("comparable"), $.$get$_isUnitless0().withDeprecationWarning$1(_s4_).withName$1("unitless")], type$.JSArray_BuiltInCallable_2), type$.BuiltInCallable_2);
  126634. });
  126635. _lazyFinal($, "module8", "$get$module8", () => {
  126636. var _null = null;
  126637. return A.BuiltInModule$0("math", A._setArrayType([A._numberFunction0("abs", new A.module_closure26()), $.$get$_acos0(), $.$get$_asin0(), $.$get$_atan0(), $.$get$_atan20(), $.$get$_ceil0(), $.$get$_clamp0(), $.$get$_cos0(), $.$get$_compatible0(), $.$get$_floor0(), $.$get$_hypot0(), $.$get$_isUnitless0(), $.$get$_log0(), $.$get$_max0(), $.$get$_min0(), $.$get$_percentage0(), $.$get$_pow0(), $.$get$_randomFunction0(), $.$get$_round0(), $.$get$_sin0(), $.$get$_sqrt0(), $.$get$_tan0(), $.$get$_unit0(), $.$get$_div0()], type$.JSArray_Callable_2), _null, A.LinkedHashMap_LinkedHashMap$_literal(["e", A.SassNumber_SassNumber0(2.718281828459045, _null), "pi", A.SassNumber_SassNumber0(3.141592653589793, _null), "epsilon", A.SassNumber_SassNumber0(2220446049250313e-31, _null), "max-safe-integer", A.SassNumber_SassNumber0(9007199254740991, _null), "min-safe-integer", A.SassNumber_SassNumber0(-9007199254740991, _null), "max-number", A.SassNumber_SassNumber0(17976931348623157e292, _null), "min-number", A.SassNumber_SassNumber0(5e-324, _null)], type$.String, type$.Value_2), type$.Callable_2);
  126638. });
  126639. _lazyFinal($, "_ceil0", "$get$_ceil0", () => A._numberFunction0("ceil", new A._ceil_closure0()));
  126640. _lazyFinal($, "_clamp0", "$get$_clamp0", () => A._function9("clamp", "$min, $number, $max", new A._clamp_closure0()));
  126641. _lazyFinal($, "_floor0", "$get$_floor0", () => A._numberFunction0("floor", new A._floor_closure0()));
  126642. _lazyFinal($, "_max0", "$get$_max0", () => A._function9("max", "$numbers...", new A._max_closure0()));
  126643. _lazyFinal($, "_min0", "$get$_min0", () => A._function9("min", "$numbers...", new A._min_closure0()));
  126644. _lazyFinal($, "_round0", "$get$_round0", () => A._numberFunction0("round", new A._round_closure0()));
  126645. _lazyFinal($, "_hypot0", "$get$_hypot0", () => A._function9("hypot", "$numbers...", new A._hypot_closure0()));
  126646. _lazyFinal($, "_log0", "$get$_log0", () => A._function9("log", "$number, $base: null", new A._log_closure0()));
  126647. _lazyFinal($, "_pow0", "$get$_pow0", () => A._function9("pow", "$base, $exponent", new A._pow_closure0()));
  126648. _lazyFinal($, "_sqrt0", "$get$_sqrt0", () => A._singleArgumentMathFunc0("sqrt", A.number2__sqrt$closure()));
  126649. _lazyFinal($, "_acos0", "$get$_acos0", () => A._singleArgumentMathFunc0("acos", A.number2__acos$closure()));
  126650. _lazyFinal($, "_asin0", "$get$_asin0", () => A._singleArgumentMathFunc0("asin", A.number2__asin$closure()));
  126651. _lazyFinal($, "_atan0", "$get$_atan0", () => A._singleArgumentMathFunc0("atan", A.number2__atan$closure()));
  126652. _lazyFinal($, "_atan20", "$get$_atan20", () => A._function9("atan2", "$y, $x", new A._atan2_closure0()));
  126653. _lazyFinal($, "_cos0", "$get$_cos0", () => A._singleArgumentMathFunc0("cos", A.number2__cos$closure()));
  126654. _lazyFinal($, "_sin0", "$get$_sin0", () => A._singleArgumentMathFunc0("sin", A.number2__sin$closure()));
  126655. _lazyFinal($, "_tan0", "$get$_tan0", () => A._singleArgumentMathFunc0("tan", A.number2__tan$closure()));
  126656. _lazyFinal($, "_compatible0", "$get$_compatible0", () => A._function9("compatible", "$number1, $number2", new A._compatible_closure0()));
  126657. _lazyFinal($, "_isUnitless0", "$get$_isUnitless0", () => A._function9("is-unitless", "$number", new A._isUnitless_closure0()));
  126658. _lazyFinal($, "_unit0", "$get$_unit0", () => A._function9("unit", "$number", new A._unit_closure0()));
  126659. _lazyFinal($, "_percentage0", "$get$_percentage0", () => A._function9("percentage", "$number", new A._percentage_closure0()));
  126660. _lazyFinal($, "_random1", "$get$_random2", () => A.Random_Random());
  126661. _lazyFinal($, "_randomFunction0", "$get$_randomFunction0", () => A._function9("random", "$limit: null", new A._randomFunction_closure0()));
  126662. _lazyFinal($, "_div0", "$get$_div0", () => A._function9("div", "$number1, $number2", new A._div_closure0()));
  126663. _lazyFinal($, "_shared0", "$get$_shared0", () => A.UnmodifiableListView$(A._setArrayType([A._function6("feature-exists", "$feature", new A._shared_closure3()), A._function6("inspect", "$value", new A._shared_closure4()), A._function6("type-of", "$value", new A._shared_closure5()), A._function6("keywords", "$args", new A._shared_closure6())], type$.JSArray_BuiltInCallable_2), type$.BuiltInCallable_2));
  126664. _lazyFinal($, "global10", "$get$global12", () => {
  126665. var t2,
  126666. t1 = A._setArrayType([], type$.JSArray_BuiltInCallable_2);
  126667. for (t2 = $.$get$_shared0(), t2 = t2.get$iterator(t2); t2.moveNext$0();)
  126668. t1.push(t2.get$current(0).withDeprecationWarning$1("meta"));
  126669. return A.UnmodifiableListView$(t1, type$.BuiltInCallable_2);
  126670. });
  126671. _lazyFinal($, "moduleFunctions0", "$get$moduleFunctions0", () => {
  126672. var t1 = type$.BuiltInCallable_2,
  126673. t2 = A.List_List$of($.$get$_shared0(), true, t1);
  126674. t2.push(A._function6("calc-name", "$calc", new A.moduleFunctions_closure2()));
  126675. t2.push(A._function6("calc-args", "$calc", new A.moduleFunctions_closure3()));
  126676. t2.push(A._function6("accepts-content", "$mixin", new A.moduleFunctions_closure4()));
  126677. return A.UnmodifiableListView$(t2, t1);
  126678. });
  126679. _lazyFinal($, "mixinClass", "$get$mixinClass", () => new A.mixinClass_closure().call$0());
  126680. _lazyFinal($, "legacyNullClass", "$get$legacyNullClass", () => new A.legacyNullClass_closure().call$0());
  126681. _lazyFinal($, "_epsilon0", "$get$_epsilon0", () => A.pow(10, -11));
  126682. _lazyFinal($, "_inverseEpsilon0", "$get$_inverseEpsilon0", () => A.pow(10, 11));
  126683. _lazyFinal($, "numberClass", "$get$numberClass", () => new A.numberClass_closure().call$0());
  126684. _lazyFinal($, "legacyNumberClass", "$get$legacyNumberClass", () => {
  126685. var t1 = A.createJSClass("sass.types.Number", new A.legacyNumberClass_closure());
  126686. A.JSClassExtension_defineMethods(t1, A.LinkedHashMap_LinkedHashMap$_literal(["getValue", new A.legacyNumberClass_closure0(), "setValue", new A.legacyNumberClass_closure1(), "getUnit", new A.legacyNumberClass_closure2(), "setUnit", new A.legacyNumberClass_closure3()], type$.String, type$.Function));
  126687. return t1;
  126688. });
  126689. _lazyFinal($, "_typesByUnit0", "$get$_typesByUnit0", () => {
  126690. var t3, type,
  126691. t1 = type$.String,
  126692. t2 = A.LinkedHashMap_LinkedHashMap$_empty(t1, t1);
  126693. for (t1 = A.MapExtensions_get_pairs0(B.Map_397RH, t1, type$.List_String), t1 = t1.get$iterator(t1); t1.moveNext$0();) {
  126694. t3 = t1.get$current(t1);
  126695. type = t3._0;
  126696. for (t3 = J.get$iterator$ax(t3._1); t3.moveNext$0();)
  126697. t2.$indexSet(0, t3.get$current(t3), type);
  126698. }
  126699. return t2;
  126700. });
  126701. _lazyFinal($, "_interpolation", "$get$_interpolation", () => A.Interpolation$0(B.List_empty28, B.List_empty29, $.$get$bogusSpan0()));
  126702. _lazyFinal($, "_expression", "$get$_expression", () => A.NullExpression$($.$get$bogusSpan0()));
  126703. _lazyFinal($, "global11", "$get$global10", () => {
  126704. var _s8_ = "selector";
  126705. return A.UnmodifiableListView$(A._setArrayType([$.$get$_isSuperselector0().withDeprecationWarning$1(_s8_), $.$get$_simpleSelectors0().withDeprecationWarning$1(_s8_), $.$get$_parse0().withDeprecationWarning$1(_s8_).withName$1("selector-parse"), $.$get$_nest0().withDeprecationWarning$1(_s8_).withName$1("selector-nest"), $.$get$_append1().withDeprecationWarning$1(_s8_).withName$1("selector-append"), $.$get$_extend0().withDeprecationWarning$1(_s8_).withName$1("selector-extend"), $.$get$_replace0().withDeprecationWarning$1(_s8_).withName$1("selector-replace"), $.$get$_unify0().withDeprecationWarning$1(_s8_).withName$1("selector-unify")], type$.JSArray_BuiltInCallable_2), type$.BuiltInCallable_2);
  126706. });
  126707. _lazyFinal($, "module9", "$get$module9", () => A.BuiltInModule$0("selector", A._setArrayType([$.$get$_isSuperselector0(), $.$get$_simpleSelectors0(), $.$get$_parse0(), $.$get$_nest0(), $.$get$_append1(), $.$get$_extend0(), $.$get$_replace0(), $.$get$_unify0()], type$.JSArray_Callable_2), null, null, type$.Callable_2));
  126708. _lazyFinal($, "_nest0", "$get$_nest0", () => A._function8("nest", "$selectors...", new A._nest_closure0()));
  126709. _lazyFinal($, "_append2", "$get$_append1", () => A._function8("append", "$selectors...", new A._append_closure1()));
  126710. _lazyFinal($, "_extend0", "$get$_extend0", () => A._function8("extend", "$selector, $extendee, $extender", new A._extend_closure0()));
  126711. _lazyFinal($, "_replace0", "$get$_replace0", () => A._function8("replace", "$selector, $original, $replacement", new A._replace_closure0()));
  126712. _lazyFinal($, "_unify0", "$get$_unify0", () => A._function8("unify", "$selector1, $selector2", new A._unify_closure0()));
  126713. _lazyFinal($, "_isSuperselector0", "$get$_isSuperselector0", () => A._function8("is-superselector", "$super, $sub", new A._isSuperselector_closure0()));
  126714. _lazyFinal($, "_simpleSelectors0", "$get$_simpleSelectors0", () => A._function8("simple-selectors", "$selector", new A._simpleSelectors_closure0()));
  126715. _lazyFinal($, "_parse1", "$get$_parse0", () => A._function8("parse", "$selector", new A._parse_closure0()));
  126716. _lazyFinal($, "_knownCompatibilitiesByUnit0", "$get$_knownCompatibilitiesByUnit0", () => {
  126717. var _i, set, t2,
  126718. t1 = A.LinkedHashMap_LinkedHashMap$_empty(type$.String, A.findType("Set<String>"));
  126719. for (_i = 0; _i < 5; ++_i) {
  126720. set = B.List_Eeh[_i];
  126721. for (t2 = set.get$iterator(set); t2.moveNext$0();)
  126722. t1.$indexSet(0, t2.get$current(0), set);
  126723. }
  126724. return t1;
  126725. });
  126726. _lazyFinal($, "bogusSpan0", "$get$bogusSpan0", () => A.SourceFile$decoded(A._setArrayType([], type$.JSArray_int), null).span$1(0, 0));
  126727. _lazyFinal($, "_random2", "$get$_random1", () => A.Random_Random());
  126728. _lazy($, "_previousUniqueId0", "$get$_previousUniqueId0", () => $.$get$_random1().nextInt$1(A._asInt(A.pow(36, 6))));
  126729. _lazyFinal($, "global12", "$get$global11", () => {
  126730. var _s6_ = "string";
  126731. return A.UnmodifiableListView$(A._setArrayType([$.$get$_unquote0().withDeprecationWarning$1(_s6_), $.$get$_quote0().withDeprecationWarning$1(_s6_), $.$get$_toUpperCase0().withDeprecationWarning$1(_s6_), $.$get$_toLowerCase0().withDeprecationWarning$1(_s6_), $.$get$_uniqueId0().withDeprecationWarning$1(_s6_), $.$get$_length1().withDeprecationWarning$1(_s6_).withName$1("str-length"), $.$get$_insert0().withDeprecationWarning$1(_s6_).withName$1("str-insert"), $.$get$_index1().withDeprecationWarning$1(_s6_).withName$1("str-index"), $.$get$_slice0().withDeprecationWarning$1(_s6_).withName$1("str-slice")], type$.JSArray_BuiltInCallable_2), type$.BuiltInCallable_2);
  126732. });
  126733. _lazyFinal($, "module10", "$get$module10", () => A.BuiltInModule$0("string", A._setArrayType([$.$get$_unquote0(), $.$get$_quote0(), $.$get$_toUpperCase0(), $.$get$_toLowerCase0(), $.$get$_length1(), $.$get$_insert0(), $.$get$_index1(), $.$get$_slice0(), $.$get$_uniqueId0(), A._function7("split", "$string, $separator, $limit: null", new A.module_closure25())], type$.JSArray_Callable_2), null, null, type$.Callable_2));
  126734. _lazyFinal($, "_unquote0", "$get$_unquote0", () => A._function7("unquote", "$string", new A._unquote_closure0()));
  126735. _lazyFinal($, "_quote0", "$get$_quote0", () => A._function7("quote", "$string", new A._quote_closure0()));
  126736. _lazyFinal($, "_length2", "$get$_length1", () => A._function7("length", "$string", new A._length_closure1()));
  126737. _lazyFinal($, "_insert0", "$get$_insert0", () => A._function7("insert", "$string, $insert, $index", new A._insert_closure0()));
  126738. _lazyFinal($, "_index2", "$get$_index1", () => A._function7("index", "$string, $substring", new A._index_closure1()));
  126739. _lazyFinal($, "_slice0", "$get$_slice0", () => A._function7("slice", "$string, $start-at, $end-at: -1", new A._slice_closure0()));
  126740. _lazyFinal($, "_toUpperCase0", "$get$_toUpperCase0", () => A._function7("to-upper-case", "$string", new A._toUpperCase_closure0()));
  126741. _lazyFinal($, "_toLowerCase0", "$get$_toLowerCase0", () => A._function7("to-lower-case", "$string", new A._toLowerCase_closure0()));
  126742. _lazyFinal($, "_uniqueId0", "$get$_uniqueId0", () => A._function7("unique-id", "", new A._uniqueId_closure0()));
  126743. _lazyFinal($, "stringClass", "$get$stringClass", () => new A.stringClass_closure().call$0());
  126744. _lazyFinal($, "legacyStringClass", "$get$legacyStringClass", () => {
  126745. var t1 = A.createJSClass("sass.types.String", new A.legacyStringClass_closure());
  126746. A.JSClassExtension_defineMethods(t1, A.LinkedHashMap_LinkedHashMap$_literal(["getValue", new A.legacyStringClass_closure0(), "setValue", new A.legacyStringClass_closure1()], type$.String, type$.Function));
  126747. return t1;
  126748. });
  126749. _lazyFinal($, "_emptyQuoted0", "$get$_emptyQuoted0", () => A.SassString$0("", true));
  126750. _lazyFinal($, "_emptyUnquoted0", "$get$_emptyUnquoted0", () => A.SassString$0("", false));
  126751. _lazyFinal($, "_urlSchemeRegExp", "$get$_urlSchemeRegExp", () => A.RegExp_RegExp("^[a-z0-9+.-]+$", false));
  126752. _lazyFinal($, "_jsThrow0", "$get$_jsThrow", () => new self.Function("error", "throw error;"));
  126753. _lazyFinal($, "_isUndefined", "$get$_isUndefined", () => new self.Function("value", "return value === undefined;"));
  126754. _lazyFinal($, "_isNull", "$get$_isNull", () => new self.Function("value", "return value === null;"));
  126755. _lazyFinal($, "_noSourceUrl0", "$get$_noSourceUrl0", () => A.Uri_parse("-"));
  126756. _lazyFinal($, "_traces0", "$get$_traces0", () => A.Expando$());
  126757. _lazyFinal($, "valueClass", "$get$valueClass", () => new A.valueClass_closure().call$0());
  126758. })();
  126759. (function nativeSupport() {
  126760. !function() {
  126761. var intern = function(s) {
  126762. var o = {};
  126763. o[s] = 1;
  126764. return Object.keys(hunkHelpers.convertToFastObject(o))[0];
  126765. };
  126766. init.getIsolateTag = function(name) {
  126767. return intern("___dart_" + name + init.isolateTag);
  126768. };
  126769. var tableProperty = "___dart_isolate_tags_";
  126770. var usedProperties = Object[tableProperty] || (Object[tableProperty] = Object.create(null));
  126771. var rootProperty = "_ZxYxX";
  126772. for (var i = 0;; i++) {
  126773. var property = intern(rootProperty + "_" + i + "_");
  126774. if (!(property in usedProperties)) {
  126775. usedProperties[property] = 1;
  126776. init.isolateTag = property;
  126777. break;
  126778. }
  126779. }
  126780. init.dispatchPropertyName = init.getIsolateTag("dispatch_record");
  126781. }();
  126782. hunkHelpers.setOrUpdateInterceptorsByTag({ArrayBuffer: A.NativeByteBuffer, ArrayBufferView: A.NativeTypedData, DataView: A.NativeByteData, Float32Array: A.NativeFloat32List, Float64Array: A.NativeFloat64List, Int16Array: A.NativeInt16List, Int32Array: A.NativeInt32List, Int8Array: A.NativeInt8List, Uint16Array: A.NativeUint16List, Uint32Array: A.NativeUint32List, Uint8ClampedArray: A.NativeUint8ClampedList, CanvasPixelArray: A.NativeUint8ClampedList, Uint8Array: A.NativeUint8List});
  126783. hunkHelpers.setOrUpdateLeafTags({ArrayBuffer: true, ArrayBufferView: false, DataView: true, Float32Array: true, Float64Array: true, Int16Array: true, Int32Array: true, Int8Array: true, Uint16Array: true, Uint32Array: true, Uint8ClampedArray: true, CanvasPixelArray: true, Uint8Array: false});
  126784. A.NativeTypedArray.$nativeSuperclassTag = "ArrayBufferView";
  126785. A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin.$nativeSuperclassTag = "ArrayBufferView";
  126786. A._NativeTypedArrayOfDouble_NativeTypedArray_ListMixin_FixedLengthListMixin.$nativeSuperclassTag = "ArrayBufferView";
  126787. A.NativeTypedArrayOfDouble.$nativeSuperclassTag = "ArrayBufferView";
  126788. A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin.$nativeSuperclassTag = "ArrayBufferView";
  126789. A._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin.$nativeSuperclassTag = "ArrayBufferView";
  126790. A.NativeTypedArrayOfInt.$nativeSuperclassTag = "ArrayBufferView";
  126791. })();
  126792. Function.prototype.call$0 = function() {
  126793. return this();
  126794. };
  126795. Function.prototype.call$1 = function(a) {
  126796. return this(a);
  126797. };
  126798. Function.prototype.call$2 = function(a, b) {
  126799. return this(a, b);
  126800. };
  126801. Function.prototype.call$3$1 = function(a) {
  126802. return this(a);
  126803. };
  126804. Function.prototype.call$2$1 = function(a) {
  126805. return this(a);
  126806. };
  126807. Function.prototype.call$1$1 = function(a) {
  126808. return this(a);
  126809. };
  126810. Function.prototype.call$3 = function(a, b, c) {
  126811. return this(a, b, c);
  126812. };
  126813. Function.prototype.call$4 = function(a, b, c, d) {
  126814. return this(a, b, c, d);
  126815. };
  126816. Function.prototype.call$3$3 = function(a, b, c) {
  126817. return this(a, b, c);
  126818. };
  126819. Function.prototype.call$2$2 = function(a, b) {
  126820. return this(a, b);
  126821. };
  126822. Function.prototype.call$5 = function(a, b, c, d, e) {
  126823. return this(a, b, c, d, e);
  126824. };
  126825. Function.prototype.call$6 = function(a, b, c, d, e, f) {
  126826. return this(a, b, c, d, e, f);
  126827. };
  126828. Function.prototype.call$2$0 = function() {
  126829. return this();
  126830. };
  126831. Function.prototype.call$1$0 = function() {
  126832. return this();
  126833. };
  126834. Function.prototype.call$1$2 = function(a, b) {
  126835. return this(a, b);
  126836. };
  126837. Function.prototype.call$2$3 = function(a, b, c) {
  126838. return this(a, b, c);
  126839. };
  126840. convertAllToFastObject(holders);
  126841. convertToFastObject($);
  126842. (function(callback) {
  126843. if (typeof document === "undefined") {
  126844. callback(null);
  126845. return;
  126846. }
  126847. if (typeof document.currentScript != "undefined") {
  126848. callback(document.currentScript);
  126849. return;
  126850. }
  126851. var scripts = document.scripts;
  126852. function onLoad(event) {
  126853. for (var i = 0; i < scripts.length; ++i) {
  126854. scripts[i].removeEventListener("load", onLoad, false);
  126855. }
  126856. callback(event.target);
  126857. }
  126858. for (var i = 0; i < scripts.length; ++i) {
  126859. scripts[i].addEventListener("load", onLoad, false);
  126860. }
  126861. })(function(currentScript) {
  126862. init.currentScript = currentScript;
  126863. var callMain = A.main2;
  126864. if (typeof dartMainRunner === "function") {
  126865. dartMainRunner(callMain, []);
  126866. } else {
  126867. callMain([]);
  126868. }
  126869. });
  126870. })();
  126871. }